@blueking/ai-blueking 1.2.4 → 1.2.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/use-session-store.d.ts +3 -0
- package/dist/store/sessionStore.d.ts +3 -0
- package/dist/vue2/{arc-BOUitg-B.mjs → arc-Cu6J9qUw.mjs} +1 -1
- package/dist/vue2/{blockDiagram-38ab4fdb-DliGca9k.mjs → blockDiagram-38ab4fdb-LsJeZjpP.mjs} +5 -5
- package/dist/{vue3/c4Diagram-3d4e48cf-Czp_A6Dy.mjs → vue2/c4Diagram-3d4e48cf-CGDHpak-.mjs} +2 -2
- package/dist/{vue3/channel-BXebI77b.mjs → vue2/channel-B0DIEPPg.mjs} +1 -1
- package/dist/vue2/{classDiagram-70f12bd4-1J2xo3td.mjs → classDiagram-70f12bd4-nGiNgLZY.mjs} +5 -5
- package/dist/vue2/{classDiagram-v2-f2320105-CT2fy2BZ.mjs → classDiagram-v2-f2320105-Bz8BaiM6.mjs} +5 -5
- package/dist/vue2/{clone-DlmS6Hpz.mjs → clone-As6PecbR.mjs} +1 -1
- package/dist/vue2/{createText-2e5e7dd3-hozOM-m6.mjs → createText-2e5e7dd3-DcW-I4ZS.mjs} +1 -1
- package/dist/{vue3/edges-e0da2a9e-GHcemDlW.mjs → vue2/edges-e0da2a9e-C_Hf4mPX.mjs} +3 -3
- package/dist/{vue3/erDiagram-9861fffd-B1NTSuzT.mjs → vue2/erDiagram-9861fffd-DheTYAr2.mjs} +4 -4
- package/dist/vue2/{flowDb-956e92f1-DfgEsOQ_.mjs → flowDb-956e92f1-Dv1A_e5P.mjs} +1 -1
- package/dist/{vue3/flowDiagram-66a62f08-CesPe1Wm.mjs → vue2/flowDiagram-66a62f08-BCAIvIN9.mjs} +6 -6
- package/dist/vue2/{flowDiagram-v2-96b9c2cf-C6LJ2Yaa.mjs → flowDiagram-v2-96b9c2cf-YxJetz1Q.mjs} +5 -5
- package/dist/vue2/{flowchart-elk-definition-4a651766-D-aGmsVO.mjs → flowchart-elk-definition-4a651766-DsEs7lFp.mjs} +4 -4
- package/dist/{vue3/ganttDiagram-c361ad54-CBanyFTw.mjs → vue2/ganttDiagram-c361ad54-DIpHRixj.mjs} +2 -2
- package/dist/{vue3/gitGraphDiagram-72cf32ee-BofFrjnz.mjs → vue2/gitGraphDiagram-72cf32ee-4AOTfy-i.mjs} +1 -1
- package/dist/vue2/{graph-BpqfoG35.mjs → graph-DtkSnG_z.mjs} +1 -1
- package/dist/{vue3/index-3862675e-D15pFlwW.mjs → vue2/index-3862675e-lCbHaey0.mjs} +6 -6
- package/dist/vue2/index.es.min.js +1 -1
- package/dist/vue2/index.iife.min.js +2 -2
- package/dist/vue2/index.umd.min.js +2 -2
- package/dist/vue2/{infoDiagram-f8f76790-BQI1AJW0.mjs → infoDiagram-f8f76790-CgAdTmu2.mjs} +1 -1
- package/dist/vue2/{journeyDiagram-49397b02-Cxl5Wcrv.mjs → journeyDiagram-49397b02-Cvbcutge.mjs} +3 -3
- package/dist/vue2/{layout-Bp6b2t6Q.mjs → layout-DzkmTH4I.mjs} +2 -2
- package/dist/vue2/{line-gynmqiLG.mjs → line-Dh6wGedm.mjs} +1 -1
- package/dist/vue2/{linear-Baahmd3t.mjs → linear-BipEvy3z.mjs} +1 -1
- package/dist/vue2/{mindmap-definition-fc14e90a-BHaNc8DC.mjs → mindmap-definition-fc14e90a-BkOGodac.mjs} +2 -2
- package/dist/vue2/{pieDiagram-8a3498a8-nmkVk00q.mjs → pieDiagram-8a3498a8-DN3C4H02.mjs} +2 -2
- package/dist/vue2/{quadrantDiagram-120e2f19-CwbX_iGj.mjs → quadrantDiagram-120e2f19-D-rVXQ4X.mjs} +2 -2
- package/dist/vue2/{requirementDiagram-deff3bca-D52cx1_G.mjs → requirementDiagram-deff3bca-COrRiOz1.mjs} +4 -4
- package/dist/vue2/{sankeyDiagram-04a897e0-BPCBBkOd.mjs → sankeyDiagram-04a897e0-CW5YHP54.mjs} +1 -1
- package/dist/vue2/{sequenceDiagram-704730f1-DCtPjob5.mjs → sequenceDiagram-704730f1-B2oomfGv.mjs} +2 -2
- package/dist/{vue3/stateDiagram-587899a1-BxMKFnYy.mjs → vue2/stateDiagram-587899a1-DgbZEcZC.mjs} +5 -5
- package/dist/vue2/{stateDiagram-v2-d93cdb3a-CJc3mbvF.mjs → stateDiagram-v2-d93cdb3a-DT4mL6qz.mjs} +5 -5
- package/dist/{vue3/styles-6aaf32cf-fe6SY6Yz.mjs → vue2/styles-6aaf32cf-BZzzSjn9.mjs} +1 -1
- package/dist/vue2/{styles-9a916d00-DOYk4ZOF.mjs → styles-9a916d00-CTCN8KF_.mjs} +1 -1
- package/dist/{vue3/styles-c10674c1-FhAp19qy.mjs → vue2/styles-c10674c1-CdDNlWSY.mjs} +4 -4
- package/dist/vue2/{svgDrawCommon-08f97a94-Dlyho8qU.mjs → svgDrawCommon-08f97a94-dN7ccW-t.mjs} +1 -1
- package/dist/vue2/{timeline-definition-85554ec2-BgDt5xsK.mjs → timeline-definition-85554ec2-_OuXIGce.mjs} +2 -2
- package/dist/vue2/{vue2-DZV7x_6k.mjs → vue2-C5t6FPGH.mjs} +27 -31
- package/dist/vue2/{xychartDiagram-e933f94c-Cyhzi9_B.mjs → xychartDiagram-e933f94c-C1oI7x9F.mjs} +4 -4
- package/dist/vue3/{arc-h_dMv_KS.mjs → arc-uFVJ_Yu4.mjs} +1 -1
- package/dist/vue3/{blockDiagram-38ab4fdb-CY9QtX38.mjs → blockDiagram-38ab4fdb-VvBw6min.mjs} +5 -5
- package/dist/{vue2/c4Diagram-3d4e48cf-BKcAm1aV.mjs → vue3/c4Diagram-3d4e48cf-BMyKP8jH.mjs} +2 -2
- package/dist/{vue2/channel-Sj8DPX3z.mjs → vue3/channel-TAFM2ljU.mjs} +1 -1
- package/dist/vue3/{classDiagram-70f12bd4-WBcT4cRp.mjs → classDiagram-70f12bd4-BRm0RqjZ.mjs} +5 -5
- package/dist/vue3/{classDiagram-v2-f2320105-BD7okj8D.mjs → classDiagram-v2-f2320105-DWIRfqxB.mjs} +5 -5
- package/dist/vue3/{clone-W_ZiobXS.mjs → clone-DhQiUV_u.mjs} +1 -1
- package/dist/vue3/{createText-2e5e7dd3-rtYwyyxn.mjs → createText-2e5e7dd3-ObgwFgM_.mjs} +1 -1
- package/dist/{vue2/edges-e0da2a9e-BPUfD9yl.mjs → vue3/edges-e0da2a9e-BBbYkHfs.mjs} +3 -3
- package/dist/{vue2/erDiagram-9861fffd-BnVKEInB.mjs → vue3/erDiagram-9861fffd-33a5mW0V.mjs} +4 -4
- package/dist/vue3/{flowDb-956e92f1-gwYhfsBN.mjs → flowDb-956e92f1-DiG6o5Lq.mjs} +1 -1
- package/dist/{vue2/flowDiagram-66a62f08-DJucFMSN.mjs → vue3/flowDiagram-66a62f08-je9191YA.mjs} +6 -6
- package/dist/vue3/{flowDiagram-v2-96b9c2cf-FfVCxps5.mjs → flowDiagram-v2-96b9c2cf-C9AqpCcm.mjs} +5 -5
- package/dist/vue3/{flowchart-elk-definition-4a651766-BOaXbNAz.mjs → flowchart-elk-definition-4a651766-DyOIWy1_.mjs} +4 -4
- package/dist/{vue2/ganttDiagram-c361ad54-CDTwD8OX.mjs → vue3/ganttDiagram-c361ad54-BL89I3T5.mjs} +2 -2
- package/dist/{vue2/gitGraphDiagram-72cf32ee-BY_Mc4Iy.mjs → vue3/gitGraphDiagram-72cf32ee-B5cO6o0R.mjs} +1 -1
- package/dist/vue3/{graph-CAB6rvd7.mjs → graph-B_ZCIhCv.mjs} +1 -1
- package/dist/{vue2/index-3862675e-BwovxPkh.mjs → vue3/index-3862675e-p21c3uf0.mjs} +6 -6
- package/dist/vue3/index.es.min.js +1 -1
- package/dist/vue3/index.iife.min.js +2 -2
- package/dist/vue3/index.umd.min.js +2 -2
- package/dist/vue3/{infoDiagram-f8f76790--Fgm45GF.mjs → infoDiagram-f8f76790-C-UhBSCJ.mjs} +1 -1
- package/dist/vue3/{journeyDiagram-49397b02-BFvgBLCQ.mjs → journeyDiagram-49397b02-CjlyJjDk.mjs} +3 -3
- package/dist/vue3/{layout-2meHoN06.mjs → layout-BiEtBuT0.mjs} +2 -2
- package/dist/vue3/{line-B7b4lLrD.mjs → line-51tzIvbT.mjs} +1 -1
- package/dist/vue3/{linear-B7qPtrLj.mjs → linear-iV8MpW-v.mjs} +1 -1
- package/dist/vue3/{mindmap-definition-fc14e90a-MQtNV4PV.mjs → mindmap-definition-fc14e90a-Be2kQgY5.mjs} +2 -2
- package/dist/vue3/{pieDiagram-8a3498a8-D7v5SP6r.mjs → pieDiagram-8a3498a8-D4ZR0jOY.mjs} +2 -2
- package/dist/vue3/{quadrantDiagram-120e2f19-CJw2xF6z.mjs → quadrantDiagram-120e2f19-Co_Rrg4s.mjs} +2 -2
- package/dist/vue3/{requirementDiagram-deff3bca--Zn_qOIZ.mjs → requirementDiagram-deff3bca-tsegkqgU.mjs} +4 -4
- package/dist/vue3/{sankeyDiagram-04a897e0-DCUxAEhV.mjs → sankeyDiagram-04a897e0-BNysrFHu.mjs} +1 -1
- package/dist/vue3/{sequenceDiagram-704730f1-FioRuUjK.mjs → sequenceDiagram-704730f1-zNUpB2vi.mjs} +2 -2
- package/dist/{vue2/stateDiagram-587899a1-hNNKpVTK.mjs → vue3/stateDiagram-587899a1-DrpZ-YJc.mjs} +5 -5
- package/dist/vue3/{stateDiagram-v2-d93cdb3a-BwF1x08-.mjs → stateDiagram-v2-d93cdb3a-L_XkeGU3.mjs} +5 -5
- package/dist/{vue2/styles-6aaf32cf-BZkBFTVa.mjs → vue3/styles-6aaf32cf-8q11zTzh.mjs} +1 -1
- package/dist/vue3/{styles-9a916d00-OdgVhxz-.mjs → styles-9a916d00-CiHXRQ9C.mjs} +1 -1
- package/dist/{vue2/styles-c10674c1-BNZsbAjZ.mjs → vue3/styles-c10674c1-Dz193kd_.mjs} +4 -4
- package/dist/vue3/{svgDrawCommon-08f97a94-Cdpm7CY0.mjs → svgDrawCommon-08f97a94-DnREWheN.mjs} +1 -1
- package/dist/vue3/{timeline-definition-85554ec2-B20gSoSo.mjs → timeline-definition-85554ec2-BvQmXSuC.mjs} +2 -2
- package/dist/vue3/{vue3-CxINvXAN.mjs → vue3-BNNGYfPD.mjs} +27 -31
- package/dist/vue3/{xychartDiagram-e933f94c-CyyyeKQm.mjs → xychartDiagram-e933f94c-Dpdm07-V.mjs} +4 -4
- package/package.json +2 -2
|
@@ -493,7 +493,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
493
493
|
&~ .knowledge-head {
|
|
494
494
|
margin-bottom: 8px;
|
|
495
495
|
}
|
|
496
|
-
}`;n=document.createElement("style"),n.textContent=o,document.head.appendChild(n)},i=()=>{n&&(n.remove(),n=null)};K.onBeforeMount(()=>{r()}),K.onBeforeUnmount(()=>{i()})};function kZe(n,r,i,o,l,h,f){try{var p=n[h](f),b=p.value}catch(y){i(y);return}p.done?r(b):Promise.resolve(b).then(o,l)}function W8(n){return function(){var r=this,i=arguments;return new Promise(function(o,l){var h=n.apply(r,i);function f(b){kZe(h,o,l,f,p,"next",b)}function p(b){kZe(h,o,l,f,p,"throw",b)}f(void 0)})}}function OSn(n,r,i){return r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function yme(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},o=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),o.forEach(function(l){OSn(n,l,i[l])})}return n}function BSn(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);i.push.apply(i,o)}return i}function PSn(n,r){return r=r??{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):BSn(Object(r)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(r,i))}),n}const jSn=({handleStart:n,handleText:r,handleReferenceDoc:i,handleThink:o,handleEnd:l,handleError:h,requestOptions:f,otherOptions:p})=>{let b=xZe({apiPrefix:f.url,headers:f.headers,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});const y="内容正在生成中...",A=K.ref(f),x=K.ref(),C=K.ref({}),T=K.ref([]),M={},E={},D=K.ref(!1),O=K.computed(()=>{const ft=[];for(let Zt=T.value.length-1;Zt>=0;Zt--){const it=T.value[Zt];let $e=Zt+1,Je=T.value[$e];for(;Je&&![oi.Ai,oi.TokenExpired,oi.ImageNotSupported,oi.Pause,oi.Guide].includes(Je.role);)$e+=1,Je=T.value[$e];if(it.role===oi.System)break;it.status!==M1.Fail&&!((Je==null?void 0:Je.status)===M1.Fail&&[oi.User,oi.UserImage].includes(it.role))&&![oi.Time,oi.System].includes(it.role)&&ft.unshift(it)}return ft}),P=K.computed(()=>{var ft;const Zt=(ft=x.value)===null||ft===void 0?void 0:ft.sessionCode;return Zt?C.value[Zt]:!1}),F=K.computed(()=>{var ft,Zt,it;const $e=[],Je=[],Mt=[],Ue=T.value.findLastIndex(dt=>dt.role===oi.System&&["已启用角色","已启用模型"].some(yt=>dt.content.includes(yt)));let Qe=0;(it=x.value)===null||it===void 0||(Zt=it.roleInfo)===null||Zt===void 0||(ft=Zt.content)===null||ft===void 0||ft.forEach(dt=>{const yt=T.value[Ue+1+Qe];let sn=T.value[Ue+2+Qe];if((yt==null?void 0:yt.content)===dt.content&&yt.role!==oi.System&&($e.push(vme(yt)),Qe+=1,(yt==null?void 0:yt.role)===oi.Pause)){for(;sn&&sn.role===oi.System;)Qe+=1,sn=T.value[Ue+1+Qe];for(;sn&&[oi.User,oi.UserImage].includes(sn.role);)$e.push(vme(sn)),Qe+=1,sn=T.value[Ue+1+Qe]}}),Je.push(...O.value.map(vme));const vt=dt=>{let yt=!0;for(let _e=dt;_e<$e.length;_e++){var sn;$e[_e].content!==((sn=Je[_e-dt])===null||sn===void 0?void 0:sn.content)&&(yt=!1)}return yt};for(let dt=0;dt<$e.length;dt++){const yt=$e[dt];if(vt(dt))break;Mt.push(yt)}return Mt.push(...Je),Mt.forEach(dt=>{dt.content=LSn(dt.content),dt.content=tSn(dt.content)}),Mt}),R=new XTn({handleStart:oe,handleText:Ie,handleReferenceDoc:ve,handleThink:Ne,handleEnd:je,handleError:ke,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});function V(ft){A.value=yme({},A.value,ft),(ft.url||ft.headers)&&(b=xZe({apiPrefix:A.value.url,headers:A.value.headers,beforeRequest:A.value.beforeRequest,afterRequest:A.value.afterRequest}))}function Q(ft){return b.plusSessionContent(ft).then(Zt=>(ft.id=Zt.id,ft.createdAt=Zt.createdAt,ft))}const $=YTn((ft,Zt)=>b.modifySessionContent(Zt),1e3);function Y(ft){x.value=ft,ft!=null&&ft.sessionCode&&(M[ft.sessionCode]||(M[ft.sessionCode]=[]),T.value=M[ft.sessionCode])}function _(ft){x.value&&(M[x.value.sessionCode]=ft,T.value=ft)}function U(ft){return H.apply(this,arguments)}function H(){return H=W8(function*(ft){x.value=ft;try{D.value=!0;const Zt=yield b.getSessionContents(ft.sessionCode);M[x.value.sessionCode]=Zt,T.value=Zt,D.value=!1}catch{D.value=!1}}),H.apply(this,arguments)}function W(ft,Zt){return ee(Zt).find($e=>$e.id===ft)}function z(ft){var Zt;return((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft?T.value.at(-1):M[ft].at(-1)}function ee(ft){var Zt;return((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft?T.value:M[ft]}function X(ft,Zt){return ee(ft).push(Zt),Q(Zt)}function se(ft){var Zt;const $e=(((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft.sessionCode?T.value:M[ft.sessionCode]).find(Je=>+(Je.id||0)==+(ft.id||0));return $e&&Object.assign($e,ft),$(ft.id,ft)}function re(ft,Zt,it){var $e;const Je=(($e=x.value)===null||$e===void 0?void 0:$e.sessionCode)===ft?T.value:M[ft],Mt=[];return Zt.forEach(Ue=>{const Qe=Je.findIndex(vt=>vt.id===Ue);if(Qe>-1){const vt=Je[Qe-1],dt=Je[Qe+1],yt=Je[Qe+2];if(Je.splice(Qe,1),Mt.push(Ue),[oi.Hidden].includes(vt==null?void 0:vt.role)){const sn=Je.findIndex(_e=>_e.id===vt.id);Je.splice(sn,1),Mt.push(vt.id)}if((dt==null?void 0:dt.role)===oi.Ai||it&&[oi.Ai,oi.Guide,oi.TokenExpired,oi.ImageNotSupported,oi.Pause].includes(dt==null?void 0:dt.role)){const sn=Je.findIndex(_e=>_e.id===dt.id);Je.splice(sn,1),Mt.push(dt.id)}if([oi.Guide].includes(yt==null?void 0:yt.role)&&it){const sn=Je.findIndex(_e=>_e.id===yt.id);Je.splice(sn,1),Mt.push(yt.id)}}}),Mt}function ce(ft,Zt){const it=re(ft,[Zt],!0);return b.batchDeleteSessionContents(it)}function ue(ft,Zt){const it=re(ft,Zt,!1);return b.batchDeleteSessionContents(it)}function oe(ft){return ge.apply(this,arguments)}function ge(){return ge=W8(function*(ft){C.value[ft]=!0;const Zt={sessionCode:ft,role:oi.Ai,status:M1.Loading,content:y};return yield X(ft,Zt),n==null?void 0:n(ft,Zt)}),ge.apply(this,arguments)}function ve(ft,Zt,it){return ie.apply(this,arguments)}function ie(){return ie=W8(function*(ft,Zt,it){const $e=z(ft),Je=eSn(Zt,p==null?void 0:p.hideReferenceDocIcon);$e.content=it?Je:$e.content+Je,yield $($e.id,$e),yield i==null?void 0:i(ft,$e)}),ie.apply(this,arguments)}function Ne(ft,Zt,it,$e){return Me.apply(this,arguments)}function Me(){return Me=W8(function*(ft,Zt,it,$e){const Je=z(ft);Je.content=ESn(Je.content,Zt,it,$e),yield $(Je.id,Je),yield o==null?void 0:o(ft,Je)}),Me.apply(this,arguments)}function Ie(ft,Zt,it){return Oe.apply(this,arguments)}function Oe(){return Oe=W8(function*(ft,Zt,it){const $e=z(ft);if($e.content===y)$e.content=Zt;else if($e.status===M1.Loading)$e.content=it?Zt:$e.content+Zt;else return;yield $($e.id,$e),yield r==null?void 0:r(ft,$e)}),Oe.apply(this,arguments)}function je(ft,Zt){return Ae.apply(this,arguments)}function Ae(){return Ae=W8(function*(ft,Zt){const it=z(ft);if(it.content===y||DSn(it.content)){ke(ft,"聊天内容已中断");return}it.status===M1.Loading&&(C.value[ft]=!1,Zt&&(it.content=Zt),it.status=M1.Success,yield $(it.id,it),yield l==null?void 0:l(ft,it))}),Ae.apply(this,arguments)}function ke(ft,Zt,it){return me.apply(this,arguments)}function me(){return me=W8(function*(ft,Zt,it){const $e=z(ft);if($e.status=M1.Fail,$e.content=Zt,C.value[ft]=!1,it===hX.TokenExpired){var Je,Mt;if($e.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",$e.role=oi.TokenExpired,!((Mt=x.value)===null||Mt===void 0||(Je=Mt.sessionProperty)===null||Je===void 0)&&Je.isAutoClear){var Ue;yield X(ft,{sessionCode:ft,role:oi.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield b.clearSession((Ue=x.value)===null||Ue===void 0?void 0:Ue.sessionCode)}}it===hX.ImageNotSupported&&($e.content="抱歉,当前模型不支持图片内容解析",$e.role=oi.ImageNotSupported),yield $($e.id,$e),yield h==null?void 0:h(ft,$e,it)}),me.apply(this,arguments)}function we(ft,Zt){return Ee.apply(this,arguments)}function Ee(){return Ee=W8(function*(ft,Zt){let it=!1;E[ft]=[];for(const $e of Zt)if(it)E[ft].push($e);else{const Je=PSn(yme({},MSn($e)),{sessionCode:ft,status:M1.Success});yield X(ft,Je),Je.role===oi.Pause&&(it=!0)}}),Ee.apply(this,arguments)}function qe(ft,Zt,it){if(Zt.role!==oi.Ai)return;const $e=T.value.slice(it,T.value.length).map(Mt=>Mt.id).filter(Mt=>Mt!==void 0);$e.length>0&&ue(ft,$e);const Je=T.value[it-1];Je&&Be(Je)}function Be({sessionCode:ft,url:Zt,data:it,headers:$e}){const Je=E[ft];(Je==null?void 0:Je.length)>0?we(ft,Je):tn(ft,it,Zt,$e)}function tn(ft,Zt,it,$e){var Je;const Mt=z(ft);R.stream({sessionCode:ft,url:it||`${A.value.url}/chat_completion/`,data:yme({session_content_id:Mt==null?void 0:Mt.id,session_code:ft,execute_kwargs:{stream:!0}},Zt,A.value.data),headers:$e||((Je=A.value)===null||Je===void 0?void 0:Je.headers)})}function Ze(ft,Zt,it){return Wt.apply(this,arguments)}function Wt(){return Wt=W8(function*(ft,Zt,it){var $e,Je;if(Zt.role!==oi.User)return;const Mt=T.value.slice(it,T.value.length).map(Ue=>Ue.id).filter(Ue=>Ue!==void 0);Mt.length>0&&ue(ft,Mt),yield X(ft,{role:oi.User,content:Zt.content,sessionCode:ft,property:{extra:{cite:(Je=Zt.property)===null||Je===void 0||($e=Je.extra)===null||$e===void 0?void 0:$e.cite}}}),Be(Zt)}),Wt.apply(this,arguments)}function Yt(ft,Zt){let it=[];if(T.value[ft].role===oi.User){it=T.value.slice(ft,ft+2).map(Je=>Je.id).filter(Je=>Je!==void 0),ue(Zt,it);return}it=T.value.slice(ft-1,ft+1).map(Je=>Je.id).filter(Je=>Je!==void 0),ue(Zt,it)}function Sn(ft){R.stop(ft)}return{currentSession:x,sessionContents:T,sessionContentsMap:M,sessionLoadingMap:C,prompts:F,currentSessionLoading:P,isLoadingSessionContents:D,chat:Be,stopChat:Sn,plusSessionContent:X,updateSessionContent:se,getSessionContentById:W,getLastSessionContentBySessionCode:z,getSessionContentsBySessionCode:ee,setCurrentSession:Y,setCurrentSessionChain:U,setSessionContents:_,deleteSessionContent:ce,deleteSessionContents:ue,handleStartChat:oe,handleErrorChat:ke,handleCompleteRole:we,reGenerateChat:qe,reSendChat:Ze,deleteChat:Yt,getAgentInfoApi:(...ft)=>b.getAgentInfo(...ft),clearSessionApi:(...ft)=>b.clearSession(...ft),getSessionsApi:(...ft)=>b.getSessions(...ft),plusSessionApi:(...ft)=>b.plusSession(...ft),modifySessionApi:(...ft)=>b.modifySession(...ft),deleteSessionApi:(...ft)=>b.deleteSession(...ft),batchDeleteSessionsApi:(...ft)=>b.batchDeleteSessions(...ft),getSessionApi:(...ft)=>b.getSession(...ft),getSessionContentsApi:(...ft)=>b.getSessionContents(...ft),plusSessionContentApi:(...ft)=>b.plusSessionContent(...ft),modifySessionContentApi:(...ft)=>b.modifySessionContent(...ft),deleteSessionContentApi:(...ft)=>b.deleteSessionContent(...ft),batchDeleteSessionContentsApi:(...ft)=>b.batchDeleteSessionContents(...ft),renameSessionApi:(...ft)=>b.renameSession(...ft),updateRequestOptions:V}};(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})();const FSn=()=>{nSn(),NSn()},RSn=K.defineComponent({setup(n,{expose:r}){const i=K.ref(!1),o=K.ref(),l=K.ref();let h;const f=()=>{var y;window.open((y=o.value)===null||y===void 0?void 0:y.apply_url,"_blank")},p=()=>{i.value=!1,h==null||h()};return r({handleShow:(y,A)=>{var x,C,T,M,E,D,O,P,F,R;o.value=y,i.value=!0,l.value=[{system_name:y==null||(x=y.permission)===null||x===void 0?void 0:x.system_name,name:y==null||(T=y.permission)===null||T===void 0||(C=T.actions)===null||C===void 0?void 0:C.map(V=>V.name).join(","),instance_name:y==null||(R=y.permission)===null||R===void 0||(F=R.actions[0])===null||F===void 0||(P=F.related_resource_types)===null||P===void 0||(O=P[0])===null||O===void 0||(D=O.instances)===null||D===void 0||(E=D[0])===null||E===void 0||(M=E.at(-1))===null||M===void 0?void 0:M.name}],h=A}}),(y,A)=>{const x=K.resolveComponent("bk-exception"),C=K.resolveComponent("bk-table-column"),T=K.resolveComponent("bk-table"),M=K.resolveComponent("bk-button"),E=K.resolveComponent("bk-dialog");return K.openBlock(),K.createBlock(E,{"is-show":i.value,width:640,class:"auth-dialog",onClosed:p},{header:K.withCtx(()=>[K.createVNode(x,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:K.withCtx(()=>[K.createElementVNode("div",null,[K.createVNode(M,{theme:"primary",onClick:f},{default:K.withCtx(()=>A[0]||(A[0]=[K.createTextVNode(" 去申请 ")])),_:1,__:[0]}),K.createVNode(M,{class:"g-ml-8",onClick:p},{default:K.withCtx(()=>A[1]||(A[1]=[K.createTextVNode(" 取消 ")])),_:1,__:[1]})])]),default:K.withCtx(()=>[K.createVNode(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:l.value},{default:K.withCtx(()=>[K.createVNode(C,{label:"系统",field:"system_name"}),K.createVNode(C,{label:"需要申请的权限",field:"name"}),K.createVNode(C,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});RSn.__file="./src/components/render-auth/auth-dialog.vue";const TN=document.createElement("div");TN.id="directive-ele",TN.style.position="absolute",TN.style.zIndex="999999",TN.classList.add("g-permission-cursor-element"),TN.style.height="0",document.body.appendChild(TN);const CZe=n=>r=>typeof r=="string"&&r.startsWith(n),wme=CZe("--"),zSn=CZe("var(--"),Ame=n=>zSn(n)?HSn.test(n.split("/*")[0].trim()):!1,HSn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vH={};function TZe(n){for(const r in n)vH[r]=n[r],wme(r)&&(vH[r].isCSSVariable=!0)}function bX(n,r){const i=typeof n=="string"&&!r?`${n}Context`:r,o=Symbol(i);return[f=>{const p=K.inject(o,f);if(p||p===null)return p;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(", ")}`:`\`${n}\``}`)},f=>(K.provide(o,f),f)]}const[_Sn,QSn]=bX("Motion"),[VSn,fYr]=bX("LayoutGroup");function yH(n,r,i){if(Array.isArray(n))return n.reduce((o,l)=>{const h=yH(l,r,i);return h?{...o,...h}:o},{});if(typeof n=="object")return n;if(n&&r){const o=r[n];return typeof o=="function"?o(i):o}}function $Sn(n,r){return typeof n!=typeof r?!0:Array.isArray(n)&&Array.isArray(r)?!GSn(n,r):n!==r}function GSn(n,r){const i=r.length;if(i!==n.length)return!1;for(let o=0;o<i;o++)if(r[o]!==n[o])return!1;return!0}function SZe(n,r){return n[r]?{...n,...n[r],[r]:void 0}:{...n}}function MZe(n){return n==null?void 0:n.startsWith("--")}const YSn=n=>n;function USn(n){return typeof n=="number"}const JSn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],WSn=new Set(JSn);function qSn(n){return WSn.has(n)}function ZSn(n,r){const i=n.animate,o=r.animate;if(i===o)return!1;if(!i||!o)return!0;if(typeof i=="object"||typeof o=="object"){const l=Object.keys(i),h=Object.keys(o);return l.length!==h.length?!0:l.some(f=>{if(f==="transition")return!1;const p=i[f],b=o[f];return p!==b})}return console.log(2344),i!==o}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KSn=n=>typeof n<"u",IZe={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>`${n}deg`},XSn={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>`${n}px`},rotate:IZe,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:YSn},skew:IZe},eMn=["translate","scale","rotate","skew"],tMn=["","X","Y","Z"],xme=new Map,vX=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];eMn.forEach(n=>{tMn.forEach(r=>{vX.push(n+r),xme.set(n+r,XSn[n])})});const nMn=new Set(vX),rMn=n=>nMn.has(n),EZe={x:"translateX",y:"translateY",z:"translateZ"};function iMn([n],[r]){return vX.indexOf(n)-vX.indexOf(r)}function aMn(n,[r,i]){return`${n} ${r}(${i})`}function oMn(n){return n.sort(iMn).reduce(aMn,"").trim()}const sMn={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function yX(n){return!!(n&&n.getVelocity)}const cMn={get:(n,r)=>{let i=MZe(r)?n.style.getPropertyValue(r):getComputedStyle(n)[r];if(!i&&i!=="0"){const o=xme.get(r);o&&(i=o.initialValue)}return i},set:(n,r,i)=>{MZe(r)?n.style.setProperty(r,i):n.style[r]=i}};function lMn(n){var r;const i={},o=[];for(let l in n){let h=n[l];h=yX(h)?h.get():h,rMn(l)&&l in EZe&&(l=EZe[l]);let f=Array.isArray(h)?h[0]:h;const p=xme.get(l);p?(f=USn(h)?(r=p.toDefaultUnit)==null?void 0:r.call(p,h):h,o.push([l,f])):i[l]=f}return o.length&&(i.transform=oMn(o)),i}const LZe={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function uMn(n){const r={},i={};for(const o in n)if(o in LZe){const l=LZe[o],h=typeof l=="string"?l:o,f=n[o];r[h]=yX(f)?f.get():f}else i[o]=n[o];return{attributes:r,style:i}}function DZe(n){return n?n.flatMap(r=>r.type===K.Fragment?DZe(r.children):[r]):[]}const hMn=K.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:r,slots:i}){return()=>{var o,l;if(!i.default)return null;const h=DZe(i.default()),f=h.findIndex(A=>A.type!==K.Comment);if(f===-1)return h;const p=h[f];(o=p.props)==null||delete o.ref;const b=p.props?K.mergeProps(r,p.props):r;r.class&&((l=p.props)!=null&&l.class)&&delete p.props.class;const y=K.cloneVNode(p,b);for(const A in b)A.startsWith("on")&&(y.props||(y.props={}),y.props[A]=b[A]);return h.length===1?y:(h[f]=y,h)}}}),fMn=K.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(n,{attrs:r,slots:i}){const o=n.asChild?"template":n.as,l=["area","img","input"];return()=>{const f={...n.getProps(),...r};return typeof o=="string"&&l.includes(o)?K.h(o,f):o!=="template"?K.h(n.as,f,{default:i.default}):K.h(hMn,f,{default:i.default})}}}),lS=new WeakMap;class r6{constructor(r){this.state=r}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const Ip=n=>n;let NZe=Ip;const wX=["read","resolveKeyframes","update","preRender","render","postRender"];function dMn(n,r){let i=new Set,o=new Set,l=!1,h=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function b(A){f.has(A)&&(y.schedule(A),n()),A(p)}const y={schedule:(A,x=!1,C=!1)=>{const M=C&&l?i:o;return x&&f.add(A),M.has(A)||M.add(A),A},cancel:A=>{o.delete(A),f.delete(A)},process:A=>{if(p=A,l){h=!0;return}l=!0,[i,o]=[o,i],i.forEach(b),i.clear(),l=!1,h&&(h=!1,y.process(A))}};return y}const gMn=40;function OZe(n,r){let i=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},h=()=>i=!0,f=wX.reduce((O,P)=>(O[P]=dMn(h),O),{}),{read:p,resolveKeyframes:b,update:y,preRender:A,render:x,postRender:C}=f,T=()=>{const O=performance.now();i=!1,l.delta=o?1e3/60:Math.max(Math.min(O-l.timestamp,gMn),1),l.timestamp=O,l.isProcessing=!0,p.process(l),b.process(l),y.process(l),A.process(l),x.process(l),C.process(l),l.isProcessing=!1,i&&r&&(o=!1,n(T))},M=()=>{i=!0,o=!0,l.isProcessing||n(T)};return{schedule:wX.reduce((O,P)=>{const F=f[P];return O[P]=(R,V=!1,Q=!1)=>(i||M(),F.schedule(R,V,Q)),O},{}),cancel:O=>{for(let P=0;P<wX.length;P++)f[wX[P]].cancel(O)},state:l,steps:f}}const{schedule:nu,cancel:q8,state:I1,steps:kme}=OZe(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ip,!0);function pMn(n){return n instanceof SVGElement&&n.tagName!=="svg"}class mMn extends r6{mount(){const r=this.state.element;if(!pMn(r))return;const i=this.state.visualElement;nu.read(()=>{try{i.renderState.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const wH=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),tx=wH("deg"),Z8=wH("%"),fo=wH("px"),bMn=wH("vh"),vMn=wH("vw"),BZe={...Z8,parse:n=>Z8.parse(n)/100,transform:n=>Z8.transform(n*100)};function PZe(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const AH={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(fo.test(n))n=parseFloat(n);else return n;const i=PZe(n,r.target.x),o=PZe(n,r.target.y);return`${i}% ${o}%`}},uf=(n,r,i)=>n+(r-n)*i,nx=(n,r,i)=>i>r?r:i<n?n:i,SN={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xH={...SN,transform:n=>nx(0,1,n)},AX={...SN,default:1},kH=n=>Math.round(n*1e5)/1e5,Cme=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yMn(n){return n==null}const wMn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tme=(n,r)=>i=>!!(typeof i=="string"&&wMn.test(i)&&i.startsWith(n)||r&&!yMn(i)&&Object.prototype.hasOwnProperty.call(i,r)),jZe=(n,r,i)=>o=>{if(typeof o!="string")return o;const[l,h,f,p]=o.match(Cme);return{[n]:parseFloat(l),[r]:parseFloat(h),[i]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},AMn=n=>nx(0,255,n),Sme={...SN,transform:n=>Math.round(AMn(n))},uS={test:Tme("rgb","red"),parse:jZe("red","green","blue"),transform:({red:n,green:r,blue:i,alpha:o=1})=>"rgba("+Sme.transform(n)+", "+Sme.transform(r)+", "+Sme.transform(i)+", "+kH(xH.transform(o))+")"};function xMn(n){let r="",i="",o="",l="";return n.length>5?(r=n.substring(1,3),i=n.substring(3,5),o=n.substring(5,7),l=n.substring(7,9)):(r=n.substring(1,2),i=n.substring(2,3),o=n.substring(3,4),l=n.substring(4,5),r+=r,i+=i,o+=o,l+=l),{red:parseInt(r,16),green:parseInt(i,16),blue:parseInt(o,16),alpha:l?parseInt(l,16)/255:1}}const Mme={test:Tme("#"),parse:xMn,transform:uS.transform},MN={test:Tme("hsl","hue"),parse:jZe("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:i,alpha:o=1})=>"hsla("+Math.round(n)+", "+Z8.transform(kH(r))+", "+Z8.transform(kH(i))+", "+kH(xH.transform(o))+")"},f2={test:n=>uS.test(n)||Mme.test(n)||MN.test(n),parse:n=>uS.test(n)?uS.parse(n):MN.test(n)?MN.parse(n):Mme.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?uS.transform(n):MN.transform(n)},kMn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function CMn(n){var r,i;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Cme))===null||r===void 0?void 0:r.length)||0)+(((i=n.match(kMn))===null||i===void 0?void 0:i.length)||0)>0}const FZe="number",RZe="color",TMn="var",SMn="var(",zZe="${}",MMn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function CH(n){const r=n.toString(),i=[],o={color:[],number:[],var:[]},l=[];let h=0;const p=r.replace(MMn,b=>(f2.test(b)?(o.color.push(h),l.push(RZe),i.push(f2.parse(b))):b.startsWith(SMn)?(o.var.push(h),l.push(TMn),i.push(b)):(o.number.push(h),l.push(FZe),i.push(parseFloat(b))),++h,zZe)).split(zZe);return{values:i,split:p,indexes:o,types:l}}function HZe(n){return CH(n).values}function _Ze(n){const{split:r,types:i}=CH(n),o=r.length;return l=>{let h="";for(let f=0;f<o;f++)if(h+=r[f],l[f]!==void 0){const p=i[f];p===FZe?h+=kH(l[f]):p===RZe?h+=f2.transform(l[f]):h+=l[f]}return h}}const IMn=n=>typeof n=="number"?0:n;function EMn(n){const r=HZe(n);return _Ze(n)(r.map(IMn))}const rx={test:CMn,parse:HZe,createTransformer:_Ze,getAnimatableNone:EMn},LMn={correct:(n,{treeScale:r,projectionDelta:i})=>{const o=n,l=rx.parse(n);if(l.length>5)return o;const h=rx.createTransformer(n),f=typeof l[0]!="number"?1:0,p=i.x.scale*r.x,b=i.y.scale*r.y;l[0+f]/=p,l[1+f]/=b;const y=uf(p,b,.5);return typeof l[2+f]=="number"&&(l[2+f]/=y),typeof l[3+f]=="number"&&(l[3+f]/=y),h(l)}},QZe={borderRadius:{...AH,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:AH,borderTopRightRadius:AH,borderBottomLeftRadius:AH,borderBottomRightRadius:AH,boxShadow:LMn},xX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class DMn extends r6{constructor(r){super(r),TZe(QZe)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var r,i;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((i=(r=this.state.visualElement.projection)==null?void 0:r.root)==null||i.didUpdate())}mount(){var r;const i=this.state.options,o=this.state.options.layoutGroup;if(i.layout||i.layoutId){const l=this.state.visualElement.projection;l&&(l.promote(),(r=o==null?void 0:o.group)==null||r.add(l)),xX.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const r=this.state.visualElement.projection;r&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(r.isPresent=!1,r.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var r,i;const o=this.state.options.layoutGroup,l=this.state.visualElement.projection;if(l){if(o!=null&&o.group&&o.group.remove(l),(i=(r=l.getStack())==null?void 0:r.lead)!=null&&i.animationProgress)return;this.didUpdate()}}}function VZe(n){return n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1}function Ime(n,r="page"){return{point:{x:n[`${r}X`],y:n[`${r}Y`]}}}function NMn(n){return r=>VZe(r)&&n(r,Ime(r))}function kX(n,r,i,o={passive:!0}){return n.addEventListener(r,i,o),()=>n.removeEventListener(r,i)}function TH(n,r,i,o){return kX(n,r,NMn(i),o)}const $Ze=(n,r)=>Math.abs(n-r);function OMn(n,r){const i=$Ze(n.x,r.x),o=$Ze(n.y,r.y);return Math.sqrt(i**2+o**2)}const BMn=(n,r)=>i=>r(n(i)),SH=(...n)=>n.reduce(BMn),PMn=n=>n*1e3;function jMn(n){return n/1e3}class GZe{constructor(r,i,{transformPagePoint:o,contextWindow:l,dragSnapToOrigin:h=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Lme(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=OMn(x.offset,{x:0,y:0})>=3;if(!C&&!T)return;const{point:M}=x,{timestamp:E}=I1;this.history.push({...M,timestamp:E});const{onStart:D,onMove:O}=this.handlers;C||(D&&D(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Eme(C,this.transformPagePoint),nu.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:T,onSessionEnd:M,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Lme(x.type==="pointercancel"?this.lastMoveEventInfo:Eme(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,D),M&&M(x,D)},!VZe(r))return;this.dragSnapToOrigin=h,this.handlers=i,this.transformPagePoint=o,this.contextWindow=l||window;const f=Ime(r),p=Eme(f,this.transformPagePoint),{point:b}=p,{timestamp:y}=I1;this.history=[{...b,timestamp:y}];const{onSessionStart:A}=i;A&&A(r,Lme(p,this.history)),this.removeListeners=SH(TH(this.contextWindow,"pointermove",this.handlePointerMove),TH(this.contextWindow,"pointerup",this.handlePointerUp),TH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),q8(this.updatePoint)}}function Eme(n,r){return r?{point:r(n.point)}:n}function YZe(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Lme({point:n},r){return{point:n,delta:YZe(n,UZe(r)),offset:YZe(n,FMn(r)),velocity:RMn(r,.1)}}function FMn(n){return n[0]}function UZe(n){return n[n.length-1]}function RMn(n,r){if(n.length<2)return{x:0,y:0};let i=n.length-1,o=null;const l=UZe(n);for(;i>=0&&(o=n[i],!(l.timestamp-o.timestamp>PMn(r)));)i--;if(!o)return{x:0,y:0};const h=jMn(l.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const f={x:(l.x-o.x)/h,y:(l.y-o.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function JZe({current:n}){return n?n.ownerDocument.defaultView:null}function WZe(n){return(r,i)=>{n&&nu.postRender(()=>n(r,i))}}class zMn extends r6{constructor(){super(...arguments),this.removePointerDownListener=Ip}onPointerDown(r){this.session=new GZe(r,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:JZe(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:WZe((r,i)=>{const{onPanSessionStart:o}=this.state.options;o&&o(r,i)}),onStart:WZe((r,i)=>{const{onPanStart:o}=this.state.options;o&&o(r,i)}),onMove:(r,i)=>{const{onPan:o}=this.state.options;o&&o(r,i)},onEnd:(r,i)=>{const{onPanEnd:o}=this.state.options;delete this.session,o&&nu.postRender(()=>o(r,i))}}}mount(){this.removePointerDownListener=TH(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function qZe(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}class HMn extends r6{constructor(r){super(r)}updateAnimationControlsSubscription(){const{animate:r}=this.state.options;qZe(r)&&(this.unmountControls=r.subscribe(this.state))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.state.options,{animate:i}=this.state.visualElement.prevProps||{};r!==i&&this.updateAnimationControlsSubscription()}unmount(){var r;(r=this.unmountControls)==null||r.call(this)}}function Dme(n,r){return n?n[r]||n.default||n:void 0}const _Mn={useManualTiming:!1};let CX;function QMn(){CX=void 0}const i6={now:()=>(CX===void 0&&i6.set(I1.isProcessing||_Mn.useManualTiming?I1.timestamp:performance.now()),CX),set:n=>{CX=n,queueMicrotask(QMn)}};function Nme(n,r){n.indexOf(r)===-1&&n.push(r)}function TX(n,r){const i=n.indexOf(r);i>-1&&n.splice(i,1)}class Ome{constructor(){this.subscriptions=[]}add(r){return Nme(this.subscriptions,r),()=>TX(this.subscriptions,r)}notify(r,i,o){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](r,i,o);else for(let h=0;h<l;h++){const f=this.subscriptions[h];f&&f(r,i,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ZZe(n,r){return r?n*(1e3/r):0}const KZe=30,VMn=n=>!isNaN(parseFloat(n));class $Mn{constructor(r,i={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,l=!0)=>{const h=i6.now();this.updatedAt!==h&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),l&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=i.owner}setCurrent(r){this.current=r,this.updatedAt=i6.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=VMn(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,i){this.events[r]||(this.events[r]=new Ome);const o=this.events[r].add(i);return r==="change"?()=>{o(),nu.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,i){this.passiveEffect=r,this.stopPassiveEffect=i}set(r,i=!0){!i||!this.passiveEffect?this.updateAndNotify(r,i):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,i,o){this.set(i),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,i=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=i6.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>KZe)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,KZe);return ZZe(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(r){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=r(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function MH(n,r){return new $Mn(n,r)}const d2=n=>!!(n&&n.getVelocity);function Bme(n){let r;return()=>(r===void 0&&(r=n()),r)}const GMn=Bme(()=>window.ScrollTimeline!==void 0);class YMn{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,i){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=i}attachTimeline(r,i){const o=this.animations.map(l=>{if(GMn()&&l.attachTimeline)return l.attachTimeline(r);if(typeof i=="function")return i(l)});return()=>{o.forEach((l,h)=>{l&&l(),this.animations[h].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let i=0;i<this.animations.length;i++)r=Math.max(r,this.animations[i].duration);return r}runAll(r){this.animations.forEach(i=>i[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class XZe extends YMn{then(r,i){return Promise.all(this.animations).then(r).catch(i)}}const K8=n=>n*1e3,X8=n=>n/1e3;function SX(n){return typeof n=="function"}function eKe(n,r){n.timeline=r,n.onfinish=null}const Pme=n=>Array.isArray(n)&&typeof n[0]=="number",UMn={linearEasing:void 0};function JMn(n,r){const i=Bme(n);return()=>{var o;return(o=UMn[r])!==null&&o!==void 0?o:i()}}const MX=JMn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),IH=(n,r,i)=>{const o=r-n;return o===0?1:(i-n)/o},tKe=(n,r,i=10)=>{let o="";const l=Math.max(Math.round(r/i),2);for(let h=0;h<l;h++)o+=n(IH(0,l-1,h))+", ";return`linear(${o.substring(0,o.length-2)})`};function nKe(n){return!!(typeof n=="function"&&MX()||!n||typeof n=="string"&&(n in jme||MX())||Pme(n)||Array.isArray(n)&&n.every(nKe))}const EH=([n,r,i,o])=>`cubic-bezier(${n}, ${r}, ${i}, ${o})`,jme={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:EH([0,.65,.55,1]),circOut:EH([.55,0,1,.45]),backIn:EH([.31,.01,.66,-.59]),backOut:EH([.33,1.53,.69,.99])};function rKe(n,r){if(n)return typeof n=="function"&&MX()?tKe(n,r):Pme(n)?EH(n):Array.isArray(n)?n.map(i=>rKe(i,r)||jme.easeOut):jme[n]}const iKe=(n,r,i)=>(((1-3*i+3*r)*n+(3*i-6*r))*n+3*r)*n,WMn=1e-7,qMn=12;function ZMn(n,r,i,o,l){let h,f,p=0;do f=r+(i-r)/2,h=iKe(f,o,l)-n,h>0?i=f:r=f;while(Math.abs(h)>WMn&&++p<qMn);return f}function LH(n,r,i,o){if(n===r&&i===o)return Ip;const l=h=>ZMn(h,0,1,n,i);return h=>h===0||h===1?h:iKe(l(h),r,o)}const aKe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,oKe=n=>r=>1-n(1-r),sKe=LH(.33,1.53,.69,.99),Fme=oKe(sKe),cKe=aKe(Fme),lKe=n=>(n*=2)<1?.5*Fme(n):.5*(2-Math.pow(2,-10*(n-1))),Rme=n=>1-Math.sin(Math.acos(n)),uKe=oKe(Rme),hKe=aKe(Rme),fKe=n=>/^0[^.\s]+$/u.test(n);function KMn(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||fKe(n):!0}const IN=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],EN=new Set(IN),dKe=new Set(["width","height","top","left","right","bottom",...IN]),XMn=new Set(["brightness","contrast","saturate","opacity"]);function eIn(n){const[r,i]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=i.match(Cme)||[];if(!o)return n;const l=i.replace(o,"");let h=XMn.has(r)?1:0;return o!==i&&(h*=100),r+"("+h+l+")"}const tIn=/\b([a-z-]*)\(.*?\)/gu,zme={...rx,getAnimatableNone:n=>{const r=n.match(tIn);return r?r.map(eIn).join(" "):n}},nIn={borderWidth:fo,borderTopWidth:fo,borderRightWidth:fo,borderBottomWidth:fo,borderLeftWidth:fo,borderRadius:fo,radius:fo,borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomRightRadius:fo,borderBottomLeftRadius:fo,width:fo,maxWidth:fo,height:fo,maxHeight:fo,top:fo,right:fo,bottom:fo,left:fo,padding:fo,paddingTop:fo,paddingRight:fo,paddingBottom:fo,paddingLeft:fo,margin:fo,marginTop:fo,marginRight:fo,marginBottom:fo,marginLeft:fo,backgroundPositionX:fo,backgroundPositionY:fo},rIn={rotate:tx,rotateX:tx,rotateY:tx,rotateZ:tx,scale:AX,scaleX:AX,scaleY:AX,scaleZ:AX,skew:tx,skewX:tx,skewY:tx,distance:fo,translateX:fo,translateY:fo,translateZ:fo,x:fo,y:fo,z:fo,perspective:fo,transformPerspective:fo,opacity:xH,originX:BZe,originY:BZe,originZ:fo},gKe={...SN,transform:Math.round},Hme={...nIn,...rIn,zIndex:gKe,size:fo,fillOpacity:xH,strokeOpacity:xH,numOctaves:gKe},iIn={...Hme,color:f2,backgroundColor:f2,outlineColor:f2,fill:f2,stroke:f2,borderColor:f2,borderTopColor:f2,borderRightColor:f2,borderBottomColor:f2,borderLeftColor:f2,filter:zme,WebkitFilter:zme},_me=n=>iIn[n];function pKe(n,r){let i=_me(n);return i!==zme&&(i=rx),i.getAnimatableNone?i.getAnimatableNone(r):void 0}const aIn=new Set(["auto","none","0"]);function oIn(n,r,i){let o=0,l;for(;o<n.length&&!l;){const h=n[o];typeof h=="string"&&!aIn.has(h)&&CH(h).values.length&&(l=n[o]),o++}if(l&&i)for(const h of r)n[h]=pKe(i,l)}const mKe=n=>n===SN||n===fo,bKe=(n,r)=>parseFloat(n.split(", ")[r]),vKe=(n,r)=>(i,{transform:o})=>{if(o==="none"||!o)return 0;const l=o.match(/^matrix3d\((.+)\)$/u);if(l)return bKe(l[1],r);{const h=o.match(/^matrix\((.+)\)$/u);return h?bKe(h[1],n):0}},sIn=new Set(["x","y","z"]),cIn=IN.filter(n=>!sIn.has(n));function lIn(n){const r=[];return cIn.forEach(i=>{const o=n.getValue(i);o!==void 0&&(r.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),r}const LN={width:({x:n},{paddingLeft:r="0",paddingRight:i="0"})=>n.max-n.min-parseFloat(r)-parseFloat(i),height:({y:n},{paddingTop:r="0",paddingBottom:i="0"})=>n.max-n.min-parseFloat(r)-parseFloat(i),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:vKe(4,13),y:vKe(5,14)};LN.translateX=LN.x,LN.translateY=LN.y;const hS=new Set;let Qme=!1,Vme=!1;function yKe(){if(Vme){const n=Array.from(hS).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),i=new Map;r.forEach(o=>{const l=lIn(o);l.length&&(i.set(o,l),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const l=i.get(o);l&&l.forEach(([h,f])=>{var p;(p=o.getValue(h))===null||p===void 0||p.set(f)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Vme=!1,Qme=!1,hS.forEach(n=>n.complete()),hS.clear()}function wKe(){hS.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Vme=!0)})}function uIn(){wKe(),yKe()}class $me{constructor(r,i,o,l,h,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=i,this.name=o,this.motionValue=l,this.element=h,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hS.add(this),Qme||(Qme=!0,nu.read(wKe),nu.resolveKeyframes(yKe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:i,element:o,motionValue:l}=this;for(let h=0;h<r.length;h++)if(r[h]===null)if(h===0){const f=l==null?void 0:l.get(),p=r[r.length-1];if(f!==void 0)r[0]=f;else if(o&&i){const b=o.readValue(i,p);b!=null&&(r[0]=b)}r[0]===void 0&&(r[0]=p),l&&f===void 0&&l.set(r[0])}else r[h]=r[h-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),hS.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,hS.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const AKe=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),hIn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fIn(n){const r=hIn.exec(n);if(!r)return[,];const[,i,o,l]=r;return[`--${i??o}`,l]}function xKe(n,r,i=1){const[o,l]=fIn(n);if(!o)return;const h=window.getComputedStyle(r).getPropertyValue(o);if(h){const f=h.trim();return AKe(f)?parseFloat(f):f}return Ame(l)?xKe(l,r,i+1):l}const kKe=n=>r=>r.test(n),CKe=[SN,fo,Z8,tx,vMn,bMn,{test:n=>n==="auto",parse:n=>n}],TKe=n=>CKe.find(kKe(n));class SKe extends $me{constructor(r,i,o,l,h){super(r,i,o,l,h,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:i,name:o}=this;if(!i||!i.current)return;super.readKeyframes();for(let b=0;b<r.length;b++){let y=r[b];if(typeof y=="string"&&(y=y.trim(),Ame(y))){const A=xKe(y,i.current);A!==void 0&&(r[b]=A),b===r.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!dKe.has(o)||r.length!==2)return;const[l,h]=r,f=TKe(l),p=TKe(h);if(f!==p)if(mKe(f)&&mKe(p))for(let b=0;b<r.length;b++){const y=r[b];typeof y=="string"&&(r[b]=parseFloat(y))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:i}=this,o=[];for(let l=0;l<r.length;l++)KMn(r[l])&&o.push(l);o.length&&oIn(r,o,i)}measureInitialState(){const{element:r,unresolvedKeyframes:i,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=LN[o](r.measureViewportBox(),window.getComputedStyle(r.current)),i[0]=this.measuredOrigin;const l=i[i.length-1];l!==void 0&&r.getValue(o,l).jump(l,!1)}measureEndState(){var r;const{element:i,name:o,unresolvedKeyframes:l}=this;if(!i||!i.current)return;const h=i.getValue(o);h&&h.jump(this.measuredOrigin,!1);const f=l.length-1,p=l[f];l[f]=LN[o](i.measureViewportBox(),window.getComputedStyle(i.current)),p!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=p),!((r=this.removedTransforms)===null||r===void 0)&&r.length&&this.removedTransforms.forEach(([b,y])=>{i.getValue(b).set(y)}),this.resolveNoneKeyframes()}}const MKe=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(rx.test(n)||n==="0")&&!n.startsWith("url("));function dIn(n){const r=n[0];if(n.length===1)return!0;for(let i=0;i<n.length;i++)if(n[i]!==r)return!0}function gIn(n,r,i,o){const l=n[0];if(l===null)return!1;if(r==="display"||r==="visibility")return!0;const h=n[n.length-1],f=MKe(l,r),p=MKe(h,r);return!f||!p?!1:dIn(n)||(i==="spring"||SX(i))&&o}const pIn=n=>n!==null;function IX(n,{repeat:r,repeatType:i="loop"},o){const l=n.filter(pIn),h=r&&i!=="loop"&&r%2===1?0:l.length-1;return!h||o===void 0?l[h]:o}const mIn=40;class IKe{constructor({autoplay:r=!0,delay:i=0,type:o="keyframes",repeat:l=0,repeatDelay:h=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=i6.now(),this.options={autoplay:r,delay:i,type:o,repeat:l,repeatDelay:h,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>mIn?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&uIn(),this._resolved}onKeyframesResolved(r,i){this.resolvedAt=i6.now(),this.hasAttemptedResolve=!0;const{name:o,type:l,velocity:h,delay:f,onComplete:p,onUpdate:b,isGenerator:y}=this.options;if(!y&&!gIn(r,o,l,h))if(f)this.options.duration=0;else{b&&b(IX(r,this.options,i)),p&&p(),this.resolveFinishedPromise();return}const A=this.initPlayback(r,i);A!==!1&&(this._resolved={keyframes:r,finalKeyframe:i,...A},this.onPostResolved())}onPostResolved(){}then(r,i){return this.currentFinishedPromise.then(r,i)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const EX=2e4;function Gme(n){let r=0;const i=50;let o=n.next(r);for(;!o.done&&r<EX;)r+=i,o=n.next(r);return r>=EX?1/0:r}function Yme(n,r,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+(r-n)*6*i:i<1/2?r:i<2/3?n+(r-n)*(2/3-i)*6:n}function bIn({hue:n,saturation:r,lightness:i,alpha:o}){n/=360,r/=100,i/=100;let l=0,h=0,f=0;if(!r)l=h=f=i;else{const p=i<.5?i*(1+r):i+r-i*r,b=2*i-p;l=Yme(b,p,n+1/3),h=Yme(b,p,n),f=Yme(b,p,n-1/3)}return{red:Math.round(l*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:o}}function LX(n,r){return i=>i>0?r:n}const Ume=(n,r,i)=>{const o=n*n,l=i*(r*r-o)+o;return l<0?0:Math.sqrt(l)},vIn=[Mme,uS,MN],yIn=n=>vIn.find(r=>r.test(n));function EKe(n){const r=yIn(n);if(!r)return!1;let i=r.parse(n);return r===MN&&(i=bIn(i)),i}const LKe=(n,r)=>{const i=EKe(n),o=EKe(r);if(!i||!o)return LX(n,r);const l={...i};return h=>(l.red=Ume(i.red,o.red,h),l.green=Ume(i.green,o.green,h),l.blue=Ume(i.blue,o.blue,h),l.alpha=uf(i.alpha,o.alpha,h),uS.transform(l))},Jme=new Set(["none","hidden"]);function wIn(n,r){return Jme.has(n)?i=>i<=0?n:r:i=>i>=1?r:n}function AIn(n,r){return i=>uf(n,r,i)}function Wme(n){return typeof n=="number"?AIn:typeof n=="string"?Ame(n)?LX:f2.test(n)?LKe:CIn:Array.isArray(n)?DKe:typeof n=="object"?f2.test(n)?LKe:xIn:LX}function DKe(n,r){const i=[...n],o=i.length,l=n.map((h,f)=>Wme(h)(h,r[f]));return h=>{for(let f=0;f<o;f++)i[f]=l[f](h);return i}}function xIn(n,r){const i={...n,...r},o={};for(const l in i)n[l]!==void 0&&r[l]!==void 0&&(o[l]=Wme(n[l])(n[l],r[l]));return l=>{for(const h in o)i[h]=o[h](l);return i}}function kIn(n,r){var i;const o=[],l={color:0,var:0,number:0};for(let h=0;h<r.values.length;h++){const f=r.types[h],p=n.indexes[f][l[f]],b=(i=n.values[p])!==null&&i!==void 0?i:0;o[h]=b,l[f]++}return o}const CIn=(n,r)=>{const i=rx.createTransformer(r),o=CH(n),l=CH(r);return o.indexes.var.length===l.indexes.var.length&&o.indexes.color.length===l.indexes.color.length&&o.indexes.number.length>=l.indexes.number.length?Jme.has(n)&&!l.values.length||Jme.has(r)&&!o.values.length?wIn(n,r):SH(DKe(kIn(o,l),l.values),i):LX(n,r)};function NKe(n,r,i){return typeof n=="number"&&typeof r=="number"&&typeof i=="number"?uf(n,r,i):Wme(n)(n,r)}const TIn=5;function OKe(n,r,i){const o=Math.max(r-TIn,0);return ZZe(i-n(o),r-o)}const X0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},qme=.001;function SIn({duration:n=X0.duration,bounce:r=X0.bounce,velocity:i=X0.velocity,mass:o=X0.mass}){let l,h,f=1-r;f=nx(X0.minDamping,X0.maxDamping,f),n=nx(X0.minDuration,X0.maxDuration,X8(n)),f<1?(l=y=>{const A=y*f,x=A*n,C=A-i,T=Zme(y,f),M=Math.exp(-x);return qme-C/T*M},h=y=>{const x=y*f*n,C=x*i+i,T=Math.pow(f,2)*Math.pow(y,2)*n,M=Math.exp(-x),E=Zme(Math.pow(y,2),f);return(-l(y)+qme>0?-1:1)*((C-T)*M)/E}):(l=y=>{const A=Math.exp(-y*n),x=(y-i)*n+1;return-qme+A*x},h=y=>{const A=Math.exp(-y*n),x=(i-y)*(n*n);return A*x});const p=5/n,b=IIn(l,h,p);if(n=K8(n),isNaN(b))return{stiffness:X0.stiffness,damping:X0.damping,duration:n};{const y=Math.pow(b,2)*o;return{stiffness:y,damping:f*2*Math.sqrt(o*y),duration:n}}}const MIn=12;function IIn(n,r,i){let o=i;for(let l=1;l<MIn;l++)o=o-n(o)/r(o);return o}function Zme(n,r){return n*Math.sqrt(1-r*r)}const EIn=["duration","bounce"],LIn=["stiffness","damping","mass"];function BKe(n,r){return r.some(i=>n[i]!==void 0)}function DIn(n){let r={velocity:X0.velocity,stiffness:X0.stiffness,damping:X0.damping,mass:X0.mass,isResolvedFromDuration:!1,...n};if(!BKe(n,LIn)&&BKe(n,EIn))if(n.visualDuration){const i=n.visualDuration,o=2*Math.PI/(i*1.2),l=o*o,h=2*nx(.05,1,1-(n.bounce||0))*Math.sqrt(l);r={...r,mass:X0.mass,stiffness:l,damping:h}}else{const i=SIn(n);r={...r,...i,mass:X0.mass},r.isResolvedFromDuration=!0}return r}function Kme(n=X0.visualDuration,r=X0.bounce){const i=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:l}=i;const h=i.keyframes[0],f=i.keyframes[i.keyframes.length-1],p={done:!1,value:h},{stiffness:b,damping:y,mass:A,duration:x,velocity:C,isResolvedFromDuration:T}=DIn({...i,velocity:-X8(i.velocity||0)}),M=C||0,E=y/(2*Math.sqrt(b*A)),D=f-h,O=X8(Math.sqrt(b/A)),P=Math.abs(D)<5;o||(o=P?X0.restSpeed.granular:X0.restSpeed.default),l||(l=P?X0.restDelta.granular:X0.restDelta.default);let F;if(E<1){const V=Zme(O,E);F=Q=>{const $=Math.exp(-E*O*Q);return f-$*((M+E*O*D)/V*Math.sin(V*Q)+D*Math.cos(V*Q))}}else if(E===1)F=V=>f-Math.exp(-O*V)*(D+(M+O*D)*V);else{const V=O*Math.sqrt(E*E-1);F=Q=>{const $=Math.exp(-E*O*Q),Y=Math.min(V*Q,300);return f-$*((M+E*O*D)*Math.sinh(Y)+V*D*Math.cosh(Y))/V}}const R={calculatedDuration:T&&x||null,next:V=>{const Q=F(V);if(T)p.done=V>=x;else{let $=0;E<1&&($=V===0?K8(M):OKe(F,V,Q));const Y=Math.abs($)<=o,_=Math.abs(f-Q)<=l;p.done=Y&&_}return p.value=p.done?f:Q,p},toString:()=>{const V=Math.min(Gme(R),EX),Q=tKe($=>R.next(V*$).value,V,30);return V+"ms "+Q}};return R}function PKe({keyframes:n,velocity:r=0,power:i=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:h=500,modifyTarget:f,min:p,max:b,restDelta:y=.5,restSpeed:A}){const x=n[0],C={done:!1,value:x},T=Y=>p!==void 0&&Y<p||b!==void 0&&Y>b,M=Y=>p===void 0?b:b===void 0||Math.abs(p-Y)<Math.abs(b-Y)?p:b;let E=i*r;const D=x+E,O=f===void 0?D:f(D);O!==D&&(E=O-x);const P=Y=>-E*Math.exp(-Y/o),F=Y=>O+P(Y),R=Y=>{const _=P(Y),U=F(Y);C.done=Math.abs(_)<=y,C.value=C.done?O:U};let V,Q;const $=Y=>{T(C.value)&&(V=Y,Q=Kme({keyframes:[C.value,M(C.value)],velocity:OKe(F,Y,C.value),damping:l,stiffness:h,restDelta:y,restSpeed:A}))};return $(0),{calculatedDuration:null,next:Y=>{let _=!1;return!Q&&V===void 0&&(_=!0,R(Y),$(Y)),V!==void 0&&Y>=V?Q.next(Y-V):(!_&&R(Y),C)}}}const NIn=LH(.42,0,1,1),OIn=LH(0,0,.58,1),jKe=LH(.42,0,.58,1),FKe=n=>Array.isArray(n)&&typeof n[0]!="number",BIn={linear:Ip,easeIn:NIn,easeInOut:jKe,easeOut:OIn,circIn:Rme,circInOut:hKe,circOut:uKe,backIn:Fme,backInOut:cKe,backOut:sKe,anticipate:lKe},RKe=n=>{if(Pme(n)){NZe(n.length===4);const[r,i,o,l]=n;return LH(r,i,o,l)}else if(typeof n=="string")return BIn[n];return n};function PIn(n,r,i){const o=[],l=i||NKe,h=n.length-1;for(let f=0;f<h;f++){let p=l(n[f],n[f+1]);if(r){const b=Array.isArray(r)?r[f]||Ip:r;p=SH(b,p)}o.push(p)}return o}function jIn(n,r,{clamp:i=!0,ease:o,mixer:l}={}){const h=n.length;if(NZe(h===r.length),h===1)return()=>r[0];if(h===2&&r[0]===r[1])return()=>r[1];const f=n[0]===n[1];n[0]>n[h-1]&&(n=[...n].reverse(),r=[...r].reverse());const p=PIn(r,o,l),b=p.length,y=A=>{if(f&&A<n[0])return r[0];let x=0;if(b>1)for(;x<n.length-2&&!(A<n[x+1]);x++);const C=IH(n[x],n[x+1],A);return p[x](C)};return i?A=>y(nx(n[0],n[h-1],A)):y}function zKe(n,r){const i=n[n.length-1];for(let o=1;o<=r;o++){const l=IH(0,r,o);n.push(uf(i,1,l))}}function HKe(n){const r=[0];return zKe(r,n.length-1),r}function FIn(n,r){return n.map(i=>i*r)}function RIn(n,r){return n.map(()=>r||jKe).splice(0,n.length-1)}function DX({duration:n=300,keyframes:r,times:i,ease:o="easeInOut"}){const l=FKe(o)?o.map(RKe):RKe(o),h={done:!1,value:r[0]},f=FIn(i&&i.length===r.length?i:HKe(r),n),p=jIn(f,r,{ease:Array.isArray(l)?l:RIn(r,l)});return{calculatedDuration:n,next:b=>(h.value=p(b),h.done=b>=n,h)}}const zIn=n=>{const r=({timestamp:i})=>n(i);return{start:()=>nu.update(r,!0),stop:()=>q8(r),now:()=>I1.isProcessing?I1.timestamp:i6.now()}},HIn={decay:PKe,inertia:PKe,tween:DX,keyframes:DX,spring:Kme},_In=n=>n/100;class Xme extends IKe{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:b}=this.options;b&&b()};const{name:i,motionValue:o,element:l,keyframes:h}=this.options,f=(l==null?void 0:l.KeyframeResolver)||$me,p=(b,y)=>this.onKeyframesResolved(b,y);this.resolver=new f(h,p,i,o,l),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:h,velocity:f=0}=this.options,p=SX(i)?i:HIn[i]||DX;let b,y;p!==DX&&typeof r[0]!="number"&&(b=SH(_In,NKe(r[0],r[1])),r=[0,100]);const A=p({...this.options,keyframes:r});h==="mirror"&&(y=p({...this.options,keyframes:[...r].reverse(),velocity:-f})),A.calculatedDuration===null&&(A.calculatedDuration=Gme(A));const{calculatedDuration:x}=A,C=x+l,T=C*(o+1)-l;return{generator:A,mirroredGenerator:y,mapPercentToKeyframes:b,calculatedDuration:x,resolvedDuration:C,totalDuration:T}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,i=!1){const{resolved:o}=this;if(!o){const{keyframes:Y}=this.options;return{done:!0,value:Y[Y.length-1]}}const{finalKeyframe:l,generator:h,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:b,calculatedDuration:y,totalDuration:A,resolvedDuration:x}=o;if(this.startTime===null)return h.next(0);const{delay:C,repeat:T,repeatType:M,repeatDelay:E,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-A/this.speed,this.startTime)),i?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const O=this.currentTime-C*(this.speed>=0?1:-1),P=this.speed>=0?O<0:O>A;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=A);let F=this.currentTime,R=h;if(T){const Y=Math.min(this.currentTime,A)/x;let _=Math.floor(Y),U=Y%1;!U&&Y>=1&&(U=1),U===1&&_--,_=Math.min(_,T+1),!!(_%2)&&(M==="reverse"?(U=1-U,E&&(U-=E/x)):M==="mirror"&&(R=f)),F=nx(0,1,U)*x}const V=P?{done:!1,value:b[0]}:R.next(F);p&&(V.value=p(V.value));let{done:Q}=V;!P&&y!==null&&(Q=this.speed>=0?this.currentTime>=A:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return $&&l!==void 0&&(V.value=IX(b,this.options,l)),D&&D(V.value),$&&this.finish(),V}get duration(){const{resolved:r}=this;return r?X8(r.calculatedDuration):0}get time(){return X8(this.currentTime)}set time(r){r=K8(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const i=this.playbackSpeed!==r;this.playbackSpeed=r,i&&(this.time=X8(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=zIn,onPlay:i,startTime:o}=this.options;this.driver||(this.driver=r(h=>this.tick(h))),i&&i();const l=this.driver.now();this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=l):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const QIn=new Set(["opacity","clipPath","filter","transform"]);function VIn(n,r,i,{delay:o=0,duration:l=300,repeat:h=0,repeatType:f="loop",ease:p="easeInOut",times:b}={}){const y={[r]:i};b&&(y.offset=b);const A=rKe(p,l);return Array.isArray(A)&&(y.easing=A),n.animate(y,{delay:o,duration:l,easing:Array.isArray(A)?"linear":A,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"})}const $In=Bme(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),NX=10,GIn=2e4;function YIn(n){return SX(n.type)||n.type==="spring"||!nKe(n.ease)}function UIn(n,r){const i=new Xme({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const l=[];let h=0;for(;!o.done&&h<GIn;)o=i.sample(h),l.push(o.value),h+=NX;return{times:void 0,keyframes:l,duration:h-NX,ease:"linear"}}const _Ke={anticipate:lKe,backInOut:cKe,circInOut:hKe};function JIn(n){return n in _Ke}class QKe extends IKe{constructor(r){super(r);const{name:i,motionValue:o,element:l,keyframes:h}=this.options;this.resolver=new SKe(h,(f,p)=>this.onKeyframesResolved(f,p),i,o,l),this.resolver.scheduleResolve()}initPlayback(r,i){let{duration:o=300,times:l,ease:h,type:f,motionValue:p,name:b,startTime:y}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof h=="string"&&MX()&&JIn(h)&&(h=_Ke[h]),YIn(this.options)){const{onComplete:x,onUpdate:C,motionValue:T,element:M,...E}=this.options,D=UIn(r,E);r=D.keyframes,r.length===1&&(r[1]=r[0]),o=D.duration,l=D.times,h=D.ease,f="keyframes"}const A=VIn(p.owner.current,b,r,{...this.options,duration:o,times:l,ease:h});return A.startTime=y??this.calcStartTime(),this.pendingTimeline?(eKe(A,this.pendingTimeline),this.pendingTimeline=void 0):A.onfinish=()=>{const{onComplete:x}=this.options;p.set(IX(r,this.options,i)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:A,duration:o,times:l,type:f,ease:h,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:i}=r;return X8(i)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:i}=r;return X8(i.currentTime||0)}set time(r){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.currentTime=K8(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:i}=r;return i.playbackRate}set speed(r){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:i}=r;return i.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:i}=r;return i.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:i}=this;if(!i)return Ip;const{animation:o}=i;eKe(o,r)}return Ip}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playState==="finished"&&this.updateFinishedPromise(),i.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:i,keyframes:o,duration:l,type:h,ease:f,times:p}=r;if(i.playState==="idle"||i.playState==="finished")return;if(this.time){const{motionValue:y,onUpdate:A,onComplete:x,element:C,...T}=this.options,M=new Xme({...T,keyframes:o,duration:l,type:h,ease:f,times:p,isGenerator:!0}),E=K8(this.time);y.setWithVelocity(M.sample(E-NX).value,M.sample(E).value,NX)}const{onStop:b}=this.options;b&&b(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:i,name:o,repeatDelay:l,repeatType:h,damping:f,type:p}=r;if(!i||!i.owner||!(i.owner.current instanceof HTMLElement))return!1;const{onUpdate:b,transformTemplate:y}=i.owner.getProps();return $In()&&o&&QIn.has(o)&&!b&&!y&&!l&&h!=="mirror"&&f!==0&&p!=="inertia"}}const WIn={type:"spring",stiffness:500,damping:25,restSpeed:10},qIn=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),ZIn={type:"keyframes",duration:.8},KIn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XIn=(n,{keyframes:r})=>r.length>2?ZIn:EN.has(n)?n.startsWith("scale")?qIn(r[1]):WIn:KIn;function eEn({when:n,delay:r,delayChildren:i,staggerChildren:o,staggerDirection:l,repeat:h,repeatType:f,repeatDelay:p,from:b,elapsed:y,...A}){return!!Object.keys(A).length}const ebe=(n,r,i,o={},l,h)=>f=>{const p=Dme(o,n)||{},b=p.delay||o.delay||0;let{elapsed:y=0}=o;y=y-K8(b);let A={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:r.getVelocity(),...p,delay:-y,onUpdate:C=>{r.set(C),p.onUpdate&&p.onUpdate(C)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:r,element:h?void 0:l};eEn(p)||(A={...A,...XIn(n,A)}),A.duration&&(A.duration=K8(A.duration)),A.repeatDelay&&(A.repeatDelay=K8(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let x=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(A.duration=0,A.delay===0&&(x=!0)),x&&!h&&r.get()!==void 0){const C=IX(A.keyframes,p);if(C!==void 0)return nu.update(()=>{A.onUpdate(C),A.onComplete()}),new XZe([])}return!h&&QKe.supports(A)?new QKe(A):new Xme(A)};function VKe(n,r,i){const o=d2(n)?n:MH(n);return o.start(ebe("",o,r,i)),o.animation}const tbe=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tEn="data-"+tbe("framerAppearId");function $Ke(n){return n.props[tEn]}const{schedule:nEn}=OZe(queueMicrotask,!1);function GKe(n){return n instanceof SVGElement&&n.tagName!=="svg"}const rEn=(n,r)=>n.depth-r.depth;class iEn{constructor(){this.children=[],this.isDirty=!1}add(r){Nme(this.children,r),this.isDirty=!0}remove(r){TX(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(rEn),this.isDirty=!1,this.children.forEach(r)}}function aEn(n,r){const i=i6.now(),o=({timestamp:l})=>{const h=l-i;h>=r&&(q8(o),n(h-r))};return nu.read(o,!0),()=>q8(o)}const oEn=n=>Array.isArray(n),sEn=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),cEn=n=>oEn(n)?n[n.length-1]||0:n;function nbe(n){const r=d2(n)?n.get():n;return sEn(r)?r.toValue():r}const YKe=["TopLeft","TopRight","BottomLeft","BottomRight"],lEn=YKe.length,UKe=n=>typeof n=="string"?parseFloat(n):n,JKe=n=>typeof n=="number"||fo.test(n);function uEn(n,r,i,o,l,h){l?(n.opacity=uf(0,i.opacity!==void 0?i.opacity:1,hEn(o)),n.opacityExit=uf(r.opacity!==void 0?r.opacity:1,0,fEn(o))):h&&(n.opacity=uf(r.opacity!==void 0?r.opacity:1,i.opacity!==void 0?i.opacity:1,o));for(let f=0;f<lEn;f++){const p=`border${YKe[f]}Radius`;let b=WKe(r,p),y=WKe(i,p);if(b===void 0&&y===void 0)continue;b||(b=0),y||(y=0),b===0||y===0||JKe(b)===JKe(y)?(n[p]=Math.max(uf(UKe(b),UKe(y),o),0),(Z8.test(y)||Z8.test(b))&&(n[p]+="%")):n[p]=y}(r.rotate||i.rotate)&&(n.rotate=uf(r.rotate||0,i.rotate||0,o))}function WKe(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const hEn=qKe(0,.5,uKe),fEn=qKe(.5,.95,Ip);function qKe(n,r,i){return o=>o<n?0:o>r?1:i(IH(n,r,o))}function ZKe(n,r){n.min=r.min,n.max=r.max}function I4(n,r){ZKe(n.x,r.x),ZKe(n.y,r.y)}function KKe(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function rbe(n){return n===void 0||n===1}function ibe({scale:n,scaleX:r,scaleY:i}){return!rbe(n)||!rbe(r)||!rbe(i)}function fS(n){return ibe(n)||XKe(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function XKe(n){return eXe(n.x)||eXe(n.y)}function eXe(n){return n&&n!=="0%"}function OX(n,r,i){const o=n-i,l=r*o;return i+l}function tXe(n,r,i,o,l){return l!==void 0&&(n=OX(n,l,o)),OX(n,i,o)+r}function abe(n,r=0,i=1,o,l){n.min=tXe(n.min,r,i,o,l),n.max=tXe(n.max,r,i,o,l)}function nXe(n,{x:r,y:i}){abe(n.x,r.translate,r.scale,r.originPoint),abe(n.y,i.translate,i.scale,i.originPoint)}const rXe=.999999999999,iXe=1.0000000000001;function dEn(n,r,i,o=!1){const l=i.length;if(!l)return;r.x=r.y=1;let h,f;for(let p=0;p<l;p++){h=i[p],f=h.projectionDelta;const{visualElement:b}=h.options;b&&b.props.style&&b.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&DN(n,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(r.x*=f.x.scale,r.y*=f.y.scale,nXe(n,f)),o&&fS(h.latestValues)&&DN(n,h.latestValues))}r.x<iXe&&r.x>rXe&&(r.x=1),r.y<iXe&&r.y>rXe&&(r.y=1)}function BX(n,r){n.min=n.min+r,n.max=n.max+r}function aXe(n,r,i,o,l=.5){const h=uf(n.min,n.max,l);abe(n,r,i,h,o)}function DN(n,r){aXe(n.x,r.x,r.scaleX,r.scale,r.originX),aXe(n.y,r.y,r.scaleY,r.scale,r.originY)}const oXe=1e-4,gEn=1-oXe,pEn=1+oXe,sXe=.01,mEn=0-sXe,bEn=0+sXe;function E4(n){return n.max-n.min}function vEn(n,r,i){return Math.abs(n-r)<=i}function cXe(n,r,i,o=.5){n.origin=o,n.originPoint=uf(r.min,r.max,n.origin),n.scale=E4(i)/E4(r),n.translate=uf(i.min,i.max,n.origin)-n.originPoint,(n.scale>=gEn&&n.scale<=pEn||isNaN(n.scale))&&(n.scale=1),(n.translate>=mEn&&n.translate<=bEn||isNaN(n.translate))&&(n.translate=0)}function DH(n,r,i,o){cXe(n.x,r.x,i.x,o?o.originX:void 0),cXe(n.y,r.y,i.y,o?o.originY:void 0)}function lXe(n,r,i){n.min=i.min+r.min,n.max=n.min+E4(r)}function yEn(n,r,i){lXe(n.x,r.x,i.x),lXe(n.y,r.y,i.y)}function uXe(n,r,i){n.min=r.min-i.min,n.max=n.min+E4(r)}function NH(n,r,i){uXe(n.x,r.x,i.x),uXe(n.y,r.y,i.y)}function hXe(n,r,i,o,l){return n-=r,n=OX(n,1/i,o),l!==void 0&&(n=OX(n,1/l,o)),n}function wEn(n,r=0,i=1,o=.5,l,h=n,f=n){if(Z8.test(r)&&(r=parseFloat(r),r=uf(f.min,f.max,r/100)-f.min),typeof r!="number")return;let p=uf(h.min,h.max,o);n===h&&(p-=r),n.min=hXe(n.min,r,i,p,l),n.max=hXe(n.max,r,i,p,l)}function fXe(n,r,[i,o,l],h,f){wEn(n,r[i],r[o],r[l],r.scale,h,f)}const AEn=["x","scaleX","originX"],xEn=["y","scaleY","originY"];function dXe(n,r,i,o){fXe(n.x,r,AEn,i?i.x:void 0,o?o.x:void 0),fXe(n.y,r,xEn,i?i.y:void 0,o?o.y:void 0)}const gXe=()=>({translate:0,scale:1,origin:0,originPoint:0}),NN=()=>({x:gXe(),y:gXe()}),pXe=()=>({min:0,max:0}),Th=()=>({x:pXe(),y:pXe()});function mXe(n){return n.translate===0&&n.scale===1}function bXe(n){return mXe(n.x)&&mXe(n.y)}function vXe(n,r){return n.min===r.min&&n.max===r.max}function kEn(n,r){return vXe(n.x,r.x)&&vXe(n.y,r.y)}function yXe(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function wXe(n,r){return yXe(n.x,r.x)&&yXe(n.y,r.y)}function AXe(n){return E4(n.x)/E4(n.y)}function xXe(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class CEn{constructor(){this.members=[]}add(r){Nme(this.members,r),r.scheduleRender()}remove(r){if(TX(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(r){const i=this.members.findIndex(l=>r===l);if(i===0)return!1;let o;for(let l=i;l>=0;l--){const h=this.members[l];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(r,i){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,i&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:l}=r.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:i,resumingFrom:o}=r;i.onExitComplete&&i.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TEn(n,r,i){let o="";const l=n.x.translate/r.x,h=n.y.translate/r.y,f=(i==null?void 0:i.z)||0;if((l||h||f)&&(o=`translate3d(${l}px, ${h}px, ${f}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),i){const{transformPerspective:y,rotate:A,rotateX:x,rotateY:C,skewX:T,skewY:M}=i;y&&(o=`perspective(${y}px) ${o}`),A&&(o+=`rotate(${A}deg) `),x&&(o+=`rotateX(${x}deg) `),C&&(o+=`rotateY(${C}deg) `),T&&(o+=`skewX(${T}deg) `),M&&(o+=`skewY(${M}deg) `)}const p=n.x.scale*r.x,b=n.y.scale*r.y;return(p!==1||b!==1)&&(o+=`scale(${p}, ${b})`),o||"none"}function kXe(n){return[n("x"),n("y")]}const obe=["","X","Y","Z"],SEn={visibility:"hidden"},CXe=1e3;let MEn=0;function sbe(n,r,i,o){const{latestValues:l}=r;l[n]&&(i[n]=l[n],r.setStaticValue(n,0),o&&(o[n]=0))}function TXe(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const i=$Ke(r);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:h}=n.options;window.MotionCancelOptimisedAnimation(i,"transform",nu,!(l||h))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&TXe(o)}function SXe({attachResizeListener:n,defaultParent:r,measureScroll:i,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(f={},p=r==null?void 0:r()){this.id=MEn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LEn),this.nodes.forEach(PEn),this.nodes.forEach(jEn),this.nodes.forEach(DEn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let b=0;b<this.path.length;b++)this.path[b].shouldResetTransform=!0;this.root===this&&(this.nodes=new iEn)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ome),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const b=this.eventHandlers.get(f);b&&b.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f,p=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=GKe(f),this.instance=f;const{layoutId:b,layout:y,visualElement:A}=this.options;if(A&&!A.current&&A.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),p&&(y||b)&&(this.isLayoutDirty=!0),n){let x;const C=()=>this.root.updateBlockedByResize=!1;n(f,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=aEn(C,250),xX.hasAnimatedSinceResize&&(xX.hasAnimatedSinceResize=!1,this.nodes.forEach(IXe))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&A&&(b||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:C,hasRelativeLayoutChanged:T,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||A.getDefaultTransition()||_En,{onLayoutAnimationStart:D,onLayoutAnimationComplete:O}=A.getProps(),P=!this.targetLayout||!wXe(this.targetLayout,M),F=!C&&T;if(this.options.layoutRoot||this.resumeFrom||F||C&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,F);const R={...Dme(E,"layout"),onPlay:D,onComplete:O};(A.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else C||IXe(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q8(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(FEn),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&TXe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){const x=this.path[A];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:b}=this.options;if(p===void 0&&!b)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(MXe);return}this.isUpdating||this.nodes.forEach(OEn),this.isUpdating=!1,this.nodes.forEach(BEn),this.nodes.forEach(IEn),this.nodes.forEach(EEn),this.clearAllSnapshots();const p=i6.now();I1.delta=nx(0,1e3/60,p-I1.timestamp),I1.timestamp=p,I1.isProcessing=!0,kme.update.process(I1),kme.preRender.process(I1),kme.render.process(I1),I1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nEn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NEn),this.sharedNodes.forEach(REn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nu.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!E4(this.snapshot.measuredBox.x)&&!E4(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let b=0;b<this.path.length;b++)this.path[b].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Th(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p){const b=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:b,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!bXe(this.projectionDelta),b=this.getTransformTemplate(),y=b?b(this.latestValues,""):void 0,A=y!==this.prevTransformTemplateValue;f&&(p||fS(this.latestValues)||A)&&(l(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let b=this.removeElementScroll(p);return f&&(b=this.removeTransform(b)),QEn(b),{animationId:this.root.animationId,measuredBox:p,layoutBox:b,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:p}=this.options;if(!p)return Th();const b=p.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(VEn))){const{scroll:A}=this.root;A&&(BX(b.x,A.offset.x),BX(b.y,A.offset.y))}return b}removeElementScroll(f){var p;const b=Th();if(I4(b,f),!((p=this.scroll)===null||p===void 0)&&p.wasRoot)return b;for(let y=0;y<this.path.length;y++){const A=this.path[y],{scroll:x,options:C}=A;A!==this.root&&x&&C.layoutScroll&&(x.wasRoot&&I4(b,f),BX(b.x,x.offset.x),BX(b.y,x.offset.y))}return b}applyTransform(f,p=!1){const b=Th();I4(b,f);for(let y=0;y<this.path.length;y++){const A=this.path[y];!p&&A.options.layoutScroll&&A.scroll&&A!==A.root&&DN(b,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),fS(A.latestValues)&&DN(b,A.latestValues)}return fS(this.latestValues)&&DN(b,this.latestValues),b}removeTransform(f){const p=Th();I4(p,f);for(let b=0;b<this.path.length;b++){const y=this.path[b];if(!y.instance||!fS(y.latestValues))continue;ibe(y.latestValues)&&y.updateSnapshot();const A=Th(),x=y.measurePageBox();I4(A,x),dXe(p,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,A)}return fS(this.latestValues)&&dXe(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var p;const b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==b;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((p=this.parent)===null||p===void 0)&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:C}=this.options;if(!(!this.layout||!(x||C))){if(this.resolvedRelativeTargetAt=I1.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Th(),this.relativeTargetOrigin=Th(),NH(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),I4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Th(),this.targetWithTransforms=Th()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yEn(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I4(this.target,this.layout.layoutBox),nXe(this.target,this.targetDelta)):I4(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Th(),this.relativeTargetOrigin=Th(),NH(this.relativeTargetOrigin,this.target,T.target),I4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ibe(this.parent.latestValues)||XKe(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var f;const p=this.getLead(),b=!!this.resumingFrom||this!==p;let y=!0;if((this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty)&&(y=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===I1.timestamp&&(y=!1),y)return;const{layout:A,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(A||x))return;I4(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,T=this.treeScale.y;dEn(this.layoutCorrected,this.treeScale,this.path,b),p.layout&&!p.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(p.target=p.layout.layoutBox,p.targetWithTransforms=Th());const{target:M}=p;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(KKe(this.prevProjectionDelta.x,this.projectionDelta.x),KKe(this.prevProjectionDelta.y,this.projectionDelta.y)),DH(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==C||this.treeScale.y!==T||!xXe(this.projectionDelta.x,this.prevProjectionDelta.x)||!xXe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)===null||p===void 0||p.scheduleRender(),f){const b=this.getStack();b&&b.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=NN(),this.projectionDelta=NN(),this.projectionDeltaWithTransform=NN()}setAnimationOrigin(f,p=!1){const b=this.snapshot,y=b?b.latestValues:{},A={...this.latestValues},x=NN();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const C=Th(),T=b?b.source:void 0,M=this.layout?this.layout.source:void 0,E=T!==M,D=this.getStack(),O=!D||D.members.length<=1,P=!!(E&&!O&&this.options.crossfade===!0&&!this.path.some(HEn));this.animationProgress=0;let F;this.mixTargetDelta=R=>{const V=R/1e3;EXe(x.x,f.x,V),EXe(x.y,f.y,V),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(NH(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zEn(this.relativeTarget,this.relativeTargetOrigin,C,V),F&&kEn(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=Th()),I4(F,this.relativeTarget)),E&&(this.animationValues=A,uEn(A,y,this.latestValues,V,P,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q8(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nu.update(()=>{xX.hasAnimatedSinceResize=!0,this.currentAnimation=VKe(0,CXe,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(CXe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:b,layout:y,latestValues:A}=f;if(!(!p||!b||!y)){if(this!==f&&this.layout&&y&&BXe(this.options.animationType,this.layout.layoutBox,y.layoutBox)){b=this.target||Th();const x=E4(this.layout.layoutBox.x);b.x.min=f.target.x.min,b.x.max=b.x.min+x;const C=E4(this.layout.layoutBox.y);b.y.min=f.target.y.min,b.y.max=b.y.min+C}I4(p,b),DN(p,A),DH(this.projectionDeltaWithTransform,this.layoutCorrected,p,A)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new CEn),this.sharedNodes.get(f).add(p);const y=p.options.initialPromotionConfig;p.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:b}={}){const y=this.getStack();y&&y.promote(this,b),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:b}=f;if((b.z||b.rotate||b.rotateX||b.rotateY||b.rotateZ||b.skewX||b.skewY)&&(p=!0),!p)return;const y={};b.z&&sbe("z",f,y,this.animationValues);for(let A=0;A<obe.length;A++)sbe(`rotate${obe[A]}`,f,y,this.animationValues),sbe(`skew${obe[A]}`,f,y,this.animationValues);f.render();for(const A in y)f.setStaticValue(A,y[A]),this.animationValues&&(this.animationValues[A]=y[A]);f.scheduleRender()}getProjectionStyles(f){var p,b;if(!this.instance||this.isSVG)return;if(!this.isVisible)return SEn;const y={visibility:""},A=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=nbe(f==null?void 0:f.pointerEvents)||"",y.transform=A?A(this.latestValues,""):"none",y;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=nbe(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!fS(this.latestValues)&&(E.transform=A?A({},""):"none",this.hasProjected=!1),E}const C=x.animationValues||x.latestValues;this.applyTransformsToTarget(),y.transform=TEn(this.projectionDeltaWithTransform,this.treeScale,C),A&&(y.transform=A(C,y.transform));const{x:T,y:M}=this.projectionDelta;y.transformOrigin=`${T.origin*100}% ${M.origin*100}% 0`,x.animationValues?y.opacity=x===this?(b=(p=C.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&b!==void 0?b:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:y.opacity=x===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const E in vH){if(C[E]===void 0)continue;const{correct:D,applyTo:O,isCSSVariable:P}=vH[E],F=y.transform==="none"?C[E]:D(C[E],x);if(O){const R=O.length;for(let V=0;V<R;V++)y[O[V]]=F}else P?this.options.visualElement.renderState.vars[E]=F:y[E]=F}return this.options.layoutId&&(y.pointerEvents=x===this?nbe(f==null?void 0:f.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(MXe),this.root.sharedNodes.clear()}}}function IEn(n){n.updateLayout()}function EEn(n){var r;const i=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:l}=n.layout,{animationType:h}=n.options,f=i.source!==n.layout.source;h==="size"?kXe(x=>{const C=f?i.measuredBox[x]:i.layoutBox[x],T=E4(C);C.min=o[x].min,C.max=C.min+T}):BXe(h,i.layoutBox,o)&&kXe(x=>{const C=f?i.measuredBox[x]:i.layoutBox[x],T=E4(o[x]);C.max=C.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+T)});const p=NN();DH(p,o,i.layoutBox);const b=NN();f?DH(b,n.applyTransform(l,!0),i.measuredBox):DH(b,o,i.layoutBox);const y=!bXe(p);let A=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:C,layout:T}=x;if(C&&T){const M=Th();NH(M,i.layoutBox,C.layoutBox);const E=Th();NH(E,o,T.layoutBox),wXe(M,E)||(A=!0),x.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=M,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:b,layoutDelta:p,hasLayoutChanged:y,hasRelativeLayoutChanged:A})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function LEn(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function DEn(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function NEn(n){n.clearSnapshot()}function MXe(n){n.clearMeasurements()}function OEn(n){n.isLayoutDirty=!1}function BEn(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function IXe(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function PEn(n){n.resolveTargetDelta()}function jEn(n){n.calcProjection()}function FEn(n){n.resetSkewAndRotation()}function REn(n){n.removeLeadSnapshot()}function EXe(n,r,i){n.translate=uf(r.translate,0,i),n.scale=uf(r.scale,1,i),n.origin=r.origin,n.originPoint=r.originPoint}function LXe(n,r,i,o){n.min=uf(r.min,i.min,o),n.max=uf(r.max,i.max,o)}function zEn(n,r,i,o){LXe(n.x,r.x,i.x,o),LXe(n.y,r.y,i.y,o)}function HEn(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const _En={duration:.45,ease:[.4,0,.1,1]},DXe=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),NXe=DXe("applewebkit/")&&!DXe("chrome/")?Math.round:Ip;function OXe(n){n.min=NXe(n.min),n.max=NXe(n.max)}function QEn(n){OXe(n.x),OXe(n.y)}function BXe(n,r,i){return n==="position"||n==="preserve-aspect"&&!vEn(AXe(r),AXe(i),.2)}function VEn(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}function $En(n,r,i,o={passive:!0}){return n.addEventListener(r,i,o),()=>n.removeEventListener(r,i)}const GEn=SXe({attachResizeListener:(n,r)=>$En(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cbe={current:void 0},YEn=SXe({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!cbe.current){const n=new GEn({});n.mount(window),n.setOptions({layoutScroll:!0}),cbe.current=n}return cbe.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"});function PXe(n){if(n)return n.options.allowProjection!==!1?n.projection:PXe(n.parent)}function OH(n){return typeof n=="object"&&n!==null&&"nodeType"in n}const lbe=new WeakMap,[UEn,pYr]=bX("AnimatePresenceContext");class JEn extends r6{constructor(r){super(r),TZe(QZe)}initProjection(){const r=this.state.options;this.state.visualElement.projection=new YEn(this.state.visualElement.latestValues,r["data-framer-portal-id"]?void 0:PXe(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const r=this.state.options;this.state.visualElement.projection.setOptions({layout:r.layout,layoutId:r.layoutId,alwaysMeasureLayout:!!r.drag||r.dragConstraints&&OH(r.dragConstraints),visualElement:this.state.visualElement,animationType:typeof r.layout=="string"?r.layout:"both",layoutRoot:r.layoutRoot,layoutScroll:r.layoutScroll,crossfade:r.crossfade,onExitComplete:()=>{var i;if(!((i=this.state.visualElement.projection)!=null&&i.isPresent)){const o=lbe.get(this.state.element);this.state.isSafeToRemove=!0,o&&o({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var r;(r=this.state.visualElement.projection)==null||r.mount(this.state.element)}}class WEn extends r6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.state.element.matches(":focus-visible")}catch{r=!0}r&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=SH(kX(this.state.element,"focus",()=>this.onFocus()),kX(this.state.element,"blur",()=>this.onBlur()))}}const qEn={y:!1};function ZEn(){return qEn.y}function ube(n,r,i){var o;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let l=document;const h=(o=i==null?void 0:i[n])!==null&&o!==void 0?o:l.querySelectorAll(n);return h?Array.from(h):[]}return Array.from(n)}function jXe(n,r){const i=ube(n),o=new AbortController,l={passive:!0,...r,signal:o.signal};return[i,l,()=>o.abort()]}function FXe(n){return!(n.pointerType==="touch"||ZEn())}function KEn(n,r,i={}){const[o,l,h]=jXe(n,i),f=p=>{if(!FXe(p))return;const{target:b}=p,y=r(b,p);if(typeof y!="function"||!b)return;const A=x=>{FXe(x)&&(y(x),b.removeEventListener("pointerleave",A))};b.addEventListener("pointerleave",A,l)};return o.forEach(p=>{p.addEventListener("pointerenter",f,l)}),h}function RXe(n,r){const i=`${r}PointerCapture`;if(n.target instanceof Element&&i in n.target&&n.pointerId!==void 0)try{n.target[i](n.pointerId)}catch{}}const zXe=(n,r)=>r?n===r?!0:zXe(n,r.parentElement):!1,XEn=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,eLn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tLn(n){return eLn.has(n.tagName)||n.tabIndex!==-1}const BH=new WeakSet;function HXe(n){return r=>{r.key==="Enter"&&n(r)}}function hbe(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const nLn=(n,r)=>{const i=n.currentTarget;if(!i)return;const o=HXe(()=>{if(BH.has(i))return;hbe(i,"down");const l=HXe(()=>{hbe(i,"up")}),h=()=>hbe(i,"cancel");i.addEventListener("keyup",l,r),i.addEventListener("blur",h,r)});i.addEventListener("keydown",o,r),i.addEventListener("blur",()=>i.removeEventListener("keydown",o),r)};function _Xe(n){return XEn(n)&&!0}function rLn(n,r,i={}){const[o,l,h]=jXe(n,i),f=p=>{const b=p.currentTarget;if(!b||!_Xe(p)||BH.has(b))return;BH.add(b),RXe(p,"set");const y=r(b,p),A=(T,M)=>{b.removeEventListener("pointerup",x),b.removeEventListener("pointercancel",C),RXe(T,"release"),!(!_Xe(T)||!BH.has(b))&&(BH.delete(b),typeof y=="function"&&y(T,{success:M}))},x=T=>{(T.isTrusted?iLn(T,b instanceof Element?b.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?A(T,!1):A(T,!(b instanceof Element)||zXe(b,T.target))},C=T=>{A(T,!1)};b.addEventListener("pointerup",x,l),b.addEventListener("pointercancel",C,l),b.addEventListener("lostpointercapture",C,l)};return o.forEach(p=>{p=i.useGlobalTarget?window:p;let b=!1;p instanceof HTMLElement&&(b=!0,!tLn(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0)),p.addEventListener("pointerdown",f,l),b&&p.addEventListener("focus",y=>nLn(y,l),l)}),h}function iLn(n,r){return n.clientX<r.left||n.clientX>r.right||n.clientY<r.top||n.clientY>r.bottom}function QXe(n){return{point:{x:n.pageX,y:n.pageY}}}function VXe(n,r,i){const o=n.options;o.whilePress&&n.setActive("whilePress",i==="Start");const l=`onPress${i==="End"?"":i}`,h=o[l];h&&nu.postRender(()=>h(r,QXe(r)))}class aLn extends r6{isActive(){return!!this.state.options.press}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=rLn(r,(i,o)=>(VXe(this.state,o,"Start"),(l,{success:h})=>VXe(this.state,l,h?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function $Xe(n,r,i){const o=n.options;o.whileHover&&n.setActive("whileHover",i==="Start");const l=`onHover${i}`,h=o[l];h&&nu.postRender(()=>h(r,QXe(r)))}class oLn extends r6{isActive(){return!!this.state.getOptions().whileHover}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=KEn(r,(i,o)=>($Xe(this.state,o,"Start"),l=>{$Xe(this.state,l,"End")})))}}const sLn={some:0,all:1};function cLn(n,r,{root:i,margin:o,amount:l="some"}={}){const h=ube(n),f=new WeakMap,p=y=>{y.forEach(A=>{const x=f.get(A.target);if(A.isIntersecting!==!!x)if(A.isIntersecting){const C=r(A.target,A);typeof C=="function"?f.set(A.target,C):b.unobserve(A.target)}else typeof x=="function"&&(x(A),f.delete(A.target))})},b=new IntersectionObserver(p,{root:i,rootMargin:o,threshold:typeof l=="number"?l:sLn[l]});return h.forEach(y=>b.observe(y)),()=>b.disconnect()}function GXe(n,r,i){const o=n.options;o.whileInView&&n.setActive("whileInView",i==="Enter");const l=`onViewport${i}`,h=o[l];h&&nu.postRender(()=>h(r))}class lLn extends r6{isActive(){return!!this.state.getOptions().whileInView}constructor(r){super(r)}startObserver(){const r=this.state.element;if(!r)return;this.unmount();const{once:i,...o}=this.state.getOptions().inViewOptions||{};this.unmount=cLn(r,(l,h)=>{if(GXe(this.state,h,"Enter"),!i)return f=>{GXe(this.state,h,"Leave")}},o)}mount(){this.startObserver()}update(){const{props:r,prevProps:i}=this.state.visualElement;["amount","margin","root"].some(uLn(r,i))&&this.startObserver()}}function uLn({inViewOptions:n={}},{inViewOptions:r={}}={}){return i=>n[i]!==r[i]}function YXe(n){let r=null;return()=>{const i=()=>{r=null};return r===null?(r=n,i):!1}}const UXe=YXe("dragHorizontal"),JXe=YXe("dragVertical");function hLn(n){let r=!1;if(n==="y")r=JXe();else if(n==="x")r=UXe();else{const i=UXe(),o=JXe();i&&o?r=()=>{i(),o()}:(i&&i(),o&&o())}return r}function fbe(n){return n.max-n.min}function fLn(n,r,i){return i>r?r:i<n?n:i}function PX(n,r,i){return n+(r-n)*i}function WXe(n,r,i){const o=r-n;return o===0?1:(i-n)/o}function dLn(n,{min:r,max:i},o){return r!==void 0&&n<r?n=o?PX(r,n,o.min):Math.max(n,r):i!==void 0&&n>i&&(n=o?PX(i,n,o.max):Math.min(n,i)),n}const dbe=.35;function gLn(n,{top:r,left:i,bottom:o,right:l}){return{x:qXe(n.x,i,l),y:qXe(n.y,r,o)}}function qXe(n,r,i){return{min:r!==void 0?n.min+r:void 0,max:i!==void 0?n.max+i-(n.max-n.min):void 0}}function pLn(n=dbe){return n===!1?n=0:n===!0&&(n=dbe),{x:ZXe(n,"left","right"),y:ZXe(n,"top","bottom")}}function ZXe(n,r,i){return{min:KXe(n,r),max:KXe(n,i)}}function KXe(n,r){return typeof n=="number"?n:n[r]||0}function mLn(n,r){const i={};return r.min!==void 0&&(i.min=r.min-n.min),r.max!==void 0&&(i.max=r.max-n.min),i}function bLn(n,r){return{x:XXe(n.x,r.x),y:XXe(n.y,r.y)}}function XXe(n,r){let i=r.min-n.min,o=r.max-n.max;return r.max-r.min<n.max-n.min&&([i,o]=[o,i]),{min:i,max:o}}function vLn(n,r){let i=.5;const o=fbe(n),l=fbe(r);return l>o?i=WXe(r.min,r.max-o,n.min):o>l&&(i=WXe(n.min,n.max-l,r.min)),fLn(0,1,i)}const eet=()=>({min:0,max:0});function yLn(){return{x:eet(),y:eet()}}function a6(n){return[n("x"),n("y")]}function wLn(n){return{test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}}const ALn=wLn("%");function xLn(n){return!!(yX(n)&&n.add)}function tet(n,r){const i=n.getValue("willChange");if(xLn(i))return i.add(r)}function net({top:n,left:r,right:i,bottom:o}){return{x:{min:r,max:i},y:{min:n,max:o}}}function kLn(n,r){if(!r)return n;const i=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function CLn({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function ret(n,r){n.min=n.min+r,n.max=n.max+r}function TLn(n,r){return net(kLn(n.getBoundingClientRect(),r))}function SLn(n,r,i){const o=TLn(n,i),{scroll:l}=r;return l&&(ret(o.x,l.offset.x),ret(o.y,l.offset.y)),o}function iet(n){return!lbe.has(n.current)}const MLn=new WeakMap;class ILn{constructor(r){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yLn(),this.visualElement=r}start(r,{snapToCursor:i=!1}={}){if(!iet(this.visualElement))return;const o=y=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Ime(y,"page").point)},l=(y,A)=>{const{drag:x,dragPropagation:C,onDragStart:T}=this.getProps();if(x&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hLn(x),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),a6(E=>{let D=this.getAxisMotionValue(E).get()||0;if(ALn.test(D)){const{projection:O}=this.visualElement;if(O&&O.layout){const P=O.layout.layoutBox[E];P&&(D=fbe(P)*(parseFloat(D)/100))}}this.originPoint[E]=D}),T&&nu.postRender(()=>T(y,A)),tet(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},h=(y,A)=>{const{dragPropagation:x,dragDirectionLock:C,onDirectionLock:T,onDrag:M}=this.getProps();if(!x&&!this.openGlobalLock)return;const{offset:E}=A;if(C&&this.currentDirection===null){this.currentDirection=ELn(E),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",A.point,E),this.updateAxis("y",A.point,E),this.visualElement.render(),M&&M(y,A)},f=(y,A)=>this.stop(y,A),p=()=>a6(y=>{var A;return this.getAnimationState(y)==="paused"&&((A=this.getAxisMotionValue(y).animation)==null?void 0:A.play())}),{dragSnapToOrigin:b}=this.getProps();this.panSession=new GZe(r,{onSessionStart:o,onStart:l,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,contextWindow:JZe(this.visualElement)})}stop(r,i){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:h}=this.getProps();h&&nu.postRender(()=>h(r,i))}cancel(){this.isDragging=!1;const{projection:r,animationState:i}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(r,i,o){const{drag:l}=this.getProps();if(!o||!jX(r,l,this.currentDirection))return;const h=this.getAxisMotionValue(r);let f=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(f=dLn(f,this.constraints[r],this.elastic[r])),h.set(f)}resolveConstraints(){var r;const{dragConstraints:i,dragElastic:o}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,h=this.constraints;i&&OH(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&l?this.constraints=gLn(l.layoutBox,i):this.constraints=!1,this.elastic=pLn(o),h!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&a6(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=mLn(l.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:i}=this.getProps();if(!r||!OH(r))return!1;const o=r,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const h=SLn(o,l.root,this.visualElement.getTransformPagePoint());let f=bLn(l.layout.layoutBox,h);if(i){const p=i(CLn(f));this.hasMutatedConstraints=!!p,p&&(f=net(p))}return f}startAnimation(r){const{drag:i,dragMomentum:o,dragElastic:l,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),b=this.constraints||{},y=a6(A=>{if(!jX(A,i,this.currentDirection))return;let x=b&&b[A]||{};f&&(x={min:0,max:0});const C=l?200:1e6,T=l?40:1e7,M={type:"inertia",velocity:o?r[A]:0,bounceStiffness:C,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(A,M)});return Promise.all(y).then(p)}startAxisValueAnimation(r,i){const o=this.getAxisMotionValue(r);return tet(this.visualElement,r),o.start(ebe(r,o,0,i,this.visualElement,!1))}stopAnimation(){iet(this.visualElement)&&a6(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){a6(r=>{var i;return(i=this.getAxisMotionValue(r).animation)==null?void 0:i.pause()})}getAnimationState(r){var i;return(i=this.getAxisMotionValue(r).animation)==null?void 0:i.state}getAxisMotionValue(r){const i=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[i]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){a6(i=>{const{drag:o}=this.getProps();if(!jX(i,o,this.currentDirection))return;const{projection:l}=this.visualElement,h=this.getAxisMotionValue(i);if(l&&l.layout){const{min:f,max:p}=l.layout.layoutBox[i];h.set(r[i]-PX(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!OH(i)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};a6(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const b=p.get();l[f]=vLn({min:b,max:b},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),a6(f=>{if(!jX(f,r,null))return;const p=this.getAxisMotionValue(f),{min:b,max:y}=this.constraints[f];p.set(PX(b,y,l[f]))})}addListeners(){if(!this.visualElement.current)return;MLn.set(this.visualElement,this);const r=this.visualElement.current,i=TH(r,"pointerdown",b=>{const{drag:y,dragListener:A=!0}=this.getProps();y&&A&&this.start(b)}),o=()=>{const{dragConstraints:b}=this.getProps();OH(b)&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,h=l.addEventListener("measure",o);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),nu.read(o);const f=kX(window,"resize",()=>this.scalePositionWithinConstraints()),p=l.addEventListener("didUpdate",({delta:b,hasLayoutChanged:y})=>{this.isDragging&&y&&(a6(A=>{const x=this.getAxisMotionValue(A);x&&(this.originPoint[A]+=b[A].translate,x.set(x.get()+b[A].translate))}),this.visualElement.render())});return()=>{f(),i(),h(),p&&p()}}getProps(){const r=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:h=!1,dragElastic:f=dbe,dragMomentum:p=!0}=r;return{...r,drag:i,dragDirectionLock:o,dragPropagation:l,dragConstraints:h,dragElastic:f,dragMomentum:p}}}function jX(n,r,i){return(r===!0||r===n)&&(i===null||i===n)}function ELn(n,r=10){let i=null;return Math.abs(n.y)>r?i="y":Math.abs(n.x)>r&&(i="x"),i}class LLn extends r6{constructor(r){super(r),this.removeGroupControls=Ip,this.removeListeners=Ip,this.controls=new ILn(r.visualElement)}mount(){const{dragControls:r}=this.state.options;r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ip}unmount(){this.removeGroupControls(),this.removeListeners()}}class DLn{constructor(r){this.features=[],this.features=[new oLn(r),new aLn(r),new lLn(r),new mMn(r),new DMn(r),new JEn(r),new zMn(r),new LLn(r),new WEn(r),new HMn(r)]}mount(){this.features.forEach(r=>r.mount())}beforeMount(){this.features.forEach(r=>{var i;return(i=r.beforeMount)==null?void 0:i.call(r)})}unmount(){this.features.forEach(r=>r.unmount())}update(){this.features.forEach(r=>{var i;return(i=r.update)==null?void 0:i.call(r)})}beforeUpdate(){this.features.forEach(r=>r.beforeUpdate())}beforeUnmount(){this.features.forEach(r=>r.beforeUnmount())}}function NLn({top:n,left:r,right:i,bottom:o}){return{x:{min:r,max:i},y:{min:n,max:o}}}function OLn(n,r){if(!r)return n;const i=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function BLn(n,r){return NLn(OLn(n.getBoundingClientRect(),r))}const aet={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gbe={};for(const n in aet)gbe[n]={isEnabled:r=>aet[n].some(i=>!!r[i])};const PLn=typeof window<"u",pbe={current:null},oet={current:!1};function jLn(){if(oet.current=!0,!!PLn)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>pbe.current=n.matches;n.addListener(r),r()}else pbe.current=!1}const FLn=[...CKe,f2,rx],RLn=n=>FLn.find(kKe(n));function zLn(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function HLn(n){return typeof n=="string"||Array.isArray(n)}const _Ln=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function set(n){return zLn(n.animate)||_Ln.some(r=>HLn(n[r]))}function QLn(n){return!!(set(n)||n.variants)}function VLn(n,r,i){for(const o in r){const l=r[o],h=i[o];if(d2(l))n.addValue(o,l);else if(d2(h))n.addValue(o,MH(l,{owner:n}));else if(h!==l)if(n.hasValue(o)){const f=n.getValue(o);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=n.getStaticValue(o);n.addValue(o,MH(f!==void 0?f:l,{owner:n}))}}for(const o in i)r[o]===void 0&&n.removeValue(o);return r}function cet(n){const r=[{},{}];return n==null||n.values.forEach((i,o)=>{r[0][o]=i.get(),r[1][o]=i.getVelocity()}),r}function uet(n,r,i,o){if(typeof r=="function"){const[l,h]=cet(o);r=r(i!==void 0?i:n.custom,l,h)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[l,h]=cet(o);r=r(i!==void 0?i:n.custom,l,h)}return r}const het=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fet{scrapeMotionValuesFromProps(r,i,o){return{}}constructor({parent:r,props:i,presenceContext:o,reducedMotionConfig:l,blockInitialAnimation:h,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$me,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=i6.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,nu.render(this.render,!1,!0))};const{latestValues:b,renderState:y,onUpdate:A}=f;this.onUpdate=A,this.latestValues=b,this.baseTarget={...b},this.initialValues=i.initial?{...b}:{},this.renderState=y,this.parent=r,this.props=i,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=l,this.options=p,this.blockInitialAnimation=!!h,this.isControllingVariants=set(i),this.isVariantNode=QLn(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:x,...C}=this.scrapeMotionValuesFromProps(i,{},this);for(const T in C){const M=C[T];b[T]!==void 0&&d2(M)&&M.set(b[T],!1)}}mount(r){this.current=r,lS.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),oet.current||jLn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pbe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),q8(this.notifyUpdate),q8(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const i=this.features[r];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(r,i){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=EN.has(r);o&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",p=>{this.latestValues[r]=p,this.props.onUpdate&&nu.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),h=i.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,r,i)),this.valueSubscriptions.set(r,()=>{l(),h(),f&&f(),i.owner&&i.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in gbe){const i=gbe[r];if(!i)continue;const{isEnabled:o,Feature:l}=i;if(!this.features[r]&&l&&o(this.props)&&(this.features[r]=new l(this)),this.features[r]){const h=this.features[r];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Th()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,i){this.latestValues[r]=i}update(r,i){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let o=0;o<het.length;o++){const l=het[o];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const h="on"+l,f=r[h];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=VLn(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(r),()=>i.variantChildren.delete(r)}addValue(r,i){const o=this.values.get(r);i!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,i),this.values.set(r,i),this.latestValues[r]=i.get())}removeValue(r){this.values.delete(r);const i=this.valueSubscriptions.get(r);i&&(i(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,i){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&i!==void 0&&(o=MH(i===null?void 0:i,{owner:this}),this.addValue(r,o)),o}readValue(r,i){var o;let l=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return l!=null&&(typeof l=="string"&&(AKe(l)||fKe(l))?l=parseFloat(l):!RLn(l)&&rx.test(i)&&(l=pKe(r,i)),this.setBaseTarget(r,d2(l)?l.get():l)),d2(l)?l.get():l}setBaseTarget(r,i){this.baseTarget[r]=i}getBaseTarget(r){var i;const{initial:o}=this.props;let l;if(typeof o=="string"||typeof o=="object"){const f=uet(this.props,o,(i=this.presenceContext)===null||i===void 0?void 0:i.custom);f&&(l=f[r])}if(o&&l!==void 0)return l;const h=this.getBaseTargetFromProps(this.props,r);return h!==void 0&&!d2(h)?h:this.initialValues[r]!==void 0&&l===void 0?void 0:this.baseTarget[r]}on(r,i){return this.events[r]||(this.events[r]=new Ome),this.events[r].add(i)}notify(r,...i){this.events[r]&&this.events[r].notify(...i)}}class det extends fet{constructor(){super(...arguments),this.KeyframeResolver=SKe}sortInstanceNodePosition(r,i){return r.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(r,i){return r.style?r.style[i]:void 0}removeValueFromRenderState(r,{vars:i,style:o}){delete i[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;d2(r)&&(this.childSubscription=r.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}const get=(n,r)=>r&&typeof n=="number"?r.transform(n):n,$Ln={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GLn=IN.length;function YLn(n,r,i){let o="",l=!0;for(let h=0;h<GLn;h++){const f=IN[h],p=n[f];if(p===void 0)continue;let b=!0;if(typeof p=="number"?b=p===(f.startsWith("scale")?1:0):b=parseFloat(p)===0,!b||i){const y=get(p,Hme[f]);if(!b){l=!1;const A=$Ln[f]||f;o+=`${A}(${y}) `}i&&(r[f]=y)}}return o=o.trim(),i?o=i(r,l?"":o):l&&(o="none"),o}function pet(n,r,i){const{style:o,vars:l,transformOrigin:h}=n;let f=!1,p=!1;for(const b in r){const y=r[b];if(EN.has(b)){f=!0;continue}else if(wme(b)){l[b]=y;continue}else{const A=get(y,Hme[b]);b.startsWith("origin")?(p=!0,h[b]=A):o[b]=A}}if(r.transform||(f||i?o.transform=YLn(r,n.transform,i):o.transform&&(o.transform="none")),p){const{originX:b="50%",originY:y="50%",originZ:A=0}=h;o.transformOrigin=`${b} ${y} ${A}`}}function met(n,{style:r,vars:i},o,l){Object.assign(n.style,r,l&&l.getProjectionStyles(o));for(const h in i)n.style.setProperty(h,i[h])}function ULn(n,{layout:r,layoutId:i}){return EN.has(n)||n.startsWith("origin")||(r||i!==void 0)&&(!!vH[n]||n==="opacity")}function bet(n,r,i){var o;const{style:l}=n,h={};for(const f in l)(d2(l[f])||r.style&&d2(r.style[f])||ULn(f,n)||((o=i==null?void 0:i.getValue(f))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(h[f]=l[f]);return h}function JLn(n){return window.getComputedStyle(n)}class vet extends det{constructor(){super(...arguments),this.type="html",this.renderInstance=met}readValueFromInstance(r,i){if(EN.has(i)){const o=_me(i);return o&&o.default||0}else{const o=JLn(r),l=(wme(i)?o.getPropertyValue(i):o[i])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(r,{transformPagePoint:i}){return BLn(r,i)}build(r,i,o){pet(r,i,o.transformTemplate)}scrapeMotionValuesFromProps(r,i,o){return bet(r,i,o)}}const WLn={offset:"stroke-dashoffset",array:"stroke-dasharray"},qLn={offset:"strokeDashoffset",array:"strokeDasharray"};function ZLn(n,r,i=1,o=0,l=!0){n.pathLength=1;const h=l?WLn:qLn;n[h.offset]=fo.transform(-o);const f=fo.transform(r),p=fo.transform(i);n[h.array]=`${f} ${p}`}function yet(n,r,i){return typeof n=="string"?n:fo.transform(r+i*n)}function KLn(n,r,i){const o=yet(r,n.x,n.width),l=yet(i,n.y,n.height);return`${o} ${l}`}function XLn(n,{attrX:r,attrY:i,attrScale:o,originX:l,originY:h,pathLength:f,pathSpacing:p=1,pathOffset:b=0,...y},A,x){if(pet(n,y,x),A){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:C,style:T,dimensions:M}=n;C.transform&&(M&&(T.transform=C.transform),delete C.transform),M&&(l!==void 0||h!==void 0||T.transform)&&(T.transformOrigin=KLn(M,l!==void 0?l:.5,h!==void 0?h:.5)),r!==void 0&&(C.x=r),i!==void 0&&(C.y=i),o!==void 0&&(C.scale=o),f!==void 0&&ZLn(C,f,p,b,!1)}const wet=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eDn=n=>typeof n=="string"&&n.toLowerCase()==="svg";function tDn(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}function nDn(n,r,i,o){met(n,r,void 0,o);for(const l in r.attrs)n.setAttribute(wet.has(l)?l:tbe(l),r.attrs[l])}function rDn(n,r,i){const o=bet(n,r,i);for(const l in n)if(d2(n[l])||d2(r[l])){const h=IN.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[h]=n[l]}return o}class Aet extends det{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Th,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&tDn(this.current,this.renderState)}}getBaseTargetFromProps(r,i){return r[i]}readValueFromInstance(r,i){if(EN.has(i)){const o=_me(i);return o&&o.default||0}return i=wet.has(i)?i:tbe(i),r.getAttribute(i)}scrapeMotionValuesFromProps(r,i,o){return rDn(r,i,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&nu.postRender(this.updateDimensions)}build(r,i,o){XLn(r,i,this.isSVGTag,o.transformTemplate)}renderInstance(r,i,o,l){nDn(r,i,o,l)}mount(r){this.isSVGTag=eDn(r.tagName),super.mount(r)}}function iDn(n,r){return qSn(n)?new Aet(r):new vet(r)}function xet(n,r,i){return new CustomEvent(n,{detail:{target:r,isExit:i}})}function aDn(n,r=100,i){const o=i({...n,keyframes:[0,r]}),l=Math.min(Gme(o),EX);return{type:"keyframes",ease:h=>o.next(l*h).value/r,duration:X8(l)}}const oDn=(n,r,i)=>{const o=r-n;return((i-n)%o+o)%o+n};function ket(n,r){return FKe(n)?n[oDn(0,n.length,r)]:n}function mbe(n){return typeof n=="object"&&!Array.isArray(n)}function Cet(n,r,i,o){return typeof n=="string"&&mbe(r)?ube(n,i,o):n instanceof NodeList?Array.from(n):Array.isArray(n)?n:[n]}function sDn(n,r,i){return n*(r+1)}function Tet(n,r,i,o){var l;return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,n+parseFloat(r)):r==="<"?i:(l=o.get(r))!==null&&l!==void 0?l:n}function cDn(n,r,i){for(let o=0;o<n.length;o++){const l=n[o];l.at>r&&l.at<i&&(TX(n,l),o--)}}function lDn(n,r,i,o,l,h){cDn(n,l,h);for(let f=0;f<r.length;f++)n.push({value:r[f],at:uf(l,h,o[f]),easing:ket(i,f)})}function uDn(n,r){for(let i=0;i<n.length;i++)n[i]=n[i]/(r+1)}function hDn(n,r){return n.at===r.at?n.value===null?1:r.value===null?-1:0:n.at-r.at}const fDn="easeInOut";function dDn(n,{defaultTransition:r={},...i}={},o,l){const h=r.duration||.3,f=new Map,p=new Map,b={},y=new Map;let A=0,x=0,C=0;for(let T=0;T<n.length;T++){const M=n[T];if(typeof M=="string"){y.set(M,x);continue}else if(!Array.isArray(M)){y.set(M.name,Tet(x,M.at,A,y));continue}let[E,D,O={}]=M;O.at!==void 0&&(x=Tet(x,O.at,A,y));let P=0;const F=(R,V,Q,$=0,Y=0)=>{const _=gDn(R),{delay:U=0,times:H=HKe(_),type:W="keyframes",repeat:z,repeatType:ee,repeatDelay:X=0,...se}=V;let{ease:re=r.ease||"easeOut",duration:ce}=V;const ue=typeof U=="function"?U($,Y):U,oe=_.length,ge=SX(W)?W:l==null?void 0:l[W];if(oe<=2&&ge){let Me=100;if(oe===2&&bDn(_)){const je=_[1]-_[0];Me=Math.abs(je)}const Ie={...se};ce!==void 0&&(Ie.duration=K8(ce));const Oe=aDn(Ie,Me,ge);re=Oe.ease,ce=Oe.duration}ce??(ce=h);const ve=x+ue;H.length===1&&H[0]===0&&(H[1]=1);const ie=H.length-_.length;if(ie>0&&zKe(H,ie),_.length===1&&_.unshift(null),z){ce=sDn(ce,z);const Me=[..._],Ie=[...H];re=Array.isArray(re)?[...re]:[re];const Oe=[...re];for(let je=0;je<z;je++){_.push(...Me);for(let Ae=0;Ae<Me.length;Ae++)H.push(Ie[Ae]+(je+1)),re.push(Ae===0?"linear":ket(Oe,Ae-1))}uDn(H,z)}const Ne=ve+ce;lDn(Q,_,re,H,ve,Ne),P=Math.max(ue+ce,P),C=Math.max(Ne,C)};if(d2(E)){const R=Met(E,p);F(D,O,Iet("default",R))}else{const R=Cet(E,D,o,b),V=R.length;for(let Q=0;Q<V;Q++){D=D,O=O;const $=R[Q],Y=Met($,p);for(const _ in D)F(D[_],pDn(O,_),Iet(_,Y),Q,V)}}A=x,x+=P}return p.forEach((T,M)=>{for(const E in T){const D=T[E];D.sort(hDn);const O=[],P=[],F=[];for(let V=0;V<D.length;V++){const{at:Q,value:$,easing:Y}=D[V];O.push($),P.push(IH(0,C,Q)),F.push(Y||"easeOut")}P[0]!==0&&(P.unshift(0),O.unshift(O[0]),F.unshift(fDn)),P[P.length-1]!==1&&(P.push(1),O.push(null)),f.has(M)||f.set(M,{keyframes:{},transition:{}});const R=f.get(M);R.keyframes[E]=O,R.transition[E]={...r,duration:C,ease:F,times:P,...i}}}),f}function Met(n,r){return!r.has(n)&&r.set(n,{}),r.get(n)}function Iet(n,r){return r[n]||(r[n]=[]),r[n]}function gDn(n){return Array.isArray(n)?n:[n]}function pDn(n,r){return n&&n[r]?{...n,...n[r]}:{...n}}const mDn=n=>typeof n=="number",bDn=n=>n.every(mDn);function vDn(n,r,i){const o=n.getProps();return uet(o,r,o.custom,n)}function yDn(n,r,i){n.hasValue(r)?n.getValue(r).set(i):n.addValue(r,MH(i))}function wDn(n,r){const i=vDn(n,r);let{transitionEnd:o={},transition:l={},...h}=i||{};h={...h,...o};for(const f in h){const p=cEn(h[f]);yDn(n,f,p)}}function ADn(n){return!!(d2(n)&&n.add)}function xDn(n,r){const i=n.getValue("willChange");if(ADn(i))return i.add(r)}function kDn({protectedKeys:n,needsAnimating:r},i){const o=n.hasOwnProperty(i)&&r[i]!==!0;return r[i]=!1,o}function CDn(n,r,{delay:i=0,transitionOverride:o,type:l}={}){var h;let{transition:f=n.getDefaultTransition(),transitionEnd:p,...b}=r;o&&(f=o);const y=[],A=l&&n.animationState&&n.animationState.getState()[l];for(const x in b){const C=n.getValue(x,(h=n.latestValues[x])!==null&&h!==void 0?h:null),T=b[x];if(T===void 0||A&&kDn(A,x))continue;const M={delay:i,...Dme(f||{},x)};let E=!1;if(window.MotionHandoffAnimation){const O=$Ke(n);if(O){const P=window.MotionHandoffAnimation(O,x,nu);P!==null&&(M.startTime=P,E=!0)}}xDn(n,x),C.start(ebe(x,C,T,n.shouldReduceMotion&&dKe.has(x)?{type:!1}:M,n,E));const D=C.animation;D&&y.push(D)}return p&&Promise.all(y).then(()=>{nu.update(()=>{p&&wDn(n,p)})}),y}function TDn(n,r){return n in r}class SDn extends fet{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,i){if(TDn(i,r)){const o=r[i];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,i){delete i.output[r]}measureInstanceViewportBox(){return Th()}build(r,i){Object.assign(r.output,i)}renderInstance(r,{output:i}){Object.assign(r,i)}sortInstanceNodePosition(){return 0}}function MDn(n){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=GKe(n)?new Aet(r):new vet(r);i.mount(n),lS.set(n,i)}function IDn(n){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},i=new SDn(r);i.mount(n),lS.set(n,i)}function EDn(n,r){return d2(n)||typeof n=="number"||typeof n=="string"&&!mbe(r)}function Eet(n,r,i,o){const l=[];if(EDn(n,r))l.push(VKe(n,mbe(r)&&r.default||r,i&&(i.default||i)));else{const h=Cet(n,r,o),f=h.length;for(let p=0;p<f;p++){const b=h[p],y=b instanceof Element?MDn:IDn;lS.has(b)||y(b);const A=lS.get(b),x={...i};"delay"in x&&typeof x.delay=="function"&&(x.delay=x.delay(p,f)),l.push(...CDn(A,{...r,transition:x},{}))}}return l}function LDn(n,r,i){const o=[];return dDn(n,r,i,{spring:Kme}).forEach(({keyframes:h,transition:f},p)=>{o.push(...Eet(p,h,f))}),o}function DDn(n){return Array.isArray(n)&&n.some(Array.isArray)}function NDn(n){function r(i,o,l){let h=[];return DDn(i)?h=LDn(i,o,n):h=Eet(i,o,l,n),new XZe(h)}return r}const ODn=NDn(),BDn=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];function PDn({controlActiveState:n=void 0,controlDelay:r=0,directAnimate:i,directTransition:o,isFallback:l=!1,isExit:h=!1}={}){const f=this.target;this.target={...this.baseTarget};let p={};const b={...this.options.transition};i?p=jDn.call(this,i,o,p):p=FDn.call(this,n,b);const y=RDn.call(this,f,p,r),{getChildAnimations:A,childAnimations:x}=zDn.call(this,b,this.activeStates,l);return HDn.call(this,{factories:y,getChildAnimations:A,childAnimations:x,transition:b,controlActiveState:n,isExit:h})}function jDn(n,r){const i=yH(n,this.options.variants,this.options.custom);if(!i)return{};const o={...this.options.transition,...r||i.transition},l={};return Object.entries(i).forEach(([h,f])=>{h!=="transition"&&(this.target[h]=f,l[h]=SZe(o,h))}),l}function FDn(n,r){n&&(this.activeStates={...this.activeStates,...n});const i={};let o={},l={};return BDn.forEach(h=>{if(!this.activeStates[h]||qZe(this.options[h]))return;const f=this.options[h];let p=KSn(f)?yH(f,this.options.variants,this.options.custom):void 0;if(this.visualElement.isVariantNode){const b=yH(this.context[h],this.options.variants,this.options.custom);p=b?Object.assign(b||{},p):l}p&&(h!=="initial"&&(o=p.transition||this.options.transition),l=Object.assign(l,p))}),Object.assign(r,o),Object.entries(l).forEach(([h,f])=>{h!=="transition"&&(this.target[h]=f,i[h]=SZe(r,h))}),i}function RDn(n,r,i){const o=[];return Object.keys(this.target).forEach(l=>{var h;if(!$Sn(n[l],this.target[l]))return;(h=this.baseTarget)[l]??(h[l]=cMn.get(this.element,l));const f=this.target[l]==="none"?sMn[l]:this.target[l],p=r[l];o.push(()=>ODn(this.element,{[l]:f},{...p,delay:((p==null?void 0:p.delay)||0)+i}))}),o}function zDn(n,r,i){var o;if(!((o=this.visualElement.variantChildren)!=null&&o.size)||!r)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:l=0,staggerDirection:h=1,delayChildren:f=0}=n||{},p=(this.visualElement.variantChildren.size-1)*l,b=h===1?(A=0)=>A*l:(A=0)=>p-A*l,y=Array.from(this.visualElement.variantChildren).map((A,x)=>{const C=f+b(x);return A.state.animateUpdates({controlActiveState:r,controlDelay:i?0:C})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(y.map(A=>A==null?void 0:A())),childAnimations:y}}function HDn({factories:n,getChildAnimations:r,childAnimations:i,transition:o,controlActiveState:l,isExit:h=!1}){const f=()=>Promise.all(n.map(x=>x()).filter(Boolean)),p={...this.target},b=this.element,y=x=>{b.dispatchEvent(xet("motionstart",p)),x.then(()=>{b.dispatchEvent(xet("motioncomplete",p,h))}).catch(Ip)},A=()=>{const x=o!=null&&o.when?(o.when==="beforeChildren"?f():r()).then(()=>o.when==="beforeChildren"?r():f()):Promise.all([f(),r()]);return y(x),x};return l?A:A()}function _Dn(n){return typeof n=="string"||n===!1||Array.isArray(n)}const Let=new WeakMap;let QDn=0;const bbe=new Set;class VDn{constructor(r,i){var o;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=PDn,this.id=`motion-state-${QDn++}`,this.options=r,this.parent=i,(o=i==null?void 0:i.children)==null||o.add(this),this.depth=(i==null?void 0:i.depth)+1||0;const l=this.context.initial===!1?["initial","animate"]:["initial"];this.initTarget(l),this.visualElement=iDn(this.options.as,{presenceContext:null,parent:i==null?void 0:i.visualElement,props:{...this.options,whileHover:this.options.whileHover,whileTap:this.options.whilePress,whileInView:this.options.whileInView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.baseTarget}},reducedMotionConfig:r.motionConfig.reduceMotion}),this.featureManager=new DLn(this)}get context(){if(!this._context){const r={get:(i,o)=>{var l;return _Dn(this.options[o])?this.options[o]:(l=this.parent)==null?void 0:l.context[o]}};this._context=new Proxy({},r)}return this._context}initTarget(r){this.baseTarget=r.reduce((i,o)=>({...i,...yH(this.options[o]||this.context[o],this.options.variants)}),{}),this.target={}}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!lbe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(r,i,o=!1){this.element=r,this.options=i,Let.set(r,this),lS.get(r)||(this.visualElement.mount(r),lS.set(r,this.visualElement)),this.visualElement.state=this,this.updateOptions(),this.featureManager.mount(),!o&&this.options.animate&&this.startAnimation(),this.options.layoutId&&(bbe.add(this.options.layoutId),nu.render(()=>{bbe.clear()}))}clearAnimation(){var r;this.currentProcess&&q8(this.currentProcess),this.currentProcess=null,(r=this.visualElement.variantChildren)==null||r.forEach(i=>{i.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=nu.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(r=!1){const i=this.options.layoutId&&!bbe.has(this.options.layoutId);(()=>{r&&Array.from(this.children).reverse().forEach(this.unmountChild);const l=()=>{var h,f,p;(f=(h=this.parent)==null?void 0:h.children)==null||f.delete(this),Let.delete(this.element),this.featureManager.unmount(),(p=this.visualElement)==null||p.unmount()};i?Promise.resolve().then(l):l()})()}unmountChild(r){r.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(r){const i=ZSn(this.options,r);this.options=r,this.updateOptions(),this.featureManager.update(),i&&this.startAnimation()}setActive(r,i,o=!0){var l;!this.element||this.activeStates[r]===i||(this.activeStates[r]=i,(l=this.visualElement.variantChildren)==null||l.forEach(h=>{h.state.setActive(r,i,!1)}),o&&this.animateUpdates({isFallback:!i&&r!=="exit"&&this.visualElement.isControllingVariants,isExit:this.activeStates.exit}))}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(r){var i;(this.options.layout||this.options.layoutId)&&((i=this.visualElement.projection)==null||i.willUpdate())}}function FX(n){return(n==null?void 0:n.nodeType)===3||(n==null?void 0:n.nodeType)===8?FX(n.nextSibling):n}function $Dn(n){var r;const i=((r=FX(n.$el))==null?void 0:r.style.display)==="none";return n.$.vnode.transition&&i}const GDn={reduceMotion:"never",transition:void 0,nonce:void 0},[YDn,bYr]=bX("MotionConfig");function UDn(){return YDn(K.computed(()=>GDn))}const vbe=K.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:K.mergeDefaults({as:{},asChild:{type:Boolean},hover:{},press:{},inView:{},focus:{},whileDrag:{},whileHover:{},whilePress:{},whileInView:{},whileFocus:{},custom:{},initial:{type:[String,Array,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.5,dragMomentum:!0,whileDrag:void 0,crossfade:!0,whileHover:({hover:n})=>n,whilePress:({press:n})=>n,whileInView:({inView:n})=>n,whileFocus:({focus:n})=>n}),setup(n){const r=n,i=UEn({}),o=_Sn(null),l=K.useAttrs(),h=VSn({}),f=UDn();function p(){return h.id&&r.layoutId?`${h.id}-${r.layoutId}`:r.layoutId||void 0}function b(){return{...l,...r,layoutId:p(),transition:r.transition??f.value.transition,layoutGroup:h,motionConfig:f.value,inViewOptions:r.inViewOptions??f.value.inViewOptions,initial:i.initial===!1?i.initial:r.initial===!0?void 0:r.initial}}const y=new VDn(b(),o);QSn(y);const A=K.getCurrentInstance().proxy;K.onBeforeMount(()=>{y.beforeMount()}),K.onMounted(()=>{y.mount(FX(A.$el),b(),$Dn(A))}),K.onBeforeUnmount(()=>y.beforeUnmount()),K.onUnmounted(()=>{const M=FX(A.$el);M!=null&&M.isConnected||y.unmount()}),K.onBeforeUpdate(()=>{y.beforeUpdate()}),K.onUpdated(()=>{y.update(b())});function x(){const M=y.visualElement.type==="svg",E={...l};Object.keys(l).forEach(O=>{yX(l[O])&&(E[O]=l[O].get())});let D={...r.style,...M?{}:y.visualElement.latestValues};if(M){const{attributes:O,style:P}=uMn(y.isMounted()?y.target:y.baseTarget);Object.assign(E,O),Object.assign(D,P)}return r.drag&&r.dragListener!==!1&&Object.assign(D,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`}),D=lMn({...D,...r.style}),E.style=D,E}const C=K.ref();function T(M){var E,D;r.asChild&&((E=C.value)==null||E.$forceUpdate()),(D=l.onMotioncomplete)==null||D.call(l,M)}return(M,E)=>{var D;return K.openBlock(),K.createBlock(K.unref(fMn),{ref_key:"PrimitiveRef",ref:C,"get-props":x,as:M.as,"as-child":M.asChild,"data-motion-group":((D=K.unref(h).key)==null?void 0:D.value)||void 0,onMotioncomplete:T},{default:K.withCtx(()=>[K.renderSlot(M.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}}),Det=new Map,ybe=new Proxy(vbe,{get(n,r){if(typeof r=="symbol")return n[r];let i=Det.get(r);return r==="create"?o=>K.defineComponent({inheritAttrs:!1,name:`motion.${o.$name}`,setup(l,{attrs:h,slots:f}){return()=>K.h(vbe,{...h,as:o,asChild:!1},f)}}):(i||(i=K.defineComponent({inheritAttrs:!1,name:`motion.${r}`,setup(o,{attrs:l,slots:h}){return()=>K.h(vbe,{...l,as:r,asChild:!1},h)}}),Det.set(r,i)),i)}});function Net(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Function]"}function ON(n,r,i,o=1){const[l,h]=typeof o=="number"?[o,o]:o,f=Math.round(r/l/n[0])*n[0],p=Math.round(i/h/n[1])*n[1];return[f,p]}function wbe(n,r,i){return n-r-i}function Abe(n,r,i){return n-r-i}function L4(n,r,i){return r!==null&&n<r?r:i!==null&&i<n?i:n}function Oet(n,r,i){let o=n;const l=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(h=>Net(o[h]));if(!Net(o[l]))return!1;do{if(o[l](r))return!0;if(o===i)return!1;o=o.parentNode}while(o);return!1}function JDn(n){const r=window.getComputedStyle(n);return[parseFloat(r.getPropertyValue("width"),10),parseFloat(r.getPropertyValue("height"),10)]}function dS(n,r,i){n&&(n.attachEvent?n.attachEvent("on"+r,i):n.addEventListener?n.addEventListener(r,i,!0):n["on"+r]=i)}function eA(n,r,i){n&&(n.detachEvent?n.detachEvent("on"+r,i):n.removeEventListener?n.removeEventListener(r,i,!0):n["on"+r]=null)}const WDn=(n,r)=>{const i=n.__vccOpts||n;for(const[o,l]of r)i[o]=l;return i},RX={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},qDn={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},ZDn={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let tA=RX.mouse;const KDn={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},h:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},minWidth:{type:Number,default:0,validator:n=>n>=0},minHeight:{type:Number,default:0,validator:n=>n>=0},maxWidth:{type:Number,default:null,validator:n=>n>=0},maxHeight:{type:Number,default:null,validator:n=>n>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:n=>typeof n=="string"?n==="auto":n>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:n=>{const r=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(n.filter(i=>r.has(i))).size===n.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:n=>["x","y","both"].includes(n)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:n=>typeof n=="number"?n>0:n.length===2&&n[0]>0&&n[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r;const[i,o]=JDn(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:i)/(this.h!=="auto"?this.h:o),this.width=this.w!=="auto"?this.w:i,this.height=this.h!=="auto"?this.h:o,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),dS(document.documentElement,"mousedown",this.deselect),dS(document.documentElement,"touchend touchcancel",this.deselect),dS(window,"resize",this.checkParentSize)},beforeUnmount:function(){eA(document.documentElement,"mousedown",this.deselect),eA(document.documentElement,"touchstart",this.handleUp),eA(document.documentElement,"mousemove",this.move),eA(document.documentElement,"touchmove",this.move),eA(document.documentElement,"mouseup",this.handleUp),eA(document.documentElement,"touchend touchcancel",this.deselect),eA(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const n=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(n.getPropertyValue("width"),10),parseInt(n.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(n){tA=RX.touch,this.elementDown(n)},elementMouseDown(n){tA=RX.mouse,this.elementDown(n)},elementDown(n){if(n instanceof MouseEvent&&n.button!==0)return;const r=n.target||n.srcElement;if(this.$el.contains(r)){if(this.onDragStart(n)===!1)return;if(this.dragHandle&&!Oet(r,this.dragHandle,this.$el)||this.dragCancel&&Oet(r,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=n.touches?n.touches[0].pageX:n.pageX,this.mouseClickPosition.mouseY=n.touches?n.touches[0].pageY:n.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),dS(document.documentElement,tA.move,this.move),dS(document.documentElement,tA.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(n){const r=n.target||n.srcElement,i=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(r)&&!i.test(r.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),eA(document.documentElement,tA.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(n,r){tA=RX.touch,this.handleDown(n,r)},handleDown(n,r){r instanceof MouseEvent&&r.which!==1||this.onResizeStart(n,r)!==!1&&(r.stopPropagation&&r.stopPropagation(),this.lockAspectRatio&&!n.includes("m")?this.handle="m"+n.substring(1):this.handle=n,this.resizeEnable=!0,this.mouseClickPosition.mouseX=r.touches?r.touches[0].pageX:r.pageX,this.mouseClickPosition.mouseY=r.touches?r.touches[0].pageY:r.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),dS(document.documentElement,tA.move,this.handleResize),dS(document.documentElement,tA.stop,this.handleUp))},calcResizeLimits(){let n=this.minW,r=this.minH,i=this.maxW,o=this.maxH;const l=this.aspectFactor,[h,f]=this.grid,p=this.width,b=this.height,y=this.left,A=this.top,x=this.right,C=this.bottom;this.lockAspectRatio&&(n/r>l?r=n/l:n=l*r,i&&o?(i=Math.min(i,l*o),o=Math.min(o,i/l)):i?o=i/l:o&&(i=l*o)),i=i-i%h,o=o-o%f;const T={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(T.minLeft=y%h,T.maxLeft=y+Math.floor((p-n)/h)*h,T.minTop=A%f,T.maxTop=A+Math.floor((b-r)/f)*f,T.minRight=x%h,T.maxRight=x+Math.floor((p-n)/h)*h,T.minBottom=C%f,T.maxBottom=C+Math.floor((b-r)/f)*f,i&&(T.minLeft=Math.max(T.minLeft,this.parentWidth-x-i),T.minRight=Math.max(T.minRight,this.parentWidth-y-i)),o&&(T.minTop=Math.max(T.minTop,this.parentHeight-C-o),T.minBottom=Math.max(T.minBottom,this.parentHeight-A-o)),this.lockAspectRatio&&(T.minLeft=Math.max(T.minLeft,y-A*l),T.minTop=Math.max(T.minTop,A-y/l),T.minRight=Math.max(T.minRight,x-C*l),T.minBottom=Math.max(T.minBottom,C-x/l))):(T.minLeft=null,T.maxLeft=y+Math.floor((p-n)/h)*h,T.minTop=null,T.maxTop=A+Math.floor((b-r)/f)*f,T.minRight=null,T.maxRight=x+Math.floor((p-n)/h)*h,T.minBottom=null,T.maxBottom=C+Math.floor((b-r)/f)*f,i&&(T.minLeft=-(x+i),T.minRight=-(y+i)),o&&(T.minTop=-(C+o),T.minBottom=-(A+o)),this.lockAspectRatio&&i&&o&&(T.minLeft=Math.min(T.minLeft,-(x+i)),T.minTop=Math.min(T.minTop,-(o+C)),T.minRight=Math.min(T.minRight,-y-i),T.minBottom=Math.min(T.minBottom,-A-o))),T},move(n){this.resizing?this.handleResize(n):this.dragEnable&&this.handleDrag(n)},handleDrag(n){const r=this.axis,i=this.grid,o=this.bounds,l=this.mouseClickPosition,h=r&&r!=="y"?l.mouseX-(n.touches?n.touches[0].pageX:n.pageX):0,f=r&&r!=="x"?l.mouseY-(n.touches?n.touches[0].pageY:n.pageY):0,[p,b]=ON(i,h,f,this.scale),y=L4(l.left-p,o.minLeft,o.maxLeft),A=L4(l.top-b,o.minTop,o.maxTop);if(this.onDrag(y,A)===!1)return;const x=L4(l.right+p,o.minRight,o.maxRight),C=L4(l.bottom+b,o.minBottom,o.maxBottom);this.left=y,this.top=A,this.right=x,this.bottom=C,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(n){const[r,i]=ON(this.grid,n,this.top,1),o=L4(r,this.bounds.minLeft,this.bounds.maxLeft);this.left=o,this.right=this.parentWidth-this.width-o},moveVertically(n){const[r,i]=ON(this.grid,this.left,n,1),o=L4(i,this.bounds.minTop,this.bounds.maxTop);this.top=o,this.bottom=this.parentHeight-this.height-o},handleResize(n){let r=this.left,i=this.top,o=this.right,l=this.bottom;const h=this.mouseClickPosition,f=this.aspectFactor,p=h.mouseX-(n.touches?n.touches[0].pageX:n.pageX),b=h.mouseY-(n.touches?n.touches[0].pageY:n.pageY);!this.widthTouched&&p&&(this.widthTouched=!0),!this.heightTouched&&b&&(this.heightTouched=!0);const[y,A]=ON(this.grid,p,b,this.scale);this.handle.includes("b")?(l=L4(h.bottom+A,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(o=this.right-(this.bottom-l)*f)):this.handle.includes("t")&&(i=L4(h.top-A,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(r=this.left-(this.top-i)*f)),this.handle.includes("r")?(o=L4(h.right+y,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(l=this.bottom-(this.right-o)/f)):this.handle.includes("l")&&(r=L4(h.left-y,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(i=this.top-(this.left-r)/f));const x=wbe(this.parentWidth,r,o),C=Abe(this.parentHeight,i,l);this.onResize(this.handle,r,i,x,C)!==!1&&(this.left=r,this.top=i,this.right=o,this.bottom=l,this.width=x,this.height=C,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(n){const[r,i]=ON(this.grid,n,0,1),o=L4(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight);let l=this.bottom;this.lockAspectRatio&&(l=this.bottom-(this.right-o)/this.aspectFactor);const h=wbe(this.parentWidth,this.left,o),f=Abe(this.parentHeight,this.top,l);this.right=o,this.bottom=l,this.width=h,this.height=f},changeHeight(n){const[r,i]=ON(this.grid,0,n,1),o=L4(this.parentHeight-i-this.top,this.bounds.minBottom,this.bounds.maxBottom);let l=this.right;this.lockAspectRatio&&(l=this.right-(this.bottom-o)*this.aspectFactor);const h=wbe(this.parentWidth,this.left,l),f=Abe(this.parentHeight,this.top,o);this.right=l,this.bottom=o,this.width=h,this.height=f},handleUp(n){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),eA(document.documentElement,tA.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?qDn:ZDn}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(n){this.enabled=n,n?this.$emit("activated"):this.$emit("deactivated")},z(n){(n>=0||n==="auto")&&(this.zIndex=n)},x(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(n))},y(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(n))},lockAspectRatio(n){n?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(n))},h(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(n))}}},XDn=["onMousedown","onTouchstart"];function eNn(n,r,i,o,l,h){return K.openBlock(),K.createElementBlock("div",{style:K.normalizeStyle(h.style),class:K.normalizeClass([{[i.classNameActive]:n.enabled,[i.classNameDragging]:n.dragging,[i.classNameResizing]:n.resizing,[i.classNameDraggable]:i.draggable,[i.classNameResizable]:i.resizable},i.className]),onMousedown:r[0]||(r[0]=(...f)=>h.elementMouseDown&&h.elementMouseDown(...f)),onTouchstart:r[1]||(r[1]=(...f)=>h.elementTouchDown&&h.elementTouchDown(...f))},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(h.actualHandles,f=>(K.openBlock(),K.createElementBlock("div",{key:f,class:K.normalizeClass([i.classNameHandle,i.classNameHandle+"-"+f]),style:K.normalizeStyle({display:n.enabled?"block":"none"}),onMousedown:K.withModifiers(p=>h.handleDown(f,p),["stop","prevent"]),onTouchstart:K.withModifiers(p=>h.handleTouchDown(f,p),["stop","prevent"])},[K.renderSlot(n.$slots,f)],46,XDn))),128)),K.renderSlot(n.$slots,"default")],38)}const xbe=WDn(KDn,[["render",eNn]]);function kbe(n){kbe.installed||(kbe.installed=!0,n.component("VueDraggableResizable",xbe))}const tNn={install:kbe};let zX=null;typeof window<"u"?zX=window.Vue:typeof global<"u"&&(zX=global.Vue),zX&&zX.use(tNn);const Cbe="data:image/png;base64,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";var nNn="tippy-box",Bet="tippy-content",rNn="tippy-backdrop",Pet="tippy-arrow",jet="tippy-svg-arrow",gS={passive:!0,capture:!0},Fet=function(){return document.body};function Tbe(n,r,i){if(Array.isArray(n)){var o=n[r];return o??(Array.isArray(i)?i[r]:i)}return n}function Sbe(n,r){var i={}.toString.call(n);return i.indexOf("[object")===0&&i.indexOf(r+"]")>-1}function Ret(n,r){return typeof n=="function"?n.apply(void 0,r):n}function zet(n,r){if(r===0)return n;var i;return function(o){clearTimeout(i),i=setTimeout(function(){n(o)},r)}}function iNn(n){return n.split(/\s+/).filter(Boolean)}function BN(n){return[].concat(n)}function Het(n,r){n.indexOf(r)===-1&&n.push(r)}function aNn(n){return n.filter(function(r,i){return n.indexOf(r)===i})}function oNn(n){return n.split("-")[0]}function HX(n){return[].slice.call(n)}function _et(n){return Object.keys(n).reduce(function(r,i){return n[i]!==void 0&&(r[i]=n[i]),r},{})}function PH(){return document.createElement("div")}function _X(n){return["Element","Fragment"].some(function(r){return Sbe(n,r)})}function sNn(n){return Sbe(n,"NodeList")}function cNn(n){return Sbe(n,"MouseEvent")}function lNn(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function uNn(n){return _X(n)?[n]:sNn(n)?HX(n):Array.isArray(n)?n:HX(document.querySelectorAll(n))}function Mbe(n,r){n.forEach(function(i){i&&(i.style.transitionDuration=r+"ms")})}function Qet(n,r){n.forEach(function(i){i&&i.setAttribute("data-state",r)})}function hNn(n){var r,i=BN(n),o=i[0];return o!=null&&(r=o.ownerDocument)!=null&&r.body?o.ownerDocument:document}function fNn(n,r){var i=r.clientX,o=r.clientY;return n.every(function(l){var h=l.popperRect,f=l.popperState,p=l.props,b=p.interactiveBorder,y=oNn(f.placement),A=f.modifiersData.offset;if(!A)return!0;var x=y==="bottom"?A.top.y:0,C=y==="top"?A.bottom.y:0,T=y==="right"?A.left.x:0,M=y==="left"?A.right.x:0,E=h.top-o+x>b,D=o-h.bottom-C>b,O=h.left-i+T>b,P=i-h.right-M>b;return E||D||O||P})}function Ibe(n,r,i){var o=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(l){n[o](l,i)})}function Vet(n,r){for(var i=r;i;){var o;if(n.contains(i))return!0;i=i.getRootNode==null||(o=i.getRootNode())==null?void 0:o.host}return!1}var o6={isTouch:!1},$et=0;function dNn(){o6.isTouch||(o6.isTouch=!0,window.performance&&document.addEventListener("mousemove",Get))}function Get(){var n=performance.now();n-$et<20&&(o6.isTouch=!1,document.removeEventListener("mousemove",Get)),$et=n}function gNn(){var n=document.activeElement;if(lNn(n)){var r=n._tippy;n.blur&&!r.state.isVisible&&n.blur()}}function pNn(){document.addEventListener("touchstart",dNn,gS),window.addEventListener("blur",gNn)}var mNn=typeof window<"u"&&typeof document<"u",bNn=mNn?!!window.msCrypto:!1,vNn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},yNn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H3=Object.assign({appendTo:Fet,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},vNn,yNn),wNn=Object.keys(H3),ANn=function(r){var i=Object.keys(r);i.forEach(function(o){H3[o]=r[o]})};function Yet(n){var r=n.plugins||[],i=r.reduce(function(o,l){var h=l.name,f=l.defaultValue;if(h){var p;o[h]=n[h]!==void 0?n[h]:(p=H3[h])!=null?p:f}return o},{});return Object.assign({},n,i)}function xNn(n,r){var i=r?Object.keys(Yet(Object.assign({},H3,{plugins:r}))):wNn,o=i.reduce(function(l,h){var f=(n.getAttribute("data-tippy-"+h)||"").trim();if(!f)return l;if(h==="content")l[h]=f;else try{l[h]=JSON.parse(f)}catch{l[h]=f}return l},{});return o}function Uet(n,r){var i=Object.assign({},r,{content:Ret(r.content,[n])},r.ignoreAttributes?{}:xNn(n,r.plugins));return i.aria=Object.assign({},H3.aria,i.aria),i.aria={expanded:i.aria.expanded==="auto"?r.interactive:i.aria.expanded,content:i.aria.content==="auto"?r.interactive?null:"describedby":i.aria.content},i}var kNn=function(){return"innerHTML"};function Ebe(n,r){n[kNn()]=r}function Jet(n){var r=PH();return n===!0?r.className=Pet:(r.className=jet,_X(n)?r.appendChild(n):Ebe(r,n)),r}function Wet(n,r){_X(r.content)?(Ebe(n,""),n.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?Ebe(n,r.content):n.textContent=r.content)}function Lbe(n){var r=n.firstElementChild,i=HX(r.children);return{box:r,content:i.find(function(o){return o.classList.contains(Bet)}),arrow:i.find(function(o){return o.classList.contains(Pet)||o.classList.contains(jet)}),backdrop:i.find(function(o){return o.classList.contains(rNn)})}}function qet(n){var r=PH(),i=PH();i.className=nNn,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var o=PH();o.className=Bet,o.setAttribute("data-state","hidden"),Wet(o,n.props),r.appendChild(i),i.appendChild(o),l(n.props,n.props);function l(h,f){var p=Lbe(r),b=p.box,y=p.content,A=p.arrow;f.theme?b.setAttribute("data-theme",f.theme):b.removeAttribute("data-theme"),typeof f.animation=="string"?b.setAttribute("data-animation",f.animation):b.removeAttribute("data-animation"),f.inertia?b.setAttribute("data-inertia",""):b.removeAttribute("data-inertia"),b.style.maxWidth=typeof f.maxWidth=="number"?f.maxWidth+"px":f.maxWidth,f.role?b.setAttribute("role",f.role):b.removeAttribute("role"),(h.content!==f.content||h.allowHTML!==f.allowHTML)&&Wet(y,n.props),f.arrow?A?h.arrow!==f.arrow&&(b.removeChild(A),b.appendChild(Jet(f.arrow))):b.appendChild(Jet(f.arrow)):A&&b.removeChild(A)}return{popper:r,onUpdate:l}}qet.$$tippy=!0;var CNn=1,QX=[],Dbe=[];function TNn(n,r){var i=Uet(n,Object.assign({},H3,Yet(_et(r)))),o,l,h,f=!1,p=!1,b=!1,y=!1,A,x,C,T=[],M=zet(qe,i.interactiveDebounce),E,D=CNn++,O=null,P=aNn(i.plugins),F={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},R={id:D,reference:n,popper:PH(),popperInstance:O,props:i,state:F,plugins:P,clearDelayTimeouts:Mt,setProps:Ue,setContent:Qe,show:vt,hide:dt,hideWithInteractivity:yt,enable:$e,disable:Je,unmount:sn,destroy:_e};if(!i.render)return R;var V=i.render(R),Q=V.popper,$=V.onUpdate;Q.setAttribute("data-tippy-root",""),Q.id="tippy-"+R.id,R.popper=Q,n._tippy=R,Q._tippy=R;var Y=P.map(function(tt){return tt.fn(R)}),_=n.hasAttribute("aria-expanded");return me(),oe(),re(),ce("onCreate",[R]),i.showOnCreate&&Zt(),Q.addEventListener("mouseenter",function(){R.props.interactive&&R.state.isVisible&&R.clearDelayTimeouts()}),Q.addEventListener("mouseleave",function(){R.props.interactive&&R.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",M)}),R;function U(){var tt=R.props.touch;return Array.isArray(tt)?tt:[tt,0]}function H(){return U()[0]==="hold"}function W(){var tt;return!!((tt=R.props.render)!=null&&tt.$$tippy)}function z(){return E||n}function ee(){var tt=z().parentNode;return tt?hNn(tt):document}function X(){return Lbe(Q)}function se(tt){return R.state.isMounted&&!R.state.isVisible||o6.isTouch||A&&A.type==="focus"?0:Tbe(R.props.delay,tt?0:1,H3.delay)}function re(tt){tt===void 0&&(tt=!1),Q.style.pointerEvents=R.props.interactive&&!tt?"":"none",Q.style.zIndex=""+R.props.zIndex}function ce(tt,At,_t){if(_t===void 0&&(_t=!0),Y.forEach(function(Vn){Vn[tt]&&Vn[tt].apply(Vn,At)}),_t){var $t;($t=R.props)[tt].apply($t,At)}}function ue(){var tt=R.props.aria;if(tt.content){var At="aria-"+tt.content,_t=Q.id,$t=BN(R.props.triggerTarget||n);$t.forEach(function(Vn){var bn=Vn.getAttribute(At);if(R.state.isVisible)Vn.setAttribute(At,bn?bn+" "+_t:_t);else{var Rr=bn&&bn.replace(_t,"").trim();Rr?Vn.setAttribute(At,Rr):Vn.removeAttribute(At)}})}}function oe(){if(!(_||!R.props.aria.expanded)){var tt=BN(R.props.triggerTarget||n);tt.forEach(function(At){R.props.interactive?At.setAttribute("aria-expanded",R.state.isVisible&&At===z()?"true":"false"):At.removeAttribute("aria-expanded")})}}function ge(){ee().removeEventListener("mousemove",M),QX=QX.filter(function(tt){return tt!==M})}function ve(tt){if(!(o6.isTouch&&(b||tt.type==="mousedown"))){var At=tt.composedPath&&tt.composedPath()[0]||tt.target;if(!(R.props.interactive&&Vet(Q,At))){if(BN(R.props.triggerTarget||n).some(function(_t){return Vet(_t,At)})){if(o6.isTouch||R.state.isVisible&&R.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[R,tt]);R.props.hideOnClick===!0&&(R.clearDelayTimeouts(),R.hide(),p=!0,setTimeout(function(){p=!1}),R.state.isMounted||Ie())}}}function ie(){b=!0}function Ne(){b=!1}function Me(){var tt=ee();tt.addEventListener("mousedown",ve,!0),tt.addEventListener("touchend",ve,gS),tt.addEventListener("touchstart",Ne,gS),tt.addEventListener("touchmove",ie,gS)}function Ie(){var tt=ee();tt.removeEventListener("mousedown",ve,!0),tt.removeEventListener("touchend",ve,gS),tt.removeEventListener("touchstart",Ne,gS),tt.removeEventListener("touchmove",ie,gS)}function Oe(tt,At){Ae(tt,function(){!R.state.isVisible&&Q.parentNode&&Q.parentNode.contains(Q)&&At()})}function je(tt,At){Ae(tt,At)}function Ae(tt,At){var _t=X().box;function $t(Vn){Vn.target===_t&&(Ibe(_t,"remove",$t),At())}if(tt===0)return At();Ibe(_t,"remove",x),Ibe(_t,"add",$t),x=$t}function ke(tt,At,_t){_t===void 0&&(_t=!1);var $t=BN(R.props.triggerTarget||n);$t.forEach(function(Vn){Vn.addEventListener(tt,At,_t),T.push({node:Vn,eventType:tt,handler:At,options:_t})})}function me(){H()&&(ke("touchstart",Ee,{passive:!0}),ke("touchend",Be,{passive:!0})),iNn(R.props.trigger).forEach(function(tt){if(tt!=="manual")switch(ke(tt,Ee),tt){case"mouseenter":ke("mouseleave",Be);break;case"focus":ke(bNn?"focusout":"blur",tn);break;case"focusin":ke("focusout",tn);break}})}function we(){T.forEach(function(tt){var At=tt.node,_t=tt.eventType,$t=tt.handler,Vn=tt.options;At.removeEventListener(_t,$t,Vn)}),T=[]}function Ee(tt){var At,_t=!1;if(!(!R.state.isEnabled||Ze(tt)||p)){var $t=((At=A)==null?void 0:At.type)==="focus";A=tt,E=tt.currentTarget,oe(),!R.state.isVisible&&cNn(tt)&&QX.forEach(function(Vn){return Vn(tt)}),tt.type==="click"&&(R.props.trigger.indexOf("mouseenter")<0||f)&&R.props.hideOnClick!==!1&&R.state.isVisible?_t=!0:Zt(tt),tt.type==="click"&&(f=!_t),_t&&!$t&&it(tt)}}function qe(tt){var At=tt.target,_t=z().contains(At)||Q.contains(At);if(!(tt.type==="mousemove"&&_t)){var $t=ft().concat(Q).map(function(Vn){var bn,Rr=Vn._tippy,Xr=(bn=Rr.popperInstance)==null?void 0:bn.state;return Xr?{popperRect:Vn.getBoundingClientRect(),popperState:Xr,props:i}:null}).filter(Boolean);fNn($t,tt)&&(ge(),it(tt))}}function Be(tt){var At=Ze(tt)||R.props.trigger.indexOf("click")>=0&&f;if(!At){if(R.props.interactive){R.hideWithInteractivity(tt);return}it(tt)}}function tn(tt){R.props.trigger.indexOf("focusin")<0&&tt.target!==z()||R.props.interactive&&tt.relatedTarget&&Q.contains(tt.relatedTarget)||it(tt)}function Ze(tt){return o6.isTouch?H()!==tt.type.indexOf("touch")>=0:!1}function Wt(){Yt();var tt=R.props,At=tt.popperOptions,_t=tt.placement,$t=tt.offset,Vn=tt.getReferenceClientRect,bn=tt.moveTransition,Rr=W()?Lbe(Q).arrow:null,Xr=Vn?{getBoundingClientRect:Vn,contextElement:Vn.contextElement||z()}:n,Jr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gn){var ui=Gn.state;if(W()){var Hr=X(),Zi=Hr.box;["placement","reference-hidden","escaped"].forEach(function(Qi){Qi==="placement"?Zi.setAttribute("data-placement",ui.placement):ui.attributes.popper["data-popper-"+Qi]?Zi.setAttribute("data-"+Qi,""):Zi.removeAttribute("data-"+Qi)}),ui.attributes.popper={}}}},si=[{name:"offset",options:{offset:$t}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!bn}},Jr];W()&&Rr&&si.push({name:"arrow",options:{element:Rr,padding:3}}),si.push.apply(si,(At==null?void 0:At.modifiers)||[]),R.popperInstance=WT(Xr,Q,Object.assign({},At,{placement:_t,onFirstUpdate:C,modifiers:si}))}function Yt(){R.popperInstance&&(R.popperInstance.destroy(),R.popperInstance=null)}function Sn(){var tt=R.props.appendTo,At,_t=z();R.props.interactive&&tt===Fet||tt==="parent"?At=_t.parentNode:At=Ret(tt,[_t]),At.contains(Q)||At.appendChild(Q),R.state.isMounted=!0,Wt()}function ft(){return HX(Q.querySelectorAll("[data-tippy-root]"))}function Zt(tt){R.clearDelayTimeouts(),tt&&ce("onTrigger",[R,tt]),Me();var At=se(!0),_t=U(),$t=_t[0],Vn=_t[1];o6.isTouch&&$t==="hold"&&Vn&&(At=Vn),At?o=setTimeout(function(){R.show()},At):R.show()}function it(tt){if(R.clearDelayTimeouts(),ce("onUntrigger",[R,tt]),!R.state.isVisible){Ie();return}if(!(R.props.trigger.indexOf("mouseenter")>=0&&R.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(tt.type)>=0&&f)){var At=se(!1);At?l=setTimeout(function(){R.state.isVisible&&R.hide()},At):h=requestAnimationFrame(function(){R.hide()})}}function $e(){R.state.isEnabled=!0}function Je(){R.hide(),R.state.isEnabled=!1}function Mt(){clearTimeout(o),clearTimeout(l),cancelAnimationFrame(h)}function Ue(tt){if(!R.state.isDestroyed){ce("onBeforeUpdate",[R,tt]),we();var At=R.props,_t=Uet(n,Object.assign({},At,_et(tt),{ignoreAttributes:!0}));R.props=_t,me(),At.interactiveDebounce!==_t.interactiveDebounce&&(ge(),M=zet(qe,_t.interactiveDebounce)),At.triggerTarget&&!_t.triggerTarget?BN(At.triggerTarget).forEach(function($t){$t.removeAttribute("aria-expanded")}):_t.triggerTarget&&n.removeAttribute("aria-expanded"),oe(),re(),$&&$(At,_t),R.popperInstance&&(Wt(),ft().forEach(function($t){requestAnimationFrame($t._tippy.popperInstance.forceUpdate)})),ce("onAfterUpdate",[R,tt])}}function Qe(tt){R.setProps({content:tt})}function vt(){var tt=R.state.isVisible,At=R.state.isDestroyed,_t=!R.state.isEnabled,$t=o6.isTouch&&!R.props.touch,Vn=Tbe(R.props.duration,0,H3.duration);if(!(tt||At||_t||$t)&&!z().hasAttribute("disabled")&&(ce("onShow",[R],!1),R.props.onShow(R)!==!1)){if(R.state.isVisible=!0,W()&&(Q.style.visibility="visible"),re(),Me(),R.state.isMounted||(Q.style.transition="none"),W()){var bn=X(),Rr=bn.box,Xr=bn.content;Mbe([Rr,Xr],0)}C=function(){var si;if(!(!R.state.isVisible||y)){if(y=!0,Q.offsetHeight,Q.style.transition=R.props.moveTransition,W()&&R.props.animation){var pi=X(),Gn=pi.box,ui=pi.content;Mbe([Gn,ui],Vn),Qet([Gn,ui],"visible")}ue(),oe(),Het(Dbe,R),(si=R.popperInstance)==null||si.forceUpdate(),ce("onMount",[R]),R.props.animation&&W()&&je(Vn,function(){R.state.isShown=!0,ce("onShown",[R])})}},Sn()}}function dt(){var tt=!R.state.isVisible,At=R.state.isDestroyed,_t=!R.state.isEnabled,$t=Tbe(R.props.duration,1,H3.duration);if(!(tt||At||_t)&&(ce("onHide",[R],!1),R.props.onHide(R)!==!1)){if(R.state.isVisible=!1,R.state.isShown=!1,y=!1,f=!1,W()&&(Q.style.visibility="hidden"),ge(),Ie(),re(!0),W()){var Vn=X(),bn=Vn.box,Rr=Vn.content;R.props.animation&&(Mbe([bn,Rr],$t),Qet([bn,Rr],"hidden"))}ue(),oe(),R.props.animation?W()&&Oe($t,R.unmount):R.unmount()}}function yt(tt){ee().addEventListener("mousemove",M),Het(QX,M),M(tt)}function sn(){R.state.isVisible&&R.hide(),R.state.isMounted&&(Yt(),ft().forEach(function(tt){tt._tippy.unmount()}),Q.parentNode&&Q.parentNode.removeChild(Q),Dbe=Dbe.filter(function(tt){return tt!==R}),R.state.isMounted=!1,ce("onHidden",[R]))}function _e(){R.state.isDestroyed||(R.clearDelayTimeouts(),R.unmount(),we(),delete n._tippy,R.state.isDestroyed=!0,ce("onDestroy",[R]))}}function pS(n,r){r===void 0&&(r={});var i=H3.plugins.concat(r.plugins||[]);pNn();var o=Object.assign({},r,{plugins:i}),l=uNn(n),h=l.reduce(function(f,p){var b=p&&TNn(p,o);return b&&f.push(b),f},[]);return _X(n)?h[0]:h}pS.defaultProps=H3,pS.setDefaultProps=ANn,pS.currentInput=o6,Object.assign({},$Qe,{effect:function(r){var i=r.state,o={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(i.elements.popper.style,o.popper),i.styles=o,i.elements.arrow&&Object.assign(i.elements.arrow.style,o.arrow)}}),pS.setDefaultProps({render:qet});function SNn(n){const{triggerRef:r,panelComponent:i,panelProps:o={},tippyOptions:l={}}=n,h=K.ref(null);let f=null;const p=()=>{f||(f=document.createElement("div"));const E=K.h(i,{...o,onClose:x});return K.render(E,f),f},b=E=>{var F;const D=E.target,O=r.value;if(O&&O.contains(D))return;const P=document.querySelector('.tippy-box[data-theme~="history-panel"]');P&&P.contains(D)||(F=h.value)!=null&&F.state.isVisible&&h.value.hide()},y=()=>{if(!r.value||h.value)return;const E={placement:"bottom-end",offset:[0,8],appendTo:document.querySelector(".ai-blueking-container-wrapper")||document.body};h.value=pS(r.value,{content:p(),interactive:!0,trigger:"manual",theme:"light history-panel",arrow:!1,hideOnClick:!1,animation:"scale",duration:200,delay:[0,0],...E,...l,onShow:()=>{h.value&&f&&h.value.setContent(p()),setTimeout(()=>{document.addEventListener("click",b,!1)},0)},onHidden:()=>{document.removeEventListener("click",b,!1)}})},A=()=>{var E;h.value||y(),(E=h.value)==null||E.show()},x=()=>{var E;(E=h.value)==null||E.hide()},C=()=>{var E;h.value||y(),(E=h.value)!=null&&E.state.isVisible?x():A()},T=E=>{E.stopPropagation(),C()},M=()=>{h.value&&(h.value.destroy(),h.value=null),f&&(K.render(null,f),f=null),document.removeEventListener("click",b,!1)};return K.onBeforeUnmount(()=>{M()}),{show:A,hide:x,toggle:C,handleTriggerClick:T,destroy:M,isVisible:()=>{var E;return((E=h.value)==null?void 0:E.state.isVisible)??!1}}}const VX=[oi.HiddenAi,oi.HiddenUser,oi.HiddenGuide,oi.HiddenRole],MNn=n=>{const r=document.cookie.match(new RegExp(`(^| )${n}=([^;]*)(;|$)`));return r?r[2]:""},Zet=n=>n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),INn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const r=Math.random()*16|0;return(n=="x"?r:r&3|8).toString(16)}),ENn=n=>{if(!n)return n;try{if(n.startsWith("http://")||n.startsWith("https://")){const i=window.location.protocol,o=new URL(n);return i==="https:"&&o.protocol==="http:"?(o.protocol="https:",o.toString()):n}if(n.startsWith("//"))return`${window.location.protocol}${n}`;if(n.startsWith("/"))return`${window.location.protocol}//${window.location.host}${n}`;const r=`${window.location.protocol}//${window.location.host}${window.location.pathname}`;return new URL(n,r).toString()}catch(r){return console.warn("URL normalization failed:",r),n}},LNn=MNn("blueking_language")||"zh-cn",DNn={小鲸:"BK GPT",向下收缩:"shrink down",向上扩展:"expand upward",清空聊天记录:"Empty chat records",关闭:"close","内容正在执行中,请执行完成后再发送":"The content is being executed, please send it after the execution is completed.",发送:"Send","您可以键入 “/” 查看更多Prompt":'You can type "/" to see more Prompts',请输入:"Please input",返回最新:"Latest",终止生成:"Stop",向上滚动加载更多记录:"Scroll up to load more records",日:" sunday",一:" monday",二:" tuesday",三:" wednesday",四:" thursday",五:" friday",六:" saturday",昨天:"yesterday",本周:"this week",上周:"last week",复制成功:"Copy success",您选择的文本内容:"The text content you selected",问小鲸:"Ask BK GPT",想对选中的文本做什么:"What do you want to do with the selected text?",translateShortcut:`You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.
|
|
496
|
+
}`;n=document.createElement("style"),n.textContent=o,document.head.appendChild(n)},i=()=>{n&&(n.remove(),n=null)};K.onBeforeMount(()=>{r()}),K.onBeforeUnmount(()=>{i()})};function kZe(n,r,i,o,l,h,f){try{var p=n[h](f),b=p.value}catch(y){i(y);return}p.done?r(b):Promise.resolve(b).then(o,l)}function W8(n){return function(){var r=this,i=arguments;return new Promise(function(o,l){var h=n.apply(r,i);function f(b){kZe(h,o,l,f,p,"next",b)}function p(b){kZe(h,o,l,f,p,"throw",b)}f(void 0)})}}function OSn(n,r,i){return r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n}function yme(n){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{},o=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable}))),o.forEach(function(l){OSn(n,l,i[l])})}return n}function BSn(n,r){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);i.push.apply(i,o)}return i}function PSn(n,r){return r=r??{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):BSn(Object(r)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(r,i))}),n}const jSn=({handleStart:n,handleText:r,handleReferenceDoc:i,handleThink:o,handleEnd:l,handleError:h,requestOptions:f,otherOptions:p})=>{let b=xZe({apiPrefix:f.url,headers:f.headers,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});const y="内容正在生成中...",A=K.ref(f),x=K.ref(),C=K.ref({}),T=K.ref([]),M={},E={},D=K.ref(!1),O=K.computed(()=>{const ft=[];for(let Zt=T.value.length-1;Zt>=0;Zt--){const it=T.value[Zt];let $e=Zt+1,Je=T.value[$e];for(;Je&&![oi.Ai,oi.TokenExpired,oi.ImageNotSupported,oi.Pause,oi.Guide].includes(Je.role);)$e+=1,Je=T.value[$e];if(it.role===oi.System)break;it.status!==M1.Fail&&!((Je==null?void 0:Je.status)===M1.Fail&&[oi.User,oi.UserImage].includes(it.role))&&![oi.Time,oi.System].includes(it.role)&&ft.unshift(it)}return ft}),P=K.computed(()=>{var ft;const Zt=(ft=x.value)===null||ft===void 0?void 0:ft.sessionCode;return Zt?C.value[Zt]:!1}),F=K.computed(()=>{var ft,Zt,it;const $e=[],Je=[],Mt=[],Ue=T.value.findLastIndex(dt=>dt.role===oi.System&&["已启用角色","已启用模型"].some(yt=>dt.content.includes(yt)));let Qe=0;(it=x.value)===null||it===void 0||(Zt=it.roleInfo)===null||Zt===void 0||(ft=Zt.content)===null||ft===void 0||ft.forEach(dt=>{const yt=T.value[Ue+1+Qe];let sn=T.value[Ue+2+Qe];if((yt==null?void 0:yt.content)===dt.content&&yt.role!==oi.System&&($e.push(vme(yt)),Qe+=1,(yt==null?void 0:yt.role)===oi.Pause)){for(;sn&&sn.role===oi.System;)Qe+=1,sn=T.value[Ue+1+Qe];for(;sn&&[oi.User,oi.UserImage].includes(sn.role);)$e.push(vme(sn)),Qe+=1,sn=T.value[Ue+1+Qe]}}),Je.push(...O.value.map(vme));const vt=dt=>{let yt=!0;for(let _e=dt;_e<$e.length;_e++){var sn;$e[_e].content!==((sn=Je[_e-dt])===null||sn===void 0?void 0:sn.content)&&(yt=!1)}return yt};for(let dt=0;dt<$e.length;dt++){const yt=$e[dt];if(vt(dt))break;Mt.push(yt)}return Mt.push(...Je),Mt.forEach(dt=>{dt.content=LSn(dt.content),dt.content=tSn(dt.content)}),Mt}),R=new XTn({handleStart:oe,handleText:Ie,handleReferenceDoc:ve,handleThink:Ne,handleEnd:je,handleError:ke,beforeRequest:f.beforeRequest,afterRequest:f.afterRequest});function V(ft){A.value=yme({},A.value,ft),(ft.url||ft.headers)&&(b=xZe({apiPrefix:A.value.url,headers:A.value.headers,beforeRequest:A.value.beforeRequest,afterRequest:A.value.afterRequest}))}function Q(ft){return b.plusSessionContent(ft).then(Zt=>(ft.id=Zt.id,ft.createdAt=Zt.createdAt,ft))}const $=YTn((ft,Zt)=>b.modifySessionContent(Zt),1e3);function Y(ft){x.value=ft,ft!=null&&ft.sessionCode&&(M[ft.sessionCode]||(M[ft.sessionCode]=[]),T.value=M[ft.sessionCode])}function _(ft){x.value&&(M[x.value.sessionCode]=ft,T.value=ft)}function U(ft){return H.apply(this,arguments)}function H(){return H=W8(function*(ft){x.value=ft;try{D.value=!0;const Zt=yield b.getSessionContents(ft.sessionCode);M[x.value.sessionCode]=Zt,T.value=Zt,D.value=!1}catch{D.value=!1}}),H.apply(this,arguments)}function W(ft,Zt){return ee(Zt).find($e=>$e.id===ft)}function z(ft){var Zt;return((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft?T.value.at(-1):M[ft].at(-1)}function ee(ft){var Zt;return((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft?T.value:M[ft]}function X(ft,Zt){return ee(ft).push(Zt),Q(Zt)}function se(ft){var Zt;const $e=(((Zt=x.value)===null||Zt===void 0?void 0:Zt.sessionCode)===ft.sessionCode?T.value:M[ft.sessionCode]).find(Je=>+(Je.id||0)==+(ft.id||0));return $e&&Object.assign($e,ft),$(ft.id,ft)}function re(ft,Zt,it){var $e;const Je=(($e=x.value)===null||$e===void 0?void 0:$e.sessionCode)===ft?T.value:M[ft],Mt=[];return Zt.forEach(Ue=>{const Qe=Je.findIndex(vt=>vt.id===Ue);if(Qe>-1){const vt=Je[Qe-1],dt=Je[Qe+1],yt=Je[Qe+2];if(Je.splice(Qe,1),Mt.push(Ue),[oi.Hidden].includes(vt==null?void 0:vt.role)){const sn=Je.findIndex(_e=>_e.id===vt.id);Je.splice(sn,1),Mt.push(vt.id)}if((dt==null?void 0:dt.role)===oi.Ai||it&&[oi.Ai,oi.Guide,oi.TokenExpired,oi.ImageNotSupported,oi.Pause].includes(dt==null?void 0:dt.role)){const sn=Je.findIndex(_e=>_e.id===dt.id);Je.splice(sn,1),Mt.push(dt.id)}if([oi.Guide].includes(yt==null?void 0:yt.role)&&it){const sn=Je.findIndex(_e=>_e.id===yt.id);Je.splice(sn,1),Mt.push(yt.id)}}}),Mt}function ce(ft,Zt){const it=re(ft,[Zt],!0);return b.batchDeleteSessionContents(it)}function ue(ft,Zt){const it=re(ft,Zt,!1);return b.batchDeleteSessionContents(it)}function oe(ft){return ge.apply(this,arguments)}function ge(){return ge=W8(function*(ft){C.value[ft]=!0;const Zt={sessionCode:ft,role:oi.Ai,status:M1.Loading,content:y};return yield X(ft,Zt),n==null?void 0:n(ft,Zt)}),ge.apply(this,arguments)}function ve(ft,Zt,it){return ie.apply(this,arguments)}function ie(){return ie=W8(function*(ft,Zt,it){const $e=z(ft),Je=eSn(Zt,p==null?void 0:p.hideReferenceDocIcon);$e.content=it?Je:$e.content+Je,yield $($e.id,$e),yield i==null?void 0:i(ft,$e)}),ie.apply(this,arguments)}function Ne(ft,Zt,it,$e){return Me.apply(this,arguments)}function Me(){return Me=W8(function*(ft,Zt,it,$e){const Je=z(ft);Je.content=ESn(Je.content,Zt,it,$e),yield $(Je.id,Je),yield o==null?void 0:o(ft,Je)}),Me.apply(this,arguments)}function Ie(ft,Zt,it){return Oe.apply(this,arguments)}function Oe(){return Oe=W8(function*(ft,Zt,it){const $e=z(ft);if($e.content===y)$e.content=Zt;else if($e.status===M1.Loading)$e.content=it?Zt:$e.content+Zt;else return;yield $($e.id,$e),yield r==null?void 0:r(ft,$e)}),Oe.apply(this,arguments)}function je(ft,Zt){return Ae.apply(this,arguments)}function Ae(){return Ae=W8(function*(ft,Zt){const it=z(ft);if(it.content===y||DSn(it.content)){ke(ft,"聊天内容已中断");return}it.status===M1.Loading&&(C.value[ft]=!1,Zt&&(it.content=Zt),it.status=M1.Success,yield $(it.id,it),yield l==null?void 0:l(ft,it))}),Ae.apply(this,arguments)}function ke(ft,Zt,it){return me.apply(this,arguments)}function me(){return me=W8(function*(ft,Zt,it){const $e=z(ft);if($e.status=M1.Fail,$e.content=Zt,C.value[ft]=!1,it===hX.TokenExpired){var Je,Mt;if($e.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",$e.role=oi.TokenExpired,!((Mt=x.value)===null||Mt===void 0||(Je=Mt.sessionProperty)===null||Je===void 0)&&Je.isAutoClear){var Ue;yield X(ft,{sessionCode:ft,role:oi.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield b.clearSession((Ue=x.value)===null||Ue===void 0?void 0:Ue.sessionCode)}}it===hX.ImageNotSupported&&($e.content="抱歉,当前模型不支持图片内容解析",$e.role=oi.ImageNotSupported),yield $($e.id,$e),yield h==null?void 0:h(ft,$e,it)}),me.apply(this,arguments)}function we(ft,Zt){return Ee.apply(this,arguments)}function Ee(){return Ee=W8(function*(ft,Zt){let it=!1;E[ft]=[];for(const $e of Zt)if(it)E[ft].push($e);else{const Je=PSn(yme({},MSn($e)),{sessionCode:ft,status:M1.Success});yield X(ft,Je),Je.role===oi.Pause&&(it=!0)}}),Ee.apply(this,arguments)}function qe(ft,Zt,it){if(Zt.role!==oi.Ai)return;const $e=T.value.slice(it,T.value.length).map(Mt=>Mt.id).filter(Mt=>Mt!==void 0);$e.length>0&&ue(ft,$e);const Je=T.value[it-1];Je&&Be(Je)}function Be({sessionCode:ft,url:Zt,data:it,headers:$e}){const Je=E[ft];(Je==null?void 0:Je.length)>0?we(ft,Je):tn(ft,it,Zt,$e)}function tn(ft,Zt,it,$e){var Je;const Mt=z(ft);R.stream({sessionCode:ft,url:it||`${A.value.url}/chat_completion/`,data:yme({session_content_id:Mt==null?void 0:Mt.id,session_code:ft,execute_kwargs:{stream:!0}},Zt,A.value.data),headers:$e||((Je=A.value)===null||Je===void 0?void 0:Je.headers)})}function Ze(ft,Zt,it){return Wt.apply(this,arguments)}function Wt(){return Wt=W8(function*(ft,Zt,it){var $e,Je;if(Zt.role!==oi.User)return;const Mt=T.value.slice(it,T.value.length).map(Ue=>Ue.id).filter(Ue=>Ue!==void 0);Mt.length>0&&ue(ft,Mt),yield X(ft,{role:oi.User,content:Zt.content,sessionCode:ft,property:{extra:{cite:(Je=Zt.property)===null||Je===void 0||($e=Je.extra)===null||$e===void 0?void 0:$e.cite}}}),Be(Zt)}),Wt.apply(this,arguments)}function Yt(ft,Zt){let it=[];if(T.value[ft].role===oi.User){it=T.value.slice(ft,ft+2).map(Je=>Je.id).filter(Je=>Je!==void 0),ue(Zt,it);return}it=T.value.slice(ft-1,ft+1).map(Je=>Je.id).filter(Je=>Je!==void 0),ue(Zt,it)}function Sn(ft){R.stop(ft)}return{currentSession:x,sessionContents:T,sessionContentsMap:M,sessionLoadingMap:C,prompts:F,currentSessionLoading:P,isLoadingSessionContents:D,chat:Be,stopChat:Sn,plusSessionContent:X,updateSessionContent:se,getSessionContentById:W,getLastSessionContentBySessionCode:z,getSessionContentsBySessionCode:ee,setCurrentSession:Y,setCurrentSessionChain:U,setSessionContents:_,deleteSessionContent:ce,deleteSessionContents:ue,handleStartChat:oe,handleErrorChat:ke,handleCompleteRole:we,reGenerateChat:qe,reSendChat:Ze,deleteChat:Yt,getAgentInfoApi:(...ft)=>b.getAgentInfo(...ft),clearSessionApi:(...ft)=>b.clearSession(...ft),getSessionsApi:(...ft)=>b.getSessions(...ft),plusSessionApi:(...ft)=>b.plusSession(...ft),modifySessionApi:(...ft)=>b.modifySession(...ft),deleteSessionApi:(...ft)=>b.deleteSession(...ft),batchDeleteSessionsApi:(...ft)=>b.batchDeleteSessions(...ft),getSessionApi:(...ft)=>b.getSession(...ft),getSessionContentsApi:(...ft)=>b.getSessionContents(...ft),plusSessionContentApi:(...ft)=>b.plusSessionContent(...ft),modifySessionContentApi:(...ft)=>b.modifySessionContent(...ft),deleteSessionContentApi:(...ft)=>b.deleteSessionContent(...ft),batchDeleteSessionContentsApi:(...ft)=>b.batchDeleteSessionContents(...ft),renameSessionApi:(...ft)=>b.renameSession(...ft),updateRequestOptions:V}};(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})();const FSn=()=>{nSn(),NSn()},RSn=K.defineComponent({setup(n,{expose:r}){const i=K.ref(!1),o=K.ref(),l=K.ref();let h;const f=()=>{var y;window.open((y=o.value)===null||y===void 0?void 0:y.apply_url,"_blank")},p=()=>{i.value=!1,h==null||h()};return r({handleShow:(y,A)=>{var x,C,T,M,E,D,O,P,F,R;o.value=y,i.value=!0,l.value=[{system_name:y==null||(x=y.permission)===null||x===void 0?void 0:x.system_name,name:y==null||(T=y.permission)===null||T===void 0||(C=T.actions)===null||C===void 0?void 0:C.map(V=>V.name).join(","),instance_name:y==null||(R=y.permission)===null||R===void 0||(F=R.actions[0])===null||F===void 0||(P=F.related_resource_types)===null||P===void 0||(O=P[0])===null||O===void 0||(D=O.instances)===null||D===void 0||(E=D[0])===null||E===void 0||(M=E.at(-1))===null||M===void 0?void 0:M.name}],h=A}}),(y,A)=>{const x=K.resolveComponent("bk-exception"),C=K.resolveComponent("bk-table-column"),T=K.resolveComponent("bk-table"),M=K.resolveComponent("bk-button"),E=K.resolveComponent("bk-dialog");return K.openBlock(),K.createBlock(E,{"is-show":i.value,width:640,class:"auth-dialog",onClosed:p},{header:K.withCtx(()=>[K.createVNode(x,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:K.withCtx(()=>[K.createElementVNode("div",null,[K.createVNode(M,{theme:"primary",onClick:f},{default:K.withCtx(()=>A[0]||(A[0]=[K.createTextVNode(" 去申请 ")])),_:1}),K.createVNode(M,{class:"g-ml-8",onClick:p},{default:K.withCtx(()=>A[1]||(A[1]=[K.createTextVNode(" 取消 ")])),_:1})])]),default:K.withCtx(()=>[K.createVNode(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:l.value},{default:K.withCtx(()=>[K.createVNode(C,{label:"系统",field:"system_name"}),K.createVNode(C,{label:"需要申请的权限",field:"name"}),K.createVNode(C,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});RSn.__file="./src/components/render-auth/auth-dialog.vue";const TN=document.createElement("div");TN.id="directive-ele",TN.style.position="absolute",TN.style.zIndex="999999",TN.classList.add("g-permission-cursor-element"),TN.style.height="0",document.body.appendChild(TN);const CZe=n=>r=>typeof r=="string"&&r.startsWith(n),wme=CZe("--"),zSn=CZe("var(--"),Ame=n=>zSn(n)?HSn.test(n.split("/*")[0].trim()):!1,HSn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vH={};function TZe(n){for(const r in n)vH[r]=n[r],wme(r)&&(vH[r].isCSSVariable=!0)}function bX(n,r){const i=typeof n=="string"&&!r?`${n}Context`:r,o=Symbol(i);return[f=>{const p=K.inject(o,f);if(p||p===null)return p;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(", ")}`:`\`${n}\``}`)},f=>(K.provide(o,f),f)]}const[_Sn,QSn]=bX("Motion"),[VSn,fYr]=bX("LayoutGroup");function yH(n,r,i){if(Array.isArray(n))return n.reduce((o,l)=>{const h=yH(l,r,i);return h?{...o,...h}:o},{});if(typeof n=="object")return n;if(n&&r){const o=r[n];return typeof o=="function"?o(i):o}}function $Sn(n,r){return typeof n!=typeof r?!0:Array.isArray(n)&&Array.isArray(r)?!GSn(n,r):n!==r}function GSn(n,r){const i=r.length;if(i!==n.length)return!1;for(let o=0;o<i;o++)if(r[o]!==n[o])return!1;return!0}function SZe(n,r){return n[r]?{...n,...n[r],[r]:void 0}:{...n}}function MZe(n){return n==null?void 0:n.startsWith("--")}const YSn=n=>n;function USn(n){return typeof n=="number"}const JSn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],WSn=new Set(JSn);function qSn(n){return WSn.has(n)}function ZSn(n,r){const i=n.animate,o=r.animate;if(i===o)return!1;if(!i||!o)return!0;if(typeof i=="object"||typeof o=="object"){const l=Object.keys(i),h=Object.keys(o);return l.length!==h.length?!0:l.some(f=>{if(f==="transition")return!1;const p=i[f],b=o[f];return p!==b})}return console.log(2344),i!==o}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KSn=n=>typeof n<"u",IZe={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>`${n}deg`},XSn={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>`${n}px`},rotate:IZe,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:YSn},skew:IZe},eMn=["translate","scale","rotate","skew"],tMn=["","X","Y","Z"],xme=new Map,vX=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];eMn.forEach(n=>{tMn.forEach(r=>{vX.push(n+r),xme.set(n+r,XSn[n])})});const nMn=new Set(vX),rMn=n=>nMn.has(n),EZe={x:"translateX",y:"translateY",z:"translateZ"};function iMn([n],[r]){return vX.indexOf(n)-vX.indexOf(r)}function aMn(n,[r,i]){return`${n} ${r}(${i})`}function oMn(n){return n.sort(iMn).reduce(aMn,"").trim()}const sMn={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function yX(n){return!!(n&&n.getVelocity)}const cMn={get:(n,r)=>{let i=MZe(r)?n.style.getPropertyValue(r):getComputedStyle(n)[r];if(!i&&i!=="0"){const o=xme.get(r);o&&(i=o.initialValue)}return i},set:(n,r,i)=>{MZe(r)?n.style.setProperty(r,i):n.style[r]=i}};function lMn(n){var r;const i={},o=[];for(let l in n){let h=n[l];h=yX(h)?h.get():h,rMn(l)&&l in EZe&&(l=EZe[l]);let f=Array.isArray(h)?h[0]:h;const p=xme.get(l);p?(f=USn(h)?(r=p.toDefaultUnit)==null?void 0:r.call(p,h):h,o.push([l,f])):i[l]=f}return o.length&&(i.transform=oMn(o)),i}const LZe={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function uMn(n){const r={},i={};for(const o in n)if(o in LZe){const l=LZe[o],h=typeof l=="string"?l:o,f=n[o];r[h]=yX(f)?f.get():f}else i[o]=n[o];return{attributes:r,style:i}}function DZe(n){return n?n.flatMap(r=>r.type===K.Fragment?DZe(r.children):[r]):[]}const hMn=K.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:r,slots:i}){return()=>{var o,l;if(!i.default)return null;const h=DZe(i.default()),f=h.findIndex(A=>A.type!==K.Comment);if(f===-1)return h;const p=h[f];(o=p.props)==null||delete o.ref;const b=p.props?K.mergeProps(r,p.props):r;r.class&&((l=p.props)!=null&&l.class)&&delete p.props.class;const y=K.cloneVNode(p,b);for(const A in b)A.startsWith("on")&&(y.props||(y.props={}),y.props[A]=b[A]);return h.length===1?y:(h[f]=y,h)}}}),fMn=K.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(n,{attrs:r,slots:i}){const o=n.asChild?"template":n.as,l=["area","img","input"];return()=>{const f={...n.getProps(),...r};return typeof o=="string"&&l.includes(o)?K.h(o,f):o!=="template"?K.h(n.as,f,{default:i.default}):K.h(hMn,f,{default:i.default})}}}),lS=new WeakMap;class r6{constructor(r){this.state=r}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const Ip=n=>n;let NZe=Ip;const wX=["read","resolveKeyframes","update","preRender","render","postRender"];function dMn(n,r){let i=new Set,o=new Set,l=!1,h=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function b(A){f.has(A)&&(y.schedule(A),n()),A(p)}const y={schedule:(A,x=!1,C=!1)=>{const M=C&&l?i:o;return x&&f.add(A),M.has(A)||M.add(A),A},cancel:A=>{o.delete(A),f.delete(A)},process:A=>{if(p=A,l){h=!0;return}l=!0,[i,o]=[o,i],i.forEach(b),i.clear(),l=!1,h&&(h=!1,y.process(A))}};return y}const gMn=40;function OZe(n,r){let i=!1,o=!0;const l={delta:0,timestamp:0,isProcessing:!1},h=()=>i=!0,f=wX.reduce((O,P)=>(O[P]=dMn(h),O),{}),{read:p,resolveKeyframes:b,update:y,preRender:A,render:x,postRender:C}=f,T=()=>{const O=performance.now();i=!1,l.delta=o?1e3/60:Math.max(Math.min(O-l.timestamp,gMn),1),l.timestamp=O,l.isProcessing=!0,p.process(l),b.process(l),y.process(l),A.process(l),x.process(l),C.process(l),l.isProcessing=!1,i&&r&&(o=!1,n(T))},M=()=>{i=!0,o=!0,l.isProcessing||n(T)};return{schedule:wX.reduce((O,P)=>{const F=f[P];return O[P]=(R,V=!1,Q=!1)=>(i||M(),F.schedule(R,V,Q)),O},{}),cancel:O=>{for(let P=0;P<wX.length;P++)f[wX[P]].cancel(O)},state:l,steps:f}}const{schedule:nu,cancel:q8,state:I1,steps:kme}=OZe(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ip,!0);function pMn(n){return n instanceof SVGElement&&n.tagName!=="svg"}class mMn extends r6{mount(){const r=this.state.element;if(!pMn(r))return;const i=this.state.visualElement;nu.read(()=>{try{i.renderState.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const wH=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),tx=wH("deg"),Z8=wH("%"),fo=wH("px"),bMn=wH("vh"),vMn=wH("vw"),BZe={...Z8,parse:n=>Z8.parse(n)/100,transform:n=>Z8.transform(n*100)};function PZe(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const AH={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(fo.test(n))n=parseFloat(n);else return n;const i=PZe(n,r.target.x),o=PZe(n,r.target.y);return`${i}% ${o}%`}},uf=(n,r,i)=>n+(r-n)*i,nx=(n,r,i)=>i>r?r:i<n?n:i,SN={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xH={...SN,transform:n=>nx(0,1,n)},AX={...SN,default:1},kH=n=>Math.round(n*1e5)/1e5,Cme=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yMn(n){return n==null}const wMn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tme=(n,r)=>i=>!!(typeof i=="string"&&wMn.test(i)&&i.startsWith(n)||r&&!yMn(i)&&Object.prototype.hasOwnProperty.call(i,r)),jZe=(n,r,i)=>o=>{if(typeof o!="string")return o;const[l,h,f,p]=o.match(Cme);return{[n]:parseFloat(l),[r]:parseFloat(h),[i]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},AMn=n=>nx(0,255,n),Sme={...SN,transform:n=>Math.round(AMn(n))},uS={test:Tme("rgb","red"),parse:jZe("red","green","blue"),transform:({red:n,green:r,blue:i,alpha:o=1})=>"rgba("+Sme.transform(n)+", "+Sme.transform(r)+", "+Sme.transform(i)+", "+kH(xH.transform(o))+")"};function xMn(n){let r="",i="",o="",l="";return n.length>5?(r=n.substring(1,3),i=n.substring(3,5),o=n.substring(5,7),l=n.substring(7,9)):(r=n.substring(1,2),i=n.substring(2,3),o=n.substring(3,4),l=n.substring(4,5),r+=r,i+=i,o+=o,l+=l),{red:parseInt(r,16),green:parseInt(i,16),blue:parseInt(o,16),alpha:l?parseInt(l,16)/255:1}}const Mme={test:Tme("#"),parse:xMn,transform:uS.transform},MN={test:Tme("hsl","hue"),parse:jZe("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:i,alpha:o=1})=>"hsla("+Math.round(n)+", "+Z8.transform(kH(r))+", "+Z8.transform(kH(i))+", "+kH(xH.transform(o))+")"},f2={test:n=>uS.test(n)||Mme.test(n)||MN.test(n),parse:n=>uS.test(n)?uS.parse(n):MN.test(n)?MN.parse(n):Mme.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?uS.transform(n):MN.transform(n)},kMn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function CMn(n){var r,i;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Cme))===null||r===void 0?void 0:r.length)||0)+(((i=n.match(kMn))===null||i===void 0?void 0:i.length)||0)>0}const FZe="number",RZe="color",TMn="var",SMn="var(",zZe="${}",MMn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function CH(n){const r=n.toString(),i=[],o={color:[],number:[],var:[]},l=[];let h=0;const p=r.replace(MMn,b=>(f2.test(b)?(o.color.push(h),l.push(RZe),i.push(f2.parse(b))):b.startsWith(SMn)?(o.var.push(h),l.push(TMn),i.push(b)):(o.number.push(h),l.push(FZe),i.push(parseFloat(b))),++h,zZe)).split(zZe);return{values:i,split:p,indexes:o,types:l}}function HZe(n){return CH(n).values}function _Ze(n){const{split:r,types:i}=CH(n),o=r.length;return l=>{let h="";for(let f=0;f<o;f++)if(h+=r[f],l[f]!==void 0){const p=i[f];p===FZe?h+=kH(l[f]):p===RZe?h+=f2.transform(l[f]):h+=l[f]}return h}}const IMn=n=>typeof n=="number"?0:n;function EMn(n){const r=HZe(n);return _Ze(n)(r.map(IMn))}const rx={test:CMn,parse:HZe,createTransformer:_Ze,getAnimatableNone:EMn},LMn={correct:(n,{treeScale:r,projectionDelta:i})=>{const o=n,l=rx.parse(n);if(l.length>5)return o;const h=rx.createTransformer(n),f=typeof l[0]!="number"?1:0,p=i.x.scale*r.x,b=i.y.scale*r.y;l[0+f]/=p,l[1+f]/=b;const y=uf(p,b,.5);return typeof l[2+f]=="number"&&(l[2+f]/=y),typeof l[3+f]=="number"&&(l[3+f]/=y),h(l)}},QZe={borderRadius:{...AH,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:AH,borderTopRightRadius:AH,borderBottomLeftRadius:AH,borderBottomRightRadius:AH,boxShadow:LMn},xX={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class DMn extends r6{constructor(r){super(r),TZe(QZe)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var r,i;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((i=(r=this.state.visualElement.projection)==null?void 0:r.root)==null||i.didUpdate())}mount(){var r;const i=this.state.options,o=this.state.options.layoutGroup;if(i.layout||i.layoutId){const l=this.state.visualElement.projection;l&&(l.promote(),(r=o==null?void 0:o.group)==null||r.add(l)),xX.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const r=this.state.visualElement.projection;r&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(r.isPresent=!1,r.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var r,i;const o=this.state.options.layoutGroup,l=this.state.visualElement.projection;if(l){if(o!=null&&o.group&&o.group.remove(l),(i=(r=l.getStack())==null?void 0:r.lead)!=null&&i.animationProgress)return;this.didUpdate()}}}function VZe(n){return n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1}function Ime(n,r="page"){return{point:{x:n[`${r}X`],y:n[`${r}Y`]}}}function NMn(n){return r=>VZe(r)&&n(r,Ime(r))}function kX(n,r,i,o={passive:!0}){return n.addEventListener(r,i,o),()=>n.removeEventListener(r,i)}function TH(n,r,i,o){return kX(n,r,NMn(i),o)}const $Ze=(n,r)=>Math.abs(n-r);function OMn(n,r){const i=$Ze(n.x,r.x),o=$Ze(n.y,r.y);return Math.sqrt(i**2+o**2)}const BMn=(n,r)=>i=>r(n(i)),SH=(...n)=>n.reduce(BMn),PMn=n=>n*1e3;function jMn(n){return n/1e3}class GZe{constructor(r,i,{transformPagePoint:o,contextWindow:l,dragSnapToOrigin:h=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Lme(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=OMn(x.offset,{x:0,y:0})>=3;if(!C&&!T)return;const{point:M}=x,{timestamp:E}=I1;this.history.push({...M,timestamp:E});const{onStart:D,onMove:O}=this.handlers;C||(D&&D(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,x)},this.handlePointerMove=(x,C)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Eme(C,this.transformPagePoint),nu.update(this.updatePoint,!0)},this.handlePointerUp=(x,C)=>{this.end();const{onEnd:T,onSessionEnd:M,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Lme(x.type==="pointercancel"?this.lastMoveEventInfo:Eme(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,D),M&&M(x,D)},!VZe(r))return;this.dragSnapToOrigin=h,this.handlers=i,this.transformPagePoint=o,this.contextWindow=l||window;const f=Ime(r),p=Eme(f,this.transformPagePoint),{point:b}=p,{timestamp:y}=I1;this.history=[{...b,timestamp:y}];const{onSessionStart:A}=i;A&&A(r,Lme(p,this.history)),this.removeListeners=SH(TH(this.contextWindow,"pointermove",this.handlePointerMove),TH(this.contextWindow,"pointerup",this.handlePointerUp),TH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),q8(this.updatePoint)}}function Eme(n,r){return r?{point:r(n.point)}:n}function YZe(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Lme({point:n},r){return{point:n,delta:YZe(n,UZe(r)),offset:YZe(n,FMn(r)),velocity:RMn(r,.1)}}function FMn(n){return n[0]}function UZe(n){return n[n.length-1]}function RMn(n,r){if(n.length<2)return{x:0,y:0};let i=n.length-1,o=null;const l=UZe(n);for(;i>=0&&(o=n[i],!(l.timestamp-o.timestamp>PMn(r)));)i--;if(!o)return{x:0,y:0};const h=jMn(l.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const f={x:(l.x-o.x)/h,y:(l.y-o.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function JZe({current:n}){return n?n.ownerDocument.defaultView:null}function WZe(n){return(r,i)=>{n&&nu.postRender(()=>n(r,i))}}class zMn extends r6{constructor(){super(...arguments),this.removePointerDownListener=Ip}onPointerDown(r){this.session=new GZe(r,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:JZe(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:WZe((r,i)=>{const{onPanSessionStart:o}=this.state.options;o&&o(r,i)}),onStart:WZe((r,i)=>{const{onPanStart:o}=this.state.options;o&&o(r,i)}),onMove:(r,i)=>{const{onPan:o}=this.state.options;o&&o(r,i)},onEnd:(r,i)=>{const{onPanEnd:o}=this.state.options;delete this.session,o&&nu.postRender(()=>o(r,i))}}}mount(){this.removePointerDownListener=TH(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function qZe(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}class HMn extends r6{constructor(r){super(r)}updateAnimationControlsSubscription(){const{animate:r}=this.state.options;qZe(r)&&(this.unmountControls=r.subscribe(this.state))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.state.options,{animate:i}=this.state.visualElement.prevProps||{};r!==i&&this.updateAnimationControlsSubscription()}unmount(){var r;(r=this.unmountControls)==null||r.call(this)}}function Dme(n,r){return n?n[r]||n.default||n:void 0}const _Mn={useManualTiming:!1};let CX;function QMn(){CX=void 0}const i6={now:()=>(CX===void 0&&i6.set(I1.isProcessing||_Mn.useManualTiming?I1.timestamp:performance.now()),CX),set:n=>{CX=n,queueMicrotask(QMn)}};function Nme(n,r){n.indexOf(r)===-1&&n.push(r)}function TX(n,r){const i=n.indexOf(r);i>-1&&n.splice(i,1)}class Ome{constructor(){this.subscriptions=[]}add(r){return Nme(this.subscriptions,r),()=>TX(this.subscriptions,r)}notify(r,i,o){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](r,i,o);else for(let h=0;h<l;h++){const f=this.subscriptions[h];f&&f(r,i,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ZZe(n,r){return r?n*(1e3/r):0}const KZe=30,VMn=n=>!isNaN(parseFloat(n));class $Mn{constructor(r,i={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,l=!0)=>{const h=i6.now();this.updatedAt!==h&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),l&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=i.owner}setCurrent(r){this.current=r,this.updatedAt=i6.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=VMn(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,i){this.events[r]||(this.events[r]=new Ome);const o=this.events[r].add(i);return r==="change"?()=>{o(),nu.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,i){this.passiveEffect=r,this.stopPassiveEffect=i}set(r,i=!0){!i||!this.passiveEffect?this.updateAndNotify(r,i):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,i,o){this.set(i),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,i=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=i6.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>KZe)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,KZe);return ZZe(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(r){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=r(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function MH(n,r){return new $Mn(n,r)}const d2=n=>!!(n&&n.getVelocity);function Bme(n){let r;return()=>(r===void 0&&(r=n()),r)}const GMn=Bme(()=>window.ScrollTimeline!==void 0);class YMn{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,i){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=i}attachTimeline(r,i){const o=this.animations.map(l=>{if(GMn()&&l.attachTimeline)return l.attachTimeline(r);if(typeof i=="function")return i(l)});return()=>{o.forEach((l,h)=>{l&&l(),this.animations[h].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let i=0;i<this.animations.length;i++)r=Math.max(r,this.animations[i].duration);return r}runAll(r){this.animations.forEach(i=>i[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class XZe extends YMn{then(r,i){return Promise.all(this.animations).then(r).catch(i)}}const K8=n=>n*1e3,X8=n=>n/1e3;function SX(n){return typeof n=="function"}function eKe(n,r){n.timeline=r,n.onfinish=null}const Pme=n=>Array.isArray(n)&&typeof n[0]=="number",UMn={linearEasing:void 0};function JMn(n,r){const i=Bme(n);return()=>{var o;return(o=UMn[r])!==null&&o!==void 0?o:i()}}const MX=JMn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),IH=(n,r,i)=>{const o=r-n;return o===0?1:(i-n)/o},tKe=(n,r,i=10)=>{let o="";const l=Math.max(Math.round(r/i),2);for(let h=0;h<l;h++)o+=n(IH(0,l-1,h))+", ";return`linear(${o.substring(0,o.length-2)})`};function nKe(n){return!!(typeof n=="function"&&MX()||!n||typeof n=="string"&&(n in jme||MX())||Pme(n)||Array.isArray(n)&&n.every(nKe))}const EH=([n,r,i,o])=>`cubic-bezier(${n}, ${r}, ${i}, ${o})`,jme={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:EH([0,.65,.55,1]),circOut:EH([.55,0,1,.45]),backIn:EH([.31,.01,.66,-.59]),backOut:EH([.33,1.53,.69,.99])};function rKe(n,r){if(n)return typeof n=="function"&&MX()?tKe(n,r):Pme(n)?EH(n):Array.isArray(n)?n.map(i=>rKe(i,r)||jme.easeOut):jme[n]}const iKe=(n,r,i)=>(((1-3*i+3*r)*n+(3*i-6*r))*n+3*r)*n,WMn=1e-7,qMn=12;function ZMn(n,r,i,o,l){let h,f,p=0;do f=r+(i-r)/2,h=iKe(f,o,l)-n,h>0?i=f:r=f;while(Math.abs(h)>WMn&&++p<qMn);return f}function LH(n,r,i,o){if(n===r&&i===o)return Ip;const l=h=>ZMn(h,0,1,n,i);return h=>h===0||h===1?h:iKe(l(h),r,o)}const aKe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,oKe=n=>r=>1-n(1-r),sKe=LH(.33,1.53,.69,.99),Fme=oKe(sKe),cKe=aKe(Fme),lKe=n=>(n*=2)<1?.5*Fme(n):.5*(2-Math.pow(2,-10*(n-1))),Rme=n=>1-Math.sin(Math.acos(n)),uKe=oKe(Rme),hKe=aKe(Rme),fKe=n=>/^0[^.\s]+$/u.test(n);function KMn(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||fKe(n):!0}const IN=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],EN=new Set(IN),dKe=new Set(["width","height","top","left","right","bottom",...IN]),XMn=new Set(["brightness","contrast","saturate","opacity"]);function eIn(n){const[r,i]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=i.match(Cme)||[];if(!o)return n;const l=i.replace(o,"");let h=XMn.has(r)?1:0;return o!==i&&(h*=100),r+"("+h+l+")"}const tIn=/\b([a-z-]*)\(.*?\)/gu,zme={...rx,getAnimatableNone:n=>{const r=n.match(tIn);return r?r.map(eIn).join(" "):n}},nIn={borderWidth:fo,borderTopWidth:fo,borderRightWidth:fo,borderBottomWidth:fo,borderLeftWidth:fo,borderRadius:fo,radius:fo,borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomRightRadius:fo,borderBottomLeftRadius:fo,width:fo,maxWidth:fo,height:fo,maxHeight:fo,top:fo,right:fo,bottom:fo,left:fo,padding:fo,paddingTop:fo,paddingRight:fo,paddingBottom:fo,paddingLeft:fo,margin:fo,marginTop:fo,marginRight:fo,marginBottom:fo,marginLeft:fo,backgroundPositionX:fo,backgroundPositionY:fo},rIn={rotate:tx,rotateX:tx,rotateY:tx,rotateZ:tx,scale:AX,scaleX:AX,scaleY:AX,scaleZ:AX,skew:tx,skewX:tx,skewY:tx,distance:fo,translateX:fo,translateY:fo,translateZ:fo,x:fo,y:fo,z:fo,perspective:fo,transformPerspective:fo,opacity:xH,originX:BZe,originY:BZe,originZ:fo},gKe={...SN,transform:Math.round},Hme={...nIn,...rIn,zIndex:gKe,size:fo,fillOpacity:xH,strokeOpacity:xH,numOctaves:gKe},iIn={...Hme,color:f2,backgroundColor:f2,outlineColor:f2,fill:f2,stroke:f2,borderColor:f2,borderTopColor:f2,borderRightColor:f2,borderBottomColor:f2,borderLeftColor:f2,filter:zme,WebkitFilter:zme},_me=n=>iIn[n];function pKe(n,r){let i=_me(n);return i!==zme&&(i=rx),i.getAnimatableNone?i.getAnimatableNone(r):void 0}const aIn=new Set(["auto","none","0"]);function oIn(n,r,i){let o=0,l;for(;o<n.length&&!l;){const h=n[o];typeof h=="string"&&!aIn.has(h)&&CH(h).values.length&&(l=n[o]),o++}if(l&&i)for(const h of r)n[h]=pKe(i,l)}const mKe=n=>n===SN||n===fo,bKe=(n,r)=>parseFloat(n.split(", ")[r]),vKe=(n,r)=>(i,{transform:o})=>{if(o==="none"||!o)return 0;const l=o.match(/^matrix3d\((.+)\)$/u);if(l)return bKe(l[1],r);{const h=o.match(/^matrix\((.+)\)$/u);return h?bKe(h[1],n):0}},sIn=new Set(["x","y","z"]),cIn=IN.filter(n=>!sIn.has(n));function lIn(n){const r=[];return cIn.forEach(i=>{const o=n.getValue(i);o!==void 0&&(r.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),r}const LN={width:({x:n},{paddingLeft:r="0",paddingRight:i="0"})=>n.max-n.min-parseFloat(r)-parseFloat(i),height:({y:n},{paddingTop:r="0",paddingBottom:i="0"})=>n.max-n.min-parseFloat(r)-parseFloat(i),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:vKe(4,13),y:vKe(5,14)};LN.translateX=LN.x,LN.translateY=LN.y;const hS=new Set;let Qme=!1,Vme=!1;function yKe(){if(Vme){const n=Array.from(hS).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),i=new Map;r.forEach(o=>{const l=lIn(o);l.length&&(i.set(o,l),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const l=i.get(o);l&&l.forEach(([h,f])=>{var p;(p=o.getValue(h))===null||p===void 0||p.set(f)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Vme=!1,Qme=!1,hS.forEach(n=>n.complete()),hS.clear()}function wKe(){hS.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Vme=!0)})}function uIn(){wKe(),yKe()}class $me{constructor(r,i,o,l,h,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=i,this.name=o,this.motionValue=l,this.element=h,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hS.add(this),Qme||(Qme=!0,nu.read(wKe),nu.resolveKeyframes(yKe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:i,element:o,motionValue:l}=this;for(let h=0;h<r.length;h++)if(r[h]===null)if(h===0){const f=l==null?void 0:l.get(),p=r[r.length-1];if(f!==void 0)r[0]=f;else if(o&&i){const b=o.readValue(i,p);b!=null&&(r[0]=b)}r[0]===void 0&&(r[0]=p),l&&f===void 0&&l.set(r[0])}else r[h]=r[h-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),hS.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,hS.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const AKe=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),hIn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fIn(n){const r=hIn.exec(n);if(!r)return[,];const[,i,o,l]=r;return[`--${i??o}`,l]}function xKe(n,r,i=1){const[o,l]=fIn(n);if(!o)return;const h=window.getComputedStyle(r).getPropertyValue(o);if(h){const f=h.trim();return AKe(f)?parseFloat(f):f}return Ame(l)?xKe(l,r,i+1):l}const kKe=n=>r=>r.test(n),CKe=[SN,fo,Z8,tx,vMn,bMn,{test:n=>n==="auto",parse:n=>n}],TKe=n=>CKe.find(kKe(n));class SKe extends $me{constructor(r,i,o,l,h){super(r,i,o,l,h,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:i,name:o}=this;if(!i||!i.current)return;super.readKeyframes();for(let b=0;b<r.length;b++){let y=r[b];if(typeof y=="string"&&(y=y.trim(),Ame(y))){const A=xKe(y,i.current);A!==void 0&&(r[b]=A),b===r.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!dKe.has(o)||r.length!==2)return;const[l,h]=r,f=TKe(l),p=TKe(h);if(f!==p)if(mKe(f)&&mKe(p))for(let b=0;b<r.length;b++){const y=r[b];typeof y=="string"&&(r[b]=parseFloat(y))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:i}=this,o=[];for(let l=0;l<r.length;l++)KMn(r[l])&&o.push(l);o.length&&oIn(r,o,i)}measureInitialState(){const{element:r,unresolvedKeyframes:i,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=LN[o](r.measureViewportBox(),window.getComputedStyle(r.current)),i[0]=this.measuredOrigin;const l=i[i.length-1];l!==void 0&&r.getValue(o,l).jump(l,!1)}measureEndState(){var r;const{element:i,name:o,unresolvedKeyframes:l}=this;if(!i||!i.current)return;const h=i.getValue(o);h&&h.jump(this.measuredOrigin,!1);const f=l.length-1,p=l[f];l[f]=LN[o](i.measureViewportBox(),window.getComputedStyle(i.current)),p!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=p),!((r=this.removedTransforms)===null||r===void 0)&&r.length&&this.removedTransforms.forEach(([b,y])=>{i.getValue(b).set(y)}),this.resolveNoneKeyframes()}}const MKe=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(rx.test(n)||n==="0")&&!n.startsWith("url("));function dIn(n){const r=n[0];if(n.length===1)return!0;for(let i=0;i<n.length;i++)if(n[i]!==r)return!0}function gIn(n,r,i,o){const l=n[0];if(l===null)return!1;if(r==="display"||r==="visibility")return!0;const h=n[n.length-1],f=MKe(l,r),p=MKe(h,r);return!f||!p?!1:dIn(n)||(i==="spring"||SX(i))&&o}const pIn=n=>n!==null;function IX(n,{repeat:r,repeatType:i="loop"},o){const l=n.filter(pIn),h=r&&i!=="loop"&&r%2===1?0:l.length-1;return!h||o===void 0?l[h]:o}const mIn=40;class IKe{constructor({autoplay:r=!0,delay:i=0,type:o="keyframes",repeat:l=0,repeatDelay:h=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=i6.now(),this.options={autoplay:r,delay:i,type:o,repeat:l,repeatDelay:h,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>mIn?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&uIn(),this._resolved}onKeyframesResolved(r,i){this.resolvedAt=i6.now(),this.hasAttemptedResolve=!0;const{name:o,type:l,velocity:h,delay:f,onComplete:p,onUpdate:b,isGenerator:y}=this.options;if(!y&&!gIn(r,o,l,h))if(f)this.options.duration=0;else{b&&b(IX(r,this.options,i)),p&&p(),this.resolveFinishedPromise();return}const A=this.initPlayback(r,i);A!==!1&&(this._resolved={keyframes:r,finalKeyframe:i,...A},this.onPostResolved())}onPostResolved(){}then(r,i){return this.currentFinishedPromise.then(r,i)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const EX=2e4;function Gme(n){let r=0;const i=50;let o=n.next(r);for(;!o.done&&r<EX;)r+=i,o=n.next(r);return r>=EX?1/0:r}function Yme(n,r,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+(r-n)*6*i:i<1/2?r:i<2/3?n+(r-n)*(2/3-i)*6:n}function bIn({hue:n,saturation:r,lightness:i,alpha:o}){n/=360,r/=100,i/=100;let l=0,h=0,f=0;if(!r)l=h=f=i;else{const p=i<.5?i*(1+r):i+r-i*r,b=2*i-p;l=Yme(b,p,n+1/3),h=Yme(b,p,n),f=Yme(b,p,n-1/3)}return{red:Math.round(l*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:o}}function LX(n,r){return i=>i>0?r:n}const Ume=(n,r,i)=>{const o=n*n,l=i*(r*r-o)+o;return l<0?0:Math.sqrt(l)},vIn=[Mme,uS,MN],yIn=n=>vIn.find(r=>r.test(n));function EKe(n){const r=yIn(n);if(!r)return!1;let i=r.parse(n);return r===MN&&(i=bIn(i)),i}const LKe=(n,r)=>{const i=EKe(n),o=EKe(r);if(!i||!o)return LX(n,r);const l={...i};return h=>(l.red=Ume(i.red,o.red,h),l.green=Ume(i.green,o.green,h),l.blue=Ume(i.blue,o.blue,h),l.alpha=uf(i.alpha,o.alpha,h),uS.transform(l))},Jme=new Set(["none","hidden"]);function wIn(n,r){return Jme.has(n)?i=>i<=0?n:r:i=>i>=1?r:n}function AIn(n,r){return i=>uf(n,r,i)}function Wme(n){return typeof n=="number"?AIn:typeof n=="string"?Ame(n)?LX:f2.test(n)?LKe:CIn:Array.isArray(n)?DKe:typeof n=="object"?f2.test(n)?LKe:xIn:LX}function DKe(n,r){const i=[...n],o=i.length,l=n.map((h,f)=>Wme(h)(h,r[f]));return h=>{for(let f=0;f<o;f++)i[f]=l[f](h);return i}}function xIn(n,r){const i={...n,...r},o={};for(const l in i)n[l]!==void 0&&r[l]!==void 0&&(o[l]=Wme(n[l])(n[l],r[l]));return l=>{for(const h in o)i[h]=o[h](l);return i}}function kIn(n,r){var i;const o=[],l={color:0,var:0,number:0};for(let h=0;h<r.values.length;h++){const f=r.types[h],p=n.indexes[f][l[f]],b=(i=n.values[p])!==null&&i!==void 0?i:0;o[h]=b,l[f]++}return o}const CIn=(n,r)=>{const i=rx.createTransformer(r),o=CH(n),l=CH(r);return o.indexes.var.length===l.indexes.var.length&&o.indexes.color.length===l.indexes.color.length&&o.indexes.number.length>=l.indexes.number.length?Jme.has(n)&&!l.values.length||Jme.has(r)&&!o.values.length?wIn(n,r):SH(DKe(kIn(o,l),l.values),i):LX(n,r)};function NKe(n,r,i){return typeof n=="number"&&typeof r=="number"&&typeof i=="number"?uf(n,r,i):Wme(n)(n,r)}const TIn=5;function OKe(n,r,i){const o=Math.max(r-TIn,0);return ZZe(i-n(o),r-o)}const X0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},qme=.001;function SIn({duration:n=X0.duration,bounce:r=X0.bounce,velocity:i=X0.velocity,mass:o=X0.mass}){let l,h,f=1-r;f=nx(X0.minDamping,X0.maxDamping,f),n=nx(X0.minDuration,X0.maxDuration,X8(n)),f<1?(l=y=>{const A=y*f,x=A*n,C=A-i,T=Zme(y,f),M=Math.exp(-x);return qme-C/T*M},h=y=>{const x=y*f*n,C=x*i+i,T=Math.pow(f,2)*Math.pow(y,2)*n,M=Math.exp(-x),E=Zme(Math.pow(y,2),f);return(-l(y)+qme>0?-1:1)*((C-T)*M)/E}):(l=y=>{const A=Math.exp(-y*n),x=(y-i)*n+1;return-qme+A*x},h=y=>{const A=Math.exp(-y*n),x=(i-y)*(n*n);return A*x});const p=5/n,b=IIn(l,h,p);if(n=K8(n),isNaN(b))return{stiffness:X0.stiffness,damping:X0.damping,duration:n};{const y=Math.pow(b,2)*o;return{stiffness:y,damping:f*2*Math.sqrt(o*y),duration:n}}}const MIn=12;function IIn(n,r,i){let o=i;for(let l=1;l<MIn;l++)o=o-n(o)/r(o);return o}function Zme(n,r){return n*Math.sqrt(1-r*r)}const EIn=["duration","bounce"],LIn=["stiffness","damping","mass"];function BKe(n,r){return r.some(i=>n[i]!==void 0)}function DIn(n){let r={velocity:X0.velocity,stiffness:X0.stiffness,damping:X0.damping,mass:X0.mass,isResolvedFromDuration:!1,...n};if(!BKe(n,LIn)&&BKe(n,EIn))if(n.visualDuration){const i=n.visualDuration,o=2*Math.PI/(i*1.2),l=o*o,h=2*nx(.05,1,1-(n.bounce||0))*Math.sqrt(l);r={...r,mass:X0.mass,stiffness:l,damping:h}}else{const i=SIn(n);r={...r,...i,mass:X0.mass},r.isResolvedFromDuration=!0}return r}function Kme(n=X0.visualDuration,r=X0.bounce){const i=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:l}=i;const h=i.keyframes[0],f=i.keyframes[i.keyframes.length-1],p={done:!1,value:h},{stiffness:b,damping:y,mass:A,duration:x,velocity:C,isResolvedFromDuration:T}=DIn({...i,velocity:-X8(i.velocity||0)}),M=C||0,E=y/(2*Math.sqrt(b*A)),D=f-h,O=X8(Math.sqrt(b/A)),P=Math.abs(D)<5;o||(o=P?X0.restSpeed.granular:X0.restSpeed.default),l||(l=P?X0.restDelta.granular:X0.restDelta.default);let F;if(E<1){const V=Zme(O,E);F=Q=>{const $=Math.exp(-E*O*Q);return f-$*((M+E*O*D)/V*Math.sin(V*Q)+D*Math.cos(V*Q))}}else if(E===1)F=V=>f-Math.exp(-O*V)*(D+(M+O*D)*V);else{const V=O*Math.sqrt(E*E-1);F=Q=>{const $=Math.exp(-E*O*Q),Y=Math.min(V*Q,300);return f-$*((M+E*O*D)*Math.sinh(Y)+V*D*Math.cosh(Y))/V}}const R={calculatedDuration:T&&x||null,next:V=>{const Q=F(V);if(T)p.done=V>=x;else{let $=0;E<1&&($=V===0?K8(M):OKe(F,V,Q));const Y=Math.abs($)<=o,_=Math.abs(f-Q)<=l;p.done=Y&&_}return p.value=p.done?f:Q,p},toString:()=>{const V=Math.min(Gme(R),EX),Q=tKe($=>R.next(V*$).value,V,30);return V+"ms "+Q}};return R}function PKe({keyframes:n,velocity:r=0,power:i=.8,timeConstant:o=325,bounceDamping:l=10,bounceStiffness:h=500,modifyTarget:f,min:p,max:b,restDelta:y=.5,restSpeed:A}){const x=n[0],C={done:!1,value:x},T=Y=>p!==void 0&&Y<p||b!==void 0&&Y>b,M=Y=>p===void 0?b:b===void 0||Math.abs(p-Y)<Math.abs(b-Y)?p:b;let E=i*r;const D=x+E,O=f===void 0?D:f(D);O!==D&&(E=O-x);const P=Y=>-E*Math.exp(-Y/o),F=Y=>O+P(Y),R=Y=>{const _=P(Y),U=F(Y);C.done=Math.abs(_)<=y,C.value=C.done?O:U};let V,Q;const $=Y=>{T(C.value)&&(V=Y,Q=Kme({keyframes:[C.value,M(C.value)],velocity:OKe(F,Y,C.value),damping:l,stiffness:h,restDelta:y,restSpeed:A}))};return $(0),{calculatedDuration:null,next:Y=>{let _=!1;return!Q&&V===void 0&&(_=!0,R(Y),$(Y)),V!==void 0&&Y>=V?Q.next(Y-V):(!_&&R(Y),C)}}}const NIn=LH(.42,0,1,1),OIn=LH(0,0,.58,1),jKe=LH(.42,0,.58,1),FKe=n=>Array.isArray(n)&&typeof n[0]!="number",BIn={linear:Ip,easeIn:NIn,easeInOut:jKe,easeOut:OIn,circIn:Rme,circInOut:hKe,circOut:uKe,backIn:Fme,backInOut:cKe,backOut:sKe,anticipate:lKe},RKe=n=>{if(Pme(n)){NZe(n.length===4);const[r,i,o,l]=n;return LH(r,i,o,l)}else if(typeof n=="string")return BIn[n];return n};function PIn(n,r,i){const o=[],l=i||NKe,h=n.length-1;for(let f=0;f<h;f++){let p=l(n[f],n[f+1]);if(r){const b=Array.isArray(r)?r[f]||Ip:r;p=SH(b,p)}o.push(p)}return o}function jIn(n,r,{clamp:i=!0,ease:o,mixer:l}={}){const h=n.length;if(NZe(h===r.length),h===1)return()=>r[0];if(h===2&&r[0]===r[1])return()=>r[1];const f=n[0]===n[1];n[0]>n[h-1]&&(n=[...n].reverse(),r=[...r].reverse());const p=PIn(r,o,l),b=p.length,y=A=>{if(f&&A<n[0])return r[0];let x=0;if(b>1)for(;x<n.length-2&&!(A<n[x+1]);x++);const C=IH(n[x],n[x+1],A);return p[x](C)};return i?A=>y(nx(n[0],n[h-1],A)):y}function zKe(n,r){const i=n[n.length-1];for(let o=1;o<=r;o++){const l=IH(0,r,o);n.push(uf(i,1,l))}}function HKe(n){const r=[0];return zKe(r,n.length-1),r}function FIn(n,r){return n.map(i=>i*r)}function RIn(n,r){return n.map(()=>r||jKe).splice(0,n.length-1)}function DX({duration:n=300,keyframes:r,times:i,ease:o="easeInOut"}){const l=FKe(o)?o.map(RKe):RKe(o),h={done:!1,value:r[0]},f=FIn(i&&i.length===r.length?i:HKe(r),n),p=jIn(f,r,{ease:Array.isArray(l)?l:RIn(r,l)});return{calculatedDuration:n,next:b=>(h.value=p(b),h.done=b>=n,h)}}const zIn=n=>{const r=({timestamp:i})=>n(i);return{start:()=>nu.update(r,!0),stop:()=>q8(r),now:()=>I1.isProcessing?I1.timestamp:i6.now()}},HIn={decay:PKe,inertia:PKe,tween:DX,keyframes:DX,spring:Kme},_In=n=>n/100;class Xme extends IKe{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:b}=this.options;b&&b()};const{name:i,motionValue:o,element:l,keyframes:h}=this.options,f=(l==null?void 0:l.KeyframeResolver)||$me,p=(b,y)=>this.onKeyframesResolved(b,y);this.resolver=new f(h,p,i,o,l),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:h,velocity:f=0}=this.options,p=SX(i)?i:HIn[i]||DX;let b,y;p!==DX&&typeof r[0]!="number"&&(b=SH(_In,NKe(r[0],r[1])),r=[0,100]);const A=p({...this.options,keyframes:r});h==="mirror"&&(y=p({...this.options,keyframes:[...r].reverse(),velocity:-f})),A.calculatedDuration===null&&(A.calculatedDuration=Gme(A));const{calculatedDuration:x}=A,C=x+l,T=C*(o+1)-l;return{generator:A,mirroredGenerator:y,mapPercentToKeyframes:b,calculatedDuration:x,resolvedDuration:C,totalDuration:T}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,i=!1){const{resolved:o}=this;if(!o){const{keyframes:Y}=this.options;return{done:!0,value:Y[Y.length-1]}}const{finalKeyframe:l,generator:h,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:b,calculatedDuration:y,totalDuration:A,resolvedDuration:x}=o;if(this.startTime===null)return h.next(0);const{delay:C,repeat:T,repeatType:M,repeatDelay:E,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-A/this.speed,this.startTime)),i?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const O=this.currentTime-C*(this.speed>=0?1:-1),P=this.speed>=0?O<0:O>A;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=A);let F=this.currentTime,R=h;if(T){const Y=Math.min(this.currentTime,A)/x;let _=Math.floor(Y),U=Y%1;!U&&Y>=1&&(U=1),U===1&&_--,_=Math.min(_,T+1),!!(_%2)&&(M==="reverse"?(U=1-U,E&&(U-=E/x)):M==="mirror"&&(R=f)),F=nx(0,1,U)*x}const V=P?{done:!1,value:b[0]}:R.next(F);p&&(V.value=p(V.value));let{done:Q}=V;!P&&y!==null&&(Q=this.speed>=0?this.currentTime>=A:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return $&&l!==void 0&&(V.value=IX(b,this.options,l)),D&&D(V.value),$&&this.finish(),V}get duration(){const{resolved:r}=this;return r?X8(r.calculatedDuration):0}get time(){return X8(this.currentTime)}set time(r){r=K8(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const i=this.playbackSpeed!==r;this.playbackSpeed=r,i&&(this.time=X8(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=zIn,onPlay:i,startTime:o}=this.options;this.driver||(this.driver=r(h=>this.tick(h))),i&&i();const l=this.driver.now();this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=l):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const QIn=new Set(["opacity","clipPath","filter","transform"]);function VIn(n,r,i,{delay:o=0,duration:l=300,repeat:h=0,repeatType:f="loop",ease:p="easeInOut",times:b}={}){const y={[r]:i};b&&(y.offset=b);const A=rKe(p,l);return Array.isArray(A)&&(y.easing=A),n.animate(y,{delay:o,duration:l,easing:Array.isArray(A)?"linear":A,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"})}const $In=Bme(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),NX=10,GIn=2e4;function YIn(n){return SX(n.type)||n.type==="spring"||!nKe(n.ease)}function UIn(n,r){const i=new Xme({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const l=[];let h=0;for(;!o.done&&h<GIn;)o=i.sample(h),l.push(o.value),h+=NX;return{times:void 0,keyframes:l,duration:h-NX,ease:"linear"}}const _Ke={anticipate:lKe,backInOut:cKe,circInOut:hKe};function JIn(n){return n in _Ke}class QKe extends IKe{constructor(r){super(r);const{name:i,motionValue:o,element:l,keyframes:h}=this.options;this.resolver=new SKe(h,(f,p)=>this.onKeyframesResolved(f,p),i,o,l),this.resolver.scheduleResolve()}initPlayback(r,i){let{duration:o=300,times:l,ease:h,type:f,motionValue:p,name:b,startTime:y}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof h=="string"&&MX()&&JIn(h)&&(h=_Ke[h]),YIn(this.options)){const{onComplete:x,onUpdate:C,motionValue:T,element:M,...E}=this.options,D=UIn(r,E);r=D.keyframes,r.length===1&&(r[1]=r[0]),o=D.duration,l=D.times,h=D.ease,f="keyframes"}const A=VIn(p.owner.current,b,r,{...this.options,duration:o,times:l,ease:h});return A.startTime=y??this.calcStartTime(),this.pendingTimeline?(eKe(A,this.pendingTimeline),this.pendingTimeline=void 0):A.onfinish=()=>{const{onComplete:x}=this.options;p.set(IX(r,this.options,i)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:A,duration:o,times:l,type:f,ease:h,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:i}=r;return X8(i)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:i}=r;return X8(i.currentTime||0)}set time(r){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.currentTime=K8(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:i}=r;return i.playbackRate}set speed(r){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:i}=r;return i.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:i}=r;return i.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:i}=this;if(!i)return Ip;const{animation:o}=i;eKe(o,r)}return Ip}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playState==="finished"&&this.updateFinishedPromise(),i.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:i,keyframes:o,duration:l,type:h,ease:f,times:p}=r;if(i.playState==="idle"||i.playState==="finished")return;if(this.time){const{motionValue:y,onUpdate:A,onComplete:x,element:C,...T}=this.options,M=new Xme({...T,keyframes:o,duration:l,type:h,ease:f,times:p,isGenerator:!0}),E=K8(this.time);y.setWithVelocity(M.sample(E-NX).value,M.sample(E).value,NX)}const{onStop:b}=this.options;b&&b(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:i,name:o,repeatDelay:l,repeatType:h,damping:f,type:p}=r;if(!i||!i.owner||!(i.owner.current instanceof HTMLElement))return!1;const{onUpdate:b,transformTemplate:y}=i.owner.getProps();return $In()&&o&&QIn.has(o)&&!b&&!y&&!l&&h!=="mirror"&&f!==0&&p!=="inertia"}}const WIn={type:"spring",stiffness:500,damping:25,restSpeed:10},qIn=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),ZIn={type:"keyframes",duration:.8},KIn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XIn=(n,{keyframes:r})=>r.length>2?ZIn:EN.has(n)?n.startsWith("scale")?qIn(r[1]):WIn:KIn;function eEn({when:n,delay:r,delayChildren:i,staggerChildren:o,staggerDirection:l,repeat:h,repeatType:f,repeatDelay:p,from:b,elapsed:y,...A}){return!!Object.keys(A).length}const ebe=(n,r,i,o={},l,h)=>f=>{const p=Dme(o,n)||{},b=p.delay||o.delay||0;let{elapsed:y=0}=o;y=y-K8(b);let A={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:r.getVelocity(),...p,delay:-y,onUpdate:C=>{r.set(C),p.onUpdate&&p.onUpdate(C)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:r,element:h?void 0:l};eEn(p)||(A={...A,...XIn(n,A)}),A.duration&&(A.duration=K8(A.duration)),A.repeatDelay&&(A.repeatDelay=K8(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let x=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(A.duration=0,A.delay===0&&(x=!0)),x&&!h&&r.get()!==void 0){const C=IX(A.keyframes,p);if(C!==void 0)return nu.update(()=>{A.onUpdate(C),A.onComplete()}),new XZe([])}return!h&&QKe.supports(A)?new QKe(A):new Xme(A)};function VKe(n,r,i){const o=d2(n)?n:MH(n);return o.start(ebe("",o,r,i)),o.animation}const tbe=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tEn="data-"+tbe("framerAppearId");function $Ke(n){return n.props[tEn]}const{schedule:nEn}=OZe(queueMicrotask,!1);function GKe(n){return n instanceof SVGElement&&n.tagName!=="svg"}const rEn=(n,r)=>n.depth-r.depth;class iEn{constructor(){this.children=[],this.isDirty=!1}add(r){Nme(this.children,r),this.isDirty=!0}remove(r){TX(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(rEn),this.isDirty=!1,this.children.forEach(r)}}function aEn(n,r){const i=i6.now(),o=({timestamp:l})=>{const h=l-i;h>=r&&(q8(o),n(h-r))};return nu.read(o,!0),()=>q8(o)}const oEn=n=>Array.isArray(n),sEn=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),cEn=n=>oEn(n)?n[n.length-1]||0:n;function nbe(n){const r=d2(n)?n.get():n;return sEn(r)?r.toValue():r}const YKe=["TopLeft","TopRight","BottomLeft","BottomRight"],lEn=YKe.length,UKe=n=>typeof n=="string"?parseFloat(n):n,JKe=n=>typeof n=="number"||fo.test(n);function uEn(n,r,i,o,l,h){l?(n.opacity=uf(0,i.opacity!==void 0?i.opacity:1,hEn(o)),n.opacityExit=uf(r.opacity!==void 0?r.opacity:1,0,fEn(o))):h&&(n.opacity=uf(r.opacity!==void 0?r.opacity:1,i.opacity!==void 0?i.opacity:1,o));for(let f=0;f<lEn;f++){const p=`border${YKe[f]}Radius`;let b=WKe(r,p),y=WKe(i,p);if(b===void 0&&y===void 0)continue;b||(b=0),y||(y=0),b===0||y===0||JKe(b)===JKe(y)?(n[p]=Math.max(uf(UKe(b),UKe(y),o),0),(Z8.test(y)||Z8.test(b))&&(n[p]+="%")):n[p]=y}(r.rotate||i.rotate)&&(n.rotate=uf(r.rotate||0,i.rotate||0,o))}function WKe(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const hEn=qKe(0,.5,uKe),fEn=qKe(.5,.95,Ip);function qKe(n,r,i){return o=>o<n?0:o>r?1:i(IH(n,r,o))}function ZKe(n,r){n.min=r.min,n.max=r.max}function I4(n,r){ZKe(n.x,r.x),ZKe(n.y,r.y)}function KKe(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function rbe(n){return n===void 0||n===1}function ibe({scale:n,scaleX:r,scaleY:i}){return!rbe(n)||!rbe(r)||!rbe(i)}function fS(n){return ibe(n)||XKe(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function XKe(n){return eXe(n.x)||eXe(n.y)}function eXe(n){return n&&n!=="0%"}function OX(n,r,i){const o=n-i,l=r*o;return i+l}function tXe(n,r,i,o,l){return l!==void 0&&(n=OX(n,l,o)),OX(n,i,o)+r}function abe(n,r=0,i=1,o,l){n.min=tXe(n.min,r,i,o,l),n.max=tXe(n.max,r,i,o,l)}function nXe(n,{x:r,y:i}){abe(n.x,r.translate,r.scale,r.originPoint),abe(n.y,i.translate,i.scale,i.originPoint)}const rXe=.999999999999,iXe=1.0000000000001;function dEn(n,r,i,o=!1){const l=i.length;if(!l)return;r.x=r.y=1;let h,f;for(let p=0;p<l;p++){h=i[p],f=h.projectionDelta;const{visualElement:b}=h.options;b&&b.props.style&&b.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&DN(n,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(r.x*=f.x.scale,r.y*=f.y.scale,nXe(n,f)),o&&fS(h.latestValues)&&DN(n,h.latestValues))}r.x<iXe&&r.x>rXe&&(r.x=1),r.y<iXe&&r.y>rXe&&(r.y=1)}function BX(n,r){n.min=n.min+r,n.max=n.max+r}function aXe(n,r,i,o,l=.5){const h=uf(n.min,n.max,l);abe(n,r,i,h,o)}function DN(n,r){aXe(n.x,r.x,r.scaleX,r.scale,r.originX),aXe(n.y,r.y,r.scaleY,r.scale,r.originY)}const oXe=1e-4,gEn=1-oXe,pEn=1+oXe,sXe=.01,mEn=0-sXe,bEn=0+sXe;function E4(n){return n.max-n.min}function vEn(n,r,i){return Math.abs(n-r)<=i}function cXe(n,r,i,o=.5){n.origin=o,n.originPoint=uf(r.min,r.max,n.origin),n.scale=E4(i)/E4(r),n.translate=uf(i.min,i.max,n.origin)-n.originPoint,(n.scale>=gEn&&n.scale<=pEn||isNaN(n.scale))&&(n.scale=1),(n.translate>=mEn&&n.translate<=bEn||isNaN(n.translate))&&(n.translate=0)}function DH(n,r,i,o){cXe(n.x,r.x,i.x,o?o.originX:void 0),cXe(n.y,r.y,i.y,o?o.originY:void 0)}function lXe(n,r,i){n.min=i.min+r.min,n.max=n.min+E4(r)}function yEn(n,r,i){lXe(n.x,r.x,i.x),lXe(n.y,r.y,i.y)}function uXe(n,r,i){n.min=r.min-i.min,n.max=n.min+E4(r)}function NH(n,r,i){uXe(n.x,r.x,i.x),uXe(n.y,r.y,i.y)}function hXe(n,r,i,o,l){return n-=r,n=OX(n,1/i,o),l!==void 0&&(n=OX(n,1/l,o)),n}function wEn(n,r=0,i=1,o=.5,l,h=n,f=n){if(Z8.test(r)&&(r=parseFloat(r),r=uf(f.min,f.max,r/100)-f.min),typeof r!="number")return;let p=uf(h.min,h.max,o);n===h&&(p-=r),n.min=hXe(n.min,r,i,p,l),n.max=hXe(n.max,r,i,p,l)}function fXe(n,r,[i,o,l],h,f){wEn(n,r[i],r[o],r[l],r.scale,h,f)}const AEn=["x","scaleX","originX"],xEn=["y","scaleY","originY"];function dXe(n,r,i,o){fXe(n.x,r,AEn,i?i.x:void 0,o?o.x:void 0),fXe(n.y,r,xEn,i?i.y:void 0,o?o.y:void 0)}const gXe=()=>({translate:0,scale:1,origin:0,originPoint:0}),NN=()=>({x:gXe(),y:gXe()}),pXe=()=>({min:0,max:0}),Th=()=>({x:pXe(),y:pXe()});function mXe(n){return n.translate===0&&n.scale===1}function bXe(n){return mXe(n.x)&&mXe(n.y)}function vXe(n,r){return n.min===r.min&&n.max===r.max}function kEn(n,r){return vXe(n.x,r.x)&&vXe(n.y,r.y)}function yXe(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function wXe(n,r){return yXe(n.x,r.x)&&yXe(n.y,r.y)}function AXe(n){return E4(n.x)/E4(n.y)}function xXe(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class CEn{constructor(){this.members=[]}add(r){Nme(this.members,r),r.scheduleRender()}remove(r){if(TX(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(r){const i=this.members.findIndex(l=>r===l);if(i===0)return!1;let o;for(let l=i;l>=0;l--){const h=this.members[l];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(r,i){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,i&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:l}=r.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:i,resumingFrom:o}=r;i.onExitComplete&&i.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TEn(n,r,i){let o="";const l=n.x.translate/r.x,h=n.y.translate/r.y,f=(i==null?void 0:i.z)||0;if((l||h||f)&&(o=`translate3d(${l}px, ${h}px, ${f}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),i){const{transformPerspective:y,rotate:A,rotateX:x,rotateY:C,skewX:T,skewY:M}=i;y&&(o=`perspective(${y}px) ${o}`),A&&(o+=`rotate(${A}deg) `),x&&(o+=`rotateX(${x}deg) `),C&&(o+=`rotateY(${C}deg) `),T&&(o+=`skewX(${T}deg) `),M&&(o+=`skewY(${M}deg) `)}const p=n.x.scale*r.x,b=n.y.scale*r.y;return(p!==1||b!==1)&&(o+=`scale(${p}, ${b})`),o||"none"}function kXe(n){return[n("x"),n("y")]}const obe=["","X","Y","Z"],SEn={visibility:"hidden"},CXe=1e3;let MEn=0;function sbe(n,r,i,o){const{latestValues:l}=r;l[n]&&(i[n]=l[n],r.setStaticValue(n,0),o&&(o[n]=0))}function TXe(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const i=$Ke(r);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:h}=n.options;window.MotionCancelOptimisedAnimation(i,"transform",nu,!(l||h))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&TXe(o)}function SXe({attachResizeListener:n,defaultParent:r,measureScroll:i,checkIsScrollRoot:o,resetTransform:l}){return class{constructor(f={},p=r==null?void 0:r()){this.id=MEn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LEn),this.nodes.forEach(PEn),this.nodes.forEach(jEn),this.nodes.forEach(DEn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let b=0;b<this.path.length;b++)this.path[b].shouldResetTransform=!0;this.root===this&&(this.nodes=new iEn)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ome),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const b=this.eventHandlers.get(f);b&&b.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f,p=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=GKe(f),this.instance=f;const{layoutId:b,layout:y,visualElement:A}=this.options;if(A&&!A.current&&A.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),p&&(y||b)&&(this.isLayoutDirty=!0),n){let x;const C=()=>this.root.updateBlockedByResize=!1;n(f,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=aEn(C,250),xX.hasAnimatedSinceResize&&(xX.hasAnimatedSinceResize=!1,this.nodes.forEach(IXe))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&A&&(b||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:C,hasRelativeLayoutChanged:T,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||A.getDefaultTransition()||_En,{onLayoutAnimationStart:D,onLayoutAnimationComplete:O}=A.getProps(),P=!this.targetLayout||!wXe(this.targetLayout,M),F=!C&&T;if(this.options.layoutRoot||this.resumeFrom||F||C&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,F);const R={...Dme(E,"layout"),onPlay:D,onComplete:O};(A.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else C||IXe(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q8(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(FEn),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&TXe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){const x=this.path[A];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:b}=this.options;if(p===void 0&&!b)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(MXe);return}this.isUpdating||this.nodes.forEach(OEn),this.isUpdating=!1,this.nodes.forEach(BEn),this.nodes.forEach(IEn),this.nodes.forEach(EEn),this.clearAllSnapshots();const p=i6.now();I1.delta=nx(0,1e3/60,p-I1.timestamp),I1.timestamp=p,I1.isProcessing=!0,kme.update.process(I1),kme.preRender.process(I1),kme.render.process(I1),I1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nEn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NEn),this.sharedNodes.forEach(REn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nu.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!E4(this.snapshot.measuredBox.x)&&!E4(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let b=0;b<this.path.length;b++)this.path[b].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Th(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p){const b=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:b,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!bXe(this.projectionDelta),b=this.getTransformTemplate(),y=b?b(this.latestValues,""):void 0,A=y!==this.prevTransformTemplateValue;f&&(p||fS(this.latestValues)||A)&&(l(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let b=this.removeElementScroll(p);return f&&(b=this.removeTransform(b)),QEn(b),{animationId:this.root.animationId,measuredBox:p,layoutBox:b,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:p}=this.options;if(!p)return Th();const b=p.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(VEn))){const{scroll:A}=this.root;A&&(BX(b.x,A.offset.x),BX(b.y,A.offset.y))}return b}removeElementScroll(f){var p;const b=Th();if(I4(b,f),!((p=this.scroll)===null||p===void 0)&&p.wasRoot)return b;for(let y=0;y<this.path.length;y++){const A=this.path[y],{scroll:x,options:C}=A;A!==this.root&&x&&C.layoutScroll&&(x.wasRoot&&I4(b,f),BX(b.x,x.offset.x),BX(b.y,x.offset.y))}return b}applyTransform(f,p=!1){const b=Th();I4(b,f);for(let y=0;y<this.path.length;y++){const A=this.path[y];!p&&A.options.layoutScroll&&A.scroll&&A!==A.root&&DN(b,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),fS(A.latestValues)&&DN(b,A.latestValues)}return fS(this.latestValues)&&DN(b,this.latestValues),b}removeTransform(f){const p=Th();I4(p,f);for(let b=0;b<this.path.length;b++){const y=this.path[b];if(!y.instance||!fS(y.latestValues))continue;ibe(y.latestValues)&&y.updateSnapshot();const A=Th(),x=y.measurePageBox();I4(A,x),dXe(p,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,A)}return fS(this.latestValues)&&dXe(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var p;const b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==b;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((p=this.parent)===null||p===void 0)&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:C}=this.options;if(!(!this.layout||!(x||C))){if(this.resolvedRelativeTargetAt=I1.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Th(),this.relativeTargetOrigin=Th(),NH(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),I4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Th(),this.targetWithTransforms=Th()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yEn(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I4(this.target,this.layout.layoutBox),nXe(this.target,this.targetDelta)):I4(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Th(),this.relativeTargetOrigin=Th(),NH(this.relativeTargetOrigin,this.target,T.target),I4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ibe(this.parent.latestValues)||XKe(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var f;const p=this.getLead(),b=!!this.resumingFrom||this!==p;let y=!0;if((this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty)&&(y=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===I1.timestamp&&(y=!1),y)return;const{layout:A,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(A||x))return;I4(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,T=this.treeScale.y;dEn(this.layoutCorrected,this.treeScale,this.path,b),p.layout&&!p.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(p.target=p.layout.layoutBox,p.targetWithTransforms=Th());const{target:M}=p;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(KKe(this.prevProjectionDelta.x,this.projectionDelta.x),KKe(this.prevProjectionDelta.y,this.projectionDelta.y)),DH(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==C||this.treeScale.y!==T||!xXe(this.projectionDelta.x,this.prevProjectionDelta.x)||!xXe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)===null||p===void 0||p.scheduleRender(),f){const b=this.getStack();b&&b.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=NN(),this.projectionDelta=NN(),this.projectionDeltaWithTransform=NN()}setAnimationOrigin(f,p=!1){const b=this.snapshot,y=b?b.latestValues:{},A={...this.latestValues},x=NN();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const C=Th(),T=b?b.source:void 0,M=this.layout?this.layout.source:void 0,E=T!==M,D=this.getStack(),O=!D||D.members.length<=1,P=!!(E&&!O&&this.options.crossfade===!0&&!this.path.some(HEn));this.animationProgress=0;let F;this.mixTargetDelta=R=>{const V=R/1e3;EXe(x.x,f.x,V),EXe(x.y,f.y,V),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(NH(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zEn(this.relativeTarget,this.relativeTargetOrigin,C,V),F&&kEn(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=Th()),I4(F,this.relativeTarget)),E&&(this.animationValues=A,uEn(A,y,this.latestValues,V,P,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q8(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nu.update(()=>{xX.hasAnimatedSinceResize=!0,this.currentAnimation=VKe(0,CXe,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(CXe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:b,layout:y,latestValues:A}=f;if(!(!p||!b||!y)){if(this!==f&&this.layout&&y&&BXe(this.options.animationType,this.layout.layoutBox,y.layoutBox)){b=this.target||Th();const x=E4(this.layout.layoutBox.x);b.x.min=f.target.x.min,b.x.max=b.x.min+x;const C=E4(this.layout.layoutBox.y);b.y.min=f.target.y.min,b.y.max=b.y.min+C}I4(p,b),DN(p,A),DH(this.projectionDeltaWithTransform,this.layoutCorrected,p,A)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new CEn),this.sharedNodes.get(f).add(p);const y=p.options.initialPromotionConfig;p.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:b}={}){const y=this.getStack();y&&y.promote(this,b),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:b}=f;if((b.z||b.rotate||b.rotateX||b.rotateY||b.rotateZ||b.skewX||b.skewY)&&(p=!0),!p)return;const y={};b.z&&sbe("z",f,y,this.animationValues);for(let A=0;A<obe.length;A++)sbe(`rotate${obe[A]}`,f,y,this.animationValues),sbe(`skew${obe[A]}`,f,y,this.animationValues);f.render();for(const A in y)f.setStaticValue(A,y[A]),this.animationValues&&(this.animationValues[A]=y[A]);f.scheduleRender()}getProjectionStyles(f){var p,b;if(!this.instance||this.isSVG)return;if(!this.isVisible)return SEn;const y={visibility:""},A=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=nbe(f==null?void 0:f.pointerEvents)||"",y.transform=A?A(this.latestValues,""):"none",y;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=nbe(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!fS(this.latestValues)&&(E.transform=A?A({},""):"none",this.hasProjected=!1),E}const C=x.animationValues||x.latestValues;this.applyTransformsToTarget(),y.transform=TEn(this.projectionDeltaWithTransform,this.treeScale,C),A&&(y.transform=A(C,y.transform));const{x:T,y:M}=this.projectionDelta;y.transformOrigin=`${T.origin*100}% ${M.origin*100}% 0`,x.animationValues?y.opacity=x===this?(b=(p=C.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&b!==void 0?b:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:y.opacity=x===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const E in vH){if(C[E]===void 0)continue;const{correct:D,applyTo:O,isCSSVariable:P}=vH[E],F=y.transform==="none"?C[E]:D(C[E],x);if(O){const R=O.length;for(let V=0;V<R;V++)y[O[V]]=F}else P?this.options.visualElement.renderState.vars[E]=F:y[E]=F}return this.options.layoutId&&(y.pointerEvents=x===this?nbe(f==null?void 0:f.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(MXe),this.root.sharedNodes.clear()}}}function IEn(n){n.updateLayout()}function EEn(n){var r;const i=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:l}=n.layout,{animationType:h}=n.options,f=i.source!==n.layout.source;h==="size"?kXe(x=>{const C=f?i.measuredBox[x]:i.layoutBox[x],T=E4(C);C.min=o[x].min,C.max=C.min+T}):BXe(h,i.layoutBox,o)&&kXe(x=>{const C=f?i.measuredBox[x]:i.layoutBox[x],T=E4(o[x]);C.max=C.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+T)});const p=NN();DH(p,o,i.layoutBox);const b=NN();f?DH(b,n.applyTransform(l,!0),i.measuredBox):DH(b,o,i.layoutBox);const y=!bXe(p);let A=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:C,layout:T}=x;if(C&&T){const M=Th();NH(M,i.layoutBox,C.layoutBox);const E=Th();NH(E,o,T.layoutBox),wXe(M,E)||(A=!0),x.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=M,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:b,layoutDelta:p,hasLayoutChanged:y,hasRelativeLayoutChanged:A})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function LEn(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function DEn(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function NEn(n){n.clearSnapshot()}function MXe(n){n.clearMeasurements()}function OEn(n){n.isLayoutDirty=!1}function BEn(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function IXe(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function PEn(n){n.resolveTargetDelta()}function jEn(n){n.calcProjection()}function FEn(n){n.resetSkewAndRotation()}function REn(n){n.removeLeadSnapshot()}function EXe(n,r,i){n.translate=uf(r.translate,0,i),n.scale=uf(r.scale,1,i),n.origin=r.origin,n.originPoint=r.originPoint}function LXe(n,r,i,o){n.min=uf(r.min,i.min,o),n.max=uf(r.max,i.max,o)}function zEn(n,r,i,o){LXe(n.x,r.x,i.x,o),LXe(n.y,r.y,i.y,o)}function HEn(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const _En={duration:.45,ease:[.4,0,.1,1]},DXe=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),NXe=DXe("applewebkit/")&&!DXe("chrome/")?Math.round:Ip;function OXe(n){n.min=NXe(n.min),n.max=NXe(n.max)}function QEn(n){OXe(n.x),OXe(n.y)}function BXe(n,r,i){return n==="position"||n==="preserve-aspect"&&!vEn(AXe(r),AXe(i),.2)}function VEn(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}function $En(n,r,i,o={passive:!0}){return n.addEventListener(r,i,o),()=>n.removeEventListener(r,i)}const GEn=SXe({attachResizeListener:(n,r)=>$En(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cbe={current:void 0},YEn=SXe({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!cbe.current){const n=new GEn({});n.mount(window),n.setOptions({layoutScroll:!0}),cbe.current=n}return cbe.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"});function PXe(n){if(n)return n.options.allowProjection!==!1?n.projection:PXe(n.parent)}function OH(n){return typeof n=="object"&&n!==null&&"nodeType"in n}const lbe=new WeakMap,[UEn,pYr]=bX("AnimatePresenceContext");class JEn extends r6{constructor(r){super(r),TZe(QZe)}initProjection(){const r=this.state.options;this.state.visualElement.projection=new YEn(this.state.visualElement.latestValues,r["data-framer-portal-id"]?void 0:PXe(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const r=this.state.options;this.state.visualElement.projection.setOptions({layout:r.layout,layoutId:r.layoutId,alwaysMeasureLayout:!!r.drag||r.dragConstraints&&OH(r.dragConstraints),visualElement:this.state.visualElement,animationType:typeof r.layout=="string"?r.layout:"both",layoutRoot:r.layoutRoot,layoutScroll:r.layoutScroll,crossfade:r.crossfade,onExitComplete:()=>{var i;if(!((i=this.state.visualElement.projection)!=null&&i.isPresent)){const o=lbe.get(this.state.element);this.state.isSafeToRemove=!0,o&&o({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var r;(r=this.state.visualElement.projection)==null||r.mount(this.state.element)}}class WEn extends r6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.state.element.matches(":focus-visible")}catch{r=!0}r&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=SH(kX(this.state.element,"focus",()=>this.onFocus()),kX(this.state.element,"blur",()=>this.onBlur()))}}const qEn={y:!1};function ZEn(){return qEn.y}function ube(n,r,i){var o;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let l=document;const h=(o=i==null?void 0:i[n])!==null&&o!==void 0?o:l.querySelectorAll(n);return h?Array.from(h):[]}return Array.from(n)}function jXe(n,r){const i=ube(n),o=new AbortController,l={passive:!0,...r,signal:o.signal};return[i,l,()=>o.abort()]}function FXe(n){return!(n.pointerType==="touch"||ZEn())}function KEn(n,r,i={}){const[o,l,h]=jXe(n,i),f=p=>{if(!FXe(p))return;const{target:b}=p,y=r(b,p);if(typeof y!="function"||!b)return;const A=x=>{FXe(x)&&(y(x),b.removeEventListener("pointerleave",A))};b.addEventListener("pointerleave",A,l)};return o.forEach(p=>{p.addEventListener("pointerenter",f,l)}),h}function RXe(n,r){const i=`${r}PointerCapture`;if(n.target instanceof Element&&i in n.target&&n.pointerId!==void 0)try{n.target[i](n.pointerId)}catch{}}const zXe=(n,r)=>r?n===r?!0:zXe(n,r.parentElement):!1,XEn=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,eLn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tLn(n){return eLn.has(n.tagName)||n.tabIndex!==-1}const BH=new WeakSet;function HXe(n){return r=>{r.key==="Enter"&&n(r)}}function hbe(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const nLn=(n,r)=>{const i=n.currentTarget;if(!i)return;const o=HXe(()=>{if(BH.has(i))return;hbe(i,"down");const l=HXe(()=>{hbe(i,"up")}),h=()=>hbe(i,"cancel");i.addEventListener("keyup",l,r),i.addEventListener("blur",h,r)});i.addEventListener("keydown",o,r),i.addEventListener("blur",()=>i.removeEventListener("keydown",o),r)};function _Xe(n){return XEn(n)&&!0}function rLn(n,r,i={}){const[o,l,h]=jXe(n,i),f=p=>{const b=p.currentTarget;if(!b||!_Xe(p)||BH.has(b))return;BH.add(b),RXe(p,"set");const y=r(b,p),A=(T,M)=>{b.removeEventListener("pointerup",x),b.removeEventListener("pointercancel",C),RXe(T,"release"),!(!_Xe(T)||!BH.has(b))&&(BH.delete(b),typeof y=="function"&&y(T,{success:M}))},x=T=>{(T.isTrusted?iLn(T,b instanceof Element?b.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?A(T,!1):A(T,!(b instanceof Element)||zXe(b,T.target))},C=T=>{A(T,!1)};b.addEventListener("pointerup",x,l),b.addEventListener("pointercancel",C,l),b.addEventListener("lostpointercapture",C,l)};return o.forEach(p=>{p=i.useGlobalTarget?window:p;let b=!1;p instanceof HTMLElement&&(b=!0,!tLn(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0)),p.addEventListener("pointerdown",f,l),b&&p.addEventListener("focus",y=>nLn(y,l),l)}),h}function iLn(n,r){return n.clientX<r.left||n.clientX>r.right||n.clientY<r.top||n.clientY>r.bottom}function QXe(n){return{point:{x:n.pageX,y:n.pageY}}}function VXe(n,r,i){const o=n.options;o.whilePress&&n.setActive("whilePress",i==="Start");const l=`onPress${i==="End"?"":i}`,h=o[l];h&&nu.postRender(()=>h(r,QXe(r)))}class aLn extends r6{isActive(){return!!this.state.options.press}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=rLn(r,(i,o)=>(VXe(this.state,o,"Start"),(l,{success:h})=>VXe(this.state,l,h?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function $Xe(n,r,i){const o=n.options;o.whileHover&&n.setActive("whileHover",i==="Start");const l=`onHover${i}`,h=o[l];h&&nu.postRender(()=>h(r,QXe(r)))}class oLn extends r6{isActive(){return!!this.state.getOptions().whileHover}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=KEn(r,(i,o)=>($Xe(this.state,o,"Start"),l=>{$Xe(this.state,l,"End")})))}}const sLn={some:0,all:1};function cLn(n,r,{root:i,margin:o,amount:l="some"}={}){const h=ube(n),f=new WeakMap,p=y=>{y.forEach(A=>{const x=f.get(A.target);if(A.isIntersecting!==!!x)if(A.isIntersecting){const C=r(A.target,A);typeof C=="function"?f.set(A.target,C):b.unobserve(A.target)}else typeof x=="function"&&(x(A),f.delete(A.target))})},b=new IntersectionObserver(p,{root:i,rootMargin:o,threshold:typeof l=="number"?l:sLn[l]});return h.forEach(y=>b.observe(y)),()=>b.disconnect()}function GXe(n,r,i){const o=n.options;o.whileInView&&n.setActive("whileInView",i==="Enter");const l=`onViewport${i}`,h=o[l];h&&nu.postRender(()=>h(r))}class lLn extends r6{isActive(){return!!this.state.getOptions().whileInView}constructor(r){super(r)}startObserver(){const r=this.state.element;if(!r)return;this.unmount();const{once:i,...o}=this.state.getOptions().inViewOptions||{};this.unmount=cLn(r,(l,h)=>{if(GXe(this.state,h,"Enter"),!i)return f=>{GXe(this.state,h,"Leave")}},o)}mount(){this.startObserver()}update(){const{props:r,prevProps:i}=this.state.visualElement;["amount","margin","root"].some(uLn(r,i))&&this.startObserver()}}function uLn({inViewOptions:n={}},{inViewOptions:r={}}={}){return i=>n[i]!==r[i]}function YXe(n){let r=null;return()=>{const i=()=>{r=null};return r===null?(r=n,i):!1}}const UXe=YXe("dragHorizontal"),JXe=YXe("dragVertical");function hLn(n){let r=!1;if(n==="y")r=JXe();else if(n==="x")r=UXe();else{const i=UXe(),o=JXe();i&&o?r=()=>{i(),o()}:(i&&i(),o&&o())}return r}function fbe(n){return n.max-n.min}function fLn(n,r,i){return i>r?r:i<n?n:i}function PX(n,r,i){return n+(r-n)*i}function WXe(n,r,i){const o=r-n;return o===0?1:(i-n)/o}function dLn(n,{min:r,max:i},o){return r!==void 0&&n<r?n=o?PX(r,n,o.min):Math.max(n,r):i!==void 0&&n>i&&(n=o?PX(i,n,o.max):Math.min(n,i)),n}const dbe=.35;function gLn(n,{top:r,left:i,bottom:o,right:l}){return{x:qXe(n.x,i,l),y:qXe(n.y,r,o)}}function qXe(n,r,i){return{min:r!==void 0?n.min+r:void 0,max:i!==void 0?n.max+i-(n.max-n.min):void 0}}function pLn(n=dbe){return n===!1?n=0:n===!0&&(n=dbe),{x:ZXe(n,"left","right"),y:ZXe(n,"top","bottom")}}function ZXe(n,r,i){return{min:KXe(n,r),max:KXe(n,i)}}function KXe(n,r){return typeof n=="number"?n:n[r]||0}function mLn(n,r){const i={};return r.min!==void 0&&(i.min=r.min-n.min),r.max!==void 0&&(i.max=r.max-n.min),i}function bLn(n,r){return{x:XXe(n.x,r.x),y:XXe(n.y,r.y)}}function XXe(n,r){let i=r.min-n.min,o=r.max-n.max;return r.max-r.min<n.max-n.min&&([i,o]=[o,i]),{min:i,max:o}}function vLn(n,r){let i=.5;const o=fbe(n),l=fbe(r);return l>o?i=WXe(r.min,r.max-o,n.min):o>l&&(i=WXe(n.min,n.max-l,r.min)),fLn(0,1,i)}const eet=()=>({min:0,max:0});function yLn(){return{x:eet(),y:eet()}}function a6(n){return[n("x"),n("y")]}function wLn(n){return{test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}}const ALn=wLn("%");function xLn(n){return!!(yX(n)&&n.add)}function tet(n,r){const i=n.getValue("willChange");if(xLn(i))return i.add(r)}function net({top:n,left:r,right:i,bottom:o}){return{x:{min:r,max:i},y:{min:n,max:o}}}function kLn(n,r){if(!r)return n;const i=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function CLn({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function ret(n,r){n.min=n.min+r,n.max=n.max+r}function TLn(n,r){return net(kLn(n.getBoundingClientRect(),r))}function SLn(n,r,i){const o=TLn(n,i),{scroll:l}=r;return l&&(ret(o.x,l.offset.x),ret(o.y,l.offset.y)),o}function iet(n){return!lbe.has(n.current)}const MLn=new WeakMap;class ILn{constructor(r){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yLn(),this.visualElement=r}start(r,{snapToCursor:i=!1}={}){if(!iet(this.visualElement))return;const o=y=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Ime(y,"page").point)},l=(y,A)=>{const{drag:x,dragPropagation:C,onDragStart:T}=this.getProps();if(x&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hLn(x),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),a6(E=>{let D=this.getAxisMotionValue(E).get()||0;if(ALn.test(D)){const{projection:O}=this.visualElement;if(O&&O.layout){const P=O.layout.layoutBox[E];P&&(D=fbe(P)*(parseFloat(D)/100))}}this.originPoint[E]=D}),T&&nu.postRender(()=>T(y,A)),tet(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},h=(y,A)=>{const{dragPropagation:x,dragDirectionLock:C,onDirectionLock:T,onDrag:M}=this.getProps();if(!x&&!this.openGlobalLock)return;const{offset:E}=A;if(C&&this.currentDirection===null){this.currentDirection=ELn(E),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",A.point,E),this.updateAxis("y",A.point,E),this.visualElement.render(),M&&M(y,A)},f=(y,A)=>this.stop(y,A),p=()=>a6(y=>{var A;return this.getAnimationState(y)==="paused"&&((A=this.getAxisMotionValue(y).animation)==null?void 0:A.play())}),{dragSnapToOrigin:b}=this.getProps();this.panSession=new GZe(r,{onSessionStart:o,onStart:l,onMove:h,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,contextWindow:JZe(this.visualElement)})}stop(r,i){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:h}=this.getProps();h&&nu.postRender(()=>h(r,i))}cancel(){this.isDragging=!1;const{projection:r,animationState:i}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(r,i,o){const{drag:l}=this.getProps();if(!o||!jX(r,l,this.currentDirection))return;const h=this.getAxisMotionValue(r);let f=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(f=dLn(f,this.constraints[r],this.elastic[r])),h.set(f)}resolveConstraints(){var r;const{dragConstraints:i,dragElastic:o}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,h=this.constraints;i&&OH(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&l?this.constraints=gLn(l.layoutBox,i):this.constraints=!1,this.elastic=pLn(o),h!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&a6(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=mLn(l.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:i}=this.getProps();if(!r||!OH(r))return!1;const o=r,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const h=SLn(o,l.root,this.visualElement.getTransformPagePoint());let f=bLn(l.layout.layoutBox,h);if(i){const p=i(CLn(f));this.hasMutatedConstraints=!!p,p&&(f=net(p))}return f}startAnimation(r){const{drag:i,dragMomentum:o,dragElastic:l,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),b=this.constraints||{},y=a6(A=>{if(!jX(A,i,this.currentDirection))return;let x=b&&b[A]||{};f&&(x={min:0,max:0});const C=l?200:1e6,T=l?40:1e7,M={type:"inertia",velocity:o?r[A]:0,bounceStiffness:C,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(A,M)});return Promise.all(y).then(p)}startAxisValueAnimation(r,i){const o=this.getAxisMotionValue(r);return tet(this.visualElement,r),o.start(ebe(r,o,0,i,this.visualElement,!1))}stopAnimation(){iet(this.visualElement)&&a6(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){a6(r=>{var i;return(i=this.getAxisMotionValue(r).animation)==null?void 0:i.pause()})}getAnimationState(r){var i;return(i=this.getAxisMotionValue(r).animation)==null?void 0:i.state}getAxisMotionValue(r){const i=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[i]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){a6(i=>{const{drag:o}=this.getProps();if(!jX(i,o,this.currentDirection))return;const{projection:l}=this.visualElement,h=this.getAxisMotionValue(i);if(l&&l.layout){const{min:f,max:p}=l.layout.layoutBox[i];h.set(r[i]-PX(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!OH(i)||!o||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};a6(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const b=p.get();l[f]=vLn({min:b,max:b},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),a6(f=>{if(!jX(f,r,null))return;const p=this.getAxisMotionValue(f),{min:b,max:y}=this.constraints[f];p.set(PX(b,y,l[f]))})}addListeners(){if(!this.visualElement.current)return;MLn.set(this.visualElement,this);const r=this.visualElement.current,i=TH(r,"pointerdown",b=>{const{drag:y,dragListener:A=!0}=this.getProps();y&&A&&this.start(b)}),o=()=>{const{dragConstraints:b}=this.getProps();OH(b)&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,h=l.addEventListener("measure",o);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),nu.read(o);const f=kX(window,"resize",()=>this.scalePositionWithinConstraints()),p=l.addEventListener("didUpdate",({delta:b,hasLayoutChanged:y})=>{this.isDragging&&y&&(a6(A=>{const x=this.getAxisMotionValue(A);x&&(this.originPoint[A]+=b[A].translate,x.set(x.get()+b[A].translate))}),this.visualElement.render())});return()=>{f(),i(),h(),p&&p()}}getProps(){const r=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:o=!1,dragPropagation:l=!1,dragConstraints:h=!1,dragElastic:f=dbe,dragMomentum:p=!0}=r;return{...r,drag:i,dragDirectionLock:o,dragPropagation:l,dragConstraints:h,dragElastic:f,dragMomentum:p}}}function jX(n,r,i){return(r===!0||r===n)&&(i===null||i===n)}function ELn(n,r=10){let i=null;return Math.abs(n.y)>r?i="y":Math.abs(n.x)>r&&(i="x"),i}class LLn extends r6{constructor(r){super(r),this.removeGroupControls=Ip,this.removeListeners=Ip,this.controls=new ILn(r.visualElement)}mount(){const{dragControls:r}=this.state.options;r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ip}unmount(){this.removeGroupControls(),this.removeListeners()}}class DLn{constructor(r){this.features=[],this.features=[new oLn(r),new aLn(r),new lLn(r),new mMn(r),new DMn(r),new JEn(r),new zMn(r),new LLn(r),new WEn(r),new HMn(r)]}mount(){this.features.forEach(r=>r.mount())}beforeMount(){this.features.forEach(r=>{var i;return(i=r.beforeMount)==null?void 0:i.call(r)})}unmount(){this.features.forEach(r=>r.unmount())}update(){this.features.forEach(r=>{var i;return(i=r.update)==null?void 0:i.call(r)})}beforeUpdate(){this.features.forEach(r=>r.beforeUpdate())}beforeUnmount(){this.features.forEach(r=>r.beforeUnmount())}}function NLn({top:n,left:r,right:i,bottom:o}){return{x:{min:r,max:i},y:{min:n,max:o}}}function OLn(n,r){if(!r)return n;const i=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function BLn(n,r){return NLn(OLn(n.getBoundingClientRect(),r))}const aet={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gbe={};for(const n in aet)gbe[n]={isEnabled:r=>aet[n].some(i=>!!r[i])};const PLn=typeof window<"u",pbe={current:null},oet={current:!1};function jLn(){if(oet.current=!0,!!PLn)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>pbe.current=n.matches;n.addListener(r),r()}else pbe.current=!1}const FLn=[...CKe,f2,rx],RLn=n=>FLn.find(kKe(n));function zLn(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function HLn(n){return typeof n=="string"||Array.isArray(n)}const _Ln=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function set(n){return zLn(n.animate)||_Ln.some(r=>HLn(n[r]))}function QLn(n){return!!(set(n)||n.variants)}function VLn(n,r,i){for(const o in r){const l=r[o],h=i[o];if(d2(l))n.addValue(o,l);else if(d2(h))n.addValue(o,MH(l,{owner:n}));else if(h!==l)if(n.hasValue(o)){const f=n.getValue(o);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=n.getStaticValue(o);n.addValue(o,MH(f!==void 0?f:l,{owner:n}))}}for(const o in i)r[o]===void 0&&n.removeValue(o);return r}function cet(n){const r=[{},{}];return n==null||n.values.forEach((i,o)=>{r[0][o]=i.get(),r[1][o]=i.getVelocity()}),r}function uet(n,r,i,o){if(typeof r=="function"){const[l,h]=cet(o);r=r(i!==void 0?i:n.custom,l,h)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[l,h]=cet(o);r=r(i!==void 0?i:n.custom,l,h)}return r}const het=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fet{scrapeMotionValuesFromProps(r,i,o){return{}}constructor({parent:r,props:i,presenceContext:o,reducedMotionConfig:l,blockInitialAnimation:h,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$me,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=i6.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,nu.render(this.render,!1,!0))};const{latestValues:b,renderState:y,onUpdate:A}=f;this.onUpdate=A,this.latestValues=b,this.baseTarget={...b},this.initialValues=i.initial?{...b}:{},this.renderState=y,this.parent=r,this.props=i,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=l,this.options=p,this.blockInitialAnimation=!!h,this.isControllingVariants=set(i),this.isVariantNode=QLn(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:x,...C}=this.scrapeMotionValuesFromProps(i,{},this);for(const T in C){const M=C[T];b[T]!==void 0&&d2(M)&&M.set(b[T],!1)}}mount(r){this.current=r,lS.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),oet.current||jLn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pbe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),q8(this.notifyUpdate),q8(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const i=this.features[r];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(r,i){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=EN.has(r);o&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",p=>{this.latestValues[r]=p,this.props.onUpdate&&nu.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),h=i.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,r,i)),this.valueSubscriptions.set(r,()=>{l(),h(),f&&f(),i.owner&&i.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in gbe){const i=gbe[r];if(!i)continue;const{isEnabled:o,Feature:l}=i;if(!this.features[r]&&l&&o(this.props)&&(this.features[r]=new l(this)),this.features[r]){const h=this.features[r];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Th()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,i){this.latestValues[r]=i}update(r,i){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let o=0;o<het.length;o++){const l=het[o];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const h="on"+l,f=r[h];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=VLn(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(r),()=>i.variantChildren.delete(r)}addValue(r,i){const o=this.values.get(r);i!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,i),this.values.set(r,i),this.latestValues[r]=i.get())}removeValue(r){this.values.delete(r);const i=this.valueSubscriptions.get(r);i&&(i(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,i){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&i!==void 0&&(o=MH(i===null?void 0:i,{owner:this}),this.addValue(r,o)),o}readValue(r,i){var o;let l=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return l!=null&&(typeof l=="string"&&(AKe(l)||fKe(l))?l=parseFloat(l):!RLn(l)&&rx.test(i)&&(l=pKe(r,i)),this.setBaseTarget(r,d2(l)?l.get():l)),d2(l)?l.get():l}setBaseTarget(r,i){this.baseTarget[r]=i}getBaseTarget(r){var i;const{initial:o}=this.props;let l;if(typeof o=="string"||typeof o=="object"){const f=uet(this.props,o,(i=this.presenceContext)===null||i===void 0?void 0:i.custom);f&&(l=f[r])}if(o&&l!==void 0)return l;const h=this.getBaseTargetFromProps(this.props,r);return h!==void 0&&!d2(h)?h:this.initialValues[r]!==void 0&&l===void 0?void 0:this.baseTarget[r]}on(r,i){return this.events[r]||(this.events[r]=new Ome),this.events[r].add(i)}notify(r,...i){this.events[r]&&this.events[r].notify(...i)}}class det extends fet{constructor(){super(...arguments),this.KeyframeResolver=SKe}sortInstanceNodePosition(r,i){return r.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(r,i){return r.style?r.style[i]:void 0}removeValueFromRenderState(r,{vars:i,style:o}){delete i[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;d2(r)&&(this.childSubscription=r.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}const get=(n,r)=>r&&typeof n=="number"?r.transform(n):n,$Ln={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GLn=IN.length;function YLn(n,r,i){let o="",l=!0;for(let h=0;h<GLn;h++){const f=IN[h],p=n[f];if(p===void 0)continue;let b=!0;if(typeof p=="number"?b=p===(f.startsWith("scale")?1:0):b=parseFloat(p)===0,!b||i){const y=get(p,Hme[f]);if(!b){l=!1;const A=$Ln[f]||f;o+=`${A}(${y}) `}i&&(r[f]=y)}}return o=o.trim(),i?o=i(r,l?"":o):l&&(o="none"),o}function pet(n,r,i){const{style:o,vars:l,transformOrigin:h}=n;let f=!1,p=!1;for(const b in r){const y=r[b];if(EN.has(b)){f=!0;continue}else if(wme(b)){l[b]=y;continue}else{const A=get(y,Hme[b]);b.startsWith("origin")?(p=!0,h[b]=A):o[b]=A}}if(r.transform||(f||i?o.transform=YLn(r,n.transform,i):o.transform&&(o.transform="none")),p){const{originX:b="50%",originY:y="50%",originZ:A=0}=h;o.transformOrigin=`${b} ${y} ${A}`}}function met(n,{style:r,vars:i},o,l){Object.assign(n.style,r,l&&l.getProjectionStyles(o));for(const h in i)n.style.setProperty(h,i[h])}function ULn(n,{layout:r,layoutId:i}){return EN.has(n)||n.startsWith("origin")||(r||i!==void 0)&&(!!vH[n]||n==="opacity")}function bet(n,r,i){var o;const{style:l}=n,h={};for(const f in l)(d2(l[f])||r.style&&d2(r.style[f])||ULn(f,n)||((o=i==null?void 0:i.getValue(f))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(h[f]=l[f]);return h}function JLn(n){return window.getComputedStyle(n)}class vet extends det{constructor(){super(...arguments),this.type="html",this.renderInstance=met}readValueFromInstance(r,i){if(EN.has(i)){const o=_me(i);return o&&o.default||0}else{const o=JLn(r),l=(wme(i)?o.getPropertyValue(i):o[i])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(r,{transformPagePoint:i}){return BLn(r,i)}build(r,i,o){pet(r,i,o.transformTemplate)}scrapeMotionValuesFromProps(r,i,o){return bet(r,i,o)}}const WLn={offset:"stroke-dashoffset",array:"stroke-dasharray"},qLn={offset:"strokeDashoffset",array:"strokeDasharray"};function ZLn(n,r,i=1,o=0,l=!0){n.pathLength=1;const h=l?WLn:qLn;n[h.offset]=fo.transform(-o);const f=fo.transform(r),p=fo.transform(i);n[h.array]=`${f} ${p}`}function yet(n,r,i){return typeof n=="string"?n:fo.transform(r+i*n)}function KLn(n,r,i){const o=yet(r,n.x,n.width),l=yet(i,n.y,n.height);return`${o} ${l}`}function XLn(n,{attrX:r,attrY:i,attrScale:o,originX:l,originY:h,pathLength:f,pathSpacing:p=1,pathOffset:b=0,...y},A,x){if(pet(n,y,x),A){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:C,style:T,dimensions:M}=n;C.transform&&(M&&(T.transform=C.transform),delete C.transform),M&&(l!==void 0||h!==void 0||T.transform)&&(T.transformOrigin=KLn(M,l!==void 0?l:.5,h!==void 0?h:.5)),r!==void 0&&(C.x=r),i!==void 0&&(C.y=i),o!==void 0&&(C.scale=o),f!==void 0&&ZLn(C,f,p,b,!1)}const wet=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eDn=n=>typeof n=="string"&&n.toLowerCase()==="svg";function tDn(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}function nDn(n,r,i,o){met(n,r,void 0,o);for(const l in r.attrs)n.setAttribute(wet.has(l)?l:tbe(l),r.attrs[l])}function rDn(n,r,i){const o=bet(n,r,i);for(const l in n)if(d2(n[l])||d2(r[l])){const h=IN.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;o[h]=n[l]}return o}class Aet extends det{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Th,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&tDn(this.current,this.renderState)}}getBaseTargetFromProps(r,i){return r[i]}readValueFromInstance(r,i){if(EN.has(i)){const o=_me(i);return o&&o.default||0}return i=wet.has(i)?i:tbe(i),r.getAttribute(i)}scrapeMotionValuesFromProps(r,i,o){return rDn(r,i,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&nu.postRender(this.updateDimensions)}build(r,i,o){XLn(r,i,this.isSVGTag,o.transformTemplate)}renderInstance(r,i,o,l){nDn(r,i,o,l)}mount(r){this.isSVGTag=eDn(r.tagName),super.mount(r)}}function iDn(n,r){return qSn(n)?new Aet(r):new vet(r)}function xet(n,r,i){return new CustomEvent(n,{detail:{target:r,isExit:i}})}function aDn(n,r=100,i){const o=i({...n,keyframes:[0,r]}),l=Math.min(Gme(o),EX);return{type:"keyframes",ease:h=>o.next(l*h).value/r,duration:X8(l)}}const oDn=(n,r,i)=>{const o=r-n;return((i-n)%o+o)%o+n};function ket(n,r){return FKe(n)?n[oDn(0,n.length,r)]:n}function mbe(n){return typeof n=="object"&&!Array.isArray(n)}function Cet(n,r,i,o){return typeof n=="string"&&mbe(r)?ube(n,i,o):n instanceof NodeList?Array.from(n):Array.isArray(n)?n:[n]}function sDn(n,r,i){return n*(r+1)}function Tet(n,r,i,o){var l;return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,n+parseFloat(r)):r==="<"?i:(l=o.get(r))!==null&&l!==void 0?l:n}function cDn(n,r,i){for(let o=0;o<n.length;o++){const l=n[o];l.at>r&&l.at<i&&(TX(n,l),o--)}}function lDn(n,r,i,o,l,h){cDn(n,l,h);for(let f=0;f<r.length;f++)n.push({value:r[f],at:uf(l,h,o[f]),easing:ket(i,f)})}function uDn(n,r){for(let i=0;i<n.length;i++)n[i]=n[i]/(r+1)}function hDn(n,r){return n.at===r.at?n.value===null?1:r.value===null?-1:0:n.at-r.at}const fDn="easeInOut";function dDn(n,{defaultTransition:r={},...i}={},o,l){const h=r.duration||.3,f=new Map,p=new Map,b={},y=new Map;let A=0,x=0,C=0;for(let T=0;T<n.length;T++){const M=n[T];if(typeof M=="string"){y.set(M,x);continue}else if(!Array.isArray(M)){y.set(M.name,Tet(x,M.at,A,y));continue}let[E,D,O={}]=M;O.at!==void 0&&(x=Tet(x,O.at,A,y));let P=0;const F=(R,V,Q,$=0,Y=0)=>{const _=gDn(R),{delay:U=0,times:H=HKe(_),type:W="keyframes",repeat:z,repeatType:ee,repeatDelay:X=0,...se}=V;let{ease:re=r.ease||"easeOut",duration:ce}=V;const ue=typeof U=="function"?U($,Y):U,oe=_.length,ge=SX(W)?W:l==null?void 0:l[W];if(oe<=2&&ge){let Me=100;if(oe===2&&bDn(_)){const je=_[1]-_[0];Me=Math.abs(je)}const Ie={...se};ce!==void 0&&(Ie.duration=K8(ce));const Oe=aDn(Ie,Me,ge);re=Oe.ease,ce=Oe.duration}ce??(ce=h);const ve=x+ue;H.length===1&&H[0]===0&&(H[1]=1);const ie=H.length-_.length;if(ie>0&&zKe(H,ie),_.length===1&&_.unshift(null),z){ce=sDn(ce,z);const Me=[..._],Ie=[...H];re=Array.isArray(re)?[...re]:[re];const Oe=[...re];for(let je=0;je<z;je++){_.push(...Me);for(let Ae=0;Ae<Me.length;Ae++)H.push(Ie[Ae]+(je+1)),re.push(Ae===0?"linear":ket(Oe,Ae-1))}uDn(H,z)}const Ne=ve+ce;lDn(Q,_,re,H,ve,Ne),P=Math.max(ue+ce,P),C=Math.max(Ne,C)};if(d2(E)){const R=Met(E,p);F(D,O,Iet("default",R))}else{const R=Cet(E,D,o,b),V=R.length;for(let Q=0;Q<V;Q++){D=D,O=O;const $=R[Q],Y=Met($,p);for(const _ in D)F(D[_],pDn(O,_),Iet(_,Y),Q,V)}}A=x,x+=P}return p.forEach((T,M)=>{for(const E in T){const D=T[E];D.sort(hDn);const O=[],P=[],F=[];for(let V=0;V<D.length;V++){const{at:Q,value:$,easing:Y}=D[V];O.push($),P.push(IH(0,C,Q)),F.push(Y||"easeOut")}P[0]!==0&&(P.unshift(0),O.unshift(O[0]),F.unshift(fDn)),P[P.length-1]!==1&&(P.push(1),O.push(null)),f.has(M)||f.set(M,{keyframes:{},transition:{}});const R=f.get(M);R.keyframes[E]=O,R.transition[E]={...r,duration:C,ease:F,times:P,...i}}}),f}function Met(n,r){return!r.has(n)&&r.set(n,{}),r.get(n)}function Iet(n,r){return r[n]||(r[n]=[]),r[n]}function gDn(n){return Array.isArray(n)?n:[n]}function pDn(n,r){return n&&n[r]?{...n,...n[r]}:{...n}}const mDn=n=>typeof n=="number",bDn=n=>n.every(mDn);function vDn(n,r,i){const o=n.getProps();return uet(o,r,o.custom,n)}function yDn(n,r,i){n.hasValue(r)?n.getValue(r).set(i):n.addValue(r,MH(i))}function wDn(n,r){const i=vDn(n,r);let{transitionEnd:o={},transition:l={},...h}=i||{};h={...h,...o};for(const f in h){const p=cEn(h[f]);yDn(n,f,p)}}function ADn(n){return!!(d2(n)&&n.add)}function xDn(n,r){const i=n.getValue("willChange");if(ADn(i))return i.add(r)}function kDn({protectedKeys:n,needsAnimating:r},i){const o=n.hasOwnProperty(i)&&r[i]!==!0;return r[i]=!1,o}function CDn(n,r,{delay:i=0,transitionOverride:o,type:l}={}){var h;let{transition:f=n.getDefaultTransition(),transitionEnd:p,...b}=r;o&&(f=o);const y=[],A=l&&n.animationState&&n.animationState.getState()[l];for(const x in b){const C=n.getValue(x,(h=n.latestValues[x])!==null&&h!==void 0?h:null),T=b[x];if(T===void 0||A&&kDn(A,x))continue;const M={delay:i,...Dme(f||{},x)};let E=!1;if(window.MotionHandoffAnimation){const O=$Ke(n);if(O){const P=window.MotionHandoffAnimation(O,x,nu);P!==null&&(M.startTime=P,E=!0)}}xDn(n,x),C.start(ebe(x,C,T,n.shouldReduceMotion&&dKe.has(x)?{type:!1}:M,n,E));const D=C.animation;D&&y.push(D)}return p&&Promise.all(y).then(()=>{nu.update(()=>{p&&wDn(n,p)})}),y}function TDn(n,r){return n in r}class SDn extends fet{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,i){if(TDn(i,r)){const o=r[i];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,i){delete i.output[r]}measureInstanceViewportBox(){return Th()}build(r,i){Object.assign(r.output,i)}renderInstance(r,{output:i}){Object.assign(r,i)}sortInstanceNodePosition(){return 0}}function MDn(n){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=GKe(n)?new Aet(r):new vet(r);i.mount(n),lS.set(n,i)}function IDn(n){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},i=new SDn(r);i.mount(n),lS.set(n,i)}function EDn(n,r){return d2(n)||typeof n=="number"||typeof n=="string"&&!mbe(r)}function Eet(n,r,i,o){const l=[];if(EDn(n,r))l.push(VKe(n,mbe(r)&&r.default||r,i&&(i.default||i)));else{const h=Cet(n,r,o),f=h.length;for(let p=0;p<f;p++){const b=h[p],y=b instanceof Element?MDn:IDn;lS.has(b)||y(b);const A=lS.get(b),x={...i};"delay"in x&&typeof x.delay=="function"&&(x.delay=x.delay(p,f)),l.push(...CDn(A,{...r,transition:x},{}))}}return l}function LDn(n,r,i){const o=[];return dDn(n,r,i,{spring:Kme}).forEach(({keyframes:h,transition:f},p)=>{o.push(...Eet(p,h,f))}),o}function DDn(n){return Array.isArray(n)&&n.some(Array.isArray)}function NDn(n){function r(i,o,l){let h=[];return DDn(i)?h=LDn(i,o,n):h=Eet(i,o,l,n),new XZe(h)}return r}const ODn=NDn(),BDn=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];function PDn({controlActiveState:n=void 0,controlDelay:r=0,directAnimate:i,directTransition:o,isFallback:l=!1,isExit:h=!1}={}){const f=this.target;this.target={...this.baseTarget};let p={};const b={...this.options.transition};i?p=jDn.call(this,i,o,p):p=FDn.call(this,n,b);const y=RDn.call(this,f,p,r),{getChildAnimations:A,childAnimations:x}=zDn.call(this,b,this.activeStates,l);return HDn.call(this,{factories:y,getChildAnimations:A,childAnimations:x,transition:b,controlActiveState:n,isExit:h})}function jDn(n,r){const i=yH(n,this.options.variants,this.options.custom);if(!i)return{};const o={...this.options.transition,...r||i.transition},l={};return Object.entries(i).forEach(([h,f])=>{h!=="transition"&&(this.target[h]=f,l[h]=SZe(o,h))}),l}function FDn(n,r){n&&(this.activeStates={...this.activeStates,...n});const i={};let o={},l={};return BDn.forEach(h=>{if(!this.activeStates[h]||qZe(this.options[h]))return;const f=this.options[h];let p=KSn(f)?yH(f,this.options.variants,this.options.custom):void 0;if(this.visualElement.isVariantNode){const b=yH(this.context[h],this.options.variants,this.options.custom);p=b?Object.assign(b||{},p):l}p&&(h!=="initial"&&(o=p.transition||this.options.transition),l=Object.assign(l,p))}),Object.assign(r,o),Object.entries(l).forEach(([h,f])=>{h!=="transition"&&(this.target[h]=f,i[h]=SZe(r,h))}),i}function RDn(n,r,i){const o=[];return Object.keys(this.target).forEach(l=>{var h;if(!$Sn(n[l],this.target[l]))return;(h=this.baseTarget)[l]??(h[l]=cMn.get(this.element,l));const f=this.target[l]==="none"?sMn[l]:this.target[l],p=r[l];o.push(()=>ODn(this.element,{[l]:f},{...p,delay:((p==null?void 0:p.delay)||0)+i}))}),o}function zDn(n,r,i){var o;if(!((o=this.visualElement.variantChildren)!=null&&o.size)||!r)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:l=0,staggerDirection:h=1,delayChildren:f=0}=n||{},p=(this.visualElement.variantChildren.size-1)*l,b=h===1?(A=0)=>A*l:(A=0)=>p-A*l,y=Array.from(this.visualElement.variantChildren).map((A,x)=>{const C=f+b(x);return A.state.animateUpdates({controlActiveState:r,controlDelay:i?0:C})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(y.map(A=>A==null?void 0:A())),childAnimations:y}}function HDn({factories:n,getChildAnimations:r,childAnimations:i,transition:o,controlActiveState:l,isExit:h=!1}){const f=()=>Promise.all(n.map(x=>x()).filter(Boolean)),p={...this.target},b=this.element,y=x=>{b.dispatchEvent(xet("motionstart",p)),x.then(()=>{b.dispatchEvent(xet("motioncomplete",p,h))}).catch(Ip)},A=()=>{const x=o!=null&&o.when?(o.when==="beforeChildren"?f():r()).then(()=>o.when==="beforeChildren"?r():f()):Promise.all([f(),r()]);return y(x),x};return l?A:A()}function _Dn(n){return typeof n=="string"||n===!1||Array.isArray(n)}const Let=new WeakMap;let QDn=0;const bbe=new Set;class VDn{constructor(r,i){var o;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=PDn,this.id=`motion-state-${QDn++}`,this.options=r,this.parent=i,(o=i==null?void 0:i.children)==null||o.add(this),this.depth=(i==null?void 0:i.depth)+1||0;const l=this.context.initial===!1?["initial","animate"]:["initial"];this.initTarget(l),this.visualElement=iDn(this.options.as,{presenceContext:null,parent:i==null?void 0:i.visualElement,props:{...this.options,whileHover:this.options.whileHover,whileTap:this.options.whilePress,whileInView:this.options.whileInView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.baseTarget}},reducedMotionConfig:r.motionConfig.reduceMotion}),this.featureManager=new DLn(this)}get context(){if(!this._context){const r={get:(i,o)=>{var l;return _Dn(this.options[o])?this.options[o]:(l=this.parent)==null?void 0:l.context[o]}};this._context=new Proxy({},r)}return this._context}initTarget(r){this.baseTarget=r.reduce((i,o)=>({...i,...yH(this.options[o]||this.context[o],this.options.variants)}),{}),this.target={}}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!lbe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(r,i,o=!1){this.element=r,this.options=i,Let.set(r,this),lS.get(r)||(this.visualElement.mount(r),lS.set(r,this.visualElement)),this.visualElement.state=this,this.updateOptions(),this.featureManager.mount(),!o&&this.options.animate&&this.startAnimation(),this.options.layoutId&&(bbe.add(this.options.layoutId),nu.render(()=>{bbe.clear()}))}clearAnimation(){var r;this.currentProcess&&q8(this.currentProcess),this.currentProcess=null,(r=this.visualElement.variantChildren)==null||r.forEach(i=>{i.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=nu.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(r=!1){const i=this.options.layoutId&&!bbe.has(this.options.layoutId);(()=>{r&&Array.from(this.children).reverse().forEach(this.unmountChild);const l=()=>{var h,f,p;(f=(h=this.parent)==null?void 0:h.children)==null||f.delete(this),Let.delete(this.element),this.featureManager.unmount(),(p=this.visualElement)==null||p.unmount()};i?Promise.resolve().then(l):l()})()}unmountChild(r){r.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(r){const i=ZSn(this.options,r);this.options=r,this.updateOptions(),this.featureManager.update(),i&&this.startAnimation()}setActive(r,i,o=!0){var l;!this.element||this.activeStates[r]===i||(this.activeStates[r]=i,(l=this.visualElement.variantChildren)==null||l.forEach(h=>{h.state.setActive(r,i,!1)}),o&&this.animateUpdates({isFallback:!i&&r!=="exit"&&this.visualElement.isControllingVariants,isExit:this.activeStates.exit}))}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(r){var i;(this.options.layout||this.options.layoutId)&&((i=this.visualElement.projection)==null||i.willUpdate())}}function FX(n){return(n==null?void 0:n.nodeType)===3||(n==null?void 0:n.nodeType)===8?FX(n.nextSibling):n}function $Dn(n){var r;const i=((r=FX(n.$el))==null?void 0:r.style.display)==="none";return n.$.vnode.transition&&i}const GDn={reduceMotion:"never",transition:void 0,nonce:void 0},[YDn,bYr]=bX("MotionConfig");function UDn(){return YDn(K.computed(()=>GDn))}const vbe=K.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:K.mergeDefaults({as:{},asChild:{type:Boolean},hover:{},press:{},inView:{},focus:{},whileDrag:{},whileHover:{},whilePress:{},whileInView:{},whileFocus:{},custom:{},initial:{type:[String,Array,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.5,dragMomentum:!0,whileDrag:void 0,crossfade:!0,whileHover:({hover:n})=>n,whilePress:({press:n})=>n,whileInView:({inView:n})=>n,whileFocus:({focus:n})=>n}),setup(n){const r=n,i=UEn({}),o=_Sn(null),l=K.useAttrs(),h=VSn({}),f=UDn();function p(){return h.id&&r.layoutId?`${h.id}-${r.layoutId}`:r.layoutId||void 0}function b(){return{...l,...r,layoutId:p(),transition:r.transition??f.value.transition,layoutGroup:h,motionConfig:f.value,inViewOptions:r.inViewOptions??f.value.inViewOptions,initial:i.initial===!1?i.initial:r.initial===!0?void 0:r.initial}}const y=new VDn(b(),o);QSn(y);const A=K.getCurrentInstance().proxy;K.onBeforeMount(()=>{y.beforeMount()}),K.onMounted(()=>{y.mount(FX(A.$el),b(),$Dn(A))}),K.onBeforeUnmount(()=>y.beforeUnmount()),K.onUnmounted(()=>{const M=FX(A.$el);M!=null&&M.isConnected||y.unmount()}),K.onBeforeUpdate(()=>{y.beforeUpdate()}),K.onUpdated(()=>{y.update(b())});function x(){const M=y.visualElement.type==="svg",E={...l};Object.keys(l).forEach(O=>{yX(l[O])&&(E[O]=l[O].get())});let D={...r.style,...M?{}:y.visualElement.latestValues};if(M){const{attributes:O,style:P}=uMn(y.isMounted()?y.target:y.baseTarget);Object.assign(E,O),Object.assign(D,P)}return r.drag&&r.dragListener!==!1&&Object.assign(D,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`}),D=lMn({...D,...r.style}),E.style=D,E}const C=K.ref();function T(M){var E,D;r.asChild&&((E=C.value)==null||E.$forceUpdate()),(D=l.onMotioncomplete)==null||D.call(l,M)}return(M,E)=>{var D;return K.openBlock(),K.createBlock(K.unref(fMn),{ref_key:"PrimitiveRef",ref:C,"get-props":x,as:M.as,"as-child":M.asChild,"data-motion-group":((D=K.unref(h).key)==null?void 0:D.value)||void 0,onMotioncomplete:T},{default:K.withCtx(()=>[K.renderSlot(M.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}}),Det=new Map,ybe=new Proxy(vbe,{get(n,r){if(typeof r=="symbol")return n[r];let i=Det.get(r);return r==="create"?o=>K.defineComponent({inheritAttrs:!1,name:`motion.${o.$name}`,setup(l,{attrs:h,slots:f}){return()=>K.h(vbe,{...h,as:o,asChild:!1},f)}}):(i||(i=K.defineComponent({inheritAttrs:!1,name:`motion.${r}`,setup(o,{attrs:l,slots:h}){return()=>K.h(vbe,{...l,as:r,asChild:!1},h)}}),Det.set(r,i)),i)}});function Net(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Function]"}function ON(n,r,i,o=1){const[l,h]=typeof o=="number"?[o,o]:o,f=Math.round(r/l/n[0])*n[0],p=Math.round(i/h/n[1])*n[1];return[f,p]}function wbe(n,r,i){return n-r-i}function Abe(n,r,i){return n-r-i}function L4(n,r,i){return r!==null&&n<r?r:i!==null&&i<n?i:n}function Oet(n,r,i){let o=n;const l=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(h=>Net(o[h]));if(!Net(o[l]))return!1;do{if(o[l](r))return!0;if(o===i)return!1;o=o.parentNode}while(o);return!1}function JDn(n){const r=window.getComputedStyle(n);return[parseFloat(r.getPropertyValue("width"),10),parseFloat(r.getPropertyValue("height"),10)]}function dS(n,r,i){n&&(n.attachEvent?n.attachEvent("on"+r,i):n.addEventListener?n.addEventListener(r,i,!0):n["on"+r]=i)}function eA(n,r,i){n&&(n.detachEvent?n.detachEvent("on"+r,i):n.removeEventListener?n.removeEventListener(r,i,!0):n["on"+r]=null)}const WDn=(n,r)=>{const i=n.__vccOpts||n;for(const[o,l]of r)i[o]=l;return i},RX={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},qDn={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},ZDn={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let tA=RX.mouse;const KDn={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},h:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},minWidth:{type:Number,default:0,validator:n=>n>=0},minHeight:{type:Number,default:0,validator:n=>n>=0},maxWidth:{type:Number,default:null,validator:n=>n>=0},maxHeight:{type:Number,default:null,validator:n=>n>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:n=>typeof n=="string"?n==="auto":n>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:n=>{const r=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(n.filter(i=>r.has(i))).size===n.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:n=>["x","y","both"].includes(n)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:n=>typeof n=="number"?n>0:n.length===2&&n[0]>0&&n[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r;const[i,o]=JDn(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:i)/(this.h!=="auto"?this.h:o),this.width=this.w!=="auto"?this.w:i,this.height=this.h!=="auto"?this.h:o,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),dS(document.documentElement,"mousedown",this.deselect),dS(document.documentElement,"touchend touchcancel",this.deselect),dS(window,"resize",this.checkParentSize)},beforeUnmount:function(){eA(document.documentElement,"mousedown",this.deselect),eA(document.documentElement,"touchstart",this.handleUp),eA(document.documentElement,"mousemove",this.move),eA(document.documentElement,"touchmove",this.move),eA(document.documentElement,"mouseup",this.handleUp),eA(document.documentElement,"touchend touchcancel",this.deselect),eA(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const n=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(n.getPropertyValue("width"),10),parseInt(n.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(n){tA=RX.touch,this.elementDown(n)},elementMouseDown(n){tA=RX.mouse,this.elementDown(n)},elementDown(n){if(n instanceof MouseEvent&&n.button!==0)return;const r=n.target||n.srcElement;if(this.$el.contains(r)){if(this.onDragStart(n)===!1)return;if(this.dragHandle&&!Oet(r,this.dragHandle,this.$el)||this.dragCancel&&Oet(r,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=n.touches?n.touches[0].pageX:n.pageX,this.mouseClickPosition.mouseY=n.touches?n.touches[0].pageY:n.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),dS(document.documentElement,tA.move,this.move),dS(document.documentElement,tA.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(n){const r=n.target||n.srcElement,i=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(r)&&!i.test(r.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),eA(document.documentElement,tA.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(n,r){tA=RX.touch,this.handleDown(n,r)},handleDown(n,r){r instanceof MouseEvent&&r.which!==1||this.onResizeStart(n,r)!==!1&&(r.stopPropagation&&r.stopPropagation(),this.lockAspectRatio&&!n.includes("m")?this.handle="m"+n.substring(1):this.handle=n,this.resizeEnable=!0,this.mouseClickPosition.mouseX=r.touches?r.touches[0].pageX:r.pageX,this.mouseClickPosition.mouseY=r.touches?r.touches[0].pageY:r.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),dS(document.documentElement,tA.move,this.handleResize),dS(document.documentElement,tA.stop,this.handleUp))},calcResizeLimits(){let n=this.minW,r=this.minH,i=this.maxW,o=this.maxH;const l=this.aspectFactor,[h,f]=this.grid,p=this.width,b=this.height,y=this.left,A=this.top,x=this.right,C=this.bottom;this.lockAspectRatio&&(n/r>l?r=n/l:n=l*r,i&&o?(i=Math.min(i,l*o),o=Math.min(o,i/l)):i?o=i/l:o&&(i=l*o)),i=i-i%h,o=o-o%f;const T={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(T.minLeft=y%h,T.maxLeft=y+Math.floor((p-n)/h)*h,T.minTop=A%f,T.maxTop=A+Math.floor((b-r)/f)*f,T.minRight=x%h,T.maxRight=x+Math.floor((p-n)/h)*h,T.minBottom=C%f,T.maxBottom=C+Math.floor((b-r)/f)*f,i&&(T.minLeft=Math.max(T.minLeft,this.parentWidth-x-i),T.minRight=Math.max(T.minRight,this.parentWidth-y-i)),o&&(T.minTop=Math.max(T.minTop,this.parentHeight-C-o),T.minBottom=Math.max(T.minBottom,this.parentHeight-A-o)),this.lockAspectRatio&&(T.minLeft=Math.max(T.minLeft,y-A*l),T.minTop=Math.max(T.minTop,A-y/l),T.minRight=Math.max(T.minRight,x-C*l),T.minBottom=Math.max(T.minBottom,C-x/l))):(T.minLeft=null,T.maxLeft=y+Math.floor((p-n)/h)*h,T.minTop=null,T.maxTop=A+Math.floor((b-r)/f)*f,T.minRight=null,T.maxRight=x+Math.floor((p-n)/h)*h,T.minBottom=null,T.maxBottom=C+Math.floor((b-r)/f)*f,i&&(T.minLeft=-(x+i),T.minRight=-(y+i)),o&&(T.minTop=-(C+o),T.minBottom=-(A+o)),this.lockAspectRatio&&i&&o&&(T.minLeft=Math.min(T.minLeft,-(x+i)),T.minTop=Math.min(T.minTop,-(o+C)),T.minRight=Math.min(T.minRight,-y-i),T.minBottom=Math.min(T.minBottom,-A-o))),T},move(n){this.resizing?this.handleResize(n):this.dragEnable&&this.handleDrag(n)},handleDrag(n){const r=this.axis,i=this.grid,o=this.bounds,l=this.mouseClickPosition,h=r&&r!=="y"?l.mouseX-(n.touches?n.touches[0].pageX:n.pageX):0,f=r&&r!=="x"?l.mouseY-(n.touches?n.touches[0].pageY:n.pageY):0,[p,b]=ON(i,h,f,this.scale),y=L4(l.left-p,o.minLeft,o.maxLeft),A=L4(l.top-b,o.minTop,o.maxTop);if(this.onDrag(y,A)===!1)return;const x=L4(l.right+p,o.minRight,o.maxRight),C=L4(l.bottom+b,o.minBottom,o.maxBottom);this.left=y,this.top=A,this.right=x,this.bottom=C,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(n){const[r,i]=ON(this.grid,n,this.top,1),o=L4(r,this.bounds.minLeft,this.bounds.maxLeft);this.left=o,this.right=this.parentWidth-this.width-o},moveVertically(n){const[r,i]=ON(this.grid,this.left,n,1),o=L4(i,this.bounds.minTop,this.bounds.maxTop);this.top=o,this.bottom=this.parentHeight-this.height-o},handleResize(n){let r=this.left,i=this.top,o=this.right,l=this.bottom;const h=this.mouseClickPosition,f=this.aspectFactor,p=h.mouseX-(n.touches?n.touches[0].pageX:n.pageX),b=h.mouseY-(n.touches?n.touches[0].pageY:n.pageY);!this.widthTouched&&p&&(this.widthTouched=!0),!this.heightTouched&&b&&(this.heightTouched=!0);const[y,A]=ON(this.grid,p,b,this.scale);this.handle.includes("b")?(l=L4(h.bottom+A,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(o=this.right-(this.bottom-l)*f)):this.handle.includes("t")&&(i=L4(h.top-A,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(r=this.left-(this.top-i)*f)),this.handle.includes("r")?(o=L4(h.right+y,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(l=this.bottom-(this.right-o)/f)):this.handle.includes("l")&&(r=L4(h.left-y,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(i=this.top-(this.left-r)/f));const x=wbe(this.parentWidth,r,o),C=Abe(this.parentHeight,i,l);this.onResize(this.handle,r,i,x,C)!==!1&&(this.left=r,this.top=i,this.right=o,this.bottom=l,this.width=x,this.height=C,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(n){const[r,i]=ON(this.grid,n,0,1),o=L4(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight);let l=this.bottom;this.lockAspectRatio&&(l=this.bottom-(this.right-o)/this.aspectFactor);const h=wbe(this.parentWidth,this.left,o),f=Abe(this.parentHeight,this.top,l);this.right=o,this.bottom=l,this.width=h,this.height=f},changeHeight(n){const[r,i]=ON(this.grid,0,n,1),o=L4(this.parentHeight-i-this.top,this.bounds.minBottom,this.bounds.maxBottom);let l=this.right;this.lockAspectRatio&&(l=this.right-(this.bottom-o)*this.aspectFactor);const h=wbe(this.parentWidth,this.left,l),f=Abe(this.parentHeight,this.top,o);this.right=l,this.bottom=o,this.width=h,this.height=f},handleUp(n){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),eA(document.documentElement,tA.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?qDn:ZDn}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(n){this.enabled=n,n?this.$emit("activated"):this.$emit("deactivated")},z(n){(n>=0||n==="auto")&&(this.zIndex=n)},x(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(n))},y(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(n))},lockAspectRatio(n){n?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(n))},h(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(n))}}},XDn=["onMousedown","onTouchstart"];function eNn(n,r,i,o,l,h){return K.openBlock(),K.createElementBlock("div",{style:K.normalizeStyle(h.style),class:K.normalizeClass([{[i.classNameActive]:n.enabled,[i.classNameDragging]:n.dragging,[i.classNameResizing]:n.resizing,[i.classNameDraggable]:i.draggable,[i.classNameResizable]:i.resizable},i.className]),onMousedown:r[0]||(r[0]=(...f)=>h.elementMouseDown&&h.elementMouseDown(...f)),onTouchstart:r[1]||(r[1]=(...f)=>h.elementTouchDown&&h.elementTouchDown(...f))},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(h.actualHandles,f=>(K.openBlock(),K.createElementBlock("div",{key:f,class:K.normalizeClass([i.classNameHandle,i.classNameHandle+"-"+f]),style:K.normalizeStyle({display:n.enabled?"block":"none"}),onMousedown:K.withModifiers(p=>h.handleDown(f,p),["stop","prevent"]),onTouchstart:K.withModifiers(p=>h.handleTouchDown(f,p),["stop","prevent"])},[K.renderSlot(n.$slots,f)],46,XDn))),128)),K.renderSlot(n.$slots,"default")],38)}const xbe=WDn(KDn,[["render",eNn]]);function kbe(n){kbe.installed||(kbe.installed=!0,n.component("VueDraggableResizable",xbe))}const tNn={install:kbe};let zX=null;typeof window<"u"?zX=window.Vue:typeof global<"u"&&(zX=global.Vue),zX&&zX.use(tNn);const Cbe="data:image/png;base64,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";var nNn="tippy-box",Bet="tippy-content",rNn="tippy-backdrop",Pet="tippy-arrow",jet="tippy-svg-arrow",gS={passive:!0,capture:!0},Fet=function(){return document.body};function Tbe(n,r,i){if(Array.isArray(n)){var o=n[r];return o??(Array.isArray(i)?i[r]:i)}return n}function Sbe(n,r){var i={}.toString.call(n);return i.indexOf("[object")===0&&i.indexOf(r+"]")>-1}function Ret(n,r){return typeof n=="function"?n.apply(void 0,r):n}function zet(n,r){if(r===0)return n;var i;return function(o){clearTimeout(i),i=setTimeout(function(){n(o)},r)}}function iNn(n){return n.split(/\s+/).filter(Boolean)}function BN(n){return[].concat(n)}function Het(n,r){n.indexOf(r)===-1&&n.push(r)}function aNn(n){return n.filter(function(r,i){return n.indexOf(r)===i})}function oNn(n){return n.split("-")[0]}function HX(n){return[].slice.call(n)}function _et(n){return Object.keys(n).reduce(function(r,i){return n[i]!==void 0&&(r[i]=n[i]),r},{})}function PH(){return document.createElement("div")}function _X(n){return["Element","Fragment"].some(function(r){return Sbe(n,r)})}function sNn(n){return Sbe(n,"NodeList")}function cNn(n){return Sbe(n,"MouseEvent")}function lNn(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function uNn(n){return _X(n)?[n]:sNn(n)?HX(n):Array.isArray(n)?n:HX(document.querySelectorAll(n))}function Mbe(n,r){n.forEach(function(i){i&&(i.style.transitionDuration=r+"ms")})}function Qet(n,r){n.forEach(function(i){i&&i.setAttribute("data-state",r)})}function hNn(n){var r,i=BN(n),o=i[0];return o!=null&&(r=o.ownerDocument)!=null&&r.body?o.ownerDocument:document}function fNn(n,r){var i=r.clientX,o=r.clientY;return n.every(function(l){var h=l.popperRect,f=l.popperState,p=l.props,b=p.interactiveBorder,y=oNn(f.placement),A=f.modifiersData.offset;if(!A)return!0;var x=y==="bottom"?A.top.y:0,C=y==="top"?A.bottom.y:0,T=y==="right"?A.left.x:0,M=y==="left"?A.right.x:0,E=h.top-o+x>b,D=o-h.bottom-C>b,O=h.left-i+T>b,P=i-h.right-M>b;return E||D||O||P})}function Ibe(n,r,i){var o=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(l){n[o](l,i)})}function Vet(n,r){for(var i=r;i;){var o;if(n.contains(i))return!0;i=i.getRootNode==null||(o=i.getRootNode())==null?void 0:o.host}return!1}var o6={isTouch:!1},$et=0;function dNn(){o6.isTouch||(o6.isTouch=!0,window.performance&&document.addEventListener("mousemove",Get))}function Get(){var n=performance.now();n-$et<20&&(o6.isTouch=!1,document.removeEventListener("mousemove",Get)),$et=n}function gNn(){var n=document.activeElement;if(lNn(n)){var r=n._tippy;n.blur&&!r.state.isVisible&&n.blur()}}function pNn(){document.addEventListener("touchstart",dNn,gS),window.addEventListener("blur",gNn)}var mNn=typeof window<"u"&&typeof document<"u",bNn=mNn?!!window.msCrypto:!1,vNn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},yNn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},H3=Object.assign({appendTo:Fet,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},vNn,yNn),wNn=Object.keys(H3),ANn=function(r){var i=Object.keys(r);i.forEach(function(o){H3[o]=r[o]})};function Yet(n){var r=n.plugins||[],i=r.reduce(function(o,l){var h=l.name,f=l.defaultValue;if(h){var p;o[h]=n[h]!==void 0?n[h]:(p=H3[h])!=null?p:f}return o},{});return Object.assign({},n,i)}function xNn(n,r){var i=r?Object.keys(Yet(Object.assign({},H3,{plugins:r}))):wNn,o=i.reduce(function(l,h){var f=(n.getAttribute("data-tippy-"+h)||"").trim();if(!f)return l;if(h==="content")l[h]=f;else try{l[h]=JSON.parse(f)}catch{l[h]=f}return l},{});return o}function Uet(n,r){var i=Object.assign({},r,{content:Ret(r.content,[n])},r.ignoreAttributes?{}:xNn(n,r.plugins));return i.aria=Object.assign({},H3.aria,i.aria),i.aria={expanded:i.aria.expanded==="auto"?r.interactive:i.aria.expanded,content:i.aria.content==="auto"?r.interactive?null:"describedby":i.aria.content},i}var kNn=function(){return"innerHTML"};function Ebe(n,r){n[kNn()]=r}function Jet(n){var r=PH();return n===!0?r.className=Pet:(r.className=jet,_X(n)?r.appendChild(n):Ebe(r,n)),r}function Wet(n,r){_X(r.content)?(Ebe(n,""),n.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?Ebe(n,r.content):n.textContent=r.content)}function Lbe(n){var r=n.firstElementChild,i=HX(r.children);return{box:r,content:i.find(function(o){return o.classList.contains(Bet)}),arrow:i.find(function(o){return o.classList.contains(Pet)||o.classList.contains(jet)}),backdrop:i.find(function(o){return o.classList.contains(rNn)})}}function qet(n){var r=PH(),i=PH();i.className=nNn,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var o=PH();o.className=Bet,o.setAttribute("data-state","hidden"),Wet(o,n.props),r.appendChild(i),i.appendChild(o),l(n.props,n.props);function l(h,f){var p=Lbe(r),b=p.box,y=p.content,A=p.arrow;f.theme?b.setAttribute("data-theme",f.theme):b.removeAttribute("data-theme"),typeof f.animation=="string"?b.setAttribute("data-animation",f.animation):b.removeAttribute("data-animation"),f.inertia?b.setAttribute("data-inertia",""):b.removeAttribute("data-inertia"),b.style.maxWidth=typeof f.maxWidth=="number"?f.maxWidth+"px":f.maxWidth,f.role?b.setAttribute("role",f.role):b.removeAttribute("role"),(h.content!==f.content||h.allowHTML!==f.allowHTML)&&Wet(y,n.props),f.arrow?A?h.arrow!==f.arrow&&(b.removeChild(A),b.appendChild(Jet(f.arrow))):b.appendChild(Jet(f.arrow)):A&&b.removeChild(A)}return{popper:r,onUpdate:l}}qet.$$tippy=!0;var CNn=1,QX=[],Dbe=[];function TNn(n,r){var i=Uet(n,Object.assign({},H3,Yet(_et(r)))),o,l,h,f=!1,p=!1,b=!1,y=!1,A,x,C,T=[],M=zet(qe,i.interactiveDebounce),E,D=CNn++,O=null,P=aNn(i.plugins),F={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},R={id:D,reference:n,popper:PH(),popperInstance:O,props:i,state:F,plugins:P,clearDelayTimeouts:Mt,setProps:Ue,setContent:Qe,show:vt,hide:dt,hideWithInteractivity:yt,enable:$e,disable:Je,unmount:sn,destroy:_e};if(!i.render)return R;var V=i.render(R),Q=V.popper,$=V.onUpdate;Q.setAttribute("data-tippy-root",""),Q.id="tippy-"+R.id,R.popper=Q,n._tippy=R,Q._tippy=R;var Y=P.map(function(tt){return tt.fn(R)}),_=n.hasAttribute("aria-expanded");return me(),oe(),re(),ce("onCreate",[R]),i.showOnCreate&&Zt(),Q.addEventListener("mouseenter",function(){R.props.interactive&&R.state.isVisible&&R.clearDelayTimeouts()}),Q.addEventListener("mouseleave",function(){R.props.interactive&&R.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",M)}),R;function U(){var tt=R.props.touch;return Array.isArray(tt)?tt:[tt,0]}function H(){return U()[0]==="hold"}function W(){var tt;return!!((tt=R.props.render)!=null&&tt.$$tippy)}function z(){return E||n}function ee(){var tt=z().parentNode;return tt?hNn(tt):document}function X(){return Lbe(Q)}function se(tt){return R.state.isMounted&&!R.state.isVisible||o6.isTouch||A&&A.type==="focus"?0:Tbe(R.props.delay,tt?0:1,H3.delay)}function re(tt){tt===void 0&&(tt=!1),Q.style.pointerEvents=R.props.interactive&&!tt?"":"none",Q.style.zIndex=""+R.props.zIndex}function ce(tt,At,_t){if(_t===void 0&&(_t=!0),Y.forEach(function(Vn){Vn[tt]&&Vn[tt].apply(Vn,At)}),_t){var $t;($t=R.props)[tt].apply($t,At)}}function ue(){var tt=R.props.aria;if(tt.content){var At="aria-"+tt.content,_t=Q.id,$t=BN(R.props.triggerTarget||n);$t.forEach(function(Vn){var bn=Vn.getAttribute(At);if(R.state.isVisible)Vn.setAttribute(At,bn?bn+" "+_t:_t);else{var Rr=bn&&bn.replace(_t,"").trim();Rr?Vn.setAttribute(At,Rr):Vn.removeAttribute(At)}})}}function oe(){if(!(_||!R.props.aria.expanded)){var tt=BN(R.props.triggerTarget||n);tt.forEach(function(At){R.props.interactive?At.setAttribute("aria-expanded",R.state.isVisible&&At===z()?"true":"false"):At.removeAttribute("aria-expanded")})}}function ge(){ee().removeEventListener("mousemove",M),QX=QX.filter(function(tt){return tt!==M})}function ve(tt){if(!(o6.isTouch&&(b||tt.type==="mousedown"))){var At=tt.composedPath&&tt.composedPath()[0]||tt.target;if(!(R.props.interactive&&Vet(Q,At))){if(BN(R.props.triggerTarget||n).some(function(_t){return Vet(_t,At)})){if(o6.isTouch||R.state.isVisible&&R.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[R,tt]);R.props.hideOnClick===!0&&(R.clearDelayTimeouts(),R.hide(),p=!0,setTimeout(function(){p=!1}),R.state.isMounted||Ie())}}}function ie(){b=!0}function Ne(){b=!1}function Me(){var tt=ee();tt.addEventListener("mousedown",ve,!0),tt.addEventListener("touchend",ve,gS),tt.addEventListener("touchstart",Ne,gS),tt.addEventListener("touchmove",ie,gS)}function Ie(){var tt=ee();tt.removeEventListener("mousedown",ve,!0),tt.removeEventListener("touchend",ve,gS),tt.removeEventListener("touchstart",Ne,gS),tt.removeEventListener("touchmove",ie,gS)}function Oe(tt,At){Ae(tt,function(){!R.state.isVisible&&Q.parentNode&&Q.parentNode.contains(Q)&&At()})}function je(tt,At){Ae(tt,At)}function Ae(tt,At){var _t=X().box;function $t(Vn){Vn.target===_t&&(Ibe(_t,"remove",$t),At())}if(tt===0)return At();Ibe(_t,"remove",x),Ibe(_t,"add",$t),x=$t}function ke(tt,At,_t){_t===void 0&&(_t=!1);var $t=BN(R.props.triggerTarget||n);$t.forEach(function(Vn){Vn.addEventListener(tt,At,_t),T.push({node:Vn,eventType:tt,handler:At,options:_t})})}function me(){H()&&(ke("touchstart",Ee,{passive:!0}),ke("touchend",Be,{passive:!0})),iNn(R.props.trigger).forEach(function(tt){if(tt!=="manual")switch(ke(tt,Ee),tt){case"mouseenter":ke("mouseleave",Be);break;case"focus":ke(bNn?"focusout":"blur",tn);break;case"focusin":ke("focusout",tn);break}})}function we(){T.forEach(function(tt){var At=tt.node,_t=tt.eventType,$t=tt.handler,Vn=tt.options;At.removeEventListener(_t,$t,Vn)}),T=[]}function Ee(tt){var At,_t=!1;if(!(!R.state.isEnabled||Ze(tt)||p)){var $t=((At=A)==null?void 0:At.type)==="focus";A=tt,E=tt.currentTarget,oe(),!R.state.isVisible&&cNn(tt)&&QX.forEach(function(Vn){return Vn(tt)}),tt.type==="click"&&(R.props.trigger.indexOf("mouseenter")<0||f)&&R.props.hideOnClick!==!1&&R.state.isVisible?_t=!0:Zt(tt),tt.type==="click"&&(f=!_t),_t&&!$t&&it(tt)}}function qe(tt){var At=tt.target,_t=z().contains(At)||Q.contains(At);if(!(tt.type==="mousemove"&&_t)){var $t=ft().concat(Q).map(function(Vn){var bn,Rr=Vn._tippy,Xr=(bn=Rr.popperInstance)==null?void 0:bn.state;return Xr?{popperRect:Vn.getBoundingClientRect(),popperState:Xr,props:i}:null}).filter(Boolean);fNn($t,tt)&&(ge(),it(tt))}}function Be(tt){var At=Ze(tt)||R.props.trigger.indexOf("click")>=0&&f;if(!At){if(R.props.interactive){R.hideWithInteractivity(tt);return}it(tt)}}function tn(tt){R.props.trigger.indexOf("focusin")<0&&tt.target!==z()||R.props.interactive&&tt.relatedTarget&&Q.contains(tt.relatedTarget)||it(tt)}function Ze(tt){return o6.isTouch?H()!==tt.type.indexOf("touch")>=0:!1}function Wt(){Yt();var tt=R.props,At=tt.popperOptions,_t=tt.placement,$t=tt.offset,Vn=tt.getReferenceClientRect,bn=tt.moveTransition,Rr=W()?Lbe(Q).arrow:null,Xr=Vn?{getBoundingClientRect:Vn,contextElement:Vn.contextElement||z()}:n,Jr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gn){var ui=Gn.state;if(W()){var Hr=X(),Zi=Hr.box;["placement","reference-hidden","escaped"].forEach(function(Qi){Qi==="placement"?Zi.setAttribute("data-placement",ui.placement):ui.attributes.popper["data-popper-"+Qi]?Zi.setAttribute("data-"+Qi,""):Zi.removeAttribute("data-"+Qi)}),ui.attributes.popper={}}}},si=[{name:"offset",options:{offset:$t}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!bn}},Jr];W()&&Rr&&si.push({name:"arrow",options:{element:Rr,padding:3}}),si.push.apply(si,(At==null?void 0:At.modifiers)||[]),R.popperInstance=WT(Xr,Q,Object.assign({},At,{placement:_t,onFirstUpdate:C,modifiers:si}))}function Yt(){R.popperInstance&&(R.popperInstance.destroy(),R.popperInstance=null)}function Sn(){var tt=R.props.appendTo,At,_t=z();R.props.interactive&&tt===Fet||tt==="parent"?At=_t.parentNode:At=Ret(tt,[_t]),At.contains(Q)||At.appendChild(Q),R.state.isMounted=!0,Wt()}function ft(){return HX(Q.querySelectorAll("[data-tippy-root]"))}function Zt(tt){R.clearDelayTimeouts(),tt&&ce("onTrigger",[R,tt]),Me();var At=se(!0),_t=U(),$t=_t[0],Vn=_t[1];o6.isTouch&&$t==="hold"&&Vn&&(At=Vn),At?o=setTimeout(function(){R.show()},At):R.show()}function it(tt){if(R.clearDelayTimeouts(),ce("onUntrigger",[R,tt]),!R.state.isVisible){Ie();return}if(!(R.props.trigger.indexOf("mouseenter")>=0&&R.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(tt.type)>=0&&f)){var At=se(!1);At?l=setTimeout(function(){R.state.isVisible&&R.hide()},At):h=requestAnimationFrame(function(){R.hide()})}}function $e(){R.state.isEnabled=!0}function Je(){R.hide(),R.state.isEnabled=!1}function Mt(){clearTimeout(o),clearTimeout(l),cancelAnimationFrame(h)}function Ue(tt){if(!R.state.isDestroyed){ce("onBeforeUpdate",[R,tt]),we();var At=R.props,_t=Uet(n,Object.assign({},At,_et(tt),{ignoreAttributes:!0}));R.props=_t,me(),At.interactiveDebounce!==_t.interactiveDebounce&&(ge(),M=zet(qe,_t.interactiveDebounce)),At.triggerTarget&&!_t.triggerTarget?BN(At.triggerTarget).forEach(function($t){$t.removeAttribute("aria-expanded")}):_t.triggerTarget&&n.removeAttribute("aria-expanded"),oe(),re(),$&&$(At,_t),R.popperInstance&&(Wt(),ft().forEach(function($t){requestAnimationFrame($t._tippy.popperInstance.forceUpdate)})),ce("onAfterUpdate",[R,tt])}}function Qe(tt){R.setProps({content:tt})}function vt(){var tt=R.state.isVisible,At=R.state.isDestroyed,_t=!R.state.isEnabled,$t=o6.isTouch&&!R.props.touch,Vn=Tbe(R.props.duration,0,H3.duration);if(!(tt||At||_t||$t)&&!z().hasAttribute("disabled")&&(ce("onShow",[R],!1),R.props.onShow(R)!==!1)){if(R.state.isVisible=!0,W()&&(Q.style.visibility="visible"),re(),Me(),R.state.isMounted||(Q.style.transition="none"),W()){var bn=X(),Rr=bn.box,Xr=bn.content;Mbe([Rr,Xr],0)}C=function(){var si;if(!(!R.state.isVisible||y)){if(y=!0,Q.offsetHeight,Q.style.transition=R.props.moveTransition,W()&&R.props.animation){var pi=X(),Gn=pi.box,ui=pi.content;Mbe([Gn,ui],Vn),Qet([Gn,ui],"visible")}ue(),oe(),Het(Dbe,R),(si=R.popperInstance)==null||si.forceUpdate(),ce("onMount",[R]),R.props.animation&&W()&&je(Vn,function(){R.state.isShown=!0,ce("onShown",[R])})}},Sn()}}function dt(){var tt=!R.state.isVisible,At=R.state.isDestroyed,_t=!R.state.isEnabled,$t=Tbe(R.props.duration,1,H3.duration);if(!(tt||At||_t)&&(ce("onHide",[R],!1),R.props.onHide(R)!==!1)){if(R.state.isVisible=!1,R.state.isShown=!1,y=!1,f=!1,W()&&(Q.style.visibility="hidden"),ge(),Ie(),re(!0),W()){var Vn=X(),bn=Vn.box,Rr=Vn.content;R.props.animation&&(Mbe([bn,Rr],$t),Qet([bn,Rr],"hidden"))}ue(),oe(),R.props.animation?W()&&Oe($t,R.unmount):R.unmount()}}function yt(tt){ee().addEventListener("mousemove",M),Het(QX,M),M(tt)}function sn(){R.state.isVisible&&R.hide(),R.state.isMounted&&(Yt(),ft().forEach(function(tt){tt._tippy.unmount()}),Q.parentNode&&Q.parentNode.removeChild(Q),Dbe=Dbe.filter(function(tt){return tt!==R}),R.state.isMounted=!1,ce("onHidden",[R]))}function _e(){R.state.isDestroyed||(R.clearDelayTimeouts(),R.unmount(),we(),delete n._tippy,R.state.isDestroyed=!0,ce("onDestroy",[R]))}}function pS(n,r){r===void 0&&(r={});var i=H3.plugins.concat(r.plugins||[]);pNn();var o=Object.assign({},r,{plugins:i}),l=uNn(n),h=l.reduce(function(f,p){var b=p&&TNn(p,o);return b&&f.push(b),f},[]);return _X(n)?h[0]:h}pS.defaultProps=H3,pS.setDefaultProps=ANn,pS.currentInput=o6,Object.assign({},$Qe,{effect:function(r){var i=r.state,o={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(i.elements.popper.style,o.popper),i.styles=o,i.elements.arrow&&Object.assign(i.elements.arrow.style,o.arrow)}}),pS.setDefaultProps({render:qet});function SNn(n){const{triggerRef:r,panelComponent:i,panelProps:o={},tippyOptions:l={}}=n,h=K.ref(null);let f=null;const p=()=>{f||(f=document.createElement("div"));const E=K.h(i,{...o,onClose:x});return K.render(E,f),f},b=E=>{var F;const D=E.target,O=r.value;if(O&&O.contains(D))return;const P=document.querySelector('.tippy-box[data-theme~="history-panel"]');P&&P.contains(D)||(F=h.value)!=null&&F.state.isVisible&&h.value.hide()},y=()=>{if(!r.value||h.value)return;const E={placement:"bottom-end",offset:[0,8],appendTo:document.querySelector(".ai-blueking-container-wrapper")||document.body};h.value=pS(r.value,{content:p(),interactive:!0,trigger:"manual",theme:"light history-panel",arrow:!1,hideOnClick:!1,animation:"scale",duration:200,delay:[0,0],...E,...l,onShow:()=>{h.value&&f&&h.value.setContent(p()),setTimeout(()=>{document.addEventListener("click",b,!1)},0)},onHidden:()=>{document.removeEventListener("click",b,!1)}})},A=()=>{var E;h.value||y(),(E=h.value)==null||E.show()},x=()=>{var E;(E=h.value)==null||E.hide()},C=()=>{var E;h.value||y(),(E=h.value)!=null&&E.state.isVisible?x():A()},T=E=>{E.stopPropagation(),C()},M=()=>{h.value&&(h.value.destroy(),h.value=null),f&&(K.render(null,f),f=null),document.removeEventListener("click",b,!1)};return K.onBeforeUnmount(()=>{M()}),{show:A,hide:x,toggle:C,handleTriggerClick:T,destroy:M,isVisible:()=>{var E;return((E=h.value)==null?void 0:E.state.isVisible)??!1}}}const VX=[oi.HiddenAi,oi.HiddenUser,oi.HiddenGuide,oi.HiddenRole],MNn=n=>{const r=document.cookie.match(new RegExp(`(^| )${n}=([^;]*)(;|$)`));return r?r[2]:""},Zet=n=>n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),INn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const r=Math.random()*16|0;return(n=="x"?r:r&3|8).toString(16)}),ENn=n=>{if(!n)return n;try{if(n.startsWith("http://")||n.startsWith("https://")){const i=window.location.protocol,o=new URL(n);return i==="https:"&&o.protocol==="http:"?(o.protocol="https:",o.toString()):n}if(n.startsWith("//"))return`${window.location.protocol}${n}`;if(n.startsWith("/"))return`${window.location.protocol}//${window.location.host}${n}`;const r=`${window.location.protocol}//${window.location.host}${window.location.pathname}`;return new URL(n,r).toString()}catch(r){return console.warn("URL normalization failed:",r),n}},LNn=MNn("blueking_language")||"zh-cn",DNn={小鲸:"BK GPT",向下收缩:"shrink down",向上扩展:"expand upward",清空聊天记录:"Empty chat records",关闭:"close","内容正在执行中,请执行完成后再发送":"The content is being executed, please send it after the execution is completed.",发送:"Send","您可以键入 “/” 查看更多Prompt":'You can type "/" to see more Prompts',请输入:"Please input",返回最新:"Latest",终止生成:"Stop",向上滚动加载更多记录:"Scroll up to load more records",日:" sunday",一:" monday",二:" tuesday",三:" wednesday",四:" thursday",五:" friday",六:" saturday",昨天:"yesterday",本周:"this week",上周:"last week",复制成功:"Copy success",您选择的文本内容:"The text content you selected",问小鲸:"Ask BK GPT",想对选中的文本做什么:"What do you want to do with the selected text?",translateShortcut:`You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.
|
|
497
497
|
Only give me the output and nothing else. Do not wrap responses in quotes
|
|
498
498
|
'''
|
|
499
499
|
{{ SELECTED_TEXT }}
|
|
@@ -598,7 +598,7 @@ ${n.themeCSS}`),n.fontFamily!==void 0&&(o+=`
|
|
|
598
598
|
* Wait for document loaded before starting the execution
|
|
599
599
|
*/window.addEventListener("load",zat,!1)}const fUn=function(n){eb.parseError=n},ute=[];let mve=!1;const Hat=async()=>{if(!mve){for(mve=!0;ute.length>0;){const n=ute.shift();if(n)try{await n()}catch(r){Ve.error("Error executing queue",r)}}mve=!1}},dUn=async(n,r)=>new Promise((i,o)=>{const l=()=>new Promise((h,f)=>{HS.parse(n,r).then(p=>{h(p),i(p)},p=>{var b;Ve.error("Error parsing",p),(b=eb.parseError)==null||b.call(eb,p),f(p),o(p)})});ute.push(l),Hat().catch(o)}),_at=(n,r,i)=>new Promise((o,l)=>{const h=()=>new Promise((f,p)=>{HS.render(n,r,i).then(b=>{f(b),o(b)},b=>{var y;Ve.error("Error parsing",b),(y=eb.parseError)==null||y.call(eb,b),p(b),l(b)})});ute.push(h),Hat().catch(l)}),eb={startOnLoad:!0,mermaidAPI:HS,parse:dUn,render:_at,init:uUn,run:Fat,registerExternalDiagrams:hUn,initialize:Rat,parseError:void 0,contentLoaded:zat,setParseErrorHandler:fUn,detectType:Xee};function gUn(){const n=()=>{eb.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",fontFamily:"Arial, sans-serif",fontSize:14})},r=async l=>{var f,p;const h=l.querySelectorAll(".mermaid-placeholder");for(const b of h)try{const y=b.getAttribute("data-mermaid-id"),A=b.getAttribute("data-mermaid-content");if(!y||!A)continue;const x=decodeURIComponent(A),{svg:C}=await eb.render(y,x),T=document.getElementById(`d${y}`);T&&T.remove();const M=document.createElement("div"),E=rA.sanitize(C,{ADD_TAGS:["foreignObject"],USE_PROFILES:{svg:!0,svgFilters:!0}});M.className="mermaid-diagram",M.innerHTML=E,(f=b.parentNode)==null||f.replaceChild(M,b)}catch(y){console.error("Mermaid rendering error:",y);const A=b.getAttribute("data-mermaid-id");if(A){const T=document.getElementById(`d${A}`);T&&T.remove()}const x=document.createElement("div");x.className="alert alert-danger mermaid-error";const C=y instanceof Error?y.message:String(y);x.textContent=`Mermaid diagram error: ${C}`,(p=b.parentNode)==null||p.replaceChild(x,b)}};return{initMermaid:n,renderMermaidDiagrams:r,processMermaidDiagrams:async(l,h)=>{await K.nextTick(),await r(l),await K.nextTick(),h&&h()},cleanupMermaidElements:()=>{document.querySelectorAll('[id^="dmermaid-"]').forEach(h=>h.remove())}}}const Qat=n=>{const r=n.renderer.rules.link_open||function(i,o,l,h,f){return f.renderToken(i,o,l)};n.renderer.rules.link_open=function(i,o,l,h,f){return i[o].attrSet("target","_blank"),r(i,o,l,h,f)}};function Vat(n,r={}){eb.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",...r});function i(h){return h.split(/\s+/g)[0]}const o=n.renderer.rules.fence;function l(h,f,p,b,y){const A=h[f],x=A.info.trim(),C=x?i(x):"";return["mermaid","{mermaid}"].indexOf(C)===-1?o!==void 0?o(h,f,p,b,y):"":`<div class="mermaid-placeholder" data-mermaid-id="${`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`}" data-mermaid-content="${encodeURIComponent(A.content)}">Loading diagram...</div>`}n.renderer.rules.fence=l}const pUn={class:"delete-confirm-wrapper"},mUn={class:"delete-confirm-title"},bUn={class:"delete-confirm-content"},vUn={class:"delete-confirm-footer"},yUn=Qf(K.defineComponent({__name:"delete-confirm",props:{onConfirm:{type:Function},onCancel:{type:Function},title:{},content:{}},setup(n){const r=n,i=r.title||"确认删除该提问?",o=r.content||"删除操作无法撤回,请谨慎操作!",l=()=>{r.onCancel()},h=()=>{r.onConfirm()};return(f,p)=>(K.openBlock(),K.createElementBlock("div",pUn,[K.createElementVNode("div",mUn,K.toDisplayString(K.unref(i)),1),K.createElementVNode("div",bUn,K.toDisplayString(K.unref(o)),1),K.createElementVNode("div",vUn,[K.createVNode(K.unref(nS),{style:{width:"64px","min-width":"64px"},size:"small",theme:"danger",onClick:h},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(K.unref(Do)("删除")),1)]),_:1}),K.createVNode(K.unref(nS),{style:{width:"64px","min-width":"64px"},size:"small",theme:"default",onClick:l},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(K.unref(Do)("取消")),1)]),_:1})])]))}}),[["__scopeId","data-v-c7564ad8"]]),_S=new Map;function wUn(n,r){const i=typeof n=="string"?document.querySelector(n):n;if(!i){console.error("Target element not found");return}if(_S.has(i)){const b=_S.get(i);return b==null||b.show(),b}const o={onConfirm:()=>{r.onConfirm(),f==null||f.hide(),_S.delete(i)},onCancel:()=>{f==null||f.hide(),_S.delete(i)},title:r.title,content:r.content},l=document.createElement("div"),h=K.h(yUn,o);K.render(h,l);const f=pS(i,{content:l,interactive:!0,trigger:"manual",theme:"white",placement:r.placement||"top",arrow:!0,appendTo:r.appendTo||document.body,hideOnClick:!0,animation:"scale",duration:200,delay:[0,0],onHidden:()=>{setTimeout(()=>{_S.delete(i),K.render(null,l)},200)}});_S.set(i,f);const p=()=>{f.hide()};return o.onConfirm=()=>{r.onConfirm(),p()},o.onCancel=()=>{p()},f.show(),f}function AUn(){_S.forEach(n=>{n.hide()})}const xUn={class:"bk-text-editor"},kUn=["placeholder"],CUn={class:"editor-footer"},TUn={class:"button-group"},SUn=K.defineComponent({__name:"text-editor",props:{modelValue:{default:""},placeholder:{default:Do("请输入内容")},autoFocus:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["submit","update:modelValue","cancel","stop"],setup(n,{expose:r,emit:i}){const o=n,l=i,h=K.ref(null),f=K.ref(o.modelValue),{handleCompositionStart:p,handleCompositionEnd:b,handleEnter:y,handleSend:A}=ttt({isLoading:K.computed(()=>o.loading),getInputValue:()=>f.value,clearInput:()=>{f.value=""},onSend:E=>l("submit",E),onStop:()=>l("stop")});K.watch(()=>o.modelValue,E=>{f.value=E}),K.watch(()=>f.value,E=>{l("update:modelValue",E)});const x=()=>{l("update:modelValue",f.value)},C=E=>{if(E.ctrlKey||E.metaKey){E.preventDefault(),T();return}y(E)},T=()=>{A()},M=()=>{f.value="",l("cancel")};return K.onMounted(()=>{var E;o.autoFocus&&((E=h.value)==null||E.focus())}),r({focus:()=>{var E;(E=h.value)==null||E.focus()},clear:()=>{f.value=""}}),(E,D)=>(K.openBlock(),K.createElementBlock("div",xUn,[K.withDirectives(K.createElementVNode("textarea",{ref_key:"textareaRef",ref:h,"onUpdate:modelValue":D[0]||(D[0]=O=>f.value=O),class:"editor-textarea",placeholder:E.placeholder,onCompositionend:D[1]||(D[1]=(...O)=>K.unref(b)&&K.unref(b)(...O)),onCompositionstart:D[2]||(D[2]=(...O)=>K.unref(p)&&K.unref(p)(...O)),onInput:x,onKeydown:K.withKeys(C,["enter"])},null,40,kUn),[[K.vModelText,f.value]]),K.createElementVNode("div",CUn,[K.createElementVNode("div",TUn,[K.createVNode(K.unref(nS),{style:{width:"52px","min-width":"52px"},class:"cancel-btn",size:"small",theme:"default",onClick:M},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(K.unref(Do)("取消")),1)]),_:1}),K.createVNode(K.unref(nS),{style:{width:"52px","min-width":"52px"},class:"submit-btn",disabled:!f.value.trim(),size:"small",theme:"primary",onClick:T},{default:K.withCtx(()=>[K.createTextVNode(K.toDisplayString(K.unref(Do)("发送")),1)]),_:1},8,["disabled"])])])]))}}),MUn=Qf(SUn,[["__scopeId","data-v-b4d807d6"]]),IUn={key:0,class:"ai-cite-container"},EUn={key:1,class:"message-content user"},LUn={key:0,class:"time-message user"},DUn=["innerHTML"],NUn={key:2,class:"message-content ai"},OUn={key:0,class:"time-message ai"},BUn={key:2,width:"14",height:"14",class:"loading-message","aria-hidden":"true"},PUn={key:3,class:"message-wrap"},jUn=["innerHTML"],FUn={key:3,class:"message-tool"},RUn=K.defineComponent({__name:"render-message",props:{message:{},userPhoto:{default:nBn},showTime:{type:Boolean,default:!1},index:{}},emits:["regenerate","resend","delete"],setup(n,{emit:r}){const i=r,o=n,l=K.ref(!1),h=K.ref(null),f=U=>typeof U=="object"&&U!==null&&"type"in U&&U.type==="structured",{enablePopup:p}=Nbe(),{setCiteText:b}=FH(p),{createTooltipsForSelector:y,destroyAll:A}=PN({placement:"top",arrow:!0,appendTo:"parent",delay:[0,0]}),{initMermaid:x,processMermaidDiagrams:C,cleanupMermaidElements:T}=gUn(),M=new zQe({html:!0,highlight:(U,H)=>{if(H&&yZ.getLanguage(H))try{return yZ.highlight(U,{language:H}).value}catch{}return""}}).use(Y2e).use(Qat).use(Vat),E=K.computed(()=>{var H;const U={[M1.Fail]:"bkai-icon bkai-warning-circle-fill",[M1.Loading]:"",[M1.Success]:""};return(H=o.message)!=null&&H.status?U[o.message.status]:""}),D=K.computed(()=>{if(!o.message.content)return"";const U=M.render(o.message.content),H=rA.sanitize(U,{USE_PROFILES:{html:!0,svg:!0},ADD_TAGS:["svg","g","path"],ADD_ATTR:["target","xmlns","width","height","viewBox","fill","stroke-linecap","stroke-linejoin","stroke-width"],FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]});return K.nextTick(()=>{h.value&&C(h.value,()=>{var z;const W=new CustomEvent("mermaid-rendered",{bubbles:!0});(z=h.value)==null||z.dispatchEvent(W)})}),H.replace(/\s*<\/p>\s*$/,"</p>")}),O=K.computed(()=>{if(!o.message.time)return"";const U=Pd(o.message.time);return Pd().isSame(U,"year")?U.format("MM-DD HH:mm:ss"):U.format("YYYY-MM-DD HH:mm:ss")}),P=U=>{l.value=!1,i("resend",o.index,{message:U})},F=U=>U.content?typeof U.content=="string"?U.content:JSON.stringify(U.content,null,2):U.data&&U.data.length>0?`${U.title}
|
|
600
600
|
${U.data.map(H=>`${H.key}: ${H.value}`).join(`
|
|
601
|
-
`)}`:JSON.stringify(U,null,2),R=()=>{var H,W,z;const U=(z=(W=(H=o.message)==null?void 0:H.property)==null?void 0:W.extra)==null?void 0:z.cite;return U&&f(U)?F(U):o.message.content},V=async()=>{try{await navigator.clipboard.writeText(R()),cme({theme:"success",message:Do("复制成功")})}catch(U){console.error("复制失败:",U),cme({theme:"error",message:Do("复制失败")})}},Q=()=>{b(R())},$=()=>{i("regenerate",o.index)},Y=U=>{const H=U.currentTarget;wUn(H,{onConfirm:()=>{i("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:h.value})},_=()=>{A(),y(".message-tool .bkai-fuzhi",Do("复制")),y(".message-tool .bkai-zhongxinshengcheng",Do("重新生成")),y(".message-tool .bkai-yinyong",Do("引用")),y(".message-tool .bkai-bianji",Do("编辑")),y(".message-tool .bkai-shanchu",Do("删除"))};return K.onMounted(()=>{x(),setTimeout(_,0)}),K.watch(()=>o.message,()=>{setTimeout(_,0)},{deep:!0}),K.watch(l,U=>{U||setTimeout(_,0)}),K.onBeforeUnmount(()=>{AUn(),T()}),(U,H)=>{var W,z,ee,X,se,re,ce,ue,oe;return K.unref(VX).includes(U.message.role)?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createElementBlock("li",{key:0,ref_key:"messageMainRef",ref:h,class:K.normalizeClass([U.message.role,"message-main"])},[(ee=(z=(W=U.message)==null?void 0:W.property)==null?void 0:z.extra)!=null&&ee.cite?(K.openBlock(),K.createElementBlock("div",IUn,[f(U.message.property.extra.cite)?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createBlock(ett,{key:0,text:U.message.property.extra.cite},null,8,["text"]))])):K.createCommentVNode("v-if",!0),K.createElementVNode("div",{class:K.normalizeClass(`message-content-container ${U.message.role}`)},[f((re=(se=(X=U.message)==null?void 0:X.property)==null?void 0:se.extra)==null?void 0:re.cite)?(K.openBlock(),K.createBlock(cBn,{key:0,"cite-data":(oe=(ue=(ce=U.message)==null?void 0:ce.property)==null?void 0:ue.extra)==null?void 0:oe.cite},null,8,["cite-data"])):[K.unref(oi).User,K.unref(oi).Role].includes(U.message.role)?(K.openBlock(),K.createElementBlock(K.Fragment,{key:1},[l.value?(K.openBlock(),K.createBlock(MUn,{key:0,"auto-focus":!0,"model-value":U.message.content,onCancel:H[0]||(H[0]=ge=>l.value=!1),onSubmit:P},null,8,["model-value"])):(K.openBlock(),K.createElementBlock("p",EUn,[O.value&&o.showTime?(K.openBlock(),K.createElementBlock("span",LUn,K.toDisplayString(O.value),1)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",{class:"markdown-content",innerHTML:D.value},null,8,DUn)]))],64)):(K.openBlock(),K.createElementBlock("p",NUn,[O.value&&o.showTime?(K.openBlock(),K.createElementBlock("span",OUn,K.toDisplayString(O.value),1)):K.createCommentVNode("v-if",!0),E.value?(K.openBlock(),K.createElementBlock("i",{key:1,class:K.normalizeClass(E.value)},null,2)):K.createCommentVNode("v-if",!0),U.message.status===K.unref(M1).Loading?(K.openBlock(),K.createElementBlock("svg",BUn,H[2]||(H[2]=[K.createElementVNode("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):K.createCommentVNode("v-if",!0),U.message.status===K.unref(M1).Fail?(K.openBlock(),K.createElementBlock("span",PUn,K.toDisplayString(U.message.content),1)):(K.openBlock(),K.createElementBlock("span",{key:4,class:K.normalizeClass({"markdown-content":!0,loading:U.message.status===K.unref(M1).Loading}),innerHTML:D.value},null,10,jUn))])),!l.value&&U.message.status!==K.unref(M1).Loading?(K.openBlock(),K.createElementBlock("div",FUn,[K.createElementVNode("i",{class:"bkai-icon bkai-fuzhi",onClick:V}),K.createElementVNode("i",{class:"bkai-icon bkai-yinyong",onClick:Q}),U.message.role===K.unref(oi).Ai?(K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:$})):K.createCommentVNode("v-if",!0),U.message.role===K.unref(oi).User?(K.openBlock(),K.createElementBlock("i",{key:1,class:"bkai-icon bkai-bianji",onClick:H[1]||(H[1]=ge=>l.value=!0)})):K.createCommentVNode("v-if",!0),K.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:Y})])):K.createCommentVNode("v-if",!0)],2)],2))}}}),zUn=Qf(K.defineComponent({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(n,{expose:r,emit:i}){K.useCssVars(D=>({"0734f233":o.contentMarginBottom+"px"}));const o=n,l=i,h=K.ref(null);let f=0;const p=K.ref(!1),b=()=>{if(!h.value)return;p.value=!0;const{scrollTop:D,scrollHeight:O,clientHeight:P}=h.value;D+P>=O-50&&D>f&&(p.value=!1),f=D},y=()=>{h.value&&h.value.scrollTo({top:h.value.scrollHeight,behavior:"smooth"})},A=()=>{setTimeout(()=>{p.value||y()},100)},x=D=>{l("delete",D)},C=D=>{l("regenerate",D)},T=(D,O)=>{l("resend",D,O)};return r({messageWrapper:h,scrollToBottom:y,scrollToBottomIfNeeded:()=>{p.value||y()},userScrolling:p,resetUserScrolling:()=>{p.value=!1}}),K.onMounted(()=>{h.value&&(h.value.addEventListener("scroll",b),h.value.addEventListener("mermaid-rendered",A))}),K.onBeforeUnmount(()=>{h.value&&(h.value.removeEventListener("scroll",b),h.value.removeEventListener("mermaid-rendered",A))}),(D,O)=>(K.openBlock(),K.createElementBlock("div",{ref_key:"messageWrapper",ref:h,style:K.normalizeStyle({opacity:D.hasSessionContents?1:0}),class:"message-wrapper"},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(D.sessionContents,(P,F)=>(K.openBlock(),K.createElementBlock("div",{key:P.id,class:"message-line-wrapper"},[K.createVNode(RUn,{index:F,message:P,onDelete:x,onRegenerate:C,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),HUn={class:"popup-content"},_Un=["src"],QUn={class:"shortcut-buttons"},VUn=["onClick"],$Un={class:"btn-text ai-blueking-tag-text"},GUn=["onClick"],YUn=Qf(K.defineComponent({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(n,{emit:r}){const i=n,{enablePopup:o}=Nbe(),{isIconVisible:l,iconPosition:h,popupRef:f,clearSelection:p,selectedText:b}=FH(o),y=K.computed(()=>{var $;const Q=i.shortcuts.length>0?i.shortcuts:(($=i.conversationSettings)==null?void 0:$.commands)||[];return typeof i.shortcutFilter=="function"?Q.filter(Y=>{var _;return!!((_=i.shortcutFilter)!=null&&_.call(i,K.toRaw(Y),b.value))}):Q}),A=K.computed(()=>y.value.slice(0,i.shortcutLimit)),x=K.computed(()=>y.value.slice(i.shortcutLimit)),C=K.ref(!1);let T=null,M=null;const E=r,D=()=>{E("click"),l.value=!1},O=()=>{M&&(clearTimeout(M),M=null),C.value=!0},P=()=>{M&&(window.clearTimeout(M),M=null),M=window.setTimeout(()=>{T||(C.value=!1)},100)},F=()=>{T&&(clearTimeout(T),T=null)},R=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{C.value=!1},100)},V=Q=>{try{E("shortcut-click",{shortcut:Q,source:"popup"}),p(),l.value=!1}catch($){console.error("处理快捷按钮点击事件时出错:",$)}};return(Q,$)=>K.unref(l)?(K.openBlock(),K.createElementBlock("div",{key:0,ref_key:"popupRef",ref:f,style:K.normalizeStyle(K.unref(h)),class:"ai-blueking-render-popup",onMousedown:$[0]||($[0]=K.withModifiers(()=>{},["prevent"]))},[K.createElementVNode("div",HUn,[K.createCommentVNode(" AI图标按钮 "),K.createElementVNode("div",{class:"popup-bkai-btn",onClick:D},[K.createElementVNode("img",{class:"avatar",src:K.unref(Cbe),alt:"AI"},null,8,_Un),K.createElementVNode("span",null,K.toDisplayString(K.unref(Do)("问问小鲸")),1)]),K.createCommentVNode(" 快捷按钮组 "),K.createElementVNode("div",QUn,[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(A.value,(Y,_)=>(K.openBlock(),K.createElementBlock("div",{key:_,class:"shortcut-btn",onClick:U=>V(Y)},[Y.icon?(K.openBlock(),K.createElementBlock("i",{key:0,class:K.normalizeClass(Y.icon)},null,2)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",$Un,K.toDisplayString(Y.name),1)],8,VUn))),128)),K.createCommentVNode(" 更多按钮 "),x.value.length>0?(K.openBlock(),K.createElementBlock("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:P},[$[1]||($[1]=K.createElementVNode("span",{class:"btn-text"},"更多",-1)),$[2]||($[2]=K.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)),K.createCommentVNode(" 更多菜单 "),C.value?(K.openBlock(),K.createElementBlock("div",{key:0,class:"more-menu",onMouseenter:F,onMouseleave:R},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(x.value,(Y,_)=>(K.openBlock(),K.createElementBlock("div",{key:_,class:"more-menu-item",onClick:U=>V(Y)},[Y.icon?(K.openBlock(),K.createElementBlock("i",{key:0,class:K.normalizeClass(Y.icon)},null,2)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",null,K.toDisplayString(Y.name),1)],8,GUn))),128))],32)):K.createCommentVNode("v-if",!0)],32)):K.createCommentVNode("v-if",!0)])])],36)):K.createCommentVNode("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function UUn(n){const{greetingMaxHeight:r}=n,i=K.ref(0),o=K.ref();return{greetingTextHeight:i,greetingSectionRef:o,updateGreetingTextHeight:()=>{K.nextTick(()=>{o.value&&(i.value=o.value.getGreetingHeight())})},getInputContainerStyle:f=>{if(!f){const b=i.value,y=Math.min(b-22,r-22);return{top:`${188+Math.max(0,y)}px`}}return{}}}}function JUn(){const n=new zQe({html:!0,breaks:!0,highlight:(o,l)=>{if(l&&yZ.getLanguage(l))try{return yZ.highlight(o,{language:l}).value}catch{}return""}}).use(Y2e).use(Qat).use(Vat),r=o=>{if(!o)return"";try{const l=n.render(o);return rA.sanitize(l,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(l){return console.warn("Markdown rendering failed:",l),o.replace(/</g,"<").replace(/>/g,">")}};return{renderMarkdown:r,createMarkdownRenderer:o=>K.computed(()=>r(o.value))}}function WUn(){const n=K.ref();return{messageListRef:n,scrollMainToBottom:()=>{var l;(l=n.value)==null||l.scrollToBottom()},scrollToBottomIfNeeded:()=>{var l;(l=n.value)==null||l.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var l;(l=n.value)==null||l.resetUserScrolling()}}}function qUn(n={}){const r=n.initWidth||400,i=n.minWidth||400,o=n.minHeight||400,l=n.maxWidthPercent||40,h=n.miniHeight||800,f=n.miniPadding!==void 0?n.miniPadding:0,p=K.ref(n.defaultLeft!==void 0?n.defaultLeft:window.innerWidth-r),b=K.ref(n.defaultTop!==void 0?n.defaultTop:0),y=K.ref(n.defaultHeight!==void 0?n.defaultHeight:window.innerHeight-(n.defaultTop!==void 0?n.defaultTop:0)),A=K.ref(r),x=K.ref(b.value),C=K.ref(p.value),T=K.ref(A.value),M=K.ref(y.value),E=K.ref(Math.max(window.innerWidth*(l/100),T.value)),D=K.ref(!1),O=K.ref(0),P=(Q,$)=>{C.value=Q,x.value=$,O.value=Q-(window.innerWidth-T.value)},F=(Q,$,Y,_)=>{C.value=Q,x.value=$,T.value=Math.min(Y,E.value),M.value=_},R=()=>{E.value=Math.max(window.innerWidth*(l/100),T.value),K.nextTick(()=>{if(D.value)C.value=window.innerWidth-T.value-f,x.value=window.innerHeight-h-f;else{const Q=window.innerWidth-T.value-O.value;C.value=Math.max(0,Q),setTimeout(()=>{M.value=window.innerHeight-x.value},0)}T.value>E.value&&(T.value=E.value)})},V=()=>{D.value?(x.value=b.value,K.nextTick(()=>{M.value=y.value,C.value=p.value,T.value=A.value})):(x.value=window.innerHeight-h-f,C.value=p.value-f,T.value=r,M.value=h),D.value=!D.value};return K.onMounted(()=>{window.addEventListener("resize",R)}),K.onBeforeUnmount(()=>{window.removeEventListener("resize",R)}),{minWidth:i,minHeight:o,maxWidth:E,top:x,left:C,width:T,height:M,isCompressionHeight:D,handleDragging:P,handleResizing:F,toggleCompression:V}}function ZUn(n){const{selectedText:r,isShow:i,handleShow:o}=n,l=K.ref();return{currentShortcut:l,handleShortcutClick:p=>{var E,D;const{shortcut:b,source:y="main"}=p,A=b;let x;try{x=JSON.parse(JSON.stringify(A))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),x={...A,components:A.components?[...A.components]:A.components}}!i.value&&o();const C=(E=x.components)==null?void 0:E.find(O=>O.fillBack);if(C){let O=r.value;if(C.fillRegx)try{const P=new RegExp(C.fillRegx),F=r.value.match(P);F&&F.length>0?O=F[0]:O=""}catch(P){console.error("快捷方式组件中的正则表达式无效:",C.fillRegx,P)}C.selectedText=O}const T=((D=x.components)==null?void 0:D.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!=="":!0))||!x.components||x.components.length===0;["popup","ai-selected"].includes(y)&&T&&(x.autoSubmit=!0),l.value=x},handleCancelShortcut:()=>{l.value=void 0}}}function KUn(n,r=!1){const l=window.innerHeight-48-40,h=window.innerWidth-48-16,f=K.ref(h),p=K.ref(l),b=K.ref(0),y=K.ref(r),A=K.ref(!1),x=K.ref(!1);let C=0;const T=$=>{$?f.value=window.innerWidth-12:f.value=h},M=($,Y)=>{p.value=Y,b.value=Y-l},E=()=>{K.nextTick(()=>{p.value=window.innerHeight-48-40+b.value,y.value?f.value=window.innerWidth-12:f.value=window.innerWidth-48-16})},D=()=>{if(x.value){x.value=!1;return}n("click")},O=()=>{y.value=!y.value,n("minimize",y.value),y.value?f.value=window.innerWidth-12:f.value=window.innerWidth-60},P=($,Y)=>{f.value=$,p.value=Y},F=()=>{A.value=!0},R=()=>{A.value=!1},V=()=>{C=Date.now(),x.value=!1},Q=()=>{Date.now()-C>200&&(x.value=!0)};return K.onMounted(()=>{window.addEventListener("resize",E),E()}),K.onUnmounted(()=>{window.removeEventListener("resize",E)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:f,nimbusTop:p,isMinimize:y,isHovering:A,isDragging:x,handleNimbusDragging:M,handleNimbusMinimize:T,handleClick:D,handleMinimize:O,handleDragging:P,handleMouseEnter:F,handleMouseLeave:R,handleMouseDown:V,handleMouseUp:Q}}const XUn={class:"nimbus-bkai-wrapper"},eJn=["width","height","src"],tJn=Qf(K.defineComponent({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(n,{emit:r}){K.useCssVars($=>({"5eb53786":`${h.value.container}px`,"41a7fdd0":`${h.value.wrapper}px`,"2a593c76":`${h.value.mini.right}px`,bb6a6a86:`${h.value.mini.size}px`,"72d2d3ac":`${h.value.mini.fontSize}px`}));const i=n,o=r,l={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},h=K.computed(()=>l[i.size]),f=K.ref(null),p=K.ref(null),{nimbusLeft:b,nimbusTop:y,isMinimize:A,handleClick:x,handleMinimize:C,handleDragging:T,handleMouseEnter:M,handleMouseLeave:E,handleMouseDown:D,handleMouseUp:O}=KUn(o,i.isMinimize);K.watch(A,$=>{o("update:isMinimize",$)});const P=K.computed(()=>A.value?Do("恢复默认大小"):Do("最小化,将缩成锚点")),{createTooltip:F,destroyAll:R}=PN({theme:"ai-blueking",delay:[0,0]}),V=()=>{K.nextTick(()=>{Q()})},Q=()=>{R(),f.value&&!A.value&&F(f.value,"Cmd + I",{placement:"left"}),p.value&&F(p.value,P.value,{placement:"top"})};return K.watch(()=>A.value,()=>{K.nextTick(()=>{Q()})}),K.onMounted(()=>{K.nextTick(()=>{Q()}),window.addEventListener("resize",V)}),K.onBeforeUnmount(()=>{window.removeEventListener("resize",V)}),($,Y)=>(K.openBlock(),K.createBlock(K.unref(xbe),{active:!$.isPanelShow,axis:"y",draggable:!0,h:h.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:h.value.container,x:K.unref(b),y:K.unref(y),onDragging:K.unref(T)},{default:K.withCtx(()=>[K.createElementVNode("div",{ref_key:"nimbusContainerRef",ref:f,class:K.normalizeClass(["nimbus-container",{"is-minimize":K.unref(A)}]),onClick:Y[1]||(Y[1]=(..._)=>K.unref(x)&&K.unref(x)(..._)),onMousedown:Y[2]||(Y[2]=(..._)=>K.unref(D)&&K.unref(D)(..._)),onMouseenter:Y[3]||(Y[3]=(..._)=>K.unref(M)&&K.unref(M)(..._)),onMouseleave:Y[4]||(Y[4]=(..._)=>K.unref(E)&&K.unref(E)(..._)),onMouseup:Y[5]||(Y[5]=(..._)=>K.unref(O)&&K.unref(O)(..._))},[K.createElementVNode("div",XUn,[K.createElementVNode("img",{width:h.value.img,height:h.value.img,src:K.unref(Cbe),alt:"nimbus"},null,8,eJn)]),K.createElementVNode("i",{ref_key:"minimizeButtonRef",ref:p,class:K.normalizeClass(["nimbus-mini bkai-icon",K.unref(A)?"bkai-yinyong":"bkai-minus-line"]),onClick:Y[0]||(Y[0]=K.withModifiers((..._)=>K.unref(C)&&K.unref(C)(..._),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),nJn={class:"content-wrapper"},rJn={class:"chat-input-wrapper"},iJn={key:0,class:"bottom-tools-bar"},aJn=K.defineComponent({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:Do("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:Do(`输入 "/" 唤出 Prompt
|
|
601
|
+
`)}`:JSON.stringify(U,null,2),R=()=>{var H,W,z;const U=(z=(W=(H=o.message)==null?void 0:H.property)==null?void 0:W.extra)==null?void 0:z.cite;return U&&f(U)?F(U):o.message.content},V=async()=>{try{await navigator.clipboard.writeText(R()),cme({theme:"success",message:Do("复制成功")})}catch(U){console.error("复制失败:",U),cme({theme:"error",message:Do("复制失败")})}},Q=()=>{b(R())},$=()=>{i("regenerate",o.index)},Y=U=>{const H=U.currentTarget;wUn(H,{onConfirm:()=>{i("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:h.value})},_=()=>{A(),y(".message-tool .bkai-fuzhi",Do("复制")),y(".message-tool .bkai-zhongxinshengcheng",Do("重新生成")),y(".message-tool .bkai-yinyong",Do("引用")),y(".message-tool .bkai-bianji",Do("编辑")),y(".message-tool .bkai-shanchu",Do("删除"))};return K.onMounted(()=>{x(),setTimeout(_,0)}),K.watch(()=>o.message,()=>{setTimeout(_,0)},{deep:!0}),K.watch(l,U=>{U||setTimeout(_,0)}),K.onBeforeUnmount(()=>{AUn(),T()}),(U,H)=>{var W,z,ee,X,se,re,ce,ue,oe;return K.unref(VX).includes(U.message.role)?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createElementBlock("li",{key:0,ref_key:"messageMainRef",ref:h,class:K.normalizeClass([U.message.role,"message-main"])},[(ee=(z=(W=U.message)==null?void 0:W.property)==null?void 0:z.extra)!=null&&ee.cite?(K.openBlock(),K.createElementBlock("div",IUn,[f(U.message.property.extra.cite)?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createBlock(ett,{key:0,text:U.message.property.extra.cite},null,8,["text"]))])):K.createCommentVNode("v-if",!0),K.createElementVNode("div",{class:K.normalizeClass(`message-content-container ${U.message.role}`)},[f((re=(se=(X=U.message)==null?void 0:X.property)==null?void 0:se.extra)==null?void 0:re.cite)?(K.openBlock(),K.createBlock(cBn,{key:0,"cite-data":(oe=(ue=(ce=U.message)==null?void 0:ce.property)==null?void 0:ue.extra)==null?void 0:oe.cite},null,8,["cite-data"])):[K.unref(oi).User,K.unref(oi).Role].includes(U.message.role)?(K.openBlock(),K.createElementBlock(K.Fragment,{key:1},[l.value?(K.openBlock(),K.createBlock(MUn,{key:0,"auto-focus":!0,"model-value":U.message.content,onCancel:H[0]||(H[0]=ge=>l.value=!1),onSubmit:P},null,8,["model-value"])):(K.openBlock(),K.createElementBlock("p",EUn,[O.value&&o.showTime?(K.openBlock(),K.createElementBlock("span",LUn,K.toDisplayString(O.value),1)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",{class:"markdown-content",innerHTML:D.value},null,8,DUn)]))],64)):(K.openBlock(),K.createElementBlock("p",NUn,[O.value&&o.showTime?(K.openBlock(),K.createElementBlock("span",OUn,K.toDisplayString(O.value),1)):K.createCommentVNode("v-if",!0),E.value?(K.openBlock(),K.createElementBlock("i",{key:1,class:K.normalizeClass(E.value)},null,2)):K.createCommentVNode("v-if",!0),U.message.status===K.unref(M1).Loading?(K.openBlock(),K.createElementBlock("svg",BUn,H[2]||(H[2]=[K.createElementVNode("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):K.createCommentVNode("v-if",!0),U.message.status===K.unref(M1).Fail?(K.openBlock(),K.createElementBlock("span",PUn,K.toDisplayString(U.message.content),1)):(K.openBlock(),K.createElementBlock("span",{key:4,class:K.normalizeClass({"markdown-content":!0,loading:U.message.status===K.unref(M1).Loading}),innerHTML:D.value},null,10,jUn))])),!l.value&&U.message.status!==K.unref(M1).Loading?(K.openBlock(),K.createElementBlock("div",FUn,[K.createElementVNode("i",{class:"bkai-icon bkai-fuzhi",onClick:V}),K.createElementVNode("i",{class:"bkai-icon bkai-yinyong",onClick:Q}),U.message.role===K.unref(oi).Ai?(K.openBlock(),K.createElementBlock("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:$})):K.createCommentVNode("v-if",!0),U.message.role===K.unref(oi).User?(K.openBlock(),K.createElementBlock("i",{key:1,class:"bkai-icon bkai-bianji",onClick:H[1]||(H[1]=ge=>l.value=!0)})):K.createCommentVNode("v-if",!0),K.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:Y})])):K.createCommentVNode("v-if",!0)],2)],2))}}}),zUn=Qf(K.defineComponent({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(n,{expose:r,emit:i}){K.useCssVars(D=>({"0734f233":o.contentMarginBottom+"px"}));const o=n,l=i,h=K.ref(null);let f=0;const p=K.ref(!1),b=()=>{if(!h.value)return;p.value=!0;const{scrollTop:D,scrollHeight:O,clientHeight:P}=h.value;D+P>=O-50&&D>f&&(p.value=!1),f=D},y=()=>{h.value&&h.value.scrollTo({top:h.value.scrollHeight,behavior:"smooth"})},A=()=>{setTimeout(()=>{p.value||y()},100)},x=D=>{l("delete",D)},C=D=>{l("regenerate",D)},T=(D,O)=>{l("resend",D,O)};return r({messageWrapper:h,scrollToBottom:y,scrollToBottomIfNeeded:()=>{p.value||y()},userScrolling:p,resetUserScrolling:()=>{p.value=!1}}),K.onMounted(()=>{h.value&&(h.value.addEventListener("scroll",b),h.value.addEventListener("mermaid-rendered",A))}),K.onBeforeUnmount(()=>{h.value&&(h.value.removeEventListener("scroll",b),h.value.removeEventListener("mermaid-rendered",A))}),(D,O)=>(K.openBlock(),K.createElementBlock("div",{ref_key:"messageWrapper",ref:h,style:K.normalizeStyle({opacity:D.hasSessionContents?1:0}),class:"message-wrapper"},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(D.sessionContents,(P,F)=>(K.openBlock(),K.createElementBlock("div",{key:P.id,class:"message-line-wrapper"},[K.createVNode(RUn,{index:F,message:P,onDelete:x,onRegenerate:C,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),HUn={class:"popup-content"},_Un=["src"],QUn={class:"shortcut-buttons"},VUn=["onClick"],$Un={class:"btn-text ai-blueking-tag-text"},GUn=["onClick"],YUn=Qf(K.defineComponent({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(n,{emit:r}){const i=n,{enablePopup:o}=Nbe(),{isIconVisible:l,iconPosition:h,popupRef:f,clearSelection:p,selectedText:b}=FH(o),y=K.computed(()=>{var $;const Q=i.shortcuts.length>0?i.shortcuts:(($=i.conversationSettings)==null?void 0:$.commands)||[];return typeof i.shortcutFilter=="function"?Q.filter(Y=>{var _;return!!((_=i.shortcutFilter)!=null&&_.call(i,K.toRaw(Y),b.value))}):Q}),A=K.computed(()=>y.value.slice(0,i.shortcutLimit)),x=K.computed(()=>y.value.slice(i.shortcutLimit)),C=K.ref(!1);let T=null,M=null;const E=r,D=()=>{E("click"),l.value=!1},O=()=>{M&&(clearTimeout(M),M=null),C.value=!0},P=()=>{M&&(window.clearTimeout(M),M=null),M=window.setTimeout(()=>{T||(C.value=!1)},100)},F=()=>{T&&(clearTimeout(T),T=null)},R=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{C.value=!1},100)},V=Q=>{try{E("shortcut-click",{shortcut:Q,source:"popup"}),p(),l.value=!1}catch($){console.error("处理快捷按钮点击事件时出错:",$)}};return(Q,$)=>K.unref(l)?(K.openBlock(),K.createElementBlock("div",{key:0,ref_key:"popupRef",ref:f,style:K.normalizeStyle(K.unref(h)),class:"ai-blueking-render-popup",onMousedown:$[0]||($[0]=K.withModifiers(()=>{},["prevent"]))},[K.createElementVNode("div",HUn,[K.createCommentVNode(" AI图标按钮 "),K.createElementVNode("div",{class:"popup-bkai-btn",onClick:D},[K.createElementVNode("img",{class:"avatar",src:K.unref(Cbe),alt:"AI"},null,8,_Un),K.createElementVNode("span",null,K.toDisplayString(K.unref(Do)("问问小鲸")),1)]),K.createCommentVNode(" 快捷按钮组 "),K.createElementVNode("div",QUn,[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(A.value,(Y,_)=>(K.openBlock(),K.createElementBlock("div",{key:_,class:"shortcut-btn",onClick:U=>V(Y)},[Y.icon?(K.openBlock(),K.createElementBlock("i",{key:0,class:K.normalizeClass(Y.icon)},null,2)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",$Un,K.toDisplayString(Y.name),1)],8,VUn))),128)),K.createCommentVNode(" 更多按钮 "),x.value.length>0?(K.openBlock(),K.createElementBlock("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:P},[$[1]||($[1]=K.createElementVNode("span",{class:"btn-text"},"更多",-1)),$[2]||($[2]=K.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)),K.createCommentVNode(" 更多菜单 "),C.value?(K.openBlock(),K.createElementBlock("div",{key:0,class:"more-menu",onMouseenter:F,onMouseleave:R},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(x.value,(Y,_)=>(K.openBlock(),K.createElementBlock("div",{key:_,class:"more-menu-item",onClick:U=>V(Y)},[Y.icon?(K.openBlock(),K.createElementBlock("i",{key:0,class:K.normalizeClass(Y.icon)},null,2)):K.createCommentVNode("v-if",!0),K.createElementVNode("span",null,K.toDisplayString(Y.name),1)],8,GUn))),128))],32)):K.createCommentVNode("v-if",!0)],32)):K.createCommentVNode("v-if",!0)])])],36)):K.createCommentVNode("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function UUn(n){const{greetingMaxHeight:r}=n,i=K.ref(0),o=K.ref();return{greetingTextHeight:i,greetingSectionRef:o,updateGreetingTextHeight:()=>{K.nextTick(()=>{o.value&&(i.value=o.value.getGreetingHeight())})},getInputContainerStyle:f=>{if(!f){const b=i.value,y=Math.min(b-22,r-22);return{top:`${188+Math.max(0,y)}px`}}return{}}}}function JUn(){const n=new zQe({html:!0,breaks:!0,highlight:(o,l)=>{if(l&&yZ.getLanguage(l))try{return yZ.highlight(o,{language:l}).value}catch{}return""}}).use(Y2e).use(Qat).use(Vat),r=o=>{if(!o)return"";try{const l=n.render(o);return rA.sanitize(l,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(l){return console.warn("Markdown rendering failed:",l),o.replace(/</g,"<").replace(/>/g,">")}};return{renderMarkdown:r,createMarkdownRenderer:o=>K.computed(()=>r(o.value))}}function WUn(){const n=K.ref();return{messageListRef:n,scrollMainToBottom:()=>{var l;(l=n.value)==null||l.scrollToBottom()},scrollToBottomIfNeeded:()=>{var l;(l=n.value)==null||l.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var l;(l=n.value)==null||l.resetUserScrolling()}}}function qUn(n={}){const r=n.initWidth||400,i=n.minWidth||400,o=n.minHeight||400,l=n.maxWidthPercent||40,h=n.miniHeight||800,f=n.miniPadding!==void 0?n.miniPadding:0,p=K.ref(n.defaultLeft!==void 0?n.defaultLeft:window.innerWidth-r),b=K.ref(n.defaultTop!==void 0?n.defaultTop:0),y=K.ref(n.defaultHeight!==void 0?n.defaultHeight:window.innerHeight-(n.defaultTop!==void 0?n.defaultTop:0)),A=K.ref(r),x=K.ref(b.value),C=K.ref(p.value),T=K.ref(A.value),M=K.ref(y.value),E=K.ref(Math.max(window.innerWidth*(l/100),T.value)),D=K.ref(!1),O=K.ref(0),P=(Q,$)=>{C.value=Q,x.value=$,O.value=Q-(window.innerWidth-T.value)},F=(Q,$,Y,_)=>{C.value=Q,x.value=$,T.value=Math.min(Y,E.value),M.value=_},R=()=>{E.value=Math.max(window.innerWidth*(l/100),T.value),K.nextTick(()=>{if(D.value)C.value=window.innerWidth-T.value-f,x.value=window.innerHeight-h-f;else{const Q=window.innerWidth-T.value-O.value;C.value=Math.max(0,Q),setTimeout(()=>{M.value=window.innerHeight-x.value},0)}T.value>E.value&&(T.value=E.value)})},V=()=>{D.value?(x.value=b.value,K.nextTick(()=>{M.value=y.value,C.value=p.value,T.value=A.value})):(x.value=window.innerHeight-h-f,C.value=p.value-f,T.value=r,M.value=h),D.value=!D.value};return K.onMounted(()=>{window.addEventListener("resize",R)}),K.onBeforeUnmount(()=>{window.removeEventListener("resize",R)}),{minWidth:i,minHeight:o,maxWidth:E,top:x,left:C,width:T,height:M,isCompressionHeight:D,handleDragging:P,handleResizing:F,toggleCompression:V}}function ZUn(n){const{selectedText:r,isShow:i,handleShow:o}=n,l=K.ref();return{currentShortcut:l,handleShortcutClick:p=>{var E,D;const{shortcut:b,source:y="main"}=p,A=b;let x;try{x=JSON.parse(JSON.stringify(A))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),x={...A,components:A.components?[...A.components]:A.components}}!i.value&&o();const C=(E=x.components)==null?void 0:E.find(O=>O.fillBack);if(C){let O=r.value;if(C.fillRegx)try{const P=new RegExp(C.fillRegx),F=r.value.match(P);F&&F.length>0?O=F[0]:O=""}catch(P){console.error("快捷方式组件中的正则表达式无效:",C.fillRegx,P)}C.selectedText=O}const T=((D=x.components)==null?void 0:D.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!==""||O.selectedText:!0))||!x.components||x.components.length===0;["popup","ai-selected"].includes(y)&&T&&(x.autoSubmit=!0),l.value=x},handleCancelShortcut:()=>{l.value=void 0}}}function KUn(n,r=!1){const l=window.innerHeight-48-40,h=window.innerWidth-48-16,f=K.ref(h),p=K.ref(l),b=K.ref(0),y=K.ref(r),A=K.ref(!1),x=K.ref(!1);let C=0;const T=$=>{$?f.value=window.innerWidth-12:f.value=h},M=($,Y)=>{p.value=Y,b.value=Y-l},E=()=>{K.nextTick(()=>{p.value=window.innerHeight-48-40+b.value,y.value?f.value=window.innerWidth-12:f.value=window.innerWidth-48-16})},D=()=>{if(x.value){x.value=!1;return}n("click")},O=()=>{y.value=!y.value,n("minimize",y.value),y.value?f.value=window.innerWidth-12:f.value=window.innerWidth-60},P=($,Y)=>{f.value=$,p.value=Y},F=()=>{A.value=!0},R=()=>{A.value=!1},V=()=>{C=Date.now(),x.value=!1},Q=()=>{Date.now()-C>200&&(x.value=!0)};return K.onMounted(()=>{window.addEventListener("resize",E),E()}),K.onUnmounted(()=>{window.removeEventListener("resize",E)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:f,nimbusTop:p,isMinimize:y,isHovering:A,isDragging:x,handleNimbusDragging:M,handleNimbusMinimize:T,handleClick:D,handleMinimize:O,handleDragging:P,handleMouseEnter:F,handleMouseLeave:R,handleMouseDown:V,handleMouseUp:Q}}const XUn={class:"nimbus-bkai-wrapper"},eJn=["width","height","src"],tJn=Qf(K.defineComponent({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(n,{emit:r}){K.useCssVars($=>({"5eb53786":`${h.value.container}px`,"41a7fdd0":`${h.value.wrapper}px`,"2a593c76":`${h.value.mini.right}px`,bb6a6a86:`${h.value.mini.size}px`,"72d2d3ac":`${h.value.mini.fontSize}px`}));const i=n,o=r,l={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},h=K.computed(()=>l[i.size]),f=K.ref(null),p=K.ref(null),{nimbusLeft:b,nimbusTop:y,isMinimize:A,handleClick:x,handleMinimize:C,handleDragging:T,handleMouseEnter:M,handleMouseLeave:E,handleMouseDown:D,handleMouseUp:O}=KUn(o,i.isMinimize);K.watch(A,$=>{o("update:isMinimize",$)});const P=K.computed(()=>A.value?Do("恢复默认大小"):Do("最小化,将缩成锚点")),{createTooltip:F,destroyAll:R}=PN({theme:"ai-blueking",delay:[0,0]}),V=()=>{K.nextTick(()=>{Q()})},Q=()=>{R(),f.value&&!A.value&&F(f.value,"Cmd + I",{placement:"left"}),p.value&&F(p.value,P.value,{placement:"top"})};return K.watch(()=>A.value,()=>{K.nextTick(()=>{Q()})}),K.onMounted(()=>{K.nextTick(()=>{Q()}),window.addEventListener("resize",V)}),K.onBeforeUnmount(()=>{window.removeEventListener("resize",V)}),($,Y)=>(K.openBlock(),K.createBlock(K.unref(xbe),{active:!$.isPanelShow,axis:"y",draggable:!0,h:h.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:h.value.container,x:K.unref(b),y:K.unref(y),onDragging:K.unref(T)},{default:K.withCtx(()=>[K.createElementVNode("div",{ref_key:"nimbusContainerRef",ref:f,class:K.normalizeClass(["nimbus-container",{"is-minimize":K.unref(A)}]),onClick:Y[1]||(Y[1]=(..._)=>K.unref(x)&&K.unref(x)(..._)),onMousedown:Y[2]||(Y[2]=(..._)=>K.unref(D)&&K.unref(D)(..._)),onMouseenter:Y[3]||(Y[3]=(..._)=>K.unref(M)&&K.unref(M)(..._)),onMouseleave:Y[4]||(Y[4]=(..._)=>K.unref(E)&&K.unref(E)(..._)),onMouseup:Y[5]||(Y[5]=(..._)=>K.unref(O)&&K.unref(O)(..._))},[K.createElementVNode("div",XUn,[K.createElementVNode("img",{width:h.value.img,height:h.value.img,src:K.unref(Cbe),alt:"nimbus"},null,8,eJn)]),K.createElementVNode("i",{ref_key:"minimizeButtonRef",ref:p,class:K.normalizeClass(["nimbus-mini bkai-icon",K.unref(A)?"bkai-yinyong":"bkai-minus-line"]),onClick:Y[0]||(Y[0]=K.withModifiers((..._)=>K.unref(C)&&K.unref(C)(..._),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),nJn={class:"content-wrapper"},rJn={class:"chat-input-wrapper"},iJn={key:0,class:"bottom-tools-bar"},aJn=K.defineComponent({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:Do("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:Do(`输入 "/" 唤出 Prompt
|
|
602
602
|
通过 Shift + Enter 进行换行输入`)},miniPadding:{default:0},initialSessionCode:{default:""},autoSwitchToInitialSession:{type:Boolean,default:!1}},emits:["shortcut-click","close","show","stop","receive-start","receive-text","receive-end","send-message","session-initialized"],setup(n,{expose:r,emit:i}){const o=n,l=i;K.provide(ntt,o.enablePopup);const h=K.ref(),f=K.ref(),p=K.ref(),b=K.ref(!1),y=K.ref(o.defaultMinimize),A=K.ref(""),x=K.ref(!1),C=K.ref(!1);let T=null;const M=K.ref(""),E=K.ref([]),D=K.ref(window.innerHeight),O=K.ref(68),P=BNn(),{renderMarkdown:F}=JUn(),{selectedText:R,citeText:V,setCiteText:Q}=FH(o.enablePopup),{messageListRef:$,scrollMainToBottom:Y,scrollToBottomIfNeeded:_,resetUserScrolling:U}=WUn(),{currentShortcut:H,handleShortcutClick:W,handleCancelShortcut:z}=ZUn({selectedText:R,isShow:b,handleShow:()=>{Gn()}});FSn(),KTn();const{minWidth:ee,minHeight:X,maxWidth:se,top:re,left:ce,width:ue,height:oe,isCompressionHeight:ge,handleDragging:ve,handleResizing:ie,toggleCompression:Ne}=qUn({maxWidthPercent:80,initWidth:o.defaultWidth,defaultHeight:o.defaultHeight,defaultTop:o.defaultTop,defaultLeft:o.defaultLeft,miniPadding:o.miniPadding}),Me=K.computed(()=>D.value-367),{greetingSectionRef:Ie,updateGreetingTextHeight:Oe,getInputContainerStyle:je}=UUn({greetingMaxHeight:Me.value}),Ae=K.computed(()=>je(At.value)),ke=K.computed(()=>{const di=R.value?100:70;return O.value+40+di}),me=K.computed(()=>ENn(o.url)),{currentSession:we,sessionContents:Ee,isLoadingSessionContents:qe,plusSessionContent:Be,plusSessionApi:tn,chat:Ze,stopChat:Wt,setCurrentSession:Yt,setCurrentSessionChain:Sn,currentSessionLoading:ft,reGenerateChat:Zt,reSendChat:it,deleteChat:$e,updateRequestOptions:Je,getAgentInfoApi:Mt,getSessionsApi:Ue,getSessionContentsApi:Qe,modifySessionApi:vt,deleteSessionApi:dt,renameSessionApi:yt,setSessionContents:sn,handleCompleteRole:_e}=jSn({handleStart:()=>{_(),l("receive-start")},handleText:()=>{_(),l("receive-text")},handleEnd:()=>{_(),l("receive-end")},requestOptions:{url:me.value,...o.requestOptions},otherOptions:{hideReferenceDocIcon:!0}});P.registerSdkMethods({setCurrentSession:Yt,setCurrentSessionChain:Sn,setSessionContents:sn,modifySessionApi:vt,deleteSessionApi:dt,renameSessionApi:yt,getSessionContentsApi:Qe,getSessionsApi:Ue,getAgentInfoApi:Mt,plusSessionApi:tn,handleCompleteRole:_e});const tt=K.computed(()=>[...o.prompts,...E.value]),At=K.computed(()=>Ee.value.filter(Zr=>!VX.includes(Zr.role)).length>0),_t=K.computed(()=>{var Zr,di;return((di=(Zr=P.agentInfo.value)==null?void 0:Zr.conversationSettings)==null?void 0:di.enableChatSession)??!0}),$t=K.computed(()=>M.value||Do("输入你的问题,助你高效的完成工作")),Vn=async()=>{if(T){await T;return}C.value&&!T||(T=(async()=>{try{const{conversationSettings:Zr}=await P.initSession();M.value=(Zr==null?void 0:Zr.openingRemark)||"",E.value=(Zr==null?void 0:Zr.predefinedQuestions)||[],C.value=!0,l("session-initialized",{openingRemark:M.value,predefinedQuestions:E.value})}finally{T=null,Oe()}})(),await T)};K.watch(()=>me.value,(Zr,di)=>{Zr!==di&&Zr&&(Je({url:Zr,...o.requestOptions}),C.value=!1,T=null,Vn())}),K.watch(()=>o.requestOptions,Zr=>{Je({url:me.value,...Zr})},{deep:!0}),K.watch(Ee,()=>{K.nextTick(_)},{deep:!0}),K.watch(()=>b.value,Zr=>{Zr&&K.nextTick(()=>{var di;(di=f.value)==null||di.focus()})});const bn=async Zr=>{if(!Zr)return;C.value||await Vn();const di=P.sessionList.value.find(Ko=>Ko.sessionCode===Zr);return di?(await P.switchSessionWithContents(di),!0):!1},Rr=()=>{D.value=window.innerHeight};K.onMounted(async()=>{window.addEventListener("resize",Rr),me.value&&!o.defaultMinimize&&(await Vn(),o.initialSessionCode&&o.autoSwitchToInitialSession&&await bn(o.initialSessionCode)),Y2e.useCopyCode()}),K.onBeforeUnmount(()=>{window.removeEventListener("resize",Rr)});const Xr=Zr=>{l("shortcut-click",{shortcut:Zr.shortcut,source:Zr.source}),W(Zr)},Jr=Zr=>{const di={...Zr.shortcut,_source:Zr.source};l("shortcut-click",{shortcut:di,source:Zr.source}),W({shortcut:di,source:Zr.source})},si=Zr=>{O.value=Zr},pi=()=>{b.value=!1,l("close")},Gn=async Zr=>{b.value=!0,l("show"),C.value||await Vn(),Zr&&await bn(Zr),Oe()},ui=()=>{Gn()},Hr=()=>{Y()},Zi=async Zr=>{var os,Tl,Bc,ss,cs,rs,Ci;if(!Zr.trim())return;!C.value&&me.value&&await Vn(),U();const di=Zet(Zr);await Be((os=we.value)==null?void 0:os.sessionCode,{role:oi.User,content:di,sessionCode:(Tl=we.value)==null?void 0:Tl.sessionCode,property:{extra:{cite:V.value,...typeof((Bc=o.requestOptions)==null?void 0:Bc.context)=="function"?(ss=o.requestOptions)==null?void 0:ss.context():(cs=o.requestOptions)==null?void 0:cs.context}}});const Ko=Ee.value.filter(Qt=>!VX.includes(Qt.role)),js=Ko.length===1&&Ko[0].role===oi.User;if(Ze({sessionCode:(rs=we.value)==null?void 0:rs.sessionCode,...o.requestOptions}),js&&((Ci=we.value)!=null&&Ci.sessionCode))try{const Qt=await yt(we.value.sessionCode);Qt!=null&&Qt.sessionName&&await P.getSessionList()}catch(Qt){console.error("自动命名会话失败:",Qt)}l("send-message",di),A.value="",Q("")},Qi=Zr=>{const di=Ee.value[Zr];di&&Zt(di.sessionCode,di,Zr)},Ki=(Zr,{message:di})=>{const Ko=Ee.value[Zr];Ko&&(Ko.content=Zet(di),it(Ko.sessionCode,Ko,Zr))},Ei=()=>{var Zr;(Zr=we==null?void 0:we.value)!=null&&Zr.sessionCode&&(Wt(we.value.sessionCode),l("stop"))},Li=async Zr=>{var Tl,Bc,ss,cs;const{shortcut:di,formData:Ko,citeFormData:js}=Zr;z(),!b.value&&Gn(),ft.value&&Ei(),!C.value&&me.value&&await Vn();const os=js||Ko;await Be((Tl=we.value)==null?void 0:Tl.sessionCode,{role:oi.User,content:di.name,sessionCode:(Bc=we.value)==null?void 0:Bc.sessionCode,property:{extra:{cite:{type:"structured",title:di.name,data:os.map(rs=>({key:rs.__label,value:rs.__value}))},command:di.id,context:[...Ko,...Array.isArray((ss=o.requestOptions)==null?void 0:ss.context)?o.requestOptions.context:[]]}}}),Ze({sessionCode:(cs=we.value)==null?void 0:cs.sessionCode,...o.requestOptions}),l("send-message",di.name)},_a=Zr=>{var di;$e(Zr,(di=we.value)==null?void 0:di.sessionCode)},xa=async()=>{var Zr;Wt((Zr=we.value)==null?void 0:Zr.sessionCode),A.value="",Q(""),sn([])};return r({sessionContents:Ee,handleShow:Gn,handleClose:pi,handleStop:Ei,handleSendMessage:Zi,handleShortcutClick:W,handleDelete:_a,handleRegenerate:Qi,handleResend:Ki,updateRequestOptions:Je,currentSessionLoading:ft,isLoadingSessionContents:qe,updateGreetingTextHeight:Oe,setCurrentSession:Yt,focusInput:()=>{var Zr;(Zr=f.value)==null||Zr.focus()},addNewSession:Zr=>P.addNewSession(Zr),updateSessionName:async(Zr,di)=>P.updateSession(Zr,{sessionName:di}),switchToSession:bn,getSessionList:P.getSessionList,sessionList:P.sessionList,enableChatSession:_t}),(Zr,di)=>{var Ko;return K.openBlock(),K.createBlock(K.Teleport,{to:Zr.teleportTo},[K.createElementVNode("div",{class:K.normalizeClass(["ai-blueking-wrapper",o.extCls??""])},[b.value?(K.openBlock(),K.createBlock(K.unref(xbe),{key:0,ref_key:"resizeWrapper",ref:h,active:b.value,draggable:o.draggable,h:K.unref(oe),"max-width":K.unref(se),"min-height":K.unref(X),"min-width":K.unref(ee),parent:!0,"prevent-deactivation":!0,resizable:!0,w:K.unref(ue),x:K.unref(ce),y:K.unref(re),"class-name":"ai-blueking-container-wrapper","drag-handle":".drag-handle",onDragging:K.unref(ve),onResizing:K.unref(ie)},{default:K.withCtx(()=>[K.createElementVNode("div",{ref_key:"rootNode",ref:p,class:"ai-blueking-container"},[K.createVNode(BOn,{show:K.unref(qe)},null,8,["show"]),K.createCommentVNode(" 顶部栏 "),o.hideHeader?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createBlock(XNn,{key:0,title:o.title,"is-compression-height":K.unref(ge),draggable:o.draggable,"show-history-icon":o.showHistoryIcon,"show-new-chat-icon":o.showNewChatIcon,"enable-chat-session":_t.value,onClose:pi,onToggleCompression:K.unref(Ne),onNewChat:xa},null,8,["title","is-compression-height","draggable","show-history-icon","show-new-chat-icon","enable-chat-session","onToggleCompression"])),K.createElementVNode("div",nJn,[K.createCommentVNode(" 主要内容区域 "),K.createElementVNode("div",{class:K.normalizeClass(`main-content ${At.value?"chat-layout":"greeting-layout"}`)},[K.createVNode(NOn,{ref_key:"greetingSectionRef",ref:Ie,title:o.helloText,"greeting-text":$t.value,"has-session-contents":At.value,"render-markdown":K.unref(F),"greeting-max-height":Me.value},null,8,["title","greeting-text","has-session-contents","render-markdown","greeting-max-height"]),K.createVNode(zUn,{ref_key:"messageListRef",ref:$,"session-contents":K.unref(Ee),"has-session-contents":At.value,"content-margin-bottom":ke.value,onDelete:_a,onRegenerate:Qi,onResend:Ki},null,8,["session-contents","has-session-contents","content-margin-bottom"]),K.createVNode(K.unref(ybe).div,{transition:{duration:.5,ease:[.33,1,.68,1],type:"tween",layoutId:"chat-input"},class:K.normalizeClass(`chat-input-container ${At.value?"bottom":"centered"}`),style:K.normalizeStyle(At.value?void 0:Ae.value),layout:""},{default:K.withCtx(()=>{var js;return[K.createElementVNode("div",rJn,[K.unref(ft)||x.value?(K.openBlock(),K.createElementBlock("div",iJn,[K.unref(ft)?(K.openBlock(),K.createBlock(Xet,{key:0,color:"#EA3636",icon:"bkaitingzhishengcheng",text:K.unref(Do)("停止生成"),onClick:Ei},null,8,["text"])):K.createCommentVNode("v-if",!0),x.value?(K.openBlock(),K.createBlock(Xet,{key:1,color:"#979BA5",icon:"bkaijiantou",text:K.unref(Do)("返回底部"),onClick:Hr},null,8,["text"])):K.createCommentVNode("v-if",!0)])):K.createCommentVNode("v-if",!0),K.unref(H)?(K.openBlock(),K.createBlock(IOn,{key:K.unref(H).id,shortcut:K.unref(H),"root-node":p.value,onCancel:K.unref(z),onSubmit:Li},null,8,["shortcut","root-node","onCancel"])):(K.openBlock(),K.createBlock(xOn,{key:2,class:K.normalizeClass(At.value?"chat-layout":"greeting-layout"),modelValue:A.value,"onUpdate:modelValue":di[0]||(di[0]=os=>A.value=os),loading:K.unref(ft)||!1,prompts:tt.value,shortcuts:o.shortcuts,"shortcut-filter":o.shortcutFilter,"conversation-settings":(js=K.unref(P).agentInfo.value)==null?void 0:js.conversationSettings,disabled:o.disabledInput,onHeightChange:si,onSend:Zi,onShortcutClick:Jr,onStop:Ei},null,8,["class","modelValue","loading","prompts","shortcuts","shortcut-filter","conversation-settings","disabled"]))])]}),_:1},8,["class","style"])],2)])],512)]),_:1},8,["active","draggable","h","max-width","min-height","min-width","w","x","y","onDragging","onResizing"])):K.createCommentVNode("v-if",!0),o.hideNimbus?K.createCommentVNode("v-if",!0):(K.openBlock(),K.createBlock(tJn,{key:1,"is-panel-show":b.value,"onUpdate:isPanelShow":di[1]||(di[1]=js=>b.value=js),"is-minimize":y.value,"onUpdate:isMinimize":di[2]||(di[2]=js=>y.value=js),"default-minimize":Zr.defaultMinimize,size:o.nimbusSize,onClick:ui},null,8,["is-panel-show","is-minimize","default-minimize","size"])),K.createVNode(YUn,{shortcuts:o.shortcuts,"conversation-settings":(Ko=K.unref(P).agentInfo.value)==null?void 0:Ko.conversationSettings,"shortcut-limit":o.shortcutLimit,"shortcut-filter":o.shortcutFilter,onClick:di[3]||(di[3]=js=>b.value=!0),onShortcutClick:Xr},null,8,["shortcuts","conversation-settings","shortcut-limit","shortcut-filter"])],2)],8,["to"])}}}),oJn=Qf(aJn,[["__scopeId","data-v-ea251cd6"]]);(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="bkai" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="bkai-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="bkai-angle-down" viewBox="0 0 32 32"><path fill="#63656E" d="M9 14l1.5-1.5L16 18l5.5-5.5L23 14l-7 7z"/></symbol><symbol id="bkai-close-circle-shape" viewBox="0 0 64 64"><path fill="#737987" d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm11.3 36.5l-2.8 2.8-8.5-8.5-8.5 8.5-2.8-2.8 8.5-8.5-8.5-8.5 2.8-2.8 8.5 8.5 8.5-8.5 2.8 2.8-8.5 8.5 8.5 8.5z"/></symbol><symbol id="bkai-close-line-2" viewBox="0 0 64 64"><path d="M52 16.2L47.8 12 32 27.8 16.2 12 12 16.2 27.8 32 12 47.8l4.2 4.2L32 36.2 47.8 52l4.2-4.2L36.2 32z"/></symbol><symbol id="bkai-minus-line" viewBox="0 0 1024 1024"><path d="M128 448h768v128H128V448z" class="st0"/></symbol><symbol id="bkai-visible1" viewBox="0 0 1024 1024"><path d="M512 384a128 128 0 10128 128 128 128 0 00-128-128zm0 192a64 64 0 1164-64 64 64 0 01-64 64z"/><path d="M512 240C264.64 240 64 512 64 512s200.64 272 448 272 448-272 448-272-200.64-272-448-272zm0 480c-160 0-304-139.04-364.96-208C208 442.88 352 304 512 304s304 139.04 364.96 208C816 581.12 672 720 512 720z"/></symbol><symbol id="bkai-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="bkai-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="bkai-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="bkai-shipin-2" viewBox="0 0 1024 1024"><path fill="#FF9C01" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM433.067 486.16v161.072c0 44.295 29.53 60.402 67.113 36.242l107.381-71.14c36.242-26.846 36.242-67.114 0-91.275L500.18 449.92c-36.241-24.16-67.113-8.053-67.113 36.241zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-tupian-2" viewBox="0 0 1024 1024"><path fill="#699DF4" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-18.4 512l-112 144-80-96-112 144h448l-144-192zM480 448c-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64zm122-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-wenben-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-yasuobao-2" viewBox="0 0 1024 1024"><path fill="#63656E" fill-rule="evenodd" d="M623.999 64c26.5 0 63.499 15.5 82 34l156 156c18.5 18.5 34.001 55.5 34.001 82v576.001c0 26.5-21.5 47.999-48.002 47.999H176c-26.5 0-48-21.5-48-47.999V112c0-26.5 21.5-48 48-48h447.999zM296 456h-64v222h128V518h-64v-62zm16 110v64h-32v-64h32zm48-174h-64v64h64v-64zm-64-64h-64v64h64v-64zm64-64h-64v64h64v-64zm280-132v188h188c-3-8.5-7.501-17-11.001-20.5L660.499 143c-3.5-3.5-12-8-20.499-11zm-344 68h-64v64h64v-64zm64-64h-64v64h64v-64z"/></symbol><symbol id="bkai-yinle-2" viewBox="0 0 1024 1024"><path fill="#F8B4B4" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-6.312 385.187l-133.876 40.95c-16.187 4.637-29.4 21.525-29.4 37.712v141.225s-9.712-6.562-31.324-3.5c-31.763 4.55-57.488 28.875-57.488 54.425 0 25.55 25.725 41.213 57.488 36.663 31.762-4.463 55.037-28.088 55.037-53.638V582.449c0-11.375 13.65-16.187 13.65-16.187l118.387-37.1s13.126-4.375 13.126 7.7v96.862s-12.076-6.912-33.688-4.287c-31.762 3.85-57.488 27.65-57.488 53.2 0 25.55 25.726 41.737 57.488 37.887 31.762-3.85 57.488-27.65 57.488-53.2V470.187c0-16.275-13.126-25.638-29.4-21zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-doc-3" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="bkai-excel-2" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="bkai-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-pdf-2" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="bkai-ppt-2" viewBox="0 0 1024 1024"><path fill="#FF5656" fill-rule="evenodd" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM540.487 323.829H199.154v341.333h85.333V579.83h256v-256zm-85.333 85.333v85.333H284.487v-85.333h170.667z"/></symbol><symbol id="bkai-sousuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M478.72 128c193.6 0 350.72 157.12 350.72 350.72 0 82.88-28.8 159.04-76.8 218.88l131.84 131.84c15.36 15.36 15.36 40 0 55.04s-40 15.36-55.04 0L697.6 752.64c-60.16 48-136 76.8-218.88 76.8-193.6 0-350.72-157.12-350.72-350.72S285.12 128 478.72 128zm0 78.4c-150.4 0-272.32 121.92-272.32 272.32s121.92 272.32 272.32 272.32c58.56 0 114.24-18.56 160.32-52.16l9.6-7.36 23.68-19.2 19.2-23.68c35.84-44.8 56.64-99.52 59.2-157.44l.32-12.48c0-150.4-121.92-272.32-272.32-272.32z" clip-rule="evenodd"/></symbol><symbol id="bkai-chouti" viewBox="0 0 1024 1024"><path d="M864 160c35.346 0 64 28.654 64 64v576c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V224c0-35.346 28.654-64 64-64zm-320 64H160v576h384V224zm320 0H608v576h256V224zm-64 224v64H672v-64h128zm0-128v64H672v-64h128z"/></symbol><symbol id="bkai-liaotianchuang" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M832 160c35.346 0 64 28.654 64 64v569.6c0 38.88-28.654 70.4-64 70.4H192c-35.346 0-64-31.52-64-70.4V224c0-35.346 28.654-64 64-64h640zm0 192H192v448h640V352zM704 224c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm192 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z"/></symbol><symbol id="bkai-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="bkai-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="bkai-published-zhongzhi" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 96c229.75 0 416 186.25 416 416S741.75 928 512 928 96 741.75 96 512 282.25 96 512 96zm0 64c-194.404 0-352 157.596-352 352s157.596 352 352 352 352-157.596 352-352-157.596-352-352-352zm16 208c70.692 0 128 57.308 128 128v32c0 70.692-57.308 128-128 128h-32c-70.692 0-128-57.308-128-128v-32c0-70.692 57.308-128 128-128h32z"/></symbol><symbol id="bkai-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z" clip-rule="evenodd"/></symbol><symbol id="bkai-diancai" viewBox="0 0 1024 1024"><path d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320zm35.008-73.024L352 560.96V192h383.517l108 384H544v160c0 33.189-11.849 56.887-38.4 76.8-4.222 3.167-11.054 6.421-20.402 9.518l-2.19.658z"/></symbol><symbol id="bkai-diancaishixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320z"/></symbol><symbol id="bkai-dianzan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zM448 128c44.402 6.635 76.402 17.301 96 32 42.667 32 64 74.667 64 128v96h235.517a64 64 0 0117.328 2.39c34.026 9.57 53.851 44.912 44.282 78.938l-108 384C789.364 876.93 764.19 896 735.517 896H288V448l160-320zm35.008 73.024L352 463.04V832h383.517l108-384H544V288c0-33.189-11.849-56.887-38.4-76.8-4.222-3.167-11.054-6.421-20.402-9.518l-2.19-.658z"/></symbol><symbol id="bkai-dianzanshixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zm96-.997v448h471.758c14.337 0 26.924-9.535 30.805-23.336l126-448c4.785-17.013-5.128-34.684-22.14-39.469a32 32 0 00-8.665-1.195H608v-96c0-53.333-21.333-96-64-128-19.598-14.699-51.598-25.365-96-32L288 448z"/></symbol><symbol id="bkai-dingyue" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M821.428 128C862.625 128 896 162.015 896 204.003v661.17C896 882.182 882.963 896 866.276 896c-7.693 0-14.609-2.936-19.83-7.715l-.508-.257-300.374-157.852h-.521l-301.416 157.32-3.082 1.13c-5.16 4.294-11.74 6.843-18.82 6.843-16.688 0-29.725-13.82-29.725-30.295V204.003C192 162.015 225.375 128 266.572 128h554.856zm0 60.59H266.572c-8.344 0-15.123 6.909-15.123 15.413l-.025 610.781 269.11-140.414c1.042-.532 1.564-1.063 2.607-1.063 13.558-6.91 30.767-6.91 44.847.531l2.086 1.063 266.47 139.755.007-610.653c0-8.504-6.78-15.413-15.123-15.413zm-95.431 294.975c16.166 0 29.724 13.82 29.724 30.295l-.009 30.268 29.734.027c16.687 0 29.724 13.819 29.724 30.295s-13.037 30.295-29.724 30.295l-29.734-.009.01 30.835c0 16.476-13.559 30.295-29.725 30.295-16.687 0-29.724-13.819-29.724-30.295l-.017-30.835-30.23.009c-16.687 0-29.724-13.819-29.724-30.295s13.559-30.295 29.725-30.295l30.229-.027.017-30.268c0-17.007 13.558-30.295 29.724-30.295zM663.419 231.11c16.688 0 29.725 13.818 29.725 30.294 0 17.008-13.037 30.295-29.725 30.295H424.581c-16.688 0-29.725-13.818-29.725-30.295 0-17.007 13.559-30.294 29.725-30.294h238.838z"/></symbol><symbol id="bkai-fujian" viewBox="0 0 1024 1024"><path d="M470.82 362.7L278.013 549.08c-66.508 64.292-66.483 168.527.058 232.85 66.434 64.22 174.442 64.281 240.881.058l241.055-233.02c13.307-12.862 34.88-12.862 48.188 0 13.307 12.864 13.307 33.719 0 46.581L567.138 828.57c-93.066 89.961-244.221 89.874-337.255-.058-93.15-90.044-93.186-235.988-.06-326.01l337.433-326.182.031-.03c66.643-64.347 174.084-64.453 240.847.088 66.649 64.425 66.805 168.328.02 232.886l-192.85 186.42-144.341 139.53c-40.033 38.697-104.634 38.872-144.705.136-40.08-38.744-40.235-100.85.141-139.88L663.43 269.674c13.306-12.862 34.88-12.862 48.188 0 13.306 12.864 13.306 33.72 0 46.581L374.587 642.051c-13.711 13.253-13.66 33.65-.142 46.717 13.398 12.951 34.85 12.893 48.33-.136l144.34-139.53 192.85-186.42c40.14-38.8 40.048-100.994-.02-139.724-19.121-18.61-45.133-29.078-72.268-29.082-27.134-.003-53.15 10.458-72.275 29.064L470.82 362.7z"/></symbol><symbol id="bkai-lashen" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 192l128.431 159.872h-256L511.492 192zM768 128v64H256v-64h512zM256 832h512v64H256zm224-480h64v320h95.922l-128.43 159.872L383.921 672H480V352z"/></symbol><symbol id="bkai-yasuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 544l128.431 159.872L544 703.84V928h-64V703.84l-96.078.032L511.492 544zM832 480v64H192v-64h640zM544 96v223.968l95.922.032-128.43 159.872L383.921 320l96.078-.032V96h64z"/></symbol><symbol id="bkai-yinyong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M642.272 192v64H416c-106.039 0-192 85.961-192 192s85.961 192 192 192h355.712L640 509.52 686 464l210 208-210 208-46-45.52L771.712 704H416c-138.717 0-251.665-110.33-255.878-248.026L160 448c0-141.385 114.615-256 256-256h226.272z"/></symbol><symbol id="bkai-drill-down" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M932.061 599.866l-144.135-89.362-34.411 55.443L889.21 649.44 564.58 850.993a97.006 97.006 0 01-102.582 0l-324.63-201.554 131.8-82.84-34.411-55.443-142.837 88.71C74.534 610.259 63.915 629.114 64 649.439c-.054 20.49 10.527 39.525 27.92 50.225l335.018 206.773a158.447 158.447 0 00170.105 0l335.018-205.468c17.393-10.7 27.974-29.736 27.918-50.226.555-20.787-10.125-40.25-27.918-50.877zM784.68 383.309l-38.955-52.182-201.27 150.676V80h-64.926v401.803l-201.27-150.676-38.956 52.182L511.99 587.472 784.68 383.31z"/></symbol><symbol id="bkai-liaotianliebiao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M160 192h704c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h352c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h576c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-xinzengliaotian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960c-58.835 0-115.02-11.341-166.49-31.957L96 928l-.005-249.414C75.355 627.09 64 570.87 64 512 64 264.576 264.576 64 512 64zm0 64c-212.077 0-384 171.923-384 384 0 49.608 9.378 97.809 27.401 142.775l4.594 11.462L159.968 864l185.553.043 12.335.002 11.45 4.587C414.25 886.633 462.423 896 512 896c212.077 0 384-171.923 384-384S724.077 128 512 128zm0 160c17.673 0 32 14.327 32 32v160h160c17.673 0 32 14.327 32 32 0 16.41-12.353 29.936-28.268 31.785L704 544H544v160c0 16.41-12.353 29.936-28.268 31.785L512 736c-17.673 0-32-14.327-32-32V544H320c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32h160V320c0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-quxiaozhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M534.3 612.212c29.73 3.15 53.172 13.558 70.325 31.226 27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25s-69.687-10.75-90.562-32.25c-26.58-25.037-40.543-60.55-41.892-106.536l73.262-73.341c-10.663 16.383-15.995 38.341-15.995 65.877 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312 13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-14.43 0-27.021 3.358-37.77 10.074l58.008-57.987zm277.888 7.413c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25h-58.687V896h-57.376V619.625h120.376zM275.37 871.104l.004 24.896h-24.9l24.896-24.896zm549.53-685.26l45.255 45.254-656.195 656.196-45.255-45.255 656.196-656.195zM803 667.625h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938 7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187zm-457.132-48.009l-48.928 48.928-21.565.018-.004 21.55-58.143 58.144.022-79.694h-83.062v-48.937l211.68-.009zM496 96l181.388 192.096L581.484 384H576l-.02 5.504L421.484 544H416V384H224L496 96z"/></symbol><symbol id="bkai-zhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M496 96l272 288H576v160H416V384H224L496 96zM358.062 619.625v48.937h-82.687V896H217.25V668.562h-83.062v-48.937h223.874zm156 284.063c-39.5 0-69.687-10.75-90.562-32.25-28-26.376-42-64.376-42-114 0-50.626 14-88.626 42-114 20.875-21.5 51.062-32.25 90.562-32.25s69.688 10.75 90.563 32.25c27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25zm54.563-74.25c13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-22.874 0-41.124 8.437-54.75 25.313-13.624 16.874-20.437 40.874-20.437 72 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312zm239.25-32.813h-58.687V896h-57.376V619.625h120.376c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25zm27-57.563c7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938z"/></symbol><symbol id="bkai-piliangbianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M573.538 160v57.6H219.077v588.8h585.846V491.2H864v344c0 15.898-13.233 28.8-29.538 28.8H189.538C173.233 864 160 851.098 160 835.2V188.8c0-15.898 13.233-28.8 29.538-28.8h384zm281.653 0L896 203.948 520.81 608 480 564.052 855.19 160z"/></symbol><symbol id="bkai-shanchu" viewBox="0 0 1024 1024"><path d="M659.2 246.4v-60.8c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4V832c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896v-57.6H659.2zm-236.8-44.8c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176v-44.8zm310.4 620.8c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6v518.4z"/><path d="M576 384h64v320h-64V384zM384 384h64v320h-64V384z"/></symbol><symbol id="bkai-yuan-jiahao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm31.984 224.016H480v192.016H288v63.984h192v192h63.984v-192H736v-63.984H543.984V288.016z"/></symbol><symbol id="bkai-yuan-jianhao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm224 416.016H288V544h448v-63.984z"/></symbol><symbol id="bkai-zhushou" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M872.2 454.62C868.485 256.243 714.704 96 525.868 96h-27.734C309.297 96 155.516 256.243 151.8 454.592 118.63 473.812 96 509.282 96 550.3v55.466c0 61.18 49.754 110.934 110.933 110.934 61.18 0 110.934-49.754 110.934-110.934V550.3c-.088-60.802-49.08-110.215-109.88-110.823 10.844-160.714 136.67-288.01 290.146-288.01h27.734c153.504 0 279.302 127.296 290.146 288.01-60.8.608-109.792 50.02-109.88 110.823v55.466c0 50.087 33.558 92.02 79.207 105.748a292.503 292.503 0 01-166.345 107.882c-9.389-28.157-35.714-47.17-65.395-47.23-38.292 0-69.333 31.042-69.333 69.334 0 38.291 31.041 69.333 69.333 69.333a69.056 69.056 0 0058.822-33.03c101.164-17.698 189.385-79.083 241.142-167.787C896.772 694.874 928 654.106 928 605.766V550.3c0-41.018-22.63-76.489-55.8-95.68zM262.4 550.3v55.466c0 30.59-24.877 55.467-55.467 55.467s-55.466-24.877-55.466-55.467V550.3c0-30.59 24.876-55.467 55.466-55.467S262.4 519.71 262.4 550.3zm610.133 55.466c0 29.73-23.573 53.886-52.97 55.217l-2.164-1.026c-.194.444-.499.805-.693 1.22-30.47-.197-55.076-24.94-55.106-55.41V550.3c0-30.59 24.877-55.467 55.467-55.467s55.466 24.877 55.466 55.467v55.466z"/></symbol><symbol id="bkai-bianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M609.6 201.562L712 303.968 304 710.39H203.2V609.584l406.4-408.022zM683.672 128l101.821 101.83-45.255 45.257-101.822-101.83L683.672 128zM128 799.995h768V896H128v-96.005z"/></symbol><symbol id="bkai-shezhi-3" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.141 64c33.285 0 66.664 3.844 73.857 5 14.812 2.5 26.62 13.9 29.623 28.6l12.71 63.4c2.302 11.6 10.208 21.5 21.217 26.1 27.32 11.5 52.84 26.3 76.058 44 9.608 7.2 22.118 9.2 33.426 5.4l61.048-20.6c14.31-4.8 30.123-.2 39.63 11.4 11.51 14.1 22.217 28.9 32.025 44.4l18.614 32.1c8.507 16.3 16.113 33.2 22.618 50.7 5.204 14 1.1 29.7-10.108 39.6L874.021 437c-9.007 7.9-13.41 19.7-12.009 31.6 1.601 14 2.502 28.3 2.502 42.8 0 14.8-.9 29.4-2.702 43.7-1.401 11.9 3.002 23.8 12.01 31.7l48.537 42.7c11.309 9.9 15.312 25.7 10.008 39.8-17.514 46.6-42.633 89.5-73.758 127.2-9.507 11.6-25.22 16-39.43 11.2L757.83 787c-11.308-3.8-23.818-1.7-33.426 5.5-22.817 17.2-47.837 31.8-74.557 43.1-11.109 4.7-19.115 14.5-21.417 26.2l-12.71 63.5c-3.002 14.7-14.711 26.1-29.523 28.6-24.118 4-48.837 6.1-74.057 6.1-24.82 0-49.238-2-72.956-5.9-14.812-2.5-26.621-13.9-29.523-28.6l-12.71-63.3c-2.302-11.6-10.208-21.5-21.217-26.1a355.85 355.85 0 01-75.558-43.5c-9.607-7.2-22.117-9.2-33.426-5.4L205.303 808c-14.21 4.8-29.923.3-39.43-11.2-4.932-5.952-25.037-29.06-41.159-56.796-11.28-19.409-22.147-42.81-32.598-70.204-5.304-14.1-1.301-29.9 10.008-39.8l48.537-42.6c9.007-7.9 13.51-19.7 12.01-31.5-1.902-14.5-2.803-29.4-2.803-44.5 0-14.7.901-29.2 2.702-43.5 1.502-11.9-3.002-23.8-12.009-31.7l-48.638-42.7c-11.308-9.9-15.311-25.7-10.007-39.8 4.503-12 9.507-23.7 14.911-35.1.4-.9.9-1.7 1.401-2.6l32.025-55.4c.5-.9 1-1.8 1.601-2.6 7.406-10.6 15.112-20.9 23.318-30.9 9.508-11.6 25.32-16.1 39.531-11.3l61.147 20.7c11.41 3.8 23.919 1.8 33.526-5.5 23.519-17.8 49.138-32.7 76.66-44.2a35.8 35.8 0 0021.316-26.1l12.61-63.2c2.902-14.8 14.711-26.2 29.623-28.6 6.77-1.094 39.618-4.9 72.556-4.9zm28.022 64h-56.544l-2.802.2c-7.106.6-12.91 5.8-14.311 12.7l-10.308 51.6-5.304 26.7c-1.101 5.4-5.004 9.9-10.208 11.8l-25.72 9.2c-32.525 11.6-62.449 28.9-88.97 51.3l-20.815 17.6c-4.203 3.6-10.008 4.7-15.312 2.9l-25.82-8.7-50.039-16.9c-6.705-2.3-14.11.1-18.114 5.9-.1.1-.2.3-.3.4l-.7 1.2-30.324 52.5-.6 1.2-1.008 2.804c-1.462 5.706.364 11.853 4.91 15.796l39.831 35 20.416 17.9c4.103 3.7 6.105 9.2 5.104 14.7l-4.704 26.7c-3.002 16.7-4.503 33.9-4.503 51 0 17.4 1.501 34.8 4.604 51.7l4.803 26.8c1.001 5.4-.9 11-5.104 14.7l-20.516 18-39.53 34.8c-5.304 4.7-6.805 12.3-3.803 18.7l2.802 5.7c.2.3.3.6.5.9l23.519 40.7.6.9c1.501 2.4 3.203 4.8 4.804 7.1 4.003 5.7 11.309 8.1 18.014 5.9l50.539-17 25.62-8.7c5.204-1.8 11.108-.7 15.312 2.9l20.816 17.4c26.22 22.1 55.943 39.2 88.068 50.7l25.62 9.2c5.204 1.9 9.107 6.3 10.208 11.8l5.304 26.7 10.308 51.6c1.3 7 7.205 12.1 14.31 12.7 10.509.9 21.017 1.3 31.525 1.3 10.909 0 21.817-.5 32.626-1.4 7.005-.6 12.81-5.8 14.21-12.7l10.409-52 5.304-26.6c1.1-5.4 4.903-9.9 10.108-11.8l25.52-9.3c31.924-11.6 61.347-28.6 87.467-50.6l20.816-17.5c4.203-3.6 10.008-4.7 15.312-2.9l25.72 8.7 50.239 17c6.705 2.3 14.11-.1 18.114-5.9 6.105-8.7 11.809-17.6 17.113-26.8 5.504-9.5 10.608-19.1 15.212-28.9 3.002-6.4 1.401-14-3.903-18.7l-39.831-34.9-20.416-17.9c-4.103-3.7-6.105-9.2-5.104-14.7l4.704-26.7c3.002-16.7 4.503-33.8 4.503-51 0-16.9-1.5-33.8-4.403-50.3l-4.704-26.6c-.9-5.5 1.001-11 5.204-14.7l20.316-17.8 39.83-34.8c5.305-4.7 6.906-12.2 3.904-18.6-2.102-4.6-4.303-9.2-6.705-13.7l-17.214-29.8c-2.602-4.1-5.304-8.2-8.106-12.2-4.003-5.8-11.409-8.3-18.114-6l-50.039 16.9-25.82 8.7c-5.204 1.8-11.108.7-15.311-2.9L698.485 292c-26.32-22.3-55.943-39.5-88.268-51.2l-25.52-9.3c-5.204-1.9-9.007-6.4-10.108-11.8l-5.304-26.7-10.408-51.9c-1.4-6.9-7.205-12.1-14.21-12.7-1.502-.2-3.003-.3-4.504-.4zM512.24 351.5c88.469 0 160.124 71.6 160.124 160s-71.655 160-160.124 160c-88.468 0-160.124-71.6-160.124-160s71.656-160 160.124-160zm0 64c-52.94 0-96.074 43.1-96.074 96s43.133 96 96.074 96c52.941 0 96.075-43.1 96.075-96s-43.134-96-96.075-96z"/></symbol><symbol id="bkai-history" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M551.32 96C776.665 96 960 282.618 960 512S776.666 928 551.32 928v-66.56c189.284 0 343.291-156.749 343.291-349.44S740.604 162.56 551.319 162.56c-183.76 0-333.843 147.863-342.458 332.8h117.39L179.124 668.283 32 495.36h111.047C151.678 273.665 331.449 96 551.319 96zm28.445 192v192H800v64H512V288h67.765z"/></symbol><symbol id="bkai-fuzhi" viewBox="0 0 1024 1024"><path d="M672 704v128c0 35.346-28.654 64-64 64H192c-35.346 0-64-28.654-64-64V384c0-35.346 28.654-64 64-64h160V216.889C352 168.242 389.727 128 437.333 128h373.334C858.273 128 896 168.242 896 216.889V615.11C896 663.758 858.273 704 810.667 704H672zm-64-320H192v448h416V384zm64 256h138.667C821.97 640 832 629.302 832 615.111V216.89C832 202.698 821.97 192 810.667 192H437.333C426.03 192 416 202.698 416 216.889V320h192c35.346 0 64 28.654 64 64v256z"/></symbol><symbol id="bkai-zhongxinshengcheng" viewBox="0 0 1024 1024"><path d="M844.077 379.897c16.38 41.657 25.316 87.777 25.316 132.41 0 197.87-160.827 357.06-357.393 357.06-84.88 0-166.783-29.755-230.816-84.802h71.478v-59.51H184.39v166.628h59.566v-60.997c175.718 147.287 439.295 124.97 586.719-50.584 101.261-120.508 125.087-285.648 64.033-429.96l-50.63 29.755zM179.923 644.717c-16.38-41.658-25.316-87.778-25.316-132.41 0-197.871 160.827-357.061 357.393-357.061 84.88 0 166.783 29.755 230.816 84.802h-71.478v59.51H839.61V132.93h-59.566v60.998C604.326 45.152 340.75 68.956 193.325 244.51 92.064 365.02 68.238 530.16 129.292 674.471l50.63-29.754z"/></symbol><symbol id="bkai-fenxiang" viewBox="0 0 1024 1024"><path d="M954.297 473.916L566.932 132.133c-10.735-9.437-27.186-1.672-27.186 12.783v200.458c0 8.96-6.884 16.486-15.635 16.844C299.86 370.461 111.31 537.112 71.64 765.644l-7.35 42.41c-2.918 16.485 16.917 26.76 28.235 14.574l28.936-31.3c104.659-113.37 250.037-177.043 401.834-176.446 9.1 0 16.568 7.526 16.568 16.844v196.158c0 14.455 16.568 22.22 27.185 12.783L954.414 499.48c7.467-6.81 7.467-18.875-.117-25.565zm-796.9 204.998c65.339-153.987 214.218-257.68 384.332-257.68h39.67c9.101 0 16.452-7.527 16.452-16.845V237.977L879.624 486.7 597.851 734.823v-162.23c0-9.319-7.35-16.845-16.452-16.845h-36.053c-140.361-5.734-277.106 38.467-387.949 123.166z"/></symbol><symbol id="bkai-jiahao" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-jieshi" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-fanyi" viewBox="0 0 1024 1024"><path d="M377.6 851.2h-96c-44.8-6.4-83.2-44.8-83.2-89.6v-44.8c0-25.6-19.2-44.8-44.8-44.8-25.6 0-44.8 19.2-44.8 44.8v44.8c0 96 76.8 179.2 179.2 179.2h89.6c25.6 0 44.8-19.2 44.8-44.8 0-25.6-25.6-44.8-44.8-44.8zM640 230.4h89.6c25.6 0 44.8 6.4 64 25.6 19.2 19.2 25.6 38.4 25.6 64v44.8c0 25.6 19.2 44.8 44.8 44.8 25.6 0 44.8-19.2 44.8-44.8V320c0-96-76.8-179.2-179.2-179.2H640c-25.6 0-44.8 19.2-44.8 44.8 0 25.6 19.2 44.8 44.8 44.8zM960 908.8L780.8 467.2c-6.4-6.4-12.8-12.8-19.2-12.8H704c-6.4 0-19.2 6.4-19.2 12.8L505.6 908.8V928c0 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 19.2-6.4 19.2-12.8l44.8-121.6h179.2L857.6 928c6.4 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 12.8-6.4 19.2-12.8 19.2-6.4 19.2-12.8 19.2-19.2zm-288-192L729.6 576l57.6 140.8H672zM505.6 473.6V204.8c0-12.8-12.8-19.2-19.2-19.2H332.8v-64c0-6.4 0-12.8-6.4-12.8S313.6 96 307.2 96h-44.8c-6.4 0-12.8 0-12.8 6.4s-6.4 12.8-6.4 12.8v64h-160c-6.4 0-12.8 0-12.8 6.4-6.4 12.8-6.4 12.8-6.4 19.2v268.8c0 6.4 0 12.8 6.4 12.8 6.4 6.4 12.8 6.4 12.8 6.4h153.6v108.8c0 12.8 12.8 19.2 19.2 19.2h44.8c12.8 0 19.2-12.8 19.2-19.2V492.8h153.6c25.6 0 32-6.4 32-19.2zm-262.4-64h-89.6V275.2h89.6v134.4zm179.2 0h-89.6V275.2h89.6v134.4z"/></symbol><symbol id="bkai-morenchicun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M896 128v64H511.52l128.402 159.872h-256L511.456 192H128v-64h768zM128 832h768v64H128zm383.491-.128L383.922 672h256l-128.43 159.872zm320.367-320.367l-159.872-127.57v256l159.872-128.43zm-639.872 0l159.872-127.57v256l-159.872-128.43z"/></symbol><symbol id="bkai-kuangxuan" viewBox="0 0 1024 1024"><path d="M252.066 832l.03 64h128l-.03-64h-128zM128 798.016V832c0 33.923 26.393 61.681 59.764 63.862l4.173-63.864.063-33.965-64-.017zm244.353-444.408l90.51 362.039 120.129-120.174 251.66 251.635 43.199-43.197-251.663-251.634 108.204-108.16-362.039-90.509zM128 606.016v128l64 .017v-128l-64-.017zm0-192v128l64 .017v-128l-64-.017zm704-184.115v128l64-.013v-128l-64 .013zm-704-7.885v128l64 .017v-128l-64-.017zM192 128c-23.688 0-44.37 12.87-55.437 31.998l55.398 32.048L256 192v-64h-64zm320 0v64h128v-64H512zm-192 0v64h128v-64H320zm384 0v64h128l58.677-25.595C880.802 143.799 858.246 128 832 128H704z"/></symbol><symbol id="bkai-jiantou" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M832 612.37l-91.636-89.143-183.235 178.36-.038-594.36H434.909l.072 594.36-183.345-178.36L160 612.37l336 326.857L832 612.37z"/></symbol><symbol id="bkai-tingzhishengcheng" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M512 75.264c247.424 0 448 200.576 448 448s-200.576 448-448 448-448-200.576-448-448 200.576-448 448-448zm0 64c-212.077 0-384 171.923-384 384s171.923 384 384 384 384-171.923 384-384-171.923-384-384-384zm0 132c139.162 0 252 112.838 252 252s-112.838 252-252 252-252-112.838-252-252 112.838-252 252-252zm76.368 150.177l-76.375 76.374-76.368-76.367-25.448 25.448 76.367 76.368-76.367 76.368 25.467 25.467 76.368-76.368 76.356 76.356 25.448-25.448-76.355-76.356 76.374-76.375-25.467-25.467z"/></symbol><symbol id="bkai-xiaojingyudian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M621.204 0c547.128 0 526.9 748.792 0 682.56C343.257 647.624 136.189 761.437 0 1024 49.384 341.333 256.452 0 621.204 0z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})(),nbn({prefix:"ai-blueking"});const sJn={name:"AiBlueking",render(n){return n("div",{style:{width:"100%"}})},props:{extCls:{default:"",type:String},shortcuts:{default:()=>[],type:Array},enablePopup:{default:!0,type:Boolean},url:{default:"",type:String},prompts:{default:()=>[],type:Array},teleportTo:{default:"body",type:String},title:{type:String},helloText:{type:String},requestOptions:{default:()=>({}),type:Object},defaultMinimize:{default:!1,type:Boolean},hideHeader:{default:!1,type:Boolean},hideNimbus:{default:!1,type:Boolean},draggable:{default:!0,type:Boolean},defaultWidth:{type:Number},defaultHeight:{type:Number},defaultLeft:{type:Number},defaultTop:{type:Number},disabledInput:{default:!1,type:Boolean},initialSessionCode:{type:String,default:""},autoSwitchToInitialSession:{type:Boolean,default:!1},shortcutLimit:{type:Number,default:3},shortcutFilter:{type:Function,default:void 0}},data(){return{app:null,unWatchStack:[]}},created(){const n=this.$emit.bind(this);let r=null,i=null;const o=this;this.app=K.createApp({render(){return r=this,i=K.h(oJn,{extCls:o.extCls,shortcuts:o.shortcuts,shortcutLimit:o.shortcutLimit,shortcutFilter:o.shortcutFilter,enablePopup:o.enablePopup,url:o.url,title:o.title,helloText:o.helloText,requestOptions:o.requestOptions,prompts:o.prompts,disabledInput:o.disabledInput,teleportTo:o.teleportTo,defaultMinimize:o.defaultMinimize,hideHeader:o.hideHeader,hideNimbus:o.hideNimbus,draggable:o.draggable,defaultWidth:o.defaultWidth,defaultHeight:o.defaultHeight,defaultLeft:o.defaultLeft,defaultTop:o.defaultTop,initialSessionCode:o.initialSessionCode,autoSwitchToInitialSession:o.autoSwitchToInitialSession,onClose(){n("close",...arguments)},onStop(){n("stop",...arguments)},onShortcutClick(){n("shortcut-click",...arguments)},onShow(){n("show",...arguments)},onSendMessage(){n("send-message",...arguments)},onReceiveStart(){n("receive-start",...arguments)},onReceiveEnd(){n("receive-end",...arguments)},onReceiveText(){n("receive-text",...arguments)},onSessionInitialized(){n("session-initialized",...arguments)},...o.$attrs}),i}}),this.unWatchStack=Object.keys(this.$props).map(l=>this.$watch(l,()=>{r.$forceUpdate()},{deep:!0})),this.handleShow=l=>{i.component.exposed.handleShow(l)},this.handleStop=()=>{i.component.exposed.handleStop()},this.handleShortcutClick=l=>{i.component.exposed.handleShortcutClick(l)},this.sendChat=l=>{i.component.exposed.sendChat(l)},this.handleClose=()=>{i.component.exposed.handleClose()},this.handleSendMessage=l=>{i.component.exposed.handleSendMessage(l)},this.handleDelete=l=>{i.component.exposed.handleDelete(l)},this.handleRegenerate=l=>{i.component.exposed.handleRegenerate(l)},this.handleResend=(l,h)=>{i.component.exposed.handleResend(l,h)},this.updateRequestOptions=l=>{i.component.exposed.updateRequestOptions(l)},this.addNewSession=l=>i.component.exposed.addNewSession(l),this.updateSessionName=(l,h)=>i.component.exposed.updateSessionName(l,h),this.switchToSession=l=>i.component.exposed.switchToSession(l),this.getSessionList=()=>i.component.exposed.getSessionList(),this.sessionList=()=>i.component.exposed.sessionList(),this.enableChatSession=()=>i.component.exposed.enableChatSession(),Object.defineProperty(this,"sessionContents",{get:()=>{const l=i.component.exposed.sessionContents;let h=l&&l.__v_isRef?l.value:l;if(h&&typeof h=="object")try{h=JSON.parse(JSON.stringify(h))}catch{Array.isArray(h)&&(h=[...h])}return Array.isArray(h)?h:[]}})},mounted(){var n;(n=this.app)==null||n.mount(this.$el)},beforeDestroy(){var n;this.unWatchStack.forEach(r=>r==null?void 0:r()),(n=this.app)==null||n.unmount()}};class tb{constructor(r,i,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=i,this.end=o}static range(r,i){return i?!r||!r.loc||!i.loc||r.loc.lexer!==i.loc.lexer?null:new tb(r.loc.lexer,r.loc.start,i.loc.end):r&&r.loc}}class z4{constructor(r,i){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=i}range(r,i){return new z4(i,tb.range(this,r))}}class zr{constructor(r,i){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var o="KaTeX parse error: "+r,l,h,f=i&&i.loc;if(f&&f.start<=f.end){var p=f.lexer.input;l=f.start,h=f.end,l===p.length?o+=" at end of input: ":o+=" at position "+(l+1)+": ";var b=p.slice(l,h).replace(/[^]/g,"$&̲"),y;l>15?y="…"+p.slice(l-15,l):y=p.slice(0,l);var A;h+15<p.length?A=p.slice(h,h+15)+"…":A=p.slice(h),o+=y+b+A}var x=new Error(o);return x.name="ParseError",x.__proto__=zr.prototype,x.position=l,l!=null&&h!=null&&(x.length=h-l),x.rawMessage=r,x}}zr.prototype.__proto__=Error.prototype;var cJn=function(r,i){return r.indexOf(i)!==-1},lJn=function(r,i){return r===void 0?i:r},uJn=/([A-Z])/g,hJn=function(r){return r.replace(uJn,"-$1").toLowerCase()},fJn={"&":"&",">":">","<":"<",'"':""","'":"'"},dJn=/[&><"']/g;function gJn(n){return String(n).replace(dJn,r=>fJn[r])}var $at=function n(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?n(r.body[0]):r:r.type==="font"?n(r.body):r},pJn=function(r){var i=$at(r);return i.type==="mathord"||i.type==="textord"||i.type==="atom"},mJn=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},bJn=function(r){var i=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return i?i[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(i[1])?null:i[1].toLowerCase():"_relative"},Ua={contains:cJn,deflt:lJn,escape:gJn,hyphenate:hJn,getBaseElem:$at,isCharacterBox:pJn,protocolFromUrl:bJn},E_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:n=>"#"+n},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(n,r)=>(r.push(n),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:n=>Math.max(0,n),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:n=>Math.max(0,n),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:n=>Math.max(0,n),cli:"-e, --max-expand <n>",cliProcessor:n=>n==="Infinity"?1/0:parseInt(n)},globalGroup:{type:"boolean",cli:!1}};function vJn(n){if(n.default)return n.default;var r=n.type,i=Array.isArray(r)?r[0]:r;if(typeof i!="string")return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class bve{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(var i in E_)if(E_.hasOwnProperty(i)){var o=E_[i];this[i]=r[i]!==void 0?o.processor?o.processor(r[i]):r[i]:vJn(o)}}reportNonstrict(r,i,o){var l=this.strict;if(typeof l=="function"&&(l=l(r,i,o)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new zr("LaTeX-incompatible input and strict mode is set to 'error': "+(i+" ["+r+"]"),o);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+r+"]"))}}useStrictBehavior(r,i,o){var l=this.strict;if(typeof l=="function")try{l=l(r,i,o)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(i+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+i+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){var i=Ua.protocolFromUrl(r.url);if(i==null)return!1;r.protocol=i}var o=typeof this.trust=="function"?this.trust(r):this.trust;return!!o}}class dx{constructor(r,i,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=i,this.cramped=o}sup(){return m6[yJn[this.id]]}sub(){return m6[wJn[this.id]]}fracNum(){return m6[AJn[this.id]]}fracDen(){return m6[xJn[this.id]]}cramp(){return m6[kJn[this.id]]}text(){return m6[CJn[this.id]]}isTight(){return this.size>=2}}var vve=0,hte=1,pO=2,vA=3,L_=4,H4=5,mO=6,vg=7,m6=[new dx(vve,0,!1),new dx(hte,0,!0),new dx(pO,1,!1),new dx(vA,1,!0),new dx(L_,2,!1),new dx(H4,2,!0),new dx(mO,3,!1),new dx(vg,3,!0)],yJn=[L_,H4,L_,H4,mO,vg,mO,vg],wJn=[H4,H4,H4,H4,vg,vg,vg,vg],AJn=[pO,vA,L_,H4,mO,vg,mO,vg],xJn=[vA,vA,H4,H4,vg,vg,vg,vg],kJn=[hte,hte,vA,vA,H4,H4,vg,vg],CJn=[vve,hte,pO,vA,pO,vA,pO,vA],to={DISPLAY:m6[vve],TEXT:m6[pO],SCRIPT:m6[L_],SCRIPTSCRIPT:m6[mO]},yve=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function TJn(n){for(var r=0;r<yve.length;r++)for(var i=yve[r],o=0;o<i.blocks.length;o++){var l=i.blocks[o];if(n>=l[0]&&n<=l[1])return i.name}return null}var fte=[];yve.forEach(n=>n.blocks.forEach(r=>fte.push(...r)));function Gat(n){for(var r=0;r<fte.length;r+=2)if(n>=fte[r]&&n<=fte[r+1])return!0;return!1}var bO=80,SJn=function(r,i){return"M95,"+(622+r+i)+`
|
|
603
603
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
604
604
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|