PageSourceSearch

https://neoxi.cn/_next/static/chunks/1q2yyixvw7d4l.js

js neoxi.cn collected 2026-10-02 01:20:40 UTC 178,125 bytes, 1,035 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,705021,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},262310,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default={...e.r(817474).commonLocale,locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月",nextMonth:"下个月",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年",nextYear:"下一年",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1}},586311,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},103678,(e,t,r)=>{"use strict";var n=e.r(13451).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(e.r(262310)),a=n(e.r(586311));let i={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...o.default},timePickerLocale:{...a.default}};i.lang.ok="确定",r.default=i},185979,(e,t,r)=>{"use strict";var n=e.r(13451).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=n(e.r(103678)).default},20753,(e,t,r)=>{"use strict";var n=e.r(13451).default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(e.r(705021)),a=n(e.r(185979)),i=n(e.r(103678)),l=n(e.r(586311));let s="${label}不是一个有效的${type}";r.default={locale:"zh-cn",Pagination:o.default,DatePicker:i.default,TimePicker:l.default,Calendar:a.default,global:{placeholder:"请选择",close:"关闭",sortable:"可排序",show:"显示",hide:"隐藏"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Carousel:{prevSlide:"上一张幻灯片",nextSlide:"下一张幻灯片"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}
1不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}}},288370,(e,t,r)=>{t.exports=e.r(20753)},20164,(e,t,r)=>{var n=e.r(377684),o=e.r(877289);t.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},672421,e=>{"use strict";var t=e.i(843476),r=e.i(551956);e.s(["default",0,function(){let e={"@context":"https://schema.org","@type":"Organization",name:"传神语联网",alternateName:r.brandName,url:"https://neoxi.cn",logo:"https://neoxi.cn/logo-light.svg",description:`${r.brandName}是一款集智能写作、报告分析、知识检索与翻译于一体的AI职场助理。`,sameAs:[]},n={"@context":"https://schema.org","@type":"WebSite",name:r.brandName,url:"https://neoxi.cn",description:`${r.brandName}是一款集智能写作、报告分析、知识检索与翻译于一体的AI职场助理。`,inLanguage:"zh-CN",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"https://neoxi.cn/search?q={search_term_string}"},"query-input":"required name=search_term_string"}},o={"@context":"https://schema.org","@type":"SoftwareApplication",name:r.brandName,applicationCategory:"BusinessApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"CNY"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",ratingCount:"1000"}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"首页",item:"https://neoxi.cn"}]})}})]})}])},267604,e=>{"use strict";let t;var r=e.i(843476),n=e.i(271645),o=e.i(997053),a=e.i(158962),i=e.i(262218),l=e.i(619273),s=e.i(175555),c=e.i(540143),d=e.i(814448),f=e.i(915823),u=e.i(114272),p=class extends f.Subscribable{#e;#t;#r;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}build(e,t,r){let n=new u.Mutation({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);let t=g(e);if("string"==typeof t){let r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let t=g(e);if("string"==typeof t){let r=this.#t.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=g(e);if("string"!=typeof t)return!0;{let r=this.#t.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=g(e);return"string"==typeof t?this.#t.get(t)?.find(t=>
1t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){c.notifyManager.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,l.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,l.matchMutation)(e,t))}notify(e){c.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return c.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(l.noop))))}};function g(e){return e.options.scope?.id}var h=f,b=e.i(286491),m=class extends h.Subscribable{#n;constructor(e={}){super(),this.config=e,this.#n=new Map}build(e,t,r){let n=t.queryKey,o=t.queryHash??(0,l.hashQueryKeyByOptions)(n,t),a=this.get(o);return a||(a=new b.Query({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#n.has(e.queryHash)||(this.#n.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#n.get(e.queryHash);t&&(e.destroy(),t===e&&this.#n.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){c.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#n.get(e)}getAll(){return[...this.#n.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,l.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,l.matchQuery)(e,t)):t}notify(e){c.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){c.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){c.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y=class{#o;#a;#i;#l;#s;#c;#d;#f;constructor(e={}){this.#o=e.queryCache||new m,this.#a=e.mutationCache||new p,this.#i=e.defaultOptions||{},this.#l=new Map,this.#s=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#d=s.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#o.onFocus())}),this.#f=d.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#o.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#d?.(),this.#d=void 0,this.#f?.(),this.#f=void 0)}isFetching(e){return this.#o.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#o.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#o.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,l.resolveQueryValue)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#o.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),o=this.#o.get(n.queryHash)?.state.data,a=(0,l.functionalUpdate)(t,o);if(void 0!==a)return this.#o.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return c.notifyManager.batch(()=>this.#o.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#o.get(t.queryHash)?.state}removeQueries(e){let t=this.#o;c.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#o;return c.notifyManager.batch(()=>{let n=r.findAll(e),o=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>o.has(e)},t)})}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(c.notifyManager.batch(()=>this.#o.findAll(e).map(e=>e.cancel(r)))).then(l.noop).catch(l.noop)}invalidateQueries(e,t={}){return c.notifyManager.batch(()=>(this.#o.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(c.notifyManager.batch(()=>this.#o.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(l.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))).then(l.noop)}async query(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#o.build(this,t),n=r.isStaleByTime((0,l.resolveQueryValue)(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(n):n}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#o.build(this,t);return r.isStaleByTime((0,l.resolveQueryValue)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l.noop).catch(l.noop)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l.noop).catch(l.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return d.onlineManager.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#o}getMutationCache(){return this.#a}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#l.set((0,l.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#l.values()],r={};return t.forEach(t=>{(0,l.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set((0,l.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#s.values()],r={};return t.forEach(t=>{(0,l.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,l.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===l.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#o.clear(),this.#a.clear()}},v=e.i(912598),x=e.i(266027),w=e.i(618566);e.i(296059);var k=e.i(415584),S=e.i(432280),S=S;function C(){return(C=Object.assign.bind()).apply(this,arguments)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}let A=function(e){var t,r=(function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(function(){return(0,k.createCache)()}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,a,i=[],l=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(l=(r=o.call(t)).done)&&(i.push(r.value),1!==i.length);l=!0);}catch(e){s=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(t)||function(e){if(e){if("string"==typeof e)return j(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j(e,1)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return(0,w.useServerInsertedHTML)(function(){var e=(0,S.default)(r,{plain:!0,once:!0});return e.includes('.data-ant-cssinjs-cache-path{content:"";}')?null:n.default.createElement("style",{id:"antd-cssinjs","data-rc-order":"prepend","data-rc-priority":"-1000",dangerouslySetInnerHTML:{__html:e}})}),n.default.createElement(k.StyleProvider,C({},e,{cache:r}))};function E({children:e}){let[t]=(0,n.useState)(()=>new o.ServerStyleSheet);return(0,w.useServerInsertedHTML)(()=>{let e=t.getStyleElement();return t.instance.clearTag(),(0,r.jsx)(r.Fragment,{children:e})}),(0,r.jsx)(r.Fragment,{children:e})}var $=e.i(288370),T=e.i(532181),M=e.i(382162),F=e.i(184283);let I={dark:["#000415","#001740","#00285b","#003b79","#004f98","#0064b6","#0d78ce","#2d8ae0","#439aed","#60b1ff","#a7d3ff","#e0f0ff","#ffffff"],darkA:["rgba(0, 44, 233, 0.09)","rgba(0, 88, 246, 0.26)","rgba(0, 111, 253, 0.36)","rgba(0, 123, 252, 0.48)","rgba(0, 132, 253, 0.6)","rgba(0, 139, 253, 0.72)","rgba(16, 148, 254, 0.81)","rgba(51, 157, 255, 0.88)","rgba(72, 166, 255, 0.93)","#60b1ff","#a7d3ff","#e0f0ff","#ffffff"],light:["#ffffff","#fcfcff","#f2f8ff","#e5f1ff","#d5e9ff","#c2e0ff","#acd4ff","#93c8ff","#76baff","#57abf9","#0d78ce","#003b79","#000415"],lightA:["rgba(255, 255, 255, 0.01)","rgba(105, 105, 255, 0.02)","rgba(38, 138, 255, 0.06)","rgba(19, 128, 255, 0.11)","rgba(8, 126, 255, 0.17)","rgba(1, 126, 255, 0.24)","rgba(3, 125, 255, 0.33)","rgba(4, 127, 255, 0.43)","rgba(1, 127, 255, 0.54)","rgba(0, 128, 246, 0.66)","rgba(0, 113, 203, 0.95)","#003b79","#000415"]},P={dark:["#00021b","#000d4c","#001a69","#002a8a","#003bac","#004cca","#005ae0","#0065ed","#006cf3","#0072f5","#9abeff","#e2ebff","#ffffff"],darkA:["rgba(0, 18, 245, 0.11)","rgba(0, 43, 253, 0.3)","rgba(0, 62, 250, 0.42)","rgba(0, 76, 251, 0.55)","rgba(0, 87, 253, 0.68)","rgba(0, 95, 252, 0.8)","rgba(0, 102, 255, 0.88)","rgba(0, 109, 255, 0.93)","rgba(0, 112, 253, 0.96)","rgba(0, 119, 255, 0.96)","#9abeff","#e2ebff","#ffffff"],light:["#ffffff","#fcfbff","#f1f5ff","#e2ebff","#cedfff","#b6d0ff","#9abeff","#78a9ff","#4c90ff","#0072f5","#005ae0","#002a8a","#00021b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(105, 55, 255, 0.02)","rgba(22, 88, 255, 0.06)","rgba(13, 88, 255, 0.12)","rgba(10, 95, 255, 0.2)","rgba(3, 93, 255, 0.29)","rgba(3, 93, 255, 0.4)","rgba(0, 93, 255, 0.53)","rgba(3, 99, 255, 0.71)","#0072f5","#005ae0","#002a8a","#00021b"]},R={dark:["#070300","#2a1b00","#483000","#6a4900","#916400","#b77e00","#d59300","#eaa100","#f8aa00","#ffb224","#ffdcaf","#fff4eb","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(247, 159, 0, 0.17)","rgba(248, 166, 0, 0.29)","rgba(252, 174, 0, 0.42)","rgba(254, 175, 0, 0.57)","rgba(254, 175, 0, 0.72)","rgba(254, 175, 0, 0.84)","rgba(254, 175, 0, 0.92)","rgba(253, 173, 0, 0.98)","#ffb224","#ffdcaf","#fff4eb","#ffffff"],light:["#ffffff","#fffdff","#fff9f7","#fff4eb","#ffeedc","#ffe6c8","#ffdcaf","#ffd190","#ffc368","#ee9e0b","#d59300","#6a4900","#070300"],lightA:["rgba(255, 255, 255, 0.02)","rgba(255,145,55,0.04)","rgba(255,155,55,0.08)","rgba(255, 117, 5, 0.16)","rgba(255, 134, 5, 0.20)","rgba(255, 141, 5, 0.26)","rgba(255, 146, 5, 0.32)","rgba(255, 150, 3, 0.44)","rgba(255, 155, 3, 0.6)","rgba(255, 165, 0, 0.86)","#d59300","#6a4900","#070300"]},B={dark:["#000000","#0d0d0d","#1a1a1a","#202020","#2d2d2d","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddd
1dd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},O={dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#62c473","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#379d4a","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.02)","rgba(117, 230, 5, 0.06)","rgba(84, 205, 12, 0.10)","rgba(60, 190, 10, 0.14)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},N={dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},_={dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddd
1dd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#0b0b0b","#000000"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},L={dark:["#0f0003","#380015","#560023","#780032","#9d0042","#c10251","#d6225d","#e43165","#ee3a6a","#f4416c","#ffb0b7","#ffe8e8","#ffffff"],darkA:["rgba(250, 0, 50, 0.06)","rgba(255, 0, 95, 0.22)","rgba(253, 0, 103, 0.34)","rgba(255, 0, 106, 0.47)","rgba(253, 0, 106, 0.62)","rgba(254, 3, 107, 0.76)","rgba(255, 40, 111, 0.84)","rgba(253, 54, 112, 0.9)","rgba(253, 62, 113, 0.94)","rgba(254, 68, 112, 0.96)","#ffb0b7","#ffe8e8","#ffffff"],light:["#ffffff","#fffbff","#fff3f3","#ffe8e8","#ffdadb","#ffc7ca","#ffb0b7","#ff94a1","#ff6f87","#f4416c","#d6225d","#780032","#0f0003"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 255, 0.02)","rgba(255, 15, 15, 0.05)","rgba(255, 25, 25, 0.1)","rgba(255, 8, 15, 0.15)","rgba(255, 0, 14, 0.22)","rgba(255, 0, 23, 0.31)","rgba(255, 0, 31, 0.42)","rgba(255, 2, 44, 0.57)","rgba(240, 2, 59, 0.75)","rgba(208, 1, 69, 0.87)","#780032","#0f0003"]},D={dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.06)","rgba(255, 35, 2, 0.12)","rgba(255, 42, 3, 0.20)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},H={blue:I,cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:P,gold:R,gray:B,green:O,lime:N,magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31
1)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#070300","#291900","#462b00","#684100","#8e5900","#b36f00","#d18000","#e88b00","#f89200","#ff9927","#ffd1b1","#fff1eb","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(241, 147, 0, 0.17)","rgba(250, 154, 0, 0.28)","rgba(254, 159, 0, 0.41)","rgba(254, 159, 0, 0.56)","rgba(252, 156, 0, 0.71)","rgba(255, 156, 0, 0.82)","rgba(255, 153, 0, 0.91)","rgba(253, 149, 0, 0.98)","#ff9927","#ffd1b1","#fff1eb","#ffffff"],light:["#ffffff","#fffcff","#fff8f6","#fff1eb","#ffe9dd","#ffdeca","#ffd1b1","#ffc293","#ffb06a","#f88c13","#d18000","#684100","#070300"],lightA:["rgba(255, 255, 255, 0.02)","rgba(255, 105, 255, 0.03)","rgba(255, 80, 30, 0.08)","rgba(255, 80, 5, 0.12)","rgba(255, 98, 12, 0.16)","rgba(255, 98, 3, 0.21)","rgba(255, 107, 3, 0.31)","rgba(255, 113, 4, 0.43)","rgba(255, 121, 2, 0.59)","rgba(255, 135, 1, 0.85)","#d18000","#684100","#070300"]},primary:_,purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.08)","rgba(243, 14, 249, 0.16)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:L,volcano:D,yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}};var q=e.i(480450),z=e.i(931067),Q=e.i(971151),U=e.i(885963),W=e.i(487806),K=e.i(479671);function V(e){var t="function"==typeof Map?new Map:void 0;return(V=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if((0,K.default)())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&(0,U.default)(o,r.prototype),o}(e,arguments,(0,W.default)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,U.default)(r,e)})(e)}var Y=function(e){function t(t){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,Q.default)(r)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,U.default)(t,e),t}(V(Error));function G(e,t){return e.substr(-t.length)===t}var X=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function J(e){return"string"!=typeof e?e:e.match(X)?parseFloat(e):e}var Z=function(e){return function(t,r){void 0===r&&(r="16px");var n=t,o=r;if("string"==typeof t){if(!G(t,"px"))throw new Y(69,e,t);n=J(t)}if("string"==typeof r){if(!G(r,"px"))throw new Y(70,e,r);o=J(r)}if("string"==typeof n)throw new Y(71,t,e);if("string"==typeof o)throw new Y(72,r,e);return""+n/o+e}};function ee(e){return Math.round(255*e)}function et(e,t,r){return ee(e)+","+ee(t)+","+ee(r)}function er(e,t,r,n){if(void 0===n&&(n=et),0===t)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,c=0;o>
1=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,c=i):o>=3&&o<4?(s=i,c=a):o>=4&&o<5?(l=i,c=a):o>=5&&o<6&&(l=a,c=i);var d=r-a/2;return n(l+d,s+d,c+d)}Z("em"),Z("rem");var en={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
10",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},eo=/^#[a-fA-F0-9]{6}$/,ea=/^#[a-fA-F0-9]{8}$/,ei=/^#[a-fA-F0-9]{3}$/,el=/^#[a-fA-F0-9]{4}$/,es=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ec=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ed=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ef=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function eu(e){if("string"!=typeof e)throw new Y(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return en[t]?"#"+en[t]:e}(e);if(t.match(eo))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ea)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alph
1a:r}}if(t.match(ei))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(el)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=es.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=ec.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=ed.exec(t);if(i){var l="rgb("+er(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=es.exec(l);if(!s)throw new Y(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=ef.exec(t.substring(0,50));if(c){var d="rgb("+er(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",f=es.exec(d);if(!f)throw new Y(4,t,d);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Y(5)}function ep(e){return function(e){var t,r=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(r,n,o),i=Math.min(r,n,o),l=(a+i)/2;if(a===i)if(void 0!==e.alpha)return{hue:0,saturation:0,lightness:l,alpha:e.alpha};else return{hue:0,saturation:0,lightness:l};var s=a-i,c=l>.5?s/(2-a-i):s/(a+i);switch(a){case r:t=(n-o)/s+6*(n<o);break;case n:t=(o-r)/s+2;break;default:t=(r-n)/s+4}return(t*=60,void 0!==e.alpha)?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(eu(e))}var eg=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function eh(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function eb(e){return eh(Math.round(255*e))}function em(e,t,r){return eg("#"+eb(e)+eb(t)+eb(r))}function ey(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return eg("#"+eh(e)+eh(t)+eh(r));if("object"==typeof e&&void 0===t&&void 0===r)return eg("#"+eh(e.red)+eh(e.green)+eh(e.blue));throw new Y(6)}function ev(e,t,r,n){if("string"==typeof e&&"number"==typeof t){var o=eu(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?ey(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?ey(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Y(7)}function ex(e){var t,r;if("object"!=typeof e)throw new Y(8);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha)return ev(e);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha))return ey(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha){if("object"==typeof e)return e.alpha>=1?(t=e.hue,er(t,e.saturation,e.lightness,em)):"rgba("+er(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Y(2)}if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)){if("object"==typeof e)return r=e.hue,er(r,e.saturation,e.lightness,em);throw new Y(1)}throw new Y(8)}function ew(e){return function e(t,r,n){return function(){var o=n.concat(Array.prototype.slice.call(arguments));return o.length>=r?t.apply(this,o):e(t,r,o)}}(e,e.length,[])}function ek(e,t,r){return Math.max(e,Math.min(t,r))}ew(function(e,t){if("transparent"===t)return t;var r=ep(t);return ex((0,z.default)({},r,{hue:r.hue+parseFloat(e)}))}),ew(function(e,t){if("transparent"===t)return t;var r=ep(t);return ex((0,z.default)({},r,{lightness:ek(0,1,r.lightness-parseFloat(e))}))}),ew(function(e,t){if("transparent"===t)return t;var r=ep(t);return ex((0,z.default)({},r,{saturation:ek(0,1,r.saturation-parseFloat(e))}))}),ew(function(e,t){if("transparent"===t)return t;var r=ep(t);return ex((0,z.default)({},r,{lightness:ek(0,1,r.lightness+parseFloat(e))}))});var eS=ew(function(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var n=eu(t),o=(0,z.default)({}
1,n,{alpha:"number"==typeof n.alpha?n.alpha:1}),a=eu(r),i=(0,z.default)({},a,{alpha:"number"==typeof a.alpha?a.alpha:1}),l=o.alpha-i.alpha,s=2*parseFloat(e)-1,c=((s*l==-1?s:s+l)/(1+s*l)+1)/2,d=1-c;return ev({red:Math.floor(o.red*c+i.red*d),green:Math.floor(o.green*c+i.green*d),blue:Math.floor(o.blue*c+i.blue*d),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))})});ew(function(e,t){if("transparent"===t)return t;var r=eu(t),n="number"==typeof r.alpha?r.alpha:1;return ev((0,z.default)({},r,{alpha:ek(0,1,(100*n+100*parseFloat(e))/100)}))}),ew(function(e,t){if("transparent"===t)return t;var r=ep(t);return ex((0,z.default)({},r,{saturation:ek(0,1,r.saturation+parseFloat(e))}))}),ew(function(e,t){return"transparent"===t?t:ex((0,z.default)({},ep(t),{hue:parseFloat(e)}))}),ew(function(e,t){return"transparent"===t?t:ex((0,z.default)({},ep(t),{lightness:parseFloat(e)}))}),ew(function(e,t){return"transparent"===t?t:ex((0,z.default)({},ep(t),{saturation:parseFloat(e)}))}),ew(function(e,t){return"transparent"===t?t:eS(parseFloat(e),"rgb(0, 0, 0)",t)}),ew(function(e,t){return"transparent"===t?t:eS(parseFloat(e),"rgb(255, 255, 255)",t)}),ew(function(e,t){if("transparent"===t)return t;var r=eu(t),n="number"==typeof r.alpha?r.alpha:1;return ev((0,z.default)({},r,{alpha:ek(0,1,(100*n-100*parseFloat(e)).toFixed(2)/100)}))});let eC=({name:e,scale:t,appearance:r})=>{let n={};for(let[o,a]of t[r].entries())0!==o&&12!==o&&(n[`${e}${o}`]=a);for(let[o,a]of t[`${r}A`].entries())0!==o&&12!==o&&(n[`${e}${o}A`]=a);return{...n,...(({name:e,scale:t,appearance:r})=>{let n="dark"===r;return{[`${e}Fill`]:t[`${r}A`][n?3:4],[`${e}FillSecondary`]:t[`${r}A`][n?2:3],[`${e}FillTertiary`]:t[`${r}A`][n?1:2],[`${e}FillQuaternary`]:t[`${r}A`][+!n],[`${e}Bg`]:t[`${r}A`][1],[`${e}BgHover`]:t[`${r}A`][2],[`${e}Border`]:t[r][4],[`${e}BorderSecondary`]:t[r][3],[`${e}BorderHover`]:t[r][n?5:3],[`${e}Hover`]:t[r][n?10:8],[`${e}`]:t[r][9],[`${e}Active`]:t[r][n?7:10],[`${e}TextHover`]:t[`${r}A`][n?10:8],[`${e}Text`]:t[`${r}A`][9],[`${e}TextActive`]:t[`${r}A`][n?7:10]}})({appearance:r,name:e,scale:t})}},ej=e=>{let t={};for(let[r,n]of Object.entries(H))t={...t,...eC({appearance:e?"dark":"light",name:(0,q.camelCase)(r),scale:n})};return t};var eA=e.i(956283);let eE="lobe-ui-theme-app",e$=(0,n.memo)(({url:e})=>{let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r,n=((r=document.createElement("link")).rel="stylesheet",r.href=e,r);document.head.append(n),t.current=n;let o=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener("error",o),()=>{n.removeEventListener("error",o),n.remove(),t.current=null}},[e]),null});e$.displayName="FontLoader";let eT={mauve:{dark:["#000000","#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","#ffffff"],light:["#ffffff","#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)"]},olive:{dark:["#000000","#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","#ffffff"],light:["#ffffff","#faf9f4","#ecebe6","#dddd
1d7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)"]},sage:{dark:["#000000","#1a1b1c","#232526","#2d2f30","#383a3a","#424545","#4d5050","#585c5c","#636766","#6e7371","#797f7c","#b5bab6","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(236, 246, 255, 0.11)","rgba(233, 246, 253, 0.15)","rgba(237, 248, 253, 0.19)","rgba(243, 252, 252, 0.23)","rgba(236, 246, 246, 0.28)","rgba(241, 250, 250, 0.32)","rgba(238, 249, 249, 0.37)","rgba(241, 251, 248, 0.41)","rgba(239, 250, 246, 0.46)","rgba(242, 254, 248, 0.5)","rgba(248, 255, 250, 0.73)","rgba(255, 255, 255, 1)"],light:["#ffffff","#f5faf4","#e7ece6","#d7ddd7","#c9cfc9","#bbc1bc","#aeb4b0","#a0a6a2","#939996","#868c89","#797f7c","#484b4b","#111111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 155, 35, 0.05)","rgba(15, 65, 5, 0.1)","rgba(5, 43, 5, 0.16)","rgba(10, 37, 10, 0.22)","rgba(3, 25, 6, 0.27)","rgba(2, 21, 9, 0.32)","rgba(5, 21, 10, 0.38)","rgba(4, 18, 11, 0.43)","rgba(3, 15, 9, 0.48)","rgba(2, 13, 7, 0.53)","rgba(1, 5, 5, 0.72)","rgba(1, 2, 3, 0.9)"]},sand:{dark:["#000000","#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)"],light:["#ffffff","#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)"]},slate:{dark:["#000000","#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","#ffffff"],light:["#ffffff","#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#111"],lightA:["rgba(0, 0, 0, 0.015)","rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)"]}};var eM=e.i(781289),eF=e.i(345487);let eI=({type:e,scale:t,appearance:r})=>{let n=(0,eM.capitalize)((0,eF.toString)(e)),o="dark"===r;return{[`color${n}Fill`]:t[`${r}A`][o?3:4],[`color${n}FillSecondary`]:t[`${r}A`][o?2:3],[`color${n}FillTertiary`]:t[`${r}A`][o?1:2],[`color${n}FillQuaternary`]:t[`${r}A`][+!o],[`color${n}Bg`]:t[r][1],[`color${n}BgHover`]:t[r][2],[`color${n}Border`]:t[r][4],[`color${n}BorderHover`]:t[r][o?5:3],[`color${n}Hover`]:t[r][o?10:8],[`color${n}`]:t[r][9],[`color${n}Active`]:t[r][o?7:10],[`color${n}TextHover`]:t[r][o?10:8],[`color${n}Text`]:t[r][9],[`color${n}TextActive`]:t[r][o?7:10]}},eP=({scale:e,appearance:t})=>({colorBgContainer:"dark"===t?e[t][1]:e[t][0],colorBgElevated:"dark"===t?e[t][2]:e[t][0],colorBgLayout:"dark"===t?e[t][0]:e[t][1],colorBgMask:e.lightA[8],colorBgSpotlight:e[t][4],colorBorder:e[t][3],colorBorderSecondary:e[t][2],colorFill:e[`${t}A`][3],colorFillQuaternary:e[`${t}A`][0],colorFillSecondary:e[`${t}A`][2],colorFillTertiary:e[`${t}A`][1],colorText:e[t][12],colorTextQuaternary:e[t][6],colorTextSecondary:e[t][10],colorTextTertiary:e[t][8]}),eR=eI({appearance:"dark",scale:_,type:"Primary"}),eB=eP({appearance:"dark",scale:B}),eO=eI({appearance:"dark",scale:N,type:"Success"}),eN=eI({appearance:"dark",scale:R,type:"Warning"}),e_=eI({appearance:"dark",scale:L,type:"Error"}),eL=eI({appearance:"dark",scale:I,type:"Info"}),eD={...eR,...eB,...eO,...eN,...e_,...eL,boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:eL.colorInfoText,colorLinkActive:eL.colorInfoTextActive,colorLinkHover:eL.colorInfoTextHover,colorTextLightSolid:eB.colorBgLayout},eH=(e,t)=>{let r=e.primaryColor,n=e.neutralColor,o={},a={},i=H[r];i&&(o=eI({appearance:"dark",scale:i,type:"Primary"}));let l=eT[n];return l&&(a=eP({appearance:"dark",scale:l})),{...t,...eD,...o,...a,...ej(!0)}},eq=eI({appearance:"light",scale:_,type:"Primary"}),ez=eP({appearance:"light",scale:B}),eQ=eI({appearance:"light",scale:O,type:"Success"}),eU=eI({appearance:"light",scale:R,type:"Warning"}),eW=eI({appearance:"light",scale:D,type:"Error"}),eK=eI({appearance:"light",scale:P,type:"Info"}),eV={...eq,...ez,...eQ,...eU,...eW,...eK,boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:eK.colorInfoText,colorLinkActive:eK.colorInfoTextActive,colorLinkHover:eK.colorInfoTextHover,colorTextLightSolid:ez.colorBgLayout},eY=(e,t)=>
1{let r=e.primaryColor,n=e.neutralColor,o={},a={},i=H[r];i&&(o=eI({appearance:"light",scale:i,type:"Primary"}));let l=eT[n];return l&&(a=eP({appearance:"light",scale:l})),{...t,...eV,...o,...a,...ej(!1)}},eG=e=>e.map(e=>e.includes(" ")?`"${e}"`:e).join(","),eX=["/* EMOJI */","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],eJ=["/* SC */","HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei","Source Han Sans SC","Noto Sans CJK SC"],eZ={borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,borderRadiusXS:4,controlHeight:36,fontFamily:eG([["Geist","-apple-system","BlinkMacSystemFont","Segoe UI Variable Display","Segoe UI","Roboto","Helvetica Neue","Arial"],eJ,["/* FALLBACK */","ui-sans-serif","system-ui","sans-serif"],eX].flat()),fontFamilyCode:eG([["Geist Mono","ui-monospace","SFMono-Regular","SF Mono","Menlo","Cascadia Code","Consolas","Liberation Mono"],eJ,["/* FALLBACK */","monospace"],eX].flat())};var e0=e.i(592143);let e2=(0,n.memo)(({children:e})=>(0,r.jsx)(e0.ConfigProvider,{theme:{components:{Button:{contentFontSizeSM:12},DatePicker:{activeBorderColor:F.cssVar.colorBorder,hoverBorderColor:F.cssVar.colorBorder},Input:{activeBorderColor:F.cssVar.colorBorder,hoverBorderColor:F.cssVar.colorBorder},InputNumber:{activeBorderColor:F.cssVar.colorBorder,hoverBorderColor:F.cssVar.colorBorder},Mentions:{activeBorderColor:F.cssVar.colorBorder,hoverBorderColor:F.cssVar.colorBorder},Select:{activeBorderColor:F.cssVar.colorBorder,hoverBorderColor:F.cssVar.colorBorder}}},children:e}));var e1=e.i(295530),e5=e.i(758479);let e3=(0,F.createGlobalStyle)(({theme:e})=>F.css`
2  :root {
3    --font-settings: 'cv01', 'tnum', 'kern';
4    --font-variations: 'opsz' auto, tabular-nums;
5
6    /* Real Geist italic for Latin; synthesize style for CJK fallback faces. */
7    font-synthesis: style;
8    text-autospace: normal;
9  }
10
11  html {
12    overscroll-behavior: none;
13    color-scheme: ${e.isDarkMode?"dark":"light"};
14  }
15
16  body {
17    overflow: hidden auto;
18
19    min-height: 100vh;
20    margin: 0;
21    padding: 0;
22
23    font-family: ${e.fontFamily};
24    font-size: ${e.fontSize}px;
25    font-feature-settings: var(--font-settings);
26    font-variation-settings: var(--font-variations);
27    font-optical-sizing: auto;
28    font-kerning: normal;
29    font-variant-ligatures: common-ligatures contextual;
30    font-variant-numeric: tabular-nums;
31    font-size-adjust: from-font;
32    -webkit-font-smoothing: antialiased;
33    -moz-osx-font-smoothing: grayscale;
34    line-height: 1;
35    color: ${e.colorTextBase};
36    text-wrap: pretty;
37    text-size-adjust: 100%;
38    text-rendering: optimizelegibility;
39    overflow-wrap: anywhere;
40    vertical-align: baseline;
41
42    background-color: ${e.colorBgLayout};
43
44    font-synthesis: style;
45
46    -webkit-overflow-scrolling: touch;
47    -webkit-tap-highlight-color: transparent;
48  }
49
50  code,
51  kbd,
52  samp,
53  pre {
54    font-family: ${e.fontFamilyCode} !important;
55    font-feature-settings:
56      'liga' 0,
57      'calt' 0;
58    font-variant-ligatures: none;
59
60    span {
61      font-family: ${e.fontFamilyCode} !important;
62    }
63  }
64
65  ::selection {
66    color: #000;
67    background: ${e.yellow9};
68
69    -webkit-text-fill-color: unset !important;
70  }
71
72  * {
73    scrollbar-color: ${e.colorFill} transparent;
74    scrollbar-width: thin;
75    box-sizing: border-box;
76    vertical-align: baseline;
77  }
78`),e4=(0,F.createGlobalStyle)(({theme:e})=>{let t;return[F.css`
79  @layer lobe-popup {
80    .${e5.CLASSNAMES.ContextTrigger}[data-popup-open],
81      .${e5.CLASSNAMES.DropdownMenuTrigger}[data-popup-open] {
82      background: ${e.colorFillTertiary};
83    }
84  }
85
86  @layer lobe-base {
87    :where(.lobe-flex) {
88      /* Define defaults on the element itself to avoid CSS variable inheritance leaking to nested Flex */
89      --lobe-flex: 0 1 auto;
90      --lobe-flex-direction: column;
91      --lobe-flex-wrap: nowrap;
92      --lobe-flex-justify: flex-start;
93      --lobe-flex-align: stretch;
94      --lobe-flex-width: auto;
95      --lobe-flex-height: auto;
96      --lobe-flex-padding: 0;
97
98      /* Keep padding-inline/block aligned with padding by default, and prevent inheriting from parent */
99      --lobe-flex-padding-inline: var(--lobe-flex-padding);
100      --lobe-flex-padding-block: var(--lobe-flex-padding);
101      --lobe-flex-gap: 0;
102
103      display: flex;
104      flex: var(--lobe-flex);
105      flex-flow: var(--lobe-flex-direction) var(--lobe-flex-wrap);
106      gap: var(--lobe-flex-gap);
107      align-items: var(--lobe-flex-align);
108      justify-content: var(--lobe-flex-justify);
109
110      width: var(--lobe-flex-width);
111      height: var(--lobe-flex-height);
112      padding: var(--lobe-flex-padding);
113      padding-block: var(--lobe-flex-padding-block);
114      padding-inline: var(--lobe-flex-padding-inline);
115    }
116
117    .lobe-flex-hidden {
118      display: none;
119    }
120  }
121
122  /* Brand Loading */
123  @keyframes draw {
124    0% {
125      stroke-dashoffset: 1000;
126    }
127
128    100% {
129      stroke-dashoffset: 0;
130    }
131  }
132
133  @keyframes fill {
134    30% {
135      fill-opacity: 0.05;
136    }
137
138    100% {
139      fill-opacity: 1;
140    }
141  }
142
143  .lobe-brand-loading path {
144    fill: currentcolor;
145    fill-opacity: 0;
146    stroke: currentcolor;
147    stroke-dasharray: 1000;
148    stroke-dashoffset: 1000;
149    stroke-width: 0.25em;
150
151    animation:
152      draw 2s cubic-bezier(0.4, 0, 0.2, 1) infinite,
153      fill 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
154  }
155`,(t=(0,e1.safeReadableColor)(e.colorPrimary),F.css`
156    .${e.prefixCls}-checkbox-inner:after {
157      border-color: ${(0,e1.safeReadableColor)(e.colorPrimary)} !important;
158    }
159
160    .${e.prefixCls}-btn {
161      box-shadow: none;
162    }
163
164    .${e.prefixCls}-btn-primary:not(:disabled) {
165      color: ${t} !important;
166
167      &:hover {
168        color: ${t} !important;
169      }
170
171      &:active {
172        color: ${t} !important;
173      }
174    }
175
176    .${e.prefixCls}-tooltip {
177      --antd-arrow-background-color: ${e.colorBgElevated};
178
179      max-width: 320px;
180    }
181
182    .${e.prefixCls}-tooltip-arrow::before {
183      background: ${e.colorBgElevated} !important;
184    }
185
186    .${e.prefixCls}-tooltip-arrow::after {
187      box-shadow: 0 0 0 1px ${e.colorBorderSecondary} !important;
188    }
189
190    .${e.prefixCls}-tooltip-container {
191      user-select: none;
192
193      display: flex;
194      gap: 6px;
195      align-items: center;
196
197      min-width: unset;
198      min-height: unset;
199      padding-block: 4px;
200      padding-inline: 8px;
201      border: 1px solid ${e.colorBorderSecondary} !important;
202      border-radius: ${e.borderRadiusSM}px !important;
203
204      font-size: ${e.fontSizeSM}px;
205      line-height: 1.2;
206      color: ${e.colorTextSecondary} !important;
207      word-break: break-word;
208      white-space: normal;
209
210      background: ${e.colorBgElevated} !important;
211      box-shadow:
212        0 1px 2px 0 rgba(0, 0, 0, 3%),
213        0 1px 6px -1px rgba(0, 0, 0, 2%),
214        0 2px 4px 0 rgba(0, 0, 0, 2%) !important;
215    }
216
217    .${e.prefixCls}-switch-handle::before {
218      background: ${e.colorBgContainer} !important;
219    }
220
221    .${e.prefixCls}-image-preview-close,
222      .${e.prefixCls}-image-preview-switch-right,
223      .${e.prefixCls}-image-preview-switch-left {
224      display: flex;
225      align-items: center;
226      justify-content: center;
227
228      width: 32px;
229      height: 32px;
230      padding: 0;
231
232      background: ${ev(e.colorBgMask,.1)};
233
234      border-radius: ${e.borderRadiusLG}px;
235
236      ${e.stylish.blur};
237    }
238
239    .${e.prefixCls}-dropdown-menu, .${e.prefixCls}-select-dropdown {
240      border-radius: ${e.borderRadius}px !important;
241      box-shadow:
242        0 0 15px 0 #00000008,
243        0 2px 30px 0 #00000014,
244        0 0 0 1px ${e.isDarkMode?e.colorFillTertiary:e.colorBorder} inset !important;
245    }
246
247    .${e.prefixCls}-modal-content {
248      border: 1px solid ${e.colorBorderSecondary} !important;
249    }
250
251    .${e.prefixCls}-radio-wrapper
252      .${e.prefixCls}-radio-checked
253      .${e.prefixCls}-radio-inner:after {
254      background: ${t};
255    }
256  `)]});function e8(){}function e6(e){return null==e||"object"!=typeof e&&"function"!=typeof e}var e9=e.i(649213);function e7(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var te=e.i(647608);function tt(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var tr=e.i(342919);let tn="[object String]",to="[object Number]",ta="[object Boolean]",ti="[object Arguments]";function tl(e,t,r,n=new Map,o){let a=o?.(e,t,r,n);if(void 0!==a)return a;if(e6(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let t=Array(e.length);n.set(e,t);for(let a=0;a<e.length;a++)t[a]=tl(e[a],a,r,n,o);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[a,i]of(n.set(e,t),e))t.set(a,tl(i,a,r,n,o));return t}if(e instanceof Set){let t=new Set;for(let a of(n.set(e,t),e))t.add(tl(a,void 0,r,n,o));return t}if((0,te.isBuffer)(e))return e.subarray();if((0,e9.isTypedArray)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,t);for(let a=0;a<e.length;a++)t[a]=tl(e[a],a,r,n,o);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,t),ts(t,e,r,n,o),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return n.set(e,t),ts(t,e,r,n,o),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return n.set(e,t),ts(t,e,r,n,o),t}if(e instanceof Error){let t=structuredClone(e);return n.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,ts(t,e,r,n,o),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return n.set(e,t),ts(t,e,r,n,o),t}if(e instanceof Number){let t=new Number(e.valueOf());return n.set(e,t),ts(t,e,r,n,o),t}if(e instanceof String){let t=new String(e.valueOf());return n.set(e,t),ts(t,e,r,n,o),t}if("object"==typeof e&&function(e){switch((0,tr.getTag)(e)){case ti:case"[object Array]":case"[object ArrayBuffer]":case"[object DataView]":case ta:case"[object Date]":case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Map]":case to:case"[object Object]":case"[object RegExp]":case"[object Set]":case tn:case"[object Symbol]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return n.set(e,t),ts(t,e,r,n,o),t}return e}function ts(e,t,r=e,n,o){let a=[...Object.keys(t),...e7(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(null==s||s.writable)&&(e[l]=tl(t[l],l,r,n,o))}}function tc(e){var t;return t=(t,r,n,o)=>{let a;if(void 0!==a)return a;
256if("object"==typeof e){if("[object Object]"===(0,tr.getTag)(e)&&"function"!=typeof e.constructor){let t={};return o.set(e,t),ts(t,e,n,o),t}switch(Object.prototype.toString.call(e)){case to:case tn:case ta:{let t=new e.constructor(e?.valueOf());return ts(t,e),t}case ti:{let t={};return ts(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},tl(e,void 0,e,new Map,t)}var td=e.i(568482),tf=e.i(237582),tu=e.i(532780),tp=e.i(338489);let tg=(0,n.memo)(({appId:e=eE,children:t,customStylish:o,customToken:i,enableCustomFonts:l=!0,enableGlobalStyle:s=!0,customFonts:c,customTheme:d={},className:f,style:u,theme:p,...g})=>{let h=(0,M.useCdnFn)(),[b,m]=(0,n.useState)(null),y=(0,n.useMemo)(()=>c||[h({path:"css/index.css",pkg:"@lobehub/webfont-geist-mono",version:"1.0.0"}),h({path:"css/index-full.css",pkg:"@lobehub/webfont-geist",version:"1.0.0"}),h({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),h({path:"dist/katex.min.css",pkg:"katex",version:"0.18.1"})],[c,h]),v=(0,n.useCallback)(e=>({...(({css:e,token:t,isDarkMode:r})=>{let n=F.keyframes`
257    0% {
258      background-position: 0% 50%;
259    }
260    50% {
261      background-position: 100% 50%;
262    }
263    100% {
264      background-position: 0% 50%;
265    }
266  `;return{active:e`
267      color: ${t.colorText};
268      background: ${t.colorFillSecondary};
269
270      &:hover {
271        color: ${t.colorText};
272        background: ${t.colorFill};
273      }
274    `,blur:e`
275      backdrop-filter: saturate(150%) blur(10px);
276    `,blurStrong:e`
277      backdrop-filter: saturate(150%) blur(36px);
278    `,bottomScrollbar:e`
279      ::-webkit-scrollbar {
280        width: 0;
281        height: 4px;
282        background-color: transparent;
283
284        &-thumb {
285          border-radius: 4px;
286          background-color: ${t.colorFill};
287          transition: background-color 500ms ${t.motionEaseOut};
288        }
289
290        &-corner {
291          display: none;
292          width: 0;
293          height: 0;
294        }
295      }
296    `,disabled:e`
297      cursor: not-allowed;
298      opacity: 0.5;
299    `,gradientAnimation:e`
300      border-radius: inherit;
301      background-image: linear-gradient(
302        -45deg,
303        ${t.gold},
304        ${t.magenta},
305        ${t.geekblue},
306        ${t.cyan}
307      );
308      background-size: 400% 400%;
309      animation: 5s ${n} 5s ease infinite;
310    `,noScrollbar:e`
311      ::-webkit-scrollbar {
312        display: none;
313        width: 0;
314        height: 0;
315        background-color: transparent;
316      }
317    `,resetLinkColor:e`
318      cursor: pointer;
319      color: ${t.colorTextSecondary};
320
321      &:hover {
322        color: ${t.colorText};
323      }
324    `,shadow:e`
325      box-shadow:
326        0 1px 0 -1px ${r?t.colorBgLayout:t.colorBorder},
327        0 1px 2px -0.5px ${r?t.colorBgLayout:t.colorBorder},
328        0 2px 2px -1px ${r?t.colorBgLayout:t.colorBorderSecondary},
329        0 3px 6px -4px ${r?t.colorBgLayout:t.colorBorderSecondary};
330    `,variantBorderless:e`
331      border: none;
332      background: none;
333      box-shadow: none;
334
335      &:hover {
336        background: ${t.colorFillTertiary};
337      }
338    `,variantBorderlessDanger:e`
339      border: none;
340      background: none;
341      box-shadow: none;
342
343      &:hover {
344        background: ${t.colorErrorFillTertiary};
345        box-shadow: inset 0 0 0 1px ${t.colorErrorFillTertiary};
346      }
347    `,variantBorderlessWithoutHover:e`
348      border: none;
349      background: none;
350      box-shadow: none;
351    `,variantFilled:e`
352      background: ${t.colorFillTertiary};
353
354      &:hover {
355        background: ${t.colorFillSecondary};
356      }
357    `,variantFilledDanger:e`
358      background: ${t.colorErrorFillTertiary};
359
360      &:hover {
361        background: ${t.colorErrorFillSecondary};
362      }
363    `,variantFilledWithoutHover:e`
364      background: ${t.colorFillTertiary};
365    `,variantOutlined:e`
366      border: 1px solid ${t.colorBorderSecondary};
367      background: ${t.colorBgContainer};
368
369      &:hover {
370        border: 1px solid ${t.colorBorder};
371        background: ${t.colorBgContainer};
372      }
373    `,variantOutlinedDanger:e`
374      border: 1px solid ${t.colorErrorBorder};
375
376      &:hover {
377        border: 1px solid ${t.colorErrorBorder};
378      }
379    `,variantOutlinedWithoutHover:e`
380      border: 1px solid ${t.colorBorderSecondary};
381      background: ${t.colorBgContainer};
382    `}})(e),...o?.(e)}),[o]),x=(0,n.useCallback)(e=>({...(({isDarkMode:e,token:t})=>({...ej(e),colorBgContainerSecondary:eS(.5,t.colorBgLayout,t.colorBgContainer)}))(e),...i?.(e)}),[i]),w=(0,n.useCallback)(e=>(function(e,...t){return function(e,...t){let r=t.slice(0,-1),n=t[t.length-1],o=e;for(let e=0;e<r.length;e++)o=function e(t,r,n,o){if(e6(t)&&(t=Object(t)),null==r||"object"!=typeof r)return t;if(o.has(r))return function(e){if(e6(e))return e;if(Array.isArray(e)||(0,e9.isTypedArray)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new r(e.errors,e.message,{cause:e.cause}):new r(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(o.get(r));if(o.set(r,t),Array.isArray(r)){r=r.slice();for(let e=0;e<r.length;e++)e in r||(r[e]=void 0)}let a=[...Object.keys(r),...e7(r)];for(let l=0;l<a.length;l++){let s=a[l];if("__proto__"===s)continue;let c=r[s],d=t[s];if((0,td.isArguments)(c)&&(c={...c}),(0,td.isArguments)(d)&&(d={...d}),(0,te.isBuffer)(c)&&(c=tc(c)),Array.isArray(c))if(Array.isArray(d)){let e=[],t=Reflect.ownKeys(d);for(let r=0;r<t.length;r++){let n=t[r];e[n]=d[n]}d=e}else{var i;if(i=d,(0,tf.isObjectLike)(i)&&(0,tu.isArrayLike)(i)){let e=[];for(let t=0;t<d.length;t++)e[t]=d[t];d=e}else d=[]}let f=n(d,c,s,t,r,o);void 0!==f?t[s]=f:Array.isArray(c)||(0,tf.isObjectLike)(d)&&(0,tf.isObjectLike)(c)&&(tt(d)||tt(c)||(0,tp.isTypedArray)(d)||(0,tp.isTypedArray)(c))?t[s]=e(d,c,n,o):null==d&&tt(c)?t[s]=e({},c,n,o):null==d&&(0,tp.isTypedArray)(c)?t[s]=tc(c):(void 0===d||void 0!==c)&&(t[s]=c)}return t}(o,r[e],n,new Map);return o}(e,...t,e8)})((({neutralColor:e,appearance:t,primaryColor:r})=>({algorithm:"dark"===t?eH:eY,components:{Button:{contentFontSizeSM:12},DatePicker:{activeBorderColor:eZ.colorBorder,hoverBorderColor:eZ.colorBorder},Input:{activeBorderColor:eZ.colorBorder,hoverBorderColor:eZ.colorBorder},InputNumber:{activeBorderColor:eZ.colorBorder,hoverBorderColor:eZ.colorBorder},Mentions:{activeBorderColor:eZ.colorBorder,hoverBorderColor:eZ.colorBorder},Select:{activeBorderColor:eZ.colorBorder,hoverBorderColor:eZ.colorBorder}},token:{...eZ,neutralColor:e,primaryColor:r}}))({appearance:e,neutralColor:d.neutralColor,primaryColor:d.primaryColor}),p),[d.primaryColor,d.neutralColor,p]);return(0,r.jsxs)(r.Fragment,{children:[l&&y?.length>0&&y.map(e=>(0,r.jsx)(e$,{url:e},e)),(0,r.jsx)(F.ThemeProvider,{customStylish:v,customToken:x,theme:w,...g,children:(0,r.jsxs)(e2,{children:[(0,r.jsx)(e4,{}),s&&(0,r.jsx)(e3,{}),(0,r.jsx)(a.App,{className:f,style:{isolation:"isolate",minHeight:"inherit",width:"inherit",...u},children:(0,r.jsx)("div",{id:e,style:tb,children:(0,r.jsxs)(eA.default,{value:b,children:[t,(0,r.jsx)("div",{"data-lobe-portal-host":"",ref:m,style:th})]})})})]})})]})});tg.displayName="LobeThemeProvider";
382let th={height:0,left:0,position:"fixed",right:0,top:0,zIndex:1100},tb={display:"contents"};var tm=e.i(368869),ty=e.i(35713),ty=ty;let tv={$mode:"light",colorBrand:"#69b1ff",colorText:"#000819",colorPrimary:"#1a1a19",colorBorder:"#edeff1ff",colorPageBg:"#fff",colorSecondaryBg:"#fafafa",colorQuaternaryBg:"#0000000a",colorBgContainer:"#fafafa",colorCodeHeader:"#e0e0e0"},tx={$mode:"dark",colorBrand:"#69b1ff",colorText:"#ffffff",colorPrimary:"#ffffff",colorBorder:"#495151",colorPageBg:"#1a1c1e",colorSecondaryBg:"#232527",colorQuaternaryBg:"#ffffff14",colorBgContainer:"#232527",colorCodeHeader:"#ffffff0a"},tw=e=>({borderRadius:8,colorLink:e.colorBrand,colorBgElevated:e.colorSecondaryBg,controlItemBgActive:e.colorQuaternaryBg,controlItemBgActiveHover:e.colorQuaternaryBg,fontFamily:'"HarmonyOS Sans", "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei", "Source Han Sans CN", sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"',components:{},...e});var tk=e.i(259503);let tS={chat:{"chat.avatar":"头像","chat.placeholder":"...","tokenTag.overload":"超额","tokenTag.remained":"剩余","tokenTag.used":"已用"},common:{"common.cancel":"取消","common.confirm":"确认","common.delete":"删除","common.edit":"编辑","common.empty":"(空)"},editableMessage:{"editableMessage.addProps":"添加属性","editableMessage.delete":"删除","editableMessage.input":"输入","editableMessage.inputPlaceholder":"请输入示例输入内容","editableMessage.output":"输出","editableMessage.outputPlaceholder":"请输入示例输出内容","editableMessage.system":"系统"},emojiPicker:{"emojiPicker.delete":"删除","emojiPicker.draggerDesc":"点击或拖动图片到此处上传","emojiPicker.emoji":"表情","emojiPicker.fileTypeError":"只能上传图片文件!","emojiPicker.upload":"上传","emojiPicker.uploadBtn":"裁剪并上传"},form:{"form.reset":"重置","form.submit":"提交","form.unsavedChanges":"未保存的更改","form.unsavedWarning":"您有未保存的更改。确定要离开吗?"},hotkey:{"hotkey.clear":"清除绑定","hotkey.conflict":"此快捷键与现有快捷键冲突。","hotkey.invalidCombination":"快捷键必须包含修饰键(Ctrl、Alt、Shift)且只能有一个常规键。","hotkey.placeholder":"按键录制快捷键","hotkey.reset":"重置为默认"},image:{"image.actualSize":"实际尺寸","image.close":"关闭","image.copy":"复制","image.copyFailed":"复制失败","image.copySuccess":"复制成功","image.download":"下载","image.downloadFailed":"下载失败","image.downloadSuccess":"下载成功","image.fitToScreen":"适应屏幕","image.flipHorizontal":"水平翻转","image.flipVertical":"垂直翻转","image.more":"更多","image.next":"下一张","image.prev":"上一张","image.rotateLeft":"向左旋转","image.rotateRight":"向右旋转","image.zoomIn":"放大","image.zoomOut":"缩小"},messageModal:{"messageModal.cancel":"取消","messageModal.confirm":"确认","messageModal.edit":"编辑"},sideNav:{"sideNav.collapse":"折叠侧边栏","sideNav.demoActiveLabel":"激活","sideNav.demoFeatureAutoCollapseDesc":"拖动到阈值以下智能折叠","sideNav.demoFeatureAutoCollapseTitle":"自动折叠","sideNav.demoFeaturePerformanceDesc":"无动画开销,性能更佳","sideNav.demoFeaturePerformanceTitle":"性能优化","sideNav.demoFeatureResizeDesc":"拖动调整面板宽度","sideNav.demoFeatureResizeTitle":"灵活调整","sideNav.demoFeatureSmartHandleDesc":"悬停显示切换按钮","sideNav.demoFeatureSmartHandleTitle":"智能手柄","sideNav.demoFeaturesTitle":"功能特性","sideNav.demoHint":"尝试拖动面板边缘并使用切换按钮 ->","sideNav.demoSubtitle":"可拖动调整的工作区风格侧边面板","sideNav.demoTitle":"DraggableSideNav 演示","sideNav.expand":"展开侧边栏"}};function tC(e){let{config:t,children:o}=e,{darkAlgorithm:a,defaultAlgorithm:i}=tm.theme,l=(0,tk.useIsDarkTheme)(),s=(0,n.useMemo)(()=>{let e=l?tx:tv;return{algorithm:[l?a:i],token:tw(e),components:tw(e).components}},[a,i,l]);return(0,r.jsx)(e0.ConfigProvider,{locale:$.default,modal:{mask:{blur:!0}},theme:t??s,children:(0,r.jsx)(k.StyleProvider,{hashPriority:"high",transformers:[ty.default],children:(0,r.jsx)(M.default,{locale:"zhCn",motion:T.motion,config:{proxy:"al
382iyun"},resources:tS,children:(0,r.jsx)(tg,{appearance:l?"dark":"light",style:{isolation:"auto"},theme:t??s,children:o})})})})}function tj(e){let{children:t}=e,{token:n}=tm.theme.useToken();return(0,r.jsx)(o.ThemeProvider,{theme:n,children:t})}e0.ConfigProvider.config({holderRender:e=>(0,r.jsx)(k.StyleProvider,{hashPriority:"high",transformers:[ty.default],children:e})});var tA=n;class tE extends tA.default.Component{constructor(e){super(e),this.state={}}componentDidCatch(e,t){}render(){let{children:e}=this.props;return e}}let t$=["/app","/space","/skills","/search","/invitation","/subscription","/about","/signIn","/register","/reset-password","/point-rule","/privacy-policy","/terms-of-use","/payment-agreement","/versions","/pricing","/redemption-codes","/device-inspection","/browser-operator"],tT=["/","/app"];function tM(){let e=(0,w.useRouter)(),t=(0,n.useRef)(new Set);return(0,n.useEffect)(()=>{let r=r=>{if(!t.current.has(r)){t.current.add(r);try{e.prefetch(r)}catch(e){t.current.delete(r)}}};(()=>{let{connection:e}=navigator;if(e){let{effectiveType:t,saveData:n}=e;if(n||"slow-2g"===t||"2g"===t)return tT.forEach(e=>{r(e)})}let t=()=>{"requestIdleCallback"in window?(tT.forEach((e,t)=>{requestIdleCallback(()=>{r(e)},{timeout:1e3+100*t})}),t$.filter(e=>!tT.includes(e)).forEach((e,t)=>{requestIdleCallback(()=>{r(e)},{timeout:2e3+200*t})})):(tT.forEach((e,t)=>{setTimeout(()=>{r(e)},1e3+100*t)}),t$.filter(e=>!tT.includes(e)).forEach((e,t)=>{setTimeout(()=>{r(e)},2e3+200*t)}))};if("complete"!==document.readyState)return window.addEventListener("load",t),()=>window.removeEventListener("load",t);t()})()},[e]),null}var tF=e.i(551377);function tI(){return(0,n.useEffect)(()=>("serviceWorker"in navigator&&navigator.serviceWorker.getRegistration("/").then(e=>{if(e?.active&&"/sw.js"===new URL(e.active.scriptURL).pathname)return e.update()}).catch(()=>void 0),(0,tF.startPushLifecycle)()),[]),null}var tP=e.i(297840),tR=e.i(681560),tB=e.i(846932),tO=e.i(981339),tN=e.i(212931),t_=e.i(464571),tL=e.i(471368),tD=e.i(770914),tH=e.i(326373),tq=e.i(482725),tz=e.i(56456),tQ=e.i(750113),tU=e.i(822315),tW=e.i(668266),tK=e.i(369392),tV=e.i(161822),tY=e.i(58385),tG=e.i(334845),tX=e.i(270807),tJ=e.i(174080);function tZ(){return"u">typeof window}function t0(e){return t5(e)?(e.nodeName||"").toLowerCase():"#document"}function t2(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function t1(e){var t;return null==(t=(t5(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function t5(e){return!!tZ()&&(e instanceof Node||e instanceof t2(e).Node)}function t3(e){return!!tZ()&&(e instanceof Element||e instanceof t2(e).Element)}function t4(e){return!!tZ()&&(e instanceof HTMLElement||e instanceof t2(e).HTMLElement)}function t8(e){return!(!tZ()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof t2(e).ShadowRoot)}function t6(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function t9(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function t7(e){let t=re(),r=t3(e)?rr(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function re(){return!(typeof CSS>"u")&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function rt(e){return["html","body","#document"].includes(t0(e))}function rr(e){return t2(e).getComputedStyle(e)}function rn(e){return t3(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ro(e){if("html"===t0(e))return e;let t=e.assignedSlot||e.parentNode||t8(e)&&e.host||t1(e);return t8(t)?t.host:t}function ra(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=ro(t);return rt(r)?t.ownerDocument?t.ownerDocument.body:t.body:t4(r)&&t6(r)?r:e(r)}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=t2(o);if(a){let e=ri(i);
382return t.concat(i,i.visualViewport||[],t6(o)?o:[],e&&r?ra(e):[])}return t.concat(o,ra(o,[],r))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=e.activeElement;for(;(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function rs(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&t8(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function rc(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function rd(){let e,t=/android/i;return t.test(null!=(e=navigator.userAgentData)&&e.platform?e.platform:navigator.platform)||t.test(rc())}function rf(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function ru(e){return(null==e?void 0:e.ownerDocument)||document}function rp(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function rg(e){return"composedPath"in e?e.composedPath()[0]:e.target}function rh(e){return t4(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function rb(e){e.preventDefault(),e.stopPropagation()}let rm=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),ry=Math.min,rv=Math.max,rx=Math.round,rw=Math.floor,rk=e=>({x:e,y:e}),rS={left:"right",right:"left",bottom:"top",top:"bottom"},rC={start:"end",end:"start"};function rj(e,t){return"function"==typeof e?e(t):e}function rA(e){return e.split("-")[0]}function rE(e){return e.split("-")[1]}function r$(e){return"x"===e?"y":"x"}function rT(e){return"y"===e?"height":"width"}function rM(e){return["top","bottom"].includes(rA(e))?"y":"x"}function rF(e){return e.replace(/left|right|bottom|top/g,e=>rS[e])}function rI(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function rP(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}var rR='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',rB=typeof Element>"u",rO=rB?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,rN=!rB&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},r_=function e(t,r){void 0===r&&(r=!0);var n,o=null==t||null==(n=t.getAttribute)?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},rL=function(e){var t,r=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===r||"true"===r},rD=function(e,t,r){if(r_(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(rR));return t&&rO.call(e,rR)&&n.unshift(e),n=n.filter(r)},rH=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!r_(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=e(l.length?l:i.children,!0,n);n.flatten?o.push.apply(o,s):o.push({scopeParent:i,candidates:s})}else{rO.call(i,rR)&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),d=!r_(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&d){var f=e(!0===c?i.children:c.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else a.unshift.apply(a,i.children)}}return o},rq=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},rz=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rL(e))&&!rq(e)?0:e.tabIndex},rQ=function(e,t){var r=rz(e);return r<0&&t&&!rq(e)?0:r},rU=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},rW=function(e){return"INPUT"===e.tagName},rK=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},rV=function(e){if(!e.name)return!0;var t,r=e.form||rN(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&"u">typeof window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=rK(t,e.form);return!o||o===e},rY=function(e){return rW(e)&&"radio"===e.type&&!rV(e)},rG=function(e){var t,r,n,o,a,i,l,s=e&&rN(e),c=null==(l=s)?void 0:l.host,d=!1;if(s&&s!==e)for(d=!!(null!=(t=c)&&null!=(r=t.ownerDocument)&&r.contains(c)||null!=e&&null!=(n=e.ownerDocument)&&n.c
382ontains(e));!d&&c;)d=!!(null!=(a=c=null==(o=s=rN(c))?void 0:o.host)&&null!=(i=a.ownerDocument)&&i.contains(c));return d},rX=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},rJ=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=rO.call(e,"details>summary:first-of-type")?e.parentElement:e;if(rO.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return rX(e)}else{if("function"==typeof n){for(var a=e;e;){var i=e.parentElement,l=rN(e);if(i&&!i.shadowRoot&&!0===n(i))return rX(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(rG(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},rZ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!rO.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},r0=function(e,t){return!(t.disabled||r_(t)||rW(t)&&"hidden"===t.type||rJ(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||rZ(t))},r2=function(e,t){return!(rY(t)||0>rz(t)||!r0(e,t))},r1=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},r5=function e(t){var r=[],n=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,l=rQ(i,a),s=a?e(t.candidates):i;0===l?a?r.push.apply(r,s):r.push(i):n.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:s})}),n.sort(rU).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},r3=function(e,t){return r5((t=t||{}).getShadowRoot?rH([e],t.includeContainer,{filter:r2.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:r1}):rD(e,t.includeContainer,r2.bind(null,t)))},r4=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==rO.call(e,rR)&&r2(t,e)};function r8(e,t,r){let n,{reference:o,floating:a}=e,i=rM(t),l=r$(rM(t)),s=rT(l),c=rA(t),d="y"===i,f=o.x+o.width/2-a.width/2,u=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2;switch(c){case"top":n={x:f,y:o.y-a.height};break;case"bottom":n={x:f,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:u};break;case"left":n={x:o.x-a.width,y:u};break;default:n={x:o.x,y:o.y}}switch(rE(t)){case"start":n[l]-=p*(r&&d?-1:1);break;case"end":n[l]+=p*(r&&d?-1:1)}return n}let r6=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=r8(c,n,s),u=n,p={},g=0;for(let r=0;r<l.length;r++){let{name:a,fn:h}=l[r],{x:b,y:m,data:y,reset:v}=await h({x:d,y:f,initialPlacement:n,placement:u,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});d=b??d,f=m??f,p={...p,[a]:{...p[a],...y}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),{x:d,y:f}=r8(c,u,s)),r=-1)}return{x:d,y:f,placement:u,strategy:o,middlewareData:p}};async function r9(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:u=!1,padding:p=0}=rj(t,e),g=rI(p),h=l[u?"floating"===f?"reference":"floating":f],b=rP(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(h)))||r?h:h.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===f?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=rP(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:y,strategy:s}):m);return{top:(b.top-x.top+g.top)/v.y,bottom:(x.bottom-b.bottom+g.bottom)/v.y,left
382:(b.left-x.left+g.left)/v.x,right:(x.right-b.right+g.right)/v.x}}async function r7(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),i=rA(r),l=rE(r),s="y"===rM(r),c=["left","top"].includes(i)?-1:1,d=a&&s?-1:1,f=rj(t,e),{mainAxis:u,crossAxis:p,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),s?{x:p*d,y:u*c}:{x:u*c,y:p*d}}function ne(e){let t=rr(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=t4(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=rx(r)!==a||rx(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function nt(e){return t3(e)?e:e.contextElement}function nr(e){let t=nt(e);if(!t4(t))return rk(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ne(t),i=(a?rx(r.width):r.width)/n,l=(a?rx(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let nn=rk(0);function no(e){let t=t2(e);return re()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nn}function na(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),i=nt(e),l=rk(1);t&&(n?t3(n)&&(l=nr(n)):l=nr(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===t2(i))&&o)?no(i):rk(0),c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,f=a.width/l.x,u=a.height/l.y;if(i){let e=t2(i),t=n&&t3(n)?t2(n):n,r=e,o=ri(r);for(;o&&n&&t!==r;){let e=nr(o),t=o.getBoundingClientRect(),n=rr(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,u*=e.y,c+=a,d+=i,o=ri(r=t2(o))}}return rP({width:f,height:u,x:c,y:d})}function ni(e,t){let r=rn(e).scrollLeft;return t?t.left+r:na(t1(e)).left+r}function nl(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:ni(e,n)),y:n.top+t.scrollTop}}function ns(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=t2(e),n=t1(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;let e=re();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,r);else if("document"===t){let t,r,a,i,l,s,c;n=t1(e),t=t1(n),r=rn(n),a=n.ownerDocument.body,i=rv(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=rv(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),s=-r.scrollLeft+ni(n),c=-r.scrollTop,"rtl"===rr(a).direction&&(s+=rv(t.clientWidth,a.clientWidth)-i),o={width:i,height:l,x:s,y:c}}else if(t3(t)){let e,n,a,i,l,s;n=(e=na(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,i=t4(t)?nr(t):rk(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,o={width:l,height:s,x:a*i.x,y:n*i.y}}else{let r=no(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return rP(o)}function nc(e){return"static"===rr(e).position}function nd(e,t){if(!t4(e)||"fixed"===rr(e).position)return null;if(t)return t(e);let r=e.offsetParent;return t1(e)===r&&(r=r.ownerDocument.body),r}function nf(e,t){let r=t2(e);if(t9(e))return r;if(!t4(e)){let t=ro(e);for(;t&&!rt(t);){if(t3(t)&&!nc(t))return t;t=ro(t)}return r}let n=nd(e,t);for(;n&&["table","td","th"].includes(t0(n))&&nc(n);)n=nd(n,t);return n&&rt(n)&&nc(n)&&!t7(n)?r:n||function(e){let t=ro(e);for(;t4(t)&&!rt(t);){if(t7(t))return t;if(t9(t))break;t=ro(t)}return null}(e)||r}let nu=async function(e){let t=this.getOffsetParent||nf,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=t4(t),o=t1(t),a="fixed"===r,i=na(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=rk(0);if(n||!n&&!a)if(("body"!==t0(t)||t6(o))&&(l=rn(t)),n){let e=na(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ni(o));let c=!o||n||a?rk(0):nl(o,l);return{x:i.left+l.scrollLeft-s.x-c.x,y:i.top+l.scrollTop-s.y-c.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},np={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,i=t1(n),l=!!t&&t9(t.floating);if(n===i||l&&a)return r;let s={scrollLeft:0,scrollTop:0},c=rk(1),d=rk(0),f=t4(n);
382if((f||!f&&!a)&&(("body"!==t0(n)||t6(i))&&(s=rn(n)),t4(n))){let e=na(n);c=nr(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let u=!i||f||a?rk(0):nl(i,s,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:r.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:t1,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?t9(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=ra(e,[],!1).filter(e=>t3(e)&&"body"!==t0(e)),o=null,a="fixed"===rr(e).position,i=a?ro(e):e;for(;t3(i)&&!rt(i);){let t=rr(i),r=t7(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||t6(i)&&!r&&function e(t,r){let n=ro(t);return!(n===r||!t3(n)||rt(n))&&("fixed"===rr(n).position||e(n,r))}(e,i))?n=n.filter(e=>e!==i):o=t,i=ro(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=a[0],l=a.reduce((e,r)=>{let n=ns(t,r,o);return e.top=rv(n.top,e.top),e.right=ry(n.right,e.right),e.bottom=ry(n.bottom,e.bottom),e.left=rv(n.left,e.left),e},ns(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nf,getElementRects:nu,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ne(e);return{width:t,height:r}},getScale:nr,isElement:t3,isRTL:function(e){return"rtl"===rr(e).direction}};function ng(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nh(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=n,c=nt(e),d=o||a?[...c?ra(c):[],...ra(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let f=c&&l?function(e,t){let r=null,n,o=t1(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:u,height:p}=c;if(l||t(),!u||!p)return;let g={rootMargin:-rw(f)+"px "+-rw(o.clientWidth-(d+u))+"px "+-rw(o.clientHeight-(f+p))+"px "+-rw(d)+"px",threshold:rv(0,ry(1,s))||1},h=!0;function b(t){let r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||ng(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch{r=new IntersectionObserver(b,g)}r.observe(e)}(!0),a}(c,r):null,u=-1,p=null;i&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!s&&p.observe(c),p.observe(t));let g,h=s?na(e):null;return s&&function t(){let n=na(e);h&&!ng(h,n)&&r(),h=n,g=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(g)}}let nb=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=rj(e,t)||{};if(null==c)return{};let f=rI(d),u={x:r,y:n},p=r$(rM(o)),g=rT(p),h=await i.getDimensions(c),b="y"===p,m=b?"clientHeight":"clientWidth",y=a.reference[g]+a.reference[p]-u[p]-a.floating[g],v=u[p]-a.reference[p],x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(c)),w=x?x[m]:0;w&&await (null==i.isElement?void 0:i.isElement(x))||(w=l.floating[m]||a.floating[g]);let k=w/2-h[g]/2-1,S=ry(f[b?"top":"left"],k),C=ry(f[b?"bottom":"right"],k),j=w-h[g]-C,A=w/2-h[g]/2+(y/2-v/2),E=rv(S,ry(A,j)),$=!s.arrow&&null!=rE(o)&&A!==E&&a.reference[g]/2-(A<S?S:C)-h[g]/2<0,T=$?A<S?A-S:A-j:0;return{[p]:u[p]+T,data:{[p]:E,centerOffset:A-E-T,...$&&{alignmentOffset:T}},reset:$}}});var nm="u">typeof document?n.useLayoutEffect:n.useEffect;function ny(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ny(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(!("_owner"===r&&e.$$typeof)&&!ny(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function nv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nx(e,t){let r=nv(e);return Math.round(t*r)/r}function nw(e){let t=n.useRef(e);return nm(()=>{t.current=e}),t}function nk(e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>
382{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}let nS={...n},nC=nS.useInsertionEffect||(e=>e());function nj(e){let t=n.useRef(()=>{});return nC(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}var nA="u">typeof document?n.useLayoutEffect:n.useEffect;let nE=!1,n$=0,nT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+n$++,nM=nS.useId||function(){let[e,t]=n.useState(()=>nE?nT():void 0);return nA(()=>{null==e&&t(nT())},[]),n.useEffect(()=>{nE=!0},[]),e},nF=n.forwardRef(function(e,t){let{context:{placement:o,elements:{floating:a},middlewareData:{arrow:i,shift:l}},width:s=14,height:c=7,tipRadius:d=0,strokeWidth:f=0,staticOffset:u,stroke:p,d:g,style:{transform:h,...b}={},...m}=e,y=nM(),[v,x]=n.useState(!1);if(nA(()=>{a&&"rtl"===rr(a).direction&&x(!0)},[a]),!a)return null;let[w,k]=o.split("-"),S="top"===w||"bottom"===w,C=u;(S&&null!=l&&l.x||!S&&null!=l&&l.y)&&(C=null);let j=2*f,A=j/2,E=s/2*(-(d/8)+1),$=c/2*d/4,T=!!g,M=C&&"end"===k?"bottom":"top",F=C&&"end"===k?"right":"left";C&&v&&(F="end"===k?"left":"right");let I=(null==i?void 0:i.x)!=null?C||i.x:"",P=(null==i?void 0:i.y)!=null?C||i.y:"",R=g||"M0,0 H"+s+(" L"+(s-E))+","+(c-$)+(" Q"+s/2+","+c+" "+E)+","+(c-$)+" Z",B={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,r.jsxs)("svg",{...m,"aria-hidden":!0,ref:t,width:T?s:s+j,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[F]:I,[M]:P,[w]:S||T?"100%":"calc(100% - "+j/2+"px)",transform:[B,h].filter(e=>!!e).join(" "),...b},children:[j>0&&(0,r.jsx)("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:j+ +!g,d:R}),(0,r.jsx)("path",{stroke:j&&!g?m.fill:"none",d:R}),(0,r.jsx)("clipPath",{id:y,children:(0,r.jsx)("rect",{x:-A,y:A*(T?-1:1),width:s+j,height:s})})]})}),nI=n.createContext(null),nP=n.createContext(null),nR=()=>{var e;return(null==(e=n.useContext(nI))?void 0:e.id)||null};function nB(e){return"data-floating-ui-"+e}function nO(e){let t=(0,n.useRef)(e);return nA(()=>{t.current=e}),t}let nN=0;function n_(e,t){void 0===t&&(t={});let{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(nN);let a=()=>null==e?void 0:e.focus({preventScroll:r});o?a():nN=requestAnimationFrame(a)}function nL(e,t){var r;let n=[],o=null==(r=e.find(e=>e.id===t))?void 0:r.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}function nD(e,t){let r=e.filter(e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)}),n=r;for(;n.length;)n=e.filter(e=>{var t;return null==(t=n)?void 0:t.some(t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)})}),r=r.concat(n);return r}let nH=new WeakMap,nq=new WeakSet,nz={},nQ=0,nU=e=>e&&(e.host||nU(e.parentNode));function nW(e,t,r){var n,o;let a,i,l,s,c,d,f;void 0===t&&(t=!1),void 0===r&&(r=!1);let u=ru(e[0]).body;return n=e.concat(Array.from(u.querySelectorAll("[aria-live]"))),o=t,a="data-floating-ui-inert",i=r?"inert":o?"aria-hidden":null,l=n.map(e=>{if(u.contains(e))return e;let t=nU(e);return u.contains(t)?t:null}).filter(e=>null!=e),s=new Set,c=new Set(l),d=[],nz[a]||(nz[a]=new WeakMap),f=nz[a],l.forEach(function e(t){!t||s.has(t)||(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||c.has(t)||[].forEach.call(t.children,t=>{if("script"!==t0(t))if(s.has(t))e(t);else{let e=i?t.getAttribute(i):null,r=null!==e&&"false"!==e,n=nH.get(t)||0,o=i?n+1:n,l=(f.get(t)||0)+1;nH.set(t,o),f.set(t,l),d.push(t),1===o&&r&&nq.add(t),1===l&&t.setAttribute(a,""),!r&&i&&t.setAttribute(i,"true")}})}(u),s.clear(),nQ++,()=>{d.forEach(e=>{let t=nH.get(e)||0,r=i?t-1:t,n=(f.get(e)||0)-1;nH.set(e,r),f.set(e,n),r||(!nq.has(e)&&i&&e.removeAttribute(i),nq.delete(e)),n||e.removeAttribute(a)}),--nQ||(nH=new WeakMap,nH=new WeakMap,nq=new WeakSet,nz={})}}let nK=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nV(e,t){let r=r3(e,nK());"prev"===t&&r.reverse();let n=r.indexOf(rl(ru(e)));return r.slice(n+1)[0]}function nY(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!rs(r,n)}let nG={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function nX(e){"Tab"===e.key&&(e.target,clearTimeout(t))}let nJ=n.forwardRef(function(e,t){let[o,a]=n.useState();nA(()=>(/apple/i.test(navigator.vendor)&&a("button"),document.addEventListener("keydown",nX),()=>{document.removeEventListener("keydown",nX)}),[]);let i={ref:t,tabIndex:0,role:o,"aria-hidden":!o||void 0,[nB("focus-guard")]:"",style:nG};return(0,r.jsx)("span",{...e,...i})}),nZ=n.createContext(null),n0="data-floating-ui-focusable";function n2(e){return e?e.hasAttribute(n0)?e:e.querySelector("["+n0+"]")||e:null}let n1=[];function n5(e){n1=n1.filter(e=>e.isConnected),e&&"body"!==t0(e)&&(n1.push(e),n1.length>20&&(n1=n1.slice(-20)))}function n3(){return n1.slice().reverse().find(e=>e.isConnected)}let n4=n.forwardRef(function(e,t){return(0,r.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:nG})});
382function n8(e){let{context:t,children:o,disabled:a=!1,order:i=["content"],guards:l=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:p=!0,outsideElementsInert:g=!1}=e,{open:h,onOpenChange:b,events:m,dataRef:y,elements:{domReference:v,floating:x}}=t,w=nj(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),k="number"==typeof s&&s<0,S=!!v&&"combobox"===v.getAttribute("role")&&rh(v)&&k,C="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,j=!C||l,A=!j||C&&g,E=nO(i),$=nO(s),T=nO(c),M=n.useContext(nP),F=n.useContext(nZ),I=n.useRef(null),P=n.useRef(null),R=n.useRef(!1),B=n.useRef(!1),O=n.useRef(-1),N=null!=F,_=n2(x),L=nj(function(e){return void 0===e&&(e=_),e?r3(e,nK()):[]}),D=nj(e=>{let t=L(e);return E.current.map(e=>v&&"reference"===e?v:_&&"floating"===e?_:t).filter(Boolean).flat()});n.useEffect(()=>{if(a||!f)return;function e(e){if("Tab"===e.key){rs(_,rl(ru(_)))&&0===L().length&&!S&&rb(e);let t=D(),r=rg(e);"reference"===E.current[0]&&r===v&&(rb(e),e.shiftKey?n_(t[t.length-1]):n_(t[1])),"floating"===E.current[1]&&r===_&&e.shiftKey&&(rb(e),n_(t[0]))}}let t=ru(_);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[a,v,_,f,E,S,L,D]),n.useEffect(()=>{if(!a&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){let t=rg(e),r=L().indexOf(t);-1!==r&&(O.current=r)}},[a,x,L]),n.useEffect(()=>{if(!a&&p&&x&&t4(v))return v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)};function e(){B.current=!0,setTimeout(()=>{B.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let r=w(),n=!(rs(v,t)||rs(x,t)||rs(t,x)||rs(null==F?void 0:F.portalNode,t)||null!=t&&t.hasAttribute(nB("focus-guard"))||M&&(nD(M.nodesRef.current,r).find(e=>{var r,n;return rs(null==(r=e.context)?void 0:r.elements.floating,t)||rs(null==(n=e.context)?void 0:n.elements.domReference,t)})||nL(M.nodesRef.current,r).find(e=>{var r,n,o;return[null==(r=e.context)?void 0:r.elements.floating,n2(null==(n=e.context)?void 0:n.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(d&&n&&rl(ru(_))===ru(_).body){t4(_)&&_.focus();let e=O.current,t=L(),r=t[e]||t[t.length-1]||_;t4(r)&&r.focus()}(S||!f)&&t&&n&&!B.current&&t!==n3()&&(R.current=!0,b(!1,e,"focus-out"))})}},[a,v,x,_,f,M,F,b,p,d,L,S,w]);let H=n.useRef(null),q=n.useRef(null),z=nk([H,null==F?void 0:F.beforeInsideRef]),Q=nk([q,null==F?void 0:F.afterInsideRef]);function U(e){return!a&&u&&f?(0,r.jsx)(n4,{ref:"start"===e?I:P,onClick:e=>b(!1,e.nativeEvent),children:"string"==typeof u?u:"Dismiss"}):null}n.useEffect(()=>{var e;if(a||!x)return;let t=[x,...Array.from((null==F||null==(e=F.portalNode)?void 0:e.querySelectorAll("["+nB("portal")+"]"))||[]),...M&&!f?nL(null==M?void 0:M.nodesRef.current,w()).map(e=>{var t;return null==(t=e.context)?void 0:t.elements.floating}):[],I.current,P.current,H.current,q.current,null==F?void 0:F.beforeOutsideRef.current,null==F?void 0:F.afterOutsideRef.current,E.current.includes("reference")||S?v:null].filter(e=>null!=e),r=f||S?nW(t,!A,A):nW(t);return()=>{r()}},[a,v,x,f,E,F,S,j,A,M,w]),nA(()=>{if(a||!t4(_))return;let e=rl(ru(_));queueMicrotask(()=>{let t=D(_),r=$.current,n=("number"==typeof r?t[r]:r.current)||_,o=rs(_,e);k||o||!h||n_(n,{preventScroll:n===_})})},[a,h,_,k,D,$]),nA(()=>{if(a||!_)return;let e=!1,t=ru(_),r=rl(t),n=y.current.openEvent;function o(t){let{open:r,reason:o,event:a,nested:i}=t;r&&(n=a),"escape-key"===o&&v&&n5(v),["hover","safe-polygon"].includes(o)&&"mouseleave"===a.type&&(R.current=!0),"outside-press"===o&&(i?(R.current=!1,e=!0):R.current=!(0===a.mozInputSource&&a.isTrusted||(rd()&&a.pointerType?"click"===a.type&&1===a.buttons:0===a.detail&&!a.pointerType)||!rc().includes("jsdom/")&&(!rd()&&0===a.width&&0===a.height||rd()&&1===a.width&&1===a.height&&0===a.pressure&&0===a.detail&&"mouse"===a.pointerType||a.width<1&&a.height<1&&0===a.pressure&&0===a.detail&&"touch"===a.pointerType)))}n5(r),m.on("openchange",o);let i=t.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,nG),N&&v&&v.insertAdjacentElement("afterend",i),()=>{m.off("openchange",o);let r=rl(t),a=rs(x,r)||M&&nD(M.nodesRef.current,w()).some(e=>{var t;return rs(null==(t=e.context)?void 0:t.elements.floating,r)});
382(a||n&&["click","mousedown"].includes(n.type))&&v&&n5(v);let l="boolean"==typeof T.current?n3()||i:T.current.current||i;queueMicrotask(()=>{let n,o=r4(l,n=nK())?l:r3(l,n)[0]||l;T.current&&!R.current&&t4(o)&&(o===r||r===t.body||a)&&o.focus({preventScroll:e}),i.remove()})}},[a,x,_,T,y,m,M,N,v,w]),n.useEffect(()=>{queueMicrotask(()=>{R.current=!1})},[a]),nA(()=>{if(!a&&F)return F.setFocusManagerState({modal:f,closeOnFocusOut:p,open:h,onOpenChange:b,domReference:v}),()=>{F.setFocusManagerState(null)}},[a,F,f,h,b,p,v]),nA(()=>{if(a||!_||"function"!=typeof MutationObserver||k)return;let e=()=>{let e=_.getAttribute("tabindex"),t=L(),r=rl(ru(x)),n=t.indexOf(r);-1!==n&&(O.current=n),E.current.includes("floating")||r!==v&&0===t.length?"0"!==e&&_.setAttribute("tabindex","0"):"-1"!==e&&_.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(_,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[a,x,_,v,E,L,k]);let W=!a&&j&&(!f||!S)&&(N||f);return(0,r.jsxs)(r.Fragment,{children:[W&&(0,r.jsx)(nJ,{"data-type":"inside",ref:z,onFocus:e=>{if(f){let e=D();n_("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(R.current=!1,nY(e,F.portalNode)){let e=nV(document.body,"next")||v;null==e||e.focus()}else{var t;null==(t=F.beforeOutsideRef.current)||t.focus()}}}),!S&&U("start"),o,U("end"),W&&(0,r.jsx)(nJ,{"data-type":"inside",ref:Q,onFocus:e=>{if(f)n_(D()[0]);else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(p&&(R.current=!0),nY(e,F.portalNode)){let e=nV(document.body,"prev")||v;null==e||e.focus()}else{var t;null==(t=F.afterOutsideRef.current)||t.focus()}}})]})}function n6(e){return t4(e.target)&&"BUTTON"===e.target.tagName}let n9={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},n7={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},oe=e=>{var t,r;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}},ot="active",or="selected";function on(e,t,r){let n=new Map,o="item"===r,a=e;if(o&&e){let{[ot]:t,[or]:r,...n}=e;a=n}return{..."floating"===r&&{tabIndex:-1,[n0]:""},...a,...t.map(t=>{let n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[r,a]=t;if(!(o&&[ot,or].includes(r)))if(0===r.indexOf("on")){if(n.has(r)||n.set(r,[]),"function"==typeof a){var i;null==(i=n.get(r))||i.push(a),e[r]=function(){for(var e,t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=n.get(r))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[r]=a}),e),{})}}let oo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oa(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}function oi({target:e,menu:t,offset:o=2,styles:a,allowedPlacements:i,zIndex:l=0x3b9ac9ff,withoutStyles:s=!1,classNames:c,...d}){var f,u,p,g,h,b,m,y;let v,x,w,k,S,C,j=function(e){let[t,r]=(0,n.useState)(),o=()=>{let e=function(){return od()||oc()}();null!=e&&e.range||r(null)};return(0,n.useLayoutEffect)(()=>{let t=()=>{var t,n,o,a;let i="string"==typeof(t=e)?document.querySelectorAll(t):[null==t?void 0:t.current].filter(
382Boolean),l=function(){return od()||oc()}();n=i,o=l,null!=n&&n.length&&(null==(a=Array.from(n))?void 0:a.some(e=>null!=o&&!!o.baseNode&&(null==e?void 0:e.contains(o.baseNode))))&&r(l)},n=()=>{t(),window.dispatchEvent(new CustomEvent("scroll"))};return document.addEventListener("mouseup",t),document.addEventListener("selectionchange",o),window.addEventListener("resize",t),document.addEventListener("scroll",n,{capture:!0}),()=>{document.removeEventListener("mouseup",t),document.removeEventListener("selectionchange",o),window.removeEventListener("resize",t),document.removeEventListener("scroll",n,{capture:!0})}},[e]),t}(e),[A,E]=(0,n.useState)(null),$=ol(null==j?void 0:j.range),T=(0,n.useRef)(null),M=s?{}:((e={})=>{let t={borderStyle:"solid",borderWidth:1,borderColor:"#CCC",backgroundColor:"#FFFFFF",boxShadow:"0px 5px 5px 0px rgba(0, 0, 0, 0.15)",borderRadius:5,padding:5,margin:0,display:"flex",gap:5,...e};return t.margin=-(t.borderWidth??0),t})(a),F=s?0:M.borderWidth,{refs:I,floatingStyles:P,context:R}=function(e){void 0===e&&(e={});let{nodeId:t}=e,r=function(e){let{open:t=!1,onOpenChange:r,elements:o}=e,a=nM(),i=n.useRef({}),[l]=n.useState(()=>{let e;return e=new Map,{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}),s=null!=nR(),[c,d]=n.useState(o.reference),f=nj((e,t,n)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)}),u=n.useMemo(()=>({setPositionReference:d}),[]),p=n.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return n.useMemo(()=>({dataRef:i,open:t,onOpenChange:f,elements:p,events:l,floatingId:a,refs:u}),[t,f,p,l,a,u])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,a=o.elements,[i,l]=n.useState(null),[s,c]=n.useState(null),d=(null==a?void 0:a.domReference)||i,f=n.useRef(null),u=n.useContext(nP);nA(()=>{d&&(f.current=d)},[d]);let p=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,u]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=n.useState(o);ny(p,o)||g(o);let[h,b]=n.useState(null),[m,y]=n.useState(null),v=n.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),x=n.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),w=i||h,k=l||m,S=n.useRef(null),C=n.useRef(null),j=n.useRef(f),A=null!=c,E=nw(c),$=nw(a),T=nw(d),M=n.useCallback(()=>{var e,n;let o,a,i;if(!S.current||!C.current)return;let l={placement:t,strategy:r,middleware:p};$.current&&(l.platform=$.current),(e=S.current,n=C.current,o=new Map,i={...(a={platform:np,...l}).platform,_c:o},r6(e,n,{...a,platform:i})).then(e=>{let t={...e,isPositioned:!1!==T.current};F.current&&!ny(j.current,t)&&(j.current=t,tJ.flushSync(()=>{u(t)}))})},[p,t,r,$,T]);nm(()=>{!1===d&&j.current.isPositioned&&(j.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[d]);let F=n.useRef(!1);nm(()=>(F.current=!0,()=>{F.current=!1}),[]),nm(()=>{if(w&&(S.current=w),k&&(C.current=k),w&&k){if(E.current)return E.current(w,k,M);M()}},[w,k,M,E,A]);let I=n.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:x}),[v,x]),P=n.useMemo(()=>({reference:w,floating:k}),[w,k]),R=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!P.floating)return e;let t=nx(P.floating,f.x),n=nx(P.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...nv(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,P.floating,f.x,f.y]);return n.useMemo(()=>({...f,update:M,refs:I,elements:P,floatingStyles:R}),[f,M,I,P,R])}({...e,elements:{...a,...s&&{reference:s}}}),g=n.useCallback(e=>{let t=t3(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),h=n.useCallback(e=>{(t3(e)||null===e)&&(f.current=e,l(e)),(t3(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!t3(e))&&p.refs.setReference(e)},[p.refs]),b=n.useMemo(()=>({...p.refs,setReference:h,setPositionReference:g,domReference:f}),[p.refs,h,g]),m=n.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),y=n.useMemo(()=>({...p,...o,refs:b,elements:m,nodeId:t}),[p,b,m,t,o]);return nA(()=>{o.dataRef.current.floatingContext=y;let e=null==u?void 0:u.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),n.useMemo(()=>({...p,context:y,refs:b,elements:m}),[p,b,m,y])}({open:!!A,middleware:[{...(void 0===(u=f=o+5+F)&&(u=0),{name:"offset",options:u,async fn(e){var t,r;let{x:n,y:o,placement:a,middlewareData:i}=e,l=await r7(e,u);return a===(null==(t=i.offset)?void 0:t.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:a}}}}),options:[f,void 0]},{...{name:"autoPlacement",options:g=p={allowedPlacements:i},async fn(e){var t,r,n,o,a,i,l;let s,c,d,f,{rects:u,middlewareData:p,placement:h,platform:b,elements:m}=e,{crossAxis:y=!1,alignment:v,allowedPlacements:x=rm,autoAlignment:w=!0,...k}=rj(g,e),S=void 0!==v||x===rm?((o=v||null)?[...x.filter(e=>rE(e)===o),...x.filter(e=>rE(e)!==o)]:x.filter(e=>rA(e)===e)).filter(e=>!o||rE(e)===o||!!w&&e.replace(/start|end/g,e=>rC[e])!==e):x,C=await r9(e,k),j=(null==(t=p.autoPlacement)?void 0:t.index)||0,A=S[j];if(null==A)return{};let E=(a=A,i=u,void 0===(l=await (null==b.isRTL?void 0:b.isRTL(m.floating)))&&(l=!1),s=rE(a),d=rT(c=r$(rM(a))),f="x"===c?s===(l?"end":"start")?"right":"left":"start"===s?"bottom":"top",i.reference[d]>i.floating[d]&&(f=rF(f)),[f,rF(f)]);if(h!==A)return{reset:{placement:S[0]}};let $=[C[rA(A)],C[E[0]],C[E[1]]],T=[...(null==(r=p.autoPlacement)?void 0:r.overflows)||[],{placement:A,overflows:$}],M=S[j+1];if(M)return{data:{index:j+1,overflows:T},reset:{placement:M}};let F=T.map(e=>{let t=rE(e.placement);return[e.placement,t&&y?e.overflows.slice(0,2).reduce((e,t)=>
382e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),I=(null==(n=F.filter(e=>e[2].slice(0,rE(e[0])?2:3).every(e=>e<=0))[0])?void 0:n[0])||F[0][0];return I!==h?{data:{index:j+1,overflows:T},reset:{placement:I}}:{}}},options:[p,void 0]},{...(h=void 0,{name:"shift",options:h={},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=rj(h,e),s={x:t,y:r},c=await r9(e,l),d=rM(rA(n)),f=r$(d),u=s[f],p=s[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=u+c[e],n=u-c[t];u=rv(r,ry(u,n))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+c[e],n=p-c[t];p=rv(r,ry(p,n))}let g=i.fn({...e,[f]:u,[d]:p});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[f]:o,[d]:a}}}}}),options:[void 0,void 0]},{...{name:"arrow",options:m=b={element:T},fn(e){let{element:t,padding:r}="function"==typeof m?m(e):m;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?nb({element:t.current,padding:r}).fn(e):{}:t?nb({element:t,padding:r}).fn(e):{}}},options:[b,void 0]}],whileElementsMounted:nh}),{getReferenceProps:B,getFloatingProps:O}=(v=(y=[function(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:l=!0,event:s="click",toggle:c=!0,ignoreMouse:d=!1,keyboardHandlers:f=!0,stickIfOpen:u=!0}=t,p=n.useRef(),g=n.useRef(!1),h=n.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current;0===e.button&&"click"!==s&&(rf(t,!0)&&d||(r&&c&&(!(a.current.openEvent&&u)||"mousedown"===a.current.openEvent.type)?o(!1,e.nativeEvent,"click"):(e.preventDefault(),o(!0,e.nativeEvent,"click"))))},onClick(e){let t=p.current;if("mousedown"===s&&p.current){p.current=void 0;return}rf(t,!0)&&d||(r&&c&&(!(a.current.openEvent&&u)||"click"===a.current.openEvent.type)?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||n6(e)||(" "!==e.key||rh(i)||(e.preventDefault(),g.current=!0),"Enter"===e.key&&o(!(r&&c),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||n6(e)||rh(i)||" "===e.key&&g.current&&(g.current=!1,o(!(r&&c),e.nativeEvent,"click"))}}),[a,i,s,d,f,o,r,u,c]);return n.useMemo(()=>l?{reference:h}:{},[l,h])}(R),function(e,t){void 0===t&&(t={});let{open:r,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:l=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:h}=t,b=n.useContext(nP),m=nj("function"==typeof c?c:()=>!1),y="function"==typeof c?m:c,v=n.useRef(!1),x=n.useRef(!1),{escapeKey:w,outsidePress:k}=oe(g),{escapeKey:S,outsidePress:C}=oe(h),j=n.useRef(!1),A=nj(e=>{var t;if(!r||!l||!s||"Escape"!==e.key||j.current)return;let n=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=b?nD(b.nodesRef.current,n):[];if(!w&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach(t=>{var r;if(null!=(r=t.context)&&r.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}o(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),E=nj(e=>{var t;let r=()=>{var t;A(e),null==(t=rg(e))||t.removeEventListener("keydown",r)};null==(t=rg(e))||t.addEventListener("keydown",r)}),$=nj(e=>{var t;let r=v.current;v.current=!1;let n=x.current;if(x.current=!1,"click"===d&&n||r||"function"==typeof y&&!y(e))return;let l=rg(e),s="["+nB("inert")+"]",c=ru(a.floating).querySelectorAll(s),f=t3(l)?l:null;for(;f&&!rt(f);){let e=ro(f);if(rt(e)||!t3(e))break;f=e}if(c.length&&t3(l)&&!l.matches("html,body")&&!rs(l,a.floating)&&Array.from(c).every(e=>!rs(f,e)))return;if(t4(l)&&F){let t=rt(l),r=rr(l),n=/auto|scroll/,o=t||n.test(r.overflowX),a=t||n.test(r.overflowY),i=o&&l.clientWidth>0&&l.scrollWidth>l.clientWidth,s=a&&l.clientHeight>0&&l.scrollHeight>l.clientHeight,c="rtl"===r.direction,d=s&&(c?e.offsetX<=l.offsetWidth-l.clientWidth:e.offsetX>l.clientWidth),f=i&&e.offsetY>l.clientHeight;if(d||f)return}let u=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=b&&nD(b.nodesRef.current,u).some(t=>{var r;return rp(e,null==(r=t.context)?void 0:r.elements.floating)});if(rp(e,a.floating)||rp(e,a.domReference)||p)return;let g=b?nD(b.nodesRef.current,u):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var r;if(null!=(r=t.context)&&r.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}o(!1,e,"outside-press")}),T=nj(e=>{var t;let r=()=>{var t;$(e),null==(t=rg(e))||t.removeEventListener(d,r)};null==(t=rg(e))||t.addEventListener(d,r)});n.useEffect(()=>{if(!r||!l)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=k;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),j.current=!0}function c(){e=window.setTimeout(()=>{j.current=!1},5*!!re())}let f=ru(a.floating);
382s&&(f.addEventListener("keydown",S?E:A,S),f.addEventListener("compositionstart",n),f.addEventListener("compositionend",c)),y&&f.addEventListener(d,C?T:$,C);let u=[];return p&&(t3(a.domReference)&&(u=ra(a.domReference)),t3(a.floating)&&(u=u.concat(ra(a.floating))),!t3(a.reference)&&a.reference&&a.reference.contextElement&&(u=u.concat(ra(a.reference.contextElement)))),(u=u.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",S?E:A,S),f.removeEventListener("compositionstart",n),f.removeEventListener("compositionend",c)),y&&f.removeEventListener(d,C?T:$,C),u.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,a,s,y,d,r,o,p,l,w,k,A,S,E,$,C,T]),n.useEffect(()=>{v.current=!1},[y,d]);let M=n.useMemo(()=>({onKeyDown:A,...f&&{[n9[u]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[A,o,f,u]),F=n.useMemo(()=>({onKeyDown:A,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[n7[d]]:()=>{v.current=!0}}),[A,d]);return n.useMemo(()=>l?{reference:M,floating:F}:{},[l,M,F])}(R),function(e,t){var r;void 0===t&&(t={});let{open:o,floatingId:a}=e,{enabled:i=!0,role:l="dialog"}=t,s=null!=(r=oo.get(l))?r:l,c=nM(),d=null!=nR(),f=n.useMemo(()=>"tooltip"===s||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:o?a:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":o?a:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:c},..."menu"===s&&d&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},[s,a,d,o,c,l]),u=n.useMemo(()=>{let e={id:a,...s&&{role:s}};return"tooltip"===s||"label"===l?e:{...e,..."menu"===s&&{"aria-labelledby":c}}},[s,a,c,l]),p=n.useCallback(e=>{let{active:t,selected:r}=e,n={role:"option",...t&&{id:a+"-option"}};switch(l){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}},[a,l]);return n.useMemo(()=>i?{reference:f,floating:u,item:p}:{},[i,f,u,p])}(R)]).map(e=>null==e?void 0:e.reference),x=y.map(e=>null==e?void 0:e.floating),w=y.map(e=>null==e?void 0:e.item),k=n.useCallback(e=>on(e,y,"reference"),v),S=n.useCallback(e=>on(e,y,"floating"),x),C=n.useCallback(e=>on(e,y,"item"),w),n.useMemo(()=>({getReferenceProps:k,getFloatingProps:S,getItemProps:C}),[k,S,C])),N=nM();return(0,n.useEffect)(()=>{E($)},[JSON.stringify($)]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rhm-anchor",ref:I.setReference,style:{...$,position:"fixed",userSelect:"none",pointerEvents:"none"},...B()}),A&&j&&(0,r.jsx)(n8,{context:R,modal:!1,initialFocus:-1,children:(0,r.jsxs)("div",{className:oa("rhm-popover",null==c?void 0:c.popover),ref:I.setFloating,style:{...P,zIndex:l},"aria-labelledby":N,...O(),onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,r.jsx)("div",{className:oa("rhm-menu",null==c?void 0:c.menu),style:M,...d,children:t({...j,setMenuOpen:E,setClipboard:os})}),(0,r.jsx)(nF,{className:oa("rhm-arrow",null==c?void 0:c.arrow),ref:T,context:R,width:10,height:5,stroke:M.borderColor,fill:M.backgroundColor,strokeWidth:F})]})})]})}let ol=e=>{if(!e)return null;let{top:t,left:r,width:n,height:o}=(null==e?void 0:e.getBoundingClientRect())??{};return{top:t,left:r,width:n,height:o}},os=(e,t,r)=>!!(null!=navigator&&navigator.clipboard)&&!!e&&navigator.clipboard.writeText(e).then(()=>(t&&t(),!0)).catch(e=>(r&&r(e),!1));function oc(){var e,t;let r=null==document?void 0:document.activeElement,n=null==(t=null==(e=null==r?void 0:r.value)?void 0:e.substring)?void 0:t.call(e,(null==r?void 0:r.selectionStart)||0,(null==r?void 0:r.selectionEnd)||0);return n?{baseNode:r,extentNode:r,range:r,selectedText:n}:null}function od(){var e,t;if(null!=(t=null==(e=null==window?void 0:window.getSelection)?void 0:e.call(window))&&t.isCollapsed)return null;let r=new XMLSerializer,n=null==window?void 0:window.getSelection(),o=null==n?void 0:n.getRangeAt(0),a=null==o?void 0:o.cloneContents(),i=r.serializeToString(a),l=null==n?void 0:n.toString();return{baseNode:null==n?void 0:n.anchorNode,extentNode:null==n?void 0:n.focusNode,range:o,selectedHtml:i,selectedText:l}}var of=e.i(551956);let ou=o.styled.div.withConfig({displayName:"SelectedHighlightMenu__Wrapper",componentId:"sc-d7fa35bc-0"})`
383  .rhm-popover {
384    overflow: hidden;
385    background-color: ${({theme:e})=>e.colorPageBg} !important;
386    border-radius: ${({theme:e})=>e.borderRadius}px !important;
387
388    .rhm-menu {
389      border: none !important;
390      padding: 0 !important;
391      height: 35px;
392      background-color: ${({theme:e})=>e.colorFillContent} !important;
393    }
394
395    .rhm-arrow {
396      display: none;
397    }
398  }
399`,op=o.styled.div.withConfig({displayName:"SelectedHighlightMenu__MenuWrapper",componentId:"sc-d7fa35bc-1"})`
400  display: flex;
401  align-items: center;
402  gap: 4px;
403`,og=o.styled.div.withConfig({displayName:"SelectedHighlightMenu__MenuButton",componentId:"sc-d7fa35bc-2"})`
404  height: 100%;
405  cursor: pointer;
406  transition: all ease-in-out 0.2s;
407  display: flex;
408  align-items: center;
409  gap: 4px;
410  padding: 0 8px;
411
412  &:hover {
413    background-color: ${({theme:e})=>e.colorFillContentHover} !important;
414  }
415`,oh=(0,n.forwardRef)((e,t)=>{let{target:n,onMenuClick:o}=e;return(0,r.jsx)(ou,{children:(0,r.jsx)(oi,{offset:2,target:t||n,allowedPlacements:["top"],menu:({selectedText:e,setMenuOpen:t})=>(0,r.jsx)(op,{children:(0,r.jsxs)(og,{onClick:()=>{t(!1),o?.({selectedText:e})},children:[(0,r.jsx)(tG.IconFont,{type:"aishengcheng",size:20,color:"#69b1ff"}),(0,r.jsxs)("span",{children:["向",of.brandName,"提问"]})]})})})})});var ob=e.i(855700),om=e.i(126229);let oy=(0,n.memo)(e=>{let{url:t}=e;return(0,r.jsx)(om.Video,{style:{width:"100%"},src:t})});var ov=e.i(146051),ox=e.i(41112);let ow=o.styled.div.withConfig({displayName:"Doc__DocScrollWrapper",componentId:"sc-da109ddc-0"})`
416  flex: 1;
417  align-self: stretch;
418  display: flex;
419  flex-direction: column;
420  width: 100%;
421  min-height: 0;
422  overflow: auto;
423  -webkit-overflow-scrolling: touch;
424`,ok=(0,n.memo)(e=>{let{url:t}
424=e,[o,a]=(0,n.useState)("");return(0,n.useEffect)(()=>{(async()=>{let{success:e,data:r}=await (0,ox.ossConvertPreviewUrlApi)({oss_url:t});e&&a(r.preview_url)})()},[t]),(0,r.jsx)(ow,{children:(0,r.jsx)(ov.Iframe,{url:o})})});var oS=e.i(318727),oC=e.i(605383);let oj=(0,n.memo)(e=>{let{url:t,filePath:o}=e,[a,i]=(0,n.useState)(""),{workspaceFileUrls:l}=(0,tV.useAppStoreSelector)(e=>({workspaceFileUrls:e.workspaceFileUrls}));(0,n.useEffect)(()=>{let e=new AbortController;return i(""),(0,oS.getFileContent)(t,{signal:e.signal}).then(e=>(e?.type==="text"&&i(e.content),e)),()=>e.abort()},[t]);let s=(0,n.useMemo)(()=>(0,oC.resolveWorkspaceUrls)(a,l,o),[a,l,o]);return(0,r.jsx)(ov.Iframe,{html:s})});var oA=e.i(20164),oE=e.i(12447),o$=e.i(164998);let oT=o.styled.div.withConfig({displayName:"Slide__Layout",componentId:"sc-dd08cba3-0"})`
425  display: flex;
426  width: 100%;
427  height: 100%;
428  font-size: 0;
429
430  .ant-skeleton {
431    flex: 1;
432    padding: 0 !important;
433
434    .ant-skeleton-node {
435      width: 100% !important;
436      height: 100% !important;
437      border-radius: initial !important;
438    }
439  }
440`,oM=(0,o.styled)(o$.ScrollShadow).withConfig({displayName:"Slide__Sidebar",componentId:"sc-dd08cba3-1"})`
441  width: 160px;
442  flex-shrink: 0;
443  overflow-y: auto;
444  background: ${({theme:e})=>e.colorSecondaryBg};
445  padding: 8px;
446  display: flex;
447  flex-direction: column;
448  gap: 8px;
449
450  @media (max-width: 768px) {
451    display: none;
452  }
453
454  &::-webkit-scrollbar {
455    width: 4px;
456  }
457  &::-webkit-scrollbar-thumb {
458    background: ${({theme:e})=>e.colorBorder};
459    border-radius: 2px;
460  }
461`,oF=o.styled.div.withConfig({displayName:"Slide__ThumbItem",componentId:"sc-dd08cba3-2"})`
462  display: flex;
463  cursor: pointer;
464  border-radius: 4px;
465  overflow: hidden;
466  min-height: 80px;
467  background: ${({theme:e})=>e.colorQuaternaryBg};
468  border: 2px solid ${e=>e.$active?e.theme.colorBrand:"transparent"};
469  opacity: ${e=>e.$active?1:.65};
470  transition: all 0.3s ease-in-out;
471  &:hover {
472    opacity: 1;
473  }
474
475  img {
476    object-fit: contain !important;
477  }
478
479  svg {
480    width: 100%;
481    height: auto;
482    display: block;
483  }
484`,oI=o.styled.div.withConfig({displayName:"Slide__ThumbNum",componentId:"sc-dd08cba3-3"})`
485  text-align: center;
486  font-size: 12px;
487  margin-top: 4px;
488  font-weight: ${({$active:e})=>e?"bold":"normal"};
489  color: ${({theme:e,$active:t})=>t?e.colorBrand:e.colorTextTertiary};
490`,oP=o.styled.div.withConfig({displayName:"Slide__MainArea",componentId:"sc-dd08cba3-4"})`
491  flex: 1;
492  display: flex;
493  flex-direction: column;
494  background: ${({theme:e})=>e.colorQuaternaryBg};
495  overflow: hidden;
496
497  @media (max-width: 768px) {
498    display: none;
499  }
500
501  img {
502    object-fit: contain !important;
503  }
504`,oR=o.styled.div.withConfig({displayName:"Slide__MobileScrollArea",componentId:"sc-dd08cba3-5"})`
505  display: none;
506  flex-direction: column;
507  overflow-y: auto;
508  gap: 8px;
509  padding: 8px;
510  background: ${({theme:e})=>e.colorQuaternaryBg};
511  width: 100%;
512
513  @media (max-width: 768px) {
514    display: flex;
515  }
516
517  svg {
518    width: 100% !important;
519    height: auto !important;
520  }
521`,oB=o.styled.div.withConfig({displayName:"Slide__SlideView",componentId:"sc-dd08cba3-6"})`
522  flex: 1;
523  overflow: hidden;
524  display: flex;
525  align-items: center;
526  justify-content: center;
527  padding: 8px;
528  min-height: 0;
529
530  svg {
531    width: 100% !important;
532    height: auto !important;
533    max-width: 100%;
534    max-height: 100%;
535    display: block;
536  }
537`,oO=o.styled.div.withConfig({displayName:"Slide__SkeletonNodeWrapper",componentId:"sc-dd08cba3-7"})`
538  width: 100%;
539  height: 100%;
540
541  .ant-skeleton.ant-skeleton-element {
542    width: 100%;
543    height: 100%;
544    padding: 0;
545  }
546`,oN=(0,n.memo)(({url:e,initialPage:t,onIsCompleted:o})=>{let[a,i]=(0,n.useState)(null),[l,s]=(0,n.useState)(0),c=(0,n.useRef)([]);if((0,n.useEffect)(()=>{c.current[l]?.scrollIntoView({block:"center",behavior:"smooth"})},[l,a]),(0,n.useEffect)(()=>{let r;if(!e)return;s(null!=t?t-1:0);let n=async()=>{let t=await fetch(e,{cache:"no-cache"}),a=await t.json();a&&(0,oE.default)(a)&&(i(a),(0,oA.default)(a.is_completed)&&(o?.(a.is_completed),a.is_completed||(r=setTimeout(n,2e3))))};return n(),()=>clearTimeout(r)},[t,o,e]),(0,n.useEffect)(()=>{if(!a)return;let e=e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?s(e=>Math.max(0,e-1)):("ArrowRight"===e.key||"ArrowDown"===e.key)&&s(e=>Math.min(a.files.length-1,e+1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a]),!a)return(0,r.jsx)(oO,{children:(0,r.jsx)(tO.Skeleton.Node,{active:!0,style:{width:"100%",height:"100%",borderRadius:"initial"}})});let d=a?.files[l];return(0,r.jsxs)(oT,{children:[(0,r.jsx)(oM,{size:8,children:a?.files.map((e,t)=>(0,r.jsxs)("div",{ref:e=>{c.current[t]=e},children:[(0,r.jsxs)(oF,{$active:t===l,onClick:()=>s(t),children:[!e.content&&(0,r.jsx)(tO.Skeleton.Node,{active:!0,style:{flex:1}}),e.content&&(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})]}),(0,r.jsx)(oI,{$active:t===l,children:t+1})]},e.id))}),(0,r.jsxs)(oP,{children:[!d?.content&&(0,r.jsx)(tO.Skeleton.Node,{active:!0,style:{flex:1}}),d?.content&&(0,r.jsx)(oB,{dangerouslySetInnerHTML:{__html:d?.content}})]}),(0,r.jsx)(oR,{children:a?.files.map(e=>(0,r.jsxs)("div",{children:[!e.content&&(0,r.jsx)(tO.Skeleton.Node,{active:!0,style:{width:"100%",height:200}}),e.content&&(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})]},e.id))})]})}),o_=o.styled.div.withConfig({displayName:"FilePreview__Wrapper",componentId:"sc-414ff205-0"})`
547  flex: 1;
548  width: 100%;
549  height: 100%;
550  display: flex;
551`,oL=(0,n.memo)(e=>{let{className:t,url:n,filePath:o,initialPage:a,onIsCompleted:i}=e,l=(e=>{let t=e.match(/^data:([^;,]+)/);if(t){let e=t[1];
551return({"image/png":"png","image/jpg":"jpg","image/jpeg":"jpeg","image/gif":"gif","image/bmp":"bmp","image/webp":"webp","image/svg+xml":"svg","video/mp4":"mp4","application/pdf":"pdf"})[e]||e.split("/").at(-1)||""}return e.split(".").at(-1)||""})(n);return(0,r.jsx)(o_,{className:t,children:[...tY.fileExtension.word,...tY.fileExtension.excel,...tY.fileExtension.ppt,...tY.fileExtension.pdf].includes(l)?(0,r.jsx)(ok,{url:n}):tY.fileExtension.html.includes(l)?(0,r.jsx)(oj,{url:n,filePath:o}):tY.fileExtension.images.includes(l)?(0,r.jsx)(ob.ImageViewer,{centered:!0,url:n}):tY.fileExtension.video.includes(l)?(0,r.jsx)(oy,{url:n}):tY.fileExtension.slide.includes(l)?(0,r.jsx)(oN,{url:n,initialPage:a,onIsCompleted:i}):(0,r.jsx)(tL.Result,{subTitle:`暂不支持 .${l} 文件类型预览。`})})});var oD=e.i(871854);let oH=o.styled.div.withConfig({displayName:"FilePreviewModal__Wrapper",componentId:"sc-a58220d6-0"})`
552  width: 100%;
553  height: 100%;
554  display: flex;
555  flex-direction: column;
556  word-break: break-all;
557  transition: all ease-in-out 0.2s;
558  overflow: hidden;
559
560  .ant-result {
561    padding-top: 20%;
562  }
563
564  .ant-skeleton-image {
565    border-radius: initial !important;
566    background-color: initial !important;
567  }
568
569  .ant-skeleton-active {
570    flex: 1;
571    padding: 16px;
572  }
573
574  .render-file-markdown {
575    flex: 1;
576    padding: 16px;
577    overflow: auto;
578    background-color: ${({theme:e})=>e.colorFillQuaternary};
579  }
580
581  .markdown {
582    max-width: 70%;
583    min-width: 570px;
584    margin: 0 auto;
585    box-sizing: border-box;
586
587    .ant-highlighter {
588      margin: 0;
589    }
590  }
591`,oq=o.createGlobalStyle`
592  @media (max-width: 768px) {
593    .file-preview-modal.ant-modal {
594      width: 100% !important;
595      height: 100% !important;
596      max-width: 100% !important;
597      min-width: 100% !important;
598      margin: 0 !important;
599      top: 0;
600      padding-bottom: 0;
601      
602      .ant-modal-container {
603        border-radius: 0 !important;
604      }
605
606      .ant-modal-body {
607        height: 100%;
608        border-radius: 0;
609        padding: 0;
610      }
611    }
612    
613    .ant-space-item:has(.full-screen-btn) {
614      display: none !important;
615    }
616    
617    .markdown {
618      max-width: 100% !important;
619      min-width: 100% !important;
620    }
621  }
622`,oz=o.styled.div.withConfig({displayName:"FilePreviewModal__Header",componentId:"sc-a58220d6-1"})`
623  padding: 0 16px;
624  height: 56px;
625  display: flex;
626  align-items: center;
627  column-gap: 8px;
628  border-bottom: 1px solid ${({theme:e})=>e.colorBorder};
629`,oQ=o.styled.div.withConfig({displayName:"FilePreviewModal__Content",componentId:"sc-a58220d6-2"})`
630  flex: 1;
631  display: flex;
632  overflow: hidden;
633`,oU=o.styled.div.withConfig({displayName:"FilePreviewModal__Container",componentId:"sc-a58220d6-3"})`
634  flex: 1;
635  display: flex;
636  overflow: auto;
637`,oW=(0,o.styled)(tB.motion.div).withConfig({displayName:"FilePreviewModal__HistoryArea",componentId:"sc-a58220d6-4"})`
638  height: 100%;
639  width: 240px;
640  display: flex;
641  flex-direction: column;
642  border-left: 1px solid ${({theme:e})=>e.colorBorder};
643  background: ${({theme:e})=>e.colorBgContainer};
644`,oK=o.styled.div.withConfig({displayName:"FilePreviewModal__HistoryList",componentId:"sc-a58220d6-5"})`
645  flex: 1;
646  overflow-y: auto;
647`,oV=o.styled.div.withConfig({displayName:"FilePreviewModal__HistoryHeader",componentId:"sc-a58220d6-6"})`
648  display: flex;
649  align-items: center;
650  justify-content: space-between;
651  padding: 8px;
652  border-bottom: 1px solid ${({theme:e})=>e.colorBorder};
653  font-weight: 600;
654`,oY=o.styled.div.withConfig({displayName:"FilePreviewModal__HistoryItem",componentId:"sc-a58220d6-7"})`
655  display: flex;
656  flex-direction: column;
657  margin-bottom: 2px;
658  gap: 4px;
659  padding: 8px;
660  cursor: pointer;
661  transition: all 0.3s ease-in-out;
662  border-left: 3px solid ${({theme:e,$active:t})=>t?e.colorPrimary:"transparent"};
663
664  &:hover {
665    background: ${({theme:e})=>e.colorFillQuaternary};
666  }
667`,oG=o.styled.div.withConfig({displayName:"FilePreviewModal__HistoryTime",componentId:"sc-a58220d6-8"})`
668  font-size: 14px;
669  font-weight: 500;
670`,oX=o.styled.div.withConfig({displayName:"FilePreviewModal__HistoryVersion",componentId:"sc-a58220d6-9"})`
671  font-size: 12px;
672  color: ${({theme:e})=>e.colorTextDescription};
673`,oJ=o.styled.div.withConfig({displayName:"FilePreviewModal__FileInfo",componentId:"sc-a58220d6-10"})`
674  flex: 1;
675  min-width: 0;
676  display: flex;
677  align-items: center;
678  gap: 4px;
679`,oZ=o.styled.div.withConfig({displayName:"FilePreviewModal__FileNameBox",componentId:"sc-a58220d6-11"})`
680  flex: 1;
681  display: flex;
682  flex-direction: column;
683  justify-content: center;
684  column-gap: 8px;
685  overflow: hidden;
686`,o0=o.styled.div.withConfig({displayName:"FilePreviewModal__FileName",componentId:"sc-a58220d6-12"})`
687  flex: 1;
688  font-size: 16px;
689  font-weight: bold;
690  white-space: nowrap;
691  overflow: hidden;
692  text-overflow: ellipsis;
693`,o2=o.styled.div.withConfig({displayName:"FilePreviewModal__Description",componentId:"sc-a58220d6-13"})`
694  flex: 1;
695  font-size: 12px;
696  white-space: nowrap;
697  overflow: hidden;
698  text-overflow: ellipsis;
699  color: ${({theme:e})=>e.colorTextDescription};
700`,o1="progress",o5=(0,n.forwardRef)((e,t)=>{let o=(0,v.useQueryClient)(),i=(0,w.usePathname)(),{message:l,modal:s}=a.App.useApp(),{onClose:c,...d}
700=e,[f,u]=(0,n.useState)(!1),[p,g]=(0,n.useState)(),{versionId:h,conversationId:b,filePath:m="",fileName:y="",fileUrl:x="",fileContent:k="",isAddSpace:S=!0,onAskAi:C,onCloseParentModal:j}=p||{},[A,E]=(0,n.useState)(!1),[$,T]=(0,n.useState)(!1),[M,F]=(0,n.useState)(!1),[I,P]=(0,n.useState)(),[R,B]=(0,n.useState)([]),[O,N]=(0,n.useState)(!1),[_,L]=(0,n.useState)(!1),D=(0,n.useRef)(null),{workspaceFileUrls:H}=(0,tV.useAppStoreSelector)(e=>({workspaceFileUrls:e.workspaceFileUrls})),q="share"===i.split("/").at(1),z=!q&&!!C,Q=[{key:"source",label:"源文件",icon:(0,r.jsx)(tX.FileIcon,{fileName:y,className:"anticon ant-dropdown-menu-item-icon"})},{key:"slide-pdf",label:"PDF",disabled:!["slide"].includes((0,oS.getFileExtension)(x)||""),icon:(0,r.jsx)(tX.FileIcon,{fileSuffix:".pdf",className:"anticon ant-dropdown-menu-item-icon"})},{key:"slide-pptx",label:"PPTX",disabled:!["slide"].includes((0,oS.getFileExtension)(x)||""),icon:(0,r.jsx)(tX.FileIcon,{fileSuffix:".pptx",className:"anticon ant-dropdown-menu-item-icon"})},{key:"pdf",label:"PDF",disabled:!["md","html"].includes((0,oS.getFileExtension)(x)||""),icon:(0,r.jsx)(tX.FileIcon,{fileSuffix:".pdf",className:"anticon ant-dropdown-menu-item-icon"})},{key:"docx",label:"Docx",disabled:!["md","html"].includes((0,oS.getFileExtension)(x)||""),icon:(0,r.jsx)(tX.FileIcon,{fileSuffix:".docx",className:"anticon ant-dropdown-menu-item-icon"})}].filter(e=>!e.disabled),U=(0,n.useMemo)(()=>!q&&S&&"slide"!==(0,oS.getFileExtension)(x),[x,S,q]),W=(0,n.useMemo)(()=>b&&h&&m,[b,m,h]),K=(0,n.useMemo)(()=>{if("slide"===(0,oS.getFileExtension)(x))return".ppt"},[x]),V=(0,n.useCallback)(async(e,t,r)=>{L(!0);let{success:n,data:o}=await (0,ox.fileVersionListApi)({file_path:r,conversation_id:e,current_version_id:t});if(L(!1),n){B(o);let e=o.find(e=>e.is_current);e&&g(t=>({...t,fileUrl:e.oss_url}))}},[]),Y=e=>{let t=(0,oS.getFileExtension)(e),r=Object.values(tY.fileExtension).flat();return t&&r.includes(t)},G=()=>{u(!1),c?.()},X=async({key:e})=>{let t=e=>{let{responseText:t}=e.event.target;t.split("\n\n").filter(e=>""!==e.trim()).forEach(async e=>{if(e.startsWith("data:")){let t=e.replace(/^data:\s*/,"");try{let e=JSON.parse(t);if(l.open({key:o1,duration:0,icon:(0,r.jsx)(tq.Spin,{percent:e?.progress||0}),content:(0,r.jsx)("span",{children:e?.message})}),"completed"===e.status){let t=y.split(".").at(0),r=(0,oS.getFileExtension)(e.oss_url);await (0,oS.downloadFile)(e.oss_url,`${t}.${r}`),l.destroy(o1)}else"error"===e.status&&(l.destroy(o1),l.error(e.message))}catch(e){l.destroy(o1)}}})};if("source"===e){l.open({type:"loading",content:"正在下载...",duration:0});let e=k&&"markdown"===(0,oS.getLanguage)(x)?(0,oC.resolveWorkspaceUrls)(k,H,m):"";e?(0,oS.downloadTextContent)(e,y):await (0,oS.downloadFile)(x,y),l.destroy()}else if("slide-pdf"===e||"slide-pptx"===e){l.open({type:"loading",content:"正在下载...",duration:0});let t=e.split("-")[1];await (0,ox.convertSlideApi)({oss_url:x,output_format:t}),l.destroy()}else{let n=(0,oS.getFileExtension)(x);l.open({key:o1,duration:0,icon:(0,r.jsx)(tz.LoadingOutlined,{spin:!0}),content:(0,r.jsx)("span",{children:"准备中…"})}),"md"===n?(0,ox.convertMarkdownApi)({oss_url:x,output_format:e,conversation_id:b},{onDownloadProgress:t}).catch(e=>{l.destroy(o1)}):"html"===n&&(0,ox.convertHtmlApi)({oss_url:x,output_format:e,conversation_id:b},{onDownloadProgress:t}).catch(e=>{l.destroy(o1)})}},J=(0,n.useCallback)(async e=>{if(Y(e))g(t=>({...t,fileUrl:e}));else{F(!0);let t=await (0,oS.getFileContent)(e);F(!1),t&&"stream"!==t.type&&g(r=>({...r,fileUrl:e,fileContent:t.content}))}},[]),Z=(0,n.useCallback)(e=>{T(!e),P(e?"":"正在生成中…")},[]),ee=(0,n.useCallback)(()=>{let e=(0,oS.getLanguage)(x)||"";return Y(x)?(0,r.jsx)(oL,{url:x,filePath:m,initialPage:p?.initialPage,onIsCompleted:Z}):k||M?(0,r.jsxs)(tO.Skeleton,{active:!0,loading:M,title:!1,paragraph:{rows:3},children:["markdown"!==e&&(0,r.jsx)(oD.CodeHighlighter,{language:e,children:k}),"markdown"===e&&(0,r.jsx)(tK.Markdown,{className:"render-file-markdown",lang:e,content:k,fileUrls:H,filePath:m})]}):(0,r.jsx)(tL.Result,{status:"warning",subTitle:"未获取到文件内容。"})},[k,p?.initialPage,m,x,M,Z,H]);return(0,n.useImperativeHandle)(t,()=>({show:async e=>{if(Y(e.fileUrl))u(!0),P(e.description),g(e);else{F(!0);let t=await (0,oS.getFileContent)(e.fileUrl);if(!t||"stream"===t.type){F(!1);let t=l.loading("此文件不可预览,下载中…",0);await (0,oS.downloadFile)(e.fileUrl,e.fileName),t();return}u(!0),P(e.description),g({...e,fileContent:t.content}),F(!1)}},close:G})),(0,n.useEffect)(()=>{f||(E(!1),T(!1),g(void 0),P(""),N(!1),B([]))},[f]),(0,n.useEffect)(()=>
700{if(!_&&O){let e=D.current?.querySelector('[data-active="true"]');e?.scrollIntoView({block:"start",behavior:"smooth"})}},[_,O,x]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oq,{}),(0,r.jsx)(tN.Modal,{centered:!0,width:"80%",height:"90%",open:f,zIndex:1200,title:null,footer:null,closable:!1,onCancel:G,destroyOnHidden:!0,style:{minWidth:600},className:`file-preview-modal ${A?"full-screen-modal":""}`,...d,children:(0,r.jsxs)(oH,{children:[(0,r.jsxs)(oz,{children:[(0,r.jsxs)(oJ,{children:[(0,r.jsx)(tX.FileIcon,{fileName:y,fileSuffix:K,size:22}),(0,r.jsxs)(oZ,{children:[(0,r.jsx)(o0,{children:y}),I&&(0,r.jsx)(o2,{children:I})]})]}),(0,r.jsxs)(tD.Space,{children:[U&&(0,r.jsx)(tW.Tooltip,{arrow:!1,title:"添加至个人空间",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"add-space-btn",onClick:()=>{s.confirm({title:"添加至个人空间",icon:(0,r.jsx)(tQ.QuestionCircleOutlined,{}),content:"是否将此文件添加至个人空间?",okText:"确认",cancelText:"取消",onOk:async()=>{let{success:e}=await (0,ox.favoriteByUrlApi)({file_name:y,oss_url:x});e&&(o.invalidateQueries({queryKey:["space-files"]}),l.success("添加成功"))}})},icon:(0,r.jsx)(tG.IconFont,{type:"space"})})}),W&&(0,r.jsx)(tW.Tooltip,{arrow:!1,title:"历史记录",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"history-btn",onClick:()=>{N(e=>!e),O||V(b,h,m)},icon:(0,r.jsx)(tG.IconFont,{type:"file-history"})})}),(0,r.jsx)(tH.Dropdown,{disabled:$,placement:"bottomRight",styles:{root:{width:"180px"}},menu:{items:Q,onClick:X},children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"download-btn",icon:(0,r.jsx)(tG.IconFont,{type:"xiazai"})})}),(0,r.jsx)(tW.Tooltip,{arrow:!1,title:A?"最小化":"最大化",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"full-screen-btn",onClick:()=>E(!A),icon:(0,r.jsx)(tG.IconFont,{type:A?"xiaoping":"quanping"})})}),(0,r.jsx)(tW.Tooltip,{arrow:!1,title:"关闭",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"close-btn",onClick:G,icon:(0,r.jsx)(tG.IconFont,{type:"guanbi"})})})]})]}),(0,r.jsxs)(oQ,{children:[(0,r.jsx)(oU,{className:"file-container",children:ee()}),O&&(0,r.jsxs)(oW,{initial:{width:0,opacity:0},animate:{width:240,opacity:1},exit:{width:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},children:[(0,r.jsxs)(oV,{children:[(0,r.jsx)("span",{children:"历史记录"}),(0,r.jsx)(t_.Button,{size:"small",onClick:()=>N(!1),children:"返回"})]}),(0,r.jsx)(oK,{ref:D,children:_?(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:24,marginTop:50},children:(0,r.jsx)(tz.LoadingOutlined,{spin:!0})}):R.map(e=>(0,r.jsxs)(oY,{$active:x===e.oss_url,"data-active":x===e.oss_url,onClick:()=>J(e.oss_url),children:[(0,r.jsx)(oG,{children:(0,tU.default)(e.created_at).format("YYYY-MM-DD HH:mm")}),(0,r.jsxs)(oX,{children:["v",e.version_number]})]},e.version_id))})]})]}),z&&(0,r.jsx)(oh,{target:".file-container",onMenuClick:e=>{G(),j?.(),setTimeout(()=>{let t=y?.replaceAll('"',"&quot;")||"",r=e.selectedText?.replaceAll('"',"&quot;")||"",n=`<span contenteditable="false" class="file-tag" data-name="${t}" data-url="${x}" data-keyword="${r}">${y}</>`;C?.({fileName:y,fileUrl:x,content:n+" "})},400)}})]})})]})}),o3=(0,n.memo)(o5);var o4=e.i(982256),o8=e.i(793963),o6=e.i(260350),o9=e.i(270377),o7=e.i(88653),ae=e.i(6705),at=e.i(674765);let ar=o.createGlobalStyle`
701  @media (max-width: 768px) {
702    .file-preview-modal.ant-modal {
703      width: 100% !important;
704      height: 100% !important;
705      max-width: 100% !important;
706      min-width: 100% !important;
707      margin: 0 !important;
708      top: 0;
709      padding-bottom: 0;
710
711      .ant-modal-container {
712        padding: 0;
713        border-radius: 0 !important;
714      }
715
716      .ant-modal-body {
717        height: 100%;
718        border-radius: 0;
719        padding: 0;
720      }
721    }
722
723    .ant-space-item:has(.full-screen-btn) {
724      display: none !important;
725    }
726  }
727`,an=o.styled.div.withConfig({displayName:"SkillPreviewModal__Wrapper",componentId:"sc-9286bf83-0"})`
728  width: 100%;
729  height: 100%;
730  display: flex;
731  flex-direction: column;
732  word-break: break-all;
733  transition: all ease-in-out 0.2s;
734  overflow: hidden;
735  position: relative;
736
737  .ant-result {
738    padding-top: 20%;
739  }
740
741  .ant-skeleton-image {
742    border-radius: initial !important;
743    background-color: initial !important;
744  }
745
746  .ant-skeleton-active {
747  }
748
749  .render-file-markdown {
750    min-height: 100%;
751  }
752
753  .markdown {
754    box-sizing: border-box;
755
756    .ant-highlighter {
757      margin: 0;
758    }
759  }
760`,ao=o.styled.div.withConfig({displayName:"SkillPreviewModal__Hero",componentId:"sc-9286bf83-1"})`
761  position: relative;
762  /* 展开态给右上角操作按钮留出一行,避免封面顶上去和按钮重叠 */
763  display: flex;
764  flex-direction: column;
765  padding: ${({$collapsed:e})=>e?"15px 16px":"56px 16px 16px"};
766  row-gap: ${({$collapsed:e})=>e?"0":"16px"};
767  transition: ${({$transitionEnabled:e=!0})=>e?"padding 0.2s ease-in-out":"none"};
768  border-bottom: 1px solid ${({theme:e})=>e.colorBorder};
769
770  @media (max-width: 768px) {
771    padding: ${({$collapsed:e})=>e?"15px 16px":"48px 16px 16px"};
772  }
773`,aa=(0,o.styled)(tD.Space).withConfig({displayName:"SkillPreviewModal__HeroActions",componentId:"sc-9286bf83-2"})`
774  position: absolute;
775  top: 12px;
776  right: 12px;
777  z-index: 2;
778`,ai=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroMain",componentId:"sc-9286bf83-3"})`
779  display: flex;
780  align-items: flex-start;
781  column-gap: 16px;
782`,al=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroInfo",componentId:"sc-9286bf83-4"})`
783  flex: 1;
784  min-width: 0;
785  display: flex;
786  flex-direction: column;
787  row-gap: 8px;
788`,as=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroTitle",componentId:"sc-9286bf83-5"})`
789  font-size: ${({$collapsed:e})=>e?"16px":"22px"};
790  transition: ${({$transitionEnabled:e=!0})=>e?"font-size 0.2s ease-in-out":"none"};
791  font-weight: 600;
792  word-break: break-word;
793  color: ${({theme:e})=>e.colorText};
794`,ac=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroMeta",componentId:"sc-9286bf83-6"})`
795  display: flex;
796  align-items: center;
797  flex-wrap: wrap;
798  gap: 8px 16px;
799  font-size: 12px;
800  color: ${({theme:e})=>e.colorTextTertiary};
801
802  .meta-item {
803    display: flex;
804    align-items: center;
805    column-gap: 4px;
806  }
807`,ad=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroArt",componentId:"sc-9286bf83-7"})`
808  height: 132px;
809  flex: none;
810  display: flex;
811  align-items: center;
812  justify-content: center;
813  margin-right: 16px;
814  color: ${({theme:e})=>e.colorTextQuaternary};
815
816  /* 封面略微倾斜,和技能商店的封面卡呼应 */
817  img {
818    width: 100%;
819    height: 100%;
820    object-fit: contain;
821    border-radius: ${({theme:e})=>e.borderRadius}px;
822    transform: rotate(6deg);
823  }
824
825  @media (max-width: 768px) {
826    display: none;
827  }
828`,af=(0,o.styled)(tB.motion.div).withConfig({displayName:"SkillPreviewModal__HeroExtra",componentId:"sc-9286bf83-8"})`
829  display: flex;
830  flex-direction: column;
831  row-gap: 16px;
832  overflow: hidden;
833`,au=o.styled.div.withConfig({displayName:"SkillPreviewModal__HeroDescription",componentId:"sc-9286bf83-9"})`
834  font-size: 14px;
835  line-height: 1.7;
836  word-break: break-word;
837  color: ${({theme:e})=>e.colorTextSecondary};
838`,ap=o.styled.div.withConfig({displayName:"SkillPreviewModal__Container",componentId:"sc-9286bf83-10"})`
839  flex: 1;
840  min-height: 0;
841  display: flex;
842  overflow: hidden;
843  position: relative;
844`,ag=o.styled.div.withConfig({displayName:"SkillPreviewModal__FilesBox",componentId:"sc-9286bf83-11"})`
845  width: 300px;
846  height: 100%;
847  overflow: auto;
848  padding: 8px 8px 0;
849  border-right: 1px solid ${({theme:e})=>e.colorBorder};
850
851  &::after {
852    content: '';
853    display: block;
854    height: 8px;
855  }
856
857  @media (max-width: 768px) {
858    position: absolute;
859    top: 0;
860    left: 0;
861    bottom: 0;
862    width: 70%;
863    height: auto;
864    z-index: 10;
865    border-right: 1px solid ${({theme:e})=>e.colorBorder};
866    background: ${({theme:e})=>
866e.colorBgContainer};
867    transform: translateX(${({$mobileVisible:e})=>e?"0":"-100%"});
868    transition: transform 0.25s ease-in-out;
869  }
870`,ah=o.styled.div.withConfig({displayName:"SkillPreviewModal__DrawerOverlay",componentId:"sc-9286bf83-12"})`
871  display: none;
872
873  @media (max-width: 768px) {
874    display: block;
875    position: absolute;
876    top: 0;
877    left: 0;
878    right: 0;
879    bottom: 0;
880    z-index: 9;
881    background: rgba(0, 0, 0, 0.45);
882    opacity: ${({$visible:e})=>+!!e};
883    pointer-events: ${({$visible:e})=>e?"auto":"none"};
884    transition: opacity 0.25s ease-in-out;
885  }
886`,ab=o.styled.div.withConfig({displayName:"SkillPreviewModal__FileContainer",componentId:"sc-9286bf83-13"})`
887  flex: 1;
888  min-height: 0;
889  padding: 8px;
890  overflow: auto;
891  word-break: break-all;
892`,am=o.styled.div.withConfig({displayName:"SkillPreviewModal__SkeletonFileList",componentId:"sc-9286bf83-14"})`
893  display: flex;
894  flex-direction: column;
895  row-gap: 14px;
896  padding: 8px 4px;
897`,ay=(0,o.styled)(t_.Button).withConfig({displayName:"SkillPreviewModal__MobileMenuBtn",componentId:"sc-9286bf83-15"})`
898  display: none !important;
899
900  @media (max-width: 768px) {
901    display: inline-flex !important;
902  }
903`,av=(0,o.styled)(o4.FileTree).withConfig({displayName:"SkillPreviewModal__FilesTree",componentId:"sc-9286bf83-16"})`
904  font-size: 14px;
905  padding: 0;
906
907  .anticon {
908    font-size: 18px;
909    transition: 0.2s ease-in-out;
910  }
911`,ax=(0,o.styled)(o8.Folder).withConfig({displayName:"SkillPreviewModal__FileFolder",componentId:"sc-9286bf83-17"})`
912  padding: 4px;
913`,aw=(0,o.styled)(o6.File).withConfig({displayName:"SkillPreviewModal__FileItemBox",componentId:"sc-9286bf83-18"})`
914  display: flex;
915  align-items: center;
916  cursor: pointer;
917  padding: 4px;
918  margin: 1px 0;
919  transition: 0.2s ease-in-out;
920  border-radius: ${({theme:e})=>e.borderRadius}px;
921  background-color: ${({theme:e,$active:t})=>t?e.colorFillTertiary:"transparent"};
922
923  &:hover {
924    background-color: ${({theme:e})=>e.colorFillTertiary};
925  }
926
927  span:last-child:not(.anticon) {
928    flex: 1;
929    text-overflow: ellipsis;
930    white-space: nowrap;
931    overflow: hidden;
932  }
933`,ak=(e,t)=>{let r=e.includes("/")?e.substring(0,e.lastIndexOf("/")):"",n=(r?`${r}/${t}`:t).split("/"),o=[];for(let e of n)"."!==e&&""!==e&&(".."===e?o.pop():o.push(e));return o.join("/")};function aS(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ao,{children:[(0,r.jsxs)(ai,{children:[(0,r.jsxs)(al,{children:[(0,r.jsx)(tO.Skeleton.Input,{active:!0,size:"small",style:{width:220}}),(0,r.jsx)(tO.Skeleton,{active:!0,title:!1,paragraph:{rows:1}}),(0,r.jsx)(tO.Skeleton.Button,{active:!0,style:{width:120}})]}),(0,r.jsx)(ad,{children:(0,r.jsx)(tO.Skeleton.Button,{active:!0,style:{width:132,height:132,borderRadius:8}})})]}),(0,r.jsx)(tO.Skeleton,{active:!0,title:!1,paragraph:{rows:2}})]}),(0,r.jsxs)(ap,{children:[(0,r.jsx)(ag,{children:(0,r.jsx)(am,{children:(0,r.jsx)(tO.Skeleton,{active:!0,title:!1,paragraph:{rows:3}})})}),(0,r.jsx)(ab,{children:(0,r.jsx)(tO.Skeleton,{active:!0,paragraph:{rows:8}})})]})]})}let aC=(0,n.forwardRef)((t,o)=>{let{onClose:i,...l}=t,s=(0,w.usePathname)(),{modal:c,message:d}=a.App.useApp(),{transmitterState:f,userInfo:u,setStore:p}=(0,tV.useAppStoreSelector)(e=>({transmitterState:e.transmitterState,userInfo:e.userInfo,setStore:e.setStore})),g=(0,tk.useIsDarkTheme)(),[h,b]=(0,n.useState)(!1),[m,y]=(0,n.useState)(),{skillName:v="",skillUrl:
933x="",skillId:k="",isAddSkill:S=!0,onDeleted:C,onCloseParentModal:j}=m||{},[A,E]=(0,n.useState)(null),[$,T]=(0,n.useState)(0),[M,F]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),[R,B]=(0,n.useState)(""),[O,N]=(0,n.useState)(()=>new Set),[_,L]=(0,n.useState)(""),[D,H]=(0,n.useState)(!1),[q,z]=(0,n.useState)(!1),Q=(0,n.useRef)(null),U=(0,n.useRef)(null),W=(0,n.useRef)(!1),K=(0,n.useRef)(null),V=(0,n.useRef)(!1),Y=(0,n.useRef)(null),G=(0,n.useRef)(!1),X=(0,n.useRef)(null),[J,Z]=(0,n.useState)(""),[ee,et]=(0,n.useState)(!1),[er,en]=(0,n.useState)(!0),[eo,ea]=(0,n.useState)(!1),[ei,el]=(0,n.useState)(!1),[es,ec]=(0,n.useState)(!1),ed="share"===s.split("/").at(1),ef=!!(k||v)&&!es,eu=(0,n.useMemo)(()=>!ed&&S,[S,ed]),ep=!ed&&!!A?.skillId,eg=(0,n.useMemo)(()=>{let e=s.split("/").at(1);return"app"===e||"conversation"===e},[s]),eh=(0,n.useMemo)(()=>A?.ownerType===void 0?"":0===A.ownerType?"官方":"个人",[A?.ownerType]),eb=(0,n.useMemo)(()=>!ed&&A?.ownerType!==void 0&&(!!u?.is_admin||0!==A.ownerType&&!!A.userId&&A.userId===u?.user_id),[ed,A?.ownerType,A?.userId,u?.is_admin,u?.user_id]),em=(0,n.useMemo)(()=>{let e=[{key:"download",label:"下载"}];return eb&&e.push({key:"delete",label:"删除",className:"danger-menu-item"}),e},[eb]),ey=x||A?.fileUrl||"",ev=(0,ae.skillCategoryLabel)(A?.category),ex=A?.fileSize||$,ew=(A?.showName||v).split(".").at(0),ek=/\.(zip|skill)$/i.test(v)?v:`${ew}.zip`,eS=e=>{let t=(0,oS.getFileExtension)(e)?.toLowerCase();return t&&tY.fileExtension.images.includes(t)},eC=()=>{b(!1),i?.()},ej=async e=>{if(A?.isAdded&&A?.isEnabled)return!0;let t=A?.isAdded,{success:r,data:n,message:o}=await (0,ox.addSkillApi)({skill_id:e});return r?(E(e=>({...e||{},isAdded:!0,isEnabled:n?.is_enabled??!0})),d.success(t?"已启用该技能":"已添加到我的技能并启用"),!0):(d.error(o||"添加技能失败"),!1)},eA=async()=>{let e=k||A?.skillId;if(e){ea(!0);let t=await ej(e);if(ea(!1),!t)return}p({transmitterState:{message:"",attachments:[],...f||{},selectedSkill:{skillUrl:ey,skillId:k||A?.skillId||"",skillName:A?.showName||v,description:A?.description,iconUrl:A?.imageUrl,ownerType:A?.ownerType}}}),j?.(),eC(),eg||(0,at.goPage)("/app")},eE=async t=>{let r=t.split("/").filter(Boolean),n=r.slice(0,-1).map((e,t)=>r.slice(0,t+1).join("/"));N(e=>{let t=new Set(e);return n.forEach(e=>t.add(e)),t.size===e.size?e:t}),B(t),H(!0),L(""),V.current=ee,K.current?.scrollTo({top:0}),z(!1);let o=await fetch(ey,{cache:"no-cache"}),a=await o.arrayBuffer(),i=(await e.A(495004)).default,l=(await i.loadAsync(a)).file(t);if(l)if(eS(t)){let e=await l.async("base64"),r=(0,oS.getFileExtension)(t)?.toLowerCase(),n="svg"===r?"image/svg+xml":`image/${r}`;L(`data:${n};base64,${e}`)}else{let e=await l.async("string");if(L(e),t.toLowerCase().endsWith("skill.md")){let{name:t,description:r}=(0,tR.parseSkillFrontmatter)(e);(t||r)&&E(e=>({...e||{},showName:e?.showName||t,description:e?.description||r}))}}H(!1)},e$=e=>e?Object.values(e).sort((e,t)=>e&&t?"directory"===e.type&&"directory"!==t.type?-1:"directory"!==e.type&&"directory"===t.type?1:e.name.localeCompare(t.name):0).map(e=>{if(!e)return null;if("directory"===e.type&&e.children){let t=O.has(e.path);return(0,r.jsx)(ax,{name:e.name,title:e.name,defaultOpen:t,children:e$(e.children)},`${e.path}:${t}`)}return(0,r.jsx)(aw,{name:e.name,title:e.name,$active:R===e.path,"data-selected":R===e.path?"true":void 0,onClick:()=>void eE(e.path)},e.path)}):null,eT=async({key:e})=>{"download"===e&&(d.open({type:"loading",content:"正在下载...",duration:0}),await (0,oS.downloadFile)(ey,ek),d.destroy()),"delete"===e&&c.confirm({title:"删除技能",icon:(0,r.jsx)(o9.ExclamationCircleOutlined,{}),content:A?.ownerType===0?`确定要删除官方技能 ${ew} 吗?删除后所有用户都不可再使用,且不可恢复。`:`确定要删除技能 ${ew} 吗?删除后不可恢复。`,okText:"确认",cancelText:"取消",okButtonProps:{danger:!0},onOk:async()=>{let{success:e}=await (0,ox.skillsRemoveApi)({skill_id:k});e&&(d.success(`已删除技能 ${ew}`),C?.(),eC())}})},eM=()=>{let e=K.current;if(!e)return;null!==Y.current&&window.cancelAnimationFrame(Y.current),G.current=!0;
933let t=e.scrollTop,r=0,n=()=>{let o=e.scrollTop;if(o===t?r+=1:(t=o,r=0),r>=8){G.current=!1,Y.current=null;let t=e.scrollTop>40;t!==ee&&(en(!1),et(t),window.requestAnimationFrame(()=>en(!0)));return}Y.current=window.requestAnimationFrame(n)};Y.current=window.requestAnimationFrame(n)},eF=e=>{let t=e.target.closest("a");if(!t)return;let r=t.getAttribute("href");if(!r||/^https?:\/\//i.test(r)||r.startsWith("mailto:"))return;if(e.preventDefault(),r.startsWith("#")){let e=decodeURIComponent(r.slice(1)),t=Q.current?.querySelector(`[id="${e}"]`);if(t&&K.current){let e=K.current.getBoundingClientRect().top,r=t.getBoundingClientRect().top;eM(),K.current.scrollTo({top:K.current.scrollTop+(r-e)-8,behavior:"smooth"})}return}let n=r.indexOf("#");-1!==n?(Z(decodeURIComponent(r.substring(n+1))),eE(ak(R,r.substring(0,n)))):eE(ak(R,r))},eI=()=>{V.current=!1,et(!1)};return(0,n.useImperativeHandle)(o,()=>({show:e=>{b(!0),y(e)},close:eC})),(0,n.useEffect)(()=>{h&&(k||ew)&&(async()=>{let e=await (0,tR.fetchSkillDetail)({skillId:k,skillName:ew});el(!!k&&!e),ec(!0),e&&E(t=>({...t||{},...e}))})()},[h,k,ew]),(0,n.useEffect)(()=>{(async()=>{if(ey){let e=await (0,tR.unzipToDirectoryTree)(ey),t=e?.tree||null;if(W.current=!1,P(t),T(e?.size||0),t){let e=(e=>{let t=Object.values(e).find(e=>"SKILL.md"===e.name);if(t)return t.path;let r=Object.values(e).find(e=>"file"===e.type);if(r)return r.path;let n=Object.values(e).filter(e=>"directory"===e.type&&e.children);for(let e of n){let t=Object.values(e.children).find(e=>"SKILL.md"===e.name);if(t)return t.path}for(let e of n){let t=Object.values(e.children).find(e=>"file"===e.type);if(t)return t.path}return null})(t);e&&eE(e)}}})()},[ey]),(0,n.useEffect)(()=>{if(!R||ef)return;let e=window.requestAnimationFrame(()=>{let e=U.current,t=e?.querySelector('[data-selected="true"]');if(!e||!t||!e.clientHeight)return;let r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=Math.min(24,Math.max(0,(e.clientHeight-n.height)/2)),a=r.top+e.clientTop+o,i=r.top+e.clientTop+e.clientHeight-o,l=0;n.top<a?l=n.top-a:n.bottom>i&&(l=n.bottom-i),0!==l&&e.scrollTo({top:Math.max(0,e.scrollTop+l),behavior:W.current?"smooth":"instant"}),W.current=!0});return()=>window.cancelAnimationFrame(e)},[R,I,ef]),(0,n.useEffect)(()=>{if(D||!_)return;let e=setTimeout(()=>{if(Q.current&&(Q.current.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(e=>{e.id||(e.id=(e.textContent||"").toLowerCase().trim().replace(/[\s_]+/g,"-").replace(/[^\wÀ-￿-]/g,"").replace(/^-+|-+$/g,""))}),J&&K.current)){let e=Q.current.querySelector(`[id="${J}"]`);if(e){let t=K.current.getBoundingClientRect().top,r=e.getBoundingClientRect().top;eM(),K.current.scrollTo({top:K.current.scrollTop+(r-t)-8,behavior:"smooth"})}Z("")}},100);return()=>clearTimeout(e)},[D,_]),(0,n.useEffect)(()=>{h||(F(!1),y(void 0),P(null),W.current=!1,B(""),N(new Set),L(""),z(!1),Z(""),E(null),T(0),V.current=!1,G.current=!1,null!==Y.current&&(window.cancelAnimationFrame(Y.current),Y.current=null),X.current=null,en(!0),et(!1),ea(!1),el(!1),ec(!1))},[h]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ar,{}),(0,r.jsx)(tN.Modal,{centered:!0,width:"80%",height:"90%",open:h,zIndex:1200,title:null,footer:null,closable:!1,onCancel:eC,className:`file-preview-modal ${M?"full-screen-modal":""}`,...l,children:(0,r.jsx)(an,{children:ei||ef?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(aa,{children:(0,r.jsx)(tW.Tooltip,{arrow:!1,title:"关闭",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",onClick:eC,icon:(0,r.jsx)(tG.IconFont,{type:"guanbi"})})})}),ei?(0,r.jsx)(tL.Result,{icon:(0,r.jsx)(tG.IconFont,{type:"skill",size:56}),title:`${ew} 已不可用`,subTitle:"该技能已被删除或下架,无法查看详情。",extra:!ed&&(0,r.jsx)(t_.Button,{type:"primary",onClick:()=>{eC(),(0,at.goPage)("/skills")},children:"去技能商店看看"})}):(0,r.jsx)(aS,{})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ao,{$collapsed:ee,$transitionEnabled:er,children:[(0,r.jsxs)(aa,{children:[(0,r.jsx)(ay,{color:"default",variant:"text",shape:"circle",onClick:()=>z(e=>!e),icon:(0,r.jsx)(tG.IconFont,{type:"wenjianshu",size:18})}),(0,r.jsx)(tH.Dropdown,{placement:"bottomRight",styles:{root:{width:"180px"}},menu:{items:em,onClick:eT},children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",icon:(0,r.jsx)(tG.IconFont,{type:"more"})})}),(0,r.jsx)(tW.Tooltip,{arrow:!1,title:M?"最小化":"最大化",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",className:"full-screen-btn",onClick:()=>F(!M),icon:(0,r.jsx)(tG.IconFont,{type:M?"xiaoping":"quanping"})})}),(0,r.jsx)(tW.Tooltip,{arrow:!1,title:"关闭",placement:"bottom",children:(0,r.jsx)(t_.Button,{color:"default",variant:"text",shape:"circle",onClick:eC,icon:(0,r.jsx)(tG.IconFont,{type:"guanbi"})})})]}),(0,r.jsxs)(ai,{children:[(0,r.jsxs)(al,{children:[(0,r.jsx)(as,{$collapsed:ee,$transitionEnabled:er,children:ew}),(0,r.jsx)(o7.AnimatePresence,{initial:!1,children:!ee&&(0,r.jsxs)(af,{initial:{height:0,opacity:0}
933,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25*!!er,ease:"easeInOut"},children:[(0,r.jsxs)(ac,{children:[!!eh&&(0,r.jsxs)("span",{className:"meta-item",children:[(0,r.jsx)(tG.IconFont,{type:"skill",size:14}),eh]}),!!ex&&(0,r.jsxs)("span",{className:"meta-item",children:[(0,r.jsx)(tG.IconFont,{type:"file_zip",size:14}),(0,oS.formatFileSize)(ex)]}),!!ev&&(0,r.jsxs)("span",{className:"meta-item",children:[(0,r.jsx)(tG.IconFont,{type:"space",size:14}),ev]}),!!A?.updatedAt&&(0,r.jsxs)("span",{className:"meta-item",children:[(0,r.jsx)(tG.IconFont,{type:"shiyong",size:14}),`更新于 ${(0,tU.default)(A.updatedAt).format("YYYY年MM月DD日")}`]})]}),(0,r.jsxs)(tD.Space,{children:[ep&&(0,r.jsx)(t_.Button,{type:"primary",loading:eo,onClick:()=>void eA(),children:"试用一下"}),eu&&(0,r.jsx)(t_.Button,{color:"default",variant:"outlined",disabled:A?.isAdded,onClick:()=>{let e=k||A?.skillId;c.confirm({title:"添加至我的技能",icon:(0,r.jsx)(tQ.QuestionCircleOutlined,{}),content:"是否将此 Skill 添加至我的技能?",okText:"确认",cancelText:"取消",onOk:async()=>{let{success:t}=e?await (0,ox.addSkillApi)({skill_id:e}):await (0,ox.addSkillsByConversationApi)({url:ey});t&&(E(e=>e?{...e,isAdded:!0}:e),d.success("添加成功"))}})},children:A?.isAdded?"已添加":"添加至我的技能"})]})]})})]}),!ee&&(0,r.jsx)(ad,{children:(0,r.jsx)("img",{alt:"",src:A?.imageUrl||(g?"/skill/skill-default-cover.webp":"/skill/skill-default-cover-light.webp")})})]}),(0,r.jsx)(o7.AnimatePresence,{initial:!1,children:!ee&&!!A?.description&&(0,r.jsx)(af,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25*!!er,ease:"easeInOut"},children:(0,r.jsx)(au,{children:A.description})})})]}),(0,r.jsxs)(ap,{children:[(0,r.jsx)(ah,{$visible:q,onClick:()=>z(!1)}),(0,r.jsx)(ag,{ref:U,$mobileVisible:q,children:(0,r.jsx)(av,{children:e$(I)})}),(0,r.jsx)(ab,{ref:K,onWheel:e=>{!ee||e.currentTarget.scrollTop>0||e.deltaY>=0||eI()},onTouchStart:e=>{X.current=e.touches[0]?.clientY??null},onTouchMove:e=>{let t=X.current,r=e.touches[0]?.clientY;null===t||void 0===r||!ee||e.currentTarget.scrollTop>0||r-t<8||eI()},onTouchEnd:()=>{X.current=null},onScroll:e=>{let{scrollTop:t}=e.currentTarget;if(!G.current){if(V.current){t>0&&(V.current=!1),ee||et(!0);return}!ee&&t>40&&et(!0)}},children:(()=>{let e,t,n=(0,oS.getLanguage)(R)||"";return R?eS(R)&&_&&!D?(0,r.jsx)(tO.Skeleton,{active:!0,loading:D,title:!1,paragraph:{rows:3},children:(0,r.jsx)(oL,{url:_})}):"html"===n&&_&&!D?(0,r.jsx)(ov.Iframe,{html:_}):(e=(0,oS.getFileExtension)(R),t=Object.values(tY.fileExtension).flat(),e&&t.includes(e))?(0,r.jsx)(oL,{url:R}):_||D?(0,r.jsxs)(tO.Skeleton,{active:!0,loading:D,title:!1,paragraph:{rows:3},children:["markdown"!==n&&(0,r.jsx)(oD.CodeHighlighter,{language:n,children:_}),"markdown"===n&&(0,r.jsx)("div",{ref:Q,onClick:eF,children:(0,r.jsx)(tK.Markdown,{formatterYaml:!0,lang:n,content:_,className:"render-file-markdown"})})]}):(0,r.jsx)(tL.Result,{status:"warning",subTitle:"未获取到文件内容。"}):null})()})]})]})})})]})}),aj=(0,n.memo)(aC);var aA=e.i(184131),aE=e.i(88014),a$=e.i(282786);function aT(e,t){var r,n,o;let a,i;return r=Array.from(e.getClientRects()),n=e.getBoundingClientRect(),a=null,i=1/0,r.forEach(e=>{if(e.width<=0||e.height<=0)return;let r=e.left+e.width,n=e.top+e.height,o=Math.max(e.left-t.x,0,t.x-r),l=Math.max(e.top-t.y,0,t.y-n),s=o*o+l*l;s<i&&(a=e,i=s)}),{left:(o=a??n).left,top:o.top,width:o.width,height:o.height,x:o.left,y:o.top}}function aM({open:e,rect:t,content:o,placement:a}){let i=(0,n.useRef)(null),l=(0,n.useMemo)(()=>t?{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,pointerEvents:"none",background:"transparent"}:{display:"none"},[t]);(0,n.useLayoutEffect)(()=>{e&&t&&i.current?.forceAlign()},[e,t]);let s=(0,r.jsx)(a$.Popover,{ref:i,open:e,arrow:!1,content:o,placement:a||"top",classNames:{container:"hover-popover-container"},getPopupContainer:()=>document.body,children:(0,r.jsx)("span",{style:l})});return(0,r.jsx)(tC,{children:(0,r.jsx)(tj,{children:s})})}function aF(e){let t="string"==typeof e.container?document.querySelector(e.container):e.container;if(!t)throw Error("container 未找到");let n=e.targetClass?.replace(/^[.]/,"")||"";if(!n)throw Error("请提供 targetClass");let o="function"==typeof e.renderContent?e.renderContent:void 0,a="function"==typeof e.getTargetKey?e.getTargetKey:void 0,i=Math.max(0,e.showDelay??10),l=null,s=null,c=null,d=null,f=null,u=null,p=document.createElement("div");p.className="hover-popover-host",document.body.appendChild(p);let g=(0,aE.createRoot)(p),h=!1,b=null,m=null;function y(){g.render((0,r.jsx)(aM,{open:h,rect:b,content:m,placement:e.placement}))}function v(){null!==f&&(window.clearTimeout(f),f=null)}function x(){null!==d&&(window.clearTimeout(d),d=null)}function w(){null!==u&&(window.cancelAnimationFrame(u),u=null)}function k(){x(),v(),w(),l=null,s=null,c=null,b=null,m=null,h=!1,y()}function S(e,t){let n=o?o(e):null;!function e(t){return null!=t&&"boolean"!=typeof t&&("string"==typeof t?t.trim().length>0:!Array.isArray(t)||t.some(e))}(n)?k():(l=e,s=a?.(e)??null,c=t,b=aT(e,t),m="string"==typeof n?(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}}):n,h=!0,y())}function C(e){let r=document.elementFromPoint(e.x,e.y),o=r?.closest(`.${n}`)??null;return o&&t.contains(o)?o:null}function j(e,t){return e&&"function"==typeof e.closest?e.closest(t):null}function A(e){let r=j(e,`.${n}`);return r&&t.contains(r)?r:null}function E(e,t){return t instanceof Node&&e.contains(t)}function $(e){return e.matches(":hover")}function T(){v(),f=window.setTimeout(()=>{f=null;let e=document.querySelector(".hover-popover-container"),t=!!l&&$(l),r=!!e&&$(e);t||r||k()},60)}function M(e){let t=A(e.target);t&&!E(t,e.relatedTarget)&&(v(),function(e,t){let r={x:t.clientX,y:t.clientY};if(h&&l===e){x(),c=r;return}x(),d=window.setTimeout(()=>{d=null;let e=C(r);e&&$(e)&&S(e,r)},i)}(t,e));let r=j(e.target,".hover-popover-container");r&&!E(r,e.relatedTarget)&&(x(),v())}function F(e){let t=A(e.target);t&&!E(t,e.relatedTarget)&&(x(),h&&T());let r=j(e.target,".hover-popover-container");r&&!E(r,e.relatedTarget)&&T()}function I(){if(u=null,!l||l.isConnected&&t.contains(l))return;let e=l,r=c,n=r?C(r):null;if(n&&r){let t=a?.(n)??null;null!==s&&t===s||e.isEqualNode(n)?(l=n,s=t,c=r):S(n,r)}else k()}function P(){null===u&&(u=window.requestAnimationFrame(I))}function R(){!l||l.isConnected&&t.contains(l)?l&&c&&(b=aT(l,c),y()):P()}function B(e){A(e.target)===l&&R()}y();let O=new MutationObserver(()=>{!l||l.isConnected&&t.contains(l)||P()});return O.observe(t,{childList:!0,subtree:!0}),document.body.addEventListener("mouseover",M),document.body.addEventListener("mouseout",F),t.addEventListener("click",B),t.addEventListener("focusin",B),t.addEventListener("focusout",B),window.addEventListener("scroll",R,!0),window.addEventListener("resize",R),{destroy(){O.disconnect(),x(),v(),w(),document.body.removeEventListener("mouseover",M),document.body.removeEventListener("mouseout",F),t.removeEventListener("click",B),t.removeEventListener("focusin",B),t.removeEventListener("focusout",B),window.removeEventListener("scroll",R,!0),window.removeEventListener("resize",R),queueMicrotask(()=>{try{g.unmount()}catch{}p.parentNode&&p.parentNode.removeChild(p)})},refresh(){y()}}}var aI=e.i(191385);let aP=o.styled.div.withConfig({displayName:"providers__Container",componentId:"sc-166354d9-0"})`
934  height: 100%;
935
936  input:-webkit-autofill,
937  input:-webkit-autofill:hover,
938  input:-webkit-autofill:focus,
939  input:-webkit-autofill:active,
940  textarea:-webkit-autofill,
941  textarea:-webkit-autofill:hover,
942  textarea:-webkit-autofill:focus,
943  textarea:-webkit-autofill:active {
944    background-clip: text !important;
945    -webkit-text-fill-color: ${({theme:e})=>e.colorText} !important;
946    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
947    box-shadow: 0 0 0 1000px transparent inset !important;
948    background-color: transparent !important;
949    background-image: none !important;
950    transition: background-color 99999s ease-in-out 0s !important;
951    caret-color: ${({theme:e})=>e.colorText} !important;
952  }
953
954  ::selection {
955    color: ${({theme:e})=>e.colorText};
956    background-color: ${({theme:e})=>(0,oS.rgba)(e.colorPrimary,.2)};
957  }
958
959  span.file-tag,
960  span.skill-tag {
961    cursor: pointer;
962    padding: 2px 4px;
963    border-radius: 4px;
964    position: relative;
965    font-weight: 500;
966    overflow: hidden;
967    transition: background-color 0.15s ease-in-out;
968
969    &:hover {
970      background-color: ${({theme:e})=>e.colorFillTertiary} !important;
971    }
972  }
973`,aR=o.styled.div.withConfig({displayName:"providers__HoverPopoverContainer",componentId:"sc-166354d9-1"})`
974  padding: 4px 8px;
975  overflow: hidden;
976  display: -webkit-box;
977  -webkit-line-clamp: 6;
978  -webkit-box-orient: vertical;
979  background-color: ${({theme:e})=>e.colorQuaternaryBg};
980`,aB=o.styled.div.withConfig({displayName:"providers__SkillHoverCard",componentId:"sc-166354d9-2"})`
981  width: 320px;
982  padding: 8px;
983  display: flex;
984  flex-direction: column;
985  row-gap: 8px;
986  /* 不额外铺底色,直接沿用 popover 容器背景,避免出现深浅两层 */
987  background-color: transparent;
988
989  .skill-hover-header {
990    display: flex;
991    align-items: center;
992    justify-content: space-between;
993    gap: 8px;
994  }
995
996  .skill-hover-img {
997    height: 48px;
998    display: flex;
999    align-items: center;
1000    color: ${({theme:e})=>e.colorTextSecondary};
1001
1002    img {
1003      width: 100%;
1004      height: 100%;
1005      object-fit: contain;
1006      border-radius: 4px;
1007    }
1008  }
1009
1010  .skill-hover-name {
1011    font-size: 16px;
1012    font-weight: 600;
1013    word-break: break-word;
1014    color: ${({theme:e})=>e.colorText};
1015  }
1016
1017  .skill-hover-description {
1018    font-size: 13px;
1019    line-height: 1.5;
1020    overflow: hidden;
1021    display: -webkit-box;
1022    -webkit-line-clamp: 3;
1023    -webkit-box-orient: vertical;
1024    word-break: break-word;
1025    color: ${({theme:e})=>e.colorTextTertiary};
1026  }
1027
1028  .skill-hover-badge {
1029    align-self: flex-start;
1030    font-size: 12px;
1031    border-radius: 999px;
1032    color: ${({theme:e})=>e.colorTextSecondary};
1033    border: 1px solid ${({theme:e})=>e.colorBorder};
1034  }
1035`;function aO(e){let{name:t,skillId:n,description:o,iconUrl:a,isOfficial:l}=e,s=n||t,{data:c=null,isFetched:d}=(0,x.useQuery)({queryKey:["skill-detail",s],queryFn:()=>(0,tR.fetchSkillDetail)({skillId:n,skillName:t}),enabled:!o,staleTime:6e5,gcTime:18e5,refetchOnWindowFocus:!1}),f=(0,tk.useIsDarkTheme)(),u=a||c?.imageUrl,p=l||c?.ownerType===0,g=!!n&&!o&&d&&!c,h=o||c?.description||(g?"该技能已被删除或下架":"点击查看技能详情");return(0,r.jsxs)(aB,{children:[(0,r.jsxs)("div",{className:"skill-hover-header",children:[(0,r.jsxs)("div",{className:"skill-hover-name",children:[(0,r.jsx)("div",{children:c?.showName||t}),(0,r.jsx)(i.Tag,{variant:"filled",children:p?"官方":"个人"})]}),(0,r.jsx)("div",{className:"skill-hover-img",children:(0,r.jsx)("img",{src:u||(f?"/skill/skill-default-cover.webp":"/skill/skill-default-cover-light.webp"),alt:""})})]}),(0,r.jsx)("div",{className:"skill-hover-description",children:h})]})}e.s(["Providers",0,function({children:e}){let t,o,i=(0,w.useRouter)(),[l]=(0,n.useState)(()=>new y({defaultOptions:{queries:{staleTime:3e5,gcTime:18e5,refetchOnWindowFocus:!1,retry:1}}})),[s,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(0,n.useRef)(null),{themeMode:u,setStore:p}=(0,tV.useAppStoreSelector)(e=>({themeMode:e.themeMode,setStore:e.setStore})),g=(0,tk.useIsDarkTheme)(),h=(0,n.useCallback)(e=>{d.current=e,(0,tP.setFilePreviewInstance)(e)},[]),b=(0,n.useCallback)(e=>{f.current=e,(0,tR.setSkillPreviewInstance)(e)},[]),m=()=>{setTimeout(()=>{let e=document.querySelector('.sender-input[contenteditable="true"]');if(!e)return;let t=window.getSelection();if(!t)return;let r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r),e.focus()},200)};return(t=(0,n.useRef)(null),o=(0,n.useRef)(!1),(0,n.useEffect)(()=>{let e=()=>{o.current&&window.location.reload()},r=async()=>{try{let r=await fetch("/version.txt",{cache:"no-store"});if(!r.ok){o.current=!0,e();return}let n=(await r.text()).trim();if(!t.current){t.current=n;return}if(o.current||n!==t.current){if(o.current=!0,"hidden"===document.visibilityState)return;e()}}catch{o.current=!0,e()}},n=()=>{"visible"===document.visibilityState&&e()};document.addEventListener("visibilitychange",n);let a=setInterval(()=>void r(),1e4);return()=>{clearInterval(a),document.removeEventListener("visibilitychange",n)}},[]),(0,n.useEffect)(()=>{let e=e=>{let t=e.target,r=t.closest("span.file-tag"),n=t.closest("span.skill-tag"),o=t.closest(".file-card");if(r){let t=r.textContent||"",n=r.href||r.getAttribute("data-url")||"";(0,oS.getFileExtension)(n)&&n&&(e.preventDefault(),(0,tP.showFilePreview)({fileName:t,fileUrl:n}))}if(n){let t=n.getAttribute("data-name")||"",r=n.getAttribute("data-url")||"";t&&(e.preventDefault(),(0,tR.showSkillPreview)({skillUrl:r,skillName:t,skillId:n.getAttribute("data-id")||void 0}))}if(o){let e=o.getAttribute("conversation-id")||"",t=o.getAttribute("version-id")||"",r=o.getAttribute("data-name")||"",n=o.getAttribute("data-url")||"",a=o.getAttribute("data-path")||"",i=o.getAttribute("data-type")||"";n&&("file"===i||"virtual"===i)&&(0,tP.showFilePreview)({fileName:r,fileUrl:n,filePath:a,versionId:t,conversationId:e}),n&&"skill"===i&&(0,tR.showSkillPreview)({skillName:r,skillUrl:n})}};return document.body.addEventListener("click",e,{capture:!0}),()=>document.body.removeEventListener("click",e,{capture:!0})},[]),(0,n.useEffect)(()=>aF({container:"body",targetClass:"file-tag",showDelay:100,getTargetKey:e=>e.getAttribute("data-id")||e.getAttribute("data-url")||e.getAttribute("data-name")||e.textContent?.trim()||null,renderContent:e=>{let t=e.getAttribute("data-keyword");return t?(0,r.jsx)(aR,{children:t}):null}}).destroy,[]),(0,n.useEffect)(()=>aF({container:"body",targetClass:"skill-tag",showDelay:100,getTargetKey:e=>e.getAttribute("data-id")||e.getAttribute("data-name")||e.textContent?.trim()||null,renderContent:e=>{let t=e.getAttribute("data-name")||"";return t?(0,r.jsx)(aO,{name:t,skillId:e.getAttribute("data-id")||void 0,description:e.getAttribute("data-description")||void 0,iconUrl:e.getAttribute("data-icon")||void 0,isOfficial:"official"===e.getAttribute("data-owner")}):null}}).destroy,[]),(0,n.useEffect)(()=>{c(!0)},[]),(0,n.useEffect)(()=>{let e=document.documentElement,t=t=>{t.metaKey||t.ctrlKey||t.altKey||(e.dataset.inputMethod="keyboard")},r=()=>{e.dataset.inputMethod="pointer"};return window.addEventListener("keydown",t,!0),window.addEventListener("pointerdown",r,!0),()=>{window.removeEventListener("keydown",t,!0),window.removeEventListener("pointerdown",r,!0),delete e.dataset.inputMethod}},[]),(0,n.useEffect)(()=>{document.documentElement.setAttribute("data-theme",g?"dark":"light")},[g]),(0,n.useEffect)(()=>{let e=(0,oS.getQueryParams)(),t=(0,aA.getLocalStorage)("themeMode"),r=(0,aA.getLocalStorage)("userInfo");e.token&&(0,aI.setToken)(e.token,e.deviceId).then(()=>{let e=new URL(window.location.href);e.searchParams.delete("token"),e.searchParams.delete("deviceId");let t=new URL(e.searchParams.get("redirect_to")||"/app",e.origin);"/signIn"===e.pathname?window.location.replace(t.origin===e.origin?t.href:"/app"):window.history.replaceState(window.history.state,"",e.pathname+e.search)}),e.themeMode?(p({themeMode:e.themeMode}),(0,aA.setLocalStorage)("themeMode",e.themeMode)):t&&t!==u&&p({themeMode:t}),r&&p({userInfo:r})},[u,p]),(0,n.useEffect)(()=>{(0,at.setRouterInstance)(i)},[i]),s)?(0,r.jsx)(v.QueryClientProvider,{client:l,children:(0,r.jsx)(E,{children:(0,r.jsx)(A,{children:(0,r.jsx)(tC,{children:(0,r.jsx)(tj,{children:(0,r.jsx)(tE,{children:(0,r.jsxs)(a.App,{children:[(0,r.jsx)(tM,{}),(0,r.jsx)(tI,{}),(0,r.jsx)(aP,{children:e}),(0,r.jsx)(o3,{ref:h,onClose:m}),(0,r.jsx)(aj,{ref:b,onClose:m})]})})})})})})}):null}],267604)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.