diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 35b6f7122..959f6bb13 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index 35b6f7122..959f6bb13 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/NHbPUWsxvFECb_lv5yo5K/_buildManifest.js b/pilot/server/static/_next/static/NHbPUWsxvFECb_lv5yo5K/_buildManifest.js new file mode 100644 index 000000000..9aa555544 --- /dev/null +++ b/pilot/server/static/_next/static/NHbPUWsxvFECb_lv5yo5K/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,t,a,e,d,f,n,i,u,b,h,k,j,r,o,p,_,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[t,s,c,a,e,f,b,h,"static/chunks/539-dcd22f1f6b99ebee.js","static/chunks/pages/index-5f6b7fd392ff6866.js"],"/_error":["static/chunks/pages/_error-dee72aff9b2e2c12.js"],"/agent":[s,a,e,i,k,"static/chunks/pages/agent-bf06b377cbd5be86.js"],"/chat/[scene]/[id]":["static/chunks/pages/chat/[scene]/[id]-76515749283bf0a9.js"],"/database":[s,c,a,e,i,b,j,k,"static/chunks/643-d2492f894de95084.js","static/chunks/pages/database-671d42822e30d06f.js"],"/datastores":[t,d,n,u,r,o,p,"static/chunks/pages/datastores-934c240249d280f8.js"],"/datastores/documents":[t,_,s,c,d,n,f,u,r,i,o,p,g,"static/chunks/749-fac3e13c5ab7cff1.js","static/chunks/pages/datastores/documents-cabe6fd9ceb2a4bf.js"],"/datastores/documents/chunklist":[t,s,c,d,f,u,g,"static/chunks/pages/datastores/documents/chunklist-9f3e07d54af4b48c.js"],"/models":[_,s,c,a,d,e,n,j,"static/chunks/991-0cfc6e4020e4d683.js","static/chunks/pages/models-23fdae75ae8c0351.js"],"/prompt":[t,s,c,a,d,e,n,f,"static/chunks/45-b98c4238ff6e0cc1.js",h,"static/chunks/61-4b1a896c7810d559.js","static/chunks/367-88244d673d2fa27b.js","static/chunks/pages/prompt-031e47fc3f1ed3cc.js"],sortedPages:["/","/_app","/_error","/agent","/chat/[scene]/[id]","/database","/datastores","/datastores/documents","/datastores/documents/chunklist","/models","/prompt"]}}("static/chunks/347-4d8f7092e4bdfdfb.js","static/chunks/9-8bf443a54ad1b325.js","static/chunks/29107295-90b90cb30c825230.js","static/chunks/566-074186f7bac9291d.js","static/chunks/479-68b22ee2b7a47fb3.js","static/chunks/262-301259b7bd25a2f2.js","static/chunks/647-f9d834aad2c525c1.js","static/chunks/737-8b1fcf8b6e843f49.js","static/chunks/442-197e6cbc1e54109a.js","static/chunks/995-2f502d60cecceeb6.js","static/chunks/411-d9eba2657c72f766.js","static/chunks/615-2e05a69bfa343278.js","static/chunks/813-cce9482e33f2430c.js","static/chunks/928-74244889bd7f2699.js","static/chunks/341-20a63c15c7f45eaf.js","static/chunks/655-1c948938dfd927ff.js","static/chunks/387-03259b62c3d128f7.js","static/chunks/75fc9c18-a784766a129ec5fb.js","static/chunks/963-0ad205f64dc9848d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/g-7DkRI9SHIZ9nvhXpw7n/_ssgManifest.js b/pilot/server/static/_next/static/NHbPUWsxvFECb_lv5yo5K/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/g-7DkRI9SHIZ9nvhXpw7n/_ssgManifest.js rename to pilot/server/static/_next/static/NHbPUWsxvFECb_lv5yo5K/_ssgManifest.js diff --git a/pilot/server/static/_next/static/chunks/249.639225543c3a4262.js b/pilot/server/static/_next/static/chunks/255.881d1ac2e20c50bf.js similarity index 74% rename from pilot/server/static/_next/static/chunks/249.639225543c3a4262.js rename to pilot/server/static/_next/static/chunks/255.881d1ac2e20c50bf.js index b3951abaf..bfc247972 100644 --- a/pilot/server/static/_next/static/chunks/249.639225543c3a4262.js +++ b/pilot/server/static/_next/static/chunks/255.881d1ac2e20c50bf.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[249],{89035:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},50228:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},98165:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},87547:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),a=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},1375:function(e,t,n){"use strict";async function r(e,t){let n;let r=e.getReader();for(;!(n=await r.read()).done;)t(n.value)}function a(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return o},L:function(){return l}});var i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let o="text/event-stream",s="last-event-id";function l(e,t){var{signal:n,headers:l,onopen:u,onmessage:d,onclose:p,onerror:m,openWhenHidden:g,fetch:f}=t,h=i(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,i)=>{let b;let E=Object.assign({},l);function T(){b.abort(),document.hidden||N()}E.accept||(E.accept=o),g||document.addEventListener("visibilitychange",T);let S=1e3,y=0;function A(){document.removeEventListener("visibilitychange",T),window.clearTimeout(y),b.abort()}null==n||n.addEventListener("abort",()=>{A(),t()});let _=null!=f?f:window.fetch,k=null!=u?u:c;async function N(){var n,o;b=new AbortController;try{let n,i,l,c;let u=await _(e,Object.assign(Object.assign({},h),{headers:E,signal:b.signal}));await k(u),await r(u.body,(o=function(e,t,n){let r=a(),i=new TextDecoder;return function(o,s){if(0===o.length)null==n||n(r),r=a();else if(s>0){let n=i.decode(o.subarray(0,s)),a=s+(32===o[s+1]?2:1),l=i.decode(o.subarray(a));switch(n){case"data":r.data=r.data?r.data+"\n"+l:l;break;case"event":r.event=l;break;case"id":e(r.id=l);break;case"retry":let c=parseInt(l,10);isNaN(c)||t(r.retry=c)}}}}(e=>{e?E[s]=e:delete E[s]},e=>{S=e},d),c=!1,function(e){void 0===n?(n=e,i=0,l=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,r=0;for(;i{"open"===t&&(null==n||n(e,r)),p.current=a},[n]),g=r.useMemo(()=>void 0!==a?{open:a}:{},[a]),[f,h]=(0,i.r)({controlledProps:g,initialState:t?{open:!0}:{open:!1},onStateChange:m,reducer:s});return r.useEffect(()=>{f.open||null===p.current||p.current===o.Q.blur||null==u||u.focus()},[f.open,u]),{contextValue:{state:f,dispatch:h,popupId:l,registerPopup:c,registerTrigger:d,triggerElement:u},open:f.open}}({defaultOpen:c,onOpenChange:u,open:n});return(0,l.jsx)(a.D.Provider,{value:d,children:t})}},85241:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(67294);let a=r.createContext(null)},51633:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});let r={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"}},41132:function(e,t,n){"use strict";var r=n(34678),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded")},59301:function(e,t,n){"use strict";var r=n(34678),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz")},51610:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(87462),a=n(63366),i=n(67294),o=n(90512),s=n(94780),l=n(34867),c=n(18719),u=n(13264),d=n(39214),p=n(96682),m=n(39707),g=n(88647);let f=(e,t)=>e.filter(e=>t.includes(e)),h=(e,t,n)=>{let r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){let a=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));a.forEach(a=>{if(-1!==e.keys.indexOf(a)){let i=t[a];void 0!==i&&n((t,n)=>{r===a?Object.assign(t,n):t[e.up(a)]=n},i)}})}else("number"==typeof t||"string"==typeof t)&&n((e,t)=>{Object.assign(e,t)},t)};function b(e){return e?`Level${e}`:""}function E(e){return e.unstable_level>0&&e.container}function T(e){return function(t){return`var(--Grid-${t}Spacing${b(e.unstable_level)})`}}function S(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${b(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${b(e.unstable_level-1)})`}let A=({theme:e,ownerState:t})=>{let n=T(t),r={};return h(e.breakpoints,t.gridSize,(e,a)=>{let i={};!0===a&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===a&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof a&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${y(t)}${E(t)?` + ${n("column")}`:""})`}),e(r,i)}),r},_=({theme:e,ownerState:t})=>{let n={};return h(e.breakpoints,t.gridOffset,(e,r)=>{let a={};"auto"===r&&(a={marginLeft:"auto"}),"number"==typeof r&&(a={marginLeft:0===r?"0px":`calc(100% * ${r} / ${y(t)})`}),e(n,a)}),n},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=E(t)?{[`--Grid-columns${b(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return h(e.breakpoints,t.columns,(e,r)=>{e(n,{[`--Grid-columns${b(t.unstable_level)}`]:r})}),n},N=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),r=E(t)?{[`--Grid-rowSpacing${b(t.unstable_level)}`]:n("row")}:{};return h(e.breakpoints,t.rowSpacing,(n,a)=>{var i;n(r,{[`--Grid-rowSpacing${b(t.unstable_level)}`]:"string"==typeof a?a:null==(i=e.spacing)?void 0:i.call(e,a)})}),r},C=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),r=E(t)?{[`--Grid-columnSpacing${b(t.unstable_level)}`]:n("column")}:{};return h(e.breakpoints,t.columnSpacing,(n,a)=>{var i;n(r,{[`--Grid-columnSpacing${b(t.unstable_level)}`]:"string"==typeof a?a:null==(i=e.spacing)?void 0:i.call(e,a)})}),r},v=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return h(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},R=({ownerState:e})=>{let t=T(e),n=S(e);return(0,r.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,r.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||E(e))&&(0,r.Z)({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},I=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},O=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},w=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var x=n(85893);let L=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],D=(0,g.Z)(),P=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function M(e){return(0,d.Z)({props:e,name:"MuiGrid",defaultTheme:D})}var F=n(74312),U=n(20407);let B=function(e={}){let{createStyledComponent:t=P,useThemeProps:n=M,componentName:u="MuiGrid"}=e,d=i.createContext(void 0),g=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:i,gridSize:o}=e,c={root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...w(r),...I(o),...n?O(a,t.breakpoints.keys[0]):[]]};return(0,s.Z)(c,e=>(0,l.Z)(u,e),{})},f=t(k,C,N,A,v,R,_),h=i.forwardRef(function(e,t){var s,l,u,h,b,E,T,S;let y=(0,p.Z)(),A=n(e),_=(0,m.Z)(A),k=i.useContext(d),{className:N,children:C,columns:v=12,container:R=!1,component:I="div",direction:O="row",wrap:w="wrap",spacing:D=0,rowSpacing:P=D,columnSpacing:M=D,disableEqualOverflow:F,unstable_level:U=0}=_,B=(0,a.Z)(_,L),H=F;U&&void 0!==F&&(H=e.disableEqualOverflow);let G={},z={},$={};Object.entries(B).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?G[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:$[e]=t});let j=null!=(s=e.columns)?s:U?void 0:v,V=null!=(l=e.spacing)?l:U?void 0:D,W=null!=(u=null!=(h=e.rowSpacing)?h:e.spacing)?u:U?void 0:P,K=null!=(b=null!=(E=e.columnSpacing)?E:e.spacing)?b:U?void 0:M,Y=(0,r.Z)({},_,{level:U,columns:j,container:R,direction:O,wrap:w,spacing:V,rowSpacing:W,columnSpacing:K,gridSize:G,gridOffset:z,disableEqualOverflow:null!=(T=null!=(S=H)?S:k)&&T,parentDisableEqualOverflow:k}),Z=g(Y,y),q=(0,x.jsx)(f,(0,r.Z)({ref:t,as:I,ownerState:Y,className:(0,o.Z)(Z.root,N)},$,{children:i.Children.map(C,e=>{if(i.isValidElement(e)&&(0,c.Z)(e,["Grid"])){var t;return i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:U+1})}return e})}));return void 0!==H&&H!==(null!=k&&k)&&(q=(0,x.jsx)(d.Provider,{value:H,children:q})),q});return h.muiName="Grid",h}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,U.Z)({props:e,name:"JoyGrid"})});var H=B},14553:function(e,t,n){"use strict";n.d(t,{ZP:function(){return _}});var r=n(63366),a=n(87462),i=n(67294),o=n(14142),s=n(33703),l=n(70758),c=n(94780),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(26821);function f(e){return(0,g.d6)("MuiIconButton",e)}(0,g.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var h=n(89996),b=n(85893);let E=["children","action","component","color","disabled","variant","size","slots","slotProps"],T=e=>{let{color:t,disabled:n,focusVisible:r,focusVisibleClassName:a,size:i,variant:s}=e,l={root:["root",n&&"disabled",r&&"focusVisible",s&&`variant${(0,o.Z)(s)}`,t&&`color${(0,o.Z)(t)}`,i&&`size${(0,o.Z)(i)}`]},u=(0,c.Z)(l,f,{});return r&&a&&(u.root+=` ${a}`),u},S=(0,u.Z)("button")(({theme:e,ownerState:t})=>{var n,r,i,o;return[(0,a.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px","--CircularProgress-thickness":"3px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:(0,a.Z)({"--Icon-color":"currentColor"},e.focus.default)}),(0,a.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":(0,a.Z)({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':(0,a.Z)({"--Icon-color":"currentColor"},null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]),"&:disabled":null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})]}),y=(0,u.Z)(S,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A=i.forwardRef(function(e,t){var n;let o=(0,d.Z)({props:e,name:"JoyIconButton"}),{children:c,action:u,component:g="button",color:f="neutral",disabled:S,variant:A="plain",size:_="md",slots:k={},slotProps:N={}}=o,C=(0,r.Z)(o,E),v=i.useContext(h.Z),R=e.variant||v.variant||A,I=e.size||v.size||_,{getColor:O}=(0,p.VT)(R),w=O(e.color,v.color||f),x=null!=(n=e.disabled)?n:v.disabled||S,L=i.useRef(null),D=(0,s.Z)(L,t),{focusVisible:P,setFocusVisible:M,getRootProps:F}=(0,l.U)((0,a.Z)({},o,{disabled:x,rootRef:D}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;M(!0),null==(e=L.current)||e.focus()}}),[M]);let U=(0,a.Z)({},o,{component:g,color:w,disabled:x,variant:R,size:I,focusVisible:P,instanceSize:e.size}),B=T(U),H=(0,a.Z)({},C,{component:g,slots:k,slotProps:N}),[G,z]=(0,m.Z)("root",{ref:t,className:B.root,elementType:y,getSlotProps:F,externalForwardedProps:H,ownerState:U});return(0,b.jsx)(G,(0,a.Z)({},z,{children:c}))});A.muiName="IconButton";var _=A},25359:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(63366),a=n(87462),i=n(67294),o=n(14142),s=n(94780),l=n(33703),c=n(92996),u=n(73546),d=n(22644),p=n(7333);function m(e,t){if(t.type===d.F.itemHover)return e;let n=(0,p.R$)(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return(0,a.Z)({},n,{highlightedValue:t.context.items[0]});if(t.type===d.F.keyDown&&"Escape"===t.event.key)return(0,a.Z)({},n,{open:!1});if(t.type===d.F.blur){var r,i,o;if(!(null!=(r=t.context.listboxRef.current)&&r.contains(t.event.relatedTarget))){let e=null==(i=t.context.listboxRef.current)?void 0:i.getAttribute("id"),r=null==(o=t.event.relatedTarget)?void 0:o.getAttribute("aria-controls");return e&&r&&e===r?n:(0,a.Z)({},n,{open:!1,highlightedValue:t.context.items[0]})}}return n}var g=n(85241),f=n(96592),h=n(51633),b=n(12247),E=n(2900);let T={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null};var S=n(26558),y=n(85893);function A(e){let{value:t,children:n}=e,{dispatch:r,getItemIndex:a,getItemState:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:l,registerItem:c,totalSubitemCount:u}=t,d=i.useMemo(()=>({dispatch:r,getItemState:o,getItemIndex:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:l}),[r,a,o,s,l]),p=i.useMemo(()=>({getItemIndex:a,registerItem:c,totalSubitemCount:u}),[c,a,u]);return(0,y.jsx)(b.s.Provider,{value:p,children:(0,y.jsx)(S.Z.Provider,{value:d,children:n})})}var _=n(9572),k=n(7293),N=n(50984),C=n(3419),v=n(43614),R=n(74312),I=n(20407),O=n(55907),w=n(78653),x=n(26821);function L(e){return(0,x.d6)("MuiMenu",e)}(0,x.sI)("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);let D=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],P=e=>{let{open:t,variant:n,color:r,size:a}=e,i={root:["root",t&&"expanded",n&&`variant${(0,o.Z)(n)}`,r&&`color${(0,o.Z)(r)}`,a&&`size${(0,o.Z)(a)}`],listbox:["listbox"]};return(0,s.Z)(i,L,{})},M=(0,R.Z)(N.C,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,r;let i=null==(n=e.variants[t.variant])?void 0:n[t.color];return[(0,a.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==i?void 0:i.backgroundColor)||(null==i?void 0:i.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},C.M,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=i&&i.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup}),"context"!==t.color&&t.invertedColors&&(null==(r=e.colorInversion[t.variant])?void 0:r[t.color])]}),F=i.forwardRef(function(e,t){var n;let o=(0,I.Z)({props:e,name:"JoyMenu"}),{actions:s,children:p,color:S="neutral",component:N,disablePortal:R=!1,keepMounted:x=!1,id:L,invertedColors:F=!1,onItemsChange:U,modifiers:B,variant:H="outlined",size:G="md",slots:z={},slotProps:$={}}=o,j=(0,r.Z)(o,D),{getColor:V}=(0,w.VT)(H),W=R?V(e.color,S):S,{contextValue:K,getListboxProps:Y,dispatch:Z,open:q,triggerElement:X}=function(e={}){var t,n;let{listboxRef:r,onItemsChange:o,id:s}=e,d=i.useRef(null),p=(0,l.Z)(d,r),S=null!=(t=(0,c.Z)(s))?t:"",{state:{open:y},dispatch:A,triggerElement:_,registerPopup:k}=null!=(n=i.useContext(g.D))?n:T,N=i.useRef(y),{subitems:C,contextValue:v}=(0,b.Y)(),R=i.useMemo(()=>Array.from(C.keys()),[C]),I=i.useCallback(e=>{var t,n;return null==e?null:null!=(t=null==(n=C.get(e))?void 0:n.ref.current)?t:null},[C]),{dispatch:O,getRootProps:w,contextValue:x,state:{highlightedValue:L},rootRef:D}=(0,f.s)({disabledItemsFocusable:!0,focusManagement:"DOM",getItemDomElement:I,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:e=>{var t;return(null==C||null==(t=C.get(e))?void 0:t.disabled)||!1},items:R,getItemAsString:e=>{var t,n;return(null==(t=C.get(e))?void 0:t.label)||(null==(n=C.get(e))||null==(n=n.ref.current)?void 0:n.innerText)},rootRef:p,onItemsChange:o,reducerActionContext:{listboxRef:d},selectionMode:"none",stateReducer:m});(0,u.Z)(()=>{k(S)},[S,k]),i.useEffect(()=>{if(y&&L===R[0]&&!N.current){var e;null==(e=C.get(R[0]))||null==(e=e.ref)||null==(e=e.current)||e.focus()}},[y,L,C,R]),i.useEffect(()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==L&&(null==C||null==(t=C.get(L))||null==(t=t.ref.current)||t.focus())},[L,C]);let P=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===_||A({type:h.Q.blur,event:t})},M=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"!==t.key||A({type:h.Q.escapeKeyDown,event:t})},F=(e={})=>({onBlur:P(e),onKeyDown:M(e)});return i.useDebugValue({subitems:C,highlightedValue:L}),{contextValue:(0,a.Z)({},v,x),dispatch:O,getListboxProps:(e={})=>{let t=(0,E.f)(F,w);return(0,a.Z)({},t(e),{id:S,role:"menu"})},highlightedValue:L,listboxRef:D,menuItems:C,open:y,triggerElement:_}}({onItemsChange:U,id:L,listboxRef:t});i.useImperativeHandle(s,()=>({dispatch:Z,resetHighlight:()=>Z({type:d.F.resetHighlight,event:null})}),[Z]);let Q=(0,a.Z)({},o,{disablePortal:R,invertedColors:F,color:W,variant:H,size:G,open:q,nesting:!1,row:!1}),J=P(Q),ee=(0,a.Z)({},j,{component:N,slots:z,slotProps:$}),et=i.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...B||[]],[B]),en=(0,k.y)({elementType:M,getSlotProps:Y,externalForwardedProps:ee,externalSlotProps:{},ownerState:Q,additionalProps:{anchorEl:X,open:q&&null!==X,disablePortal:R,keepMounted:x,modifiers:et},className:J.root}),er=(0,y.jsx)(A,{value:K,children:(0,y.jsx)(O.Yb,{variant:F?void 0:H,color:S,children:(0,y.jsx)(v.Z.Provider,{value:"menu",children:(0,y.jsx)(C.Z,{nested:!0,children:p})})})});return F&&(er=(0,y.jsx)(w.do,{variant:H,children:er})),er=(0,y.jsx)(M,(0,a.Z)({},en,!(null!=(n=o.slots)&&n.root)&&{as:_.r,slots:{root:N||"ul"}},{children:er})),R?er:(0,y.jsx)(w.ZP.Provider,{value:void 0,children:er})});var U=F},59562:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(63366),a=n(87462),i=n(67294),o=n(33703),s=n(85241),l=n(51633),c=n(70758),u=n(2900),d=n(94780),p=n(14142),m=n(26821);function g(e){return(0,m.d6)("MuiMenuButton",e)}(0,m.sI)("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var f=n(20407),h=n(30220),b=n(48699),E=n(66478),T=n(74312),S=n(78653),y=n(89996),A=n(85893);let _=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],k=e=>{let{color:t,disabled:n,fullWidth:r,size:a,variant:i,loading:o}=e,s={root:["root",n&&"disabled",r&&"fullWidth",i&&`variant${(0,p.Z)(i)}`,t&&`color${(0,p.Z)(t)}`,a&&`size${(0,p.Z)(a)}`,o&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]};return(0,d.Z)(s,g,{})},N=(0,T.Z)("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(E.f),C=(0,T.Z)("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),v=(0,T.Z)("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),R=(0,T.Z)("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var n,r;return(0,a.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})}),I=i.forwardRef(function(e,t){var n;let d=(0,f.Z)({props:e,name:"JoyMenuButton"}),{children:p,color:m="neutral",component:g,disabled:E=!1,endDecorator:T,loading:I=!1,loadingPosition:O="center",loadingIndicator:w,size:x="md",slotProps:L={},slots:D={},startDecorator:P,variant:M="outlined"}=d,F=(0,r.Z)(d,_),U=i.useContext(y.Z),B=e.variant||U.variant||M,H=e.size||U.size||x,{getColor:G}=(0,S.VT)(B),z=G(e.color,U.color||m),$=null!=(n=e.disabled)?n:U.disabled||E||I,{getRootProps:j,open:V,active:W}=function(e={}){let{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,d=i.useContext(s.D);if(null===d)throw Error("useMenuButton: no menu context available.");let{state:p,dispatch:m,registerTrigger:g,popupId:f}=d,{getRootProps:h,rootRef:b,active:E}=(0,c.U)({disabled:t,focusableWhenDisabled:n,rootRef:r}),T=(0,o.Z)(b,g),S=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||m({type:l.Q.toggle,event:t})},y=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),m({type:l.Q.open,event:t}))},A=(e={})=>({onClick:S(e),onKeyDown:y(e)});return{active:E,getRootProps:(e={})=>{let t=(0,u.f)(h,A);return(0,a.Z)({},t(e),{"aria-haspopup":"menu","aria-expanded":p.open,"aria-controls":f,ref:T})},open:p.open,rootRef:T}}({rootRef:t,disabled:$}),K=null!=w?w:(0,A.jsx)(b.Z,(0,a.Z)({},"context"!==z&&{color:z},{thickness:{sm:2,md:3,lg:4}[H]||3})),Y=(0,a.Z)({},d,{active:W,color:z,disabled:$,open:V,size:H,variant:B}),Z=k(Y),q=(0,a.Z)({},F,{component:g,slots:D,slotProps:L}),[X,Q]=(0,h.Z)("root",{elementType:N,getSlotProps:j,externalForwardedProps:q,ref:t,ownerState:Y,className:Z.root}),[J,ee]=(0,h.Z)("startDecorator",{className:Z.startDecorator,elementType:C,externalForwardedProps:q,ownerState:Y}),[et,en]=(0,h.Z)("endDecorator",{className:Z.endDecorator,elementType:v,externalForwardedProps:q,ownerState:Y}),[er,ea]=(0,h.Z)("loadingIndicatorCenter",{className:Z.loadingIndicatorCenter,elementType:R,externalForwardedProps:q,ownerState:Y});return(0,A.jsxs)(X,(0,a.Z)({},Q,{children:[(P||I&&"start"===O)&&(0,A.jsx)(J,(0,a.Z)({},ee,{children:I&&"start"===O?K:P})),p,I&&"center"===O&&(0,A.jsx)(er,(0,a.Z)({},ea,{children:K})),(T||I&&"end"===O)&&(0,A.jsx)(et,(0,a.Z)({},en,{children:I&&"end"===O?K:T}))]}))});var O=I},7203:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(87462),a=n(63366),i=n(67294),o=n(14142),s=n(94780),l=n(92996),c=n(33703),u=n(70758),d=n(43069),p=n(51633),m=n(85241),g=n(2900),f=n(14072);function h(e){return`menu-item-${e.size}`}let b={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null};var E=n(39984),T=n(74312),S=n(20407),y=n(78653),A=n(55907),_=n(26821);function k(e){return(0,_.d6)("MuiMenuItem",e)}(0,_.sI)("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var N=n(40780);let C=i.createContext("horizontal");var v=n(30220),R=n(85893);let I=["children","disabled","component","selected","color","orientation","variant","slots","slotProps"],O=e=>{let{focusVisible:t,disabled:n,selected:r,color:a,variant:i}=e,l={root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",a&&`color${(0,o.Z)(a)}`,i&&`variant${(0,o.Z)(i)}`]},c=(0,s.Z)(l,k,{});return c},w=(0,T.Z)(E.r,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=i.forwardRef(function(e,t){let n=(0,S.Z)({props:e,name:"JoyMenuItem"}),o=i.useContext(N.Z),{children:s,disabled:E=!1,component:T="li",selected:_=!1,color:k="neutral",orientation:x="horizontal",variant:L="plain",slots:D={},slotProps:P={}}=n,M=(0,a.Z)(n,I),{variant:F=L,color:U=k}=(0,A.yP)(e.variant,e.color),{getColor:B}=(0,y.VT)(F),H=B(e.color,U),{getRootProps:G,disabled:z,focusVisible:$}=function(e){var t;let{disabled:n=!1,id:a,rootRef:o,label:s}=e,E=(0,l.Z)(a),T=i.useRef(null),S=i.useMemo(()=>({disabled:n,id:null!=E?E:"",label:s,ref:T}),[n,E,s]),{dispatch:y}=null!=(t=i.useContext(m.D))?t:b,{getRootProps:A,highlighted:_,rootRef:k}=(0,d.J)({item:E}),{index:N,totalItemCount:C}=(0,f.B)(null!=E?E:h,S),{getRootProps:v,focusVisible:R,rootRef:I}=(0,u.U)({disabled:n,focusableWhenDisabled:!0}),O=(0,c.Z)(k,I,o,T);i.useDebugValue({id:E,highlighted:_,disabled:n,label:s});let w=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||y({type:p.Q.close,event:t})},x=(e={})=>(0,r.Z)({},e,{onClick:w(e)});function L(e={}){let t=(0,g.f)(x,(0,g.f)(v,A));return(0,r.Z)({},t(e),{ref:O,role:"menuitem"})}return void 0===E?{getRootProps:L,disabled:!1,focusVisible:R,highlighted:!1,index:-1,totalItemCount:0,rootRef:O}:{getRootProps:L,disabled:n,focusVisible:R,highlighted:_,index:N,totalItemCount:C,rootRef:O}}({disabled:E,rootRef:t}),j=(0,r.Z)({},n,{component:T,color:H,disabled:z,focusVisible:$,orientation:x,selected:_,row:o,variant:F}),V=O(j),W=(0,r.Z)({},M,{component:T,slots:D,slotProps:P}),[K,Y]=(0,v.Z)("root",{ref:t,elementType:w,getSlotProps:G,externalForwardedProps:W,className:V.root,ownerState:j});return(0,R.jsx)(C.Provider,{value:x,children:(0,R.jsx)(K,(0,r.Z)({},Y,{children:s}))})});var L=x},63955:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return q}});var a=n(63366),i=n(87462),o=n(67294),s=n(90512),l=n(14142),c=n(94780),u=n(82690),d=n(19032),p=n(99962),m=n(33703),g=n(73546),f=n(59948),h={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},b=n(6414);function E(e,t){return e-t}function T(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function S(e,t){var n;let{index:r}=null!=(n=e.reduce((e,n,r)=>{let a=Math.abs(t-n);return null===e||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},C=e=>e;function v(){return void 0===r&&(r="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),r}var R=n(28442),I=n(74312),O=n(20407),w=n(78653),x=n(30220),L=n(26821);function D(e){return(0,L.d6)("MuiSlider",e)}let P=(0,L.sI)("MuiSlider",["root","disabled","dragging","focusVisible","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","thumb","thumbStart","thumbEnd","valueLabel","valueLabelOpen","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","input"]);var M=n(85893);let F=["aria-label","aria-valuetext","className","classes","disableSwap","disabled","defaultValue","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","color","size","variant","component","slots","slotProps"];function U(e){return e}let B=e=>{let{disabled:t,dragging:n,marked:r,orientation:a,track:i,variant:o,color:s,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",o&&`variant${(0,l.Z)(o)}`,s&&`color${(0,l.Z)(s)}`,u&&`size${(0,l.Z)(u)}`],rail:["rail"],track:["track"],thumb:["thumb",t&&"disabled"],input:["input"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],valueLabelOpen:["valueLabelOpen"],active:["active"],focusVisible:["focusVisible"]};return(0,c.Z)(d,D,{})},H=({theme:e,ownerState:t})=>(n={})=>{var r,a;let o=(null==(r=e.variants[`${t.variant}${n.state||""}`])?void 0:r[t.color])||{};return(0,i.Z)({},!n.state&&{"--variant-borderWidth":null!=(a=o["--variant-borderWidth"])?a:"0px"},{"--Slider-trackColor":o.color,"--Slider-thumbBackground":o.color,"--Slider-thumbColor":o.backgroundColor||e.vars.palette.background.surface,"--Slider-trackBackground":o.backgroundColor||e.vars.palette.background.surface,"--Slider-trackBorderColor":o.borderColor,"--Slider-railBackground":e.vars.palette.background.level2})},G=(0,I.Z)("span",{name:"JoySlider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let n=H({theme:e,ownerState:t});return[(0,i.Z)({"--Slider-size":"max(42px, max(var(--Slider-thumbSize), var(--Slider-trackSize)))","--Slider-trackRadius":"var(--Slider-size)","--Slider-markBackground":e.vars.palette.text.tertiary,[`& .${P.markActive}`]:{"--Slider-markBackground":"var(--Slider-trackColor)"}},"sm"===t.size&&{"--Slider-markSize":"2px","--Slider-trackSize":"4px","--Slider-thumbSize":"14px","--Slider-valueLabelArrowSize":"6px"},"md"===t.size&&{"--Slider-markSize":"2px","--Slider-trackSize":"6px","--Slider-thumbSize":"18px","--Slider-valueLabelArrowSize":"8px"},"lg"===t.size&&{"--Slider-markSize":"3px","--Slider-trackSize":"8px","--Slider-thumbSize":"24px","--Slider-valueLabelArrowSize":"10px"},{"--Slider-thumbRadius":"calc(var(--Slider-thumbSize) / 2)","--Slider-thumbWidth":"var(--Slider-thumbSize)"},n(),{"&:hover":(0,i.Z)({},n({state:"Hover"})),"&:active":(0,i.Z)({},n({state:"Active"})),[`&.${P.disabled}`]:(0,i.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},n({state:"Disabled"})),boxSizing:"border-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&{padding:"calc(var(--Slider-size) / 2) 0",width:"100%"},"vertical"===t.orientation&&{padding:"0 calc(var(--Slider-size) / 2)",height:"100%"},{"@media print":{colorAdjust:"exact"}})]}),z=(0,I.Z)("span",{name:"JoySlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>[(0,i.Z)({display:"block",position:"absolute",backgroundColor:"inverted"===e.track?"var(--Slider-trackBackground)":"var(--Slider-railBackground)",border:"inverted"===e.track?"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)":"initial",borderRadius:"var(--Slider-trackRadius)"},"horizontal"===e.orientation&&{height:"var(--Slider-trackSize)",top:"50%",left:0,right:0,transform:"translateY(-50%)"},"vertical"===e.orientation&&{width:"var(--Slider-trackSize)",top:0,bottom:0,left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1})]),$=(0,I.Z)("span",{name:"JoySlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({ownerState:e})=>[(0,i.Z)({display:"block",position:"absolute",color:"var(--Slider-trackColor)",border:"inverted"===e.track?"initial":"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)",backgroundColor:"inverted"===e.track?"var(--Slider-railBackground)":"var(--Slider-trackBackground)"},"horizontal"===e.orientation&&{height:"var(--Slider-trackSize)",top:"50%",transform:"translateY(-50%)",borderRadius:"var(--Slider-trackRadius) 0 0 var(--Slider-trackRadius)"},"vertical"===e.orientation&&{width:"var(--Slider-trackSize)",left:"50%",transform:"translateX(-50%)",borderRadius:"0 0 var(--Slider-trackRadius) var(--Slider-trackRadius)"},!1===e.track&&{display:"none"})]),j=(0,I.Z)("span",{name:"JoySlider",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({ownerState:e,theme:t})=>{var n;return(0,i.Z)({position:"absolute",boxSizing:"border-box",outline:0,display:"flex",alignItems:"center",justifyContent:"center",width:"var(--Slider-thumbWidth)",height:"var(--Slider-thumbSize)",border:"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)",borderRadius:"var(--Slider-thumbRadius)",boxShadow:"var(--Slider-thumbShadow)",color:"var(--Slider-thumbColor)",backgroundColor:"var(--Slider-thumbBackground)",[t.focus.selector]:(0,i.Z)({},t.focus.default,{outlineOffset:0,outlineWidth:"max(4px, var(--Slider-thumbSize) / 3.6)"},"context"!==e.color&&{outlineColor:`rgba(${null==(n=t.vars.palette)||null==(n=n[e.color])?void 0:n.mainChannel} / 0.32)`})},"horizontal"===e.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===e.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",background:"transparent",top:0,left:0,width:"100%",height:"100%",border:"2px solid",borderColor:"var(--Slider-thumbColor)",borderRadius:"inherit"}})}),V=(0,I.Z)("span",{name:"JoySlider",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>(0,i.Z)({position:"absolute",width:"var(--Slider-markSize)",height:"var(--Slider-markSize)",borderRadius:"var(--Slider-markSize)",backgroundColor:"var(--Slider-markBackground)"},"horizontal"===e.orientation&&(0,i.Z)({top:"50%",transform:"translate(calc(var(--Slider-markSize) / -2), -50%)"},0===e.percent&&{transform:"translate(min(var(--Slider-markSize), 3px), -50%)"},100===e.percent&&{transform:"translate(calc(var(--Slider-markSize) * -1 - min(var(--Slider-markSize), 3px)), -50%)"}),"vertical"===e.orientation&&(0,i.Z)({left:"50%",transform:"translate(-50%, calc(var(--Slider-markSize) / 2))"},0===e.percent&&{transform:"translate(-50%, calc(min(var(--Slider-markSize), 3px) * -1))"},100===e.percent&&{transform:"translate(-50%, calc(var(--Slider-markSize) * 1 + min(var(--Slider-markSize), 3px)))"}))),W=(0,I.Z)("span",{name:"JoySlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>(0,i.Z)({},"sm"===t.size&&{fontSize:e.fontSize.xs,lineHeight:e.lineHeight.md,paddingInline:"0.25rem",minWidth:"20px"},"md"===t.size&&{fontSize:e.fontSize.sm,lineHeight:e.lineHeight.md,paddingInline:"0.375rem",minWidth:"24px"},"lg"===t.size&&{fontSize:e.fontSize.md,lineHeight:e.lineHeight.md,paddingInline:"0.5rem",minWidth:"28px"},{zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,bottom:0,transformOrigin:"bottom center",transform:"translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(0)",position:"absolute",backgroundColor:e.vars.palette.background.tooltip,boxShadow:e.shadow.sm,borderRadius:e.vars.radius.xs,color:"#fff","&::before":{display:"var(--Slider-valueLabelArrowDisplay)",position:"absolute",content:'""',color:e.vars.palette.background.tooltip,bottom:0,border:"calc(var(--Slider-valueLabelArrowSize) / 2) solid",borderColor:"currentColor",borderRightColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",left:"50%",transform:"translate(-50%, 100%)",backgroundColor:"transparent"},[`&.${P.valueLabelOpen}`]:{transform:"translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(1)"}})),K=(0,I.Z)("span",{name:"JoySlider",slot:"MarkLabel",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t})=>(0,i.Z)({fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md},{color:e.palette.text.tertiary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:"calc(50% + 4px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",transform:"translateX(-50%)"},"vertical"===t.orientation&&{left:"calc(50% + 8px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",transform:"translateY(50%)"})),Y=(0,I.Z)("input",{name:"JoySlider",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Z=o.forwardRef(function(e,t){let n=(0,O.Z)({props:e,name:"JoySlider"}),{"aria-label":r,"aria-valuetext":l,className:c,classes:b,disableSwap:I=!1,disabled:L=!1,defaultValue:D,getAriaLabel:P,getAriaValueText:H,marks:Z=!1,max:q=100,min:X=0,orientation:Q="horizontal",scale:J=U,step:ee=1,track:et="normal",valueLabelDisplay:en="off",valueLabelFormat:er=U,isRtl:ea=!1,color:ei="primary",size:eo="md",variant:es="solid",component:el,slots:ec={},slotProps:eu={}}=n,ed=(0,a.Z)(n,F),{getColor:ep}=(0,w.VT)("solid"),em=ep(e.color,ei),eg=(0,i.Z)({},n,{marks:Z,classes:b,disabled:L,defaultValue:D,disableSwap:I,isRtl:ea,max:q,min:X,orientation:Q,scale:J,step:ee,track:et,valueLabelDisplay:en,valueLabelFormat:er,color:em,size:eo,variant:es}),{axisProps:ef,getRootProps:eh,getHiddenInputProps:eb,getThumbProps:eE,open:eT,active:eS,axis:ey,focusedThumbIndex:eA,range:e_,dragging:ek,marks:eN,values:eC,trackOffset:ev,trackLeap:eR,getThumbStyle:eI}=function(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:b=0,name:R,onChange:I,onChangeCommitted:O,orientation:w="horizontal",rootRef:x,scale:L=C,step:D=1,tabIndex:P,value:M}=e,F=o.useRef(),[U,B]=o.useState(-1),[H,G]=o.useState(-1),[z,$]=o.useState(!1),j=o.useRef(0),[V,W]=(0,d.Z)({controlled:M,default:null!=n?n:b,name:"Slider"}),K=I&&((e,t,n)=>{let r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:R}}),I(a,t,n)}),Y=Array.isArray(V),Z=Y?V.slice().sort(E):[V];Z=Z.map(e=>T(e,b,c));let q=!0===l&&null!==D?[...Array(Math.floor((c-b)/D)+1)].map((e,t)=>({value:b+D*t})):l||[],X=q.map(e=>e.value),{isFocusVisibleRef:Q,onBlur:J,onFocus:ee,ref:et}=(0,p.Z)(),[en,er]=o.useState(-1),ea=o.useRef(),ei=(0,m.Z)(et,ea),eo=(0,m.Z)(x,ei),es=e=>t=>{var n;let r=Number(t.currentTarget.getAttribute("data-index"));ee(t),!0===Q.current&&er(r),G(r),null==e||null==(n=e.onFocus)||n.call(e,t)},el=e=>t=>{var n;J(t),!1===Q.current&&er(-1),G(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,g.Z)(()=>{if(r&&ea.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[r]),r&&-1!==U&&B(-1),r&&-1!==en&&er(-1);let ec=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index")),i=Z[r],o=X.indexOf(i),s=t.target.valueAsNumber;if(q&&null==D){let e=X[X.length-1];s=s>e?e:s{let n,r;let{current:i}=ea,{width:o,height:s,bottom:l,left:u}=i.getBoundingClientRect();if(n=0===ed.indexOf("vertical")?(l-e.y)/s:(e.x-u)/o,-1!==ed.indexOf("-reverse")&&(n=1-n),r=(c-b)*n+b,D)r=function(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(t)))}(r,D,b);else{let e=S(X,r);r=X[e]}r=T(r,b,c);let d=0;if(Y){d=t?eu.current:S(Z,r),a&&(r=T(r,Z[d-1]||-1/0,Z[d+1]||1/0));let e=r;r=A({values:Z,newValue:r,index:d}),a&&t||(d=r.indexOf(e),eu.current=d)}return{newValue:r,activeIndex:d}},em=(0,f.Z)(e=>{let t=y(e,F);if(!t)return;if(j.current+=1,"mousemove"===e.type&&0===e.buttons){eg(e);return}let{newValue:n,activeIndex:r}=ep({finger:t,move:!0});_({sliderRef:ea,activeIndex:r,setActive:B}),W(n),!z&&j.current>2&&$(!0),K&&!k(n,V)&&K(e,n,r)}),eg=(0,f.Z)(e=>{let t=y(e,F);if($(!1),!t)return;let{newValue:n}=ep({finger:t,move:!0});B(-1),"touchend"===e.type&&G(-1),O&&O(e,n),F.current=void 0,eh()}),ef=(0,f.Z)(e=>{if(r)return;v()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(F.current=t.identifier);let n=y(e,F);if(!1!==n){let{newValue:t,activeIndex:r}=ep({finger:n});_({sliderRef:ea,activeIndex:r,setActive:B}),W(t),K&&!k(t,V)&&K(e,t,r)}j.current=0;let a=(0,u.Z)(ea.current);a.addEventListener("touchmove",em),a.addEventListener("touchend",eg)}),eh=o.useCallback(()=>{let e=(0,u.Z)(ea.current);e.removeEventListener("mousemove",em),e.removeEventListener("mouseup",eg),e.removeEventListener("touchmove",em),e.removeEventListener("touchend",eg)},[eg,em]);o.useEffect(()=>{let{current:e}=ea;return e.addEventListener("touchstart",ef,{passive:v()}),()=>{e.removeEventListener("touchstart",ef,{passive:v()}),eh()}},[eh,ef]),o.useEffect(()=>{r&&eh()},[r,eh]);let eb=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),r||t.defaultPrevented||0!==t.button)return;t.preventDefault();let a=y(t,F);if(!1!==a){let{newValue:e,activeIndex:n}=ep({finger:a});_({sliderRef:ea,activeIndex:n,setActive:B}),W(e),K&&!k(e,V)&&K(t,e,n)}j.current=0;let i=(0,u.Z)(ea.current);i.addEventListener("mousemove",em),i.addEventListener("mouseup",eg)},eE=((Y?Z[0]:b)-b)*100/(c-b),eT=(Z[Z.length-1]-b)*100/(c-b)-eE,eS=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index"));G(r)},ey=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),G(-1)};return{active:U,axis:ed,axisProps:N,dragging:z,focusedThumbIndex:en,getHiddenInputProps:(n={})=>{var a;let o={onChange:ec(n||{}),onFocus:es(n||{}),onBlur:el(n||{})},l=(0,i.Z)({},n,o);return(0,i.Z)({tabIndex:P,"aria-labelledby":t,"aria-orientation":w,"aria-valuemax":L(c),"aria-valuemin":L(b),name:R,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:r},l,{style:(0,i.Z)({},h,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t={onMouseDown:eb(e||{})},n=(0,i.Z)({},e,t);return(0,i.Z)({ref:eo},n)},getThumbProps:(e={})=>{let t={onMouseOver:eS(e||{}),onMouseLeave:ey(e||{})};return(0,i.Z)({},e,t)},marks:q,open:H,range:Y,rootRef:eo,trackLeap:eT,trackOffset:eE,values:Z,getThumbStyle:e=>({pointerEvents:-1!==U&&U!==e?"none":void 0})}}((0,i.Z)({},eg,{rootRef:t}));eg.marked=eN.length>0&&eN.some(e=>e.label),eg.dragging=ek;let eO=(0,i.Z)({},ef[ey].offset(ev),ef[ey].leap(eR)),ew=B(eg),ex=(0,i.Z)({},ed,{component:el,slots:ec,slotProps:eu}),[eL,eD]=(0,x.Z)("root",{ref:t,className:(0,s.Z)(ew.root,c),elementType:G,externalForwardedProps:ex,getSlotProps:eh,ownerState:eg}),[eP,eM]=(0,x.Z)("rail",{className:ew.rail,elementType:z,externalForwardedProps:ex,ownerState:eg}),[eF,eU]=(0,x.Z)("track",{additionalProps:{style:eO},className:ew.track,elementType:$,externalForwardedProps:ex,ownerState:eg}),[eB,eH]=(0,x.Z)("mark",{className:ew.mark,elementType:V,externalForwardedProps:ex,ownerState:eg}),[eG,ez]=(0,x.Z)("markLabel",{className:ew.markLabel,elementType:K,externalForwardedProps:ex,ownerState:eg,additionalProps:{"aria-hidden":!0}}),[e$,ej]=(0,x.Z)("thumb",{className:ew.thumb,elementType:j,externalForwardedProps:ex,getSlotProps:eE,ownerState:eg}),[eV,eW]=(0,x.Z)("input",{className:ew.input,elementType:Y,externalForwardedProps:ex,getSlotProps:eb,ownerState:eg}),[eK,eY]=(0,x.Z)("valueLabel",{className:ew.valueLabel,elementType:W,externalForwardedProps:ex,ownerState:eg});return(0,M.jsxs)(eL,(0,i.Z)({},eD,{children:[(0,M.jsx)(eP,(0,i.Z)({},eM)),(0,M.jsx)(eF,(0,i.Z)({},eU)),eN.filter(e=>e.value>=X&&e.value<=q).map((e,t)=>{let n;let r=(e.value-X)*100/(q-X),a=ef[ey].offset(r);return n=!1===et?-1!==eC.indexOf(e.value):"normal"===et&&(e_?e.value>=eC[0]&&e.value<=eC[eC.length-1]:e.value<=eC[0])||"inverted"===et&&(e_?e.value<=eC[0]||e.value>=eC[eC.length-1]:e.value>=eC[0]),(0,M.jsxs)(o.Fragment,{children:[(0,M.jsx)(eB,(0,i.Z)({"data-index":t},eH,!(0,R.X)(eB)&&{ownerState:(0,i.Z)({},eH.ownerState,{percent:r})},{style:(0,i.Z)({},a,eH.style),className:(0,s.Z)(eH.className,n&&ew.markActive)})),null!=e.label?(0,M.jsx)(eG,(0,i.Z)({"data-index":t},ez,{style:(0,i.Z)({},a,ez.style),className:(0,s.Z)(ew.markLabel,ez.className,n&&ew.markLabelActive),children:e.label})):null]},e.value)}),eC.map((e,t)=>{let n=(e-X)*100/(q-X),a=ef[ey].offset(n);return(0,M.jsxs)(e$,(0,i.Z)({"data-index":t},ej,{className:(0,s.Z)(ej.className,eS===t&&ew.active,eA===t&&ew.focusVisible),style:(0,i.Z)({},a,eI(t),ej.style),children:[(0,M.jsx)(eV,(0,i.Z)({"data-index":t,"aria-label":P?P(t):r,"aria-valuenow":J(e),"aria-valuetext":H?H(J(e),t):l,value:eC[t]},eW)),"off"!==en?(0,M.jsx)(eK,(0,i.Z)({},eY,{className:(0,s.Z)(eY.className,(eT===t||eS===t||"on"===en)&&ew.valueLabelOpen),children:"function"==typeof er?er(J(e),t):er})):null]}),t)})]}))});var q=Z},38426:function(e,t,n){"use strict";n.d(t,{Z:function(){return eA}});var r=n(67294),a=n(99611),i=n(94184),o=n.n(i),s=n(87462),l=n(1413),c=n(4942),u=n(97685),d=n(71002),p=n(45987),m=n(27678),g=n(21770),f=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],h=r.createContext(null),b=0;function E(e){var t=e.src,n=e.isCustomPlaceholder,a=e.fallback,i=(0,r.useState)(n?"loading":"normal"),o=(0,u.Z)(i,2),s=o[0],l=o[1],c=(0,r.useRef)(!1),d="error"===s;(0,r.useEffect)(function(){new Promise(function(e){var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(e){e||l("error")})},[t]),(0,r.useEffect)(function(){n&&!c.current?l("loading"):d&&l("normal")},[t]);var p=function(){l("normal")};return[function(e){c.current=!1,"loading"===s&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},d&&a?{src:a}:{onLoad:p,src:t},s]}var T=n(13328),S=n(64019),y=n(15105),A=n(80334);function _(e,t,n,r){var a=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,c.Z)({},e,i);if(t<0&&ar)return(0,c.Z)({},e,t<0?i:-i);return{}}var k=n(91881),N=n(75164),C={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},v=n(2788),R=n(82225),I=function(e){var t=e.visible,n=e.maskTransitionName,a=e.getContainer,i=e.prefixCls,s=e.rootClassName,u=e.icons,d=e.countRender,p=e.showSwitch,m=e.showProgress,g=e.current,f=e.transform,b=e.count,E=e.scale,T=e.minScale,S=e.maxScale,A=e.closeIcon,_=e.onSwitchLeft,k=e.onSwitchRight,N=e.onClose,C=e.onZoomIn,I=e.onZoomOut,O=e.onRotateRight,w=e.onRotateLeft,x=e.onFlipX,L=e.onFlipY,D=e.toolbarRender,P=(0,r.useContext)(h),M=u.rotateLeft,F=u.rotateRight,U=u.zoomIn,B=u.zoomOut,H=u.close,G=u.left,z=u.right,$=u.flipX,j=u.flipY,V="".concat(i,"-operations-operation");r.useEffect(function(){var e=function(e){e.keyCode===y.Z.ESC&&N()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var W=[{icon:j,onClick:L,type:"flipY"},{icon:$,onClick:x,type:"flipX"},{icon:M,onClick:w,type:"rotateLeft"},{icon:F,onClick:O,type:"rotateRight"},{icon:B,onClick:I,type:"zoomOut",disabled:E===T},{icon:U,onClick:C,type:"zoomIn",disabled:E===S}].map(function(e){var t,n=e.icon,a=e.onClick,s=e.type,l=e.disabled;return r.createElement("div",{className:o()(V,(t={},(0,c.Z)(t,"".concat(i,"-operations-operation-").concat(s),!0),(0,c.Z)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:a,key:s},n)}),K=r.createElement("div",{className:"".concat(i,"-operations")},W);return r.createElement(R.ZP,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return r.createElement(v.Z,{open:!0,getContainer:null!=a?a:document.body},r.createElement("div",{className:o()("".concat(i,"-operations-wrapper"),t,s),style:n},null===A?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:N},A||H),p&&r.createElement(r.Fragment,null,r.createElement("div",{className:o()("".concat(i,"-switch-left"),(0,c.Z)({},"".concat(i,"-switch-left-disabled"),0===g)),onClick:_},G),r.createElement("div",{className:o()("".concat(i,"-switch-right"),(0,c.Z)({},"".concat(i,"-switch-right-disabled"),g===b-1)),onClick:k},z)),r.createElement("div",{className:"".concat(i,"-footer")},m&&r.createElement("div",{className:"".concat(i,"-progress")},d?d(g+1,b):"".concat(g+1," / ").concat(b)),D?D(K,(0,l.Z)({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:L,onFlipX:x,onRotateLeft:w,onRotateRight:O,onZoomOut:I,onZoomIn:C},transform:f},P?{current:g,total:b}:{})):K)))})},O=["fallback","src","imgRef"],w=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],x=function(e){var t=e.fallback,n=e.src,a=e.imgRef,i=(0,p.Z)(e,O),o=E({src:n,fallback:t}),l=(0,u.Z)(o,2),c=l[0],d=l[1];return r.createElement("img",(0,s.Z)({ref:function(e){a.current=e,c(e)}},i,d))},L=function(e){var t,n,a,i,d,g,f,b=e.prefixCls,E=e.src,v=e.alt,R=e.fallback,O=e.movable,L=void 0===O||O,D=e.onClose,P=e.visible,M=e.icons,F=e.rootClassName,U=e.closeIcon,B=e.getContainer,H=e.current,G=void 0===H?0:H,z=e.count,$=void 0===z?1:z,j=e.countRender,V=e.scaleStep,W=void 0===V?.5:V,K=e.minScale,Y=void 0===K?1:K,Z=e.maxScale,q=void 0===Z?50:Z,X=e.transitionName,Q=e.maskTransitionName,J=void 0===Q?"fade":Q,ee=e.imageRender,et=e.imgCommonProps,en=e.toolbarRender,er=e.onTransform,ea=e.onChange,ei=(0,p.Z)(e,w),eo=(0,r.useRef)(),es=(0,r.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),el=(0,r.useState)(!1),ec=(0,u.Z)(el,2),eu=ec[0],ed=ec[1],ep=(0,r.useContext)(h),em=ep&&$>1,eg=ep&&$>=1,ef=(t=(0,r.useRef)(null),n=(0,r.useRef)([]),a=(0,r.useState)(C),d=(i=(0,u.Z)(a,2))[0],g=i[1],f=function(e,r){null===t.current&&(n.current=[],t.current=(0,N.Z)(function(){g(function(e){var a=e;return n.current.forEach(function(e){a=(0,l.Z)((0,l.Z)({},a),e)}),t.current=null,null==er||er({transform:a,action:r}),a})})),n.current.push((0,l.Z)((0,l.Z)({},d),e))},{transform:d,resetTransform:function(e){g(C),er&&!(0,k.Z)(C,d)&&er({transform:C,action:e})},updateTransform:f,dispatchZoomChange:function(e,t,n,r){var a=eo.current,i=a.width,o=a.height,s=a.offsetWidth,l=a.offsetHeight,c=a.offsetLeft,u=a.offsetTop,p=e,g=d.scale*e;g>q?(p=q/d.scale,g=q):g0&&(e_(!1),eb("prev"),null==ea||ea(G-1,G))},eO=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),G<$-1&&(e_(!1),eb("next"),null==ea||ea(G+1,G))},ew=function(){if(P&&eu){ed(!1);var e,t,n,r,a,i,o=es.current,s=o.transformX,c=o.transformY;if(eC!==s&&ev!==c){var u=eo.current.offsetWidth*eN,d=eo.current.offsetHeight*eN,p=eo.current.getBoundingClientRect(),g=p.left,f=p.top,h=ek%180!=0,b=(e=h?d:u,t=h?u:d,r=(n=(0,m.g1)()).width,a=n.height,i=null,e<=r&&t<=a?i={x:0,y:0}:(e>r||t>a)&&(i=(0,l.Z)((0,l.Z)({},_("x",g,e,r)),_("y",f,t,a))),i);b&&eE((0,l.Z)({},b),"dragRebound")}}},ex=function(e){P&&eu&&eE({x:e.pageX-es.current.deltaX,y:e.pageY-es.current.deltaY},"move")},eL=function(e){P&&em&&(e.keyCode===y.Z.LEFT?eI():e.keyCode===y.Z.RIGHT&&eO())};(0,r.useEffect)(function(){var e,t,n,r;if(L){n=(0,S.Z)(window,"mouseup",ew,!1),r=(0,S.Z)(window,"mousemove",ex,!1);try{window.top!==window.self&&(e=(0,S.Z)(window.top,"mouseup",ew,!1),t=(0,S.Z)(window.top,"mousemove",ex,!1))}catch(e){(0,A.Kp)(!1,"[rc-image] ".concat(e))}}return function(){var a,i,o,s;null===(a=n)||void 0===a||a.remove(),null===(i=r)||void 0===i||i.remove(),null===(o=e)||void 0===o||o.remove(),null===(s=t)||void 0===s||s.remove()}},[P,eu,eC,ev,ek,L]),(0,r.useEffect)(function(){var e=(0,S.Z)(window,"keydown",eL,!1);return function(){e.remove()}},[P,em,G]);var eD=r.createElement(x,(0,s.Z)({},et,{width:e.width,height:e.height,imgRef:eo,className:"".concat(b,"-img"),alt:v,style:{transform:"translate3d(".concat(eh.x,"px, ").concat(eh.y,"px, 0) scale3d(").concat(eh.flipX?"-":"").concat(eN,", ").concat(eh.flipY?"-":"").concat(eN,", 1) rotate(").concat(ek,"deg)"),transitionDuration:!eA&&"0s"},fallback:R,src:E,onWheel:function(e){if(P&&0!=e.deltaY){var t=1+Math.min(Math.abs(e.deltaY/100),1)*W;e.deltaY>0&&(t=1/t),eT(t,"wheel",e.clientX,e.clientY)}},onMouseDown:function(e){L&&0===e.button&&(e.preventDefault(),e.stopPropagation(),es.current={deltaX:e.pageX-eh.x,deltaY:e.pageY-eh.y,transformX:eh.x,transformY:eh.y},ed(!0))},onDoubleClick:function(e){P&&(1!==eN?eE({x:0,y:0,scale:1},"doubleClick"):eT(1+W,"doubleClick",e.clientX,e.clientY))}}));return r.createElement(r.Fragment,null,r.createElement(T.Z,(0,s.Z)({transitionName:void 0===X?"zoom":X,maskTransitionName:J,closable:!1,keyboard:!0,prefixCls:b,onClose:D,visible:P,wrapClassName:eR,rootClassName:F,getContainer:B},ei,{afterClose:function(){eb("close")}}),r.createElement("div",{className:"".concat(b,"-img-wrapper")},ee?ee(eD,(0,l.Z)({transform:eh},ep?{current:G}:{})):eD)),r.createElement(I,{visible:P,transform:eh,maskTransitionName:J,closeIcon:U,getContainer:B,prefixCls:b,rootClassName:F,icons:void 0===M?{}:M,countRender:j,showSwitch:em,showProgress:eg,current:G,count:$,scale:eN,minScale:Y,maxScale:q,toolbarRender:en,onSwitchLeft:eI,onSwitchRight:eO,onZoomIn:function(){eT(1+W,"zoomIn")},onZoomOut:function(){eT(1/(1+W),"zoomOut")},onRotateRight:function(){eE({rotate:ek+90},"rotateRight")},onRotateLeft:function(){eE({rotate:ek-90},"rotateLeft")},onFlipX:function(){eE({flipX:!eh.flipX},"flipX")},onFlipY:function(){eE({flipY:!eh.flipY},"flipY")},onClose:D}))},D=n(74902),P=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],M=["src"],F=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],U=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],B=function(e){var t,n,a,i,T=e.src,S=e.alt,y=e.onPreviewClose,A=e.prefixCls,_=void 0===A?"rc-image":A,k=e.previewPrefixCls,N=void 0===k?"".concat(_,"-preview"):k,C=e.placeholder,v=e.fallback,R=e.width,I=e.height,O=e.style,w=e.preview,x=void 0===w||w,D=e.className,P=e.onClick,M=e.onError,B=e.wrapperClassName,H=e.wrapperStyle,G=e.rootClassName,z=(0,p.Z)(e,F),$=C&&!0!==C,j="object"===(0,d.Z)(x)?x:{},V=j.src,W=j.visible,K=void 0===W?void 0:W,Y=j.onVisibleChange,Z=j.getContainer,q=j.mask,X=j.maskClassName,Q=j.movable,J=j.icons,ee=j.scaleStep,et=j.minScale,en=j.maxScale,er=j.imageRender,ea=j.toolbarRender,ei=(0,p.Z)(j,U),eo=null!=V?V:T,es=(0,g.Z)(!!K,{value:K,onChange:void 0===Y?y:Y}),el=(0,u.Z)(es,2),ec=el[0],eu=el[1],ed=E({src:T,isCustomPlaceholder:$,fallback:v}),ep=(0,u.Z)(ed,3),em=ep[0],eg=ep[1],ef=ep[2],eh=(0,r.useState)(null),eb=(0,u.Z)(eh,2),eE=eb[0],eT=eb[1],eS=(0,r.useContext)(h),ey=!!x,eA=o()(_,B,G,(0,c.Z)({},"".concat(_,"-error"),"error"===ef)),e_=(0,r.useMemo)(function(){var t={};return f.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},f.map(function(t){return e[t]})),ek=(0,r.useMemo)(function(){return(0,l.Z)((0,l.Z)({},e_),{},{src:eo})},[eo,e_]),eN=(t=r.useState(function(){return String(b+=1)}),n=(0,u.Z)(t,1)[0],a=r.useContext(h),i={data:ek,canPreview:ey},r.useEffect(function(){if(a)return a.register(n,i)},[]),r.useEffect(function(){a&&a.register(n,i)},[ey,ek]),n);return r.createElement(r.Fragment,null,r.createElement("div",(0,s.Z)({},z,{className:eA,onClick:ey?function(e){var t=(0,m.os)(e.target),n=t.left,r=t.top;eS?eS.onPreview(eN,n,r):(eT({x:n,y:r}),eu(!0)),null==P||P(e)}:P,style:(0,l.Z)({width:R,height:I},H)}),r.createElement("img",(0,s.Z)({},e_,{className:o()("".concat(_,"-img"),(0,c.Z)({},"".concat(_,"-img-placeholder"),!0===C),D),style:(0,l.Z)({height:I},O),ref:em},eg,{width:R,height:I,onError:M})),"loading"===ef&&r.createElement("div",{"aria-hidden":"true",className:"".concat(_,"-placeholder")},C),q&&ey&&r.createElement("div",{className:o()("".concat(_,"-mask"),X),style:{display:(null==O?void 0:O.display)==="none"?"none":void 0}},q)),!eS&&ey&&r.createElement(L,(0,s.Z)({"aria-hidden":!ec,visible:ec,prefixCls:N,onClose:function(){eu(!1),eT(null)},mousePosition:eE,src:eo,alt:S,fallback:v,getContainer:void 0===Z?void 0:Z,icons:J,movable:Q,scaleStep:ee,minScale:et,maxScale:en,rootClassName:G,imageRender:er,imgCommonProps:e_,toolbarRender:ea},ei)))};B.PreviewGroup=function(e){var t,n,a,i,o,m,b=e.previewPrefixCls,E=e.children,T=e.icons,S=e.items,y=e.preview,A=e.fallback,_="object"===(0,d.Z)(y)?y:{},k=_.visible,N=_.onVisibleChange,C=_.getContainer,v=_.current,R=_.movable,I=_.minScale,O=_.maxScale,w=_.countRender,x=_.closeIcon,F=_.onChange,U=_.onTransform,B=_.toolbarRender,H=_.imageRender,G=(0,p.Z)(_,P),z=(t=r.useState({}),a=(n=(0,u.Z)(t,2))[0],i=n[1],o=r.useCallback(function(e,t){return i(function(n){return(0,l.Z)((0,l.Z)({},n),{},(0,c.Z)({},e,t))}),function(){i(function(t){var n=(0,l.Z)({},t);return delete n[e],n})}},[]),[r.useMemo(function(){return S?S.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat((0,D.Z)(f)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(a).reduce(function(e,t){var n=a[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e},[])},[S,a]),o]),$=(0,u.Z)(z,2),j=$[0],V=$[1],W=(0,g.Z)(0,{value:v}),K=(0,u.Z)(W,2),Y=K[0],Z=K[1],q=(0,r.useState)(!1),X=(0,u.Z)(q,2),Q=X[0],J=X[1],ee=(null===(m=j[Y])||void 0===m?void 0:m.data)||{},et=ee.src,en=(0,p.Z)(ee,M),er=(0,g.Z)(!!k,{value:k,onChange:function(e,t){null==N||N(e,t,Y)}}),ea=(0,u.Z)(er,2),ei=ea[0],eo=ea[1],es=(0,r.useState)(null),el=(0,u.Z)(es,2),ec=el[0],eu=el[1],ed=r.useCallback(function(e,t,n){var r=j.findIndex(function(t){return t.id===e});eo(!0),eu({x:t,y:n}),Z(r<0?0:r),J(!0)},[j]);r.useEffect(function(){ei?Q||Z(0):J(!1)},[ei]);var ep=r.useMemo(function(){return{register:V,onPreview:ed}},[V,ed]);return r.createElement(h.Provider,{value:ep},E,r.createElement(L,(0,s.Z)({"aria-hidden":!ei,movable:R,visible:ei,prefixCls:void 0===b?"rc-image-preview":b,closeIcon:x,onClose:function(){eo(!1),eu(null)},mousePosition:ec,imgCommonProps:en,src:et,fallback:A,icons:void 0===T?{}:T,minScale:I,maxScale:O,getContainer:C,current:Y,count:j.length,countRender:w,onTransform:U,toolbarRender:B,imageRender:H,onChange:function(e,t){Z(e),null==F||F(e,t)}},G)))},B.displayName="Image";var H=n(33603),G=n(53124),z=n(88526),$=n(97937),j=n(6171),V=n(18073),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},K=n(84089),Y=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:W}))}),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},q=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:Z}))}),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Q=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:X}))}),J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ee=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:J}))}),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},en=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:et}))}),er=n(10274),ea=n(71194),ei=n(14747),eo=n(50438),es=n(16932),el=n(67968),ec=n(45503);let eu=e=>({position:e||"absolute",inset:0}),ed=e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new er.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ei.vS),{padding:`0 ${r}px`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},ep=e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new er.C(n).setAlpha(.1),m=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${o}px`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},em=e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new er.C(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},eg=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},eu()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},eu()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.zIndexPopup+1},"&":[ep(e),em(e)]}]},ef=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},ed(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},eu())}}},eh=e=>{let{previewCls:t}=e;return{[`${t}-root`]:(0,eo._y)(e,"zoom"),"&":(0,es.J$)(e,!0)}};var eb=(0,el.Z)("Image",e=>{let t=`${e.componentCls}-preview`,n=(0,ec.TS)(e,{previewCls:t,modalMaskBg:new er.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[ef(n),eg(n),(0,ea.Q)((0,ec.TS)(n,{componentCls:t})),eh(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new er.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new er.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new er.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let eT={rotateLeft:r.createElement(Y,null),rotateRight:r.createElement(q,null),zoomIn:r.createElement(ee,null),zoomOut:r.createElement(en,null),close:r.createElement($.Z,null),left:r.createElement(j.Z,null),right:r.createElement(V.Z,null),flipX:r.createElement(Q,null),flipY:r.createElement(Q,{rotate:90})};var eS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ey=e=>{let{prefixCls:t,preview:n,className:i,rootClassName:s,style:l}=e,c=eS(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:d=z.Z,getPopupContainer:p,image:m}=r.useContext(G.E_),g=u("image",t),f=u(),h=d.Image||z.Z.Image,[b,E]=eb(g),T=o()(s,E),S=o()(i,E,null==m?void 0:m.className),y=r.useMemo(()=>{if(!1===n)return n;let e="object"==typeof n?n:{},{getContainer:t}=e,i=eS(e,["getContainer"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${g}-mask-info`},r.createElement(a.Z,null),null==h?void 0:h.preview),icons:eT},i),{getContainer:t||p,transitionName:(0,H.m)(f,"zoom",e.transitionName),maskTransitionName:(0,H.m)(f,"fade",e.maskTransitionName)})},[n,h]),A=Object.assign(Object.assign({},null==m?void 0:m.style),l);return b(r.createElement(B,Object.assign({prefixCls:g,preview:y,rootClassName:T,className:S,style:A},c)))};ey.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,a=eE(e,["previewPrefixCls","preview"]);let{getPrefixCls:i}=r.useContext(G.E_),s=i("image",t),l=`${s}-preview`,c=i(),[u,d]=eb(s),p=r.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=o()(d,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,H.m)(c,"zoom",t.transitionName),maskTransitionName:(0,H.m)(c,"fade",t.maskTransitionName),rootClassName:r})},[n]);return u(r.createElement(B.PreviewGroup,Object.assign({preview:p,previewPrefixCls:l,icons:eT},a)))};var eA=ey},66309:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(67294),a=n(97937),i=n(94184),o=n.n(i),s=n(98787),l=n(69760),c=n(45353),u=n(53124),d=n(14747),p=n(45503),m=n(67968);let g=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a}=e,i=r-n;return{[a]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:t-n,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},f=e=>{let{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,a=`${e.lineHeightSM*r}px`,i=(0,p.TS)(e,{tagFontSize:r,tagLineHeight:a,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return i},h=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,m.Z)("Tag",e=>{let t=f(e);return g(t)},h),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},T=n(98719);let S=e=>(0,T.Z)(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:i,darkColor:o}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var y=(0,m.b)(["Tag","preset"],e=>{let t=f(e);return S(t)},h);let A=(e,t,n)=>{let r=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var _=(0,m.b)(["Tag","status"],e=>{let t=f(e);return[A(t,"success","Success"),A(t,"processing","Info"),A(t,"error","Error"),A(t,"warning","Warning")]},h),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let N=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,rootClassName:d,style:p,children:m,icon:g,color:f,onClose:h,closeIcon:E,closable:T,bordered:S=!0}=e,A=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:N,direction:C,tag:v}=r.useContext(u.E_),[R,I]=r.useState(!0);r.useEffect(()=>{"visible"in A&&I(A.visible)},[A.visible]);let O=(0,s.o2)(f),w=(0,s.yT)(f),x=O||w,L=Object.assign(Object.assign({backgroundColor:f&&!x?f:void 0},null==v?void 0:v.style),p),D=N("tag",n),[P,M]=b(D),F=o()(D,null==v?void 0:v.className,{[`${D}-${f}`]:x,[`${D}-has-color`]:f&&!x,[`${D}-hidden`]:!R,[`${D}-rtl`]:"rtl"===C,[`${D}-borderless`]:!S},i,d,M),U=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||I(!1)},[,B]=(0,l.Z)(T,E,e=>null===e?r.createElement(a.Z,{className:`${D}-close-icon`,onClick:U}):r.createElement("span",{className:`${D}-close-icon`,onClick:U},e),null,!1),H="function"==typeof A.onClick||m&&"a"===m.type,G=g||null,z=G?r.createElement(r.Fragment,null,G,m&&r.createElement("span",null,m)):m,$=r.createElement("span",Object.assign({},A,{ref:t,className:F,style:L}),z,B,O&&r.createElement(y,{key:"preset",prefixCls:D}),w&&r.createElement(_,{key:"status",prefixCls:D}));return P(H?r.createElement(c.Z,{component:"Tag"},$):$)});N.CheckableTag=e=>{let{prefixCls:t,className:n,checked:a,onChange:i,onClick:s}=e,l=E(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:c}=r.useContext(u.E_),d=c("tag",t),[p,m]=b(d),g=o()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},n,m);return p(r.createElement("span",Object.assign({},l,{className:g,onClick:e=>{null==i||i(!a),null==s||s(e)}})))};var C=N},56851:function(e,t){"use strict";t.Q=function(e){for(var t,n=[],r=String(e||""),a=r.indexOf(","),i=0,o=!1;!o;)-1===a&&(a=r.length,o=!0),((t=r.slice(i,a).trim())||!o)&&n.push(t),i=a+1,a=r.indexOf(",",i);return n}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,c,u,d=arguments[0],p=1,m=arguments.length,g=!1;for("boolean"==typeof d&&(g=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),a=n(46195);e.exports=function(e){return r(e)||a(e)}},46195:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},79480:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},57574:function(e,t,n){"use strict";var r=n(37452),a=n(93580),i=n(46195),o=n(79480),s=n(7961),l=n(89435);e.exports=function(e,t){var n,i,o={};for(i in t||(t={}),p)n=t[i],o[i]=null==n?p[i]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,i,o,p,T,S,y,A,_,k,N,C,v,R,I,O,w,x,L,D,P,M=t.additional,F=t.nonTerminated,U=t.text,B=t.reference,H=t.warning,G=t.textContext,z=t.referenceContext,$=t.warningContext,j=t.position,V=t.indent||[],W=e.length,K=0,Y=-1,Z=j.column||1,q=j.line||1,X="",Q=[];for("string"==typeof M&&(M=M.charCodeAt(0)),x=J(),k=H?function(e,t){var n=J();n.column+=t,n.offset+=t,H.call($,E[e],n,e)}:d,K--,W++;++K=55296&&n<=57343||n>1114111?(k(7,D),A=u(65533)):A in a?(k(6,D),A=a[A]):(C="",((i=A)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&k(6,D),A>65535&&(A-=65536,C+=u(A>>>10|55296),A=56320|1023&A),A=C+u(A))):O!==m&&k(4,D)),A?(ee(),x=J(),K=P-1,Z+=P-I+1,Q.push(A),L=J(),L.offset++,B&&B.call(z,A,{start:x,end:L},e.slice(I-1,P)),x=L):(X+=S=e.slice(I-1,P),Z+=S.length,K=P-1)}else 10===y&&(q++,Y++,Z=0),y==y?(X+=u(y),Z++):ee();return Q.join("");function J(){return{line:q,column:Z,offset:K+(j.offset||0)}}function ee(){X&&(Q.push(X),U&&U.call(G,X,{start:x,end:J()}),X="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},m="named",g="hexadecimal",f="decimal",h={};h[g]=16,h[f]=10;var b={};b[m]=s,b[f]=i,b[g]=o;var E={};E[1]="Named character references must be terminated by a semicolon",E[2]="Numeric character references must be terminated by a semicolon",E[3]="Named character references cannot be empty",E[4]="Numeric character references cannot be empty",E[5]="Named character references must be known",E[6]="Numeric character references cannot be disallowed",E[7]="Numeric character references cannot be outside the permissible Unicode range"},31515:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(16152),a="html",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function u(e){let t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n-1)return r.QUIRKS;let e=null===t?o:i;if(d(n,e))return r.QUIRKS;if(d(n,e=null===t?l:c))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+u(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},41734:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:function(e,t,n){"use strict";let r=n(55763),a=n(16152),i=a.TAG_NAMES,o=a.NAMESPACES,s=a.ATTRS,l={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},c={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){let t=e.tagName,n=t===i.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE));return!!n||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},23843:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:function(e,t,n){"use strict";let r=n(23843),a=n(70050),i=n(46110),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),o.install(this.tokenizer,a,e.opts),o.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},23288:function(e,t,n){"use strict";let r=n(23843),a=n(57930),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=i.install(e,a),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:function(e,t,n){"use strict";let r=n(23843),a=n(23288),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);let n=i.install(e.preprocessor,a,t);this.posTracker=n.posTracker}}},11077:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},452:function(e,t,n){"use strict";let r=n(81704),a=n(55763),i=n(46110),o=n(11077),s=n(16152),l=s.TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&((t=Object.assign({},this.lastStartTagToken.location)).startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){let n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===a.END_TAG_TOKEN&&r===t.tagName,o={};i?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,a){t._bootstrap.call(this,n,a),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let s=r.install(this.tokenizer,i);e.posTracker=s.posTracker,r.install(this.openElements,o,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);let r=n.type===a.END_TAG_TOKEN&&(n.tagName===l.HTML||n.tagName===l.BODY&&this.openElements.hasInScope(l.BODY));if(r)for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);let n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t{let i=a.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}}),n}}},57930:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let n=this.pos;t.dropParsedChunk.call(this);let r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},12484:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let n=[];if(this.length>=3){let r=this.treeAdapter.getAttrList(e).length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){let o=this.entries[e];if(o.type===t.MARKER_ENTRY)break;let s=o.element,l=this.treeAdapter.getAttrList(s),c=this.treeAdapter.getTagName(s)===a&&this.treeAdapter.getNamespaceURI(s)===i&&l.length===r;c&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){let r=this.treeAdapter.getAttrList(e),a=r.length,i=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.MARKER_ENTRY)break;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:function(e,t,n){"use strict";let r=n(55763),a=n(46519),i=n(12484),o=n(452),s=n(22232),l=n(81704),c=n(17296),u=n(8904),d=n(31515),p=n(88779),m=n(41734),g=n(54284),f=n(16152),h=f.TAG_NAMES,b=f.NAMESPACES,E=f.ATTRS,T={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},S="hidden",y="INITIAL_MODE",A="BEFORE_HTML_MODE",_="BEFORE_HEAD_MODE",k="IN_HEAD_MODE",N="IN_HEAD_NO_SCRIPT_MODE",C="AFTER_HEAD_MODE",v="IN_BODY_MODE",R="TEXT_MODE",I="IN_TABLE_MODE",O="IN_TABLE_TEXT_MODE",w="IN_CAPTION_MODE",x="IN_COLUMN_GROUP_MODE",L="IN_TABLE_BODY_MODE",D="IN_ROW_MODE",P="IN_CELL_MODE",M="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",U="IN_TEMPLATE_MODE",B="AFTER_BODY_MODE",H="IN_FRAMESET_MODE",G="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",$="AFTER_AFTER_FRAMESET_MODE",j={[h.TR]:D,[h.TBODY]:L,[h.THEAD]:L,[h.TFOOT]:L,[h.CAPTION]:w,[h.COLGROUP]:x,[h.TABLE]:I,[h.BODY]:v,[h.FRAMESET]:H},V={[h.CAPTION]:I,[h.COLGROUP]:I,[h.TBODY]:I,[h.TFOOT]:I,[h.THEAD]:I,[h.COL]:x,[h.TR]:L,[h.TD]:D,[h.TH]:D},W={[y]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);let n=t.forceQuirks?f.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(m.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=A},[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ee},[A]:{[r.CHARACTER_TOKEN]:et,[r.NULL_CHARACTER_TOKEN]:et,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?(e._insertElement(t,b.HTML),e.insertionMode=_):et(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&et(e,t)},[r.EOF_TOKEN]:et},[_]:{[r.CHARACTER_TOKEN]:en,[r.NULL_CHARACTER_TOKEN]:en,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.HEAD?(e._insertElement(t,b.HTML),e.headElement=e.openElements.current,e.insertionMode=k):en(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?en(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:en},[k]:{[r.CHARACTER_TOKEN]:ei,[r.NULL_CHARACTER_TOKEN]:ei,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:er,[r.END_TAG_TOKEN]:ea,[r.EOF_TOKEN]:ei},[N]:{[r.CHARACTER_TOKEN]:eo,[r.NULL_CHARACTER_TOKEN]:eo,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BASEFONT||n===h.BGSOUND||n===h.HEAD||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.STYLE?er(e,t):n===h.NOSCRIPT?e._err(m.nestedNoscriptInHead):eo(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.NOSCRIPT?(e.openElements.pop(),e.insertionMode=k):n===h.BR?eo(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:eo},[C]:{[r.CHARACTER_TOKEN]:es,[r.NULL_CHARACTER_TOKEN]:es,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BODY?(e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=v):n===h.FRAMESET?(e._insertElement(t,b.HTML),e.insertionMode=H):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE?(e._err(m.abandonedHeadElementChild),e.openElements.push(e.headElement),er(e,t),e.openElements.remove(e.headElement)):n===h.HEAD?e._err(m.misplacedStartTagForHeadElement):es(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.BODY||n===h.HTML||n===h.BR?es(e,t):n===h.TEMPLATE?ea(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:es},[v]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:eS,[r.END_TAG_TOKEN]:ek,[r.EOF_TOKEN]:eN},[R]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Q,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:Y,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:Y,[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(m.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[I]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:ev,[r.END_TAG_TOKEN]:eR,[r.EOF_TOKEN]:eN},[O]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:eO,[r.DOCTYPE_TOKEN]:eO,[r.START_TAG_TOKEN]:eO,[r.END_TAG_TOKEN]:eO,[r.EOF_TOKEN]:eO},[w]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TD||n===h.TFOOT||n===h.TH||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,e._processToken(t)):eS(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,n===h.TABLE&&e._processToken(t)):n!==h.BODY&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&ek(e,t)},[r.EOF_TOKEN]:eN},[x]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.COL?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.TEMPLATE?er(e,t):ew(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.COLGROUP?e.openElements.currentTagName===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=I):n===h.TEMPLATE?ea(e,t):n!==h.COL&&ew(e,t)},[r.EOF_TOKEN]:eN},[L]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,b.HTML),e.insertionMode=D):n===h.TH||n===h.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(h.TR),e.insertionMode=D,e._processToken(t)):n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TFOOT||n===h.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TBODY||n===h.TFOOT||n===h.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I):n===h.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):(n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP||n!==h.HTML&&n!==h.TD&&n!==h.TH&&n!==h.TR)&&eR(e,t)},[r.EOF_TOKEN]:eN},[D]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TH||n===h.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,b.HTML),e.insertionMode=P,e.activeFormattingElements.insertMarker()):n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TR?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L):n===h.TABLE?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):n===h.TBODY||n===h.TFOOT||n===h.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):(n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP||n!==h.HTML&&n!==h.TD&&n!==h.TH)&&eR(e,t)},[r.EOF_TOKEN]:eN},[P]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TD||n===h.TFOOT||n===h.TH||n===h.THEAD||n===h.TR?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),e._processToken(t)):eS(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D):n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&ek(e,t)},[r.EOF_TOKEN]:eN},[M]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:ex,[r.END_TAG_TOKEN]:eL,[r.EOF_TOKEN]:eN},[F]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processToken(t)):ex(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processToken(t)):eL(e,t)},[r.EOF_TOKEN]:eN},[U]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;if(n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE)er(e,t);else{let r=V[n]||v;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.TEMPLATE&&ea(e,t)},[r.EOF_TOKEN]:eD},[B]:{[r.CHARACTER_TOKEN]:eP,[r.NULL_CHARACTER_TOKEN]:eP,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?eS(e,t):eP(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?e.fragmentContext||(e.insertionMode=z):eP(e,t)},[r.EOF_TOKEN]:J},[H]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.FRAMESET?e._insertElement(t,b.HTML):n===h.FRAME?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==h.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===h.FRAMESET||(e.insertionMode=G))},[r.EOF_TOKEN]:J},[G]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.HTML&&(e.insertionMode=$)},[r.EOF_TOKEN]:J},[z]:{[r.CHARACTER_TOKEN]:eM,[r.NULL_CHARACTER_TOKEN]:eM,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?eS(e,t):eM(e,t)},[r.END_TAG_TOKEN]:eM,[r.EOF_TOKEN]:J},[$]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:Y,[r.EOF_TOKEN]:J}};function K(e,t){let n,r;for(let a=0;a<8&&((r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName))?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):e_(e,t),n=r);a++){let t=function(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a)&&(n=a)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;let r=function(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&i>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,t,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),function(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{let r=e.treeAdapter.getTagName(t),a=e.treeAdapter.getNamespaceURI(t);r===h.TEMPLATE&&a===b.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,r),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),a=n.token,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}(e,t,n)}}function Y(){}function Z(e){e._err(m.misplacedDoctype)}function q(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function X(e,t){e._appendCommentNode(t,e.document)}function Q(e,t){e._insertCharacters(t)}function J(e){e.stopped=!0}function ee(e,t){e._err(m.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,f.DOCUMENT_MODE.QUIRKS),e.insertionMode=A,e._processToken(t)}function et(e,t){e._insertFakeRootElement(),e.insertionMode=_,e._processToken(t)}function en(e,t){e._insertFakeElement(h.HEAD),e.headElement=e.openElements.current,e.insertionMode=k,e._processToken(t)}function er(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===h.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,b.HTML),e.insertionMode=N):n===h.NOFRAMES||n===h.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===h.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===h.TEMPLATE?(e._insertTemplate(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U,e._pushTmplInsertionMode(U)):n===h.HEAD?e._err(m.misplacedStartTagForHeadElement):ei(e,t)}function ea(e,t){let n=t.tagName;n===h.HEAD?(e.openElements.pop(),e.insertionMode=C):n===h.BODY||n===h.BR||n===h.HTML?ei(e,t):n===h.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==h.TEMPLATE&&e._err(m.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(m.endTagWithoutMatchingOpenElement)}function ei(e,t){e.openElements.pop(),e.insertionMode=C,e._processToken(t)}function eo(e,t){let n=t.type===r.EOF_TOKEN?m.openElementsLeftAfterEof:m.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=k,e._processToken(t)}function es(e,t){e._insertFakeElement(h.BODY),e.insertionMode=v,e._processToken(t)}function el(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ec(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function eu(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)}function ed(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ep(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function em(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ef(e,t){e._appendElement(t,b.HTML),t.ackSelfClosing=!0}function eh(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function eb(e,t){e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function eE(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,b.HTML)}function eT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function eS(e,t){let n=t.tagName;switch(n.length){case 1:n===h.I||n===h.S||n===h.B||n===h.U?ep(e,t):n===h.P?eu(e,t):n===h.A?function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);n&&(K(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):eT(e,t);break;case 2:n===h.DL||n===h.OL||n===h.UL?eu(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement();let n=e.openElements.currentTagName;(n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6)&&e.openElements.pop(),e._insertElement(t,b.HTML)}(e,t):n===h.LI||n===h.DD||n===h.DT?function(e,t){e.framesetOk=!1;let n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.items[t],a=e.treeAdapter.getTagName(r),i=null;if(n===h.LI&&a===h.LI?i=h.LI:(n===h.DD||n===h.DT)&&(a===h.DD||a===h.DT)&&(i=a),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t):n===h.EM||n===h.TT?ep(e,t):n===h.BR?eg(e,t):n===h.HR?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0):n===h.RB?eE(e,t):n===h.RT||n===h.RP?(e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,b.HTML)):n!==h.TH&&n!==h.TD&&n!==h.TR&&eT(e,t);break;case 3:n===h.DIV||n===h.DIR||n===h.NAV?eu(e,t):n===h.PRE?ed(e,t):n===h.BIG?ep(e,t):n===h.IMG||n===h.WBR?eg(e,t):n===h.XMP?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===h.SVG?(e._reconstructActiveFormattingElements(),p.adjustTokenSVGAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.SVG):e._insertElement(t,b.SVG),t.ackSelfClosing=!0):n===h.RTC?eE(e,t):n!==h.COL&&eT(e,t);break;case 4:n===h.HTML?0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs):n===h.BASE||n===h.LINK||n===h.META?er(e,t):n===h.BODY?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===h.MAIN||n===h.MENU?eu(e,t):n===h.FORM?function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===h.CODE||n===h.FONT?ep(e,t):n===h.NOBR?(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(K(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)):n===h.AREA?eg(e,t):n===h.MATH?(e._reconstructActiveFormattingElements(),p.adjustTokenMathMLAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.MATHML):e._insertElement(t,b.MATHML),t.ackSelfClosing=!0):n===h.MENU?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)):n!==h.HEAD&&eT(e,t);break;case 5:n===h.STYLE||n===h.TITLE?er(e,t):n===h.ASIDE?eu(e,t):n===h.SMALL?ep(e,t):n===h.TABLE?(e.treeAdapter.getDocumentMode(e.document)!==f.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=I):n===h.EMBED?eg(e,t):n===h.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML);let n=r.getTokenAttr(t,E.TYPE);n&&n.toLowerCase()===S||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===h.PARAM||n===h.TRACK?ef(e,t):n===h.IMAGE?(t.tagName=h.IMG,eg(e,t)):n!==h.FRAME&&n!==h.TBODY&&n!==h.TFOOT&&n!==h.THEAD&&eT(e,t);break;case 6:n===h.SCRIPT?er(e,t):n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP||n===h.DIALOG?eu(e,t):n===h.BUTTON?(e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1):n===h.STRIKE||n===h.STRONG?ep(e,t):n===h.APPLET||n===h.OBJECT?em(e,t):n===h.KEYGEN?eg(e,t):n===h.SOURCE?ef(e,t):n===h.IFRAME?(e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===h.SELECT?(e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode===I||e.insertionMode===w||e.insertionMode===L||e.insertionMode===D||e.insertionMode===P?e.insertionMode=F:e.insertionMode=M):n===h.OPTION?eb(e,t):eT(e,t);break;case 7:n===h.BGSOUND?er(e,t):n===h.DETAILS||n===h.ADDRESS||n===h.ARTICLE||n===h.SECTION||n===h.SUMMARY?eu(e,t):n===h.LISTING?ed(e,t):n===h.MARQUEE?em(e,t):n===h.NOEMBED?eh(e,t):n!==h.CAPTION&&eT(e,t);break;case 8:n===h.BASEFONT?er(e,t):n===h.FRAMESET?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,b.HTML),e.insertionMode=H)}(e,t):n===h.FIELDSET?eu(e,t):n===h.TEXTAREA?(e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R):n===h.TEMPLATE?er(e,t):n===h.NOSCRIPT?e.options.scriptingEnabled?eh(e,t):eT(e,t):n===h.OPTGROUP?eb(e,t):n!==h.COLGROUP&&eT(e,t);break;case 9:n===h.PLAINTEXT?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.tokenizer.state=r.MODE.PLAINTEXT):eT(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?eu(e,t):eT(e,t);break;default:eT(e,t)}}function ey(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eA(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function e_(e,t){let n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function ek(e,t){let n=t.tagName;switch(n.length){case 1:n===h.A||n===h.B||n===h.I||n===h.S||n===h.U?K(e,t):n===h.P?(e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(h.P),e._closePElement()):e_(e,t);break;case 2:n===h.DL||n===h.UL||n===h.OL?ey(e,t):n===h.LI?e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI)):n===h.DD||n===h.DT?function(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()):n===h.BR?(e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR),e.openElements.pop(),e.framesetOk=!1):n===h.EM||n===h.TT?K(e,t):e_(e,t);break;case 3:n===h.BIG?K(e,t):n===h.DIR||n===h.DIV||n===h.NAV||n===h.PRE?ey(e,t):e_(e,t);break;case 4:n===h.BODY?e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B):n===h.HTML?e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B,e._processToken(t)):n===h.FORM?function(e){let t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):e.openElements.remove(n))}(e,t):n===h.CODE||n===h.FONT||n===h.NOBR?K(e,t):n===h.MAIN||n===h.MENU?ey(e,t):e_(e,t);break;case 5:n===h.ASIDE?ey(e,t):n===h.SMALL?K(e,t):e_(e,t);break;case 6:n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP||n===h.DIALOG?ey(e,t):n===h.APPLET||n===h.OBJECT?eA(e,t):n===h.STRIKE||n===h.STRONG?K(e,t):e_(e,t);break;case 7:n===h.ADDRESS||n===h.ARTICLE||n===h.DETAILS||n===h.SECTION||n===h.SUMMARY||n===h.LISTING?ey(e,t):n===h.MARQUEE?eA(e,t):e_(e,t);break;case 8:n===h.FIELDSET?ey(e,t):n===h.TEMPLATE?ea(e,t):e_(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?ey(e,t):e_(e,t);break;default:e_(e,t)}}function eN(e,t){e.tmplInsertionModeStackTop>-1?eD(e,t):e.stopped=!0}function eC(e,t){let n=e.openElements.currentTagName;n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O,e._processToken(t)):eI(e,t)}function ev(e,t){let n=t.tagName;switch(n.length){case 2:n===h.TD||n===h.TH||n===h.TR?(e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY),e.insertionMode=L,e._processToken(t)):eI(e,t);break;case 3:n===h.COL?(e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP),e.insertionMode=x,e._processToken(t)):eI(e,t);break;case 4:n===h.FORM?e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,b.HTML),e.formElement=e.openElements.current,e.openElements.pop()):eI(e,t);break;case 5:n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processToken(t)):n===h.STYLE?er(e,t):n===h.TBODY||n===h.TFOOT||n===h.THEAD?(e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=L):n===h.INPUT?function(e,t){let n=r.getTokenAttr(t,E.TYPE);n&&n.toLowerCase()===S?e._appendElement(t,b.HTML):eI(e,t),t.ackSelfClosing=!0}(e,t):eI(e,t);break;case 6:n===h.SCRIPT?er(e,t):eI(e,t);break;case 7:n===h.CAPTION?(e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,b.HTML),e.insertionMode=w):eI(e,t);break;case 8:n===h.COLGROUP?(e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=x):n===h.TEMPLATE?er(e,t):eI(e,t);break;default:eI(e,t)}}function eR(e,t){let n=t.tagName;n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode()):n===h.TEMPLATE?ea(e,t):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&eI(e,t)}function eI(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function eO(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function eP(e,t){e.insertionMode=v,e._processToken(t)}function eM(e,t){e.insertionMode=v,e._processToken(t)}e.exports=class{constructor(e){this.options=u(T,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,o),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(h.TEMPLATE,b.HTML,[]));let n=this.treeAdapter.createElement("documentmock",b.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===h.TEMPLATE&&this._pushTmplInsertionMode(U),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let r=this.treeAdapter.getFirstChild(n),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,a),a}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=y,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new a(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let e=this.pendingScript;this.pendingScript=null,t(e);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==b.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,b.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=R}switchToPlaintextParsing(){this.insertionMode=R,this.originalInsertionMode=v,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===h.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===b.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===h.TITLE||e===h.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===h.STYLE||e===h.XMP||e===h.IFRAME||e===h.NOEMBED||e===h.NOFRAMES||e===h.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===h.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===h.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,b.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,b.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(h.HTML,b.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let n=this.treeAdapter.getNamespaceURI(t);if(n===b.HTML||this.treeAdapter.getTagName(t)===h.ANNOTATION_XML&&n===b.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===h.SVG)return!1;let a=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN,i=e.type===r.START_TAG_TOKEN&&e.tagName!==h.MGLYPH&&e.tagName!==h.MALIGNMARK;return!((i||a)&&this._isIntegrationPoint(t,b.MATHML)||(e.type===r.START_TAG_TOKEN||a)&&this._isIntegrationPoint(t,b.HTML))&&e.type!==r.EOF_TOKEN}_processToken(e){W[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){W[v][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?(this._insertCharacters(e),this.framesetOk=!1):e.type===r.NULL_CHARACTER_TOKEN?(e.chars=g.REPLACEMENT_CHARACTER,this._insertCharacters(e)):e.type===r.WHITESPACE_CHARACTER_TOKEN?Q(this,e):e.type===r.COMMENT_TOKEN?q(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(p.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==b.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===b.MATHML?p.adjustTokenMathMLAttrs(t):r===b.SVG&&(p.adjustTokenSVGTagName(t),p.adjustTokenSVGAttrs(t)),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===b.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(m.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),a=this.treeAdapter.getAttrList(e);return p.isIntegrationPoint(n,r,a,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,n=null;do if(t--,(n=this.activeFormattingElements.entries[t]).type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));let r=this.treeAdapter.getTagName(n),a=j[r];if(a){this.insertionMode=a;break}if(t||r!==h.TD&&r!==h.TH){if(t||r!==h.HEAD){if(r===h.SELECT){this._resetInsertionModeForSelect(e);break}if(r===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===h.HTML){this.insertionMode=this.headElement?C:_;break}else if(t){this.insertionMode=v;break}}else{this.insertionMode=k;break}}else{this.insertionMode=P;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===h.TEMPLATE)break;if(n===h.TABLE){this.insertionMode=F;return}}this.insertionMode=M}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===h.TABLE||t===h.TBODY||t===h.TFOOT||t===h.THEAD||t===h.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),a=this.treeAdapter.getNamespaceURI(n);if(r===h.TEMPLATE&&a===b.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===h.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return f.SPECIAL_ELEMENTS[n][t]}}},46519:function(e,t,n){"use strict";let r=n(16152),a=r.TAG_NAMES,i=r.NAMESPACES;function o(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI;case 3:return e===a.RTC;case 6:return e===a.OPTION;case 8:return e===a.OPTGROUP}return!1}function s(e,t){switch(e.length){case 2:if(e===a.TD||e===a.TH)return t===i.HTML;if(e===a.MI||e===a.MO||e===a.MN||e===a.MS)return t===i.MATHML;break;case 4:if(e===a.HTML)return t===i.HTML;if(e===a.DESC)return t===i.SVG;break;case 5:if(e===a.TABLE)return t===i.HTML;if(e===a.MTEXT)return t===i.MATHML;if(e===a.TITLE)return t===i.SVG;break;case 6:return(e===a.APPLET||e===a.OBJECT)&&t===i.HTML;case 7:return(e===a.CAPTION||e===a.MARQUEE)&&t===i.HTML;case 8:return e===a.TEMPLATE&&t===i.HTML;case 13:return e===a.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===a.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.H1||e===a.H2||e===a.H3||e===a.H4||e===a.H5||e===a.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.TD||e===a.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==a.TABLE&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==a.TBODY&&this.currentTagName!==a.TFOOT&&this.currentTagName!==a.THEAD&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==a.TR&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===a.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===a.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if(s(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===a.H1||t===a.H2||t===a.H3||t===a.H4||t===a.H5||t===a.H6)&&n===i.HTML)break;if(s(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if((n===a.UL||n===a.OL)&&r===i.HTML||s(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if(n===a.BUTTON&&r===i.HTML||s(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===i.HTML){if(n===e)break;if(n===a.TABLE||n===a.TEMPLATE||n===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===i.HTML){if(t===a.TBODY||t===a.THEAD||t===a.TFOOT)break;if(t===a.TABLE||t===a.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===i.HTML){if(n===e)break;if(n!==a.OPTION&&n!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;o(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;function(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI||e===a.TD||e===a.TH||e===a.TR;case 3:return e===a.RTC;case 5:return e===a.TBODY||e===a.TFOOT||e===a.THEAD;case 6:return e===a.OPTION;case 7:return e===a.CAPTION;case 8:return e===a.OPTGROUP||e===a.COLGROUP}return!1}(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;o(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:function(e,t,n){"use strict";let r=n(77118),a=n(54284),i=n(5482),o=n(41734),s=a.CODE_POINTS,l=a.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},u="DATA_STATE",d="RCDATA_STATE",p="RAWTEXT_STATE",m="SCRIPT_DATA_STATE",g="PLAINTEXT_STATE",f="TAG_OPEN_STATE",h="END_TAG_OPEN_STATE",b="TAG_NAME_STATE",E="RCDATA_LESS_THAN_SIGN_STATE",T="RCDATA_END_TAG_OPEN_STATE",S="RCDATA_END_TAG_NAME_STATE",y="RAWTEXT_LESS_THAN_SIGN_STATE",A="RAWTEXT_END_TAG_OPEN_STATE",_="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",N="SCRIPT_DATA_END_TAG_OPEN_STATE",C="SCRIPT_DATA_END_TAG_NAME_STATE",v="SCRIPT_DATA_ESCAPE_START_STATE",R="SCRIPT_DATA_ESCAPE_START_DASH_STATE",I="SCRIPT_DATA_ESCAPED_STATE",O="SCRIPT_DATA_ESCAPED_DASH_STATE",w="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",x="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",L="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",D="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",P="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",U="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",G="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",$="AFTER_ATTRIBUTE_NAME_STATE",j="BEFORE_ATTRIBUTE_VALUE_STATE",V="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",W="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",K="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",q="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",et="COMMENT_LESS_THAN_SIGN_STATE",en="COMMENT_LESS_THAN_SIGN_BANG_STATE",er="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ea="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ei="COMMENT_END_DASH_STATE",eo="COMMENT_END_STATE",es="COMMENT_END_BANG_STATE",el="DOCTYPE_STATE",ec="BEFORE_DOCTYPE_NAME_STATE",eu="DOCTYPE_NAME_STATE",ed="AFTER_DOCTYPE_NAME_STATE",ep="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",em="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eg="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",ef="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",eh="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eb="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",eE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",eT="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",eS="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ey="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",eA="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",e_="BOGUS_DOCTYPE_STATE",ek="CDATA_SECTION_STATE",eN="CDATA_SECTION_BRACKET_STATE",eC="CDATA_SECTION_END_STATE",ev="CHARACTER_REFERENCE_STATE",eR="NAMED_CHARACTER_REFERENCE_STATE",eI="AMBIGUOS_AMPERSAND_STATE",eO="NUMERIC_CHARACTER_REFERENCE_STATE",ew="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ex="DECIMAL_CHARACTER_REFERENCE_START_STATE",eL="HEXADEMICAL_CHARACTER_REFERENCE_STATE",eD="DECIMAL_CHARACTER_REFERENCE_STATE",eP="NUMERIC_CHARACTER_REFERENCE_END_STATE";function eM(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function eF(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function eU(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function eB(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function eH(e){return eB(e)||eU(e)}function eG(e){return eH(e)||eF(e)}function ez(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function e$(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function ej(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-=65536)>>>10&1023|55296)+String.fromCharCode(56320|1023&e)}function eV(e){return String.fromCharCode(e+32)}function eW(e,t){let n=i[++e],r=++e,a=r+n-1;for(;r<=a;){let e=r+a>>>1,o=i[e];if(ot))return i[e+n];a=e-1}}return -1}class eK{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:eK.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r,a=0,i=!0,o=e.length,l=0,c=t;for(;l0&&(c=this._consume(),a++),c===s.EOF||c!==(r=e[l])&&(n||c!==r+32)){i=!1;break}if(!i)for(;a--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(o.endTagWithAttributes),e.selfClosing&&this._err(o.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eK.CHARACTER_TOKEN;eM(e)?t=eK.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=eK.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,ej(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){let e=i[r],a=e<7,o=a&&1&e;o&&(t=2&e?[i[++r],i[++r]]:[i[++r]],n=0);let l=this._consume();if(this.tempBuff.push(l),n++,l===s.EOF)break;r=a?4&e?eW(r,l):-1:l===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===V||this.returnState===W||this.returnState===K}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||eG(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=I,this._emitChars(a.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=I,this._emitCodePoint(e))}[x](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=L):eH(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(P)):(this._emitChars("<"),this._reconsumeInState(I))}[L](e){eH(e)?(this._createEndTagToken(),this._reconsumeInState(D)):(this._emitChars("")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=M,this._emitChars(a.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=M,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChars("/")):this._reconsumeInState(M)}[H](e){eM(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?I:M,this._emitCodePoint(e)):eU(e)?(this.tempBuff.push(e+32),this._emitCodePoint(e)):eB(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(M)}[G](e){eM(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState($):e===s.EQUALS_SIGN?(this._err(o.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){eM(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName($),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(j):eU(e)?this.currentAttr.name+=eV(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(o.unexpectedCharacterInAttributeName),this.currentAttr.name+=ej(e)):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.name+=a.REPLACEMENT_CHARACTER):this.currentAttr.name+=ej(e)}[$](e){eM(e)||(e===s.SOLIDUS?this.state=Z:e===s.EQUALS_SIGN?this.state=j:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[j](e){eM(e)||(e===s.QUOTATION_MARK?this.state=V:e===s.APOSTROPHE?this.state=W:e===s.GREATER_THAN_SIGN?(this._err(o.missingAttributeValue),this.state=u,this._emitCurrentToken()):this._reconsumeInState(K))}[V](e){e===s.QUOTATION_MARK?this.state=Y:e===s.AMPERSAND?(this.returnState=V,this.state=ev):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[W](e){e===s.APOSTROPHE?this.state=Y:e===s.AMPERSAND?(this.returnState=W,this.state=ev):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[K](e){eM(e)?this._leaveAttrValue(G):e===s.AMPERSAND?(this.returnState=K,this.state=ev):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(o.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=ej(e)):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[Y](e){eM(e)?this._leaveAttrValue(G):e===s.SOLIDUS?this._leaveAttrValue(Z):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.missingWhitespaceBetweenAttributes),this._reconsumeInState(G))}[Z](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.unexpectedSolidusInTag),this._reconsumeInState(G))}[q](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=a.REPLACEMENT_CHARACTER):this.currentToken.data+=ej(e)}[X](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=el:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ek:(this._err(o.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=q):this._ensureHibernation()||(this._err(o.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(q))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ei:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=et):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=ej(e)}[et](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=en):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[en](e){e===s.HYPHEN_MINUS?this.state=er:this._reconsumeInState(ee)}[er](e){e===s.HYPHEN_MINUS?this.state=ea:this._reconsumeInState(ei)}[ea](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(o.nestedComment),this._reconsumeInState(eo)}[ei](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[eo](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=es:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[es](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ei):e===s.GREATER_THAN_SIGN?(this._err(o.incorrectlyClosedComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[el](e){eM(e)?this.state=ec:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ec):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ec))}[ec](e){eM(e)||(eU(e)?(this._createDoctypeToken(eV(e)),this.state=eu):e===s.NULL?(this._err(o.unexpectedNullCharacter),this._createDoctypeToken(a.REPLACEMENT_CHARACTER),this.state=eu):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(ej(e)),this.state=eu))}[eu](e){eM(e)?this.state=ed:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):eU(e)?this.currentToken.name+=eV(e):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.name+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=ej(e)}[ed](e){!eM(e)&&(e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=ep:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=eE:this._ensureHibernation()||(this._err(o.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[ep](e){eM(e)?this.state=em:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=eg):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ef):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[em](e){eM(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=eg):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=ef):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eg](e){e===s.QUOTATION_MARK?this.state=eh:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=ej(e)}[ef](e){e===s.APOSTROPHE?this.state=eh:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=ej(e)}[eh](e){eM(e)?this.state=eb:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ey):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[eb](e){eM(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ey):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eE](e){eM(e)?this.state=eT:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ey):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[eT](e){eM(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ey):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eS](e){e===s.QUOTATION_MARK?this.state=eA:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=ej(e)}[ey](e){e===s.APOSTROPHE?this.state=eA:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=ej(e)}[eA](e){eM(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(e_)))}[e_](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.NULL?this._err(o.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ek](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eN:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[eN](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eC:(this._emitChars("]"),this._reconsumeInState(ek))}[eC](e){e===s.GREATER_THAN_SIGN?this.state=u:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ek))}[ev](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=eO):eG(e)?this._reconsumeInState(eR):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eR](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){let e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(o.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=eI}[eI](e){eG(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=ej(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(o.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[eO](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=ew):this._reconsumeInState(ex)}[ew](e){eF(e)||ez(e)||e$(e)?this._reconsumeInState(eL):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ex](e){eF(e)?this._reconsumeInState(eD):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eL](e){ez(e)?this.charRefCode=16*this.charRefCode+e-55:e$(e)?this.charRefCode=16*this.charRefCode+e-87:eF(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eP:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eP))}[eD](e){eF(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eP:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eP))}[eP](){if(this.charRefCode===s.NULL)this._err(o.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(o.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(a.isSurrogate(this.charRefCode))this._err(o.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(a.isUndefinedCodePoint(this.charRefCode))this._err(o.noncharacterCharacterReference);else if(a.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(o.controlCharacterReference);let e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}eK.CHARACTER_TOKEN="CHARACTER_TOKEN",eK.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",eK.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",eK.START_TAG_TOKEN="START_TAG_TOKEN",eK.END_TAG_TOKEN="END_TAG_TOKEN",eK.COMMENT_TOKEN="COMMENT_TOKEN",eK.DOCTYPE_TOKEN="DOCTYPE_TOKEN",eK.EOF_TOKEN="EOF_TOKEN",eK.HIBERNATION_TOKEN="HIBERNATION_TOKEN",eK.MODE={DATA:u,RCDATA:d,RAWTEXT:p,SCRIPT_DATA:m,PLAINTEXT:g},eK.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=eK},5482:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:function(e,t,n){"use strict";let r=n(54284),a=n(41734),i=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(a.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));let t=e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(a.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(a.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(16152);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};let a=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let a=null;for(let t=0;t(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},81704:function(e){"use strict";class t{constructor(e){let t={},n=this._getOverriddenMethods(this,t);for(let r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n4&&g.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?f=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(m=(p=t).slice(4),t=l.test(m)?p:("-"!==(m=m.replace(c,u)).charAt(0)&&(m="-"+m),o+m)),h=a),new h(f,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),a=n(8289),i=n(5812),o=n(94397),s=n(67716),l=n(61805);e.exports=r([i,a,o,s,l])},67716:function(e,t,n){"use strict";var r=n(17e3),a=n(17596),i=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),a=n(17596),i=n(10855),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),a=n(99607),i=n(98805);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new a(d,p,o)}},98805:function(e,t,n){"use strict";var r=n(57643),a=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,n,s){var l,c,u,d=-1;for(s&&(this.space=s),r.call(this,e,t);++dt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let o="text/event-stream",s="last-event-id";function l(e,t){var{signal:n,headers:l,onopen:u,onmessage:d,onclose:p,onerror:m,openWhenHidden:g,fetch:f}=t,h=i(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,i)=>{let b;let E=Object.assign({},l);function T(){b.abort(),document.hidden||N()}E.accept||(E.accept=o),g||document.addEventListener("visibilitychange",T);let S=1e3,y=0;function A(){document.removeEventListener("visibilitychange",T),window.clearTimeout(y),b.abort()}null==n||n.addEventListener("abort",()=>{A(),t()});let _=null!=f?f:window.fetch,k=null!=u?u:c;async function N(){var n,o;b=new AbortController;try{let n,i,l,c;let u=await _(e,Object.assign(Object.assign({},h),{headers:E,signal:b.signal}));await k(u),await r(u.body,(o=function(e,t,n){let r=a(),i=new TextDecoder;return function(o,s){if(0===o.length)null==n||n(r),r=a();else if(s>0){let n=i.decode(o.subarray(0,s)),a=s+(32===o[s+1]?2:1),l=i.decode(o.subarray(a));switch(n){case"data":r.data=r.data?r.data+"\n"+l:l;break;case"event":r.event=l;break;case"id":e(r.id=l);break;case"retry":let c=parseInt(l,10);isNaN(c)||t(r.retry=c)}}}}(e=>{e?E[s]=e:delete E[s]},e=>{S=e},d),c=!1,function(e){void 0===n?(n=e,i=0,l=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,r=0;for(;i{"open"===t&&(null==n||n(e,r)),p.current=a},[n]),g=r.useMemo(()=>void 0!==a?{open:a}:{},[a]),[f,h]=(0,i.r)({controlledProps:g,initialState:t?{open:!0}:{open:!1},onStateChange:m,reducer:s});return r.useEffect(()=>{f.open||null===p.current||p.current===o.Q.blur||null==u||u.focus()},[f.open,u]),{contextValue:{state:f,dispatch:h,popupId:l,registerPopup:c,registerTrigger:d,triggerElement:u},open:f.open}}({defaultOpen:c,onOpenChange:u,open:n});return(0,l.jsx)(a.D.Provider,{value:d,children:t})}},85241:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(67294);let a=r.createContext(null)},51633:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});let r={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"}},41132:function(e,t,n){"use strict";var r=n(34678),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded")},59301:function(e,t,n){"use strict";var r=n(34678),a=n(85893);t.Z=(0,r.Z)((0,a.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz")},51610:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(87462),a=n(63366),i=n(67294),o=n(90512),s=n(94780),l=n(34867),c=n(18719),u=n(13264),d=n(39214),p=n(96682),m=n(39707),g=n(88647);let f=(e,t)=>e.filter(e=>t.includes(e)),h=(e,t,n)=>{let r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){let a=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));a.forEach(a=>{if(-1!==e.keys.indexOf(a)){let i=t[a];void 0!==i&&n((t,n)=>{r===a?Object.assign(t,n):t[e.up(a)]=n},i)}})}else("number"==typeof t||"string"==typeof t)&&n((e,t)=>{Object.assign(e,t)},t)};function b(e){return e?`Level${e}`:""}function E(e){return e.unstable_level>0&&e.container}function T(e){return function(t){return`var(--Grid-${t}Spacing${b(e.unstable_level)})`}}function S(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${b(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${b(e.unstable_level-1)})`}let A=({theme:e,ownerState:t})=>{let n=T(t),r={};return h(e.breakpoints,t.gridSize,(e,a)=>{let i={};!0===a&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===a&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof a&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${y(t)}${E(t)?` + ${n("column")}`:""})`}),e(r,i)}),r},_=({theme:e,ownerState:t})=>{let n={};return h(e.breakpoints,t.gridOffset,(e,r)=>{let a={};"auto"===r&&(a={marginLeft:"auto"}),"number"==typeof r&&(a={marginLeft:0===r?"0px":`calc(100% * ${r} / ${y(t)})`}),e(n,a)}),n},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=E(t)?{[`--Grid-columns${b(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return h(e.breakpoints,t.columns,(e,r)=>{e(n,{[`--Grid-columns${b(t.unstable_level)}`]:r})}),n},N=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),r=E(t)?{[`--Grid-rowSpacing${b(t.unstable_level)}`]:n("row")}:{};return h(e.breakpoints,t.rowSpacing,(n,a)=>{var i;n(r,{[`--Grid-rowSpacing${b(t.unstable_level)}`]:"string"==typeof a?a:null==(i=e.spacing)?void 0:i.call(e,a)})}),r},C=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),r=E(t)?{[`--Grid-columnSpacing${b(t.unstable_level)}`]:n("column")}:{};return h(e.breakpoints,t.columnSpacing,(n,a)=>{var i;n(r,{[`--Grid-columnSpacing${b(t.unstable_level)}`]:"string"==typeof a?a:null==(i=e.spacing)?void 0:i.call(e,a)})}),r},v=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return h(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},R=({ownerState:e})=>{let t=T(e),n=S(e);return(0,r.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,r.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||E(e))&&(0,r.Z)({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},I=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},O=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},w=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var x=n(85893);let L=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],D=(0,g.Z)(),P=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function M(e){return(0,d.Z)({props:e,name:"MuiGrid",defaultTheme:D})}var F=n(74312),U=n(20407);let B=function(e={}){let{createStyledComponent:t=P,useThemeProps:n=M,componentName:u="MuiGrid"}=e,d=i.createContext(void 0),g=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:i,gridSize:o}=e,c={root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...w(r),...I(o),...n?O(a,t.breakpoints.keys[0]):[]]};return(0,s.Z)(c,e=>(0,l.Z)(u,e),{})},f=t(k,C,N,A,v,R,_),h=i.forwardRef(function(e,t){var s,l,u,h,b,E,T,S;let y=(0,p.Z)(),A=n(e),_=(0,m.Z)(A),k=i.useContext(d),{className:N,children:C,columns:v=12,container:R=!1,component:I="div",direction:O="row",wrap:w="wrap",spacing:D=0,rowSpacing:P=D,columnSpacing:M=D,disableEqualOverflow:F,unstable_level:U=0}=_,B=(0,a.Z)(_,L),H=F;U&&void 0!==F&&(H=e.disableEqualOverflow);let G={},z={},$={};Object.entries(B).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?G[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:$[e]=t});let j=null!=(s=e.columns)?s:U?void 0:v,V=null!=(l=e.spacing)?l:U?void 0:D,W=null!=(u=null!=(h=e.rowSpacing)?h:e.spacing)?u:U?void 0:P,K=null!=(b=null!=(E=e.columnSpacing)?E:e.spacing)?b:U?void 0:M,Y=(0,r.Z)({},_,{level:U,columns:j,container:R,direction:O,wrap:w,spacing:V,rowSpacing:W,columnSpacing:K,gridSize:G,gridOffset:z,disableEqualOverflow:null!=(T=null!=(S=H)?S:k)&&T,parentDisableEqualOverflow:k}),Z=g(Y,y),q=(0,x.jsx)(f,(0,r.Z)({ref:t,as:I,ownerState:Y,className:(0,o.Z)(Z.root,N)},$,{children:i.Children.map(C,e=>{if(i.isValidElement(e)&&(0,c.Z)(e,["Grid"])){var t;return i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:U+1})}return e})}));return void 0!==H&&H!==(null!=k&&k)&&(q=(0,x.jsx)(d.Provider,{value:H,children:q})),q});return h.muiName="Grid",h}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,U.Z)({props:e,name:"JoyGrid"})});var H=B},14553:function(e,t,n){"use strict";n.d(t,{ZP:function(){return _}});var r=n(63366),a=n(87462),i=n(67294),o=n(14142),s=n(33703),l=n(70758),c=n(94780),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(26821);function f(e){return(0,g.d6)("MuiIconButton",e)}(0,g.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var h=n(89996),b=n(85893);let E=["children","action","component","color","disabled","variant","size","slots","slotProps"],T=e=>{let{color:t,disabled:n,focusVisible:r,focusVisibleClassName:a,size:i,variant:s}=e,l={root:["root",n&&"disabled",r&&"focusVisible",s&&`variant${(0,o.Z)(s)}`,t&&`color${(0,o.Z)(t)}`,i&&`size${(0,o.Z)(i)}`]},u=(0,c.Z)(l,f,{});return r&&a&&(u.root+=` ${a}`),u},S=(0,u.Z)("button")(({theme:e,ownerState:t})=>{var n,r,i,o;return[(0,a.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px","--CircularProgress-thickness":"3px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:(0,a.Z)({"--Icon-color":"currentColor"},e.focus.default)}),(0,a.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":(0,a.Z)({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':(0,a.Z)({"--Icon-color":"currentColor"},null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]),"&:disabled":null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})]}),y=(0,u.Z)(S,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A=i.forwardRef(function(e,t){var n;let o=(0,d.Z)({props:e,name:"JoyIconButton"}),{children:c,action:u,component:g="button",color:f="neutral",disabled:S,variant:A="plain",size:_="md",slots:k={},slotProps:N={}}=o,C=(0,r.Z)(o,E),v=i.useContext(h.Z),R=e.variant||v.variant||A,I=e.size||v.size||_,{getColor:O}=(0,p.VT)(R),w=O(e.color,v.color||f),x=null!=(n=e.disabled)?n:v.disabled||S,L=i.useRef(null),D=(0,s.Z)(L,t),{focusVisible:P,setFocusVisible:M,getRootProps:F}=(0,l.U)((0,a.Z)({},o,{disabled:x,rootRef:D}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;M(!0),null==(e=L.current)||e.focus()}}),[M]);let U=(0,a.Z)({},o,{component:g,color:w,disabled:x,variant:R,size:I,focusVisible:P,instanceSize:e.size}),B=T(U),H=(0,a.Z)({},C,{component:g,slots:k,slotProps:N}),[G,z]=(0,m.Z)("root",{ref:t,className:B.root,elementType:y,getSlotProps:F,externalForwardedProps:H,ownerState:U});return(0,b.jsx)(G,(0,a.Z)({},z,{children:c}))});A.muiName="IconButton";var _=A},25359:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(63366),a=n(87462),i=n(67294),o=n(14142),s=n(94780),l=n(33703),c=n(92996),u=n(73546),d=n(22644),p=n(7333);function m(e,t){if(t.type===d.F.itemHover)return e;let n=(0,p.R$)(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return(0,a.Z)({},n,{highlightedValue:t.context.items[0]});if(t.type===d.F.keyDown&&"Escape"===t.event.key)return(0,a.Z)({},n,{open:!1});if(t.type===d.F.blur){var r,i,o;if(!(null!=(r=t.context.listboxRef.current)&&r.contains(t.event.relatedTarget))){let e=null==(i=t.context.listboxRef.current)?void 0:i.getAttribute("id"),r=null==(o=t.event.relatedTarget)?void 0:o.getAttribute("aria-controls");return e&&r&&e===r?n:(0,a.Z)({},n,{open:!1,highlightedValue:t.context.items[0]})}}return n}var g=n(85241),f=n(96592),h=n(51633),b=n(12247),E=n(2900);let T={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null};var S=n(26558),y=n(85893);function A(e){let{value:t,children:n}=e,{dispatch:r,getItemIndex:a,getItemState:o,registerHighlightChangeHandler:s,registerSelectionChangeHandler:l,registerItem:c,totalSubitemCount:u}=t,d=i.useMemo(()=>({dispatch:r,getItemState:o,getItemIndex:a,registerHighlightChangeHandler:s,registerSelectionChangeHandler:l}),[r,a,o,s,l]),p=i.useMemo(()=>({getItemIndex:a,registerItem:c,totalSubitemCount:u}),[c,a,u]);return(0,y.jsx)(b.s.Provider,{value:p,children:(0,y.jsx)(S.Z.Provider,{value:d,children:n})})}var _=n(9572),k=n(7293),N=n(50984),C=n(3419),v=n(43614),R=n(74312),I=n(20407),O=n(55907),w=n(78653),x=n(26821);function L(e){return(0,x.d6)("MuiMenu",e)}(0,x.sI)("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);let D=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],P=e=>{let{open:t,variant:n,color:r,size:a}=e,i={root:["root",t&&"expanded",n&&`variant${(0,o.Z)(n)}`,r&&`color${(0,o.Z)(r)}`,a&&`size${(0,o.Z)(a)}`],listbox:["listbox"]};return(0,s.Z)(i,L,{})},M=(0,R.Z)(N.C,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,r;let i=null==(n=e.variants[t.variant])?void 0:n[t.color];return[(0,a.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==i?void 0:i.backgroundColor)||(null==i?void 0:i.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},C.M,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=i&&i.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup}),"context"!==t.color&&t.invertedColors&&(null==(r=e.colorInversion[t.variant])?void 0:r[t.color])]}),F=i.forwardRef(function(e,t){var n;let o=(0,I.Z)({props:e,name:"JoyMenu"}),{actions:s,children:p,color:S="neutral",component:N,disablePortal:R=!1,keepMounted:x=!1,id:L,invertedColors:F=!1,onItemsChange:U,modifiers:B,variant:H="outlined",size:G="md",slots:z={},slotProps:$={}}=o,j=(0,r.Z)(o,D),{getColor:V}=(0,w.VT)(H),W=R?V(e.color,S):S,{contextValue:K,getListboxProps:Y,dispatch:Z,open:q,triggerElement:X}=function(e={}){var t,n;let{listboxRef:r,onItemsChange:o,id:s}=e,d=i.useRef(null),p=(0,l.Z)(d,r),S=null!=(t=(0,c.Z)(s))?t:"",{state:{open:y},dispatch:A,triggerElement:_,registerPopup:k}=null!=(n=i.useContext(g.D))?n:T,N=i.useRef(y),{subitems:C,contextValue:v}=(0,b.Y)(),R=i.useMemo(()=>Array.from(C.keys()),[C]),I=i.useCallback(e=>{var t,n;return null==e?null:null!=(t=null==(n=C.get(e))?void 0:n.ref.current)?t:null},[C]),{dispatch:O,getRootProps:w,contextValue:x,state:{highlightedValue:L},rootRef:D}=(0,f.s)({disabledItemsFocusable:!0,focusManagement:"DOM",getItemDomElement:I,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:e=>{var t;return(null==C||null==(t=C.get(e))?void 0:t.disabled)||!1},items:R,getItemAsString:e=>{var t,n;return(null==(t=C.get(e))?void 0:t.label)||(null==(n=C.get(e))||null==(n=n.ref.current)?void 0:n.innerText)},rootRef:p,onItemsChange:o,reducerActionContext:{listboxRef:d},selectionMode:"none",stateReducer:m});(0,u.Z)(()=>{k(S)},[S,k]),i.useEffect(()=>{if(y&&L===R[0]&&!N.current){var e;null==(e=C.get(R[0]))||null==(e=e.ref)||null==(e=e.current)||e.focus()}},[y,L,C,R]),i.useEffect(()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==L&&(null==C||null==(t=C.get(L))||null==(t=t.ref.current)||t.focus())},[L,C]);let P=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===_||A({type:h.Q.blur,event:t})},M=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"!==t.key||A({type:h.Q.escapeKeyDown,event:t})},F=(e={})=>({onBlur:P(e),onKeyDown:M(e)});return i.useDebugValue({subitems:C,highlightedValue:L}),{contextValue:(0,a.Z)({},v,x),dispatch:O,getListboxProps:(e={})=>{let t=(0,E.f)(F,w);return(0,a.Z)({},t(e),{id:S,role:"menu"})},highlightedValue:L,listboxRef:D,menuItems:C,open:y,triggerElement:_}}({onItemsChange:U,id:L,listboxRef:t});i.useImperativeHandle(s,()=>({dispatch:Z,resetHighlight:()=>Z({type:d.F.resetHighlight,event:null})}),[Z]);let Q=(0,a.Z)({},o,{disablePortal:R,invertedColors:F,color:W,variant:H,size:G,open:q,nesting:!1,row:!1}),J=P(Q),ee=(0,a.Z)({},j,{component:N,slots:z,slotProps:$}),et=i.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...B||[]],[B]),en=(0,k.y)({elementType:M,getSlotProps:Y,externalForwardedProps:ee,externalSlotProps:{},ownerState:Q,additionalProps:{anchorEl:X,open:q&&null!==X,disablePortal:R,keepMounted:x,modifiers:et},className:J.root}),er=(0,y.jsx)(A,{value:K,children:(0,y.jsx)(O.Yb,{variant:F?void 0:H,color:S,children:(0,y.jsx)(v.Z.Provider,{value:"menu",children:(0,y.jsx)(C.Z,{nested:!0,children:p})})})});return F&&(er=(0,y.jsx)(w.do,{variant:H,children:er})),er=(0,y.jsx)(M,(0,a.Z)({},en,!(null!=(n=o.slots)&&n.root)&&{as:_.r,slots:{root:N||"ul"}},{children:er})),R?er:(0,y.jsx)(w.ZP.Provider,{value:void 0,children:er})});var U=F},59562:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(63366),a=n(87462),i=n(67294),o=n(33703),s=n(85241),l=n(51633),c=n(70758),u=n(2900),d=n(94780),p=n(14142),m=n(26821);function g(e){return(0,m.d6)("MuiMenuButton",e)}(0,m.sI)("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var f=n(20407),h=n(30220),b=n(48699),E=n(66478),T=n(74312),S=n(78653),y=n(89996),A=n(85893);let _=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],k=e=>{let{color:t,disabled:n,fullWidth:r,size:a,variant:i,loading:o}=e,s={root:["root",n&&"disabled",r&&"fullWidth",i&&`variant${(0,p.Z)(i)}`,t&&`color${(0,p.Z)(t)}`,a&&`size${(0,p.Z)(a)}`,o&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]};return(0,d.Z)(s,g,{})},N=(0,T.Z)("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(E.f),C=(0,T.Z)("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),v=(0,T.Z)("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),R=(0,T.Z)("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var n,r;return(0,a.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})}),I=i.forwardRef(function(e,t){var n;let d=(0,f.Z)({props:e,name:"JoyMenuButton"}),{children:p,color:m="neutral",component:g,disabled:E=!1,endDecorator:T,loading:I=!1,loadingPosition:O="center",loadingIndicator:w,size:x="md",slotProps:L={},slots:D={},startDecorator:P,variant:M="outlined"}=d,F=(0,r.Z)(d,_),U=i.useContext(y.Z),B=e.variant||U.variant||M,H=e.size||U.size||x,{getColor:G}=(0,S.VT)(B),z=G(e.color,U.color||m),$=null!=(n=e.disabled)?n:U.disabled||E||I,{getRootProps:j,open:V,active:W}=function(e={}){let{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,d=i.useContext(s.D);if(null===d)throw Error("useMenuButton: no menu context available.");let{state:p,dispatch:m,registerTrigger:g,popupId:f}=d,{getRootProps:h,rootRef:b,active:E}=(0,c.U)({disabled:t,focusableWhenDisabled:n,rootRef:r}),T=(0,o.Z)(b,g),S=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||m({type:l.Q.toggle,event:t})},y=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),m({type:l.Q.open,event:t}))},A=(e={})=>({onClick:S(e),onKeyDown:y(e)});return{active:E,getRootProps:(e={})=>{let t=(0,u.f)(h,A);return(0,a.Z)({},t(e),{"aria-haspopup":"menu","aria-expanded":p.open,"aria-controls":f,ref:T})},open:p.open,rootRef:T}}({rootRef:t,disabled:$}),K=null!=w?w:(0,A.jsx)(b.Z,(0,a.Z)({},"context"!==z&&{color:z},{thickness:{sm:2,md:3,lg:4}[H]||3})),Y=(0,a.Z)({},d,{active:W,color:z,disabled:$,open:V,size:H,variant:B}),Z=k(Y),q=(0,a.Z)({},F,{component:g,slots:D,slotProps:L}),[X,Q]=(0,h.Z)("root",{elementType:N,getSlotProps:j,externalForwardedProps:q,ref:t,ownerState:Y,className:Z.root}),[J,ee]=(0,h.Z)("startDecorator",{className:Z.startDecorator,elementType:C,externalForwardedProps:q,ownerState:Y}),[et,en]=(0,h.Z)("endDecorator",{className:Z.endDecorator,elementType:v,externalForwardedProps:q,ownerState:Y}),[er,ea]=(0,h.Z)("loadingIndicatorCenter",{className:Z.loadingIndicatorCenter,elementType:R,externalForwardedProps:q,ownerState:Y});return(0,A.jsxs)(X,(0,a.Z)({},Q,{children:[(P||I&&"start"===O)&&(0,A.jsx)(J,(0,a.Z)({},ee,{children:I&&"start"===O?K:P})),p,I&&"center"===O&&(0,A.jsx)(er,(0,a.Z)({},ea,{children:K})),(T||I&&"end"===O)&&(0,A.jsx)(et,(0,a.Z)({},en,{children:I&&"end"===O?K:T}))]}))});var O=I},7203:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(87462),a=n(63366),i=n(67294),o=n(14142),s=n(94780),l=n(92996),c=n(33703),u=n(70758),d=n(43069),p=n(51633),m=n(85241),g=n(2900),f=n(14072);function h(e){return`menu-item-${e.size}`}let b={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0},triggerElement:null};var E=n(39984),T=n(74312),S=n(20407),y=n(78653),A=n(55907),_=n(26821);function k(e){return(0,_.d6)("MuiMenuItem",e)}(0,_.sI)("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var N=n(40780);let C=i.createContext("horizontal");var v=n(30220),R=n(85893);let I=["children","disabled","component","selected","color","orientation","variant","slots","slotProps"],O=e=>{let{focusVisible:t,disabled:n,selected:r,color:a,variant:i}=e,l={root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",a&&`color${(0,o.Z)(a)}`,i&&`variant${(0,o.Z)(i)}`]},c=(0,s.Z)(l,k,{});return c},w=(0,T.Z)(E.r,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=i.forwardRef(function(e,t){let n=(0,S.Z)({props:e,name:"JoyMenuItem"}),o=i.useContext(N.Z),{children:s,disabled:E=!1,component:T="li",selected:_=!1,color:k="neutral",orientation:x="horizontal",variant:L="plain",slots:D={},slotProps:P={}}=n,M=(0,a.Z)(n,I),{variant:F=L,color:U=k}=(0,A.yP)(e.variant,e.color),{getColor:B}=(0,y.VT)(F),H=B(e.color,U),{getRootProps:G,disabled:z,focusVisible:$}=function(e){var t;let{disabled:n=!1,id:a,rootRef:o,label:s}=e,E=(0,l.Z)(a),T=i.useRef(null),S=i.useMemo(()=>({disabled:n,id:null!=E?E:"",label:s,ref:T}),[n,E,s]),{dispatch:y}=null!=(t=i.useContext(m.D))?t:b,{getRootProps:A,highlighted:_,rootRef:k}=(0,d.J)({item:E}),{index:N,totalItemCount:C}=(0,f.B)(null!=E?E:h,S),{getRootProps:v,focusVisible:R,rootRef:I}=(0,u.U)({disabled:n,focusableWhenDisabled:!0}),O=(0,c.Z)(k,I,o,T);i.useDebugValue({id:E,highlighted:_,disabled:n,label:s});let w=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||y({type:p.Q.close,event:t})},x=(e={})=>(0,r.Z)({},e,{onClick:w(e)});function L(e={}){let t=(0,g.f)(x,(0,g.f)(v,A));return(0,r.Z)({},t(e),{ref:O,role:"menuitem"})}return void 0===E?{getRootProps:L,disabled:!1,focusVisible:R,highlighted:!1,index:-1,totalItemCount:0,rootRef:O}:{getRootProps:L,disabled:n,focusVisible:R,highlighted:_,index:N,totalItemCount:C,rootRef:O}}({disabled:E,rootRef:t}),j=(0,r.Z)({},n,{component:T,color:H,disabled:z,focusVisible:$,orientation:x,selected:_,row:o,variant:F}),V=O(j),W=(0,r.Z)({},M,{component:T,slots:D,slotProps:P}),[K,Y]=(0,v.Z)("root",{ref:t,elementType:w,getSlotProps:G,externalForwardedProps:W,className:V.root,ownerState:j});return(0,R.jsx)(C.Provider,{value:x,children:(0,R.jsx)(K,(0,r.Z)({},Y,{children:s}))})});var L=x},63955:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return q}});var a=n(63366),i=n(87462),o=n(67294),s=n(90512),l=n(14142),c=n(94780),u=n(82690),d=n(19032),p=n(99962),m=n(33703),g=n(73546),f=n(59948),h={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},b=n(6414);function E(e,t){return e-t}function T(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function S(e,t){var n;let{index:r}=null!=(n=e.reduce((e,n,r)=>{let a=Math.abs(t-n);return null===e||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},C=e=>e;function v(){return void 0===r&&(r="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),r}var R=n(28442),I=n(74312),O=n(20407),w=n(78653),x=n(30220),L=n(26821);function D(e){return(0,L.d6)("MuiSlider",e)}let P=(0,L.sI)("MuiSlider",["root","disabled","dragging","focusVisible","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","thumb","thumbStart","thumbEnd","valueLabel","valueLabelOpen","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","input"]);var M=n(85893);let F=["aria-label","aria-valuetext","className","classes","disableSwap","disabled","defaultValue","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","color","size","variant","component","slots","slotProps"];function U(e){return e}let B=e=>{let{disabled:t,dragging:n,marked:r,orientation:a,track:i,variant:o,color:s,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",o&&`variant${(0,l.Z)(o)}`,s&&`color${(0,l.Z)(s)}`,u&&`size${(0,l.Z)(u)}`],rail:["rail"],track:["track"],thumb:["thumb",t&&"disabled"],input:["input"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],valueLabelOpen:["valueLabelOpen"],active:["active"],focusVisible:["focusVisible"]};return(0,c.Z)(d,D,{})},H=({theme:e,ownerState:t})=>(n={})=>{var r,a;let o=(null==(r=e.variants[`${t.variant}${n.state||""}`])?void 0:r[t.color])||{};return(0,i.Z)({},!n.state&&{"--variant-borderWidth":null!=(a=o["--variant-borderWidth"])?a:"0px"},{"--Slider-trackColor":o.color,"--Slider-thumbBackground":o.color,"--Slider-thumbColor":o.backgroundColor||e.vars.palette.background.surface,"--Slider-trackBackground":o.backgroundColor||e.vars.palette.background.surface,"--Slider-trackBorderColor":o.borderColor,"--Slider-railBackground":e.vars.palette.background.level2})},G=(0,I.Z)("span",{name:"JoySlider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let n=H({theme:e,ownerState:t});return[(0,i.Z)({"--Slider-size":"max(42px, max(var(--Slider-thumbSize), var(--Slider-trackSize)))","--Slider-trackRadius":"var(--Slider-size)","--Slider-markBackground":e.vars.palette.text.tertiary,[`& .${P.markActive}`]:{"--Slider-markBackground":"var(--Slider-trackColor)"}},"sm"===t.size&&{"--Slider-markSize":"2px","--Slider-trackSize":"4px","--Slider-thumbSize":"14px","--Slider-valueLabelArrowSize":"6px"},"md"===t.size&&{"--Slider-markSize":"2px","--Slider-trackSize":"6px","--Slider-thumbSize":"18px","--Slider-valueLabelArrowSize":"8px"},"lg"===t.size&&{"--Slider-markSize":"3px","--Slider-trackSize":"8px","--Slider-thumbSize":"24px","--Slider-valueLabelArrowSize":"10px"},{"--Slider-thumbRadius":"calc(var(--Slider-thumbSize) / 2)","--Slider-thumbWidth":"var(--Slider-thumbSize)"},n(),{"&:hover":(0,i.Z)({},n({state:"Hover"})),"&:active":(0,i.Z)({},n({state:"Active"})),[`&.${P.disabled}`]:(0,i.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},n({state:"Disabled"})),boxSizing:"border-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&{padding:"calc(var(--Slider-size) / 2) 0",width:"100%"},"vertical"===t.orientation&&{padding:"0 calc(var(--Slider-size) / 2)",height:"100%"},{"@media print":{colorAdjust:"exact"}})]}),z=(0,I.Z)("span",{name:"JoySlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>[(0,i.Z)({display:"block",position:"absolute",backgroundColor:"inverted"===e.track?"var(--Slider-trackBackground)":"var(--Slider-railBackground)",border:"inverted"===e.track?"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)":"initial",borderRadius:"var(--Slider-trackRadius)"},"horizontal"===e.orientation&&{height:"var(--Slider-trackSize)",top:"50%",left:0,right:0,transform:"translateY(-50%)"},"vertical"===e.orientation&&{width:"var(--Slider-trackSize)",top:0,bottom:0,left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1})]),$=(0,I.Z)("span",{name:"JoySlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({ownerState:e})=>[(0,i.Z)({display:"block",position:"absolute",color:"var(--Slider-trackColor)",border:"inverted"===e.track?"initial":"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)",backgroundColor:"inverted"===e.track?"var(--Slider-railBackground)":"var(--Slider-trackBackground)"},"horizontal"===e.orientation&&{height:"var(--Slider-trackSize)",top:"50%",transform:"translateY(-50%)",borderRadius:"var(--Slider-trackRadius) 0 0 var(--Slider-trackRadius)"},"vertical"===e.orientation&&{width:"var(--Slider-trackSize)",left:"50%",transform:"translateX(-50%)",borderRadius:"0 0 var(--Slider-trackRadius) var(--Slider-trackRadius)"},!1===e.track&&{display:"none"})]),j=(0,I.Z)("span",{name:"JoySlider",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({ownerState:e,theme:t})=>{var n;return(0,i.Z)({position:"absolute",boxSizing:"border-box",outline:0,display:"flex",alignItems:"center",justifyContent:"center",width:"var(--Slider-thumbWidth)",height:"var(--Slider-thumbSize)",border:"var(--variant-borderWidth, 0px) solid var(--Slider-trackBorderColor)",borderRadius:"var(--Slider-thumbRadius)",boxShadow:"var(--Slider-thumbShadow)",color:"var(--Slider-thumbColor)",backgroundColor:"var(--Slider-thumbBackground)",[t.focus.selector]:(0,i.Z)({},t.focus.default,{outlineOffset:0,outlineWidth:"max(4px, var(--Slider-thumbSize) / 3.6)"},"context"!==e.color&&{outlineColor:`rgba(${null==(n=t.vars.palette)||null==(n=n[e.color])?void 0:n.mainChannel} / 0.32)`})},"horizontal"===e.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===e.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",background:"transparent",top:0,left:0,width:"100%",height:"100%",border:"2px solid",borderColor:"var(--Slider-thumbColor)",borderRadius:"inherit"}})}),V=(0,I.Z)("span",{name:"JoySlider",slot:"Mark",overridesResolver:(e,t)=>t.mark})(({ownerState:e})=>(0,i.Z)({position:"absolute",width:"var(--Slider-markSize)",height:"var(--Slider-markSize)",borderRadius:"var(--Slider-markSize)",backgroundColor:"var(--Slider-markBackground)"},"horizontal"===e.orientation&&(0,i.Z)({top:"50%",transform:"translate(calc(var(--Slider-markSize) / -2), -50%)"},0===e.percent&&{transform:"translate(min(var(--Slider-markSize), 3px), -50%)"},100===e.percent&&{transform:"translate(calc(var(--Slider-markSize) * -1 - min(var(--Slider-markSize), 3px)), -50%)"}),"vertical"===e.orientation&&(0,i.Z)({left:"50%",transform:"translate(-50%, calc(var(--Slider-markSize) / 2))"},0===e.percent&&{transform:"translate(-50%, calc(min(var(--Slider-markSize), 3px) * -1))"},100===e.percent&&{transform:"translate(-50%, calc(var(--Slider-markSize) * 1 + min(var(--Slider-markSize), 3px)))"}))),W=(0,I.Z)("span",{name:"JoySlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>(0,i.Z)({},"sm"===t.size&&{fontSize:e.fontSize.xs,lineHeight:e.lineHeight.md,paddingInline:"0.25rem",minWidth:"20px"},"md"===t.size&&{fontSize:e.fontSize.sm,lineHeight:e.lineHeight.md,paddingInline:"0.375rem",minWidth:"24px"},"lg"===t.size&&{fontSize:e.fontSize.md,lineHeight:e.lineHeight.md,paddingInline:"0.5rem",minWidth:"28px"},{zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,bottom:0,transformOrigin:"bottom center",transform:"translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(0)",position:"absolute",backgroundColor:e.vars.palette.background.tooltip,boxShadow:e.shadow.sm,borderRadius:e.vars.radius.xs,color:"#fff","&::before":{display:"var(--Slider-valueLabelArrowDisplay)",position:"absolute",content:'""',color:e.vars.palette.background.tooltip,bottom:0,border:"calc(var(--Slider-valueLabelArrowSize) / 2) solid",borderColor:"currentColor",borderRightColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",left:"50%",transform:"translate(-50%, 100%)",backgroundColor:"transparent"},[`&.${P.valueLabelOpen}`]:{transform:"translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(1)"}})),K=(0,I.Z)("span",{name:"JoySlider",slot:"MarkLabel",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t})=>(0,i.Z)({fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md},{color:e.palette.text.tertiary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:"calc(50% + 4px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",transform:"translateX(-50%)"},"vertical"===t.orientation&&{left:"calc(50% + 8px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",transform:"translateY(50%)"})),Y=(0,I.Z)("input",{name:"JoySlider",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Z=o.forwardRef(function(e,t){let n=(0,O.Z)({props:e,name:"JoySlider"}),{"aria-label":r,"aria-valuetext":l,className:c,classes:b,disableSwap:I=!1,disabled:L=!1,defaultValue:D,getAriaLabel:P,getAriaValueText:H,marks:Z=!1,max:q=100,min:X=0,orientation:Q="horizontal",scale:J=U,step:ee=1,track:et="normal",valueLabelDisplay:en="off",valueLabelFormat:er=U,isRtl:ea=!1,color:ei="primary",size:eo="md",variant:es="solid",component:el,slots:ec={},slotProps:eu={}}=n,ed=(0,a.Z)(n,F),{getColor:ep}=(0,w.VT)("solid"),em=ep(e.color,ei),eg=(0,i.Z)({},n,{marks:Z,classes:b,disabled:L,defaultValue:D,disableSwap:I,isRtl:ea,max:q,min:X,orientation:Q,scale:J,step:ee,track:et,valueLabelDisplay:en,valueLabelFormat:er,color:em,size:eo,variant:es}),{axisProps:ef,getRootProps:eh,getHiddenInputProps:eb,getThumbProps:eE,open:eT,active:eS,axis:ey,focusedThumbIndex:eA,range:e_,dragging:ek,marks:eN,values:eC,trackOffset:ev,trackLeap:eR,getThumbStyle:eI}=function(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:b=0,name:R,onChange:I,onChangeCommitted:O,orientation:w="horizontal",rootRef:x,scale:L=C,step:D=1,tabIndex:P,value:M}=e,F=o.useRef(),[U,B]=o.useState(-1),[H,G]=o.useState(-1),[z,$]=o.useState(!1),j=o.useRef(0),[V,W]=(0,d.Z)({controlled:M,default:null!=n?n:b,name:"Slider"}),K=I&&((e,t,n)=>{let r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:R}}),I(a,t,n)}),Y=Array.isArray(V),Z=Y?V.slice().sort(E):[V];Z=Z.map(e=>T(e,b,c));let q=!0===l&&null!==D?[...Array(Math.floor((c-b)/D)+1)].map((e,t)=>({value:b+D*t})):l||[],X=q.map(e=>e.value),{isFocusVisibleRef:Q,onBlur:J,onFocus:ee,ref:et}=(0,p.Z)(),[en,er]=o.useState(-1),ea=o.useRef(),ei=(0,m.Z)(et,ea),eo=(0,m.Z)(x,ei),es=e=>t=>{var n;let r=Number(t.currentTarget.getAttribute("data-index"));ee(t),!0===Q.current&&er(r),G(r),null==e||null==(n=e.onFocus)||n.call(e,t)},el=e=>t=>{var n;J(t),!1===Q.current&&er(-1),G(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,g.Z)(()=>{if(r&&ea.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[r]),r&&-1!==U&&B(-1),r&&-1!==en&&er(-1);let ec=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index")),i=Z[r],o=X.indexOf(i),s=t.target.valueAsNumber;if(q&&null==D){let e=X[X.length-1];s=s>e?e:s{let n,r;let{current:i}=ea,{width:o,height:s,bottom:l,left:u}=i.getBoundingClientRect();if(n=0===ed.indexOf("vertical")?(l-e.y)/s:(e.x-u)/o,-1!==ed.indexOf("-reverse")&&(n=1-n),r=(c-b)*n+b,D)r=function(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(t)))}(r,D,b);else{let e=S(X,r);r=X[e]}r=T(r,b,c);let d=0;if(Y){d=t?eu.current:S(Z,r),a&&(r=T(r,Z[d-1]||-1/0,Z[d+1]||1/0));let e=r;r=A({values:Z,newValue:r,index:d}),a&&t||(d=r.indexOf(e),eu.current=d)}return{newValue:r,activeIndex:d}},em=(0,f.Z)(e=>{let t=y(e,F);if(!t)return;if(j.current+=1,"mousemove"===e.type&&0===e.buttons){eg(e);return}let{newValue:n,activeIndex:r}=ep({finger:t,move:!0});_({sliderRef:ea,activeIndex:r,setActive:B}),W(n),!z&&j.current>2&&$(!0),K&&!k(n,V)&&K(e,n,r)}),eg=(0,f.Z)(e=>{let t=y(e,F);if($(!1),!t)return;let{newValue:n}=ep({finger:t,move:!0});B(-1),"touchend"===e.type&&G(-1),O&&O(e,n),F.current=void 0,eh()}),ef=(0,f.Z)(e=>{if(r)return;v()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(F.current=t.identifier);let n=y(e,F);if(!1!==n){let{newValue:t,activeIndex:r}=ep({finger:n});_({sliderRef:ea,activeIndex:r,setActive:B}),W(t),K&&!k(t,V)&&K(e,t,r)}j.current=0;let a=(0,u.Z)(ea.current);a.addEventListener("touchmove",em),a.addEventListener("touchend",eg)}),eh=o.useCallback(()=>{let e=(0,u.Z)(ea.current);e.removeEventListener("mousemove",em),e.removeEventListener("mouseup",eg),e.removeEventListener("touchmove",em),e.removeEventListener("touchend",eg)},[eg,em]);o.useEffect(()=>{let{current:e}=ea;return e.addEventListener("touchstart",ef,{passive:v()}),()=>{e.removeEventListener("touchstart",ef,{passive:v()}),eh()}},[eh,ef]),o.useEffect(()=>{r&&eh()},[r,eh]);let eb=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),r||t.defaultPrevented||0!==t.button)return;t.preventDefault();let a=y(t,F);if(!1!==a){let{newValue:e,activeIndex:n}=ep({finger:a});_({sliderRef:ea,activeIndex:n,setActive:B}),W(e),K&&!k(e,V)&&K(t,e,n)}j.current=0;let i=(0,u.Z)(ea.current);i.addEventListener("mousemove",em),i.addEventListener("mouseup",eg)},eE=((Y?Z[0]:b)-b)*100/(c-b),eT=(Z[Z.length-1]-b)*100/(c-b)-eE,eS=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);let r=Number(t.currentTarget.getAttribute("data-index"));G(r)},ey=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),G(-1)};return{active:U,axis:ed,axisProps:N,dragging:z,focusedThumbIndex:en,getHiddenInputProps:(n={})=>{var a;let o={onChange:ec(n||{}),onFocus:es(n||{}),onBlur:el(n||{})},l=(0,i.Z)({},n,o);return(0,i.Z)({tabIndex:P,"aria-labelledby":t,"aria-orientation":w,"aria-valuemax":L(c),"aria-valuemin":L(b),name:R,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:r},l,{style:(0,i.Z)({},h,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t={onMouseDown:eb(e||{})},n=(0,i.Z)({},e,t);return(0,i.Z)({ref:eo},n)},getThumbProps:(e={})=>{let t={onMouseOver:eS(e||{}),onMouseLeave:ey(e||{})};return(0,i.Z)({},e,t)},marks:q,open:H,range:Y,rootRef:eo,trackLeap:eT,trackOffset:eE,values:Z,getThumbStyle:e=>({pointerEvents:-1!==U&&U!==e?"none":void 0})}}((0,i.Z)({},eg,{rootRef:t}));eg.marked=eN.length>0&&eN.some(e=>e.label),eg.dragging=ek;let eO=(0,i.Z)({},ef[ey].offset(ev),ef[ey].leap(eR)),ew=B(eg),ex=(0,i.Z)({},ed,{component:el,slots:ec,slotProps:eu}),[eL,eD]=(0,x.Z)("root",{ref:t,className:(0,s.Z)(ew.root,c),elementType:G,externalForwardedProps:ex,getSlotProps:eh,ownerState:eg}),[eP,eM]=(0,x.Z)("rail",{className:ew.rail,elementType:z,externalForwardedProps:ex,ownerState:eg}),[eF,eU]=(0,x.Z)("track",{additionalProps:{style:eO},className:ew.track,elementType:$,externalForwardedProps:ex,ownerState:eg}),[eB,eH]=(0,x.Z)("mark",{className:ew.mark,elementType:V,externalForwardedProps:ex,ownerState:eg}),[eG,ez]=(0,x.Z)("markLabel",{className:ew.markLabel,elementType:K,externalForwardedProps:ex,ownerState:eg,additionalProps:{"aria-hidden":!0}}),[e$,ej]=(0,x.Z)("thumb",{className:ew.thumb,elementType:j,externalForwardedProps:ex,getSlotProps:eE,ownerState:eg}),[eV,eW]=(0,x.Z)("input",{className:ew.input,elementType:Y,externalForwardedProps:ex,getSlotProps:eb,ownerState:eg}),[eK,eY]=(0,x.Z)("valueLabel",{className:ew.valueLabel,elementType:W,externalForwardedProps:ex,ownerState:eg});return(0,M.jsxs)(eL,(0,i.Z)({},eD,{children:[(0,M.jsx)(eP,(0,i.Z)({},eM)),(0,M.jsx)(eF,(0,i.Z)({},eU)),eN.filter(e=>e.value>=X&&e.value<=q).map((e,t)=>{let n;let r=(e.value-X)*100/(q-X),a=ef[ey].offset(r);return n=!1===et?-1!==eC.indexOf(e.value):"normal"===et&&(e_?e.value>=eC[0]&&e.value<=eC[eC.length-1]:e.value<=eC[0])||"inverted"===et&&(e_?e.value<=eC[0]||e.value>=eC[eC.length-1]:e.value>=eC[0]),(0,M.jsxs)(o.Fragment,{children:[(0,M.jsx)(eB,(0,i.Z)({"data-index":t},eH,!(0,R.X)(eB)&&{ownerState:(0,i.Z)({},eH.ownerState,{percent:r})},{style:(0,i.Z)({},a,eH.style),className:(0,s.Z)(eH.className,n&&ew.markActive)})),null!=e.label?(0,M.jsx)(eG,(0,i.Z)({"data-index":t},ez,{style:(0,i.Z)({},a,ez.style),className:(0,s.Z)(ew.markLabel,ez.className,n&&ew.markLabelActive),children:e.label})):null]},e.value)}),eC.map((e,t)=>{let n=(e-X)*100/(q-X),a=ef[ey].offset(n);return(0,M.jsxs)(e$,(0,i.Z)({"data-index":t},ej,{className:(0,s.Z)(ej.className,eS===t&&ew.active,eA===t&&ew.focusVisible),style:(0,i.Z)({},a,eI(t),ej.style),children:[(0,M.jsx)(eV,(0,i.Z)({"data-index":t,"aria-label":P?P(t):r,"aria-valuenow":J(e),"aria-valuetext":H?H(J(e),t):l,value:eC[t]},eW)),"off"!==en?(0,M.jsx)(eK,(0,i.Z)({},eY,{className:(0,s.Z)(eY.className,(eT===t||eS===t||"on"===en)&&ew.valueLabelOpen),children:"function"==typeof er?er(J(e),t):er})):null]}),t)})]}))});var q=Z},38426:function(e,t,n){"use strict";n.d(t,{Z:function(){return eA}});var r=n(67294),a=n(99611),i=n(94184),o=n.n(i),s=n(87462),l=n(1413),c=n(4942),u=n(97685),d=n(71002),p=n(45987),m=n(27678),g=n(21770),f=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],h=r.createContext(null),b=0;function E(e){var t=e.src,n=e.isCustomPlaceholder,a=e.fallback,i=(0,r.useState)(n?"loading":"normal"),o=(0,u.Z)(i,2),s=o[0],l=o[1],c=(0,r.useRef)(!1),d="error"===s;(0,r.useEffect)(function(){new Promise(function(e){var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(e){e||l("error")})},[t]),(0,r.useEffect)(function(){n&&!c.current?l("loading"):d&&l("normal")},[t]);var p=function(){l("normal")};return[function(e){c.current=!1,"loading"===s&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},d&&a?{src:a}:{onLoad:p,src:t},s]}var T=n(13328),S=n(64019),y=n(15105),A=n(80334);function _(e,t,n,r){var a=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,c.Z)({},e,i);if(t<0&&ar)return(0,c.Z)({},e,t<0?i:-i);return{}}var k=n(91881),N=n(75164),C={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},v=n(2788),R=n(82225),I=function(e){var t=e.visible,n=e.maskTransitionName,a=e.getContainer,i=e.prefixCls,s=e.rootClassName,u=e.icons,d=e.countRender,p=e.showSwitch,m=e.showProgress,g=e.current,f=e.transform,b=e.count,E=e.scale,T=e.minScale,S=e.maxScale,A=e.closeIcon,_=e.onSwitchLeft,k=e.onSwitchRight,N=e.onClose,C=e.onZoomIn,I=e.onZoomOut,O=e.onRotateRight,w=e.onRotateLeft,x=e.onFlipX,L=e.onFlipY,D=e.toolbarRender,P=(0,r.useContext)(h),M=u.rotateLeft,F=u.rotateRight,U=u.zoomIn,B=u.zoomOut,H=u.close,G=u.left,z=u.right,$=u.flipX,j=u.flipY,V="".concat(i,"-operations-operation");r.useEffect(function(){var e=function(e){e.keyCode===y.Z.ESC&&N()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var W=[{icon:j,onClick:L,type:"flipY"},{icon:$,onClick:x,type:"flipX"},{icon:M,onClick:w,type:"rotateLeft"},{icon:F,onClick:O,type:"rotateRight"},{icon:B,onClick:I,type:"zoomOut",disabled:E===T},{icon:U,onClick:C,type:"zoomIn",disabled:E===S}].map(function(e){var t,n=e.icon,a=e.onClick,s=e.type,l=e.disabled;return r.createElement("div",{className:o()(V,(t={},(0,c.Z)(t,"".concat(i,"-operations-operation-").concat(s),!0),(0,c.Z)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:a,key:s},n)}),K=r.createElement("div",{className:"".concat(i,"-operations")},W);return r.createElement(R.ZP,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return r.createElement(v.Z,{open:!0,getContainer:null!=a?a:document.body},r.createElement("div",{className:o()("".concat(i,"-operations-wrapper"),t,s),style:n},null===A?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:N},A||H),p&&r.createElement(r.Fragment,null,r.createElement("div",{className:o()("".concat(i,"-switch-left"),(0,c.Z)({},"".concat(i,"-switch-left-disabled"),0===g)),onClick:_},G),r.createElement("div",{className:o()("".concat(i,"-switch-right"),(0,c.Z)({},"".concat(i,"-switch-right-disabled"),g===b-1)),onClick:k},z)),r.createElement("div",{className:"".concat(i,"-footer")},m&&r.createElement("div",{className:"".concat(i,"-progress")},d?d(g+1,b):"".concat(g+1," / ").concat(b)),D?D(K,(0,l.Z)({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:L,onFlipX:x,onRotateLeft:w,onRotateRight:O,onZoomOut:I,onZoomIn:C},transform:f},P?{current:g,total:b}:{})):K)))})},O=["fallback","src","imgRef"],w=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],x=function(e){var t=e.fallback,n=e.src,a=e.imgRef,i=(0,p.Z)(e,O),o=E({src:n,fallback:t}),l=(0,u.Z)(o,2),c=l[0],d=l[1];return r.createElement("img",(0,s.Z)({ref:function(e){a.current=e,c(e)}},i,d))},L=function(e){var t,n,a,i,d,g,f,b=e.prefixCls,E=e.src,v=e.alt,R=e.fallback,O=e.movable,L=void 0===O||O,D=e.onClose,P=e.visible,M=e.icons,F=e.rootClassName,U=e.closeIcon,B=e.getContainer,H=e.current,G=void 0===H?0:H,z=e.count,$=void 0===z?1:z,j=e.countRender,V=e.scaleStep,W=void 0===V?.5:V,K=e.minScale,Y=void 0===K?1:K,Z=e.maxScale,q=void 0===Z?50:Z,X=e.transitionName,Q=e.maskTransitionName,J=void 0===Q?"fade":Q,ee=e.imageRender,et=e.imgCommonProps,en=e.toolbarRender,er=e.onTransform,ea=e.onChange,ei=(0,p.Z)(e,w),eo=(0,r.useRef)(),es=(0,r.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),el=(0,r.useState)(!1),ec=(0,u.Z)(el,2),eu=ec[0],ed=ec[1],ep=(0,r.useContext)(h),em=ep&&$>1,eg=ep&&$>=1,ef=(t=(0,r.useRef)(null),n=(0,r.useRef)([]),a=(0,r.useState)(C),d=(i=(0,u.Z)(a,2))[0],g=i[1],f=function(e,r){null===t.current&&(n.current=[],t.current=(0,N.Z)(function(){g(function(e){var a=e;return n.current.forEach(function(e){a=(0,l.Z)((0,l.Z)({},a),e)}),t.current=null,null==er||er({transform:a,action:r}),a})})),n.current.push((0,l.Z)((0,l.Z)({},d),e))},{transform:d,resetTransform:function(e){g(C),er&&!(0,k.Z)(C,d)&&er({transform:C,action:e})},updateTransform:f,dispatchZoomChange:function(e,t,n,r){var a=eo.current,i=a.width,o=a.height,s=a.offsetWidth,l=a.offsetHeight,c=a.offsetLeft,u=a.offsetTop,p=e,g=d.scale*e;g>q?(p=q/d.scale,g=q):g0&&(e_(!1),eb("prev"),null==ea||ea(G-1,G))},eO=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),G<$-1&&(e_(!1),eb("next"),null==ea||ea(G+1,G))},ew=function(){if(P&&eu){ed(!1);var e,t,n,r,a,i,o=es.current,s=o.transformX,c=o.transformY;if(eC!==s&&ev!==c){var u=eo.current.offsetWidth*eN,d=eo.current.offsetHeight*eN,p=eo.current.getBoundingClientRect(),g=p.left,f=p.top,h=ek%180!=0,b=(e=h?d:u,t=h?u:d,r=(n=(0,m.g1)()).width,a=n.height,i=null,e<=r&&t<=a?i={x:0,y:0}:(e>r||t>a)&&(i=(0,l.Z)((0,l.Z)({},_("x",g,e,r)),_("y",f,t,a))),i);b&&eE((0,l.Z)({},b),"dragRebound")}}},ex=function(e){P&&eu&&eE({x:e.pageX-es.current.deltaX,y:e.pageY-es.current.deltaY},"move")},eL=function(e){P&&em&&(e.keyCode===y.Z.LEFT?eI():e.keyCode===y.Z.RIGHT&&eO())};(0,r.useEffect)(function(){var e,t,n,r;if(L){n=(0,S.Z)(window,"mouseup",ew,!1),r=(0,S.Z)(window,"mousemove",ex,!1);try{window.top!==window.self&&(e=(0,S.Z)(window.top,"mouseup",ew,!1),t=(0,S.Z)(window.top,"mousemove",ex,!1))}catch(e){(0,A.Kp)(!1,"[rc-image] ".concat(e))}}return function(){var a,i,o,s;null===(a=n)||void 0===a||a.remove(),null===(i=r)||void 0===i||i.remove(),null===(o=e)||void 0===o||o.remove(),null===(s=t)||void 0===s||s.remove()}},[P,eu,eC,ev,ek,L]),(0,r.useEffect)(function(){var e=(0,S.Z)(window,"keydown",eL,!1);return function(){e.remove()}},[P,em,G]);var eD=r.createElement(x,(0,s.Z)({},et,{width:e.width,height:e.height,imgRef:eo,className:"".concat(b,"-img"),alt:v,style:{transform:"translate3d(".concat(eh.x,"px, ").concat(eh.y,"px, 0) scale3d(").concat(eh.flipX?"-":"").concat(eN,", ").concat(eh.flipY?"-":"").concat(eN,", 1) rotate(").concat(ek,"deg)"),transitionDuration:!eA&&"0s"},fallback:R,src:E,onWheel:function(e){if(P&&0!=e.deltaY){var t=1+Math.min(Math.abs(e.deltaY/100),1)*W;e.deltaY>0&&(t=1/t),eT(t,"wheel",e.clientX,e.clientY)}},onMouseDown:function(e){L&&0===e.button&&(e.preventDefault(),e.stopPropagation(),es.current={deltaX:e.pageX-eh.x,deltaY:e.pageY-eh.y,transformX:eh.x,transformY:eh.y},ed(!0))},onDoubleClick:function(e){P&&(1!==eN?eE({x:0,y:0,scale:1},"doubleClick"):eT(1+W,"doubleClick",e.clientX,e.clientY))}}));return r.createElement(r.Fragment,null,r.createElement(T.Z,(0,s.Z)({transitionName:void 0===X?"zoom":X,maskTransitionName:J,closable:!1,keyboard:!0,prefixCls:b,onClose:D,visible:P,wrapClassName:eR,rootClassName:F,getContainer:B},ei,{afterClose:function(){eb("close")}}),r.createElement("div",{className:"".concat(b,"-img-wrapper")},ee?ee(eD,(0,l.Z)({transform:eh},ep?{current:G}:{})):eD)),r.createElement(I,{visible:P,transform:eh,maskTransitionName:J,closeIcon:U,getContainer:B,prefixCls:b,rootClassName:F,icons:void 0===M?{}:M,countRender:j,showSwitch:em,showProgress:eg,current:G,count:$,scale:eN,minScale:Y,maxScale:q,toolbarRender:en,onSwitchLeft:eI,onSwitchRight:eO,onZoomIn:function(){eT(1+W,"zoomIn")},onZoomOut:function(){eT(1/(1+W),"zoomOut")},onRotateRight:function(){eE({rotate:ek+90},"rotateRight")},onRotateLeft:function(){eE({rotate:ek-90},"rotateLeft")},onFlipX:function(){eE({flipX:!eh.flipX},"flipX")},onFlipY:function(){eE({flipY:!eh.flipY},"flipY")},onClose:D}))},D=n(74902),P=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],M=["src"],F=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],U=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],B=function(e){var t,n,a,i,T=e.src,S=e.alt,y=e.onPreviewClose,A=e.prefixCls,_=void 0===A?"rc-image":A,k=e.previewPrefixCls,N=void 0===k?"".concat(_,"-preview"):k,C=e.placeholder,v=e.fallback,R=e.width,I=e.height,O=e.style,w=e.preview,x=void 0===w||w,D=e.className,P=e.onClick,M=e.onError,B=e.wrapperClassName,H=e.wrapperStyle,G=e.rootClassName,z=(0,p.Z)(e,F),$=C&&!0!==C,j="object"===(0,d.Z)(x)?x:{},V=j.src,W=j.visible,K=void 0===W?void 0:W,Y=j.onVisibleChange,Z=j.getContainer,q=j.mask,X=j.maskClassName,Q=j.movable,J=j.icons,ee=j.scaleStep,et=j.minScale,en=j.maxScale,er=j.imageRender,ea=j.toolbarRender,ei=(0,p.Z)(j,U),eo=null!=V?V:T,es=(0,g.Z)(!!K,{value:K,onChange:void 0===Y?y:Y}),el=(0,u.Z)(es,2),ec=el[0],eu=el[1],ed=E({src:T,isCustomPlaceholder:$,fallback:v}),ep=(0,u.Z)(ed,3),em=ep[0],eg=ep[1],ef=ep[2],eh=(0,r.useState)(null),eb=(0,u.Z)(eh,2),eE=eb[0],eT=eb[1],eS=(0,r.useContext)(h),ey=!!x,eA=o()(_,B,G,(0,c.Z)({},"".concat(_,"-error"),"error"===ef)),e_=(0,r.useMemo)(function(){var t={};return f.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},f.map(function(t){return e[t]})),ek=(0,r.useMemo)(function(){return(0,l.Z)((0,l.Z)({},e_),{},{src:eo})},[eo,e_]),eN=(t=r.useState(function(){return String(b+=1)}),n=(0,u.Z)(t,1)[0],a=r.useContext(h),i={data:ek,canPreview:ey},r.useEffect(function(){if(a)return a.register(n,i)},[]),r.useEffect(function(){a&&a.register(n,i)},[ey,ek]),n);return r.createElement(r.Fragment,null,r.createElement("div",(0,s.Z)({},z,{className:eA,onClick:ey?function(e){var t=(0,m.os)(e.target),n=t.left,r=t.top;eS?eS.onPreview(eN,n,r):(eT({x:n,y:r}),eu(!0)),null==P||P(e)}:P,style:(0,l.Z)({width:R,height:I},H)}),r.createElement("img",(0,s.Z)({},e_,{className:o()("".concat(_,"-img"),(0,c.Z)({},"".concat(_,"-img-placeholder"),!0===C),D),style:(0,l.Z)({height:I},O),ref:em},eg,{width:R,height:I,onError:M})),"loading"===ef&&r.createElement("div",{"aria-hidden":"true",className:"".concat(_,"-placeholder")},C),q&&ey&&r.createElement("div",{className:o()("".concat(_,"-mask"),X),style:{display:(null==O?void 0:O.display)==="none"?"none":void 0}},q)),!eS&&ey&&r.createElement(L,(0,s.Z)({"aria-hidden":!ec,visible:ec,prefixCls:N,onClose:function(){eu(!1),eT(null)},mousePosition:eE,src:eo,alt:S,fallback:v,getContainer:void 0===Z?void 0:Z,icons:J,movable:Q,scaleStep:ee,minScale:et,maxScale:en,rootClassName:G,imageRender:er,imgCommonProps:e_,toolbarRender:ea},ei)))};B.PreviewGroup=function(e){var t,n,a,i,o,m,b=e.previewPrefixCls,E=e.children,T=e.icons,S=e.items,y=e.preview,A=e.fallback,_="object"===(0,d.Z)(y)?y:{},k=_.visible,N=_.onVisibleChange,C=_.getContainer,v=_.current,R=_.movable,I=_.minScale,O=_.maxScale,w=_.countRender,x=_.closeIcon,F=_.onChange,U=_.onTransform,B=_.toolbarRender,H=_.imageRender,G=(0,p.Z)(_,P),z=(t=r.useState({}),a=(n=(0,u.Z)(t,2))[0],i=n[1],o=r.useCallback(function(e,t){return i(function(n){return(0,l.Z)((0,l.Z)({},n),{},(0,c.Z)({},e,t))}),function(){i(function(t){var n=(0,l.Z)({},t);return delete n[e],n})}},[]),[r.useMemo(function(){return S?S.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat((0,D.Z)(f)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(a).reduce(function(e,t){var n=a[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e},[])},[S,a]),o]),$=(0,u.Z)(z,2),j=$[0],V=$[1],W=(0,g.Z)(0,{value:v}),K=(0,u.Z)(W,2),Y=K[0],Z=K[1],q=(0,r.useState)(!1),X=(0,u.Z)(q,2),Q=X[0],J=X[1],ee=(null===(m=j[Y])||void 0===m?void 0:m.data)||{},et=ee.src,en=(0,p.Z)(ee,M),er=(0,g.Z)(!!k,{value:k,onChange:function(e,t){null==N||N(e,t,Y)}}),ea=(0,u.Z)(er,2),ei=ea[0],eo=ea[1],es=(0,r.useState)(null),el=(0,u.Z)(es,2),ec=el[0],eu=el[1],ed=r.useCallback(function(e,t,n){var r=j.findIndex(function(t){return t.id===e});eo(!0),eu({x:t,y:n}),Z(r<0?0:r),J(!0)},[j]);r.useEffect(function(){ei?Q||Z(0):J(!1)},[ei]);var ep=r.useMemo(function(){return{register:V,onPreview:ed}},[V,ed]);return r.createElement(h.Provider,{value:ep},E,r.createElement(L,(0,s.Z)({"aria-hidden":!ei,movable:R,visible:ei,prefixCls:void 0===b?"rc-image-preview":b,closeIcon:x,onClose:function(){eo(!1),eu(null)},mousePosition:ec,imgCommonProps:en,src:et,fallback:A,icons:void 0===T?{}:T,minScale:I,maxScale:O,getContainer:C,current:Y,count:j.length,countRender:w,onTransform:U,toolbarRender:B,imageRender:H,onChange:function(e,t){Z(e),null==F||F(e,t)}},G)))},B.displayName="Image";var H=n(33603),G=n(53124),z=n(88526),$=n(97937),j=n(6171),V=n(18073),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},K=n(84089),Y=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:W}))}),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},q=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:Z}))}),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Q=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:X}))}),J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ee=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:J}))}),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},en=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:et}))}),er=n(10274),ea=n(71194),ei=n(14747),eo=n(50438),es=n(16932),el=n(67968),ec=n(45503);let eu=e=>({position:e||"absolute",inset:0}),ed=e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new er.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ei.vS),{padding:`0 ${r}px`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},ep=e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new er.C(n).setAlpha(.1),m=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${o}px`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},em=e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new er.C(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},eg=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},eu()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},eu()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.zIndexPopup+1},"&":[ep(e),em(e)]}]},ef=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},ed(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},eu())}}},eh=e=>{let{previewCls:t}=e;return{[`${t}-root`]:(0,eo._y)(e,"zoom"),"&":(0,es.J$)(e,!0)}};var eb=(0,el.Z)("Image",e=>{let t=`${e.componentCls}-preview`,n=(0,ec.TS)(e,{previewCls:t,modalMaskBg:new er.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[ef(n),eg(n),(0,ea.Q)((0,ec.TS)(n,{componentCls:t})),eh(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new er.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new er.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new er.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let eT={rotateLeft:r.createElement(Y,null),rotateRight:r.createElement(q,null),zoomIn:r.createElement(ee,null),zoomOut:r.createElement(en,null),close:r.createElement($.Z,null),left:r.createElement(j.Z,null),right:r.createElement(V.Z,null),flipX:r.createElement(Q,null),flipY:r.createElement(Q,{rotate:90})};var eS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let ey=e=>{let{prefixCls:t,preview:n,className:i,rootClassName:s,style:l}=e,c=eS(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:d=z.Z,getPopupContainer:p,image:m}=r.useContext(G.E_),g=u("image",t),f=u(),h=d.Image||z.Z.Image,[b,E]=eb(g),T=o()(s,E),S=o()(i,E,null==m?void 0:m.className),y=r.useMemo(()=>{if(!1===n)return n;let e="object"==typeof n?n:{},{getContainer:t}=e,i=eS(e,["getContainer"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${g}-mask-info`},r.createElement(a.Z,null),null==h?void 0:h.preview),icons:eT},i),{getContainer:t||p,transitionName:(0,H.m)(f,"zoom",e.transitionName),maskTransitionName:(0,H.m)(f,"fade",e.maskTransitionName)})},[n,h]),A=Object.assign(Object.assign({},null==m?void 0:m.style),l);return b(r.createElement(B,Object.assign({prefixCls:g,preview:y,rootClassName:T,className:S,style:A},c)))};ey.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,a=eE(e,["previewPrefixCls","preview"]);let{getPrefixCls:i}=r.useContext(G.E_),s=i("image",t),l=`${s}-preview`,c=i(),[u,d]=eb(s),p=r.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=o()(d,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,H.m)(c,"zoom",t.transitionName),maskTransitionName:(0,H.m)(c,"fade",t.maskTransitionName),rootClassName:r})},[n]);return u(r.createElement(B.PreviewGroup,Object.assign({preview:p,previewPrefixCls:l,icons:eT},a)))};var eA=ey},66309:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(67294),a=n(97937),i=n(94184),o=n.n(i),s=n(98787),l=n(69760),c=n(45353),u=n(53124),d=n(14747),p=n(45503),m=n(67968);let g=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a}=e,i=r-n;return{[a]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:t-n,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},f=e=>{let{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,a=`${e.lineHeightSM*r}px`,i=(0,p.TS)(e,{tagFontSize:r,tagLineHeight:a,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return i},h=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,m.Z)("Tag",e=>{let t=f(e);return g(t)},h),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},T=n(98719);let S=e=>(0,T.Z)(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:i,darkColor:o}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var y=(0,m.b)(["Tag","preset"],e=>{let t=f(e);return S(t)},h);let A=(e,t,n)=>{let r=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var _=(0,m.b)(["Tag","status"],e=>{let t=f(e);return[A(t,"success","Success"),A(t,"processing","Info"),A(t,"error","Error"),A(t,"warning","Warning")]},h),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let N=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,rootClassName:d,style:p,children:m,icon:g,color:f,onClose:h,closeIcon:E,closable:T,bordered:S=!0}=e,A=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:N,direction:C,tag:v}=r.useContext(u.E_),[R,I]=r.useState(!0);r.useEffect(()=>{"visible"in A&&I(A.visible)},[A.visible]);let O=(0,s.o2)(f),w=(0,s.yT)(f),x=O||w,L=Object.assign(Object.assign({backgroundColor:f&&!x?f:void 0},null==v?void 0:v.style),p),D=N("tag",n),[P,M]=b(D),F=o()(D,null==v?void 0:v.className,{[`${D}-${f}`]:x,[`${D}-has-color`]:f&&!x,[`${D}-hidden`]:!R,[`${D}-rtl`]:"rtl"===C,[`${D}-borderless`]:!S},i,d,M),U=e=>{e.stopPropagation(),null==h||h(e),e.defaultPrevented||I(!1)},[,B]=(0,l.Z)(T,E,e=>null===e?r.createElement(a.Z,{className:`${D}-close-icon`,onClick:U}):r.createElement("span",{className:`${D}-close-icon`,onClick:U},e),null,!1),H="function"==typeof A.onClick||m&&"a"===m.type,G=g||null,z=G?r.createElement(r.Fragment,null,G,m&&r.createElement("span",null,m)):m,$=r.createElement("span",Object.assign({},A,{ref:t,className:F,style:L}),z,B,O&&r.createElement(y,{key:"preset",prefixCls:D}),w&&r.createElement(_,{key:"status",prefixCls:D}));return P(H?r.createElement(c.Z,{component:"Tag"},$):$)});N.CheckableTag=e=>{let{prefixCls:t,className:n,checked:a,onChange:i,onClick:s}=e,l=E(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:c}=r.useContext(u.E_),d=c("tag",t),[p,m]=b(d),g=o()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},n,m);return p(r.createElement("span",Object.assign({},l,{className:g,onClick:e=>{null==i||i(!a),null==s||s(e)}})))};var C=N},56851:function(e,t){"use strict";t.Q=function(e){for(var t,n=[],r=String(e||""),a=r.indexOf(","),i=0,o=!1;!o;)-1===a&&(a=r.length,o=!0),((t=r.slice(i,a).trim())||!o)&&n.push(t),i=a+1,a=r.indexOf(",",i);return n}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,c,u,d=arguments[0],p=1,m=arguments.length,g=!1;for("boolean"==typeof d&&(g=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p=97&&t<=122||t>=65&&t<=90}},7961:function(e,t,n){"use strict";var r=n(46260),a=n(46195);e.exports=function(e){return r(e)||a(e)}},46195:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},79480:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},89435:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},57574:function(e,t,n){"use strict";var r=n(37452),a=n(93580),i=n(46195),o=n(79480),s=n(7961),l=n(89435);e.exports=function(e,t){var n,i,o={};for(i in t||(t={}),p)n=t[i],o[i]=null==n?p[i]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,i,o,p,T,S,y,A,_,k,N,C,v,R,I,O,w,x,L,D,P,M=t.additional,F=t.nonTerminated,U=t.text,B=t.reference,H=t.warning,G=t.textContext,z=t.referenceContext,$=t.warningContext,j=t.position,V=t.indent||[],W=e.length,K=0,Y=-1,Z=j.column||1,q=j.line||1,X="",Q=[];for("string"==typeof M&&(M=M.charCodeAt(0)),x=J(),k=H?function(e,t){var n=J();n.column+=t,n.offset+=t,H.call($,E[e],n,e)}:d,K--,W++;++K=55296&&n<=57343||n>1114111?(k(7,D),A=u(65533)):A in a?(k(6,D),A=a[A]):(C="",((i=A)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&k(6,D),A>65535&&(A-=65536,C+=u(A>>>10|55296),A=56320|1023&A),A=C+u(A))):O!==m&&k(4,D)),A?(ee(),x=J(),K=P-1,Z+=P-I+1,Q.push(A),L=J(),L.offset++,B&&B.call(z,A,{start:x,end:L},e.slice(I-1,P)),x=L):(X+=S=e.slice(I-1,P),Z+=S.length,K=P-1)}else 10===y&&(q++,Y++,Z=0),y==y?(X+=u(y),Z++):ee();return Q.join("");function J(){return{line:q,column:Z,offset:K+(j.offset||0)}}function ee(){X&&(Q.push(X),U&&U.call(G,X,{start:x,end:J()}),X="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},m="named",g="hexadecimal",f="decimal",h={};h[g]=16,h[f]=10;var b={};b[m]=s,b[f]=i,b[g]=o;var E={};E[1]="Named character references must be terminated by a semicolon",E[2]="Numeric character references must be terminated by a semicolon",E[3]="Named character references cannot be empty",E[4]="Numeric character references cannot be empty",E[5]="Named character references must be known",E[6]="Numeric character references cannot be disallowed",E[7]="Numeric character references cannot be outside the permissible Unicode range"},31515:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(16152),a="html",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function u(e){let t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n-1)return r.QUIRKS;let e=null===t?o:i;if(d(n,e))return r.QUIRKS;if(d(n,e=null===t?l:c))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+u(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},41734:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:function(e,t,n){"use strict";let r=n(55763),a=n(16152),i=a.TAG_NAMES,o=a.NAMESPACES,s=a.ATTRS,l={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},c={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){let t=e.tagName,n=t===i.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE));return!!n||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},23843:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:function(e,t,n){"use strict";let r=n(23843),a=n(70050),i=n(46110),o=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),o.install(this.tokenizer,a,e.opts),o.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},23288:function(e,t,n){"use strict";let r=n(23843),a=n(57930),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=i.install(e,a),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:function(e,t,n){"use strict";let r=n(23843),a=n(23288),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);let n=i.install(e.preprocessor,a,t);this.posTracker=n.posTracker}}},11077:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},452:function(e,t,n){"use strict";let r=n(81704),a=n(55763),i=n(46110),o=n(11077),s=n(16152),l=s.TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&((t=Object.assign({},this.lastStartTagToken.location)).startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){let n=this.treeAdapter.getNodeSourceCodeLocation(e);if(n&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===a.END_TAG_TOKEN&&r===t.tagName,o={};i?(o.endTag=Object.assign({},n),o.endLine=n.endLine,o.endCol=n.endCol,o.endOffset=n.endOffset):(o.endLine=n.startLine,o.endCol=n.startCol,o.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(n,a){t._bootstrap.call(this,n,a),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let s=r.install(this.tokenizer,i);e.posTracker=s.posTracker,r.install(this.openElements,o,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);let r=n.type===a.END_TAG_TOKEN&&(n.tagName===l.HTML||n.tagName===l.BODY&&this.openElements.hasInScope(l.BODY));if(r)for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);let n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t{let i=a.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}}),n}}},57930:function(e,t,n){"use strict";let r=n(81704);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let n=this.pos;t.dropParsedChunk.call(this);let r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},12484:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let n=[];if(this.length>=3){let r=this.treeAdapter.getAttrList(e).length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){let o=this.entries[e];if(o.type===t.MARKER_ENTRY)break;let s=o.element,l=this.treeAdapter.getAttrList(s),c=this.treeAdapter.getTagName(s)===a&&this.treeAdapter.getNamespaceURI(s)===i&&l.length===r;c&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){let r=this.treeAdapter.getAttrList(e),a=r.length,i=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.MARKER_ENTRY)break;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){let r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:function(e,t,n){"use strict";let r=n(55763),a=n(46519),i=n(12484),o=n(452),s=n(22232),l=n(81704),c=n(17296),u=n(8904),d=n(31515),p=n(88779),m=n(41734),g=n(54284),f=n(16152),h=f.TAG_NAMES,b=f.NAMESPACES,E=f.ATTRS,T={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},S="hidden",y="INITIAL_MODE",A="BEFORE_HTML_MODE",_="BEFORE_HEAD_MODE",k="IN_HEAD_MODE",N="IN_HEAD_NO_SCRIPT_MODE",C="AFTER_HEAD_MODE",v="IN_BODY_MODE",R="TEXT_MODE",I="IN_TABLE_MODE",O="IN_TABLE_TEXT_MODE",w="IN_CAPTION_MODE",x="IN_COLUMN_GROUP_MODE",L="IN_TABLE_BODY_MODE",D="IN_ROW_MODE",P="IN_CELL_MODE",M="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",U="IN_TEMPLATE_MODE",B="AFTER_BODY_MODE",H="IN_FRAMESET_MODE",G="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",$="AFTER_AFTER_FRAMESET_MODE",j={[h.TR]:D,[h.TBODY]:L,[h.THEAD]:L,[h.TFOOT]:L,[h.CAPTION]:w,[h.COLGROUP]:x,[h.TABLE]:I,[h.BODY]:v,[h.FRAMESET]:H},V={[h.CAPTION]:I,[h.COLGROUP]:I,[h.TBODY]:I,[h.TFOOT]:I,[h.THEAD]:I,[h.COL]:x,[h.TR]:L,[h.TD]:D,[h.TH]:D},W={[y]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);let n=t.forceQuirks?f.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(m.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=A},[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ee},[A]:{[r.CHARACTER_TOKEN]:et,[r.NULL_CHARACTER_TOKEN]:et,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?(e._insertElement(t,b.HTML),e.insertionMode=_):et(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&et(e,t)},[r.EOF_TOKEN]:et},[_]:{[r.CHARACTER_TOKEN]:en,[r.NULL_CHARACTER_TOKEN]:en,[r.WHITESPACE_CHARACTER_TOKEN]:Y,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.HEAD?(e._insertElement(t,b.HTML),e.headElement=e.openElements.current,e.insertionMode=k):en(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?en(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:en},[k]:{[r.CHARACTER_TOKEN]:ei,[r.NULL_CHARACTER_TOKEN]:ei,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:er,[r.END_TAG_TOKEN]:ea,[r.EOF_TOKEN]:ei},[N]:{[r.CHARACTER_TOKEN]:eo,[r.NULL_CHARACTER_TOKEN]:eo,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BASEFONT||n===h.BGSOUND||n===h.HEAD||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.STYLE?er(e,t):n===h.NOSCRIPT?e._err(m.nestedNoscriptInHead):eo(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.NOSCRIPT?(e.openElements.pop(),e.insertionMode=k):n===h.BR?eo(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:eo},[C]:{[r.CHARACTER_TOKEN]:es,[r.NULL_CHARACTER_TOKEN]:es,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BODY?(e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=v):n===h.FRAMESET?(e._insertElement(t,b.HTML),e.insertionMode=H):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE?(e._err(m.abandonedHeadElementChild),e.openElements.push(e.headElement),er(e,t),e.openElements.remove(e.headElement)):n===h.HEAD?e._err(m.misplacedStartTagForHeadElement):es(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.BODY||n===h.HTML||n===h.BR?es(e,t):n===h.TEMPLATE?ea(e,t):e._err(m.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:es},[v]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:eS,[r.END_TAG_TOKEN]:ek,[r.EOF_TOKEN]:eN},[R]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Q,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:Y,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:Y,[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(m.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[I]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:ev,[r.END_TAG_TOKEN]:eR,[r.EOF_TOKEN]:eN},[O]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:eO,[r.DOCTYPE_TOKEN]:eO,[r.START_TAG_TOKEN]:eO,[r.END_TAG_TOKEN]:eO,[r.EOF_TOKEN]:eO},[w]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TD||n===h.TFOOT||n===h.TH||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,e._processToken(t)):eS(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,n===h.TABLE&&e._processToken(t)):n!==h.BODY&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&ek(e,t)},[r.EOF_TOKEN]:eN},[x]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.COL?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.TEMPLATE?er(e,t):ew(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.COLGROUP?e.openElements.currentTagName===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=I):n===h.TEMPLATE?ea(e,t):n!==h.COL&&ew(e,t)},[r.EOF_TOKEN]:eN},[L]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,b.HTML),e.insertionMode=D):n===h.TH||n===h.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(h.TR),e.insertionMode=D,e._processToken(t)):n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TFOOT||n===h.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TBODY||n===h.TFOOT||n===h.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I):n===h.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):(n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP||n!==h.HTML&&n!==h.TD&&n!==h.TH&&n!==h.TR)&&eR(e,t)},[r.EOF_TOKEN]:eN},[D]:{[r.CHARACTER_TOKEN]:eC,[r.NULL_CHARACTER_TOKEN]:eC,[r.WHITESPACE_CHARACTER_TOKEN]:eC,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TH||n===h.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,b.HTML),e.insertionMode=P,e.activeFormattingElements.insertMarker()):n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):ev(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TR?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L):n===h.TABLE?e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):n===h.TBODY||n===h.TFOOT||n===h.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L,e._processToken(t)):(n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP||n!==h.HTML&&n!==h.TD&&n!==h.TH)&&eR(e,t)},[r.EOF_TOKEN]:eN},[P]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.COL||n===h.COLGROUP||n===h.TBODY||n===h.TD||n===h.TFOOT||n===h.TH||n===h.THEAD||n===h.TR?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),e._processToken(t)):eS(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D):n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&ek(e,t)},[r.EOF_TOKEN]:eN},[M]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:ex,[r.END_TAG_TOKEN]:eL,[r.EOF_TOKEN]:eN},[F]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processToken(t)):ex(e,t)},[r.END_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processToken(t)):eL(e,t)},[r.EOF_TOKEN]:eN},[U]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;if(n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE)er(e,t);else{let r=V[n]||v;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.TEMPLATE&&ea(e,t)},[r.EOF_TOKEN]:eD},[B]:{[r.CHARACTER_TOKEN]:eP,[r.NULL_CHARACTER_TOKEN]:eP,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?eS(e,t):eP(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?e.fragmentContext||(e.insertionMode=z):eP(e,t)},[r.EOF_TOKEN]:J},[H]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.FRAMESET?e._insertElement(t,b.HTML):n===h.FRAME?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==h.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===h.FRAMESET||(e.insertionMode=G))},[r.EOF_TOKEN]:J},[G]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===h.HTML&&(e.insertionMode=$)},[r.EOF_TOKEN]:J},[z]:{[r.CHARACTER_TOKEN]:eM,[r.NULL_CHARACTER_TOKEN]:eM,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){t.tagName===h.HTML?eS(e,t):eM(e,t)},[r.END_TAG_TOKEN]:eM,[r.EOF_TOKEN]:J},[$]:{[r.CHARACTER_TOKEN]:Y,[r.NULL_CHARACTER_TOKEN]:Y,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Y,[r.START_TAG_TOKEN]:function(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.NOFRAMES&&er(e,t)},[r.END_TAG_TOKEN]:Y,[r.EOF_TOKEN]:J}};function K(e,t){let n,r;for(let a=0;a<8&&((r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName))?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):e_(e,t),n=r);a++){let t=function(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a)&&(n=a)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;let r=function(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&i>=3,l=!n||s;l?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}(e,t,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),function(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{let r=e.treeAdapter.getTagName(t),a=e.treeAdapter.getNamespaceURI(t);r===h.TEMPLATE&&a===b.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,r),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),a=n.token,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}(e,t,n)}}function Y(){}function Z(e){e._err(m.misplacedDoctype)}function q(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function X(e,t){e._appendCommentNode(t,e.document)}function Q(e,t){e._insertCharacters(t)}function J(e){e.stopped=!0}function ee(e,t){e._err(m.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,f.DOCUMENT_MODE.QUIRKS),e.insertionMode=A,e._processToken(t)}function et(e,t){e._insertFakeRootElement(),e.insertionMode=_,e._processToken(t)}function en(e,t){e._insertFakeElement(h.HEAD),e.headElement=e.openElements.current,e.insertionMode=k,e._processToken(t)}function er(e,t){let n=t.tagName;n===h.HTML?eS(e,t):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META?(e._appendElement(t,b.HTML),t.ackSelfClosing=!0):n===h.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===h.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,b.HTML),e.insertionMode=N):n===h.NOFRAMES||n===h.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===h.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===h.TEMPLATE?(e._insertTemplate(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U,e._pushTmplInsertionMode(U)):n===h.HEAD?e._err(m.misplacedStartTagForHeadElement):ei(e,t)}function ea(e,t){let n=t.tagName;n===h.HEAD?(e.openElements.pop(),e.insertionMode=C):n===h.BODY||n===h.BR||n===h.HTML?ei(e,t):n===h.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==h.TEMPLATE&&e._err(m.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(m.endTagWithoutMatchingOpenElement)}function ei(e,t){e.openElements.pop(),e.insertionMode=C,e._processToken(t)}function eo(e,t){let n=t.type===r.EOF_TOKEN?m.openElementsLeftAfterEof:m.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=k,e._processToken(t)}function es(e,t){e._insertFakeElement(h.BODY),e.insertionMode=v,e._processToken(t)}function el(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ec(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function eu(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)}function ed(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ep(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function em(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ef(e,t){e._appendElement(t,b.HTML),t.ackSelfClosing=!0}function eh(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function eb(e,t){e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function eE(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,b.HTML)}function eT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML)}function eS(e,t){let n=t.tagName;switch(n.length){case 1:n===h.I||n===h.S||n===h.B||n===h.U?ep(e,t):n===h.P?eu(e,t):n===h.A?function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);n&&(K(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):eT(e,t);break;case 2:n===h.DL||n===h.OL||n===h.UL?eu(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement();let n=e.openElements.currentTagName;(n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6)&&e.openElements.pop(),e._insertElement(t,b.HTML)}(e,t):n===h.LI||n===h.DD||n===h.DT?function(e,t){e.framesetOk=!1;let n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.items[t],a=e.treeAdapter.getTagName(r),i=null;if(n===h.LI&&a===h.LI?i=h.LI:(n===h.DD||n===h.DT)&&(a===h.DD||a===h.DT)&&(i=a),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)}(e,t):n===h.EM||n===h.TT?ep(e,t):n===h.BR?eg(e,t):n===h.HR?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,b.HTML),e.framesetOk=!1,t.ackSelfClosing=!0):n===h.RB?eE(e,t):n===h.RT||n===h.RP?(e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,b.HTML)):n!==h.TH&&n!==h.TD&&n!==h.TR&&eT(e,t);break;case 3:n===h.DIV||n===h.DIR||n===h.NAV?eu(e,t):n===h.PRE?ed(e,t):n===h.BIG?ep(e,t):n===h.IMG||n===h.WBR?eg(e,t):n===h.XMP?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===h.SVG?(e._reconstructActiveFormattingElements(),p.adjustTokenSVGAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.SVG):e._insertElement(t,b.SVG),t.ackSelfClosing=!0):n===h.RTC?eE(e,t):n!==h.COL&&eT(e,t);break;case 4:n===h.HTML?0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs):n===h.BASE||n===h.LINK||n===h.META?er(e,t):n===h.BODY?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===h.MAIN||n===h.MENU?eu(e,t):n===h.FORM?function(e,t){let n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===h.CODE||n===h.FONT?ep(e,t):n===h.NOBR?(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(K(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,b.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)):n===h.AREA?eg(e,t):n===h.MATH?(e._reconstructActiveFormattingElements(),p.adjustTokenMathMLAttrs(t),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,b.MATHML):e._insertElement(t,b.MATHML),t.ackSelfClosing=!0):n===h.MENU?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML)):n!==h.HEAD&&eT(e,t);break;case 5:n===h.STYLE||n===h.TITLE?er(e,t):n===h.ASIDE?eu(e,t):n===h.SMALL?ep(e,t):n===h.TABLE?(e.treeAdapter.getDocumentMode(e.document)!==f.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=I):n===h.EMBED?eg(e,t):n===h.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,b.HTML);let n=r.getTokenAttr(t,E.TYPE);n&&n.toLowerCase()===S||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===h.PARAM||n===h.TRACK?ef(e,t):n===h.IMAGE?(t.tagName=h.IMG,eg(e,t)):n!==h.FRAME&&n!==h.TBODY&&n!==h.TFOOT&&n!==h.THEAD&&eT(e,t);break;case 6:n===h.SCRIPT?er(e,t):n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP||n===h.DIALOG?eu(e,t):n===h.BUTTON?(e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1):n===h.STRIKE||n===h.STRONG?ep(e,t):n===h.APPLET||n===h.OBJECT?em(e,t):n===h.KEYGEN?eg(e,t):n===h.SOURCE?ef(e,t):n===h.IFRAME?(e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)):n===h.SELECT?(e._reconstructActiveFormattingElements(),e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode===I||e.insertionMode===w||e.insertionMode===L||e.insertionMode===D||e.insertionMode===P?e.insertionMode=F:e.insertionMode=M):n===h.OPTION?eb(e,t):eT(e,t);break;case 7:n===h.BGSOUND?er(e,t):n===h.DETAILS||n===h.ADDRESS||n===h.ARTICLE||n===h.SECTION||n===h.SUMMARY?eu(e,t):n===h.LISTING?ed(e,t):n===h.MARQUEE?em(e,t):n===h.NOEMBED?eh(e,t):n!==h.CAPTION&&eT(e,t);break;case 8:n===h.BASEFONT?er(e,t):n===h.FRAMESET?function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,b.HTML),e.insertionMode=H)}(e,t):n===h.FIELDSET?eu(e,t):n===h.TEXTAREA?(e._insertElement(t,b.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R):n===h.TEMPLATE?er(e,t):n===h.NOSCRIPT?e.options.scriptingEnabled?eh(e,t):eT(e,t):n===h.OPTGROUP?eb(e,t):n!==h.COLGROUP&&eT(e,t);break;case 9:n===h.PLAINTEXT?(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,b.HTML),e.tokenizer.state=r.MODE.PLAINTEXT):eT(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?eu(e,t):eT(e,t);break;default:eT(e,t)}}function ey(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function eA(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function e_(e,t){let n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){let r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function ek(e,t){let n=t.tagName;switch(n.length){case 1:n===h.A||n===h.B||n===h.I||n===h.S||n===h.U?K(e,t):n===h.P?(e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(h.P),e._closePElement()):e_(e,t);break;case 2:n===h.DL||n===h.UL||n===h.OL?ey(e,t):n===h.LI?e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI)):n===h.DD||n===h.DT?function(e,t){let n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()):n===h.BR?(e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR),e.openElements.pop(),e.framesetOk=!1):n===h.EM||n===h.TT?K(e,t):e_(e,t);break;case 3:n===h.BIG?K(e,t):n===h.DIR||n===h.DIV||n===h.NAV||n===h.PRE?ey(e,t):e_(e,t);break;case 4:n===h.BODY?e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B):n===h.HTML?e.openElements.hasInScope(h.BODY)&&(e.insertionMode=B,e._processToken(t)):n===h.FORM?function(e){let t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):e.openElements.remove(n))}(e,t):n===h.CODE||n===h.FONT||n===h.NOBR?K(e,t):n===h.MAIN||n===h.MENU?ey(e,t):e_(e,t);break;case 5:n===h.ASIDE?ey(e,t):n===h.SMALL?K(e,t):e_(e,t);break;case 6:n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP||n===h.DIALOG?ey(e,t):n===h.APPLET||n===h.OBJECT?eA(e,t):n===h.STRIKE||n===h.STRONG?K(e,t):e_(e,t);break;case 7:n===h.ADDRESS||n===h.ARTICLE||n===h.DETAILS||n===h.SECTION||n===h.SUMMARY||n===h.LISTING?ey(e,t):n===h.MARQUEE?eA(e,t):e_(e,t);break;case 8:n===h.FIELDSET?ey(e,t):n===h.TEMPLATE?ea(e,t):e_(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?ey(e,t):e_(e,t);break;default:e_(e,t)}}function eN(e,t){e.tmplInsertionModeStackTop>-1?eD(e,t):e.stopped=!0}function eC(e,t){let n=e.openElements.currentTagName;n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O,e._processToken(t)):eI(e,t)}function ev(e,t){let n=t.tagName;switch(n.length){case 2:n===h.TD||n===h.TH||n===h.TR?(e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY),e.insertionMode=L,e._processToken(t)):eI(e,t);break;case 3:n===h.COL?(e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP),e.insertionMode=x,e._processToken(t)):eI(e,t);break;case 4:n===h.FORM?e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,b.HTML),e.formElement=e.openElements.current,e.openElements.pop()):eI(e,t);break;case 5:n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processToken(t)):n===h.STYLE?er(e,t):n===h.TBODY||n===h.TFOOT||n===h.THEAD?(e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=L):n===h.INPUT?function(e,t){let n=r.getTokenAttr(t,E.TYPE);n&&n.toLowerCase()===S?e._appendElement(t,b.HTML):eI(e,t),t.ackSelfClosing=!0}(e,t):eI(e,t);break;case 6:n===h.SCRIPT?er(e,t):eI(e,t);break;case 7:n===h.CAPTION?(e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,b.HTML),e.insertionMode=w):eI(e,t);break;case 8:n===h.COLGROUP?(e.openElements.clearBackToTableContext(),e._insertElement(t,b.HTML),e.insertionMode=x):n===h.TEMPLATE?er(e,t):eI(e,t);break;default:eI(e,t)}}function eR(e,t){let n=t.tagName;n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode()):n===h.TEMPLATE?ea(e,t):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&eI(e,t)}function eI(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function eO(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function eP(e,t){e.insertionMode=v,e._processToken(t)}function eM(e,t){e.insertionMode=v,e._processToken(t)}e.exports=class{constructor(e){this.options=u(T,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,o),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(h.TEMPLATE,b.HTML,[]));let n=this.treeAdapter.createElement("documentmock",b.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===h.TEMPLATE&&this._pushTmplInsertionMode(U),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let r=this.treeAdapter.getFirstChild(n),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,a),a}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=y,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new a(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let e=this.pendingScript;this.pendingScript=null,t(e);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==b.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,b.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=R}switchToPlaintextParsing(){this.insertionMode=R,this.originalInsertionMode=v,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===h.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===b.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===h.TITLE||e===h.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===h.STYLE||e===h.XMP||e===h.IFRAME||e===h.NOEMBED||e===h.NOFRAMES||e===h.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===h.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===h.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,b.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,b.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(h.HTML,b.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let n=this.treeAdapter.getNamespaceURI(t);if(n===b.HTML||this.treeAdapter.getTagName(t)===h.ANNOTATION_XML&&n===b.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===h.SVG)return!1;let a=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN,i=e.type===r.START_TAG_TOKEN&&e.tagName!==h.MGLYPH&&e.tagName!==h.MALIGNMARK;return!((i||a)&&this._isIntegrationPoint(t,b.MATHML)||(e.type===r.START_TAG_TOKEN||a)&&this._isIntegrationPoint(t,b.HTML))&&e.type!==r.EOF_TOKEN}_processToken(e){W[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){W[v][e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?(this._insertCharacters(e),this.framesetOk=!1):e.type===r.NULL_CHARACTER_TOKEN?(e.chars=g.REPLACEMENT_CHARACTER,this._insertCharacters(e)):e.type===r.WHITESPACE_CHARACTER_TOKEN?Q(this,e):e.type===r.COMMENT_TOKEN?q(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(p.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==b.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===b.MATHML?p.adjustTokenMathMLAttrs(t):r===b.SVG&&(p.adjustTokenSVGTagName(t),p.adjustTokenSVGAttrs(t)),p.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===b.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(m.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),a=this.treeAdapter.getAttrList(e);return p.isIntegrationPoint(n,r,a,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,n=null;do if(t--,(n=this.activeFormattingElements.entries[t]).type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));let r=this.treeAdapter.getTagName(n),a=j[r];if(a){this.insertionMode=a;break}if(t||r!==h.TD&&r!==h.TH){if(t||r!==h.HEAD){if(r===h.SELECT){this._resetInsertionModeForSelect(e);break}if(r===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===h.HTML){this.insertionMode=this.headElement?C:_;break}else if(t){this.insertionMode=v;break}}else{this.insertionMode=k;break}}else{this.insertionMode=P;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===h.TEMPLATE)break;if(n===h.TABLE){this.insertionMode=F;return}}this.insertionMode=M}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===h.TABLE||t===h.TBODY||t===h.TFOOT||t===h.THEAD||t===h.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),a=this.treeAdapter.getNamespaceURI(n);if(r===h.TEMPLATE&&a===b.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===h.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return f.SPECIAL_ELEMENTS[n][t]}}},46519:function(e,t,n){"use strict";let r=n(16152),a=r.TAG_NAMES,i=r.NAMESPACES;function o(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI;case 3:return e===a.RTC;case 6:return e===a.OPTION;case 8:return e===a.OPTGROUP}return!1}function s(e,t){switch(e.length){case 2:if(e===a.TD||e===a.TH)return t===i.HTML;if(e===a.MI||e===a.MO||e===a.MN||e===a.MS)return t===i.MATHML;break;case 4:if(e===a.HTML)return t===i.HTML;if(e===a.DESC)return t===i.SVG;break;case 5:if(e===a.TABLE)return t===i.HTML;if(e===a.MTEXT)return t===i.MATHML;if(e===a.TITLE)return t===i.SVG;break;case 6:return(e===a.APPLET||e===a.OBJECT)&&t===i.HTML;case 7:return(e===a.CAPTION||e===a.MARQUEE)&&t===i.HTML;case 8:return e===a.TEMPLATE&&t===i.HTML;case 13:return e===a.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===a.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.H1||e===a.H2||e===a.H3||e===a.H4||e===a.H5||e===a.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===a.TD||e===a.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==a.TABLE&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==a.TBODY&&this.currentTagName!==a.TFOOT&&this.currentTagName!==a.THEAD&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==a.TR&&this.currentTagName!==a.TEMPLATE&&this.currentTagName!==a.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===a.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===a.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if(s(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===a.H1||t===a.H2||t===a.H3||t===a.H4||t===a.H5||t===a.H6)&&n===i.HTML)break;if(s(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if((n===a.UL||n===a.OL)&&r===i.HTML||s(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)break;if(n===a.BUTTON&&r===i.HTML||s(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===i.HTML){if(n===e)break;if(n===a.TABLE||n===a.TEMPLATE||n===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===i.HTML){if(t===a.TBODY||t===a.THEAD||t===a.TFOOT)break;if(t===a.TABLE||t===a.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===i.HTML){if(n===e)break;if(n!==a.OPTION&&n!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;o(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;function(e){switch(e.length){case 1:return e===a.P;case 2:return e===a.RB||e===a.RP||e===a.RT||e===a.DD||e===a.DT||e===a.LI||e===a.TD||e===a.TH||e===a.TR;case 3:return e===a.RTC;case 5:return e===a.TBODY||e===a.TFOOT||e===a.THEAD;case 6:return e===a.OPTION;case 7:return e===a.CAPTION;case 8:return e===a.OPTGROUP||e===a.COLGROUP}return!1}(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;o(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:function(e,t,n){"use strict";let r=n(77118),a=n(54284),i=n(5482),o=n(41734),s=a.CODE_POINTS,l=a.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},u="DATA_STATE",d="RCDATA_STATE",p="RAWTEXT_STATE",m="SCRIPT_DATA_STATE",g="PLAINTEXT_STATE",f="TAG_OPEN_STATE",h="END_TAG_OPEN_STATE",b="TAG_NAME_STATE",E="RCDATA_LESS_THAN_SIGN_STATE",T="RCDATA_END_TAG_OPEN_STATE",S="RCDATA_END_TAG_NAME_STATE",y="RAWTEXT_LESS_THAN_SIGN_STATE",A="RAWTEXT_END_TAG_OPEN_STATE",_="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",N="SCRIPT_DATA_END_TAG_OPEN_STATE",C="SCRIPT_DATA_END_TAG_NAME_STATE",v="SCRIPT_DATA_ESCAPE_START_STATE",R="SCRIPT_DATA_ESCAPE_START_DASH_STATE",I="SCRIPT_DATA_ESCAPED_STATE",O="SCRIPT_DATA_ESCAPED_DASH_STATE",w="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",x="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",L="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",D="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",P="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",U="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",G="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",$="AFTER_ATTRIBUTE_NAME_STATE",j="BEFORE_ATTRIBUTE_VALUE_STATE",V="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",W="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",K="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",q="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",et="COMMENT_LESS_THAN_SIGN_STATE",en="COMMENT_LESS_THAN_SIGN_BANG_STATE",er="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ea="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ei="COMMENT_END_DASH_STATE",eo="COMMENT_END_STATE",es="COMMENT_END_BANG_STATE",el="DOCTYPE_STATE",ec="BEFORE_DOCTYPE_NAME_STATE",eu="DOCTYPE_NAME_STATE",ed="AFTER_DOCTYPE_NAME_STATE",ep="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",em="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eg="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",ef="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",eh="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",eb="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",eE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",eT="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",eS="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ey="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",eA="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",e_="BOGUS_DOCTYPE_STATE",ek="CDATA_SECTION_STATE",eN="CDATA_SECTION_BRACKET_STATE",eC="CDATA_SECTION_END_STATE",ev="CHARACTER_REFERENCE_STATE",eR="NAMED_CHARACTER_REFERENCE_STATE",eI="AMBIGUOS_AMPERSAND_STATE",eO="NUMERIC_CHARACTER_REFERENCE_STATE",ew="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ex="DECIMAL_CHARACTER_REFERENCE_START_STATE",eL="HEXADEMICAL_CHARACTER_REFERENCE_STATE",eD="DECIMAL_CHARACTER_REFERENCE_STATE",eP="NUMERIC_CHARACTER_REFERENCE_END_STATE";function eM(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function eF(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function eU(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function eB(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function eH(e){return eB(e)||eU(e)}function eG(e){return eH(e)||eF(e)}function ez(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function e$(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function ej(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-=65536)>>>10&1023|55296)+String.fromCharCode(56320|1023&e)}function eV(e){return String.fromCharCode(e+32)}function eW(e,t){let n=i[++e],r=++e,a=r+n-1;for(;r<=a;){let e=r+a>>>1,o=i[e];if(ot))return i[e+n];a=e-1}}return -1}class eK{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:eK.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r,a=0,i=!0,o=e.length,l=0,c=t;for(;l0&&(c=this._consume(),a++),c===s.EOF||c!==(r=e[l])&&(n||c!==r+32)){i=!1;break}if(!i)for(;a--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(o.endTagWithAttributes),e.selfClosing&&this._err(o.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eK.CHARACTER_TOKEN;eM(e)?t=eK.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=eK.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,ej(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){let e=i[r],a=e<7,o=a&&1&e;o&&(t=2&e?[i[++r],i[++r]]:[i[++r]],n=0);let l=this._consume();if(this.tempBuff.push(l),n++,l===s.EOF)break;r=a?4&e?eW(r,l):-1:l===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===V||this.returnState===W||this.returnState===K}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){let e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||eG(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=I,this._emitChars(a.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=I,this._emitCodePoint(e))}[x](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=L):eH(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(P)):(this._emitChars("<"),this._reconsumeInState(I))}[L](e){eH(e)?(this._createEndTagToken(),this._reconsumeInState(D)):(this._emitChars("")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=M,this._emitChars(a.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=M,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChars("/")):this._reconsumeInState(M)}[H](e){eM(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?I:M,this._emitCodePoint(e)):eU(e)?(this.tempBuff.push(e+32),this._emitCodePoint(e)):eB(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(M)}[G](e){eM(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState($):e===s.EQUALS_SIGN?(this._err(o.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){eM(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName($),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(j):eU(e)?this.currentAttr.name+=eV(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(o.unexpectedCharacterInAttributeName),this.currentAttr.name+=ej(e)):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.name+=a.REPLACEMENT_CHARACTER):this.currentAttr.name+=ej(e)}[$](e){eM(e)||(e===s.SOLIDUS?this.state=Z:e===s.EQUALS_SIGN?this.state=j:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[j](e){eM(e)||(e===s.QUOTATION_MARK?this.state=V:e===s.APOSTROPHE?this.state=W:e===s.GREATER_THAN_SIGN?(this._err(o.missingAttributeValue),this.state=u,this._emitCurrentToken()):this._reconsumeInState(K))}[V](e){e===s.QUOTATION_MARK?this.state=Y:e===s.AMPERSAND?(this.returnState=V,this.state=ev):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[W](e){e===s.APOSTROPHE?this.state=Y:e===s.AMPERSAND?(this.returnState=W,this.state=ev):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[K](e){eM(e)?this._leaveAttrValue(G):e===s.AMPERSAND?(this.returnState=K,this.state=ev):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=a.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(o.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=ej(e)):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=ej(e)}[Y](e){eM(e)?this._leaveAttrValue(G):e===s.SOLIDUS?this._leaveAttrValue(Z):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.missingWhitespaceBetweenAttributes),this._reconsumeInState(G))}[Z](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.unexpectedSolidusInTag),this._reconsumeInState(G))}[q](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=a.REPLACEMENT_CHARACTER):this.currentToken.data+=ej(e)}[X](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=el:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ek:(this._err(o.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=q):this._ensureHibernation()||(this._err(o.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(q))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ei:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=et):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=ej(e)}[et](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=en):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[en](e){e===s.HYPHEN_MINUS?this.state=er:this._reconsumeInState(ee)}[er](e){e===s.HYPHEN_MINUS?this.state=ea:this._reconsumeInState(ei)}[ea](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(o.nestedComment),this._reconsumeInState(eo)}[ei](e){e===s.HYPHEN_MINUS?this.state=eo:e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[eo](e){e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=es:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[es](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ei):e===s.GREATER_THAN_SIGN?(this._err(o.incorrectlyClosedComment),this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[el](e){eM(e)?this.state=ec:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ec):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ec))}[ec](e){eM(e)||(eU(e)?(this._createDoctypeToken(eV(e)),this.state=eu):e===s.NULL?(this._err(o.unexpectedNullCharacter),this._createDoctypeToken(a.REPLACEMENT_CHARACTER),this.state=eu):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(ej(e)),this.state=eu))}[eu](e){eM(e)?this.state=ed:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):eU(e)?this.currentToken.name+=eV(e):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.name+=a.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=ej(e)}[ed](e){!eM(e)&&(e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=ep:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=eE:this._ensureHibernation()||(this._err(o.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[ep](e){eM(e)?this.state=em:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=eg):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=ef):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[em](e){eM(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=eg):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=ef):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eg](e){e===s.QUOTATION_MARK?this.state=eh:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=ej(e)}[ef](e){e===s.APOSTROPHE?this.state=eh:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=ej(e)}[eh](e){eM(e)?this.state=eb:e===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ey):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[eb](e){eM(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ey):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eE](e){eM(e)?this.state=eT:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ey):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_))}[eT](e){eM(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=eS):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ey):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=u,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(e_)))}[eS](e){e===s.QUOTATION_MARK?this.state=eA:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=ej(e)}[ey](e){e===s.APOSTROPHE?this.state=eA:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=a.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=ej(e)}[eA](e){eM(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(e_)))}[e_](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=u):e===s.NULL?this._err(o.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ek](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eN:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[eN](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eC:(this._emitChars("]"),this._reconsumeInState(ek))}[eC](e){e===s.GREATER_THAN_SIGN?this.state=u:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ek))}[ev](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=eO):eG(e)?this._reconsumeInState(eR):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eR](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){let e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(o.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=eI}[eI](e){eG(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=ej(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(o.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[eO](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=ew):this._reconsumeInState(ex)}[ew](e){eF(e)||ez(e)||e$(e)?this._reconsumeInState(eL):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ex](e){eF(e)?this._reconsumeInState(eD):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[eL](e){ez(e)?this.charRefCode=16*this.charRefCode+e-55:e$(e)?this.charRefCode=16*this.charRefCode+e-87:eF(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eP:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eP))}[eD](e){eF(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=eP:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(eP))}[eP](){if(this.charRefCode===s.NULL)this._err(o.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(o.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(a.isSurrogate(this.charRefCode))this._err(o.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(a.isUndefinedCodePoint(this.charRefCode))this._err(o.noncharacterCharacterReference);else if(a.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(o.controlCharacterReference);let e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}eK.CHARACTER_TOKEN="CHARACTER_TOKEN",eK.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",eK.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",eK.START_TAG_TOKEN="START_TAG_TOKEN",eK.END_TAG_TOKEN="END_TAG_TOKEN",eK.COMMENT_TOKEN="COMMENT_TOKEN",eK.DOCTYPE_TOKEN="DOCTYPE_TOKEN",eK.EOF_TOKEN="EOF_TOKEN",eK.HIBERNATION_TOKEN="HIBERNATION_TOKEN",eK.MODE={DATA:u,RCDATA:d,RAWTEXT:p,SCRIPT_DATA:m,PLAINTEXT:g},eK.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=eK},5482:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:function(e,t,n){"use strict";let r=n(54284),a=n(41734),i=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(a.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));let t=e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976;return t||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(a.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(a.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:function(e,t,n){"use strict";let{DOCUMENT_MODE:r}=n(16152);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};let a=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let a=null;for(let t=0;t(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},81704:function(e){"use strict";class t{constructor(e){let t={},n=this._getOverriddenMethods(this,t);for(let r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n4&&g.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?f=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(m=(p=t).slice(4),t=l.test(m)?p:("-"!==(m=m.replace(c,u)).charAt(0)&&(m="-"+m),o+m)),h=a),new h(f,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},97247:function(e,t,n){"use strict";var r=n(19940),a=n(8289),i=n(5812),o=n(94397),s=n(67716),l=n(61805);e.exports=r([i,a,o,s,l])},67716:function(e,t,n){"use strict";var r=n(17e3),a=n(17596),i=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=a({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),a=n(17596),i=n(10855),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),a=n(99607),i=n(98805);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new a(d,p,o)}},98805:function(e,t,n){"use strict";var r=n(57643),a=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,n,s){var l,c,u,d=-1;for(s&&(this.space=s),r.call(this,e,t);++d{!u&&p(("function"==typeof c?c():c)||document.body)},[c,u]),(0,l.Z)(()=>{if(d&&!u)return(0,a.Z)(t,d),()=>{(0,a.Z)(t,null)}},[t,d,u]),u)?n.isValidElement(r)?n.cloneElement(r,{ref:f}):(0,s.jsx)(n.Fragment,{children:r}):(0,s.jsx)(n.Fragment,{children:d?o.createPortal(r,d):d})})},70758:function(e,t,r){r.d(t,{U:function(){return s}});var n=r(87462),o=r(67294),i=r(99962),l=r(33703),a=r(30437);function s(e={}){let{disabled:t=!1,focusableWhenDisabled:r,href:s,rootRef:c,tabIndex:u,to:d,type:p}=e,f=o.useRef(),[m,g]=o.useState(!1),{isFocusVisibleRef:h,onFocus:b,onBlur:v,ref:y}=(0,i.Z)(),[$,w]=o.useState(!1);t&&!r&&$&&w(!1),o.useEffect(()=>{h.current=$},[$,h]);let[k,E]=o.useState(""),x=e=>t=>{var r;$&&t.preventDefault(),null==(r=e.onMouseLeave)||r.call(e,t)},C=e=>t=>{var r;v(t),!1===h.current&&w(!1),null==(r=e.onBlur)||r.call(e,t)},S=e=>t=>{var r,n;f.current||(f.current=t.currentTarget),b(t),!0===h.current&&(w(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(r=e.onFocus)||r.call(e,t)},O=()=>{let e=f.current;return"BUTTON"===k||"INPUT"===k&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===k&&(null==e?void 0:e.href)},j=e=>r=>{if(!t){var n;null==(n=e.onClick)||n.call(e,r)}},D=e=>r=>{var n;t||(g(!0),document.addEventListener("mouseup",()=>{g(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,r)},Z=e=>r=>{var n,o;null==(n=e.onKeyDown)||n.call(e,r),!r.defaultMuiPrevented&&(r.target!==r.currentTarget||O()||" "!==r.key||r.preventDefault(),r.target!==r.currentTarget||" "!==r.key||t||g(!0),r.target!==r.currentTarget||O()||"Enter"!==r.key||t||(null==(o=e.onClick)||o.call(e,r),r.preventDefault()))},I=e=>r=>{var n,o;r.target===r.currentTarget&&g(!1),null==(n=e.onKeyUp)||n.call(e,r),r.target!==r.currentTarget||O()||t||" "!==r.key||r.defaultMuiPrevented||null==(o=e.onClick)||o.call(e,r)},R=o.useCallback(e=>{var t;E(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),N=(0,l.Z)(R,c,y,f),P={};return void 0!==u&&(P.tabIndex=u),"BUTTON"===k?(P.type=null!=p?p:"button",r?P["aria-disabled"]=t:P.disabled=t):""!==k&&(s||d||(P.role="button",P.tabIndex=null!=u?u:0),t&&(P["aria-disabled"]=t,P.tabIndex=r?null!=u?u:0:-1)),{getRootProps:(t={})=>{let r=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),o=(0,n.Z)({type:p},r,P,t,{onBlur:C(r),onClick:j(r),onFocus:S(r),onKeyDown:Z(r),onKeyUp:I(r),onMouseDown:D(r),onMouseLeave:x(r),ref:N});return delete o.onFocusVisible,o},focusVisible:$,setFocusVisible:w,active:m,rootRef:N}}},76043:function(e,t,r){var n=r(67294);let o=n.createContext(void 0);t.Z=o},58859:function(e,t,r){r.d(t,{V:function(){return o}});var n=r(87462);let o=({theme:e,ownerState:t},r)=>{let o={};return t.sx&&(function t(r){if("function"==typeof r){let n=r(e);t(n)}else Array.isArray(r)?r.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof r&&(o=(0,n.Z)({},o,r))}(t.sx),r.forEach(t=>{let r=o[t];if("string"==typeof r||"number"==typeof r){if("borderRadius"===t){if("number"==typeof r)o[t]=`${r}px`;else{var n;o[t]=(null==(n=e.vars)?void 0:n.radius[r])||r}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof r?o[t]=e.spacing(r):o[t]=r}else"function"==typeof r?o[t]=r(e):o[t]=void 0})),o}},41667:function(e,t,r){r.d(t,{default:function(){return tl}});var n=r(67294),o=r(74902),i=r(94184),l=r.n(i),a=r(87462),s=r(15671),c=r(43144),u=r(32531),d=r(73568),p=r(4942),f=r(45987),m=r(74165),g=r(71002),h=r(15861),b=r(64217);function v(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var n=e.data[t];if(Array.isArray(n)){n.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,n)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),v(t))}return e.onSuccess(v(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(e){null!==n[e]&&t.setRequestHeader(e,n[e])}),t.send(r),{abort:function(){t.abort()}}}var $=+new Date,w=0;function k(){return"rc-upload-".concat($,"-").concat(++w)}var E=r(80334),x=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),l=t.toLowerCase(),a=[l];return(".jpg"===l||".jpeg"===l)&&(a=[".jpg",".jpeg"]),a.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,E.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var n=function e(n,o){if(n.path=o||"",n.isFile)n.file(function(e){r(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(n.isDirectory){var i,l,a;i=function(t){t.forEach(function(t){e(t,"".concat(o).concat(n.name,"/"))})},l=n.createReader(),a=[],function e(){l.readEntries(function(t){var r=Array.prototype.slice.apply(t);a=a.concat(r),r.length?e():i(a)})}()}};e.forEach(function(e){n(e.webkitGetAsEntry())})},S=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],O=function(e){(0,u.Z)(r,e);var t=(0,d.Z)(r);function r(){(0,s.Z)(this,r);for(var e,n,i=arguments.length,l=Array(i),a=0;a{let{uid:r}=t;return r===e.uid});return -1===n?r.push(e):r[n]=e,r}function J(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],n=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:i}=o,l=200,a=200,s=0,c=0;e>i?c=-((a=i*(200/e))-l)/2:s=-((l=e*(200/i))-a)/2,n.drawImage(o,s,c,l,a);let u=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var er=r(48689),en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},eo=n.forwardRef(function(e,t){return n.createElement(A.Z,(0,a.Z)({},e,{ref:t,icon:en}))}),ei=r(99611),el=r(89739),ea=r(63606),es=r(4340),ec=r(97937),eu=r(98423),ed=r(1413),ep={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ef=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)(null);return(0,n.useEffect)(function(){var r=Date.now(),n=!1;e.current.forEach(function(e){if(e){n=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(o.transitionDuration="0s, 0s")}}),n&&(t.current=Date.now())}),e.current},em=r(97685),eg=r(98924),eh=0,eb=(0,eg.Z)(),ev=function(e){var t=n.useState(),r=(0,em.Z)(t,2),o=r[0],i=r[1];return n.useEffect(function(){var e;i("rc_progress_".concat((eb?(e=eh,eh+=1):e="TEST_OR_SSR",e)))},[]),e||o},ey=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function e$(e){return+e.replace("%","")}function ew(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var ek=function(e,t,r,n,o,i,l,a,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-n)/100*t;return"round"===s&&100!==n&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof a?a:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+r/100*360*((360-i)/360)+(0===i?0:({bottom:0,top:180,left:90,right:-90})[l]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eE=function(e){var t,r,o,i,s=(0,ed.Z)((0,ed.Z)({},ep),e),c=s.id,u=s.prefixCls,d=s.steps,p=s.strokeWidth,m=s.trailWidth,h=s.gapDegree,b=void 0===h?0:h,v=s.gapPosition,y=s.trailColor,$=s.strokeLinecap,w=s.style,k=s.className,E=s.strokeColor,x=s.percent,C=(0,f.Z)(s,ey),S=ev(c),O="".concat(S,"-gradient"),j=50-p/2,D=2*Math.PI*j,Z=b>0?90+b/2:-90,I=D*((360-b)/360),R="object"===(0,g.Z)(d)?d:{count:d,space:2},N=R.count,P=R.space,F=ek(D,I,0,100,Z,b,v,y,$,p),M=ew(x),A=ew(E),L=A.find(function(e){return e&&"object"===(0,g.Z)(e)}),z=ef();return n.createElement("svg",(0,a.Z)({className:l()("".concat(u,"-circle"),k),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:w,id:c,role:"presentation"},C),L&&n.createElement("defs",null,n.createElement("linearGradient",{id:O,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(L).sort(function(e,t){return e$(e)-e$(t)}).map(function(e,t){return n.createElement("stop",{key:t,offset:e,stopColor:L[e]})}))),!N&&n.createElement("circle",{className:"".concat(u,"-circle-trail"),r:j,cx:0,cy:0,stroke:y,strokeLinecap:$,strokeWidth:m||p,style:F}),N?(t=Math.round(N*(M[0]/100)),r=100/N,o=0,Array(N).fill(null).map(function(e,i){var l=i<=t-1?A[0]:y,a=l&&"object"===(0,g.Z)(l)?"url(#".concat(O,")"):void 0,s=ek(D,I,o,r,Z,b,v,l,"butt",p,P);return o+=(I-s.strokeDashoffset+P)*100/I,n.createElement("circle",{key:i,className:"".concat(u,"-circle-path"),r:j,cx:0,cy:0,stroke:a,strokeWidth:p,opacity:1,style:s,ref:function(e){z[i]=e}})})):(i=0,M.map(function(e,t){var r=A[t]||A[A.length-1],o=r&&"object"===(0,g.Z)(r)?"url(#".concat(O,")"):void 0,l=ek(D,I,i,e,Z,b,v,r,$,p);return i+=e,n.createElement("circle",{key:t,className:"".concat(u,"-circle-path"),r:j,cx:0,cy:0,stroke:o,strokeLinecap:$,strokeWidth:p,opacity:0===e?0:1,style:l,ref:function(e){z[t]=e}})}).reverse()))},ex=r(83062),eC=r(16397);function eS(e){return!e||e<0?0:e>100?100:e}function eO(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}let ej=e=>{let{percent:t,success:r,successPercent:n}=e,o=eS(eO({success:r,successPercent:n}));return[o,eS(eS(t)-o)]},eD=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:n}=t;return[n||eC.ez.green,r||null]},eZ=(e,t,r)=>{var n,o,i,l;let a=-1,s=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return[a,s]},eI=e=>3/e*100;var eR=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eZ(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eI(f),6));let h=n.useMemo(()=>a||0===a?a:"dashboard"===c?75:void 0,[a,c]),b=i||"dashboard"===c&&"bottom"||void 0,v="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=eD({success:d,strokeColor:e.strokeColor}),$=l()(`${t}-inner`,{[`${t}-circle-gradient`]:v}),w=n.createElement(eE,{percent:ej(e),strokeWidth:g,trailWidth:g,strokeColor:y,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:h,gapPosition:b});return n.createElement("div",{className:$,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?n.createElement(ex.Z,{title:u},n.createElement("span",null,w)):n.createElement(n.Fragment,null,w,u))},eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let eP=e=>{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eF=(e,t)=>{let{from:r=eC.ez.blue,to:n=eC.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,i=eN(e,["from","to","direction"]);if(0!==Object.keys(i).length){let e=eP(i);return{backgroundImage:`linear-gradient(${o}, ${e})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}};var eM=e=>{let{prefixCls:t,direction:r,percent:o,size:i,strokeWidth:l,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=a&&"string"!=typeof a?eF(a,r):{backgroundColor:a},f="square"===s||"butt"===s?0:void 0,m=null!=i?i:[-1,l||("small"===i?6:8)],[g,h]=eZ(m,"line",{strokeWidth:l}),b=Object.assign({width:`${eS(o)}%`,height:h,borderRadius:f},p),v=eO(e),y={width:`${eS(v)}%`,height:h,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return n.createElement(n.Fragment,null,n.createElement("div",{className:`${t}-outer`,style:{width:g<0?"100%":g,height:h}},n.createElement("div",{className:`${t}-inner`,style:{backgroundColor:u||void 0,borderRadius:f}},n.createElement("div",{className:`${t}-bg`,style:b}),void 0!==v?n.createElement("div",{className:`${t}-success-bg`,style:y}):null)),c)},eA=e=>{let{size:t,steps:r,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(r*(o/100)),p=null!=t?t:["small"===t?2:14,i],[f,m]=eZ(p,"step",{steps:r,strokeWidth:i}),g=f/r,h=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new eL.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},e_=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,ez.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:eX(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:eX(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eH=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eB=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eW=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eV=(0,eT.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eU.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[e_(r),eH(r),eB(r),eW(r)]}),eq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let eG=["normal","exception","active","success"],eK=n.forwardRef((e,t)=>{let r;let{prefixCls:o,className:i,rootClassName:a,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=eq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=n.useMemo(()=>{var t,r;let n=eO(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=u?u:0)||void 0===r?void 0:r.toString(),10)},[u,e.success,e.successPercent]),y=n.useMemo(()=>!eG.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:$,direction:w,progress:k}=n.useContext(R.E_),E=$("progress",o),[x,C]=eV(E),S=n.useMemo(()=>{let t;if(!p)return null;let r=eO(e),o=g||(e=>`${e}%`),i="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eS(u),eS(r)):"exception"===y?t=i?n.createElement(es.Z,null):n.createElement(ec.Z,null):"success"===y&&(t=i?n.createElement(el.Z,null):n.createElement(ea.Z,null)),n.createElement("span",{className:`${E}-text`,title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,E,g]),O=Array.isArray(c)?c[0]:c,j="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?r=s?n.createElement(eA,Object.assign({},e,{strokeColor:j,prefixCls:E,steps:s}),S):n.createElement(eM,Object.assign({},e,{strokeColor:O,prefixCls:E,direction:w}),S):("circle"===f||"dashboard"===f)&&(r=n.createElement(eR,Object.assign({},e,{strokeColor:O,prefixCls:E,progressStatus:y}),S));let D=l()(E,`${E}-status-${y}`,`${E}-${"dashboard"===f&&"circle"||s&&"steps"||f}`,{[`${E}-inline-circle`]:"circle"===f&&eZ(d,"circle")[0]<=20,[`${E}-show-info`]:p,[`${E}-${d}`]:"string"==typeof d,[`${E}-rtl`]:"rtl"===w},null==k?void 0:k.className,i,a,C);return x(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==k?void 0:k.style),h),className:D,role:"progressbar","aria-valuenow":v},(0,eu.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eJ=n.forwardRef((e,t)=>{var r,o;let{prefixCls:i,className:a,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:$,previewIcon:w,removeIcon:k,downloadIcon:E,onPreview:x,onDownload:C,onClose:S}=e,{status:O}=d,[j,D]=n.useState(O);n.useEffect(()=>{"removed"!==O&&D(O)},[O]);let[Z,I]=n.useState(!1);n.useEffect(()=>{let e=setTimeout(()=>{I(!0)},300);return()=>{clearTimeout(e)}},[]);let N=m(d),P=n.createElement("div",{className:`${i}-icon`},N);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==j&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?n.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:`${i}-list-item-image`,crossOrigin:d.crossOrigin}):N,t=l()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:b&&!b(d)});P=n.createElement("a",{className:t,onClick:e=>x(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:"uploading"!==j});P=n.createElement("div",{className:e},N)}}let F=l()(`${i}-list-item`,`${i}-list-item-${j}`),M="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,A=y?g(("function"==typeof k?k(d):k)||n.createElement(er.Z,null),()=>S(d),i,c.removeFile):null,L=$&&"done"===j?g(("function"==typeof E?E(d):E)||n.createElement(eo,null),()=>C(d),i,c.downloadFile):null,z="picture-card"!==u&&"picture-circle"!==u&&n.createElement("span",{key:"download-delete",className:l()(`${i}-list-item-actions`,{picture:"picture"===u})},L,A),T=l()(`${i}-list-item-name`),U=d.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:d.name},M,{href:d.url,onClick:e=>x(d,e)}),d.name),z]:[n.createElement("span",{key:"view",className:T,onClick:e=>x(d,e),title:d.name},d.name),z],X=v?n.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>x(d,e),title:c.previewFile},"function"==typeof w?w(d):w||n.createElement(ei.Z,null)):null,_=("picture-card"===u||"picture-circle"===u)&&"uploading"!==j&&n.createElement("span",{className:`${i}-list-item-actions`},X,"done"===j&&L,A),{getPrefixCls:B}=n.useContext(R.E_),W=B(),V=n.createElement("div",{className:F},P,U,_,Z&&n.createElement(H.ZP,{motionName:`${W}-fade`,visible:"uploading"===j,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in d?n.createElement(eK,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return n.createElement("div",{className:l()(`${i}-list-item-progress`,t)},r)})),q=d.response&&"string"==typeof d.response?d.response:(null===(r=d.error)||void 0===r?void 0:r.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,G="error"===j?n.createElement(ex.Z,{title:q,getPopupContainer:e=>e.parentNode},V):V;return n.createElement("div",{className:l()(`${i}-list-item-container`,a),style:s,ref:t},h?h(G,d,p,{download:C.bind(null,d),preview:x.bind(null,d),remove:S.bind(null,d)}):G)}),eQ=n.forwardRef((e,t)=>{let{listType:r="text",previewFile:i=et,onPreview:a,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=ee,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:$,progress:w={size:[-1,2],showInfo:!1},appendAction:k,appendActionVisible:E=!0,itemRender:x,disabled:C}=e,S=(0,B.Z)(),[O,j]=n.useState(!1);n.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then(t=>{e.thumbUrl=t||"",S()}))})},[r,m,i]),n.useEffect(()=>{j(!0)},[]);let D=(e,t)=>{if(a)return null==t||t.preventDefault(),a(e)},Z=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},I=e=>{null==c||c(e)},N=e=>{if(d)return d(e,r);let t="uploading"===e.status,o=p&&p(e)?n.createElement(_,null):n.createElement(L,null),i=t?n.createElement(z.Z,null):n.createElement(U,null);return"picture"===r?i=t?n.createElement(z.Z,null):o:("picture-card"===r||"picture-circle"===r)&&(i=t?u.uploading:o),i},P=(e,t,r,o)=>{let i={type:"text",size:"small",title:o,onClick:r=>{t(),(0,V.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,V.l$)(e)){let t=(0,V.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return n.createElement(q.ZP,Object.assign({},i,{icon:t}))}return n.createElement(q.ZP,Object.assign({},i),n.createElement("span",null,e))};n.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:Z}));let{getPrefixCls:F}=n.useContext(R.E_),M=F("upload",f),A=F(),T=l()(`${M}-list`,`${M}-list-${r}`),X=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),G="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",K={motionDeadline:2e3,motionName:`${M}-${G}`,keys:X,motionAppear:O},J=n.useMemo(()=>{let e=Object.assign({},(0,W.Z)(A));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[A]);return"picture-card"!==r&&"picture-circle"!==r&&(K=Object.assign(Object.assign({},J),K)),n.createElement("div",{className:T},n.createElement(H.V4,Object.assign({},K,{component:!1}),e=>{let{key:t,file:o,className:i,style:l}=e;return n.createElement(eJ,{key:t,locale:u,prefixCls:M,className:i,style:l,file:o,items:m,progress:w,listType:r,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:$,iconRender:N,actionIconRender:P,itemRender:x,onPreview:D,onDownload:Z,onClose:I})}),k&&n.createElement(H.ZP,Object.assign({},K,{visible:E,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,V.Tm)(k,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var eY=r(33507),e0=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},e1=e=>{let{componentCls:t,antCls:r,iconCls:n,fontSize:o,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ez.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},ez.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${r}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${s}:focus, - &.picture ${s} - `]:{opacity:1},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${n}`]:{color:e.colorText}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${n}`]:{color:e.colorError},[a]:{[`${n}, ${n}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},e2=r(16932);let e3=new eL.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e6=new eL.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e4=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e3},[`${r}-leave`]:{animationName:e6}}},{[`${t}-wrapper`]:(0,e2.J$)(e)},e3,e6]},e8=r(10274);let e7=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[` - ${i}${i}-picture, - ${i}${i}-picture-card, - ${i}${i}-picture-circle - `]:{[l]:{position:"relative",height:n+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},ez.vS),{width:n,height:n,lineHeight:`${n+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${r}`]:{[`svg path[fill='${eC.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eC.iN.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},e9=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[` - ${t}-wrapper${t}-picture-card-wrapper, - ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,ez.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:n,margin:`0 ${e.marginXXS}px`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${l}-actions, ${l}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e8.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var e5=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let te=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,ez.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var tt=(0,eT.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightLG:i}=e,l=(0,eU.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*n)/2+o,uploadPicCardSize:2.55*i});return[te(l),e0(l),e7(l),e9(l),e1(l),e4(l),e5(l),(0,eY.Z)(l)]},e=>({actionsColor:e.colorTextDescription}));let tr=`__LIST_IGNORE_${Date.now()}__`,tn=n.forwardRef((e,t)=>{var r;let{fileList:i,defaultFileList:a,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:$,prefixCls:w,className:k,type:E="select",children:x,style:C,itemRender:S,maxCount:O,data:j={},multiple:M=!1,action:A="",accept:L="",supportServerRender:z=!0}=e,T=n.useContext(N.Z),U=null!=h?h:T,[X,_]=(0,Z.Z)(a||[],{value:i,postState:e=>null!=e?e:[]}),[H,B]=n.useState("drop"),W=n.useRef(null);n.useMemo(()=>{let e=Date.now();(i||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[i]);let V=(e,t,r)=>{let n=(0,o.Z)(t),i=!1;1===O?n=n.slice(-1):O&&(i=n.length>O,n=n.slice(0,O)),(0,I.flushSync)(()=>{_(n)});let l={file:e,fileList:n};r&&(l.event=r),(!i||n.some(t=>t.uid===e.uid))&&(0,I.flushSync)(()=>{null==f||f(l)})},q=e=>{let t=e.filter(e=>!e.file[tr]);if(!t.length)return;let r=t.map(e=>G(e.file)),n=(0,o.Z)(X);r.forEach(e=>{n=K(e,n)}),r.forEach((e,r)=>{let o=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,n)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!J(t,X))return;let n=G(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;let o=K(n,X);V(n,o)},Y=(e,t)=>{if(!J(t,X))return;let r=G(t);r.status="uploading",r.percent=e.percent;let n=K(r,X);V(r,n,e)},ee=(e,t,r)=>{if(!J(r,X))return;let n=G(r);n.error=e,n.response=t,n.status="error";let o=K(n,X);V(n,o)},et=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(r=>{var n;if(!1===r)return;let o=function(e,t){let r=void 0!==e.uid?"uid":"name",n=t.filter(t=>t[r]!==e[r]);return n.length===t.length?null:n}(e,X);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==X||X.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(n=W.current)||void 0===n||n.abort(t),V(t,o))})},er=e=>{B(e.type),"drop"===e.type&&(null==m||m(e))};n.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:Q,onProgress:Y,onError:ee,fileList:X,upload:W.current}));let{getPrefixCls:en,direction:eo,upload:ei}=n.useContext(R.E_),el=en("upload",w),ea=Object.assign(Object.assign({onBatchStart:q,onError:ee,onProgress:Y,onSuccess:Q},e),{data:j,multiple:M,action:A,accept:L,supportServerRender:z,prefixCls:el,disabled:U,beforeUpload:(t,r)=>{var n,o,i,l;return n=void 0,o=void 0,i=void 0,l=function*(){let{beforeUpload:n,transformFile:o}=e,i=t;if(n){let e=yield n(t,r);if(!1===e)return!1;if(delete t[tr],e===tr)return Object.defineProperty(t,tr,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i},new(i||(i=Promise))(function(e,t){function r(e){try{s(l.next(e))}catch(e){t(e)}}function a(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(r,a)}s((l=l.apply(n,o||[])).next())})},onChange:void 0});delete ea.className,delete ea.style,(!x||U)&&delete ea.id;let[es,ec]=tt(el),[eu]=(0,P.Z)("Upload",F.Z.Upload),{showRemoveIcon:ed,showPreviewIcon:ep,showDownloadIcon:ef,removeIcon:em,previewIcon:eg,downloadIcon:eh}="boolean"==typeof c?{}:c,eb=(e,t)=>c?n.createElement(eQ,{prefixCls:el,listType:u,items:X,previewFile:g,onPreview:d,onDownload:p,onRemove:et,showRemoveIcon:!U&&ed,showPreviewIcon:ep,showDownloadIcon:ef,removeIcon:em,previewIcon:eg,downloadIcon:eh,iconRender:v,locale:Object.assign(Object.assign({},eu),b),isImageUrl:y,progress:$,appendAction:e,appendActionVisible:t,itemRender:S,disabled:U}):e,ev=l()(`${el}-wrapper`,k,ec,null==ei?void 0:ei.className,{[`${el}-rtl`]:"rtl"===eo,[`${el}-picture-card-wrapper`]:"picture-card"===u,[`${el}-picture-circle-wrapper`]:"picture-circle"===u}),ey=Object.assign(Object.assign({},null==ei?void 0:ei.style),C);if("drag"===E){let e=l()(ec,el,`${el}-drag`,{[`${el}-drag-uploading`]:X.some(e=>"uploading"===e.status),[`${el}-drag-hover`]:"dragover"===H,[`${el}-disabled`]:U,[`${el}-rtl`]:"rtl"===eo});return es(n.createElement("span",{className:ev},n.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},n.createElement(D,Object.assign({},ea,{ref:W,className:`${el}-btn`}),n.createElement("div",{className:`${el}-drag-container`},x))),eb()))}let e$=l()(el,`${el}-select`,{[`${el}-disabled`]:U}),ew=(r=x?void 0:{display:"none"},n.createElement("div",{className:e$,style:r},n.createElement(D,Object.assign({},ea,{ref:W}))));return es("picture-card"===u||"picture-circle"===u?n.createElement("span",{className:ev},eb(ew,!!x)):n.createElement("span",{className:ev},ew,eb()))});var to=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ti=n.forwardRef((e,t)=>{var{style:r,height:o}=e,i=to(e,["style","height"]);return n.createElement(tn,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))});tn.Dragger=ti,tn.LIST_IGNORE=tr;var tl=tn}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/341-20a63c15c7f45eaf.js b/pilot/server/static/_next/static/chunks/341-20a63c15c7f45eaf.js new file mode 100644 index 000000000..4655bc2dc --- /dev/null +++ b/pilot/server/static/_next/static/chunks/341-20a63c15c7f45eaf.js @@ -0,0 +1,14 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{23430:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},l=r(84089),a=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},78385:function(e,t,r){r.d(t,{h:function(){return c}});var n=r(67294),o=r(73935),i=r(33703),l=r(73546),a=r(7960),s=r(85893);let c=n.forwardRef(function(e,t){let{children:r,container:c,disablePortal:u=!1}=e,[d,p]=n.useState(null),f=(0,i.Z)(n.isValidElement(r)?r.ref:null,t);return((0,l.Z)(()=>{!u&&p(("function"==typeof c?c():c)||document.body)},[c,u]),(0,l.Z)(()=>{if(d&&!u)return(0,a.Z)(t,d),()=>{(0,a.Z)(t,null)}},[t,d,u]),u)?n.isValidElement(r)?n.cloneElement(r,{ref:f}):(0,s.jsx)(n.Fragment,{children:r}):(0,s.jsx)(n.Fragment,{children:d?o.createPortal(r,d):d})})},70758:function(e,t,r){r.d(t,{U:function(){return s}});var n=r(87462),o=r(67294),i=r(99962),l=r(33703),a=r(30437);function s(e={}){let{disabled:t=!1,focusableWhenDisabled:r,href:s,rootRef:c,tabIndex:u,to:d,type:p}=e,f=o.useRef(),[m,g]=o.useState(!1),{isFocusVisibleRef:h,onFocus:b,onBlur:v,ref:y}=(0,i.Z)(),[$,w]=o.useState(!1);t&&!r&&$&&w(!1),o.useEffect(()=>{h.current=$},[$,h]);let[k,E]=o.useState(""),x=e=>t=>{var r;$&&t.preventDefault(),null==(r=e.onMouseLeave)||r.call(e,t)},C=e=>t=>{var r;v(t),!1===h.current&&w(!1),null==(r=e.onBlur)||r.call(e,t)},S=e=>t=>{var r,n;f.current||(f.current=t.currentTarget),b(t),!0===h.current&&(w(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(r=e.onFocus)||r.call(e,t)},O=()=>{let e=f.current;return"BUTTON"===k||"INPUT"===k&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===k&&(null==e?void 0:e.href)},j=e=>r=>{if(!t){var n;null==(n=e.onClick)||n.call(e,r)}},Z=e=>r=>{var n;t||(g(!0),document.addEventListener("mouseup",()=>{g(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,r)},D=e=>r=>{var n,o;null==(n=e.onKeyDown)||n.call(e,r),!r.defaultMuiPrevented&&(r.target!==r.currentTarget||O()||" "!==r.key||r.preventDefault(),r.target!==r.currentTarget||" "!==r.key||t||g(!0),r.target!==r.currentTarget||O()||"Enter"!==r.key||t||(null==(o=e.onClick)||o.call(e,r),r.preventDefault()))},I=e=>r=>{var n,o;r.target===r.currentTarget&&g(!1),null==(n=e.onKeyUp)||n.call(e,r),r.target!==r.currentTarget||O()||t||" "!==r.key||r.defaultMuiPrevented||null==(o=e.onClick)||o.call(e,r)},R=o.useCallback(e=>{var t;E(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),N=(0,l.Z)(R,c,y,f),P={};return void 0!==u&&(P.tabIndex=u),"BUTTON"===k?(P.type=null!=p?p:"button",r?P["aria-disabled"]=t:P.disabled=t):""!==k&&(s||d||(P.role="button",P.tabIndex=null!=u?u:0),t&&(P["aria-disabled"]=t,P.tabIndex=r?null!=u?u:0:-1)),{getRootProps:(t={})=>{let r=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),o=(0,n.Z)({type:p},r,P,t,{onBlur:C(r),onClick:j(r),onFocus:S(r),onKeyDown:D(r),onKeyUp:I(r),onMouseDown:Z(r),onMouseLeave:x(r),ref:N});return delete o.onFocusVisible,o},focusVisible:$,setFocusVisible:w,active:m,rootRef:N}}},76043:function(e,t,r){var n=r(67294);let o=n.createContext(void 0);t.Z=o},58859:function(e,t,r){r.d(t,{V:function(){return o}});var n=r(87462);let o=({theme:e,ownerState:t},r)=>{let o={};return t.sx&&(function t(r){if("function"==typeof r){let n=r(e);t(n)}else Array.isArray(r)?r.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof r&&(o=(0,n.Z)({},o,r))}(t.sx),r.forEach(t=>{let r=o[t];if("string"==typeof r||"number"==typeof r){if("borderRadius"===t){if("number"==typeof r)o[t]=`${r}px`;else{var n;o[t]=(null==(n=e.vars)?void 0:n.radius[r])||r}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof r?o[t]=e.spacing(r):o[t]=r}else"function"==typeof r?o[t]=r(e):o[t]=void 0})),o}},5930:function(e,t,r){r.d(t,{default:function(){return ti}});var n=r(67294),o=r(74902),i=r(94184),l=r.n(i),a=r(87462),s=r(15671),c=r(43144),u=r(32531),d=r(73568),p=r(4942),f=r(45987),m=r(74165),g=r(71002),h=r(15861),b=r(64217);function v(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var n=e.data[t];if(Array.isArray(n)){n.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,n)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),v(t))}return e.onSuccess(v(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(e){null!==n[e]&&t.setRequestHeader(e,n[e])}),t.send(r),{abort:function(){t.abort()}}}var $=+new Date,w=0;function k(){return"rc-upload-".concat($,"-").concat(++w)}var E=r(80334),x=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),l=t.toLowerCase(),a=[l];return(".jpg"===l||".jpeg"===l)&&(a=[".jpg",".jpeg"]),a.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,E.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var n=function e(n,o){if(n.path=o||"",n.isFile)n.file(function(e){r(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(n.isDirectory){var i,l,a;i=function(t){t.forEach(function(t){e(t,"".concat(o).concat(n.name,"/"))})},l=n.createReader(),a=[],function e(){l.readEntries(function(t){var r=Array.prototype.slice.apply(t);a=a.concat(r),r.length?e():i(a)})}()}};e.forEach(function(e){n(e.webkitGetAsEntry())})},S=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],O=function(e){(0,u.Z)(r,e);var t=(0,d.Z)(r);function r(){(0,s.Z)(this,r);for(var e,n,i=arguments.length,l=Array(i),a=0;a{let{uid:r}=t;return r===e.uid});return -1===n?r.push(e):r[n]=e,r}function J(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],n=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:i}=o,l=200,a=200,s=0,c=0;e>i?c=-((a=i*(200/e))-l)/2:s=-((l=e*(200/i))-a)/2,n.drawImage(o,s,c,l,a);let u=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var er=r(48689),en=r(23430),eo=r(99611),ei=r(89739),el=r(63606),ea=r(4340),es=r(97937),ec=r(98423),eu=r(1413),ed={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ep=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)(null);return(0,n.useEffect)(function(){var r=Date.now(),n=!1;e.current.forEach(function(e){if(e){n=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(o.transitionDuration="0s, 0s")}}),n&&(t.current=Date.now())}),e.current},ef=r(97685),em=r(98924),eg=0,eh=(0,em.Z)(),eb=function(e){var t=n.useState(),r=(0,ef.Z)(t,2),o=r[0],i=r[1];return n.useEffect(function(){var e;i("rc_progress_".concat((eh?(e=eg,eg+=1):e="TEST_OR_SSR",e)))},[]),e||o},ev=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ey(e){return+e.replace("%","")}function e$(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var ew=function(e,t,r,n,o,i,l,a,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-n)/100*t;return"round"===s&&100!==n&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof a?a:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+r/100*360*((360-i)/360)+(0===i?0:({bottom:0,top:180,left:90,right:-90})[l]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ek=function(e){var t,r,o,i,s=(0,eu.Z)((0,eu.Z)({},ed),e),c=s.id,u=s.prefixCls,d=s.steps,p=s.strokeWidth,m=s.trailWidth,h=s.gapDegree,b=void 0===h?0:h,v=s.gapPosition,y=s.trailColor,$=s.strokeLinecap,w=s.style,k=s.className,E=s.strokeColor,x=s.percent,C=(0,f.Z)(s,ev),S=eb(c),O="".concat(S,"-gradient"),j=50-p/2,Z=2*Math.PI*j,D=b>0?90+b/2:-90,I=Z*((360-b)/360),R="object"===(0,g.Z)(d)?d:{count:d,space:2},N=R.count,P=R.space,F=ew(Z,I,0,100,D,b,v,y,$,p),M=e$(x),A=e$(E),L=A.find(function(e){return e&&"object"===(0,g.Z)(e)}),z=ep();return n.createElement("svg",(0,a.Z)({className:l()("".concat(u,"-circle"),k),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:w,id:c,role:"presentation"},C),L&&n.createElement("defs",null,n.createElement("linearGradient",{id:O,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(L).sort(function(e,t){return ey(e)-ey(t)}).map(function(e,t){return n.createElement("stop",{key:t,offset:e,stopColor:L[e]})}))),!N&&n.createElement("circle",{className:"".concat(u,"-circle-trail"),r:j,cx:0,cy:0,stroke:y,strokeLinecap:$,strokeWidth:m||p,style:F}),N?(t=Math.round(N*(M[0]/100)),r=100/N,o=0,Array(N).fill(null).map(function(e,i){var l=i<=t-1?A[0]:y,a=l&&"object"===(0,g.Z)(l)?"url(#".concat(O,")"):void 0,s=ew(Z,I,o,r,D,b,v,l,"butt",p,P);return o+=(I-s.strokeDashoffset+P)*100/I,n.createElement("circle",{key:i,className:"".concat(u,"-circle-path"),r:j,cx:0,cy:0,stroke:a,strokeWidth:p,opacity:1,style:s,ref:function(e){z[i]=e}})})):(i=0,M.map(function(e,t){var r=A[t]||A[A.length-1],o=r&&"object"===(0,g.Z)(r)?"url(#".concat(O,")"):void 0,l=ew(Z,I,i,e,D,b,v,r,$,p);return i+=e,n.createElement("circle",{key:t,className:"".concat(u,"-circle-path"),r:j,cx:0,cy:0,stroke:o,strokeLinecap:$,strokeWidth:p,opacity:0===e?0:1,style:l,ref:function(e){z[t]=e}})}).reverse()))},eE=r(83062),ex=r(16397);function eC(e){return!e||e<0?0:e>100?100:e}function eS(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}let eO=e=>{let{percent:t,success:r,successPercent:n}=e,o=eC(eS({success:r,successPercent:n}));return[o,eC(eC(t)-o)]},ej=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:n}=t;return[n||ex.ez.green,r||null]},eZ=(e,t,r)=>{var n,o,i,l;let a=-1,s=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(a="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[a,s]=[e,e]:[a=14,s=8]=e,a*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[a,s]=[e,e]:[a=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[a,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[a,s]=[e,e]:(a=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,s=null!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return[a,s]},eD=e=>3/e*100;var eI=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eZ(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eD(f),6));let h=n.useMemo(()=>a||0===a?a:"dashboard"===c?75:void 0,[a,c]),b=i||"dashboard"===c&&"bottom"||void 0,v="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=ej({success:d,strokeColor:e.strokeColor}),$=l()(`${t}-inner`,{[`${t}-circle-gradient`]:v}),w=n.createElement(ek,{percent:eO(e),strokeWidth:g,trailWidth:g,strokeColor:y,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:h,gapPosition:b});return n.createElement("div",{className:$,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?n.createElement(eE.Z,{title:u},n.createElement("span",null,w)):n.createElement(n.Fragment,null,w,u))},eR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let eN=e=>{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eP=(e,t)=>{let{from:r=ex.ez.blue,to:n=ex.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,i=eR(e,["from","to","direction"]);if(0!==Object.keys(i).length){let e=eN(i);return{backgroundImage:`linear-gradient(${o}, ${e})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}};var eF=e=>{let{prefixCls:t,direction:r,percent:o,size:i,strokeWidth:l,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=a&&"string"!=typeof a?eP(a,r):{backgroundColor:a},f="square"===s||"butt"===s?0:void 0,m=null!=i?i:[-1,l||("small"===i?6:8)],[g,h]=eZ(m,"line",{strokeWidth:l}),b=Object.assign({width:`${eC(o)}%`,height:h,borderRadius:f},p),v=eS(e),y={width:`${eC(v)}%`,height:h,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return n.createElement(n.Fragment,null,n.createElement("div",{className:`${t}-outer`,style:{width:g<0?"100%":g,height:h}},n.createElement("div",{className:`${t}-inner`,style:{backgroundColor:u||void 0,borderRadius:f}},n.createElement("div",{className:`${t}-bg`,style:b}),void 0!==v?n.createElement("div",{className:`${t}-success-bg`,style:y}):null)),c)},eM=e=>{let{size:t,steps:r,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(r*(o/100)),p=null!=t?t:["small"===t?2:14,i],[f,m]=eZ(p,"step",{steps:r,strokeWidth:i}),g=f/r,h=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new eA.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eX=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,eL.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:eU(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:eU(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},e_=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eH=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eB=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eW=(0,ez.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eT.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eX(r),e_(r),eH(r),eB(r)]}),eV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let eq=["normal","exception","active","success"],eG=n.forwardRef((e,t)=>{let r;let{prefixCls:o,className:i,rootClassName:a,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=eV(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=n.useMemo(()=>{var t,r;let n=eS(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=u?u:0)||void 0===r?void 0:r.toString(),10)},[u,e.success,e.successPercent]),y=n.useMemo(()=>!eq.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:$,direction:w,progress:k}=n.useContext(R.E_),E=$("progress",o),[x,C]=eW(E),S=n.useMemo(()=>{let t;if(!p)return null;let r=eS(e),o=g||(e=>`${e}%`),i="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eC(u),eC(r)):"exception"===y?t=i?n.createElement(ea.Z,null):n.createElement(es.Z,null):"success"===y&&(t=i?n.createElement(ei.Z,null):n.createElement(el.Z,null)),n.createElement("span",{className:`${E}-text`,title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,E,g]),O=Array.isArray(c)?c[0]:c,j="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?r=s?n.createElement(eM,Object.assign({},e,{strokeColor:j,prefixCls:E,steps:s}),S):n.createElement(eF,Object.assign({},e,{strokeColor:O,prefixCls:E,direction:w}),S):("circle"===f||"dashboard"===f)&&(r=n.createElement(eI,Object.assign({},e,{strokeColor:O,prefixCls:E,progressStatus:y}),S));let Z=l()(E,`${E}-status-${y}`,`${E}-${"dashboard"===f&&"circle"||s&&"steps"||f}`,{[`${E}-inline-circle`]:"circle"===f&&eZ(d,"circle")[0]<=20,[`${E}-show-info`]:p,[`${E}-${d}`]:"string"==typeof d,[`${E}-rtl`]:"rtl"===w},null==k?void 0:k.className,i,a,C);return x(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==k?void 0:k.style),h),className:Z,role:"progressbar","aria-valuenow":v},(0,ec.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eK=n.forwardRef((e,t)=>{var r,o;let{prefixCls:i,className:a,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:$,previewIcon:w,removeIcon:k,downloadIcon:E,onPreview:x,onDownload:C,onClose:S}=e,{status:O}=d,[j,Z]=n.useState(O);n.useEffect(()=>{"removed"!==O&&Z(O)},[O]);let[D,I]=n.useState(!1);n.useEffect(()=>{let e=setTimeout(()=>{I(!0)},300);return()=>{clearTimeout(e)}},[]);let N=m(d),P=n.createElement("div",{className:`${i}-icon`},N);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==j&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?n.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:`${i}-list-item-image`,crossOrigin:d.crossOrigin}):N,t=l()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:b&&!b(d)});P=n.createElement("a",{className:t,onClick:e=>x(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:"uploading"!==j});P=n.createElement("div",{className:e},N)}}let F=l()(`${i}-list-item`,`${i}-list-item-${j}`),M="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,A=y?g(("function"==typeof k?k(d):k)||n.createElement(er.Z,null),()=>S(d),i,c.removeFile):null,L=$&&"done"===j?g(("function"==typeof E?E(d):E)||n.createElement(en.Z,null),()=>C(d),i,c.downloadFile):null,z="picture-card"!==u&&"picture-circle"!==u&&n.createElement("span",{key:"download-delete",className:l()(`${i}-list-item-actions`,{picture:"picture"===u})},L,A),T=l()(`${i}-list-item-name`),U=d.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:d.name},M,{href:d.url,onClick:e=>x(d,e)}),d.name),z]:[n.createElement("span",{key:"view",className:T,onClick:e=>x(d,e),title:d.name},d.name),z],X=v?n.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>x(d,e),title:c.previewFile},"function"==typeof w?w(d):w||n.createElement(eo.Z,null)):null,_=("picture-card"===u||"picture-circle"===u)&&"uploading"!==j&&n.createElement("span",{className:`${i}-list-item-actions`},X,"done"===j&&L,A),{getPrefixCls:B}=n.useContext(R.E_),W=B(),V=n.createElement("div",{className:F},P,U,_,D&&n.createElement(H.ZP,{motionName:`${W}-fade`,visible:"uploading"===j,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in d?n.createElement(eG,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return n.createElement("div",{className:l()(`${i}-list-item-progress`,t)},r)})),q=d.response&&"string"==typeof d.response?d.response:(null===(r=d.error)||void 0===r?void 0:r.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,G="error"===j?n.createElement(eE.Z,{title:q,getPopupContainer:e=>e.parentNode},V):V;return n.createElement("div",{className:l()(`${i}-list-item-container`,a),style:s,ref:t},h?h(G,d,p,{download:C.bind(null,d),preview:x.bind(null,d),remove:S.bind(null,d)}):G)}),eJ=n.forwardRef((e,t)=>{let{listType:r="text",previewFile:i=et,onPreview:a,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=ee,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:$,progress:w={size:[-1,2],showInfo:!1},appendAction:k,appendActionVisible:E=!0,itemRender:x,disabled:C}=e,S=(0,B.Z)(),[O,j]=n.useState(!1);n.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then(t=>{e.thumbUrl=t||"",S()}))})},[r,m,i]),n.useEffect(()=>{j(!0)},[]);let Z=(e,t)=>{if(a)return null==t||t.preventDefault(),a(e)},D=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},I=e=>{null==c||c(e)},N=e=>{if(d)return d(e,r);let t="uploading"===e.status,o=p&&p(e)?n.createElement(_,null):n.createElement(L,null),i=t?n.createElement(z.Z,null):n.createElement(U,null);return"picture"===r?i=t?n.createElement(z.Z,null):o:("picture-card"===r||"picture-circle"===r)&&(i=t?u.uploading:o),i},P=(e,t,r,o)=>{let i={type:"text",size:"small",title:o,onClick:r=>{t(),(0,V.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,V.l$)(e)){let t=(0,V.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return n.createElement(q.ZP,Object.assign({},i,{icon:t}))}return n.createElement(q.ZP,Object.assign({},i),n.createElement("span",null,e))};n.useImperativeHandle(t,()=>({handlePreview:Z,handleDownload:D}));let{getPrefixCls:F}=n.useContext(R.E_),M=F("upload",f),A=F(),T=l()(`${M}-list`,`${M}-list-${r}`),X=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),G="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",K={motionDeadline:2e3,motionName:`${M}-${G}`,keys:X,motionAppear:O},J=n.useMemo(()=>{let e=Object.assign({},(0,W.Z)(A));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[A]);return"picture-card"!==r&&"picture-circle"!==r&&(K=Object.assign(Object.assign({},J),K)),n.createElement("div",{className:T},n.createElement(H.V4,Object.assign({},K,{component:!1}),e=>{let{key:t,file:o,className:i,style:l}=e;return n.createElement(eK,{key:t,locale:u,prefixCls:M,className:i,style:l,file:o,items:m,progress:w,listType:r,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:$,iconRender:N,actionIconRender:P,itemRender:x,onPreview:Z,onDownload:D,onClose:I})}),k&&n.createElement(H.ZP,Object.assign({},K,{visible:E,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,V.Tm)(k,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var eQ=r(33507),eY=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},e0=e=>{let{componentCls:t,antCls:r,iconCls:n,fontSize:o,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,eL.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},eL.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${r}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${s}:focus, + &.picture ${s} + `]:{opacity:1},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${n}`]:{color:e.colorText}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${n}`]:{color:e.colorError},[a]:{[`${n}, ${n}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},e1=r(16932);let e2=new eA.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e3=new eA.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e6=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e2},[`${r}-leave`]:{animationName:e3}}},{[`${t}-wrapper`]:(0,e1.J$)(e)},e2,e3]},e4=r(10274);let e8=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[` + ${i}${i}-picture, + ${i}${i}-picture-card, + ${i}${i}-picture-circle + `]:{[l]:{position:"relative",height:n+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},eL.vS),{width:n,height:n,lineHeight:`${n+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${r}`]:{[`svg path[fill='${ex.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ex.iN.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},e7=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,eL.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:n,margin:`0 ${e.marginXXS}px`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${l}-actions, ${l}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e4.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var e9=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let e5=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,eL.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var te=(0,ez.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightLG:i}=e,l=(0,eT.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*n)/2+o,uploadPicCardSize:2.55*i});return[e5(l),eY(l),e8(l),e7(l),e0(l),e6(l),e9(l),(0,eQ.Z)(l)]},e=>({actionsColor:e.colorTextDescription}));let tt=`__LIST_IGNORE_${Date.now()}__`,tr=n.forwardRef((e,t)=>{var r;let{fileList:i,defaultFileList:a,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:$,prefixCls:w,className:k,type:E="select",children:x,style:C,itemRender:S,maxCount:O,data:j={},multiple:M=!1,action:A="",accept:L="",supportServerRender:z=!0}=e,T=n.useContext(N.Z),U=null!=h?h:T,[X,_]=(0,D.Z)(a||[],{value:i,postState:e=>null!=e?e:[]}),[H,B]=n.useState("drop"),W=n.useRef(null);n.useMemo(()=>{let e=Date.now();(i||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[i]);let V=(e,t,r)=>{let n=(0,o.Z)(t),i=!1;1===O?n=n.slice(-1):O&&(i=n.length>O,n=n.slice(0,O)),(0,I.flushSync)(()=>{_(n)});let l={file:e,fileList:n};r&&(l.event=r),(!i||n.some(t=>t.uid===e.uid))&&(0,I.flushSync)(()=>{null==f||f(l)})},q=e=>{let t=e.filter(e=>!e.file[tt]);if(!t.length)return;let r=t.map(e=>G(e.file)),n=(0,o.Z)(X);r.forEach(e=>{n=K(e,n)}),r.forEach((e,r)=>{let o=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,n)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!J(t,X))return;let n=G(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;let o=K(n,X);V(n,o)},Y=(e,t)=>{if(!J(t,X))return;let r=G(t);r.status="uploading",r.percent=e.percent;let n=K(r,X);V(r,n,e)},ee=(e,t,r)=>{if(!J(r,X))return;let n=G(r);n.error=e,n.response=t,n.status="error";let o=K(n,X);V(n,o)},et=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(r=>{var n;if(!1===r)return;let o=function(e,t){let r=void 0!==e.uid?"uid":"name",n=t.filter(t=>t[r]!==e[r]);return n.length===t.length?null:n}(e,X);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==X||X.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(n=W.current)||void 0===n||n.abort(t),V(t,o))})},er=e=>{B(e.type),"drop"===e.type&&(null==m||m(e))};n.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:Q,onProgress:Y,onError:ee,fileList:X,upload:W.current}));let{getPrefixCls:en,direction:eo,upload:ei}=n.useContext(R.E_),el=en("upload",w),ea=Object.assign(Object.assign({onBatchStart:q,onError:ee,onProgress:Y,onSuccess:Q},e),{data:j,multiple:M,action:A,accept:L,supportServerRender:z,prefixCls:el,disabled:U,beforeUpload:(t,r)=>{var n,o,i,l;return n=void 0,o=void 0,i=void 0,l=function*(){let{beforeUpload:n,transformFile:o}=e,i=t;if(n){let e=yield n(t,r);if(!1===e)return!1;if(delete t[tt],e===tt)return Object.defineProperty(t,tt,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i},new(i||(i=Promise))(function(e,t){function r(e){try{s(l.next(e))}catch(e){t(e)}}function a(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(r,a)}s((l=l.apply(n,o||[])).next())})},onChange:void 0});delete ea.className,delete ea.style,(!x||U)&&delete ea.id;let[es,ec]=te(el),[eu]=(0,P.Z)("Upload",F.Z.Upload),{showRemoveIcon:ed,showPreviewIcon:ep,showDownloadIcon:ef,removeIcon:em,previewIcon:eg,downloadIcon:eh}="boolean"==typeof c?{}:c,eb=(e,t)=>c?n.createElement(eJ,{prefixCls:el,listType:u,items:X,previewFile:g,onPreview:d,onDownload:p,onRemove:et,showRemoveIcon:!U&&ed,showPreviewIcon:ep,showDownloadIcon:ef,removeIcon:em,previewIcon:eg,downloadIcon:eh,iconRender:v,locale:Object.assign(Object.assign({},eu),b),isImageUrl:y,progress:$,appendAction:e,appendActionVisible:t,itemRender:S,disabled:U}):e,ev=l()(`${el}-wrapper`,k,ec,null==ei?void 0:ei.className,{[`${el}-rtl`]:"rtl"===eo,[`${el}-picture-card-wrapper`]:"picture-card"===u,[`${el}-picture-circle-wrapper`]:"picture-circle"===u}),ey=Object.assign(Object.assign({},null==ei?void 0:ei.style),C);if("drag"===E){let e=l()(ec,el,`${el}-drag`,{[`${el}-drag-uploading`]:X.some(e=>"uploading"===e.status),[`${el}-drag-hover`]:"dragover"===H,[`${el}-disabled`]:U,[`${el}-rtl`]:"rtl"===eo});return es(n.createElement("span",{className:ev},n.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},n.createElement(Z,Object.assign({},ea,{ref:W,className:`${el}-btn`}),n.createElement("div",{className:`${el}-drag-container`},x))),eb()))}let e$=l()(el,`${el}-select`,{[`${el}-disabled`]:U}),ew=(r=x?void 0:{display:"none"},n.createElement("div",{className:e$,style:r},n.createElement(Z,Object.assign({},ea,{ref:W}))));return es("picture-card"===u||"picture-circle"===u?n.createElement("span",{className:ev},eb(ew,!!x)):n.createElement("span",{className:ev},ew,eb()))});var tn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let to=n.forwardRef((e,t)=>{var{style:r,height:o}=e,i=tn(e,["style","height"]);return n.createElement(tr,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))});tr.Dragger=to,tr.LIST_IGNORE=tt;var ti=tr}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/347-4d8f7092e4bdfdfb.js b/pilot/server/static/_next/static/chunks/347-4d8f7092e4bdfdfb.js new file mode 100644 index 000000000..d3fc7ed55 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/347-4d8f7092e4bdfdfb.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{68795:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(87462),i=r(67294),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=r(84089),l=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:n}))})},9708:function(e,t,r){r.d(t,{F:function(){return a},Z:function(){return n}});var o=r(94184),i=r.n(o);function n(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},32983:function(e,t,r){r.d(t,{Z:function(){return m}});var o=r(94184),i=r.n(o),n=r(67294),a=r(53124),l=r(10110),d=r(10274),s=r(25976),c=r(67968),u=r(45503);let p=e=>{let{componentCls:t,margin:r,marginXS:o,marginXL:i,fontSize:n,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:n,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var g=(0,c.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,o=(0,u.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[p(o)]}),h=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);it.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r};let b=n.createElement(()=>{let[,e]=(0,s.Z)(),t=new d.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),$=n.createElement(()=>{let[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,n.useMemo)(()=>({borderColor:new d.C(t).onBackground(i).toHexShortString(),shadowColor:new d.C(r).onBackground(i).toHexShortString(),contentColor:new d.C(o).onBackground(i).toHexShortString()}),[t,r,o,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:a},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),f=e=>{var{className:t,rootClassName:r,prefixCls:o,image:d=b,description:s,children:c,imageStyle:u,style:p}=e,f=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:m,direction:x,empty:S}=n.useContext(a.E_),E=m("empty",o),[v,w]=g(E),[y]=(0,l.Z)("Empty"),R=void 0!==s?s:null==y?void 0:y.description,H="string"==typeof R?R:"empty",I=null;return I="string"==typeof d?n.createElement("img",{alt:H,src:d}):d,v(n.createElement("div",Object.assign({className:i()(w,E,null==S?void 0:S.className,{[`${E}-normal`]:d===$,[`${E}-rtl`]:"rtl"===x},t,r),style:Object.assign(Object.assign({},null==S?void 0:S.style),p)},f),n.createElement("div",{className:`${E}-image`,style:u},I),R&&n.createElement("div",{className:`${E}-description`},R),c&&n.createElement("div",{className:`${E}-footer`},c)))};f.PRESENTED_IMAGE_DEFAULT=b,f.PRESENTED_IMAGE_SIMPLE=$;var m=f},47673:function(e,t,r){r.d(t,{M1:function(){return s},Xy:function(){return c},bi:function(){return g},e5:function(){return E},ik:function(){return h},nz:function(){return l},pU:function(){return d},s7:function(){return b},x0:function(){return p}});var o=r(14747),i=r(80110),n=r(45503),a=r(67968);let l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),s=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),c=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},d((0,n.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),u=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:o,borderRadiusLG:i,inputPaddingHorizontalLG:n}=e;return{padding:`${t}px ${n}px`,fontSize:r,lineHeight:o,borderRadius:i}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),g=(e,t)=>{let{componentCls:r,colorError:o,colorWarning:i,colorErrorOutline:a,colorWarningOutline:l,colorErrorBorderHover:d,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:d},"&:focus, &-focused":Object.assign({},s((0,n.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},s((0,n.TS)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},h=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},d(e)),"&:focus, &-focused":Object.assign({},s(e)),"&-disabled, &[disabled]":Object.assign({},c(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),b=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},$=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:i}=e,n=(r-2*i-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),h(e)),g(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:n,paddingBottom:n}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},f=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},m=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:o,motionDurationSlow:i,colorIcon:n,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},d(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),f(e)),{[`${l}${t}-password-icon`]:{color:n,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),g(e,`${t}-affix-wrapper`))}},x=e=>{let{componentCls:t,colorError:r,colorWarning:i,borderRadiusLG:n,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),b(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon`]:{color:i,borderColor:i}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},c(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},S=e=>{let{componentCls:t,antCls:r}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function E(e){return(0,n.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let v=e=>{let{componentCls:t,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,a.Z)("Input",e=>{let t=E(e);return[$(t),v(t),m(t),x(t),S(t),(0,i.c)(t)]})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/369.095d8bbc2947f5d3.js b/pilot/server/static/_next/static/chunks/369.095d8bbc2947f5d3.js new file mode 100644 index 000000000..770953caf --- /dev/null +++ b/pilot/server/static/_next/static/chunks/369.095d8bbc2947f5d3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[369],{39156:function(e,l,a){"use strict";a.d(l,{Z:function(){return p}});var n=a(85893),t=a(41118),r=a(30208),c=a(40911),s=a(75227),i=a(67294);function o(e){let{chart:l}=e,a=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{a.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new s.sg(a.current,{data:l.values,xField:"name",yField:"value",seriesField:"type",legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[l.values]),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:l.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:l.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",ref:a})]})})})}function d(e){let{chart:l}=e,a=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{a.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new s.x1(a.current,{data:l.values,xField:"name",yField:"value",seriesField:"type",smooth:!0,area:{style:{fillOpacity:.15}},legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[l.values]),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:l.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:l.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",ref:a})]})})})}var u=a(61685),m=a(96486);function h(e){var l,a;let{chart:s}=e,i=(0,m.groupBy)(s.values,"type");return(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:s.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:s.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(u.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.map((e,l)=>{var a;return(0,n.jsx)("tr",{children:null===(a=Object.keys(i))||void 0===a?void 0:a.map(e=>{var a;return(0,n.jsx)("td",{children:(null==i?void 0:null===(a=i[e])||void 0===a?void 0:a[l].value)||""},e)})},l)})})]})})]})})})}var p=function(e){let{chartsData:l}=e,a=(0,i.useMemo)(()=>{if(l){let e=[],a=null==l?void 0:l.filter(e=>"IndicatorValue"===e.chart_type);a.length>0&&e.push({charts:a,type:"IndicatorValue"});let n=null==l?void 0:l.filter(e=>"IndicatorValue"!==e.chart_type),t=n.length,r=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][t].forEach(l=>{if(l>0){let a=n.slice(r,r+l);r+=l,e.push({charts:a})}}),e}},[l]);return(0,n.jsx)("div",{className:"flex flex-col gap-3",children:null==a?void 0:a.map((e,l)=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(t.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"justify-around",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(c.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,n.jsx)(d,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,n.jsx)(o,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,n.jsx)(h,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(l)))})}},9837:function(e,l,a){"use strict";a.d(l,{Z:function(){return k}});var n=a(85893),t=a(67294),r=a(2453),c=a(83062),s=a(5930),i=a(71577),o=a(49591),d=a(88484),u=a(29158),m=a(50489),h=a(41468),p=function(e){var l;let{convUid:a,chatMode:p,onComplete:x,...g}=e,[b,v]=(0,t.useState)(!1),[f,j]=r.ZP.useMessage(),[y,w]=(0,t.useState)([]),[_,Z]=(0,t.useState)(),{model:N}=(0,t.useContext)(h.p),P=async e=>{var l;if(!e){r.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(l=e.file.name)&&void 0!==l?l:"")){r.ZP.error("File type must be csv, xlsx or xls");return}w([e.file])},C=async()=>{v(!0);try{let e=new FormData;e.append("doc_file",y[0]),f.open({content:"Uploading ".concat(y[0].name),type:"loading",duration:0});let[l]=await (0,m.Vx)((0,m.qn)({convUid:a,chatMode:p,data:e,model:N,config:{timeout:36e5,onUploadProgress:e=>{let l=Math.ceil(e.loaded/(e.total||0)*100);Z(l)}}}));if(l)return;r.ZP.success("success"),null==x||x()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{v(!1),f.destroy()}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[j,(0,n.jsx)(c.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,n.jsx)(s.default,{disabled:b,className:"mr-1",beforeUpload:()=>!1,fileList:y,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:P,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,n.jsx)(n.Fragment,{}),...g,children:(0,n.jsx)(i.ZP,{className:"flex justify-center items-center",type:"primary",disabled:b,icon:(0,n.jsx)(o.Z,{}),children:"Select File"})})}),(0,n.jsx)(i.ZP,{type:"primary",loading:b,className:"flex justify-center items-center",disabled:!y.length,icon:(0,n.jsx)(d.Z,{}),onClick:C,children:b?100===_?"Analysis":"Uploading":"Upload"}),!!y.length&&(0,n.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,n.jsx)(u.Z,{className:"mr-2"}),(0,n.jsx)("span",{children:null===(l=y[0])||void 0===l?void 0:l.name})]})]})})},x=function(e){let{onComplete:l}=e,{currentDialogue:a,scene:r,chatId:c}=(0,t.useContext)(h.p);return"chat_excel"!==r?null:(0,n.jsx)("div",{className:"max-w-md h-full relative",children:a?(0,n.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,n.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,n.jsx)(u.Z,{className:"text-white"})}),(0,n.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:a.select_param})]}):(0,n.jsx)(p,{convUid:c,chatMode:r,onComplete:l})})};a(23293);var g=a(78045),b=a(16165),v=a(96991),f=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})};function j(){let{isContract:e,setIsContract:l,scene:a}=(0,t.useContext)(h.p),r=a&&["chat_with_db_execute","chat_dashboard"].includes(a);return r?(0,n.jsxs)(g.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{l(!e)},children:[(0,n.jsxs)(g.ZP.Button,{value:!1,children:[(0,n.jsx)(b.Z,{component:f,className:"mr-1"}),"Preview"]}),(0,n.jsxs)(g.ZP.Button,{value:!0,children:[(0,n.jsx)(v.Z,{className:"mr-1"}),"Editor"]})]}):null}var y=a(48567),w=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4870",children:(0,n.jsx)("path",{d:"M511.875 128.125c-211.875 0-383.75 76.25-383.75 170.625 0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625C896.25 204.375 724.375 128.125 511.875 128.125M128.125 383.75l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 555 128.125 478.125 128.125 383.75M128.125 597.5l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 768.125 128.125 691.875 128.125 597.5z","p-id":"4871"})})},_=a(2093),Z=a(51009),N=function(){let{scene:e,dbParam:l,setDbParam:a}=(0,t.useContext)(h.p),[r,c]=(0,t.useState)({});(0,_.Z)(async()=>{let[,l]=await (0,m.Vx)((0,m.vD)(e));c(null!=l?l:{})},[e]);let s=(0,t.useMemo)(()=>Object.entries(r).map(e=>{let[l,a]=e;return{label:l,value:a}}),[r]);return((0,t.useEffect)(()=>{s.length&&a(s[0].value)},[s]),s.length)?(0,n.jsx)(Z.default,{value:l,className:"w-36",onChange:e=>{a(e)},children:s.map(e=>(0,n.jsxs)(Z.default.Option,{children:[(0,n.jsx)(b.Z,{component:w,className:"mr-1"}),e.label]},e.value))}):null},P=a(577),C=a(67421),B=function(){let{t:e}=(0,C.$G)(),{agentList:l,setAgentList:a}=(0,t.useContext)(h.p),{data:r=[]}=(0,P.Z)(async()=>{let[,e]=await (0,m.Vx)((0,m.N6)());return e&&e.length&&(null==a||a([e[0].name])),null!=e?e:[]});return r.length?(0,n.jsx)(Z.default,{className:"w-60",value:l,mode:"multiple",maxTagCount:1,maxTagTextLength:12,placeholder:e("Select_Plugins"),options:r.map(e=>({label:e.name,value:e.name})),allowClear:!0,onChange:e=>{null==a||a(e)}}):null},k=function(e){let{refreshHistory:l,modelChange:a}=e,{scene:r,refreshDialogList:c}=(0,t.useContext)(h.p);return(0,n.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,n.jsx)(y.Z,{onChange:a}),(0,n.jsx)(N,{}),"chat_excel"===r&&(0,n.jsx)(x,{onComplete:()=>{null==c||c(),null==l||l()}}),"chat_agent"===r&&(0,n.jsx)(B,{}),(0,n.jsx)(j,{})]})}},48567:function(e,l,a){"use strict";a.d(l,{Z:function(){return m},A:function(){return u}});var n=a(85893),t=a(41468),r=a(51009);let c={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"}};var s=a(25675),i=a.n(s),o=a(67294),d=a(67421);function u(e,l){var a;let{width:t,height:r}=l||{};return e?(0,n.jsx)(i(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:t||24,height:r||24,src:(null===(a=c[e])||void 0===a?void 0:a.icon)||"/models/huggingface.svg",alt:"llm"}):null}var m=function(e){let{onChange:l}=e,{t:a}=(0,d.$G)(),{modelList:s,model:i}=(0,o.useContext)(t.p);return!s||s.length<=0?null:(0,n.jsx)(r.default,{value:i,placeholder:a("choose_model"),className:"w-52",onChange:e=>{null==l||l(e)},children:s.map(e=>{var l;return(0,n.jsx)(r.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[u(e),(0,n.jsx)("span",{className:"ml-2",children:(null===(l=c[e])||void 0===l?void 0:l.label)||e})]})},e)})})}},99513:function(e,l,a){"use strict";a.d(l,{Z:function(){return d}});var n=a(85893),t=a(77119),r=a(63764),c=a(94184),s=a.n(c),i=a(67294),o=a(36782);function d(e){let{className:l,value:a,language:t="mysql",onChange:c,thoughts:d}=e,u=(0,i.useMemo)(()=>"mysql"!==t?a:d&&d.length>0?(0,o.WU)("-- ".concat(d," \n").concat(a)):(0,o.WU)(a),[a,d]);return(0,n.jsx)(r.ZP,{className:s()(l),value:u,language:t,onChange:c,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}r._m.config({monaco:t})},30119:function(e,l,a){"use strict";a.d(l,{Tk:function(){return i},PR:function(){return o},Ej:function(){return d}});var n=a(2453),t=a(6154),r=a(83454);let c=t.Z.create({baseURL:r.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),a(96486);let s={"content-type":"application/json"},i=(e,l)=>{if(l){let a=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");a&&(e+="?".concat(a))}return c.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},o=(e,l)=>c.post(e,l,{headers:s}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),d=(e,l)=>c.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/440.860aec451cb1bbb3.js b/pilot/server/static/_next/static/chunks/440.470aefcae0208f7c.js similarity index 99% rename from pilot/server/static/_next/static/chunks/440.860aec451cb1bbb3.js rename to pilot/server/static/_next/static/chunks/440.470aefcae0208f7c.js index 3b96e78d6..4cbcb5c51 100644 --- a/pilot/server/static/_next/static/chunks/440.860aec451cb1bbb3.js +++ b/pilot/server/static/_next/static/chunks/440.470aefcae0208f7c.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{27015:function(e,l,t){var o=t(64836);l.Z=void 0;var a=o(t(64938)),n=t(85893),r=(0,a.default)((0,n.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");l.Z=r},57838:function(e,l,t){t.d(l,{Z:function(){return a}});var o=t(67294);function a(){let[,e]=o.useReducer(e=>e+1,0);return e}},53913:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var o=t(85893),a=t(67294),n=t(577),r=t(61685),i=t(63366),d=t(87462),s=t(90512),u=t(14142),c=t(19032),v=t(92996),p=t(59948),h=t(99962),m=t(33703),f=t(94780),b=t(9572),x=t(74312),y=t(20407),g=t(30220),w=t(78653),T=t(26821);function S(e){return(0,T.d6)("MuiTooltip",e)}(0,T.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let j=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],Z=e=>{let{arrow:l,variant:t,color:o,size:a,placement:n,touch:r}=e,i={root:["root",l&&"tooltipArrow",r&&"touch",a&&`size${(0,u.Z)(a)}`,o&&`color${(0,u.Z)(o)}`,t&&`variant${(0,u.Z)(t)}`,`tooltipPlacement${(0,u.Z)(n.split("-")[0])}`],arrow:["arrow"]};return(0,f.Z)(i,S,{})},_=(0,x.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,l)=>l.root})(({ownerState:e,theme:l})=>{var t,o,a;let n=null==(t=l.variants[e.variant])?void 0:t[e.color];return(0,d.Z)({},"sm"===e.size&&{"--Icon-fontSize":l.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:l.spacing(.25,.625)},"md"===e.size&&{"--Icon-fontSize":l.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:l.spacing(.5,.75)},"lg"===e.size&&{"--Icon-fontSize":l.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:l.spacing(.75,1)},{zIndex:l.vars.zIndex.tooltip,borderRadius:l.vars.radius.sm,boxShadow:l.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},l.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[e.size]}`],n,!n.backgroundColor&&{backgroundColor:l.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(o=e.placement)&&o.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(a=e.placement)&&a.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,x.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,l)=>l.arrow})(({theme:e,ownerState:l})=>{var t,o,a;let n=null==(t=e.variants[l.variant])?void 0:t[l.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(o=null==n?void 0:n.backgroundColor)?o:e.vars.palette.background.surface,borderRightColor:null!=(a=null==n?void 0:n.backgroundColor)?a:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${n.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),z=!1,N=null,R={x:0,y:0};function C(e,l){return t=>{l&&l(t),e(t)}}function q(e,l){return t=>{l&&l(t),e(t)}}let E=a.forwardRef(function(e,l){var t;let n=(0,y.Z)({props:e,name:"JoyTooltip"}),{children:r,className:u,component:f,arrow:x=!1,describeChild:T=!1,disableFocusListener:S=!1,disableHoverListener:E=!1,disableInteractive:M=!1,disableTouchListener:P=!1,enterDelay:D=100,enterNextDelay:O=0,enterTouchDelay:A=700,followCursor:L=!1,id:B,leaveDelay:W=0,leaveTouchDelay:I=1500,onClose:F,onOpen:V,open:$,disablePortal:Y,direction:H,keepMounted:J,modifiers:U,placement:X="bottom",title:K,color:G="neutral",variant:Q="solid",size:ee="md",slots:el={},slotProps:et={}}=n,eo=(0,i.Z)(n,j),{getColor:ea}=(0,w.VT)(Q),en=Y?ea(e.color,G):G,[er,ei]=a.useState(),[ed,es]=a.useState(null),eu=a.useRef(!1),ec=M||L,ev=a.useRef(),ep=a.useRef(),eh=a.useRef(),em=a.useRef(),[ef,eb]=(0,c.Z)({controlled:$,default:!1,name:"Tooltip",state:"open"}),ex=ef,ey=(0,v.Z)(B),eg=a.useRef(),ew=a.useCallback(()=>{void 0!==eg.current&&(document.body.style.WebkitUserSelect=eg.current,eg.current=void 0),clearTimeout(em.current)},[]);a.useEffect(()=>()=>{clearTimeout(ev.current),clearTimeout(ep.current),clearTimeout(eh.current),ew()},[ew]);let eT=e=>{N&&clearTimeout(N),z=!0,eb(!0),V&&!ex&&V(e)},eS=(0,p.Z)(e=>{N&&clearTimeout(N),N=setTimeout(()=>{z=!1},800+W),eb(!1),F&&ex&&F(e),clearTimeout(ev.current),ev.current=setTimeout(()=>{eu.current=!1},150)}),ej=e=>{eu.current&&"touchstart"!==e.type||(er&&er.removeAttribute("title"),clearTimeout(ep.current),clearTimeout(eh.current),D||z&&O?ep.current=setTimeout(()=>{eT(e)},z?O:D):eT(e))},eZ=e=>{clearTimeout(ep.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},W)},{isFocusVisibleRef:e_,onBlur:ek,onFocus:ez,ref:eN}=(0,h.Z)(),[,eR]=a.useState(!1),eC=e=>{ek(e),!1===e_.current&&(eR(!1),eZ(e))},eq=e=>{er||ei(e.currentTarget),ez(e),!0===e_.current&&(eR(!0),ej(e))},eE=e=>{eu.current=!0;let l=r.props;l.onTouchStart&&l.onTouchStart(e)};a.useEffect(()=>{if(ex)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,ex]);let eM=(0,m.Z)(ei,l),eP=(0,m.Z)(eN,eM),eD=(0,m.Z)(r.ref,eP);"number"==typeof K||K||(ex=!1);let eO=a.useRef(null),eA={},eL="string"==typeof K;T?(eA.title=ex||!eL||E?null:K,eA["aria-describedby"]=ex?ey:null):(eA["aria-label"]=eL?K:null,eA["aria-labelledby"]=ex&&!eL?ey:null);let eB=(0,d.Z)({},eA,eo,{component:f},r.props,{className:(0,s.Z)(u,r.props.className),onTouchStart:eE,ref:eD},L?{onMouseMove:e=>{let l=r.props;l.onMouseMove&&l.onMouseMove(e),R={x:e.clientX,y:e.clientY},eO.current&&eO.current.update()}}:{}),eW={};P||(eB.onTouchStart=e=>{eE(e),clearTimeout(eh.current),clearTimeout(ev.current),ew(),eg.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",em.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eg.current,ej(e)},A)},eB.onTouchEnd=e=>{r.props.onTouchEnd&&r.props.onTouchEnd(e),ew(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},I)}),E||(eB.onMouseOver=C(ej,eB.onMouseOver),eB.onMouseLeave=C(eZ,eB.onMouseLeave),ec||(eW.onMouseOver=ej,eW.onMouseLeave=eZ)),S||(eB.onFocus=q(eq,eB.onFocus),eB.onBlur=q(eC,eB.onBlur),ec||(eW.onFocus=eq,eW.onBlur=eC));let eI=(0,d.Z)({},n,{arrow:x,disableInteractive:ec,placement:X,touch:eu.current,color:en,variant:Q,size:ee}),eF=Z(eI),eV=(0,d.Z)({},eo,{component:f,slots:el,slotProps:et}),e$=a.useMemo(()=>[{name:"arrow",enabled:!!ed,options:{element:ed,padding:6}},{name:"offset",options:{offset:[0,10]}},...U||[]],[ed,U]),[eY,eH]=(0,g.Z)("root",{additionalProps:(0,d.Z)({id:ey,popperRef:eO,placement:X,anchorEl:L?{getBoundingClientRect:()=>({top:R.y,left:R.x,right:R.x,bottom:R.y,width:0,height:0})}:er,open:!!er&&ex,disablePortal:Y,keepMounted:J,direction:H,modifiers:e$},eW),ref:null,className:eF.root,elementType:_,externalForwardedProps:eV,ownerState:eI}),[eJ,eU]=(0,g.Z)("arrow",{ref:es,className:eF.arrow,elementType:k,externalForwardedProps:eV,ownerState:eI}),eX=(0,o.jsxs)(eY,(0,d.Z)({},eH,!(null!=(t=n.slots)&&t.root)&&{as:b.r,slots:{root:f||"div"}},{children:[K,x?(0,o.jsx)(eJ,(0,d.Z)({},eU)):null]}));return(0,o.jsxs)(a.Fragment,{children:[a.isValidElement(r)&&a.cloneElement(r,eB),Y?eX:(0,o.jsx)(w.ZP.Provider,{value:void 0,children:eX})]})});var M=t(40911),P=t(99056),D=t(57814),O=t(48665),A=t(71577),L=t(27015),B=t(59566),W=t(32983),I=t(57346),F=t(44442),V=t(99513),$=t(30119),Y=t(39332),H=t(2712),J=t(39156);let{Search:U}=B.default;function X(e){var l,t,n;let{editorValue:i,chartData:d,tableData:s,handleChange:u}=e,c=a.useMemo(()=>d?(0,o.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,o.jsx)(J.Z,{chartsData:[d]})}):(0,o.jsx)("div",{}),[d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,o.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,o.jsx)(V.Z,{value:(null==i?void 0:i.sql)||"",language:"mysql",onChange:u,thoughts:(null==i?void 0:i.thoughts)||""})}),c]}),(0,o.jsx)("div",{className:"h-96 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l.length)>0?(0,o.jsxs)(r.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,o.jsx)("thead",{children:(0,o.jsx)("tr",{children:null==s?void 0:null===(t=s.columns)||void 0===t?void 0:t.map((e,l)=>(0,o.jsx)("th",{children:e},e+l))})}),(0,o.jsx)("tbody",{children:null==s?void 0:null===(n=s.values)||void 0===n?void 0:n.map((e,l)=>{var t;return(0,o.jsx)("tr",{children:null===(t=Object.keys(e))||void 0===t?void 0:t.map(l=>(0,o.jsx)("td",{children:e[l]},l))},l)})})]}):(0,o.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,o.jsx)(W.Z,{})})})]})}var K=function(){var e,l,t,r,i;let[d,s]=a.useState([]),[u,c]=a.useState(""),[v,p]=a.useState(),[h,m]=a.useState(!0),[f,b]=a.useState(),[x,y]=a.useState(),[g,w]=a.useState(),[T,S]=a.useState(),[j,Z]=a.useState(),_=(0,Y.useSearchParams)(),k=null==_?void 0:_.get("id"),z=null==_?void 0:_.get("scene"),{data:N,loading:R}=(0,n.Z)(async()=>await (0,$.Tk)("/v1/editor/sql/rounds",{con_uid:k}),{onSuccess:e=>{var l,t;let o=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l[(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)-1];o&&p(null==o?void 0:o.round)}}),{run:C,loading:q}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/editor/sql/run",{db_name:t,sql:null==g?void 0:g.sql})},{manual:!0,onSuccess:e=>{var l,t;S({columns:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.colunms,values:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.values})}}),{run:B,loading:W}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name,o={db_name:t,sql:null==g?void 0:g.sql};return"chat_dashboard"===z&&(o.chart_type=null==g?void 0:g.showcase),await (0,$.PR)("/api/v1/editor/chart/run",o)},{manual:!0,ready:!!(null==g?void 0:g.sql),onSuccess:e=>{if(null==e?void 0:e.success){var l,t,o,a,n,r,i;S({columns:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.sql_data)||void 0===t?void 0:t.colunms)||[],values:(null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(a=o.sql_data)||void 0===a?void 0:a.values)||[]}),(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.chart_values)?b({type:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.chart_type,values:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.chart_values,title:null==g?void 0:g.title,description:null==g?void 0:g.thoughts}):b(void 0)}}}),{run:V,loading:J}=(0,n.Z)(async()=>{var e,l,t,o,a;let n=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/sql/editor/submit",{conv_uid:k,db_name:n,conv_round:v,old_sql:null==x?void 0:x.sql,old_speak:null==x?void 0:x.thoughts,new_sql:null==g?void 0:g.sql,new_speak:(null===(t=null==g?void 0:null===(o=g.thoughts)||void 0===o?void 0:o.match(/^\n--(.*)\n\n$/))||void 0===t?void 0:null===(a=t[1])||void 0===a?void 0:a.trim())||(null==g?void 0:g.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&C()}}),{run:K,loading:G}=(0,n.Z)(async()=>{var e,l,t,o,a,n;let r=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/chart/editor/submit",{conv_uid:k,chart_title:null==g?void 0:g.title,db_name:r,old_sql:null==x?void 0:null===(t=x[j])||void 0===t?void 0:t.sql,new_chart_type:null==g?void 0:g.showcase,new_sql:null==g?void 0:g.sql,new_comment:(null===(o=null==g?void 0:null===(a=g.thoughts)||void 0===a?void 0:a.match(/^\n--(.*)\n\n$/))||void 0===o?void 0:null===(n=o[1])||void 0===n?void 0:n.trim())||(null==g?void 0:g.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&B()}}),{data:Q}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.Tk)("/v1/editor/db/tables",{db_name:t,page_index:1,page_size:200})},{ready:!!(null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name),refreshDeps:[null===(t=null==N?void 0:null===(r=N.data)||void 0===r?void 0:r.find(e=>e.round===v))||void 0===t?void 0:t.db_name]}),{run:ee}=(0,n.Z)(async e=>await (0,$.Tk)("/v1/editor/sql",{con_uid:k,round:e}),{manual:!0,onSuccess:e=>{let l;try{if(Array.isArray(null==e?void 0:e.data))l=null==e?void 0:e.data,Z("0");else if("string"==typeof(null==e?void 0:e.data)){let t=JSON.parse(null==e?void 0:e.data);l=t}else l=null==e?void 0:e.data}catch(e){console.log(e)}finally{y(l),Array.isArray(l)?w(null==l?void 0:l[Number(j||0)]):w(l)}}}),el=a.useMemo(()=>{let e=(l,t)=>l.map(l=>{let a=l.title,n=a.indexOf(u),r=a.substring(0,n),i=a.slice(n+u.length),d=n>-1?(0,o.jsx)(E,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,o.jsxs)("span",{children:[r,(0,o.jsx)("span",{className:"text-[#1677ff]",children:u}),i,(null==l?void 0:l.type)&&(0,o.jsx)(M.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==l?void 0:l.type,"]")})]})}):(0,o.jsx)(E,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,o.jsxs)("span",{children:[a,(null==l?void 0:l.type)&&(0,o.jsx)(M.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==l?void 0:l.type,"]")})]})});if(l.children){let o=t?String(t)+"_"+l.key:l.key;return{title:a,showTitle:d,key:o,children:e(l.children,o)}}return{title:a,showTitle:d,key:l.key}});return(null==Q?void 0:Q.data)?(s([null==Q?void 0:Q.data.key]),e([null==Q?void 0:Q.data])):[]},[u,Q]),et=a.useMemo(()=>{let e=[],l=(t,o)=>{if(t&&!((null==t?void 0:t.length)<=0))for(let a=0;a{let t;for(let o=0;ol.key===e)?t=a.key:eo(e,a.children)&&(t=eo(e,a.children)))}return t};function ea(e){let l;if(!e)return{sql:"",thoughts:""};let t=e&&e.match(/(--.*)\n([\s\S]*)/),o="";return t&&t.length>=3&&(o=t[1],l=t[2]),{sql:l,thoughts:o}}return a.useEffect(()=>{v&&ee(v)},[ee,v]),a.useEffect(()=>{x&&"chat_dashboard"===z&&j&&B()},[j,z,x,B]),a.useEffect(()=>{x&&"chat_dashboard"!==z&&C()},[z,x,C]),(0,o.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,o.jsx)(H.Z,{}),(0,o.jsxs)("div",{className:"relative flex flex-1 overflow-auto",children:[(0,o.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,o.jsxs)("div",{className:"absolute right-4 top-2 z-10",children:[(0,o.jsx)(A.ZP,{className:"mr-2",type:"primary",loading:q||W,onClick:async()=>{"chat_dashboard"===z?B():C()},children:"Run"}),(0,o.jsx)(A.ZP,{loading:J||G,onClick:async()=>{"chat_dashboard"===z?await K():await V()},children:"Save"})]}),(0,o.jsxs)("div",{className:"flex items-center py-3",children:[(0,o.jsx)(P.Z,{className:"h-4 min-w-[240px]",size:"sm",value:v,onChange:(e,l)=>{p(l)},children:null==N?void 0:null===(i=N.data)||void 0===i?void 0:i.map(e=>(0,o.jsx)(D.Z,{value:null==e?void 0:e.round,children:null==e?void 0:e.round_name},null==e?void 0:e.round))}),(0,o.jsx)(L.Z,{className:"ml-2"})]}),(0,o.jsx)(U,{style:{marginBottom:8},placeholder:"Search",onChange:e=>{let{value:l}=e.target;if(null==Q?void 0:Q.data){if(l){let e=et.map(e=>e.title.indexOf(l)>-1?eo(e.key,el):null).filter((e,l,t)=>e&&t.indexOf(e)===l);s(e)}else s([]);c(l),m(!0)}}}),el&&el.length>0&&(0,o.jsx)(I.Z,{onExpand:e=>{s(e),m(!1)},expandedKeys:d,autoExpandParent:h,treeData:el,fieldNames:{title:"showTitle"}})]}),(0,o.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(x)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,o.jsx)(F.Z,{className:"h-full dark:text-white px-2",activeKey:j,onChange:e=>{Z(e),w(null==x?void 0:x[Number(e)])},items:null==x?void 0:x.map((e,l)=>({key:l+"",label:null==e?void 0:e.title,children:(0,o.jsx)("div",{className:"flex flex-col h-full",children:(0,o.jsx)(X,{editorValue:e,handleChange:e=>{let{sql:l,thoughts:t}=ea(e);w(e=>Object.assign({},e,{sql:l,thoughts:t}))},tableData:T,chartData:f})})}))})})}):(0,o.jsx)(X,{editorValue:x,handleChange:e=>{let{sql:l,thoughts:t}=ea(e);w(e=>Object.assign({},e,{sql:l,thoughts:t}))},tableData:T,chartData:void 0})})]})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{27015:function(e,l,t){var o=t(64836);l.Z=void 0;var a=o(t(64938)),n=t(85893),r=(0,a.default)((0,n.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");l.Z=r},57838:function(e,l,t){t.d(l,{Z:function(){return a}});var o=t(67294);function a(){let[,e]=o.useReducer(e=>e+1,0);return e}},53913:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var o=t(85893),a=t(67294),n=t(577),r=t(61685),i=t(63366),d=t(87462),s=t(90512),u=t(14142),c=t(19032),v=t(92996),p=t(59948),h=t(99962),m=t(33703),f=t(94780),b=t(9572),x=t(74312),y=t(20407),g=t(30220),w=t(78653),T=t(26821);function S(e){return(0,T.d6)("MuiTooltip",e)}(0,T.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let j=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],Z=e=>{let{arrow:l,variant:t,color:o,size:a,placement:n,touch:r}=e,i={root:["root",l&&"tooltipArrow",r&&"touch",a&&`size${(0,u.Z)(a)}`,o&&`color${(0,u.Z)(o)}`,t&&`variant${(0,u.Z)(t)}`,`tooltipPlacement${(0,u.Z)(n.split("-")[0])}`],arrow:["arrow"]};return(0,f.Z)(i,S,{})},_=(0,x.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,l)=>l.root})(({ownerState:e,theme:l})=>{var t,o,a;let n=null==(t=l.variants[e.variant])?void 0:t[e.color];return(0,d.Z)({},"sm"===e.size&&{"--Icon-fontSize":l.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:l.spacing(.25,.625)},"md"===e.size&&{"--Icon-fontSize":l.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:l.spacing(.5,.75)},"lg"===e.size&&{"--Icon-fontSize":l.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:l.spacing(.75,1)},{zIndex:l.vars.zIndex.tooltip,borderRadius:l.vars.radius.sm,boxShadow:l.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},l.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[e.size]}`],n,!n.backgroundColor&&{backgroundColor:l.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(o=e.placement)&&o.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(a=e.placement)&&a.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,x.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,l)=>l.arrow})(({theme:e,ownerState:l})=>{var t,o,a;let n=null==(t=e.variants[l.variant])?void 0:t[l.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(o=null==n?void 0:n.backgroundColor)?o:e.vars.palette.background.surface,borderRightColor:null!=(a=null==n?void 0:n.backgroundColor)?a:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${n.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),z=!1,N=null,R={x:0,y:0};function C(e,l){return t=>{l&&l(t),e(t)}}function q(e,l){return t=>{l&&l(t),e(t)}}let E=a.forwardRef(function(e,l){var t;let n=(0,y.Z)({props:e,name:"JoyTooltip"}),{children:r,className:u,component:f,arrow:x=!1,describeChild:T=!1,disableFocusListener:S=!1,disableHoverListener:E=!1,disableInteractive:M=!1,disableTouchListener:P=!1,enterDelay:D=100,enterNextDelay:O=0,enterTouchDelay:A=700,followCursor:L=!1,id:B,leaveDelay:W=0,leaveTouchDelay:I=1500,onClose:F,onOpen:V,open:$,disablePortal:Y,direction:H,keepMounted:J,modifiers:U,placement:X="bottom",title:K,color:G="neutral",variant:Q="solid",size:ee="md",slots:el={},slotProps:et={}}=n,eo=(0,i.Z)(n,j),{getColor:ea}=(0,w.VT)(Q),en=Y?ea(e.color,G):G,[er,ei]=a.useState(),[ed,es]=a.useState(null),eu=a.useRef(!1),ec=M||L,ev=a.useRef(),ep=a.useRef(),eh=a.useRef(),em=a.useRef(),[ef,eb]=(0,c.Z)({controlled:$,default:!1,name:"Tooltip",state:"open"}),ex=ef,ey=(0,v.Z)(B),eg=a.useRef(),ew=a.useCallback(()=>{void 0!==eg.current&&(document.body.style.WebkitUserSelect=eg.current,eg.current=void 0),clearTimeout(em.current)},[]);a.useEffect(()=>()=>{clearTimeout(ev.current),clearTimeout(ep.current),clearTimeout(eh.current),ew()},[ew]);let eT=e=>{N&&clearTimeout(N),z=!0,eb(!0),V&&!ex&&V(e)},eS=(0,p.Z)(e=>{N&&clearTimeout(N),N=setTimeout(()=>{z=!1},800+W),eb(!1),F&&ex&&F(e),clearTimeout(ev.current),ev.current=setTimeout(()=>{eu.current=!1},150)}),ej=e=>{eu.current&&"touchstart"!==e.type||(er&&er.removeAttribute("title"),clearTimeout(ep.current),clearTimeout(eh.current),D||z&&O?ep.current=setTimeout(()=>{eT(e)},z?O:D):eT(e))},eZ=e=>{clearTimeout(ep.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},W)},{isFocusVisibleRef:e_,onBlur:ek,onFocus:ez,ref:eN}=(0,h.Z)(),[,eR]=a.useState(!1),eC=e=>{ek(e),!1===e_.current&&(eR(!1),eZ(e))},eq=e=>{er||ei(e.currentTarget),ez(e),!0===e_.current&&(eR(!0),ej(e))},eE=e=>{eu.current=!0;let l=r.props;l.onTouchStart&&l.onTouchStart(e)};a.useEffect(()=>{if(ex)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,ex]);let eM=(0,m.Z)(ei,l),eP=(0,m.Z)(eN,eM),eD=(0,m.Z)(r.ref,eP);"number"==typeof K||K||(ex=!1);let eO=a.useRef(null),eA={},eL="string"==typeof K;T?(eA.title=ex||!eL||E?null:K,eA["aria-describedby"]=ex?ey:null):(eA["aria-label"]=eL?K:null,eA["aria-labelledby"]=ex&&!eL?ey:null);let eB=(0,d.Z)({},eA,eo,{component:f},r.props,{className:(0,s.Z)(u,r.props.className),onTouchStart:eE,ref:eD},L?{onMouseMove:e=>{let l=r.props;l.onMouseMove&&l.onMouseMove(e),R={x:e.clientX,y:e.clientY},eO.current&&eO.current.update()}}:{}),eW={};P||(eB.onTouchStart=e=>{eE(e),clearTimeout(eh.current),clearTimeout(ev.current),ew(),eg.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",em.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eg.current,ej(e)},A)},eB.onTouchEnd=e=>{r.props.onTouchEnd&&r.props.onTouchEnd(e),ew(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},I)}),E||(eB.onMouseOver=C(ej,eB.onMouseOver),eB.onMouseLeave=C(eZ,eB.onMouseLeave),ec||(eW.onMouseOver=ej,eW.onMouseLeave=eZ)),S||(eB.onFocus=q(eq,eB.onFocus),eB.onBlur=q(eC,eB.onBlur),ec||(eW.onFocus=eq,eW.onBlur=eC));let eI=(0,d.Z)({},n,{arrow:x,disableInteractive:ec,placement:X,touch:eu.current,color:en,variant:Q,size:ee}),eF=Z(eI),eV=(0,d.Z)({},eo,{component:f,slots:el,slotProps:et}),e$=a.useMemo(()=>[{name:"arrow",enabled:!!ed,options:{element:ed,padding:6}},{name:"offset",options:{offset:[0,10]}},...U||[]],[ed,U]),[eY,eH]=(0,g.Z)("root",{additionalProps:(0,d.Z)({id:ey,popperRef:eO,placement:X,anchorEl:L?{getBoundingClientRect:()=>({top:R.y,left:R.x,right:R.x,bottom:R.y,width:0,height:0})}:er,open:!!er&&ex,disablePortal:Y,keepMounted:J,direction:H,modifiers:e$},eW),ref:null,className:eF.root,elementType:_,externalForwardedProps:eV,ownerState:eI}),[eJ,eU]=(0,g.Z)("arrow",{ref:es,className:eF.arrow,elementType:k,externalForwardedProps:eV,ownerState:eI}),eX=(0,o.jsxs)(eY,(0,d.Z)({},eH,!(null!=(t=n.slots)&&t.root)&&{as:b.r,slots:{root:f||"div"}},{children:[K,x?(0,o.jsx)(eJ,(0,d.Z)({},eU)):null]}));return(0,o.jsxs)(a.Fragment,{children:[a.isValidElement(r)&&a.cloneElement(r,eB),Y?eX:(0,o.jsx)(w.ZP.Provider,{value:void 0,children:eX})]})});var M=t(40911),P=t(99056),D=t(57814),O=t(48665),A=t(71577),L=t(27015),B=t(59566),W=t(32983),I=t(57346),F=t(44442),V=t(99513),$=t(30119),Y=t(39332),H=t(9837),J=t(39156);let{Search:U}=B.default;function X(e){var l,t,n;let{editorValue:i,chartData:d,tableData:s,handleChange:u}=e,c=a.useMemo(()=>d?(0,o.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,o.jsx)(J.Z,{chartsData:[d]})}):(0,o.jsx)("div",{}),[d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,o.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,o.jsx)(V.Z,{value:(null==i?void 0:i.sql)||"",language:"mysql",onChange:u,thoughts:(null==i?void 0:i.thoughts)||""})}),c]}),(0,o.jsx)("div",{className:"h-96 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l.length)>0?(0,o.jsxs)(r.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,o.jsx)("thead",{children:(0,o.jsx)("tr",{children:null==s?void 0:null===(t=s.columns)||void 0===t?void 0:t.map((e,l)=>(0,o.jsx)("th",{children:e},e+l))})}),(0,o.jsx)("tbody",{children:null==s?void 0:null===(n=s.values)||void 0===n?void 0:n.map((e,l)=>{var t;return(0,o.jsx)("tr",{children:null===(t=Object.keys(e))||void 0===t?void 0:t.map(l=>(0,o.jsx)("td",{children:e[l]},l))},l)})})]}):(0,o.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,o.jsx)(W.Z,{})})})]})}var K=function(){var e,l,t,r,i;let[d,s]=a.useState([]),[u,c]=a.useState(""),[v,p]=a.useState(),[h,m]=a.useState(!0),[f,b]=a.useState(),[x,y]=a.useState(),[g,w]=a.useState(),[T,S]=a.useState(),[j,Z]=a.useState(),_=(0,Y.useSearchParams)(),k=null==_?void 0:_.get("id"),z=null==_?void 0:_.get("scene"),{data:N,loading:R}=(0,n.Z)(async()=>await (0,$.Tk)("/v1/editor/sql/rounds",{con_uid:k}),{onSuccess:e=>{var l,t;let o=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l[(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)-1];o&&p(null==o?void 0:o.round)}}),{run:C,loading:q}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/editor/sql/run",{db_name:t,sql:null==g?void 0:g.sql})},{manual:!0,onSuccess:e=>{var l,t;S({columns:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.colunms,values:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.values})}}),{run:B,loading:W}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name,o={db_name:t,sql:null==g?void 0:g.sql};return"chat_dashboard"===z&&(o.chart_type=null==g?void 0:g.showcase),await (0,$.PR)("/api/v1/editor/chart/run",o)},{manual:!0,ready:!!(null==g?void 0:g.sql),onSuccess:e=>{if(null==e?void 0:e.success){var l,t,o,a,n,r,i;S({columns:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.sql_data)||void 0===t?void 0:t.colunms)||[],values:(null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(a=o.sql_data)||void 0===a?void 0:a.values)||[]}),(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.chart_values)?b({type:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.chart_type,values:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.chart_values,title:null==g?void 0:g.title,description:null==g?void 0:g.thoughts}):b(void 0)}}}),{run:V,loading:J}=(0,n.Z)(async()=>{var e,l,t,o,a;let n=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/sql/editor/submit",{conv_uid:k,db_name:n,conv_round:v,old_sql:null==x?void 0:x.sql,old_speak:null==x?void 0:x.thoughts,new_sql:null==g?void 0:g.sql,new_speak:(null===(t=null==g?void 0:null===(o=g.thoughts)||void 0===o?void 0:o.match(/^\n--(.*)\n\n$/))||void 0===t?void 0:null===(a=t[1])||void 0===a?void 0:a.trim())||(null==g?void 0:g.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&C()}}),{run:K,loading:G}=(0,n.Z)(async()=>{var e,l,t,o,a,n;let r=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.PR)("/api/v1/chart/editor/submit",{conv_uid:k,chart_title:null==g?void 0:g.title,db_name:r,old_sql:null==x?void 0:null===(t=x[j])||void 0===t?void 0:t.sql,new_chart_type:null==g?void 0:g.showcase,new_sql:null==g?void 0:g.sql,new_comment:(null===(o=null==g?void 0:null===(a=g.thoughts)||void 0===a?void 0:a.match(/^\n--(.*)\n\n$/))||void 0===o?void 0:null===(n=o[1])||void 0===n?void 0:n.trim())||(null==g?void 0:g.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&B()}}),{data:Q}=(0,n.Z)(async()=>{var e,l;let t=null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name;return await (0,$.Tk)("/v1/editor/db/tables",{db_name:t,page_index:1,page_size:200})},{ready:!!(null===(e=null==N?void 0:null===(l=N.data)||void 0===l?void 0:l.find(e=>e.round===v))||void 0===e?void 0:e.db_name),refreshDeps:[null===(t=null==N?void 0:null===(r=N.data)||void 0===r?void 0:r.find(e=>e.round===v))||void 0===t?void 0:t.db_name]}),{run:ee}=(0,n.Z)(async e=>await (0,$.Tk)("/v1/editor/sql",{con_uid:k,round:e}),{manual:!0,onSuccess:e=>{let l;try{if(Array.isArray(null==e?void 0:e.data))l=null==e?void 0:e.data,Z("0");else if("string"==typeof(null==e?void 0:e.data)){let t=JSON.parse(null==e?void 0:e.data);l=t}else l=null==e?void 0:e.data}catch(e){console.log(e)}finally{y(l),Array.isArray(l)?w(null==l?void 0:l[Number(j||0)]):w(l)}}}),el=a.useMemo(()=>{let e=(l,t)=>l.map(l=>{let a=l.title,n=a.indexOf(u),r=a.substring(0,n),i=a.slice(n+u.length),d=n>-1?(0,o.jsx)(E,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,o.jsxs)("span",{children:[r,(0,o.jsx)("span",{className:"text-[#1677ff]",children:u}),i,(null==l?void 0:l.type)&&(0,o.jsx)(M.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==l?void 0:l.type,"]")})]})}):(0,o.jsx)(E,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,o.jsxs)("span",{children:[a,(null==l?void 0:l.type)&&(0,o.jsx)(M.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==l?void 0:l.type,"]")})]})});if(l.children){let o=t?String(t)+"_"+l.key:l.key;return{title:a,showTitle:d,key:o,children:e(l.children,o)}}return{title:a,showTitle:d,key:l.key}});return(null==Q?void 0:Q.data)?(s([null==Q?void 0:Q.data.key]),e([null==Q?void 0:Q.data])):[]},[u,Q]),et=a.useMemo(()=>{let e=[],l=(t,o)=>{if(t&&!((null==t?void 0:t.length)<=0))for(let a=0;a{let t;for(let o=0;ol.key===e)?t=a.key:eo(e,a.children)&&(t=eo(e,a.children)))}return t};function ea(e){let l;if(!e)return{sql:"",thoughts:""};let t=e&&e.match(/(--.*)\n([\s\S]*)/),o="";return t&&t.length>=3&&(o=t[1],l=t[2]),{sql:l,thoughts:o}}return a.useEffect(()=>{v&&ee(v)},[ee,v]),a.useEffect(()=>{x&&"chat_dashboard"===z&&j&&B()},[j,z,x,B]),a.useEffect(()=>{x&&"chat_dashboard"!==z&&C()},[z,x,C]),(0,o.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,o.jsx)(H.Z,{}),(0,o.jsxs)("div",{className:"relative flex flex-1 overflow-auto",children:[(0,o.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,o.jsxs)("div",{className:"absolute right-4 top-2 z-10",children:[(0,o.jsx)(A.ZP,{className:"mr-2",type:"primary",loading:q||W,onClick:async()=>{"chat_dashboard"===z?B():C()},children:"Run"}),(0,o.jsx)(A.ZP,{loading:J||G,onClick:async()=>{"chat_dashboard"===z?await K():await V()},children:"Save"})]}),(0,o.jsxs)("div",{className:"flex items-center py-3",children:[(0,o.jsx)(P.Z,{className:"h-4 min-w-[240px]",size:"sm",value:v,onChange:(e,l)=>{p(l)},children:null==N?void 0:null===(i=N.data)||void 0===i?void 0:i.map(e=>(0,o.jsx)(D.Z,{value:null==e?void 0:e.round,children:null==e?void 0:e.round_name},null==e?void 0:e.round))}),(0,o.jsx)(L.Z,{className:"ml-2"})]}),(0,o.jsx)(U,{style:{marginBottom:8},placeholder:"Search",onChange:e=>{let{value:l}=e.target;if(null==Q?void 0:Q.data){if(l){let e=et.map(e=>e.title.indexOf(l)>-1?eo(e.key,el):null).filter((e,l,t)=>e&&t.indexOf(e)===l);s(e)}else s([]);c(l),m(!0)}}}),el&&el.length>0&&(0,o.jsx)(I.Z,{onExpand:e=>{s(e),m(!1)},expandedKeys:d,autoExpandParent:h,treeData:el,fieldNames:{title:"showTitle"}})]}),(0,o.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(x)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(O.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,o.jsx)(F.Z,{className:"h-full dark:text-white px-2",activeKey:j,onChange:e=>{Z(e),w(null==x?void 0:x[Number(e)])},items:null==x?void 0:x.map((e,l)=>({key:l+"",label:null==e?void 0:e.title,children:(0,o.jsx)("div",{className:"flex flex-col h-full",children:(0,o.jsx)(X,{editorValue:e,handleChange:e=>{let{sql:l,thoughts:t}=ea(e);w(e=>Object.assign({},e,{sql:l,thoughts:t}))},tableData:T,chartData:f})})}))})})}):(0,o.jsx)(X,{editorValue:x,handleChange:e=>{let{sql:l,thoughts:t}=ea(e);w(e=>Object.assign({},e,{sql:l,thoughts:t}))},tableData:T,chartData:void 0})})]})]})}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/636.0ddfccc906db97ce.js b/pilot/server/static/_next/static/chunks/636.0ddfccc906db97ce.js deleted file mode 100644 index 15b8f1126..000000000 --- a/pilot/server/static/_next/static/chunks/636.0ddfccc906db97ce.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{39156:function(e,l,a){"use strict";a.d(l,{Z:function(){return p}});var n=a(85893),t=a(41118),r=a(30208),c=a(40911),s=a(75227),i=a(67294);function o(e){let{chart:l}=e,a=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{a.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new s.sg(a.current,{data:l.values,xField:"name",yField:"value",seriesField:"type",legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[l.values]),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:l.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:l.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",ref:a})]})})})}function d(e){let{chart:l}=e,a=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{a.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new s.x1(a.current,{data:l.values,xField:"name",yField:"value",seriesField:"type",smooth:!0,area:{style:{fillOpacity:.15}},legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[l.values]),(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:l.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:l.chart_desc}),(0,n.jsx)("div",{className:"h-[300px]",ref:a})]})})})}var u=a(61685),m=a(96486);function h(e){var l,a;let{chart:s}=e,i=(0,m.groupBy)(s.values,"type");return(0,n.jsx)("div",{className:"flex-1 min-w-0",children:(0,n.jsx)(t.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"h-full",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:s.chart_name}),(0,n.jsx)(c.ZP,{gutterBottom:!0,level:"body3",children:s.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(u.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.map((e,l)=>{var a;return(0,n.jsx)("tr",{children:null===(a=Object.keys(i))||void 0===a?void 0:a.map(e=>{var a;return(0,n.jsx)("td",{children:(null==i?void 0:null===(a=i[e])||void 0===a?void 0:a[l].value)||""},e)})},l)})})]})})]})})})}var p=function(e){let{chartsData:l}=e,a=(0,i.useMemo)(()=>{if(l){let e=[],a=null==l?void 0:l.filter(e=>"IndicatorValue"===e.chart_type);a.length>0&&e.push({charts:a,type:"IndicatorValue"});let n=null==l?void 0:l.filter(e=>"IndicatorValue"!==e.chart_type),t=n.length,r=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][t].forEach(l=>{if(l>0){let a=n.slice(r,r+l);r+=l,e.push({charts:a})}}),e}},[l]);return(0,n.jsx)("div",{className:"flex flex-col gap-3",children:null==a?void 0:a.map((e,l)=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(t.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(r.Z,{className:"justify-around",children:[(0,n.jsx)(c.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(c.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,n.jsx)(d,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,n.jsx)(o,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,n.jsx)(h,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(l)))})}},2712:function(e,l,a){"use strict";a.d(l,{Z:function(){return P}});var n=a(85893),t=a(67294),r=a(2453),c=a(83062),s=a(41667),i=a(71577),o=a(49591),d=a(88484),u=a(29158),m=a(50489),h=a(41468),p=function(e){var l;let{convUid:a,chatMode:p,onComplete:x,...g}=e,[b,v]=(0,t.useState)(!1),[f,j]=r.ZP.useMessage(),[y,w]=(0,t.useState)([]),[_,Z]=(0,t.useState)(),{model:N}=(0,t.useContext)(h.p),P=async e=>{var l;if(!e){r.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(l=e.file.name)&&void 0!==l?l:"")){r.ZP.error("File type must be csv, xlsx or xls");return}w([e.file])},C=async()=>{v(!0);try{let e=new FormData;e.append("doc_file",y[0]),f.open({content:"Uploading ".concat(y[0].name),type:"loading",duration:0});let[l]=await (0,m.Vx)((0,m.qn)({convUid:a,chatMode:p,data:e,model:N,config:{timeout:36e5,onUploadProgress:e=>{let l=Math.ceil(e.loaded/(e.total||0)*100);Z(l)}}}));if(l)return;r.ZP.success("success"),null==x||x()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{v(!1),f.destroy()}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[j,(0,n.jsx)(c.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,n.jsx)(s.default,{disabled:b,className:"mr-1",beforeUpload:()=>!1,fileList:y,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:P,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,n.jsx)(n.Fragment,{}),...g,children:(0,n.jsx)(i.ZP,{className:"flex justify-center items-center",type:"primary",disabled:b,icon:(0,n.jsx)(o.Z,{}),children:"Select File"})})}),(0,n.jsx)(i.ZP,{type:"primary",loading:b,className:"flex justify-center items-center",disabled:!y.length,icon:(0,n.jsx)(d.Z,{}),onClick:C,children:b?100===_?"Analysis":"Uploading":"Upload"}),!!y.length&&(0,n.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,n.jsx)(u.Z,{className:"mr-2"}),(0,n.jsx)("span",{children:null===(l=y[0])||void 0===l?void 0:l.name})]})]})})},x=function(e){let{onComplete:l}=e,{currentDialogue:a,scene:r,chatId:c}=(0,t.useContext)(h.p);return"chat_excel"!==r?null:(0,n.jsx)("div",{className:"max-w-md h-full relative",children:a?(0,n.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,n.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,n.jsx)(u.Z,{className:"text-white"})}),(0,n.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:a.select_param})]}):(0,n.jsx)(p,{convUid:c,chatMode:r,onComplete:l})})};a(23293);var g=a(78045),b=a(16165),v=a(96991),f=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,n.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})};function j(){let{isContract:e,setIsContract:l,scene:a}=(0,t.useContext)(h.p),r=a&&["chat_with_db_execute","chat_dashboard"].includes(a);return r?(0,n.jsxs)(g.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{l(!e)},children:[(0,n.jsxs)(g.ZP.Button,{value:!1,children:[(0,n.jsx)(b.Z,{component:f,className:"mr-1"}),"Preview"]}),(0,n.jsxs)(g.ZP.Button,{value:!0,children:[(0,n.jsx)(v.Z,{className:"mr-1"}),"Editor"]})]}):null}var y=a(48567),w=function(){return(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4870",children:(0,n.jsx)("path",{d:"M511.875 128.125c-211.875 0-383.75 76.25-383.75 170.625 0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625C896.25 204.375 724.375 128.125 511.875 128.125M128.125 383.75l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 555 128.125 478.125 128.125 383.75M128.125 597.5l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 768.125 128.125 691.875 128.125 597.5z","p-id":"4871"})})},_=a(2093),Z=a(51009),N=function(){let{scene:e,dbParam:l,setDbParam:a}=(0,t.useContext)(h.p),[r,c]=(0,t.useState)({});(0,_.Z)(async()=>{let[,l]=await (0,m.Vx)((0,m.vD)(e));c(null!=l?l:{})},[e]);let s=(0,t.useMemo)(()=>Object.entries(r).map(e=>{let[l,a]=e;return{label:l,value:a}}),[r]);return((0,t.useEffect)(()=>{s.length&&a(s[0].value)},[s]),s.length)?(0,n.jsx)(Z.default,{value:l,className:"w-36",onChange:e=>{a(e)},children:s.map(e=>(0,n.jsxs)(Z.default.Option,{children:[(0,n.jsx)(b.Z,{component:w,className:"mr-1"}),e.label]},e.value))}):null},P=function(e){let{refreshHistory:l,modelChange:a}=e,{refreshDialogList:r}=(0,t.useContext)(h.p);return(0,n.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,n.jsx)(y.Z,{onChange:a}),(0,n.jsx)(N,{}),(0,n.jsx)(x,{onComplete:()=>{null==r||r(),null==l||l()}}),(0,n.jsx)(j,{})]})}},48567:function(e,l,a){"use strict";a.d(l,{Z:function(){return m},A:function(){return u}});var n=a(85893),t=a(41468),r=a(51009);let c={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"}};var s=a(25675),i=a.n(s),o=a(67294),d=a(67421);function u(e,l){var a;let{width:t,height:r}=l||{};return e?(0,n.jsx)(i(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:t||24,height:r||24,src:(null===(a=c[e])||void 0===a?void 0:a.icon)||"/models/huggingface.svg",alt:"llm"}):null}var m=function(e){let{onChange:l}=e,{t:a}=(0,d.$G)(),{modelList:s,model:i}=(0,o.useContext)(t.p);return!s||s.length<=0?null:(0,n.jsx)(r.default,{value:i,placeholder:a("choose_model"),onChange:e=>{null==l||l(e)},children:s.map(e=>{var l;return(0,n.jsx)(r.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[u(i),(0,n.jsx)("span",{className:"ml-2",children:(null===(l=c[i])||void 0===l?void 0:l.label)||i})]})},e)})})}},99513:function(e,l,a){"use strict";a.d(l,{Z:function(){return d}});var n=a(85893),t=a(77119),r=a(63764),c=a(94184),s=a.n(c),i=a(67294),o=a(36782);function d(e){let{className:l,value:a,language:t="mysql",onChange:c,thoughts:d}=e,u=(0,i.useMemo)(()=>"mysql"!==t?a:d&&d.length>0?(0,o.WU)("-- ".concat(d," \n").concat(a)):(0,o.WU)(a),[a,d]);return(0,n.jsx)(r.ZP,{className:s()(l),value:u,language:t,onChange:c,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}r._m.config({monaco:t})},30119:function(e,l,a){"use strict";a.d(l,{Tk:function(){return i},PR:function(){return o},Ej:function(){return d}});var n=a(2453),t=a(6154),r=a(83454);let c=t.Z.create({baseURL:r.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),a(96486);let s={"content-type":"application/json"},i=(e,l)=>{if(l){let a=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");a&&(e+="?".concat(a))}return c.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},o=(e,l)=>c.post(e,l,{headers:s}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),d=(e,l)=>c.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/643-d2492f894de95084.js b/pilot/server/static/_next/static/chunks/643-d2492f894de95084.js new file mode 100644 index 000000000..49b90fe89 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/643-d2492f894de95084.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{27704:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},l=n(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:r}))})},36531:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]},name:"edit",theme:"filled"},l=n(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:r}))})},2093:function(e,t,n){var a=n(97582),o=n(67294),r=n(92770);t.Z=function(e,t){(0,o.useEffect)(function(){var t=e(),n=!1;return!function(){(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:if(!(0,r.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||n)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){n=!0}},t)}},85265:function(e,t,n){n.d(t,{Z:function(){return K}});var a=n(94184),o=n.n(a),r=n(1413),l=n(97685),i=n(67294),s=n(2788),c=n(8410),u=n(4942),d=n(87462),f=n(82225),m=n(15105),p=n(64217),v=i.createContext(null),h=function(e){var t=e.prefixCls,n=e.className,a=e.style,l=e.children,s=e.containerRef,c=e.onMouseEnter,u=e.onMouseOver,f=e.onMouseLeave,m=e.onClick,p=e.onKeyDown,v=e.onKeyUp;return i.createElement(i.Fragment,null,i.createElement("div",(0,d.Z)({className:o()("".concat(t,"-content"),n),style:(0,r.Z)({},a),"aria-modal":"true",role:"dialog",ref:s},{onMouseEnter:c,onMouseOver:u,onMouseLeave:f,onClick:m,onKeyDown:p,onKeyUp:v}),l))},b=n(80334);function x(e){return"string"==typeof e&&String(Number(e))===e?((0,b.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var y={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},g=i.forwardRef(function(e,t){var n,a,s,c,b=e.prefixCls,g=e.open,w=e.placement,C=e.inline,E=e.push,k=e.forceRender,$=e.autoFocus,S=e.keyboard,Z=e.rootClassName,N=e.rootStyle,O=e.zIndex,D=e.className,M=e.style,I=e.motion,R=e.width,z=e.height,L=e.children,K=e.contentWrapperStyle,P=e.mask,_=e.maskClosable,H=e.maskMotion,X=e.maskClassName,Y=e.maskStyle,U=e.afterOpenChange,j=e.onClose,B=e.onMouseEnter,W=e.onMouseOver,A=e.onMouseLeave,F=e.onClick,T=e.onKeyDown,V=e.onKeyUp,G=i.useRef(),J=i.useRef(),q=i.useRef();i.useImperativeHandle(t,function(){return G.current}),i.useEffect(function(){if(g&&$){var e;null===(e=G.current)||void 0===e||e.focus({preventScroll:!0})}},[g]);var Q=i.useState(!1),ee=(0,l.Z)(Q,2),et=ee[0],en=ee[1],ea=i.useContext(v),eo=null!==(n=null!==(a=null===(s=!1===E?{distance:0}:!0===E?{}:E||{})||void 0===s?void 0:s.distance)&&void 0!==a?a:null==ea?void 0:ea.pushDistance)&&void 0!==n?n:180,er=i.useMemo(function(){return{pushDistance:eo,push:function(){en(!0)},pull:function(){en(!1)}}},[eo]);i.useEffect(function(){var e,t;g?null==ea||null===(e=ea.push)||void 0===e||e.call(ea):null==ea||null===(t=ea.pull)||void 0===t||t.call(ea)},[g]),i.useEffect(function(){return function(){var e;null==ea||null===(e=ea.pull)||void 0===e||e.call(ea)}},[]);var el=P&&i.createElement(f.ZP,(0,d.Z)({key:"mask"},H,{visible:g}),function(e,t){var n=e.className,a=e.style;return i.createElement("div",{className:o()("".concat(b,"-mask"),n,X),style:(0,r.Z)((0,r.Z)({},a),Y),onClick:_&&g?j:void 0,ref:t})}),ei="function"==typeof I?I(w):I,es={};if(et&&eo)switch(w){case"top":es.transform="translateY(".concat(eo,"px)");break;case"bottom":es.transform="translateY(".concat(-eo,"px)");break;case"left":es.transform="translateX(".concat(eo,"px)");break;default:es.transform="translateX(".concat(-eo,"px)")}"left"===w||"right"===w?es.width=x(R):es.height=x(z);var ec={onMouseEnter:B,onMouseOver:W,onMouseLeave:A,onClick:F,onKeyDown:T,onKeyUp:V},eu=i.createElement(f.ZP,(0,d.Z)({key:"panel"},ei,{visible:g,forceRender:k,onVisibleChanged:function(e){null==U||U(e)},removeOnLeave:!1,leavedClassName:"".concat(b,"-content-wrapper-hidden")}),function(t,n){var a=t.className,l=t.style;return i.createElement("div",(0,d.Z)({className:o()("".concat(b,"-content-wrapper"),a),style:(0,r.Z)((0,r.Z)((0,r.Z)({},es),l),K)},(0,p.Z)(e,{data:!0})),i.createElement(h,(0,d.Z)({containerRef:n,prefixCls:b,className:D,style:M},ec),L))}),ed=(0,r.Z)({},N);return O&&(ed.zIndex=O),i.createElement(v.Provider,{value:er},i.createElement("div",{className:o()(b,"".concat(b,"-").concat(w),Z,(c={},(0,u.Z)(c,"".concat(b,"-open"),g),(0,u.Z)(c,"".concat(b,"-inline"),C),c)),style:ed,tabIndex:-1,ref:G,onKeyDown:function(e){var t,n,a=e.keyCode,o=e.shiftKey;switch(a){case m.Z.TAB:a===m.Z.TAB&&(o||document.activeElement!==q.current?o&&document.activeElement===J.current&&(null===(n=q.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=J.current)||void 0===t||t.focus({preventScroll:!0}));break;case m.Z.ESC:j&&S&&(e.stopPropagation(),j(e))}}},el,i.createElement("div",{tabIndex:0,ref:J,style:y,"aria-hidden":"true","data-sentinel":"start"}),eu,i.createElement("div",{tabIndex:0,ref:q,style:y,"aria-hidden":"true","data-sentinel":"end"})))}),w=function(e){var t=e.open,n=e.prefixCls,a=e.placement,o=e.autoFocus,u=e.keyboard,d=e.width,f=e.mask,m=void 0===f||f,p=e.maskClosable,v=e.getContainer,h=e.forceRender,b=e.afterOpenChange,x=e.destroyOnClose,y=e.onMouseEnter,w=e.onMouseOver,C=e.onMouseLeave,E=e.onClick,k=e.onKeyDown,$=e.onKeyUp,S=i.useState(!1),Z=(0,l.Z)(S,2),N=Z[0],O=Z[1],D=i.useState(!1),M=(0,l.Z)(D,2),I=M[0],R=M[1];(0,c.Z)(function(){R(!0)},[]);var z=!!I&&void 0!==t&&t,L=i.useRef(),K=i.useRef();if((0,c.Z)(function(){z&&(K.current=document.activeElement)},[z]),!h&&!N&&!z&&x)return null;var P=(0,r.Z)((0,r.Z)({},e),{},{open:z,prefixCls:void 0===n?"rc-drawer":n,placement:void 0===a?"right":a,autoFocus:void 0===o||o,keyboard:void 0===u||u,width:void 0===d?378:d,mask:m,maskClosable:void 0===p||p,inline:!1===v,afterOpenChange:function(e){var t,n;O(e),null==b||b(e),e||!K.current||(null===(t=L.current)||void 0===t?void 0:t.contains(K.current))||null===(n=K.current)||void 0===n||n.focus({preventScroll:!0})},ref:L},{onMouseEnter:y,onMouseOver:w,onMouseLeave:C,onClick:E,onKeyDown:k,onKeyUp:$});return i.createElement(s.Z,{open:z||h||N,autoDestroy:!1,getContainer:v,autoLock:m&&(z||N)},i.createElement(g,P))},C=n(33603),E=n(53124),k=n(65223),$=n(69760),S=e=>{let{prefixCls:t,title:n,footer:a,extra:r,closeIcon:l,closable:s,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:f,footerStyle:m,children:p}=e,v=i.useCallback(e=>i.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${t}-close`},e),[c]),[h,b]=(0,$.Z)(s,l,v,void 0,!0),x=i.useMemo(()=>n||h?i.createElement("div",{style:u,className:o()(`${t}-header`,{[`${t}-header-close-only`]:h&&!n&&!r})},i.createElement("div",{className:`${t}-header-title`},b,n&&i.createElement("div",{className:`${t}-title`},n)),r&&i.createElement("div",{className:`${t}-extra`},r)):null,[h,b,r,u,t,n]),y=i.useMemo(()=>{if(!a)return null;let e=`${t}-footer`;return i.createElement("div",{className:e,style:m},a)},[a,m,t]);return i.createElement("div",{className:`${t}-wrapper-body`,style:d},x,i.createElement("div",{className:`${t}-body`,style:f},p),y)},Z=n(4173),N=n(67968),O=n(45503),D=e=>{let{componentCls:t,motionDurationSlow:n}=e,a={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[a,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[a,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[a,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[a,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};let M=e=>{let{componentCls:t,zIndexPopup:n,colorBgMask:a,colorBgElevated:o,motionDurationSlow:r,motionDurationMid:l,padding:i,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:m,marginSM:p,colorIcon:v,colorIconHover:h,colorText:b,fontWeightStrong:x,footerPaddingBlock:y,footerPaddingInline:g}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:a,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${r}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${i}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:p,color:v,fontWeight:x,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${g}px`,borderTop:`${d}px ${f} ${m}`},"&-rtl":{direction:"rtl"}}}};var I=(0,N.Z)("Drawer",e=>{let t=(0,O.TS)(e,{});return[M(t),D(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})),R=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(e);ot.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};let z={distance:180},L=e=>{let{rootClassName:t,width:n,height:a,size:r="default",mask:l=!0,push:s=z,open:c,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:m,style:p,className:v,visible:h,afterVisibleChange:b}=e,x=R(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:y,getPrefixCls:g,direction:$,drawer:N}=i.useContext(E.E_),O=g("drawer",f),[D,M]=I(O),L=o()({"no-mask":!l,[`${O}-rtl`]:"rtl"===$},t,M),K=i.useMemo(()=>null!=n?n:"large"===r?736:378,[n,r]),P=i.useMemo(()=>null!=a?a:"large"===r?736:378,[a,r]),_={motionName:(0,C.m)(O,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return D(i.createElement(Z.BR,null,i.createElement(k.Ux,{status:!0,override:!0},i.createElement(w,Object.assign({prefixCls:O,onClose:d,maskMotion:_,motion:e=>({motionName:(0,C.m)(O,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},x,{open:null!=c?c:h,mask:l,push:s,width:K,height:P,style:Object.assign(Object.assign({},null==N?void 0:N.style),p),className:o()(null==N?void 0:N.className,v),rootClassName:L,getContainer:void 0===m&&y?()=>y(document.body):m,afterOpenChange:null!=u?u:b}),i.createElement(S,Object.assign({prefixCls:O},x,{onClose:d}))))))};L._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:a,placement:r="right"}=e,l=R(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=i.useContext(E.E_),c=s("drawer",t),[u,d]=I(c),f=o()(c,`${c}-pure`,`${c}-${r}`,d,a);return u(i.createElement("div",{className:f,style:n},i.createElement(S,Object.assign({prefixCls:c},l))))};var K=L}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/785-46a0e236e0942766.js b/pilot/server/static/_next/static/chunks/785-46a0e236e0942766.js deleted file mode 100644 index 06acf15f2..000000000 --- a/pilot/server/static/_next/static/chunks/785-46a0e236e0942766.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{27704:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},i=n(84089),l=r.forwardRef(function(e,t){return r.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:o}))})},36531:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]},name:"edit",theme:"filled"},i=n(84089),l=r.forwardRef(function(e,t){return r.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:o}))})},2093:function(e,t,n){var a=n(97582),r=n(67294),o=n(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),n=!1;return!function(){(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||n)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){n=!0}},t)}},85813:function(e,t,n){n.d(t,{Z:function(){return J}});var a=n(94184),r=n.n(a),o=n(98423),i=n(67294),l=n(53124),s=n(98675),c=e=>{let{prefixCls:t,className:n,style:a,size:o,shape:l}=e,s=r()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=r()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),d=i.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return i.createElement("span",{className:r()(t,s,c,n),style:Object.assign(Object.assign({},d),a)})},d=n(23183),u=n(67968),m=n(45503);let p=new d.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g=e=>({height:e,lineHeight:`${e}px`}),f=e=>Object.assign({width:e},g(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:p,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),h=e=>Object.assign({width:5*e,minWidth:5*e},g(e)),$=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:r,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},f(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(r)),[`${t}${t}-sm`]:Object.assign({},f(o))}},v=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:r,controlHeightSM:o,gradientFromColor:i}=e;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},h(t)),[`${a}-lg`]:Object.assign({},h(r)),[`${a}-sm`]:Object.assign({},h(o))}},x=e=>Object.assign({width:e},g(e)),y=e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:r},x(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},x(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,n)=>{let{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},O=e=>Object.assign({width:2*e,minWidth:2*e},g(e)),E=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:r,controlHeightSM:o,gradientFromColor:i}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*a,minWidth:2*a},O(a))},w(e,a,n)),{[`${n}-lg`]:Object.assign({},O(r))}),w(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},O(o))}),w(e,o,`${n}-sm`))},C=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:r,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:u,padding:m,marginSM:p,borderRadius:g,titleHeight:h,blockRadius:x,paragraphLiHeight:w,controlHeightXS:O,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},f(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},f(c)),[`${n}-sm`]:Object.assign({},f(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:h,background:u,borderRadius:x,[`+ ${r}`]:{marginBlockStart:d}},[`${r}`]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:u,borderRadius:x,"+ li":{marginBlockStart:O}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${r} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:p,[`+ ${r}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(e)),$(e)),v(e)),y(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${a}, - ${r} > li, - ${n}, - ${o}, - ${i}, - ${l} - `]:Object.assign({},b(e))}}};var S=(0,u.Z)("Skeleton",e=>{let{componentCls:t}=e,n=(0,m.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[C(n)]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),k=n(87462),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},N=n(84089),z=i.forwardRef(function(e,t){return i.createElement(N.Z,(0,k.Z)({},e,{ref:t,icon:j}))}),M=n(74902),Z=e=>{let t=t=>{let{width:n,rows:a=2}=e;return Array.isArray(n)?n[t]:a-1===t?n:void 0},{prefixCls:n,className:a,style:o,rows:l}=e,s=(0,M.Z)(Array(l)).map((e,n)=>i.createElement("li",{key:n,style:{width:t(n)}}));return i.createElement("ul",{className:r()(n,a),style:o},s)},R=e=>{let{prefixCls:t,className:n,width:a,style:o}=e;return i.createElement("h3",{className:r()(t,n),style:Object.assign({width:a},o)})};function I(e){return e&&"object"==typeof e?e:{}}let D=e=>{let{prefixCls:t,loading:n,className:a,rootClassName:o,style:s,children:d,avatar:u=!1,title:m=!0,paragraph:p=!0,active:g,round:f}=e,{getPrefixCls:b,direction:h,skeleton:$}=i.useContext(l.E_),v=b("skeleton",t),[x,y]=S(v);if(n||!("loading"in e)){let e,t;let n=!!u,l=!!m,d=!!p;if(n){let t=Object.assign(Object.assign({prefixCls:`${v}-avatar`},l&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),I(u));e=i.createElement("div",{className:`${v}-header`},i.createElement(c,Object.assign({},t)))}if(l||d){let e,a;if(l){let t=Object.assign(Object.assign({prefixCls:`${v}-title`},!n&&d?{width:"38%"}:n&&d?{width:"50%"}:{}),I(m));e=i.createElement(R,Object.assign({},t))}if(d){let e=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){let n={};return e&&t||(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}(n,l)),I(p));a=i.createElement(Z,Object.assign({},e))}t=i.createElement("div",{className:`${v}-content`},e,a)}let b=r()(v,{[`${v}-with-avatar`]:n,[`${v}-active`]:g,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:f},null==$?void 0:$.className,a,o,y);return x(i.createElement("div",{className:b,style:Object.assign(Object.assign({},null==$?void 0:$.style),s)},e,t))}return void 0!==d?d:null};D.Button=e=>{let{prefixCls:t,className:n,rootClassName:a,active:s,block:d=!1,size:u="default"}=e,{getPrefixCls:m}=i.useContext(l.E_),p=m("skeleton",t),[g,f]=S(p),b=(0,o.Z)(e,["prefixCls"]),h=r()(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:d},n,a,f);return g(i.createElement("div",{className:h},i.createElement(c,Object.assign({prefixCls:`${p}-button`,size:u},b))))},D.Avatar=e=>{let{prefixCls:t,className:n,rootClassName:a,active:s,shape:d="circle",size:u="default"}=e,{getPrefixCls:m}=i.useContext(l.E_),p=m("skeleton",t),[g,f]=S(p),b=(0,o.Z)(e,["prefixCls","className"]),h=r()(p,`${p}-element`,{[`${p}-active`]:s},n,a,f);return g(i.createElement("div",{className:h},i.createElement(c,Object.assign({prefixCls:`${p}-avatar`,shape:d,size:u},b))))},D.Input=e=>{let{prefixCls:t,className:n,rootClassName:a,active:s,block:d,size:u="default"}=e,{getPrefixCls:m}=i.useContext(l.E_),p=m("skeleton",t),[g,f]=S(p),b=(0,o.Z)(e,["prefixCls"]),h=r()(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:d},n,a,f);return g(i.createElement("div",{className:h},i.createElement(c,Object.assign({prefixCls:`${p}-input`,size:u},b))))},D.Image=e=>{let{prefixCls:t,className:n,rootClassName:a,style:o,active:s}=e,{getPrefixCls:c}=i.useContext(l.E_),d=c("skeleton",t),[u,m]=S(d),p=r()(d,`${d}-element`,{[`${d}-active`]:s},n,a,m);return u(i.createElement("div",{className:p},i.createElement("div",{className:r()(`${d}-image`,n),style:o},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${d}-image-svg`},i.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${d}-image-path`})))))},D.Node=e=>{let{prefixCls:t,className:n,rootClassName:a,style:o,active:s,children:c}=e,{getPrefixCls:d}=i.useContext(l.E_),u=d("skeleton",t),[m,p]=S(u),g=r()(u,`${u}-element`,{[`${u}-active`]:s},p,n,a),f=null!=c?c:i.createElement(z,null);return m(i.createElement("div",{className:g},i.createElement("div",{className:r()(`${u}-image`,n),style:o},f)))};var B=n(44442),H=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},L=e=>{var{prefixCls:t,className:n,hoverable:a=!0}=e,o=H(e,["prefixCls","className","hoverable"]);let{getPrefixCls:s}=i.useContext(l.E_),c=s("card",t),d=r()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},o,{className:d}))},T=n(14747);let P=e=>{let{antCls:t,componentCls:n,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,T.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},T.vS),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},W=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${r}px 0 0 0 ${n}, - 0 ${r}px 0 0 ${n}, - ${r}px ${r}px 0 0 ${n}, - ${r}px 0 0 0 ${n} inset, - 0 ${r}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},A=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,T.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`}}})},_=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,T.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},T.vS),"&-description":{color:e.colorTextDescription}}),G=e=>{let{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},K=e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},F=e=>{let{antCls:t,componentCls:n,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:P(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,T.dF)()),[`${n}-grid`]:W(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${n}-actions`]:A(e),[`${n}-meta`]:_(e)}),[`${n}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${n}-contain-grid`]:{[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:r}}},[`${n}-type-inner`]:G(e),[`${n}-loading`]:K(e),[`${n}-rtl`]:{direction:"rtl"}}},X=e=>{let{componentCls:t,cardPaddingSM:n,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${n}px`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}};var q=(0,u.Z)("Card",e=>{let t=(0,m.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[F(t),X(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})),Y=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let U=i.forwardRef((e,t)=>{let n;let{prefixCls:a,className:c,rootClassName:d,style:u,extra:m,headStyle:p={},bodyStyle:g={},title:f,loading:b,bordered:h=!0,size:$,type:v,cover:x,actions:y,tabList:w,children:O,activeTabKey:E,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:k,tabProps:j={}}=e,N=Y(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:z,direction:M,card:Z}=i.useContext(l.E_),R=i.useMemo(()=>{let e=!1;return i.Children.forEach(O,t=>{t&&t.type&&t.type===L&&(e=!0)}),e},[O]),I=z("card",a),[H,T]=q(I),P=i.createElement(D,{loading:!0,active:!0,paragraph:{rows:4},title:!1},O),W=void 0!==E,A=Object.assign(Object.assign({},j),{[W?"activeKey":"defaultActiveKey"]:W?E:C,tabBarExtraContent:S}),_=(0,s.Z)($),G=w?i.createElement(B.Z,Object.assign({size:_&&"default"!==_?_:"large"},A,{className:`${I}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:w.map(e=>{var{tab:t}=e;return Object.assign({label:t},Y(e,["tab"]))})})):null;(f||m||G)&&(n=i.createElement("div",{className:`${I}-head`,style:p},i.createElement("div",{className:`${I}-head-wrapper`},f&&i.createElement("div",{className:`${I}-head-title`},f),m&&i.createElement("div",{className:`${I}-extra`},m)),G));let K=x?i.createElement("div",{className:`${I}-cover`},x):null,F=i.createElement("div",{className:`${I}-body`,style:g},b?P:O),X=y&&y.length?i.createElement("ul",{className:`${I}-actions`},y.map((e,t)=>i.createElement("li",{style:{width:`${100/y.length}%`},key:`action-${t}`},i.createElement("span",null,e)))):null,U=(0,o.Z)(N,["onTabChange"]),V=r()(I,null==Z?void 0:Z.className,{[`${I}-loading`]:b,[`${I}-bordered`]:h,[`${I}-hoverable`]:k,[`${I}-contain-grid`]:R,[`${I}-contain-tabs`]:w&&w.length,[`${I}-${_}`]:_,[`${I}-type-${v}`]:!!v,[`${I}-rtl`]:"rtl"===M},c,d,T),J=Object.assign(Object.assign({},null==Z?void 0:Z.style),u);return H(i.createElement("div",Object.assign({ref:t},U,{className:V,style:J}),n,K,F,X))});var V=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};U.Grid=L,U.Meta=e=>{let{prefixCls:t,className:n,avatar:a,title:o,description:s}=e,c=V(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:d}=i.useContext(l.E_),u=d("card",t),m=r()(`${u}-meta`,n),p=a?i.createElement("div",{className:`${u}-meta-avatar`},a):null,g=o?i.createElement("div",{className:`${u}-meta-title`},o):null,f=s?i.createElement("div",{className:`${u}-meta-description`},s):null,b=g||f?i.createElement("div",{className:`${u}-meta-detail`},g,f):null;return i.createElement("div",Object.assign({},c,{className:m}),p,b)};var J=U},85265:function(e,t,n){n.d(t,{Z:function(){return B}});var a=n(94184),r=n.n(a),o=n(1413),i=n(97685),l=n(67294),s=n(2788),c=n(8410),d=n(4942),u=n(87462),m=n(82225),p=n(15105),g=n(64217),f=l.createContext(null),b=function(e){var t=e.prefixCls,n=e.className,a=e.style,i=e.children,s=e.containerRef,c=e.onMouseEnter,d=e.onMouseOver,m=e.onMouseLeave,p=e.onClick,g=e.onKeyDown,f=e.onKeyUp;return l.createElement(l.Fragment,null,l.createElement("div",(0,u.Z)({className:r()("".concat(t,"-content"),n),style:(0,o.Z)({},a),"aria-modal":"true",role:"dialog",ref:s},{onMouseEnter:c,onMouseOver:d,onMouseLeave:m,onClick:p,onKeyDown:g,onKeyUp:f}),i))},h=n(80334);function $(e){return"string"==typeof e&&String(Number(e))===e?((0,h.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var v={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},x=l.forwardRef(function(e,t){var n,a,s,c,h=e.prefixCls,x=e.open,y=e.placement,w=e.inline,O=e.push,E=e.forceRender,C=e.autoFocus,S=e.keyboard,k=e.rootClassName,j=e.rootStyle,N=e.zIndex,z=e.className,M=e.style,Z=e.motion,R=e.width,I=e.height,D=e.children,B=e.contentWrapperStyle,H=e.mask,L=e.maskClosable,T=e.maskMotion,P=e.maskClassName,W=e.maskStyle,A=e.afterOpenChange,_=e.onClose,G=e.onMouseEnter,K=e.onMouseOver,F=e.onMouseLeave,X=e.onClick,q=e.onKeyDown,Y=e.onKeyUp,U=l.useRef(),V=l.useRef(),J=l.useRef();l.useImperativeHandle(t,function(){return U.current}),l.useEffect(function(){if(x&&C){var e;null===(e=U.current)||void 0===e||e.focus({preventScroll:!0})}},[x]);var Q=l.useState(!1),ee=(0,i.Z)(Q,2),et=ee[0],en=ee[1],ea=l.useContext(f),er=null!==(n=null!==(a=null===(s=!1===O?{distance:0}:!0===O?{}:O||{})||void 0===s?void 0:s.distance)&&void 0!==a?a:null==ea?void 0:ea.pushDistance)&&void 0!==n?n:180,eo=l.useMemo(function(){return{pushDistance:er,push:function(){en(!0)},pull:function(){en(!1)}}},[er]);l.useEffect(function(){var e,t;x?null==ea||null===(e=ea.push)||void 0===e||e.call(ea):null==ea||null===(t=ea.pull)||void 0===t||t.call(ea)},[x]),l.useEffect(function(){return function(){var e;null==ea||null===(e=ea.pull)||void 0===e||e.call(ea)}},[]);var ei=H&&l.createElement(m.ZP,(0,u.Z)({key:"mask"},T,{visible:x}),function(e,t){var n=e.className,a=e.style;return l.createElement("div",{className:r()("".concat(h,"-mask"),n,P),style:(0,o.Z)((0,o.Z)({},a),W),onClick:L&&x?_:void 0,ref:t})}),el="function"==typeof Z?Z(y):Z,es={};if(et&&er)switch(y){case"top":es.transform="translateY(".concat(er,"px)");break;case"bottom":es.transform="translateY(".concat(-er,"px)");break;case"left":es.transform="translateX(".concat(er,"px)");break;default:es.transform="translateX(".concat(-er,"px)")}"left"===y||"right"===y?es.width=$(R):es.height=$(I);var ec={onMouseEnter:G,onMouseOver:K,onMouseLeave:F,onClick:X,onKeyDown:q,onKeyUp:Y},ed=l.createElement(m.ZP,(0,u.Z)({key:"panel"},el,{visible:x,forceRender:E,onVisibleChanged:function(e){null==A||A(e)},removeOnLeave:!1,leavedClassName:"".concat(h,"-content-wrapper-hidden")}),function(t,n){var a=t.className,i=t.style;return l.createElement("div",(0,u.Z)({className:r()("".concat(h,"-content-wrapper"),a),style:(0,o.Z)((0,o.Z)((0,o.Z)({},es),i),B)},(0,g.Z)(e,{data:!0})),l.createElement(b,(0,u.Z)({containerRef:n,prefixCls:h,className:z,style:M},ec),D))}),eu=(0,o.Z)({},j);return N&&(eu.zIndex=N),l.createElement(f.Provider,{value:eo},l.createElement("div",{className:r()(h,"".concat(h,"-").concat(y),k,(c={},(0,d.Z)(c,"".concat(h,"-open"),x),(0,d.Z)(c,"".concat(h,"-inline"),w),c)),style:eu,tabIndex:-1,ref:U,onKeyDown:function(e){var t,n,a=e.keyCode,r=e.shiftKey;switch(a){case p.Z.TAB:a===p.Z.TAB&&(r||document.activeElement!==J.current?r&&document.activeElement===V.current&&(null===(n=J.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=V.current)||void 0===t||t.focus({preventScroll:!0}));break;case p.Z.ESC:_&&S&&(e.stopPropagation(),_(e))}}},ei,l.createElement("div",{tabIndex:0,ref:V,style:v,"aria-hidden":"true","data-sentinel":"start"}),ed,l.createElement("div",{tabIndex:0,ref:J,style:v,"aria-hidden":"true","data-sentinel":"end"})))}),y=function(e){var t=e.open,n=e.prefixCls,a=e.placement,r=e.autoFocus,d=e.keyboard,u=e.width,m=e.mask,p=void 0===m||m,g=e.maskClosable,f=e.getContainer,b=e.forceRender,h=e.afterOpenChange,$=e.destroyOnClose,v=e.onMouseEnter,y=e.onMouseOver,w=e.onMouseLeave,O=e.onClick,E=e.onKeyDown,C=e.onKeyUp,S=l.useState(!1),k=(0,i.Z)(S,2),j=k[0],N=k[1],z=l.useState(!1),M=(0,i.Z)(z,2),Z=M[0],R=M[1];(0,c.Z)(function(){R(!0)},[]);var I=!!Z&&void 0!==t&&t,D=l.useRef(),B=l.useRef();if((0,c.Z)(function(){I&&(B.current=document.activeElement)},[I]),!b&&!j&&!I&&$)return null;var H=(0,o.Z)((0,o.Z)({},e),{},{open:I,prefixCls:void 0===n?"rc-drawer":n,placement:void 0===a?"right":a,autoFocus:void 0===r||r,keyboard:void 0===d||d,width:void 0===u?378:u,mask:p,maskClosable:void 0===g||g,inline:!1===f,afterOpenChange:function(e){var t,n;N(e),null==h||h(e),e||!B.current||(null===(t=D.current)||void 0===t?void 0:t.contains(B.current))||null===(n=B.current)||void 0===n||n.focus({preventScroll:!0})},ref:D},{onMouseEnter:v,onMouseOver:y,onMouseLeave:w,onClick:O,onKeyDown:E,onKeyUp:C});return l.createElement(s.Z,{open:I||b||j,autoDestroy:!1,getContainer:f,autoLock:p&&(I||j)},l.createElement(x,H))},w=n(33603),O=n(53124),E=n(65223),C=n(69760),S=e=>{let{prefixCls:t,title:n,footer:a,extra:o,closeIcon:i,closable:s,onClose:c,headerStyle:d,drawerStyle:u,bodyStyle:m,footerStyle:p,children:g}=e,f=l.useCallback(e=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${t}-close`},e),[c]),[b,h]=(0,C.Z)(s,i,f,void 0,!0),$=l.useMemo(()=>n||b?l.createElement("div",{style:d,className:r()(`${t}-header`,{[`${t}-header-close-only`]:b&&!n&&!o})},l.createElement("div",{className:`${t}-header-title`},h,n&&l.createElement("div",{className:`${t}-title`},n)),o&&l.createElement("div",{className:`${t}-extra`},o)):null,[b,h,o,d,t,n]),v=l.useMemo(()=>{if(!a)return null;let e=`${t}-footer`;return l.createElement("div",{className:e,style:p},a)},[a,p,t]);return l.createElement("div",{className:`${t}-wrapper-body`,style:u},$,l.createElement("div",{className:`${t}-body`,style:m},g),v)},k=n(4173),j=n(67968),N=n(45503),z=e=>{let{componentCls:t,motionDurationSlow:n}=e,a={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[a,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[a,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[a,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[a,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};let M=e=>{let{componentCls:t,zIndexPopup:n,colorBgMask:a,colorBgElevated:r,motionDurationSlow:o,motionDurationMid:i,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:d,lineWidth:u,lineType:m,colorSplit:p,marginSM:g,colorIcon:f,colorIconHover:b,colorText:h,fontWeightStrong:$,footerPaddingBlock:v,footerPaddingInline:x}=e,y=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:a,pointerEvents:"auto"},[y]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${y}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${y}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${y}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${y}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:d,borderBottom:`${u}px ${m} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:g,color:f,fontWeight:$,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:d},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${x}px`,borderTop:`${u}px ${m} ${p}`},"&-rtl":{direction:"rtl"}}}};var Z=(0,j.Z)("Drawer",e=>{let t=(0,N.TS)(e,{});return[M(t),z(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})),R=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let I={distance:180},D=e=>{let{rootClassName:t,width:n,height:a,size:o="default",mask:i=!0,push:s=I,open:c,afterOpenChange:d,onClose:u,prefixCls:m,getContainer:p,style:g,className:f,visible:b,afterVisibleChange:h}=e,$=R(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:v,getPrefixCls:x,direction:C,drawer:j}=l.useContext(O.E_),N=x("drawer",m),[z,M]=Z(N),D=r()({"no-mask":!i,[`${N}-rtl`]:"rtl"===C},t,M),B=l.useMemo(()=>null!=n?n:"large"===o?736:378,[n,o]),H=l.useMemo(()=>null!=a?a:"large"===o?736:378,[a,o]),L={motionName:(0,w.m)(N,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return z(l.createElement(k.BR,null,l.createElement(E.Ux,{status:!0,override:!0},l.createElement(y,Object.assign({prefixCls:N,onClose:u,maskMotion:L,motion:e=>({motionName:(0,w.m)(N,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},$,{open:null!=c?c:b,mask:i,push:s,width:B,height:H,style:Object.assign(Object.assign({},null==j?void 0:j.style),g),className:r()(null==j?void 0:j.className,f),rootClassName:D,getContainer:void 0===p&&v?()=>v(document.body):p,afterOpenChange:null!=d?d:h}),l.createElement(S,Object.assign({prefixCls:N},$,{onClose:u}))))))};D._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:a,placement:o="right"}=e,i=R(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=l.useContext(O.E_),c=s("drawer",t),[d,u]=Z(c),m=r()(c,`${c}-pure`,`${c}-${o}`,u,a);return d(l.createElement("div",{className:m,style:n},l.createElement(S,Object.assign({prefixCls:c},i))))};var B=D}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/813-cce9482e33f2430c.js b/pilot/server/static/_next/static/chunks/813-cce9482e33f2430c.js new file mode 100644 index 000000000..d3e2cb5ba --- /dev/null +++ b/pilot/server/static/_next/static/chunks/813-cce9482e33f2430c.js @@ -0,0 +1,17 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[813],{85813:function(e,t,a){a.d(t,{Z:function(){return U}});var i=a(94184),n=a.n(i),r=a(98423),l=a(67294),o=a(53124),s=a(98675),d=e=>{let{prefixCls:t,className:a,style:i,size:r,shape:o}=e,s=n()({[`${t}-lg`]:"large"===r,[`${t}-sm`]:"small"===r}),d=n()({[`${t}-circle`]:"circle"===o,[`${t}-square`]:"square"===o,[`${t}-round`]:"round"===o}),c=l.useMemo(()=>"number"==typeof r?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return l.createElement("span",{className:n()(t,s,d,a),style:Object.assign(Object.assign({},c),i)})},c=a(23183),g=a(67968),$=a(45503);let b=new c.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=e=>({height:e,lineHeight:`${e}px`}),m=e=>Object.assign({width:e},p(e)),u=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:b,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),h=e=>Object.assign({width:5*e,minWidth:5*e},p(e)),f=e=>{let{skeletonAvatarCls:t,gradientFromColor:a,controlHeight:i,controlHeightLG:n,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a},m(i)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},m(n)),[`${t}${t}-sm`]:Object.assign({},m(r))}},v=e=>{let{controlHeight:t,borderRadiusSM:a,skeletonInputCls:i,controlHeightLG:n,controlHeightSM:r,gradientFromColor:l}=e;return{[`${i}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:a},h(t)),[`${i}-lg`]:Object.assign({},h(n)),[`${i}-sm`]:Object.assign({},h(r))}},x=e=>Object.assign({width:e},p(e)),y=e=>{let{skeletonImageCls:t,imageSizeBase:a,gradientFromColor:i,borderRadiusSM:n}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:i,borderRadius:n},x(2*a)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},x(a)),{maxWidth:4*a,maxHeight:4*a}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},O=(e,t,a)=>{let{skeletonButtonCls:i}=e;return{[`${a}${i}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${a}${i}-round`]:{borderRadius:t}}},j=e=>Object.assign({width:2*e,minWidth:2*e},p(e)),S=e=>{let{borderRadiusSM:t,skeletonButtonCls:a,controlHeight:i,controlHeightLG:n,controlHeightSM:r,gradientFromColor:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:2*i,minWidth:2*i},j(i))},O(e,i,a)),{[`${a}-lg`]:Object.assign({},j(n))}),O(e,n,`${a}-lg`)),{[`${a}-sm`]:Object.assign({},j(r))}),O(e,r,`${a}-sm`))},E=e=>{let{componentCls:t,skeletonAvatarCls:a,skeletonTitleCls:i,skeletonParagraphCls:n,skeletonButtonCls:r,skeletonInputCls:l,skeletonImageCls:o,controlHeight:s,controlHeightLG:d,controlHeightSM:c,gradientFromColor:g,padding:$,marginSM:b,borderRadius:p,titleHeight:h,blockRadius:x,paragraphLiHeight:O,controlHeightXS:j,paragraphMarginTop:E}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},m(s)),[`${a}-circle`]:{borderRadius:"50%"},[`${a}-lg`]:Object.assign({},m(d)),[`${a}-sm`]:Object.assign({},m(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${i}`]:{width:"100%",height:h,background:g,borderRadius:x,[`+ ${n}`]:{marginBlockStart:c}},[`${n}`]:{padding:0,"> li":{width:"100%",height:O,listStyle:"none",background:g,borderRadius:x,"+ li":{marginBlockStart:j}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${i}, ${n} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[`${i}`]:{marginBlockStart:b,[`+ ${n}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},S(e)),f(e)),v(e)),y(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${i}, + ${n} > li, + ${a}, + ${r}, + ${l}, + ${o} + `]:Object.assign({},u(e))}}};var w=(0,g.Z)("Skeleton",e=>{let{componentCls:t}=e,a=(0,$.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[E(a)]},e=>{let{colorFillContent:t,colorFill:a}=e;return{color:t,colorGradientEnd:a,gradientFromColor:t,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),k=a(87462),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},z=a(84089),N=l.forwardRef(function(e,t){return l.createElement(z.Z,(0,k.Z)({},e,{ref:t,icon:C}))}),R=a(74902),T=e=>{let t=t=>{let{width:a,rows:i=2}=e;return Array.isArray(a)?a[t]:i-1===t?a:void 0},{prefixCls:a,className:i,style:r,rows:o}=e,s=(0,R.Z)(Array(o)).map((e,a)=>l.createElement("li",{key:a,style:{width:t(a)}}));return l.createElement("ul",{className:n()(a,i),style:r},s)},B=e=>{let{prefixCls:t,className:a,width:i,style:r}=e;return l.createElement("h3",{className:n()(t,a),style:Object.assign({width:i},r)})};function H(e){return e&&"object"==typeof e?e:{}}let M=e=>{let{prefixCls:t,loading:a,className:i,rootClassName:r,style:s,children:c,avatar:g=!1,title:$=!0,paragraph:b=!0,active:p,round:m}=e,{getPrefixCls:u,direction:h,skeleton:f}=l.useContext(o.E_),v=u("skeleton",t),[x,y]=w(v);if(a||!("loading"in e)){let e,t;let a=!!g,o=!!$,c=!!b;if(a){let t=Object.assign(Object.assign({prefixCls:`${v}-avatar`},o&&!c?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),H(g));e=l.createElement("div",{className:`${v}-header`},l.createElement(d,Object.assign({},t)))}if(o||c){let e,i;if(o){let t=Object.assign(Object.assign({prefixCls:`${v}-title`},!a&&c?{width:"38%"}:a&&c?{width:"50%"}:{}),H($));e=l.createElement(B,Object.assign({},t))}if(c){let e=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){let a={};return e&&t||(a.width="61%"),!e&&t?a.rows=3:a.rows=2,a}(a,o)),H(b));i=l.createElement(T,Object.assign({},e))}t=l.createElement("div",{className:`${v}-content`},e,i)}let u=n()(v,{[`${v}-with-avatar`]:a,[`${v}-active`]:p,[`${v}-rtl`]:"rtl"===h,[`${v}-round`]:m},null==f?void 0:f.className,i,r,y);return x(l.createElement("div",{className:u,style:Object.assign(Object.assign({},null==f?void 0:f.style),s)},e,t))}return void 0!==c?c:null};M.Button=e=>{let{prefixCls:t,className:a,rootClassName:i,active:s,block:c=!1,size:g="default"}=e,{getPrefixCls:$}=l.useContext(o.E_),b=$("skeleton",t),[p,m]=w(b),u=(0,r.Z)(e,["prefixCls"]),h=n()(b,`${b}-element`,{[`${b}-active`]:s,[`${b}-block`]:c},a,i,m);return p(l.createElement("div",{className:h},l.createElement(d,Object.assign({prefixCls:`${b}-button`,size:g},u))))},M.Avatar=e=>{let{prefixCls:t,className:a,rootClassName:i,active:s,shape:c="circle",size:g="default"}=e,{getPrefixCls:$}=l.useContext(o.E_),b=$("skeleton",t),[p,m]=w(b),u=(0,r.Z)(e,["prefixCls","className"]),h=n()(b,`${b}-element`,{[`${b}-active`]:s},a,i,m);return p(l.createElement("div",{className:h},l.createElement(d,Object.assign({prefixCls:`${b}-avatar`,shape:c,size:g},u))))},M.Input=e=>{let{prefixCls:t,className:a,rootClassName:i,active:s,block:c,size:g="default"}=e,{getPrefixCls:$}=l.useContext(o.E_),b=$("skeleton",t),[p,m]=w(b),u=(0,r.Z)(e,["prefixCls"]),h=n()(b,`${b}-element`,{[`${b}-active`]:s,[`${b}-block`]:c},a,i,m);return p(l.createElement("div",{className:h},l.createElement(d,Object.assign({prefixCls:`${b}-input`,size:g},u))))},M.Image=e=>{let{prefixCls:t,className:a,rootClassName:i,style:r,active:s}=e,{getPrefixCls:d}=l.useContext(o.E_),c=d("skeleton",t),[g,$]=w(c),b=n()(c,`${c}-element`,{[`${c}-active`]:s},a,i,$);return g(l.createElement("div",{className:b},l.createElement("div",{className:n()(`${c}-image`,a),style:r},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},l.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},M.Node=e=>{let{prefixCls:t,className:a,rootClassName:i,style:r,active:s,children:d}=e,{getPrefixCls:c}=l.useContext(o.E_),g=c("skeleton",t),[$,b]=w(g),p=n()(g,`${g}-element`,{[`${g}-active`]:s},b,a,i),m=null!=d?d:l.createElement(N,null);return $(l.createElement("div",{className:p},l.createElement("div",{className:n()(`${g}-image`,a),style:r},m)))};var I=a(44442),L=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]]);return a},W=e=>{var{prefixCls:t,className:a,hoverable:i=!0}=e,r=L(e,["prefixCls","className","hoverable"]);let{getPrefixCls:s}=l.useContext(o.E_),d=s("card",t),c=n()(`${d}-grid`,a,{[`${d}-grid-hoverable`]:i});return l.createElement("div",Object.assign({},r,{className:c}))},G=a(14747);let P=e=>{let{antCls:t,componentCls:a,headerHeight:i,cardPaddingBase:n,tabsMarginBottom:r}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,G.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},G.vS),{[` + > ${a}-typography, + > ${a}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:r,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},A=e=>{let{cardPaddingBase:t,colorBorderSecondary:a,cardShadow:i,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${n}px 0 0 0 ${a}, + 0 ${n}px 0 0 ${a}, + ${n}px ${n}px 0 0 ${a}, + ${n}px 0 0 0 ${a} inset, + 0 ${n}px 0 0 ${a} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}},_=e=>{let{componentCls:t,iconCls:a,actionsLiMargin:i,cardActionsIconSize:n,colorBorderSecondary:r,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,G.dF)()),{"& > li":{margin:i,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:2*e.cardActionsIconSize,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:n,lineHeight:`${n*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`}}})},q=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,G.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},G.vS),"&-description":{color:e.colorTextDescription}}),D=e=>{let{componentCls:t,cardPaddingBase:a,colorFillAlter:i}=e;return{[`${t}-head`]:{padding:`0 ${a}px`,background:i,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${a}px`}}},F=e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Z=e=>{let{antCls:t,componentCls:a,cardShadow:i,cardHeadPadding:n,colorBorderSecondary:r,boxShadowTertiary:l,cardPaddingBase:o,extraColor:s}=e;return{[a]:Object.assign(Object.assign({},(0,G.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:l},[`${a}-head`]:P(e),[`${a}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:o,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,G.dF)()),[`${a}-grid`]:A(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${a}-actions`]:_(e),[`${a}-meta`]:q(e)}),[`${a}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:i}},[`${a}-contain-grid`]:{[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:n}}},[`${a}-type-inner`]:D(e),[`${a}-loading`]:F(e),[`${a}-rtl`]:{direction:"rtl"}}},X=e=>{let{componentCls:t,cardPaddingSM:a,headerHeightSM:i,headerFontSizeSM:n}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${a}px`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:a}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:i,paddingTop:0,display:"flex",alignItems:"center"}}}}};var K=(0,g.Z)("Card",e=>{let t=(0,$.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Z(t),X(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})),V=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]]);return a};let J=l.forwardRef((e,t)=>{let a;let{prefixCls:i,className:d,rootClassName:c,style:g,extra:$,headStyle:b={},bodyStyle:p={},title:m,loading:u,bordered:h=!0,size:f,type:v,cover:x,actions:y,tabList:O,children:j,activeTabKey:S,defaultActiveTabKey:E,tabBarExtraContent:w,hoverable:k,tabProps:C={}}=e,z=V(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:N,direction:R,card:T}=l.useContext(o.E_),B=l.useMemo(()=>{let e=!1;return l.Children.forEach(j,t=>{t&&t.type&&t.type===W&&(e=!0)}),e},[j]),H=N("card",i),[L,G]=K(H),P=l.createElement(M,{loading:!0,active:!0,paragraph:{rows:4},title:!1},j),A=void 0!==S,_=Object.assign(Object.assign({},C),{[A?"activeKey":"defaultActiveKey"]:A?S:E,tabBarExtraContent:w}),q=(0,s.Z)(f),D=O?l.createElement(I.Z,Object.assign({size:q&&"default"!==q?q:"large"},_,{className:`${H}-head-tabs`,onChange:t=>{var a;null===(a=e.onTabChange)||void 0===a||a.call(e,t)},items:O.map(e=>{var{tab:t}=e;return Object.assign({label:t},V(e,["tab"]))})})):null;(m||$||D)&&(a=l.createElement("div",{className:`${H}-head`,style:b},l.createElement("div",{className:`${H}-head-wrapper`},m&&l.createElement("div",{className:`${H}-head-title`},m),$&&l.createElement("div",{className:`${H}-extra`},$)),D));let F=x?l.createElement("div",{className:`${H}-cover`},x):null,Z=l.createElement("div",{className:`${H}-body`,style:p},u?P:j),X=y&&y.length?l.createElement("ul",{className:`${H}-actions`},y.map((e,t)=>l.createElement("li",{style:{width:`${100/y.length}%`},key:`action-${t}`},l.createElement("span",null,e)))):null,J=(0,r.Z)(z,["onTabChange"]),Q=n()(H,null==T?void 0:T.className,{[`${H}-loading`]:u,[`${H}-bordered`]:h,[`${H}-hoverable`]:k,[`${H}-contain-grid`]:B,[`${H}-contain-tabs`]:O&&O.length,[`${H}-${q}`]:q,[`${H}-type-${v}`]:!!v,[`${H}-rtl`]:"rtl"===R},d,c,G),U=Object.assign(Object.assign({},null==T?void 0:T.style),g);return L(l.createElement("div",Object.assign({ref:t},J,{className:Q,style:U}),a,F,Z,X))});var Q=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);nt.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]]);return a};J.Grid=W,J.Meta=e=>{let{prefixCls:t,className:a,avatar:i,title:r,description:s}=e,d=Q(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=l.useContext(o.E_),g=c("card",t),$=n()(`${g}-meta`,a),b=i?l.createElement("div",{className:`${g}-meta-avatar`},i):null,p=r?l.createElement("div",{className:`${g}-meta-title`},r):null,m=s?l.createElement("div",{className:`${g}-meta-description`},s):null,u=p||m?l.createElement("div",{className:`${g}-meta-detail`},p,m):null;return l.createElement("div",Object.assign({},d,{className:$}),b,u)};var U=J}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/9-8bf443a54ad1b325.js b/pilot/server/static/_next/static/chunks/9-8bf443a54ad1b325.js new file mode 100644 index 000000000..cf672c721 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/9-8bf443a54ad1b325.js @@ -0,0 +1,27 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9],{63606:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=n(84089),a=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))})},80882:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},l=n(84089),a=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))})},88258:function(e,t,n){var o=n(67294),r=n(53124),i=n(32983);t.Z=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.E_),l=n("empty");switch(t){case"Table":case"List":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${l}-small`});default:return o.createElement(i.Z,null)}}},51009:function(e,t,n){n.d(t,{default:function(){return eQ}});var o=n(94184),r=n.n(o),i=n(87462),l=n(74902),a=n(4942),u=n(1413),c=n(97685),s=n(45987),d=n(71002),f=n(21770),p=n(80334),v=n(67294),m=n(8410),h=n(31131),g=n(15105),b=n(42550),S=v.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);return v.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var Z=n(64217),E=n(39983),y=function(e){var t,n=e.className,o=e.customizeIcon,i=e.customizeIconProps,l=e.onMouseDown,a=e.onClick,u=e.children;return t="function"==typeof o?o(i):o,v.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),l&&l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:v.createElement("span",{className:r()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},u))},x=v.forwardRef(function(e,t){var n,o,i=e.prefixCls,l=e.id,a=e.inputElement,c=e.disabled,s=e.tabIndex,d=e.autoFocus,f=e.autoComplete,m=e.editable,h=e.activeDescendantId,g=e.value,S=e.maxLength,w=e.onKeyDown,Z=e.onMouseDown,E=e.onChange,y=e.onPaste,x=e.onCompositionStart,C=e.onCompositionEnd,I=e.open,$=e.attrs,M=a||v.createElement("input",null),R=M,O=R.ref,N=R.props,D=N.onKeyDown,P=N.onChange,T=N.onMouseDown,z=N.onCompositionStart,k=N.onCompositionEnd,H=N.style;return(0,p.Kp)(!("maxLength"in M.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),M=v.cloneElement(M,(0,u.Z)((0,u.Z)((0,u.Z)({type:"search"},N),{},{id:l,ref:(0,b.sQ)(t,O),disabled:c,tabIndex:s,autoComplete:f||"off",autoFocus:d,className:r()("".concat(i,"-selection-search-input"),null===(n=M)||void 0===n?void 0:null===(o=n.props)||void 0===o?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":I?h:void 0},$),{},{value:m?g:"",maxLength:S,readOnly:!m,unselectable:m?null:"on",style:(0,u.Z)((0,u.Z)({},H),{},{opacity:m?null:0}),onKeyDown:function(e){w(e),D&&D(e)},onMouseDown:function(e){Z(e),T&&T(e)},onChange:function(e){E(e),P&&P(e)},onCompositionStart:function(e){x(e),z&&z(e)},onCompositionEnd:function(e){C(e),k&&k(e)},onPaste:y}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}x.displayName="Input";var I="undefined"!=typeof window&&window.document&&window.document.documentElement;function $(e){return["string","number"].includes((0,d.Z)(e))}function M(e){var t=void 0;return e&&($(e.title)?t=e.title.toString():$(e.label)&&(t=e.label.toString())),t}function R(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var O=function(e){e.preventDefault(),e.stopPropagation()},N=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,u=e.open,s=e.searchValue,d=e.autoClearSearchValue,f=e.inputRef,p=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,S=e.autoComplete,w=e.activeDescendantId,C=e.tabIndex,$=e.removeIcon,N=e.maxTagCount,D=e.maxTagTextLength,P=e.maxTagPlaceholder,T=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,z=e.tagRender,k=e.onToggleOpen,H=e.onRemove,L=e.onInputChange,V=e.onInputPaste,j=e.onInputKeyDown,W=e.onInputMouseDown,A=e.onInputCompositionStart,_=e.onInputCompositionEnd,F=v.useRef(null),B=(0,v.useState)(0),K=(0,c.Z)(B,2),Y=K[0],X=K[1],U=(0,v.useState)(!1),G=(0,c.Z)(U,2),Q=G[0],J=G[1],q="".concat(i,"-selection"),ee=u||"multiple"===h&&!1===d||"tags"===h?s:"",et="tags"===h||"multiple"===h&&!1===d||g&&(u||Q);function en(e,t,n,o,i){return v.createElement("span",{className:r()("".concat(q,"-item"),(0,a.Z)({},"".concat(q,"-item-disabled"),n)),title:M(e)},v.createElement("span",{className:"".concat(q,"-item-content")},t),o&&v.createElement(y,{className:"".concat(q,"-item-remove"),onMouseDown:O,onClick:i,customizeIcon:$},"\xd7"))}t=function(){X(F.current.scrollWidth)},n=[ee],I?v.useLayoutEffect(t,n):v.useEffect(t,n);var eo=v.createElement("div",{className:"".concat(q,"-search"),style:{width:Y},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},v.createElement(x,{ref:f,open:u,prefixCls:i,id:o,inputElement:null,disabled:m,autoFocus:b,autoComplete:S,editable:et,activeDescendantId:w,value:ee,onKeyDown:j,onMouseDown:W,onChange:L,onPaste:V,onCompositionStart:A,onCompositionEnd:_,tabIndex:C,attrs:(0,Z.Z)(e,!0)}),v.createElement("span",{ref:F,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),er=v.createElement(E.Z,{prefixCls:"".concat(q,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,o=e.label,r=e.value,i=!m&&!n,l=o;if("number"==typeof D&&("string"==typeof o||"number"==typeof o)){var a=String(l);a.length>D&&(l="".concat(a.slice(0,D),"..."))}var c=function(t){t&&t.stopPropagation(),H(e)};return"function"==typeof z?(t=l,v.createElement("span",{onMouseDown:function(e){O(e),k(!u)}},z({label:t,value:r,disabled:n,closable:i,onClose:c}))):en(e,l,n,i,c)},renderRest:function(e){var t="function"==typeof T?T(e):T;return en({title:t},t,!1)},suffix:eo,itemKey:R,maxCount:N});return v.createElement(v.Fragment,null,er,!l.length&&!ee&&v.createElement("span",{className:"".concat(q,"-placeholder")},p))},D=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,l=e.autoFocus,a=e.autoComplete,u=e.activeDescendantId,s=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,S=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,y=e.onInputChange,C=e.onInputPaste,I=e.onInputCompositionStart,$=e.onInputCompositionEnd,R=e.title,O=v.useState(!1),N=(0,c.Z)(O,2),D=N[0],P=N[1],T="combobox"===s,z=T||h,k=f[0],H=g||"";T&&b&&!D&&(H=b),v.useEffect(function(){T&&P(!1)},[T,b]);var L=("combobox"===s||!!d||!!h)&&!!H,V=void 0===R?M(k):R;return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(x,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:a,editable:z,activeDescendantId:u,value:H,onKeyDown:w,onMouseDown:E,onChange:function(e){P(!0),y(e)},onPaste:C,onCompositionStart:I,onCompositionEnd:$,tabIndex:m,attrs:(0,Z.Z)(e,!0),maxLength:T?S:void 0})),!T&&k?v.createElement("span",{className:"".concat(n,"-selection-item"),title:V,style:L?{visibility:"hidden"}:void 0},k.label):null,k?null:v.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},p))},P=v.forwardRef(function(e,t){var n=(0,v.useRef)(null),o=(0,v.useRef)(!1),r=e.prefixCls,l=e.open,a=e.mode,u=e.showSearch,s=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;v.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var S=w(0),Z=(0,c.Z)(S,2),E=Z[0],y=Z[1],x=(0,v.useRef)(null),C=function(e){!1!==f(e,!0,o.current)&&m(!0)},I={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===g.Z.UP||t===g.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==g.Z.ENTER||"tags"!==a||o.current||l||null==p||p(e.target.value),[g.Z.ESC,g.Z.SHIFT,g.Z.BACKSPACE,g.Z.TAB,g.Z.WIN_KEY,g.Z.ALT,g.Z.META,g.Z.WIN_KEY_RIGHT,g.Z.CTRL,g.Z.SEMICOLON,g.Z.EQUALS,g.Z.CAPS_LOCK,g.Z.CONTEXT_MENU,g.Z.F1,g.Z.F2,g.Z.F3,g.Z.F4,g.Z.F5,g.Z.F6,g.Z.F7,g.Z.F8,g.Z.F9,g.Z.F10,g.Z.F11,g.Z.F12].includes(t)||m(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(s&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");x.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==a&&C(e.target.value)}},$="multiple"===a||"tags"===a?v.createElement(N,(0,i.Z)({},e,I)):v.createElement(D,(0,i.Z)({},e,I));return v.createElement("div",{ref:b,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=E();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||u&&t)&&l||(l&&!1!==d&&f("",!0,!1),m())}},$)});P.displayName="Selector";var T=n(40228),z=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],k=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},H=v.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,c=e.popupElement,d=e.containerWidth,f=e.animation,p=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,b=e.placement,S=e.builtinPlacements,w=e.dropdownMatchSelectWidth,Z=e.dropdownRender,E=e.dropdownAlign,y=e.getPopupContainer,x=e.empty,C=e.getTriggerDOMNode,I=e.onPopupVisibleChange,$=e.onPopupMouseEnter,M=(0,s.Z)(e,z),R="".concat(n,"-dropdown"),O=c;Z&&(O=Z(c));var N=v.useMemo(function(){return S||k(w)},[S,w]),D=f?"".concat(R,"-").concat(f):p,P=v.useRef(null);v.useImperativeHandle(t,function(){return{getPopupElement:function(){return P.current}}});var H=(0,u.Z)({minWidth:d},m);return"number"==typeof w?H.width=w:w&&(H.width=d),v.createElement(T.Z,(0,i.Z)({},M,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:R,popupTransitionName:D,popup:v.createElement("div",{ref:P,onMouseEnter:$},O),popupAlign:E,popupVisible:o,getPopupContainer:y,popupClassName:r()(h,(0,a.Z)({},"".concat(R,"-empty"),x)),popupStyle:H,getTriggerDOMNode:C,onPopupVisibleChange:I}),l)});H.displayName="SelectTrigger";var L=n(84506);function V(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function j(e,t){var n=e||{},o=n.label,r=n.value,i=n.options,l=n.groupLabel,a=o||(t?"children":"label");return{label:a,value:r||"value",options:i||"options",groupLabel:l||a}}function W(e){var t=(0,u.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,p.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var A=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function F(e){return"tags"===e||"multiple"===e}var B=v.forwardRef(function(e,t){var n,o,p,Z,E,x,C,I,$=e.id,M=e.prefixCls,R=e.className,O=e.showSearch,N=e.tagRender,D=e.direction,T=e.omitDomProps,z=e.displayValues,k=e.onDisplayValuesChange,V=e.emptyOptions,j=e.notFoundContent,W=void 0===j?"Not Found":j,B=e.onClear,K=e.mode,Y=e.disabled,X=e.loading,U=e.getInputElement,G=e.getRawInputElement,Q=e.open,J=e.defaultOpen,q=e.onDropdownVisibleChange,ee=e.activeValue,et=e.onActiveValueChange,en=e.activeDescendantId,eo=e.searchValue,er=e.autoClearSearchValue,ei=e.onSearch,el=e.onSearchSplit,ea=e.tokenSeparators,eu=e.allowClear,ec=e.suffixIcon,es=e.clearIcon,ed=e.OptionList,ef=e.animation,ep=e.transitionName,ev=e.dropdownStyle,em=e.dropdownClassName,eh=e.dropdownMatchSelectWidth,eg=e.dropdownRender,eb=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,eZ=e.getPopupContainer,eE=e.showAction,ey=void 0===eE?[]:eE,ex=e.onFocus,eC=e.onBlur,eI=e.onKeyUp,e$=e.onKeyDown,eM=e.onMouseDown,eR=(0,s.Z)(e,A),eO=F(K),eN=(void 0!==O?O:eO)||"combobox"===K,eD=(0,u.Z)({},eR);_.forEach(function(e){delete eD[e]}),null==T||T.forEach(function(e){delete eD[e]});var eP=v.useState(!1),eT=(0,c.Z)(eP,2),ez=eT[0],ek=eT[1];v.useEffect(function(){ek((0,h.Z)())},[]);var eH=v.useRef(null),eL=v.useRef(null),eV=v.useRef(null),ej=v.useRef(null),eW=v.useRef(null),eA=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=(0,c.Z)(t,2),o=n[0],r=n[1],i=v.useRef(null),l=function(){window.clearTimeout(i.current)};return v.useEffect(function(){return l},[]),[o,function(t,n){l(),i.current=window.setTimeout(function(){r(t),n&&n()},e)},l]}(),e_=(0,c.Z)(eA,3),eF=e_[0],eB=e_[1],eK=e_[2];v.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ej.current)||void 0===e?void 0:e.focus,blur:null===(t=ej.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eW.current)||void 0===t?void 0:t.scrollTo(e)}}});var eY=v.useMemo(function(){if("combobox"!==K)return eo;var e,t=null===(e=z[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[eo,K,z]),eX="combobox"===K&&"function"==typeof U&&U()||null,eU="function"==typeof G&&G(),eG=(0,b.x1)(eL,null==eU?void 0:null===(Z=eU.props)||void 0===Z?void 0:Z.ref),eQ=v.useState(!1),eJ=(0,c.Z)(eQ,2),eq=eJ[0],e0=eJ[1];(0,m.Z)(function(){e0(!0)},[]);var e1=(0,f.Z)(!1,{defaultValue:J,value:Q}),e2=(0,c.Z)(e1,2),e4=e2[0],e6=e2[1],e8=!!eq&&e4,e9=!W&&V;(Y||e9&&e8&&"combobox"===K)&&(e8=!1);var e5=!e9&&e8,e7=v.useCallback(function(e){var t=void 0!==e?e:!e8;Y||(e6(t),e8!==t&&(null==q||q(t)))},[Y,e8,e6,q]),e3=v.useMemo(function(){return(ea||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ea]),te=function(e,t,n){var o=!0,r=e;null==et||et(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,L.Z)(o),i=r[0],a=r.slice(1);if(!i)return[t];var u=t.split(i);return n=n||u.length>1,u.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,a)))},[]).filter(function(e){return e})}(e,t);return n?o:null}(e,ea);return"combobox"!==K&&i&&(r="",null==el||el(i),e7(!1),o=!1),ei&&eY!==r&&ei(r,{source:t?"typing":"effect"}),o};v.useEffect(function(){e8||eO||"combobox"===K||te("",!1,!1)},[e8]),v.useEffect(function(){e4&&Y&&e6(!1),Y&&eB(!1)},[Y]);var tt=w(),tn=(0,c.Z)(tt,2),to=tn[0],tr=tn[1],ti=v.useRef(!1),tl=[];v.useEffect(function(){return function(){tl.forEach(function(e){return clearTimeout(e)}),tl.splice(0,tl.length)}},[]);var ta=v.useState(null),tu=(0,c.Z)(ta,2),tc=tu[0],ts=tu[1],td=v.useState({}),tf=(0,c.Z)(td,2)[1];(0,m.Z)(function(){if(e5){var e,t=Math.ceil(null===(e=eH.current)||void 0===e?void 0:e.getBoundingClientRect().width);tc===t||Number.isNaN(t)||ts(t)}},[e5]),eU&&(x=function(e){e7(e)}),n=function(){var e;return[eH.current,null===(e=eV.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eU,(p=v.useRef(null)).current={open:e5,triggerOpen:e7,customizedTrigger:o},v.useEffect(function(){function e(e){if(null===(t=p.current)||void 0===t||!t.customizedTrigger){var t,o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),p.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&p.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tp=v.useMemo(function(){return(0,u.Z)((0,u.Z)({},e),{},{notFoundContent:W,open:e8,triggerOpen:e5,id:$,showSearch:eN,multiple:eO,toggleOpen:e7})},[e,W,e5,e8,$,eN,eO,e7]),tv=!!ec||X;tv&&(C=v.createElement(y,{className:r()("".concat(M,"-arrow"),(0,a.Z)({},"".concat(M,"-arrow-loading"),X)),customizeIcon:ec,customizeIconProps:{loading:X,searchValue:eY,open:e8,focused:eF,showSearch:eN}}));var tm=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,u=v.useMemo(function(){return"object"===(0,d.Z)(o)?o.clearIcon:r||void 0},[o,r]);return{allowClear:v.useMemo(function(){return!i&&!!o&&(!!n.length||!!l)&&!("combobox"===a&&""===l)},[o,i,n.length,l,a]),clearIcon:v.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"\xd7")}}(M,function(){var e;null==B||B(),null===(e=ej.current)||void 0===e||e.focus(),k([],{type:"clear",values:z}),te("",!1,!1)},z,eu,es,Y,eY,K),th=tm.allowClear,tg=tm.clearIcon,tb=v.createElement(ed,{ref:eW}),tS=r()(M,R,(E={},(0,a.Z)(E,"".concat(M,"-focused"),eF),(0,a.Z)(E,"".concat(M,"-multiple"),eO),(0,a.Z)(E,"".concat(M,"-single"),!eO),(0,a.Z)(E,"".concat(M,"-allow-clear"),eu),(0,a.Z)(E,"".concat(M,"-show-arrow"),tv),(0,a.Z)(E,"".concat(M,"-disabled"),Y),(0,a.Z)(E,"".concat(M,"-loading"),X),(0,a.Z)(E,"".concat(M,"-open"),e8),(0,a.Z)(E,"".concat(M,"-customize-input"),eX),(0,a.Z)(E,"".concat(M,"-show-search"),eN),E)),tw=v.createElement(H,{ref:eV,disabled:Y,prefixCls:M,visible:e5,popupElement:tb,containerWidth:tc,animation:ef,transitionName:ep,dropdownStyle:ev,dropdownClassName:em,direction:D,dropdownMatchSelectWidth:eh,dropdownRender:eg,dropdownAlign:eb,placement:eS,builtinPlacements:ew,getPopupContainer:eZ,empty:V,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:x,onPopupMouseEnter:function(){tf({})}},eU?v.cloneElement(eU,{ref:eG}):v.createElement(P,(0,i.Z)({},e,{domRef:eL,prefixCls:M,inputElement:eX,ref:ej,id:$,showSearch:eN,autoClearSearchValue:er,mode:K,activeDescendantId:en,tagRender:N,values:z,open:e8,onToggleOpen:e7,activeValue:ee,searchValue:eY,onSearch:te,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){k(z.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:e3})));return I=eU?tw:v.createElement("div",(0,i.Z)({className:tS},eD,{ref:eH,onMouseDown:function(e){var t,n=e.target,o=null===(t=eV.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=tl.indexOf(r);-1!==t&&tl.splice(t,1),eK(),ez||o.contains(document.activeElement)||null===(e=ej.current)||void 0===e||e.focus()});tl.push(r)}for(var i=arguments.length,l=Array(i>1?i-1:0),a=1;a=0;a-=1){var u=r[a];if(!u.disabled){r.splice(a,1),i=u;break}}i&&k(r,{type:"remove",values:[i]})}for(var c=arguments.length,s=Array(c>1?c-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},o=k[e];if(!o){C(null,-1,n);return}C(o.value,e,n)};(0,v.useEffect)(function(){B(!1!==I?j(0):-1)},[k.length,m]);var K=v.useCallback(function(e){return R.has(e)&&"combobox"!==p},[p,(0,l.Z)(R).toString(),R.size]);(0,v.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&d&&1===R.size){var e=Array.from(R)[0],t=k.findIndex(function(t){return t.data.value===e});-1!==t&&(B(t),V(t))}});return d&&(null===(e=H.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[d,m,x.length]);var Y=function(e){void 0!==e&&$(e,{selected:!R.has(e)}),f||h(!1)};if(v.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case g.Z.N:case g.Z.P:case g.Z.UP:case g.Z.DOWN:var o=0;if(t===g.Z.UP?o=-1:t===g.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===g.Z.N?o=1:t===g.Z.P&&(o=-1)),0!==o){var r=j(_+o,o);V(r),B(r,!0)}break;case g.Z.ENTER:var i=k[_];i&&!i.data.disabled?Y(i.value):Y(void 0),d&&e.preventDefault();break;case g.Z.ESC:h(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){V(e)}}}),0===k.length)return v.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(z,"-empty"),onMouseDown:L},b);var X=Object.keys(O).map(function(e){return O[e]}),U=function(e){return e.label};function G(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var Q=function(e){var t=k[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,l=(0,Z.Z)(n,!0),a=U(t);return t?v.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof a||r?null:a},l,{key:e},G(t,e),{"aria-selected":K(o)}),o):null},J={role:"listbox",id:"".concat(u,"_list")};return v.createElement(v.Fragment,null,N&&v.createElement("div",(0,i.Z)({},J,{style:{height:0,width:0,overflow:"hidden"}}),Q(_-1),Q(_),Q(_+1)),v.createElement(ei.Z,{itemKey:"key",ref:H,data:k,height:P,itemHeight:T,fullHeight:!1,onMouseDown:L,onScroll:w,virtual:N,direction:D,innerProps:N?null:J},function(e,t){var n=e.group,o=e.groupOption,l=e.data,u=e.label,c=e.value,d=l.key;if(n){var f,p,m=null!==(p=l.title)&&void 0!==p?p:eu(u)?u.toString():void 0;return v.createElement("div",{className:r()(z,"".concat(z,"-group")),title:m},void 0!==u?u:d)}var h=l.disabled,g=l.title,b=(l.children,l.style),S=l.className,w=(0,s.Z)(l,ea),E=(0,er.Z)(w,X),x=K(c),C="".concat(z,"-option"),I=r()(z,C,S,(f={},(0,a.Z)(f,"".concat(C,"-grouped"),o),(0,a.Z)(f,"".concat(C,"-active"),_===t&&!h),(0,a.Z)(f,"".concat(C,"-disabled"),h),(0,a.Z)(f,"".concat(C,"-selected"),x),f)),$=U(e),R=!M||"function"==typeof M||x,O="number"==typeof $?$:$||c,D=eu(O)?O.toString():void 0;return void 0!==g&&(D=g),v.createElement("div",(0,i.Z)({},(0,Z.Z)(E),N?{}:G(e,t),{"aria-selected":x,className:I,title:D,onMouseMove:function(){_===t||h||B(t)},onClick:function(){h||Y(c)},style:b}),v.createElement("div",{className:"".concat(C,"-content")},O),v.isValidElement(M)||x,R&&v.createElement(y,{className:"".concat(z,"-option-state"),customizeIcon:M,customizeIconProps:{isSelected:x}},x?"✓":null))}))});ec.displayName="OptionList";var es=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ed=["inputValue"],ef=v.forwardRef(function(e,t){var n,o,r,p,m,h=e.id,g=e.mode,b=e.prefixCls,S=e.backfill,w=e.fieldNames,Z=e.inputValue,E=e.searchValue,y=e.onSearch,x=e.autoClearSearchValue,I=void 0===x||x,$=e.onSelect,M=e.onDeselect,R=e.dropdownMatchSelectWidth,O=void 0===R||R,N=e.filterOption,D=e.filterSort,P=e.optionFilterProp,T=e.optionLabelProp,z=e.options,k=e.children,H=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,A=e.virtual,_=e.direction,X=e.listHeight,et=void 0===X?200:X,en=e.listItemHeight,eo=void 0===en?20:en,er=e.value,ei=e.defaultValue,ea=e.labelInValue,eu=e.onChange,ef=(0,s.Z)(e,es),ep=(n=v.useState(),r=(o=(0,c.Z)(n,2))[0],p=o[1],v.useEffect(function(){var e;p("rc_select_".concat((G?(e=U,U+=1):e="TEST_OR_SSR",e)))},[]),h||r),ev=F(g),em=!!(!z&&k),eh=v.useMemo(function(){return(void 0!==N||"combobox"!==g)&&N},[N,g]),eg=v.useMemo(function(){return j(w,em)},[JSON.stringify(w),em]),eb=(0,f.Z)("",{value:void 0!==E?E:Z,postState:function(e){return e||""}}),eS=(0,c.Z)(eb,2),ew=eS[0],eZ=eS[1],eE=v.useMemo(function(){var e=z;z||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Q.Z)(t).map(function(t,o){if(!v.isValidElement(t)||!t.type)return null;var r,i,l,a,c,d=t.type.isSelectOptGroup,f=t.key,p=t.props,m=p.children,h=(0,s.Z)(p,q);return n||!d?(r=t.key,l=(i=t.props).children,a=i.value,c=(0,s.Z)(i,J),(0,u.Z)({key:r,value:void 0!==a?a:r,children:l},c)):(0,u.Z)((0,u.Z)({key:"__RC_SELECT_GRP__".concat(null===f?o:f,"__"),label:f},h),{},{options:e(m)})}).filter(function(e){return e})}(k));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=j(n,!1),l=i.label,a=i.value,u=i.options,c=i.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&u in t){var i=t[c];void 0===i&&o&&(i=t.label),r.push({key:V(t,r.length),group:!0,data:t,label:i}),e(t[u],!0)}else{var s=t[a];r.push({key:V(t,r.length),groupOption:n,data:t,label:t[l],value:s})}})}(e,!1),r}(ej,{fieldNames:eg,childrenAsData:em})},[ej,eg,em]),eA=function(e){var t=eI(e);if(eO(t),eu&&(t.length!==eP.length||t.some(function(e,t){var n;return(null===(n=eP[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=ea?t:t.map(function(e){return e.value}),o=t.map(function(e){return W(eT(e.value))});eu(ev?n:n[0],ev?o:o[0])}},e_=v.useState(null),eF=(0,c.Z)(e_,2),eB=eF[0],eK=eF[1],eY=v.useState(0),eX=(0,c.Z)(eY,2),eU=eX[0],eG=eX[1],eQ=void 0!==H?H:"combobox"!==g,eJ=v.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;eG(t),S&&"combobox"===g&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eK(String(e))},[S,g]),eq=function(e,t,n){var o=function(){var t,n=eT(e);return[ea?{label:null==n?void 0:n[eg.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,W(n)]};if(t&&$){var r=o(),i=(0,c.Z)(r,2);$(i[0],i[1])}else if(!t&&M&&"clear"!==n){var l=o(),a=(0,c.Z)(l,2);M(a[0],a[1])}},e0=ee(function(e,t){var n=!ev||t.selected;eA(n?ev?[].concat((0,l.Z)(eP),[e]):[e]:eP.filter(function(t){return t.value!==e})),eq(e,n),"combobox"===g?eK(""):(!F||I)&&(eZ(""),eK(""))}),e1=v.useMemo(function(){var e=!1!==A&&!1!==O;return(0,u.Z)((0,u.Z)({},eE),{},{flattenOptions:eW,onActiveValue:eJ,defaultActiveFirstOption:eQ,onSelect:e0,menuItemSelectedIcon:L,rawValues:ek,fieldNames:eg,virtual:e,direction:_,listHeight:et,listItemHeight:eo,childrenAsData:em})},[eE,eW,eJ,eQ,e0,L,ek,eg,A,O,et,eo,em]);return v.createElement(el.Provider,{value:e1},v.createElement(B,(0,i.Z)({},ef,{id:ep,prefixCls:void 0===b?"rc-select":b,ref:t,omitDomProps:ed,mode:g,displayValues:ez,onDisplayValuesChange:function(e,t){eA(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){eq(e.value,!1,n)})},direction:_,searchValue:ew,onSearch:function(e,t){if(eZ(e),eK(null),"submit"===t.source){var n=(e||"").trim();n&&(eA(Array.from(new Set([].concat((0,l.Z)(ek),[n])))),eq(n,!0),eZ(""));return}"blur"!==t.source&&("combobox"===g&&eA(e),null==y||y(e))},autoClearSearchValue:I,onSearchSplit:function(e){var t=e;"tags"!==g&&(t=e.map(function(e){var t=ex.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(ek),(0,l.Z)(t))));eA(n),n.forEach(function(e){eq(e,!0)})},dropdownMatchSelectWidth:O,OptionList:ec,emptyOptions:!eW.length,activeValue:eB,activeDescendantId:"".concat(ep,"_list_").concat(eU)})))});ef.Option=en,ef.OptGroup=et;var ep=n(8745),ev=n(33603),em=n(9708),eh=n(53124),eg=n(98866),eb=n(88258),eS=n(98675),ew=n(65223),eZ=n(4173),eE=n(14747),ey=n(80110),ex=n(45503),eC=n(67968),eI=n(67771),e$=n(33297);let eM=e=>{let{controlPaddingHorizontal:t,controlHeight:n,fontSize:o,lineHeight:r}=e;return{position:"relative",display:"block",minHeight:n,padding:`${(n-o*r)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}};var eR=e=>{let{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${r}${a}bottomLeft, + ${i}${a}bottomLeft + `]:{animationName:eI.fJ},[` + ${r}${a}topLeft, + ${i}${a}topLeft, + ${r}${a}topRight, + ${i}${a}topRight + `]:{animationName:eI.Qt},[`${l}${a}bottomLeft`]:{animationName:eI.Uw},[` + ${l}${a}topLeft, + ${l}${a}topRight + `]:{animationName:eI.ly},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},eM(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},eE.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,eI.oN)(e,"slide-up"),(0,eI.oN)(e,"slide-down"),(0,e$.Fm)(e,"move-up"),(0,e$.Fm)(e,"move-down")]};let eO=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e,r=(n-t)/2-o;return[r,Math.ceil(r/2)]};function eN(e,t){let{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[l]=eO(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${l-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,eE.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,[` + &-input, + &-mirror + `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var eD=e=>{let{componentCls:t}=e,n=(0,ex.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,ex.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,r]=eO(e);return[eN(e),eN(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},eN(o,"lg")]};function eP(e,t){let{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}let eT=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ez=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:Object.assign(Object.assign({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r}})}}},ek=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},eH=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},eT(e)),ek(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},eE.vS),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},eE.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,eE.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},eL=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},eH(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[eP(e),eP((0,ex.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:1.5*e.fontSize}}}},eP((0,ex.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),eD(e),eR(e),{[`${t}-rtl`]:{direction:"rtl"}},ez(t,(0,ex.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ez(`${t}-status-error`,(0,ex.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ez(`${t}-status-warning`,(0,ex.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,ey.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var eV=(0,eC.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,o=(0,ex.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[eL(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let ej=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var eW=n(63606),eA=n(4340),e_=n(97937),eF=n(80882),eB=n(50888),eK=n(68795),eY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let eX="SECRET_COMBOBOX_MODE_DO_NOT_USE",eU=v.forwardRef((e,t)=>{let n;var o,i,l,{prefixCls:a,bordered:u=!0,className:c,rootClassName:s,getPopupContainer:d,popupClassName:f,dropdownClassName:p,listHeight:m=256,placement:h,listItemHeight:g=24,size:b,disabled:S,notFoundContent:w,status:Z,builtinPlacements:E,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:C,style:I,allowClear:$}=e,M=eY(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);let{getPopupContainer:R,getPrefixCls:O,renderEmpty:N,direction:D,virtual:P,popupMatchSelectWidth:T,popupOverflow:z,select:k}=v.useContext(eh.E_),H=O("select",a),L=O(),V=null!=C?C:D,{compactSize:j,compactItemClassnames:W}=(0,eZ.ri)(H,V),[A,_]=eV(H),F=v.useMemo(()=>{let{mode:e}=M;return"combobox"===e?void 0:e===eX?"combobox":e},[M.mode]),B=(o=M.suffixIcon,void 0!==(i=M.showArrow)?i:null!==o),K=null!==(l=null!=x?x:y)&&void 0!==l?l:T,{status:Y,hasFeedback:X,isFormItemInput:U,feedbackIcon:G}=v.useContext(ew.aM),Q=(0,em.F)(Y,Z);n=void 0!==w?w:"combobox"===F?null:(null==N?void 0:N("Select"))||v.createElement(eb.Z,{componentName:"Select"});let{suffixIcon:J,itemIcon:q,removeIcon:ee,clearIcon:et}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:l,hasFeedback:a,prefixCls:u,showSuffixIcon:c,feedbackIcon:s,showArrow:d,componentName:f}=e,p=null!=n?n:v.createElement(eA.Z,null),m=e=>null!==t||a||d?v.createElement(v.Fragment,null,!1!==c&&e,a&&s):null,h=null;if(void 0!==t)h=m(t);else if(i)h=m(v.createElement(eB.Z,{spin:!0}));else{let e=`${u}-suffix`;h=t=>{let{open:n,showSearch:o}=t;return n&&o?m(v.createElement(eK.Z,{className:e})):m(v.createElement(eF.Z,{className:e}))}}let g=null;return g=void 0!==o?o:l?v.createElement(eW.Z,null):null,{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:void 0!==r?r:v.createElement(e_.Z,null)}}(Object.assign(Object.assign({},M),{multiple:"multiple"===F||"tags"===F,hasFeedback:X,feedbackIcon:G,showSuffixIcon:B,prefixCls:H,showArrow:M.showArrow,componentName:"Select"})),en=(0,er.Z)(M,["suffixIcon","itemIcon"]),eo=r()(f||p,{[`${H}-dropdown-${V}`]:"rtl"===V},s,_),ei=(0,eS.Z)(e=>{var t;return null!==(t=null!=b?b:j)&&void 0!==t?t:e}),el=v.useContext(eg.Z),ea=r()({[`${H}-lg`]:"large"===ei,[`${H}-sm`]:"small"===ei,[`${H}-rtl`]:"rtl"===V,[`${H}-borderless`]:!u,[`${H}-in-form-item`]:U},(0,em.Z)(H,Q,X),W,null==k?void 0:k.className,c,s,_),eu=v.useMemo(()=>void 0!==h?h:"rtl"===V?"bottomRight":"bottomLeft",[h,V]),ec=E||ej(z);return A(v.createElement(ef,Object.assign({ref:t,virtual:P,showSearch:null==k?void 0:k.showSearch},en,{style:Object.assign(Object.assign({},null==k?void 0:k.style),I),dropdownMatchSelectWidth:K,builtinPlacements:ec,transitionName:(0,ev.m)(L,"slide-up",M.transitionName),listHeight:m,listItemHeight:g,mode:F,prefixCls:H,placement:eu,direction:V,suffixIcon:J,menuItemSelectedIcon:q,removeIcon:ee,allowClear:!0===$?{clearIcon:et}:$,notFoundContent:n,className:ea,getPopupContainer:d||R,dropdownClassName:eo,disabled:null!=S?S:el})))}),eG=(0,ep.Z)(eU);eU.SECRET_COMBOBOX_MODE_DO_NOT_USE=eX,eU.Option=en,eU.OptGroup=et,eU._InternalPanelDoNotUseOrYouWillBeFired=eG;var eQ=eU},85344:function(e,t,n){n.d(t,{Z:function(){return P}});var o=n(87462),r=n(1413),i=n(71002),l=n(97685),a=n(4942),u=n(45987),c=n(67294),s=n(73935),d=n(94184),f=n.n(d),p=n(9220),v=c.forwardRef(function(e,t){var n,i=e.height,l=e.offsetY,u=e.offsetX,s=e.children,d=e.prefixCls,v=e.onInnerResize,m=e.innerProps,h=e.rtl,g=e.extra,b={},S={display:"flex",flexDirection:"column"};return void 0!==l&&(b={height:i,position:"relative",overflow:"hidden"},S=(0,r.Z)((0,r.Z)({},S),{},(n={transform:"translateY(".concat(l,"px)")},(0,a.Z)(n,h?"marginRight":"marginLeft",-u),(0,a.Z)(n,"position","absolute"),(0,a.Z)(n,"left",0),(0,a.Z)(n,"right",0),(0,a.Z)(n,"top",0),n))),c.createElement("div",{style:b},c.createElement(p.Z,{onResize:function(e){e.offsetHeight&&v&&v()}},c.createElement("div",(0,o.Z)({style:S,className:f()((0,a.Z)({},"".concat(d,"-holder-inner"),d)),ref:t},m),s,g)))});v.displayName="Filler";var m=n(75164);function h(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var g=c.forwardRef(function(e,t){var n,o=e.prefixCls,r=e.rtl,i=e.scrollOffset,u=e.scrollRange,s=e.onStartMove,d=e.onStopMove,p=e.onScroll,v=e.horizontal,g=e.spinSize,b=e.containerSize,S=c.useState(!1),w=(0,l.Z)(S,2),Z=w[0],E=w[1],y=c.useState(null),x=(0,l.Z)(y,2),C=x[0],I=x[1],$=c.useState(null),M=(0,l.Z)($,2),R=M[0],O=M[1],N=!r,D=c.useRef(),P=c.useRef(),T=c.useState(!1),z=(0,l.Z)(T,2),k=z[0],H=z[1],L=c.useRef(),V=function(){clearTimeout(L.current),H(!0),L.current=setTimeout(function(){H(!1)},3e3)},j=u-b||0,W=b-g||0,A=j>0,_=c.useMemo(function(){return 0===i||0===j?0:i/j*W},[i,j,W]),F=c.useRef({top:_,dragging:Z,pageY:C,startTop:R});F.current={top:_,dragging:Z,pageY:C,startTop:R};var B=function(e){E(!0),I(h(e,v)),O(F.current.top),s(),e.stopPropagation(),e.preventDefault()};c.useEffect(function(){var e=function(e){e.preventDefault()},t=D.current,n=P.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",B),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}},[]);var K=c.useRef();K.current=j;var Y=c.useRef();Y.current=W,c.useEffect(function(){if(Z){var e,t=function(t){var n=F.current,o=n.dragging,r=n.pageY,i=n.startTop;if(m.Z.cancel(e),o){var l=h(t,v)-r,a=i;!N&&v?a-=l:a+=l;var u=K.current,c=Y.current,s=Math.ceil((c?a/c:0)*u);s=Math.min(s=Math.max(s,0),u),e=(0,m.Z)(function(){p(s,v)})}},n=function(){E(!1),d()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),m.Z.cancel(e)}}},[Z]),c.useEffect(function(){V()},[i]),c.useImperativeHandle(t,function(){return{delayHidden:V}});var X="".concat(o,"-scrollbar"),U={position:"absolute",visibility:k&&A?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return v?(U.height=8,U.left=0,U.right=0,U.bottom=0,G.height="100%",G.width=g,N?G.left=_:G.right=_):(U.width=8,U.top=0,U.bottom=0,N?U.right=0:U.left=0,G.width="100%",G.height=g,G.top=_),c.createElement("div",{ref:D,className:f()(X,(n={},(0,a.Z)(n,"".concat(X,"-horizontal"),v),(0,a.Z)(n,"".concat(X,"-vertical"),!v),(0,a.Z)(n,"".concat(X,"-visible"),k),n)),style:U,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:V},c.createElement("div",{ref:P,className:f()("".concat(X,"-thumb"),(0,a.Z)({},"".concat(X,"-thumb-moving"),Z)),style:G,onMouseDown:B}))});function b(e){var t=e.children,n=e.setRef,o=c.useCallback(function(e){n(e)},[]);return c.cloneElement(t,{ref:o})}var S=n(34203),w=n(15671),Z=n(43144),E=function(){function e(){(0,w.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Z.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),y=("undefined"==typeof navigator?"undefined":(0,i.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),x=function(e,t){var n=(0,c.useRef)(!1),o=(0,c.useRef)(null),r=(0,c.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):(!i||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},C=n(8410),I=14/15;function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var M=n(56790),R=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],O=[],N={overflowY:"auto",overflowAnchor:"none"},D=c.forwardRef(function(e,t){var n,d,h,w,Z,D,P,T,z,k,H,L,V,j,W,A,_,F,B,K,Y,X,U,G,Q,J,q,ee,et,en,eo,er=e.prefixCls,ei=void 0===er?"rc-virtual-list":er,el=e.className,ea=e.height,eu=e.itemHeight,ec=e.fullHeight,es=e.style,ed=e.data,ef=e.children,ep=e.itemKey,ev=e.virtual,em=e.direction,eh=e.scrollWidth,eg=e.component,eb=void 0===eg?"div":eg,eS=e.onScroll,ew=e.onVirtualScroll,eZ=e.onVisibleChange,eE=e.innerProps,ey=e.extraRender,ex=(0,u.Z)(e,R),eC=!!(!1!==ev&&ea&&eu),eI=eC&&ed&&eu*ed.length>ea,e$="rtl"===em,eM=f()(ei,(0,a.Z)({},"".concat(ei,"-rtl"),e$),el),eR=ed||O,eO=(0,c.useRef)(),eN=(0,c.useRef)(),eD=(0,c.useState)(0),eP=(0,l.Z)(eD,2),eT=eP[0],ez=eP[1],ek=(0,c.useState)(0),eH=(0,l.Z)(ek,2),eL=eH[0],eV=eH[1],ej=(0,c.useState)(!1),eW=(0,l.Z)(ej,2),eA=eW[0],e_=eW[1],eF=function(){e_(!0)},eB=function(){e_(!1)},eK=c.useCallback(function(e){return"function"==typeof ep?ep(e):null==e?void 0:e[ep]},[ep]);function eY(e){ez(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(tu.current)||(n=Math.min(n,tu.current)),n=Math.max(n,0));return eO.current.scrollTop=o,o})}var eX=(0,c.useRef)({start:0,end:eR.length}),eU=(0,c.useRef)(),eG=(d=c.useState(eR),w=(h=(0,l.Z)(d,2))[0],Z=h[1],D=c.useState(null),T=(P=(0,l.Z)(D,2))[0],z=P[1],c.useEffect(function(){var e=function(e,t,n){var o,r,i=e.length,l=t.length;if(0===i&&0===l)return null;i=eT&&void 0===t&&(t=l,n=r),c>eT+ea&&void 0===o&&(o=l),r=c}return void 0===t&&(t=0,n=0,o=Math.ceil(ea/eu)),void 0===o&&(o=eR.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,eR.length-1),offset:n}},[eI,eC,eT,eR,e4,ea]),e8=e6.scrollHeight,e9=e6.start,e5=e6.end,e7=e6.offset;eX.current.start=e9,eX.current.end=e5;var e3=c.useState({width:0,height:ea}),te=(0,l.Z)(e3,2),tt=te[0],tn=te[1],to=(0,c.useRef)(),tr=(0,c.useRef)(),ti=c.useMemo(function(){return $(tt.width,eh)},[tt.width,eh]),tl=c.useMemo(function(){return $(tt.height,e8)},[tt.height,e8]),ta=e8-ea,tu=(0,c.useRef)(ta);tu.current=ta;var tc=eT<=0,ts=eT>=ta,td=x(tc,ts),tf=function(){return{x:e$?-eL:eL,y:eT}},tp=(0,c.useRef)(tf()),tv=(0,M.zX)(function(){if(ew){var e=tf();(tp.current.x!==e.x||tp.current.y!==e.y)&&(ew(e),tp.current=e)}});function tm(e,t){t?((0,s.flushSync)(function(){eV(e)}),tv()):eY(e)}var th=function(e){var t=e,n=eh-tt.width;return Math.min(t=Math.max(t,0),n)},tg=(0,M.zX)(function(e,t){t?((0,s.flushSync)(function(){eV(function(t){return th(t+(e$?-e:e))})}),tv()):eY(function(t){return t+e})}),tb=(k=!!eh,H=(0,c.useRef)(0),L=(0,c.useRef)(null),V=(0,c.useRef)(null),j=(0,c.useRef)(!1),W=x(tc,ts),A=(0,c.useRef)(null),_=(0,c.useRef)(null),[function(e){if(eC){m.Z.cancel(_.current),_.current=(0,m.Z)(function(){A.current=null},2);var t,n=e.deltaX,o=e.deltaY;(null===A.current&&(A.current=k&&Math.abs(n)>Math.abs(o)?"x":"y"),"x"===A.current)?(tg(e.deltaX,!0),y||e.preventDefault()):(m.Z.cancel(L.current),t=e.deltaY,H.current+=t,V.current=t,W(t)||(y||e.preventDefault(),L.current=(0,m.Z)(function(){var e=j.current?10:1;tg(H.current*e),H.current=0})))}},function(e){eC&&(j.current=e.detail===V.current)}]),tS=(0,l.Z)(tb,2),tw=tS[0],tZ=tS[1];F=function(e,t){return!td(e,t)&&(tw({preventDefault:function(){},deltaY:e}),!0)},K=(0,c.useRef)(!1),Y=(0,c.useRef)(0),X=(0,c.useRef)(null),U=(0,c.useRef)(null),G=function(e){if(K.current){var t=Math.ceil(e.touches[0].pageY),n=Y.current-t;Y.current=t,F(n)&&e.preventDefault(),clearInterval(U.current),U.current=setInterval(function(){(!F(n*=I,!0)||.1>=Math.abs(n))&&clearInterval(U.current)},16)}},Q=function(){K.current=!1,B()},J=function(e){B(),1!==e.touches.length||K.current||(K.current=!0,Y.current=Math.ceil(e.touches[0].pageY),X.current=e.target,X.current.addEventListener("touchmove",G),X.current.addEventListener("touchend",Q))},B=function(){X.current&&(X.current.removeEventListener("touchmove",G),X.current.removeEventListener("touchend",Q))},(0,C.Z)(function(){return eC&&eO.current.addEventListener("touchstart",J),function(){var e;null===(e=eO.current)||void 0===e||e.removeEventListener("touchstart",J),B(),clearInterval(U.current)}},[eC]),(0,C.Z)(function(){function e(e){eC&&e.preventDefault()}var t=eO.current;return t.addEventListener("wheel",tw),t.addEventListener("DOMMouseScroll",tZ),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tw),t.removeEventListener("DOMMouseScroll",tZ),t.removeEventListener("MozMousePixelScroll",e)}},[eC]);var tE=function(){var e,t;null===(e=to.current)||void 0===e||e.delayHidden(),null===(t=tr.current)||void 0===t||t.delayHidden()},ty=(q=c.useRef(),function(e){if(null==e){tE();return}if(m.Z.cancel(q.current),"number"==typeof e)eY(e);else if(e&&"object"===(0,i.Z)(e)){var t,n=e.align;t="index"in e?e.index:eR.findIndex(function(t){return eK(t)===e.key});var o=e.offset,r=void 0===o?0:o;!function e(o,i){if(!(o<0)&&eO.current){var l=eO.current.clientHeight,a=!1,u=i;if(l){for(var c=0,s=0,d=0,f=Math.min(eR.length,t),p=0;p<=f;p+=1){var v=eK(eR[p]);s=c;var h=e2.get(v);c=d=s+(void 0===h?eu:h),p===t&&void 0===h&&(a=!0)}var g=null;switch(i||n){case"top":g=s-r;break;case"bottom":g=d-l+r;break;default:var b=eO.current.scrollTop;sb+l&&(u="bottom")}null!==g&&g!==eO.current.scrollTop&&eY(g)}q.current=(0,m.Z)(function(){a&&e1(),e(o-1,u)},2)}}(3)}});c.useImperativeHandle(t,function(){return{getScrollInfo:tf,scrollTo:function(e){e&&"object"===(0,i.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eV(th(e.left)),ty(e.top)):ty(e)}}}),(0,C.Z)(function(){eZ&&eZ(eR.slice(e9,e5+1),eR)},[e9,e5,eR]);var tx=(ee=c.useMemo(function(){return[new Map,[]]},[eR,e2.id,eu]),en=(et=(0,l.Z)(ee,2))[0],eo=et[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=en.get(e),o=en.get(t);if(void 0===n||void 0===o)for(var r=eR.length,i=eo.length;iea&&c.createElement(g,{ref:to,prefixCls:ei,scrollOffset:eT,scrollRange:e8,rtl:e$,onScroll:tm,onStartMove:eF,onStopMove:eB,spinSize:tl,containerSize:tt.height}),eI&&eh&&c.createElement(g,{ref:tr,prefixCls:ei,scrollOffset:eL,scrollRange:eh,rtl:e$,onScroll:tm,onStartMove:eF,onStopMove:eB,spinSize:ti,containerSize:tt.width,horizontal:!0}))});D.displayName="List";var P=D}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/910.01b18acf1bab91cc.js b/pilot/server/static/_next/static/chunks/910.01b18acf1bab91cc.js deleted file mode 100644 index e38f75130..000000000 --- a/pilot/server/static/_next/static/chunks/910.01b18acf1bab91cc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{59578:function(e,t,l){l.r(t),l.d(t,{default:function(){return ex}});var r=l(85893),a=l(67294),n=l(2093),s=l(1375),o=l(2453),i=l(58989),c=l(83454),d=e=>{let{queryAgentURL:t="/api/v1/chat/completions"}=e,l=(0,a.useMemo)(()=>new AbortController,[]),r=(0,a.useCallback)(async e=>{let{context:r,data:a,chatId:n,onMessage:d,onClose:u,onDone:x,onError:m}=e;if(!r){o.ZP.warning(i.Z.t("NoContextTip"));return}let h={...a,conv_uid:n,user_input:r};if(!h.conv_uid){o.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var p;await (0,s.L)("".concat(null!==(p=c.env.API_BASE_URL)&&void 0!==p?p:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h),signal:l.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===s.a)return},onclose(){l.abort(),null==u||u()},onerror(e){throw Error(e)},onmessage:e=>{var t;let l=null===(t=e.data)||void 0===t?void 0:t.replaceAll("\\n","\n");"[DONE]"===l?null==x||x():(null==l?void 0:l.startsWith("[ERROR]"))?null==m||m(null==l?void 0:l.replace("[ERROR]","")):null==d||d(l)}})}catch(e){l.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[t]);return(0,a.useEffect)(()=>()=>{l.abort()},[]),r},u=l(39332),x=l(99513),m=l(57132),h=l(29158),p=l(98165),g=l(50228),v=l(87547),f=l(89035),j=l(79166),b=l(93179),y=l(33035),w=l(12767),Z=l(94184),_=l.n(Z),k=l(71577),N=l(38426),C=l(66309),S=l(48567),P=l(41468),R=l(20640),E=l.n(R);let O={code(e){var t;let{inline:l,node:a,className:n,children:s,style:i,...c}=e,d=/language-(\w+)/.exec(n||"");return!l&&d?(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(k.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,r.jsx)(m.Z,{}),onClick:()=>{let e=E()(s);o.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,r.jsx)(b.Z,{language:null!==(t=null==d?void 0:d[1])&&void 0!==t?t:"javascript",style:j.Z,children:s})]}):(0,r.jsx)("code",{...c,style:i,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm whitespace-nowrap",children:s})},ul(e){let{children:t}=e;return(0,r.jsx)("ul",{className:"py-1",children:t})},ol(e){let{children:t}=e;return(0,r.jsx)("ol",{className:"py-1",children:t})},li(e){let{children:t,ordered:l}=e;return(0,r.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(l?"list-decimal":"list-disc"),children:t})},table(e){let{children:t}=e;return(0,r.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:t})},thead(e){let{children:t}=e;return(0,r.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:t})},th(e){let{children:t}=e;return(0,r.jsx)("th",{className:"!text-left p-4",children:t})},td(e){let{children:t}=e;return(0,r.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:t})},h1(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:t})},h2(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-xl font-bold my-3",children:t})},h3(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-lg font-semibold my-2",children:t})},h4(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-base font-semibold my-1",children:t})},a(e){let{children:t,href:l}=e;return(0,r.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,r.jsx)(h.Z,{className:"mr-1"}),(0,r.jsx)("a",{href:l,target:"_blank",children:t})]})},img(e){let{src:t,alt:l}=e;return(0,r.jsx)("div",{children:(0,r.jsx)(N.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:t,alt:l,placeholder:(0,r.jsx)(C.Z,{icon:(0,r.jsx)(p.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:t}=e;return(0,r.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:t})}};var D=(0,a.memo)(function(e){var t;let{children:l,content:n,isChartChat:s,onLinkClick:o}=e,{scene:i}=(0,a.useContext)(P.p),{context:c,model_name:d,role:u}=n,x="view"===u,[m,h]="string"==typeof c?c.split(" relations:"):[c],p=null===(t=h&&"string"==typeof h?h:null)||void 0===t?void 0:t.split(",");return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:_()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-6 rounded-xl",{"bg-slate-100 dark:bg-[#353539]":x,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(i)}),children:[(0,r.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:x?(0,S.A)(d)||(0,r.jsx)(g.Z,{}):(0,r.jsx)(v.Z,{})}),(0,r.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!x&&"string"==typeof c&&c,x&&s&&"object"==typeof c&&(0,r.jsxs)("div",{children:["[".concat(c.template_name,"]: "),(0,r.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:o,children:[(0,r.jsx)(f.Z,{className:"mr-1"}),c.template_introduce||"More Details"]})]}),x&&"string"==typeof m&&(0,r.jsx)(y.D,{components:O,rehypePlugins:[w.Z],children:m.replaceAll("\\n","\n").replace(/]+)>/gi,"").replace(/]+)>/gi,"")}),"object"==typeof p&&!!(null==p?void 0:p.length)&&(0,r.jsx)("div",{className:"flex flex-wrap mt-2",children:null==p?void 0:p.map((e,t)=>(0,r.jsx)(C.Z,{color:"#108ee9",children:e},e+t))})]}),l]})})}),I=l(59301),L=l(41132),M=l(74312),A=l(3414),F=l(72868),T=l(59562),H=l(14553),V=l(25359),$=l(7203),q=l(48665),z=l(51610),J=l(99056),W=l(57814),G=l(63955),B=l(13009),U=l(40911),K=l(66478),Q=l(83062),X=l(50489),Y=l(67421),ee=e=>{var t;let{conv_index:l,question:n,knowledge_space:s}=e,{t:i}=(0,Y.$G)(),{chatId:c}=(0,a.useContext)(P.p),[d,u]=(0,a.useState)(""),[x,m]=(0,a.useState)(4),[h,p]=(0,a.useState)(""),g=(0,a.useRef)(null),[v,f]=o.ZP.useMessage(),[j,b]=(0,a.useState)({});(0,a.useEffect)(()=>{(0,X.Vx)((0,X.Lu)()).then(e=>{var t;console.log(e),b(null!==(t=e[1])&&void 0!==t?t:{})}).catch(e=>{console.log(e)})},[]);let y=(0,a.useCallback)((e,t)=>{t?(0,X.Vx)((0,X.Eb)(c,l)).then(e=>{var t,l,r,a;let n=null!==(t=e[1])&&void 0!==t?t:{};u(null!==(l=n.ques_type)&&void 0!==l?l:""),m(parseInt(null!==(r=n.score)&&void 0!==r?r:"4")),p(null!==(a=n.messages)&&void 0!==a?a:"")}).catch(e=>{console.log(e)}):(u(""),m(4),p(""))},[c,l]),w=(0,M.Z)(A.Z)(e=>{let{theme:t}=e;return{backgroundColor:"dark"===t.palette.mode?"#FBFCFD":"#0E0E10",...t.typography["body-sm"],padding:t.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,r.jsxs)(F.L,{onOpenChange:y,children:[f,(0,r.jsx)(Q.Z,{title:i("Rating"),children:(0,r.jsx)(T.Z,{slots:{root:H.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,r.jsx)(I.Z,{})})}),(0,r.jsxs)(V.Z,{children:[(0,r.jsx)($.Z,{disabled:!0,sx:{minHeight:0}}),(0,r.jsx)(q.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,r.jsx)("form",{onSubmit:e=>{e.preventDefault();let t={conv_uid:c,conv_index:l,question:n,knowledge_space:s,score:x,ques_type:d,messages:h};console.log(t),(0,X.Vx)((0,X.VC)({data:t})).then(e=>{v.open({type:"success",content:"save success"})}).catch(e=>{v.open({type:"error",content:"save error"})})},children:(0,r.jsxs)(z.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,r.jsx)(z.Z,{xs:3,children:(0,r.jsx)(w,{children:i("Q_A_Category")})}),(0,r.jsx)(z.Z,{xs:10,children:(0,r.jsx)(J.Z,{action:g,value:d,placeholder:"Choose one…",onChange:(e,t)=>u(null!=t?t:""),...d&&{endDecorator:(0,r.jsx)(H.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=g.current)||void 0===e||e.focusVisible()},children:(0,r.jsx)(L.Z,{})}),indicator:null},sx:{width:"100%"},children:null===(t=Object.keys(j))||void 0===t?void 0:t.map(e=>(0,r.jsx)(W.Z,{value:e,children:j[e]},e))})}),(0,r.jsx)(z.Z,{xs:3,children:(0,r.jsx)(w,{children:(0,r.jsx)(Q.Z,{title:(0,r.jsx)(q.Z,{children:(0,r.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,r.jsx)(z.Z,{xs:10,sx:{pl:0,ml:0},children:(0,r.jsx)(G.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var t;return m(null===(t=e.target)||void 0===t?void 0:t.value)},value:x})}),(0,r.jsx)(z.Z,{xs:13,children:(0,r.jsx)(B.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,r.jsx)(U.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,r.jsx)(z.Z,{xs:13,children:(0,r.jsx)(K.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},et=l(32983),el=l(12069),er=l(96486),ea=l.n(er),en=l(38954),es=l(8937);function eo(){var e;let t=null!==(e=localStorage.getItem(es.rU))&&void 0!==e?e:"";try{let e=JSON.parse(t);return e}catch(e){return null}}var ei=e=>{var t;let{messages:l,onSubmit:s}=e,{dbParam:i,currentDialogue:c,scene:d,model:h,refreshDialogList:p,chatId:g}=(0,a.useContext)(P.p),{t:v}=(0,Y.$G)(),f=(0,u.useSearchParams)(),j=null!==(t=f&&f.get("spaceNameOriginal"))&&void 0!==t?t:"",[b,y]=(0,a.useState)(!1),[w,Z]=(0,a.useState)(!1),[k,N]=(0,a.useState)(l),[C,R]=(0,a.useState)(""),O=(0,a.useRef)(null),I=(0,a.useMemo)(()=>"chat_dashboard"===d,[d]),L=async e=>{if(!b&&e.trim())try{y(!0),await s(e,{select_param:"chat_excel"===d?null==c?void 0:c.select_param:j||i})}finally{y(!1)}},M=e=>{try{return JSON.parse(e)}catch(t){return e}},[A,F]=o.ZP.useMessage(),T=async e=>{let t=null==e?void 0:e.replace(/\trelations:.*/g,""),l=E()(t);l?t?A.open({type:"success",content:v("Copy_success")}):A.open({type:"warning",content:v("Copy_nothing")}):A.open({type:"error",content:v("Copry_error")})};return(0,n.Z)(async()=>{let e=eo();e&&e.id===g&&(await L(e.message),p(),localStorage.removeItem(es.rU))},[g]),(0,a.useEffect)(()=>{let e=l;I&&(e=ea().cloneDeep(l).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=M(null==e?void 0:e.context)),e))),N(e.filter(e=>["view","human"].includes(e.role)))},[I,l]),(0,a.useEffect)(()=>{setTimeout(()=>{var e;null===(e=O.current)||void 0===e||e.scrollTo(0,O.current.scrollHeight)},50)},[l]),(0,r.jsxs)(r.Fragment,{children:[F,(0,r.jsx)("div",{ref:O,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,r.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:k.length?k.map((e,t)=>{var l;return(0,r.jsx)(D,{content:e,isChartChat:I,onLinkClick:()=>{Z(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,r.jsxs)("div",{className:"flex w-full flex-row-reverse pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4",children:[(0,r.jsx)(ee,{conv_index:Math.ceil((t+1)/2),question:null===(l=null==k?void 0:k.filter(t=>(null==t?void 0:t.role)==="human"&&(null==t?void 0:t.order)===e.order)[0])||void 0===l?void 0:l.context,knowledge_space:j||i||""}),(0,r.jsx)(Q.Z,{title:v("Copy"),children:(0,r.jsx)(K.Z,{onClick:()=>T(null==e?void 0:e.context),slots:{root:H.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,r.jsx)(m.Z,{})})})]})},t)}):(0,r.jsx)(et.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,r.jsx)("div",{className:_()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===d&&!(null==c?void 0:c.select_param)}),children:(0,r.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10",children:[h&&(0,r.jsx)("div",{className:"mr-2 flex items-center h-10",children:(0,S.A)(h)}),(0,r.jsx)(en.Z,{loading:b,onSubmit:L})]})}),(0,r.jsx)(el.Z,{title:"JSON Editor",open:w,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{Z(!1)},onCancel:()=>{Z(!1)},children:(0,r.jsx)(x.Z,{className:"w-full h-[500px]",language:"json",value:C})})]})},ec=l(2712),ed=l(39156),eu=l(45247),ex=()=>{var e;let t=(0,u.useSearchParams)(),{scene:l,chatId:s,model:o,setModel:i}=(0,a.useContext)(P.p),c=d({}),x=null!==(e=t&&t.get("initMessage"))&&void 0!==e?e:"",[m,h]=(0,a.useState)(!1),[p,g]=(0,a.useState)(),[v,f]=(0,a.useState)([]),j=async()=>{h(!0);let[,e]=await (0,X.Vx)((0,X.$i)(s));f(null!=e?e:[]),h(!1)},b=e=>{var t;let l=null===(t=e[e.length-1])||void 0===t?void 0:t.context;if(l)try{let e=JSON.parse(l);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,n.Z)(async()=>{let e=eo();e&&e.id===s||await j()},[x,s]),(0,a.useEffect)(()=>{var e,t;if(!v.length)return;let l=null===(e=null===(t=v.filter(e=>"view"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];(null==l?void 0:l.model_name)&&i(l.model_name),b(v)},[v.length]);let y=(0,a.useCallback)((e,t)=>new Promise(r=>{let a=[...v,{role:"human",context:e,model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0}],n=a.length-1;f([...a]),c({context:e,data:{...t,chat_mode:l||"chat_normal",model_name:o},chatId:s,onMessage:e=>{a[n].context=e,f([...a])},onDone:()=>{b(a),r()},onClose:()=>{b(a),r()},onError:e=>{a[n].context=e,f([...a]),r()}})}),[v,c]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu.Z,{visible:m}),(0,r.jsx)(ec.Z,{refreshHistory:j,modelChange:e=>{i(e)}}),(0,r.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==p?void 0:p.length)&&(0,r.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,r.jsx)(ed.Z,{chartsData:p})}),!(null==p?void 0:p.length)&&"chat_dashboard"===l&&(0,r.jsx)(et.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,r.jsx)("div",{className:_()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===l,"h-full lg:px-8":"chat_dashboard"!==l}),children:(0,r.jsx)(ei,{messages:v,onSubmit:y})})]})]})}},38954:function(e,t,l){l.d(t,{Z:function(){return b}});var r=l(85893),a=l(27496),n=l(59566),s=l(71577),o=l(67294),i=l(2487),c=l(83062),d=l(2453),u=l(74627),x=l(39479),m=l(51009),h=l(58299),p=l(577),g=l(30119),v=l(67421);let f=e=>{let{data:t,loading:l,submit:a,close:n}=e,{t:s}=(0,v.$G)(),o=e=>()=>{a(e),n()};return(0,r.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,r.jsx)(i.Z,{dataSource:null==t?void 0:t.data,loading:l,rowKey:e=>e.prompt_name,renderItem:e=>(0,r.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,r.jsx)(c.Z,{title:e.content,children:(0,r.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:s("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+s("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var j=e=>{let{submit:t}=e,{t:l}=(0,v.$G)(),[a,n]=(0,o.useState)(!1),[s,i]=(0,o.useState)("common"),{data:j,loading:b}=(0,p.Z)(()=>(0,g.PR)("/prompt/list",{prompt_type:s}),{refreshDeps:[s],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,r.jsx)(u.Z,{title:(0,r.jsx)(x.Z.Item,{label:"Prompt "+l("Type"),children:(0,r.jsx)(m.default,{style:{width:130},value:s,onChange:e=>{i(e)},options:[{label:l("Public")+" Prompts",value:"common"},{label:l("Private")+" Prompts",value:"private"}]})}),content:(0,r.jsx)(f,{data:j,loading:b,submit:t,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:a,onOpenChange:e=>{n(e)},children:(0,r.jsx)(c.Z,{title:l("Click_Select")+" Prompt",children:(0,r.jsx)(h.Z,{className:"bottom-32"})})})},b=function(e){let{children:t,loading:l,onSubmit:i,...c}=e,[d,u]=(0,o.useState)("");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default.TextArea,{className:"flex-1",size:"large",value:d,autoSize:{minRows:1,maxRows:4},...c,onPressEnter:e=>{if(d.trim()&&13===e.keyCode){if(e.shiftKey){u(e=>e+"\n");return}i(d),setTimeout(()=>{u("")},0)}},onChange:e=>{if("number"==typeof c.maxLength){u(e.target.value.substring(0,c.maxLength));return}u(e.target.value)}}),(0,r.jsx)(s.ZP,{className:"ml-2 flex items-center justify-center",size:"large",type:"text",loading:l,icon:(0,r.jsx)(a.Z,{}),onClick:()=>{i(d)}}),(0,r.jsx)(j,{submit:e=>{u(d+e)}}),t]})}},45247:function(e,t,l){var r=l(85893),a=l(50888);t.Z=function(e){let{visible:t}=e;return t?(0,r.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,r.jsx)(a.Z,{})}):null}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/910.91e921e30bec2731.js b/pilot/server/static/_next/static/chunks/910.91e921e30bec2731.js new file mode 100644 index 000000000..4862861a4 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/910.91e921e30bec2731.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{59578:function(e,t,l){l.r(t),l.d(t,{default:function(){return ef}});var r=l(85893),a=l(67294),s=l(2093),n=l(1375),o=l(2453),i=l(58989),c=l(83454),d=e=>{let{queryAgentURL:t="/api/v1/chat/completions"}=e,l=(0,a.useMemo)(()=>new AbortController,[]),r=(0,a.useCallback)(async e=>{let{context:r,data:a,chatId:s,onMessage:d,onClose:u,onDone:x,onError:m}=e;if(!r){o.ZP.warning(i.Z.t("NoContextTip"));return}let h={...a,conv_uid:s,user_input:r};if(!h.conv_uid){o.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var p;await (0,n.L)("".concat(null!==(p=c.env.API_BASE_URL)&&void 0!==p?p:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h),signal:l.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===n.a)return},onclose(){l.abort(),null==u||u()},onerror(e){throw Error(e)},onmessage:e=>{var t;let l=null===(t=e.data)||void 0===t?void 0:t.replaceAll("\\n","\n");"[DONE]"===l?null==x||x():(null==l?void 0:l.startsWith("[ERROR]"))?null==m||m(null==l?void 0:l.replace("[ERROR]","")):null==d||d(l)}})}catch(e){l.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[t]);return(0,a.useEffect)(()=>()=>{l.abort()},[]),r},u=l(39332),x=l(99513),m=l(57132),h=l(29158),p=l(98165),g=l(24019),v=l(50888),f=l(97937),b=l(63606),j=l(50228),y=l(87547),w=l(89035),Z=l(79166),_=l(93179),N=l(33035),k=l(12767),C=l(94184),S=l.n(C),P=l(71577),R=l(38426),E=l(66309),O=l(48567),D=l(41468),M=l(20640),I=l.n(M);let L={code(e){var t;let{inline:l,node:a,className:s,children:n,style:i,...c}=e,d=/language-(\w+)/.exec(s||"");return!l&&d?(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(P.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,r.jsx)(m.Z,{}),onClick:()=>{let e=I()(n);o.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,r.jsx)(_.Z,{language:null!==(t=null==d?void 0:d[1])&&void 0!==t?t:"javascript",style:Z.Z,children:n})]}):(0,r.jsx)("code",{...c,style:i,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:n})},ul(e){let{children:t}=e;return(0,r.jsx)("ul",{className:"py-1",children:t})},ol(e){let{children:t}=e;return(0,r.jsx)("ol",{className:"py-1",children:t})},li(e){let{children:t,ordered:l}=e;return(0,r.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(l?"list-decimal":"list-disc"),children:t})},table(e){let{children:t}=e;return(0,r.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:t})},thead(e){let{children:t}=e;return(0,r.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:t})},th(e){let{children:t}=e;return(0,r.jsx)("th",{className:"!text-left p-4",children:t})},td(e){let{children:t}=e;return(0,r.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:t})},h1(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:t})},h2(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-xl font-bold my-3",children:t})},h3(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-lg font-semibold my-2",children:t})},h4(e){let{children:t}=e;return(0,r.jsx)("h3",{className:"text-base font-semibold my-1",children:t})},a(e){let{children:t,href:l}=e;return(0,r.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,r.jsx)(h.Z,{className:"mr-1"}),(0,r.jsx)("a",{href:l,target:"_blank",children:t})]})},img(e){let{src:t,alt:l}=e;return(0,r.jsx)("div",{children:(0,r.jsx)(R.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:t,alt:l,placeholder:(0,r.jsx)(E.Z,{icon:(0,r.jsx)(p.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:t}=e;return(0,r.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:t})}},A={todo:{bgClass:"bg-gray-500",icon:(0,r.jsx)(g.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,r.jsx)(v.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,r.jsx)(f.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,r.jsx)(b.Z,{className:"ml-2"})}};function T(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"
").replace(/]+)>/gi,"")}var F=(0,a.memo)(function(e){let{children:t,content:l,isChartChat:s,onLinkClick:n}=e,{scene:o}=(0,a.useContext)(D.p),{context:i,model_name:c,role:d}=l,u="view"===d,{relations:x,value:m,cachePlguinContext:h}=(0,a.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePlguinContext:[]};let[e,t]=i.split(" relations:"),l=t?t.split(","):[],r=[],a=0,s=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var t;let l=e.replace(/<[^>]*>|<\/[^>]*>/gm,""),s=JSON.parse(l),n="".concat(a,"");return r.push({...s,result:T(null!==(t=s.result)&&void 0!==t?t:"")}),a++,n}catch(t){return console.log(t.message),e}});return{relations:l,cachePlguinContext:r,value:s}},[i]),p=(0,a.useMemo)(()=>({"custom-view"(e){var t;let{children:l}=e,a=+l.toString();if(!h[a])return l;let{name:s,status:n,err_msg:o,result:i}=h[a],{bgClass:c,icon:d}=null!==(t=A[n])&&void 0!==t?t:{};return(0,r.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,r.jsxs)("div",{className:S()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[s,d]}),i?(0,r.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,r.jsx)(N.D,{components:L,rehypePlugins:[k.Z],children:null!=i?i:""})}):(0,r.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,h]);return(0,r.jsxs)("div",{className:S()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-6 rounded-xl break-words",{"bg-slate-100 dark:bg-[#353539]":u,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(o)}),children:[(0,r.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:u?(0,O.A)(c)||(0,r.jsx)(j.Z,{}):(0,r.jsx)(y.Z,{})}),(0,r.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&s&&"object"==typeof i&&(0,r.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,r.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:n,children:[(0,r.jsx)(w.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,r.jsx)(N.D,{components:{...L,...p},rehypePlugins:[k.Z],children:T(m)}),!!(null==x?void 0:x.length)&&(0,r.jsx)("div",{className:"flex flex-wrap mt-2",children:null==x?void 0:x.map((e,t)=>(0,r.jsx)(E.Z,{color:"#108ee9",children:e},e+t))})]}),t]})}),H=l(59301),J=l(41132),V=l(74312),$=l(3414),q=l(72868),z=l(59562),W=l(14553),G=l(25359),B=l(7203),U=l(48665),K=l(51610),Q=l(99056),X=l(57814),Y=l(63955),ee=l(13009),et=l(40911),el=l(66478),er=l(83062),ea=l(50489),es=l(67421),en=e=>{var t;let{conv_index:l,question:s,knowledge_space:n}=e,{t:i}=(0,es.$G)(),{chatId:c}=(0,a.useContext)(D.p),[d,u]=(0,a.useState)(""),[x,m]=(0,a.useState)(4),[h,p]=(0,a.useState)(""),g=(0,a.useRef)(null),[v,f]=o.ZP.useMessage(),[b,j]=(0,a.useState)({});(0,a.useEffect)(()=>{(0,ea.Vx)((0,ea.Lu)()).then(e=>{var t;console.log(e),j(null!==(t=e[1])&&void 0!==t?t:{})}).catch(e=>{console.log(e)})},[]);let y=(0,a.useCallback)((e,t)=>{t?(0,ea.Vx)((0,ea.Eb)(c,l)).then(e=>{var t,l,r,a;let s=null!==(t=e[1])&&void 0!==t?t:{};u(null!==(l=s.ques_type)&&void 0!==l?l:""),m(parseInt(null!==(r=s.score)&&void 0!==r?r:"4")),p(null!==(a=s.messages)&&void 0!==a?a:"")}).catch(e=>{console.log(e)}):(u(""),m(4),p(""))},[c,l]),w=(0,V.Z)($.Z)(e=>{let{theme:t}=e;return{backgroundColor:"dark"===t.palette.mode?"#FBFCFD":"#0E0E10",...t.typography["body-sm"],padding:t.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,r.jsxs)(q.L,{onOpenChange:y,children:[f,(0,r.jsx)(er.Z,{title:i("Rating"),children:(0,r.jsx)(z.Z,{slots:{root:W.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,r.jsx)(H.Z,{})})}),(0,r.jsxs)(G.Z,{children:[(0,r.jsx)(B.Z,{disabled:!0,sx:{minHeight:0}}),(0,r.jsx)(U.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,r.jsx)("form",{onSubmit:e=>{e.preventDefault();let t={conv_uid:c,conv_index:l,question:s,knowledge_space:n,score:x,ques_type:d,messages:h};console.log(t),(0,ea.Vx)((0,ea.VC)({data:t})).then(e=>{v.open({type:"success",content:"save success"})}).catch(e=>{v.open({type:"error",content:"save error"})})},children:(0,r.jsxs)(K.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,r.jsx)(K.Z,{xs:3,children:(0,r.jsx)(w,{children:i("Q_A_Category")})}),(0,r.jsx)(K.Z,{xs:10,children:(0,r.jsx)(Q.Z,{action:g,value:d,placeholder:"Choose one…",onChange:(e,t)=>u(null!=t?t:""),...d&&{endDecorator:(0,r.jsx)(W.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=g.current)||void 0===e||e.focusVisible()},children:(0,r.jsx)(J.Z,{})}),indicator:null},sx:{width:"100%"},children:null===(t=Object.keys(b))||void 0===t?void 0:t.map(e=>(0,r.jsx)(X.Z,{value:e,children:b[e]},e))})}),(0,r.jsx)(K.Z,{xs:3,children:(0,r.jsx)(w,{children:(0,r.jsx)(er.Z,{title:(0,r.jsx)(U.Z,{children:(0,r.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,r.jsx)(K.Z,{xs:10,sx:{pl:0,ml:0},children:(0,r.jsx)(Y.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var t;return m(null===(t=e.target)||void 0===t?void 0:t.value)},value:x})}),(0,r.jsx)(K.Z,{xs:13,children:(0,r.jsx)(ee.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,r.jsx)(et.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,r.jsx)(K.Z,{xs:13,children:(0,r.jsx)(el.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},eo=l(32983),ei=l(12069),ec=l(96486),ed=l.n(ec),eu=l(38954),ex=l(8937);function em(){var e;let t=null!==(e=localStorage.getItem(ex.rU))&&void 0!==e?e:"";try{let e=JSON.parse(t);return e}catch(e){return null}}var eh=e=>{var t;let{messages:l,onSubmit:n}=e,{dbParam:i,currentDialogue:c,scene:d,model:h,refreshDialogList:p,chatId:g,agentList:v}=(0,a.useContext)(D.p),{t:f}=(0,es.$G)(),b=(0,u.useSearchParams)(),j=null!==(t=b&&b.get("spaceNameOriginal"))&&void 0!==t?t:"",[y,w]=(0,a.useState)(!1),[Z,_]=(0,a.useState)(!1),[N,k]=(0,a.useState)(l),[C,P]=(0,a.useState)(""),R=(0,a.useRef)(null),E=(0,a.useMemo)(()=>"chat_dashboard"===d,[d]),M=(0,a.useMemo)(()=>{switch(d){case"chat_agent":return v.join(",");case"chat_excel":return null==c?void 0:c.select_param;default:return j||i}},[d,v,c,i,j]),L=async e=>{if(!y&&e.trim())try{w(!0),await n(e,{select_param:null!=M?M:""})}finally{w(!1)}},A=e=>{try{return JSON.parse(e)}catch(t){return e}},[T,H]=o.ZP.useMessage(),J=async e=>{let t=null==e?void 0:e.replace(/\trelations:.*/g,""),l=I()(t);l?t?T.open({type:"success",content:f("Copy_success")}):T.open({type:"warning",content:f("Copy_nothing")}):T.open({type:"error",content:f("Copry_error")})};return(0,s.Z)(async()=>{let e=em();e&&e.id===g&&(await L(e.message),p(),localStorage.removeItem(ex.rU))},[g]),(0,a.useEffect)(()=>{let e=l;E&&(e=ed().cloneDeep(l).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=A(null==e?void 0:e.context)),e))),k(e.filter(e=>["view","human"].includes(e.role)))},[E,l]),(0,a.useEffect)(()=>{setTimeout(()=>{var e;null===(e=R.current)||void 0===e||e.scrollTo(0,R.current.scrollHeight)},50)},[l]),(0,r.jsxs)(r.Fragment,{children:[H,(0,r.jsx)("div",{ref:R,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,r.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:N.length?N.map((e,t)=>{var l;return(0,r.jsx)(F,{content:e,isChartChat:E,onLinkClick:()=>{_(!0),P(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,r.jsxs)("div",{className:"flex w-full flex-row-reverse pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4",children:[(0,r.jsx)(en,{conv_index:Math.ceil((t+1)/2),question:null===(l=null==N?void 0:N.filter(t=>(null==t?void 0:t.role)==="human"&&(null==t?void 0:t.order)===e.order)[0])||void 0===l?void 0:l.context,knowledge_space:j||i||""}),(0,r.jsx)(er.Z,{title:f("Copy"),children:(0,r.jsx)(el.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:W.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,r.jsx)(m.Z,{})})})]})},t)}):(0,r.jsx)(eo.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,r.jsx)("div",{className:S()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===d&&!(null==c?void 0:c.select_param)}),children:(0,r.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10",children:[h&&(0,r.jsx)("div",{className:"mr-2 flex items-center h-10",children:(0,O.A)(h)}),(0,r.jsx)(eu.Z,{loading:y,onSubmit:L})]})}),(0,r.jsx)(ei.Z,{title:"JSON Editor",open:Z,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{_(!1)},onCancel:()=>{_(!1)},children:(0,r.jsx)(x.Z,{className:"w-full h-[500px]",language:"json",value:C})})]})},ep=l(9837),eg=l(39156),ev=l(45247),ef=()=>{var e;let t=(0,u.useSearchParams)(),{scene:l,chatId:n,model:o,setModel:i}=(0,a.useContext)(D.p),c=d({}),x=null!==(e=t&&t.get("initMessage"))&&void 0!==e?e:"",[m,h]=(0,a.useState)(!1),[p,g]=(0,a.useState)(),[v,f]=(0,a.useState)([]),b=async()=>{h(!0);let[,e]=await (0,ea.Vx)((0,ea.$i)(n));f(null!=e?e:[]),h(!1)},j=e=>{var t;let l=null===(t=e[e.length-1])||void 0===t?void 0:t.context;if(l)try{let e=JSON.parse(l);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,s.Z)(async()=>{let e=em();e&&e.id===n||await b()},[x,n]),(0,a.useEffect)(()=>{var e,t;if(!v.length)return;let l=null===(e=null===(t=v.filter(e=>"view"===e.role))||void 0===t?void 0:t.slice(-1))||void 0===e?void 0:e[0];(null==l?void 0:l.model_name)&&i(l.model_name),j(v)},[v.length]);let y=(0,a.useCallback)((e,t)=>new Promise(r=>{let a=[...v,{role:"human",context:e,model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0}],s=a.length-1;f([...a]),c({context:e,data:{...t,chat_mode:l||"chat_normal",model_name:o},chatId:n,onMessage:e=>{a[s].context=e,f([...a])},onDone:()=>{j(a),r()},onClose:()=>{j(a),r()},onError:e=>{a[s].context=e,f([...a]),r()}})}),[v,c]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ev.Z,{visible:m}),(0,r.jsx)(ep.Z,{refreshHistory:b,modelChange:e=>{i(e)}}),(0,r.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==p?void 0:p.length)&&(0,r.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,r.jsx)(eg.Z,{chartsData:p})}),!(null==p?void 0:p.length)&&"chat_dashboard"===l&&(0,r.jsx)(eo.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,r.jsx)("div",{className:S()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===l,"h-full lg:px-8":"chat_dashboard"!==l}),children:(0,r.jsx)(eh,{messages:v,onSubmit:y})})]})]})}},38954:function(e,t,l){l.d(t,{Z:function(){return j}});var r=l(85893),a=l(27496),s=l(59566),n=l(71577),o=l(67294),i=l(2487),c=l(83062),d=l(2453),u=l(74627),x=l(39479),m=l(51009),h=l(58299),p=l(577),g=l(30119),v=l(67421);let f=e=>{let{data:t,loading:l,submit:a,close:s}=e,{t:n}=(0,v.$G)(),o=e=>()=>{a(e),s()};return(0,r.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,r.jsx)(i.Z,{dataSource:null==t?void 0:t.data,loading:l,rowKey:e=>e.prompt_name,renderItem:e=>(0,r.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,r.jsx)(c.Z,{title:e.content,children:(0,r.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:n("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+n("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:t}=e,{t:l}=(0,v.$G)(),[a,s]=(0,o.useState)(!1),[n,i]=(0,o.useState)("common"),{data:b,loading:j}=(0,p.Z)(()=>(0,g.PR)("/prompt/list",{prompt_type:n}),{refreshDeps:[n],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,r.jsx)(u.Z,{title:(0,r.jsx)(x.Z.Item,{label:"Prompt "+l("Type"),children:(0,r.jsx)(m.default,{style:{width:130},value:n,onChange:e=>{i(e)},options:[{label:l("Public")+" Prompts",value:"common"},{label:l("Private")+" Prompts",value:"private"}]})}),content:(0,r.jsx)(f,{data:b,loading:j,submit:t,close:()=>{s(!1)}}),placement:"topRight",trigger:"click",open:a,onOpenChange:e=>{s(e)},children:(0,r.jsx)(c.Z,{title:l("Click_Select")+" Prompt",children:(0,r.jsx)(h.Z,{className:"bottom-32"})})})},j=function(e){let{children:t,loading:l,onSubmit:i,...c}=e,[d,u]=(0,o.useState)("");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default.TextArea,{className:"flex-1",size:"large",value:d,autoSize:{minRows:1,maxRows:4},...c,onPressEnter:e=>{if(d.trim()&&13===e.keyCode){if(e.shiftKey){u(e=>e+"\n");return}i(d),setTimeout(()=>{u("")},0)}},onChange:e=>{if("number"==typeof c.maxLength){u(e.target.value.substring(0,c.maxLength));return}u(e.target.value)}}),(0,r.jsx)(n.ZP,{className:"ml-2 flex items-center justify-center",size:"large",type:"text",loading:l,icon:(0,r.jsx)(a.Z,{}),onClick:()=>{i(d)}}),(0,r.jsx)(b,{submit:e=>{u(d+e)}}),t]})}},45247:function(e,t,l){var r=l(85893),a=l(50888);t.Z=function(e){let{visible:t}=e;return t?(0,r.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,r.jsx)(a.Z,{})}):null}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/996-e5792cec1f2b1f49.js b/pilot/server/static/_next/static/chunks/996-e5792cec1f2b1f49.js deleted file mode 100644 index 1a8f240e7..000000000 --- a/pilot/server/static/_next/static/chunks/996-e5792cec1f2b1f49.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[996],{63606:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))})},80882:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))})},68795:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))})},9708:function(e,t,n){n.d(t,{F:function(){return a},Z:function(){return i}});var o=n(94184),r=n.n(o);function i(e,t,n){return r()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}let a=(e,t)=>t||e},88258:function(e,t,n){var o=n(67294),r=n(53124),i=n(32983);t.Z=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.E_),a=n("empty");switch(t){case"Table":case"List":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(i.Z,{image:i.Z.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return o.createElement(i.Z,null)}}},32983:function(e,t,n){n.d(t,{Z:function(){return b}});var o=n(94184),r=n.n(o),i=n(67294),a=n(53124),l=n(10110),c=n(10274),u=n(25976),s=n(67968),d=n(45503);let p=e=>{let{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,s.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:n}=e,o=(0,d.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[p(o)]}),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let h=i.createElement(()=>{let[,e]=(0,u.Z)(),t=new c.C(e.colorBgBase),n=t.toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),g=i.createElement(()=>{let[,e]=(0,u.Z)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e,{borderColor:a,shadowColor:l,contentColor:s}=(0,i.useMemo)(()=>({borderColor:new c.C(t).onBackground(r).toHexShortString(),shadowColor:new c.C(n).onBackground(r).toHexShortString(),contentColor:new c.C(o).onBackground(r).toHexShortString()}),[t,n,o,r]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:a},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),v=e=>{var{className:t,rootClassName:n,prefixCls:o,image:c=h,description:u,children:s,imageStyle:d,style:p}=e,v=m(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:b,direction:S,empty:w}=i.useContext(a.E_),$=b("empty",o),[E,x]=f($),[y]=(0,l.Z)("Empty"),Z=void 0!==u?u:null==y?void 0:y.description,C="string"==typeof Z?Z:"empty",I=null;return I="string"==typeof c?i.createElement("img",{alt:C,src:c}):c,E(i.createElement("div",Object.assign({className:r()(x,$,null==w?void 0:w.className,{[`${$}-normal`]:c===g,[`${$}-rtl`]:"rtl"===S},t,n),style:Object.assign(Object.assign({},null==w?void 0:w.style),p)},v),i.createElement("div",{className:`${$}-image`,style:d},I),Z&&i.createElement("div",{className:`${$}-description`},Z),s&&i.createElement("div",{className:`${$}-footer`},s)))};v.PRESENTED_IMAGE_DEFAULT=h,v.PRESENTED_IMAGE_SIMPLE=g;var b=v},47673:function(e,t,n){n.d(t,{M1:function(){return u},Xy:function(){return s},bi:function(){return f},e5:function(){return $},ik:function(){return m},nz:function(){return l},pU:function(){return c},s7:function(){return h},x0:function(){return p}});var o=n(14747),r=n(80110),i=n(45503),a=n(67968);let l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),u=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),s=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},c((0,i.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),d=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{let{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:a,colorWarningOutline:l,colorErrorBorderHover:c,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},u((0,i.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},u((0,i.TS)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix, ${n}-suffix`]:{color:r}}}},m=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},c(e)),"&:focus, &-focused":Object.assign({},u(e)),"&-disabled, &[disabled]":Object.assign({},s(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),h=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r}=e,i=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),m(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},b=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},c(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),f(e,`${t}-affix-wrapper`))}},S=e=>{let{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),h(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},s(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},w=e=>{let{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function $(e){return(0,i.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let E=e=>{let{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,a.Z)("Input",e=>{let t=$(e);return[g(t),E(t),b(t),S(t),w(t),(0,r.c)(t)]})},51009:function(e,t,n){n.d(t,{default:function(){return eQ}});var o=n(94184),r=n.n(o),i=n(87462),a=n(74902),l=n(4942),c=n(1413),u=n(97685),s=n(45987),d=n(71002),p=n(21770),f=n(80334),m=n(67294),h=n(8410),g=n(31131),v=n(15105),b=n(42550),S=m.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=m.useRef(null),n=m.useRef(null);return m.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var $=n(64217),E=n(39983),x=function(e){var t,n=e.className,o=e.customizeIcon,i=e.customizeIconProps,a=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof o?o(i):o,m.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:m.createElement("span",{className:r()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))},y=m.forwardRef(function(e,t){var n,o,i=e.prefixCls,a=e.id,l=e.inputElement,u=e.disabled,s=e.tabIndex,d=e.autoFocus,p=e.autoComplete,h=e.editable,g=e.activeDescendantId,v=e.value,S=e.maxLength,w=e.onKeyDown,$=e.onMouseDown,E=e.onChange,x=e.onPaste,y=e.onCompositionStart,Z=e.onCompositionEnd,C=e.open,I=e.attrs,R=l||m.createElement("input",null),M=R,O=M.ref,z=M.props,H=z.onKeyDown,P=z.onChange,D=z.onMouseDown,T=z.onCompositionStart,N=z.onCompositionEnd,k=z.style;return(0,f.Kp)(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=m.cloneElement(R,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},z),{},{id:a,ref:(0,b.sQ)(t,O),disabled:u,tabIndex:s,autoComplete:p||"off",autoFocus:d,className:r()("".concat(i,"-selection-search-input"),null===(n=R)||void 0===n?void 0:null===(o=n.props)||void 0===o?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":C?g:void 0},I),{},{value:h?v:"",maxLength:S,readOnly:!h,unselectable:h?null:"on",style:(0,c.Z)((0,c.Z)({},k),{},{opacity:h?null:0}),onKeyDown:function(e){w(e),H&&H(e)},onMouseDown:function(e){$(e),D&&D(e)},onChange:function(e){E(e),P&&P(e)},onCompositionStart:function(e){y(e),T&&T(e)},onCompositionEnd:function(e){Z(e),N&&N(e)},onPaste:x}))});function Z(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}y.displayName="Input";var C="undefined"!=typeof window&&window.document&&window.document.documentElement;function I(e){return["string","number"].includes((0,d.Z)(e))}function R(e){var t=void 0;return e&&(I(e.title)?t=e.title.toString():I(e.label)&&(t=e.label.toString())),t}function M(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var O=function(e){e.preventDefault(),e.stopPropagation()},z=function(e){var t,n,o=e.id,i=e.prefixCls,a=e.values,c=e.open,s=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,h=e.disabled,g=e.mode,v=e.showSearch,b=e.autoFocus,S=e.autoComplete,w=e.activeDescendantId,Z=e.tabIndex,I=e.removeIcon,z=e.maxTagCount,H=e.maxTagTextLength,P=e.maxTagPlaceholder,D=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,T=e.tagRender,N=e.onToggleOpen,k=e.onRemove,L=e.onInputChange,j=e.onInputPaste,W=e.onInputKeyDown,A=e.onInputMouseDown,V=e.onInputCompositionStart,B=e.onInputCompositionEnd,F=m.useRef(null),_=(0,m.useState)(0),X=(0,u.Z)(_,2),K=X[0],G=X[1],Y=(0,m.useState)(!1),U=(0,u.Z)(Y,2),Q=U[0],J=U[1],q="".concat(i,"-selection"),ee=c||"multiple"===g&&!1===d||"tags"===g?s:"",et="tags"===g||"multiple"===g&&!1===d||v&&(c||Q);function en(e,t,n,o,i){return m.createElement("span",{className:r()("".concat(q,"-item"),(0,l.Z)({},"".concat(q,"-item-disabled"),n)),title:R(e)},m.createElement("span",{className:"".concat(q,"-item-content")},t),o&&m.createElement(x,{className:"".concat(q,"-item-remove"),onMouseDown:O,onClick:i,customizeIcon:I},"\xd7"))}t=function(){G(F.current.scrollWidth)},n=[ee],C?m.useLayoutEffect(t,n):m.useEffect(t,n);var eo=m.createElement("div",{className:"".concat(q,"-search"),style:{width:K},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},m.createElement(y,{ref:p,open:c,prefixCls:i,id:o,inputElement:null,disabled:h,autoFocus:b,autoComplete:S,editable:et,activeDescendantId:w,value:ee,onKeyDown:W,onMouseDown:A,onChange:L,onPaste:j,onCompositionStart:V,onCompositionEnd:B,tabIndex:Z,attrs:(0,$.Z)(e,!0)}),m.createElement("span",{ref:F,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),er=m.createElement(E.Z,{prefixCls:"".concat(q,"-overflow"),data:a,renderItem:function(e){var t,n=e.disabled,o=e.label,r=e.value,i=!h&&!n,a=o;if("number"==typeof H&&("string"==typeof o||"number"==typeof o)){var l=String(a);l.length>H&&(a="".concat(l.slice(0,H),"..."))}var u=function(t){t&&t.stopPropagation(),k(e)};return"function"==typeof T?(t=a,m.createElement("span",{onMouseDown:function(e){O(e),N(!c)}},T({label:t,value:r,disabled:n,closable:i,onClose:u}))):en(e,a,n,i,u)},renderRest:function(e){var t="function"==typeof D?D(e):D;return en({title:t},t,!1)},suffix:eo,itemKey:M,maxCount:z});return m.createElement(m.Fragment,null,er,!a.length&&!ee&&m.createElement("span",{className:"".concat(q,"-placeholder")},f))},H=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,d=e.open,p=e.values,f=e.placeholder,h=e.tabIndex,g=e.showSearch,v=e.searchValue,b=e.activeValue,S=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,x=e.onInputChange,Z=e.onInputPaste,C=e.onInputCompositionStart,I=e.onInputCompositionEnd,M=e.title,O=m.useState(!1),z=(0,u.Z)(O,2),H=z[0],P=z[1],D="combobox"===s,T=D||g,N=p[0],k=v||"";D&&b&&!H&&(k=b),m.useEffect(function(){D&&P(!1)},[D,b]);var L=("combobox"===s||!!d||!!g)&&!!k,j=void 0===M?R(N):M;return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(n,"-selection-search")},m.createElement(y,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:T,activeDescendantId:c,value:k,onKeyDown:w,onMouseDown:E,onChange:function(e){P(!0),x(e)},onPaste:Z,onCompositionStart:C,onCompositionEnd:I,tabIndex:h,attrs:(0,$.Z)(e,!0),maxLength:D?S:void 0})),!D&&N?m.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:L?{visibility:"hidden"}:void 0},N.label):null,N?null:m.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},f))},P=m.forwardRef(function(e,t){var n=(0,m.useRef)(null),o=(0,m.useRef)(!1),r=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,d=e.autoClearSearchValue,p=e.onSearch,f=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,b=e.domRef;m.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var S=w(0),$=(0,u.Z)(S,2),E=$[0],x=$[1],y=(0,m.useRef)(null),Z=function(e){!1!==p(e,!0,o.current)&&h(!0)},C={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===v.Z.UP||t===v.Z.DOWN)&&e.preventDefault(),g&&g(e),t!==v.Z.ENTER||"tags"!==l||o.current||a||null==f||f(e.target.value),[v.Z.ESC,v.Z.SHIFT,v.Z.BACKSPACE,v.Z.TAB,v.Z.WIN_KEY,v.Z.ALT,v.Z.META,v.Z.WIN_KEY_RIGHT,v.Z.CTRL,v.Z.SEMICOLON,v.Z.EQUALS,v.Z.CAPS_LOCK,v.Z.CONTEXT_MENU,v.Z.F1,v.Z.F2,v.Z.F3,v.Z.F4,v.Z.F5,v.Z.F6,v.Z.F7,v.Z.F8,v.Z.F9,v.Z.F10,v.Z.F11,v.Z.F12].includes(t)||h(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(s&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,Z(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");y.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&Z(e.target.value)}},I="multiple"===l||"tags"===l?m.createElement(z,(0,i.Z)({},e,C)):m.createElement(H,(0,i.Z)({},e,C));return m.createElement("div",{ref:b,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=E();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==d&&p("",!0,!1),h())}},I)});P.displayName="Selector";var D=n(40228),T=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],N=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},k=m.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),a=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,f=e.transitionName,h=e.dropdownStyle,g=e.dropdownClassName,v=e.direction,b=e.placement,S=e.builtinPlacements,w=e.dropdownMatchSelectWidth,$=e.dropdownRender,E=e.dropdownAlign,x=e.getPopupContainer,y=e.empty,Z=e.getTriggerDOMNode,C=e.onPopupVisibleChange,I=e.onPopupMouseEnter,R=(0,s.Z)(e,T),M="".concat(n,"-dropdown"),O=u;$&&(O=$(u));var z=m.useMemo(function(){return S||N(w)},[S,w]),H=p?"".concat(M,"-").concat(p):f,P=m.useRef(null);m.useImperativeHandle(t,function(){return{getPopupElement:function(){return P.current}}});var k=(0,c.Z)({minWidth:d},h);return"number"==typeof w?k.width=w:w&&(k.width=d),m.createElement(D.Z,(0,i.Z)({},R,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:b||("rtl"===(void 0===v?"ltr":v)?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:M,popupTransitionName:H,popup:m.createElement("div",{ref:P,onMouseEnter:I},O),popupAlign:E,popupVisible:o,getPopupContainer:x,popupClassName:r()(g,(0,l.Z)({},"".concat(M,"-empty"),y)),popupStyle:k,getTriggerDOMNode:Z,onPopupVisibleChange:C}),a)});k.displayName="SelectTrigger";var L=n(84506);function j(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function W(e,t){var n=e||{},o=n.label,r=n.value,i=n.options,a=n.groupLabel,l=o||(t?"children":"label");return{label:l,value:r||"value",options:i||"options",groupLabel:a||l}}function A(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var V=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],B=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function F(e){return"tags"===e||"multiple"===e}var _=m.forwardRef(function(e,t){var n,o,f,$,E,y,Z,C,I=e.id,R=e.prefixCls,M=e.className,O=e.showSearch,z=e.tagRender,H=e.direction,D=e.omitDomProps,T=e.displayValues,N=e.onDisplayValuesChange,j=e.emptyOptions,W=e.notFoundContent,A=void 0===W?"Not Found":W,_=e.onClear,X=e.mode,K=e.disabled,G=e.loading,Y=e.getInputElement,U=e.getRawInputElement,Q=e.open,J=e.defaultOpen,q=e.onDropdownVisibleChange,ee=e.activeValue,et=e.onActiveValueChange,en=e.activeDescendantId,eo=e.searchValue,er=e.autoClearSearchValue,ei=e.onSearch,ea=e.onSearchSplit,el=e.tokenSeparators,ec=e.allowClear,eu=e.suffixIcon,es=e.clearIcon,ed=e.OptionList,ep=e.animation,ef=e.transitionName,em=e.dropdownStyle,eh=e.dropdownClassName,eg=e.dropdownMatchSelectWidth,ev=e.dropdownRender,eb=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,e$=e.getPopupContainer,eE=e.showAction,ex=void 0===eE?[]:eE,ey=e.onFocus,eZ=e.onBlur,eC=e.onKeyUp,eI=e.onKeyDown,eR=e.onMouseDown,eM=(0,s.Z)(e,V),eO=F(X),ez=(void 0!==O?O:eO)||"combobox"===X,eH=(0,c.Z)({},eM);B.forEach(function(e){delete eH[e]}),null==D||D.forEach(function(e){delete eH[e]});var eP=m.useState(!1),eD=(0,u.Z)(eP,2),eT=eD[0],eN=eD[1];m.useEffect(function(){eN((0,g.Z)())},[]);var ek=m.useRef(null),eL=m.useRef(null),ej=m.useRef(null),eW=m.useRef(null),eA=m.useRef(null),eV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=m.useState(!1),n=(0,u.Z)(t,2),o=n[0],r=n[1],i=m.useRef(null),a=function(){window.clearTimeout(i.current)};return m.useEffect(function(){return a},[]),[o,function(t,n){a(),i.current=window.setTimeout(function(){r(t),n&&n()},e)},a]}(),eB=(0,u.Z)(eV,3),eF=eB[0],e_=eB[1],eX=eB[2];m.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eW.current)||void 0===e?void 0:e.focus,blur:null===(t=eW.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eA.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=m.useMemo(function(){if("combobox"!==X)return eo;var e,t=null===(e=T[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[eo,X,T]),eG="combobox"===X&&"function"==typeof Y&&Y()||null,eY="function"==typeof U&&U(),eU=(0,b.x1)(eL,null==eY?void 0:null===($=eY.props)||void 0===$?void 0:$.ref),eQ=m.useState(!1),eJ=(0,u.Z)(eQ,2),eq=eJ[0],e0=eJ[1];(0,h.Z)(function(){e0(!0)},[]);var e1=(0,p.Z)(!1,{defaultValue:J,value:Q}),e2=(0,u.Z)(e1,2),e4=e2[0],e6=e2[1],e5=!!eq&&e4,e3=!A&&j;(K||e3&&e5&&"combobox"===X)&&(e5=!1);var e7=!e3&&e5,e8=m.useCallback(function(e){var t=void 0!==e?e:!e5;K||(e6(t),e5!==t&&(null==q||q(t)))},[K,e5,e6,q]),e9=m.useMemo(function(){return(el||[]).some(function(e){return["\n","\r\n"].includes(e)})},[el]),te=function(e,t,n){var o=!0,r=e;null==et||et(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,L.Z)(o),i=r[0],l=r.slice(1);if(!i)return[t];var c=t.split(i);return n=n||c.length>1,c.reduce(function(t,n){return[].concat((0,a.Z)(t),(0,a.Z)(e(n,l)))},[]).filter(function(e){return e})}(e,t);return n?o:null}(e,el);return"combobox"!==X&&i&&(r="",null==ea||ea(i),e8(!1),o=!1),ei&&eK!==r&&ei(r,{source:t?"typing":"effect"}),o};m.useEffect(function(){e5||eO||"combobox"===X||te("",!1,!1)},[e5]),m.useEffect(function(){e4&&K&&e6(!1),K&&e_(!1)},[K]);var tt=w(),tn=(0,u.Z)(tt,2),to=tn[0],tr=tn[1],ti=m.useRef(!1),ta=[];m.useEffect(function(){return function(){ta.forEach(function(e){return clearTimeout(e)}),ta.splice(0,ta.length)}},[]);var tl=m.useState(null),tc=(0,u.Z)(tl,2),tu=tc[0],ts=tc[1],td=m.useState({}),tp=(0,u.Z)(td,2)[1];(0,h.Z)(function(){if(e7){var e,t=Math.ceil(null===(e=ek.current)||void 0===e?void 0:e.getBoundingClientRect().width);tu===t||Number.isNaN(t)||ts(t)}},[e7]),eY&&(y=function(e){e8(e)}),n=function(){var e;return[ek.current,null===(e=ej.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eY,(f=m.useRef(null)).current={open:e7,triggerOpen:e8,customizedTrigger:o},m.useEffect(function(){function e(e){if(null===(t=f.current)||void 0===t||!t.customizedTrigger){var t,o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),f.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&f.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tf=m.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:A,open:e5,triggerOpen:e7,id:I,showSearch:ez,multiple:eO,toggleOpen:e8})},[e,A,e7,e5,I,ez,eO,e8]),tm=!!eu||G;tm&&(Z=m.createElement(x,{className:r()("".concat(R,"-arrow"),(0,l.Z)({},"".concat(R,"-arrow-loading"),G)),customizeIcon:eu,customizeIconProps:{loading:G,searchValue:eK,open:e5,focused:eF,showSearch:ez}}));var th=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=m.useMemo(function(){return"object"===(0,d.Z)(o)?o.clearIcon:r||void 0},[o,r]);return{allowClear:m.useMemo(function(){return!i&&!!o&&(!!n.length||!!a)&&!("combobox"===l&&""===a)},[o,i,n.length,a,l]),clearIcon:m.createElement(x,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}}(R,function(){var e;null==_||_(),null===(e=eW.current)||void 0===e||e.focus(),N([],{type:"clear",values:T}),te("",!1,!1)},T,ec,es,K,eK,X),tg=th.allowClear,tv=th.clearIcon,tb=m.createElement(ed,{ref:eA}),tS=r()(R,M,(E={},(0,l.Z)(E,"".concat(R,"-focused"),eF),(0,l.Z)(E,"".concat(R,"-multiple"),eO),(0,l.Z)(E,"".concat(R,"-single"),!eO),(0,l.Z)(E,"".concat(R,"-allow-clear"),ec),(0,l.Z)(E,"".concat(R,"-show-arrow"),tm),(0,l.Z)(E,"".concat(R,"-disabled"),K),(0,l.Z)(E,"".concat(R,"-loading"),G),(0,l.Z)(E,"".concat(R,"-open"),e5),(0,l.Z)(E,"".concat(R,"-customize-input"),eG),(0,l.Z)(E,"".concat(R,"-show-search"),ez),E)),tw=m.createElement(k,{ref:ej,disabled:K,prefixCls:R,visible:e7,popupElement:tb,containerWidth:tu,animation:ep,transitionName:ef,dropdownStyle:em,dropdownClassName:eh,direction:H,dropdownMatchSelectWidth:eg,dropdownRender:ev,dropdownAlign:eb,placement:eS,builtinPlacements:ew,getPopupContainer:e$,empty:j,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:y,onPopupMouseEnter:function(){tp({})}},eY?m.cloneElement(eY,{ref:eU}):m.createElement(P,(0,i.Z)({},e,{domRef:eL,prefixCls:R,inputElement:eG,ref:eW,id:I,showSearch:ez,autoClearSearchValue:er,mode:X,activeDescendantId:en,tagRender:z,values:T,open:e5,onToggleOpen:e8,activeValue:ee,searchValue:eK,onSearch:te,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){N(T.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:e9})));return C=eY?tw:m.createElement("div",(0,i.Z)({className:tS},eH,{ref:ek,onMouseDown:function(e){var t,n=e.target,o=null===(t=ej.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=ta.indexOf(r);-1!==t&&ta.splice(t,1),eX(),eT||o.contains(document.activeElement)||null===(e=eW.current)||void 0===e||e.focus()});ta.push(r)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l=0;l-=1){var c=r[l];if(!c.disabled){r.splice(l,1),i=c;break}}i&&N(r,{type:"remove",values:[i]})}for(var u=arguments.length,s=Array(u>1?u-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,n=N.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},o=N[e];if(!o){Z(null,-1,n);return}Z(o.value,e,n)};(0,m.useEffect)(function(){_(!1!==C?W(0):-1)},[N.length,h]);var X=m.useCallback(function(e){return M.has(e)&&"combobox"!==f},[f,(0,a.Z)(M).toString(),M.size]);(0,m.useEffect)(function(){var e,t=setTimeout(function(){if(!p&&d&&1===M.size){var e=Array.from(M)[0],t=N.findIndex(function(t){return t.data.value===e});-1!==t&&(_(t),j(t))}});return d&&(null===(e=k.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[d,h,y.length]);var K=function(e){void 0!==e&&I(e,{selected:!M.has(e)}),p||g(!1)};if(m.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.Z.N:case v.Z.P:case v.Z.UP:case v.Z.DOWN:var o=0;if(t===v.Z.UP?o=-1:t===v.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.Z.N?o=1:t===v.Z.P&&(o=-1)),0!==o){var r=W(B+o,o);j(r),_(r,!0)}break;case v.Z.ENTER:var i=N[B];i&&!i.data.disabled?K(i.value):K(void 0),d&&e.preventDefault();break;case v.Z.ESC:g(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}}),0===N.length)return m.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(T,"-empty"),onMouseDown:L},b);var G=Object.keys(O).map(function(e){return O[e]}),Y=function(e){return e.label};function U(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var Q=function(e){var t=N[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,a=(0,$.Z)(n,!0),l=Y(t);return t?m.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof l||r?null:l},a,{key:e},U(t,e),{"aria-selected":X(o)}),o):null},J={role:"listbox",id:"".concat(c,"_list")};return m.createElement(m.Fragment,null,z&&m.createElement("div",(0,i.Z)({},J,{style:{height:0,width:0,overflow:"hidden"}}),Q(B-1),Q(B),Q(B+1)),m.createElement(ei.Z,{itemKey:"key",ref:k,data:N,height:P,itemHeight:D,fullHeight:!1,onMouseDown:L,onScroll:w,virtual:z,direction:H,innerProps:z?null:J},function(e,t){var n=e.group,o=e.groupOption,a=e.data,c=e.label,u=e.value,d=a.key;if(n){var p,f,h=null!==(f=a.title)&&void 0!==f?f:ec(c)?c.toString():void 0;return m.createElement("div",{className:r()(T,"".concat(T,"-group")),title:h},void 0!==c?c:d)}var g=a.disabled,v=a.title,b=(a.children,a.style),S=a.className,w=(0,s.Z)(a,el),E=(0,er.Z)(w,G),y=X(u),Z="".concat(T,"-option"),C=r()(T,Z,S,(p={},(0,l.Z)(p,"".concat(Z,"-grouped"),o),(0,l.Z)(p,"".concat(Z,"-active"),B===t&&!g),(0,l.Z)(p,"".concat(Z,"-disabled"),g),(0,l.Z)(p,"".concat(Z,"-selected"),y),p)),I=Y(e),M=!R||"function"==typeof R||y,O="number"==typeof I?I:I||u,H=ec(O)?O.toString():void 0;return void 0!==v&&(H=v),m.createElement("div",(0,i.Z)({},(0,$.Z)(E),z?{}:U(e,t),{"aria-selected":y,className:C,title:H,onMouseMove:function(){B===t||g||_(t)},onClick:function(){g||K(u)},style:b}),m.createElement("div",{className:"".concat(Z,"-content")},O),m.isValidElement(R)||y,M&&m.createElement(x,{className:"".concat(T,"-option-state"),customizeIcon:R,customizeIconProps:{isSelected:y}},y?"✓":null))}))});eu.displayName="OptionList";var es=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ed=["inputValue"],ep=m.forwardRef(function(e,t){var n,o,r,f,h,g=e.id,v=e.mode,b=e.prefixCls,S=e.backfill,w=e.fieldNames,$=e.inputValue,E=e.searchValue,x=e.onSearch,y=e.autoClearSearchValue,C=void 0===y||y,I=e.onSelect,R=e.onDeselect,M=e.dropdownMatchSelectWidth,O=void 0===M||M,z=e.filterOption,H=e.filterSort,P=e.optionFilterProp,D=e.optionLabelProp,T=e.options,N=e.children,k=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,V=e.virtual,B=e.direction,G=e.listHeight,et=void 0===G?200:G,en=e.listItemHeight,eo=void 0===en?20:en,er=e.value,ei=e.defaultValue,el=e.labelInValue,ec=e.onChange,ep=(0,s.Z)(e,es),ef=(n=m.useState(),r=(o=(0,u.Z)(n,2))[0],f=o[1],m.useEffect(function(){var e;f("rc_select_".concat((U?(e=Y,Y+=1):e="TEST_OR_SSR",e)))},[]),g||r),em=F(v),eh=!!(!T&&N),eg=m.useMemo(function(){return(void 0!==z||"combobox"!==v)&&z},[z,v]),ev=m.useMemo(function(){return W(w,eh)},[JSON.stringify(w),eh]),eb=(0,p.Z)("",{value:void 0!==E?E:$,postState:function(e){return e||""}}),eS=(0,u.Z)(eb,2),ew=eS[0],e$=eS[1],eE=m.useMemo(function(){var e=T;T||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Q.Z)(t).map(function(t,o){if(!m.isValidElement(t)||!t.type)return null;var r,i,a,l,u,d=t.type.isSelectOptGroup,p=t.key,f=t.props,h=f.children,g=(0,s.Z)(f,q);return n||!d?(r=t.key,a=(i=t.props).children,l=i.value,u=(0,s.Z)(i,J),(0,c.Z)({key:r,value:void 0!==l?l:r,children:a},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===p?o:p,"__"),label:p},g),{},{options:e(h)})}).filter(function(e){return e})}(N));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=W(n,!1),a=i.label,l=i.value,c=i.options,u=i.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&c in t){var i=t[u];void 0===i&&o&&(i=t.label),r.push({key:j(t,r.length),group:!0,data:t,label:i}),e(t[c],!0)}else{var s=t[l];r.push({key:j(t,r.length),groupOption:n,data:t,label:t[a],value:s})}})}(e,!1),r}(eW,{fieldNames:ev,childrenAsData:eh})},[eW,ev,eh]),eV=function(e){var t=eC(e);if(eO(t),ec&&(t.length!==eP.length||t.some(function(e,t){var n;return(null===(n=eP[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=el?t:t.map(function(e){return e.value}),o=t.map(function(e){return A(eD(e.value))});ec(em?n:n[0],em?o:o[0])}},eB=m.useState(null),eF=(0,u.Z)(eB,2),e_=eF[0],eX=eF[1],eK=m.useState(0),eG=(0,u.Z)(eK,2),eY=eG[0],eU=eG[1],eQ=void 0!==k?k:"combobox"!==v,eJ=m.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;eU(t),S&&"combobox"===v&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eX(String(e))},[S,v]),eq=function(e,t,n){var o=function(){var t,n=eD(e);return[el?{label:null==n?void 0:n[ev.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,A(n)]};if(t&&I){var r=o(),i=(0,u.Z)(r,2);I(i[0],i[1])}else if(!t&&R&&"clear"!==n){var a=o(),l=(0,u.Z)(a,2);R(l[0],l[1])}},e0=ee(function(e,t){var n=!em||t.selected;eV(n?em?[].concat((0,a.Z)(eP),[e]):[e]:eP.filter(function(t){return t.value!==e})),eq(e,n),"combobox"===v?eX(""):(!F||C)&&(e$(""),eX(""))}),e1=m.useMemo(function(){var e=!1!==V&&!1!==O;return(0,c.Z)((0,c.Z)({},eE),{},{flattenOptions:eA,onActiveValue:eJ,defaultActiveFirstOption:eQ,onSelect:e0,menuItemSelectedIcon:L,rawValues:eN,fieldNames:ev,virtual:e,direction:B,listHeight:et,listItemHeight:eo,childrenAsData:eh})},[eE,eA,eJ,eQ,e0,L,eN,ev,V,O,et,eo,eh]);return m.createElement(ea.Provider,{value:e1},m.createElement(_,(0,i.Z)({},ep,{id:ef,prefixCls:void 0===b?"rc-select":b,ref:t,omitDomProps:ed,mode:v,displayValues:eT,onDisplayValuesChange:function(e,t){eV(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){eq(e.value,!1,n)})},direction:B,searchValue:ew,onSearch:function(e,t){if(e$(e),eX(null),"submit"===t.source){var n=(e||"").trim();n&&(eV(Array.from(new Set([].concat((0,a.Z)(eN),[n])))),eq(n,!0),e$(""));return}"blur"!==t.source&&("combobox"===v&&eV(e),null==x||x(e))},autoClearSearchValue:C,onSearchSplit:function(e){var t=e;"tags"!==v&&(t=e.map(function(e){var t=ey.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,a.Z)(eN),(0,a.Z)(t))));eV(n),n.forEach(function(e){eq(e,!0)})},dropdownMatchSelectWidth:O,OptionList:eu,emptyOptions:!eA.length,activeValue:e_,activeDescendantId:"".concat(ef,"_list_").concat(eY)})))});ep.Option=en,ep.OptGroup=et;var ef=n(8745),em=n(33603),eh=n(9708),eg=n(53124),ev=n(98866),eb=n(88258),eS=n(98675),ew=n(65223),e$=n(4173),eE=n(14747),ex=n(80110),ey=n(45503),eZ=n(67968),eC=n(67771),eI=n(33297);let eR=e=>{let{controlPaddingHorizontal:t,controlHeight:n,fontSize:o,lineHeight:r}=e;return{position:"relative",display:"block",minHeight:n,padding:`${(n-o*r)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}};var eM=e=>{let{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - ${r}${l}bottomLeft, - ${i}${l}bottomLeft - `]:{animationName:eC.fJ},[` - ${r}${l}topLeft, - ${i}${l}topLeft, - ${r}${l}topRight, - ${i}${l}topRight - `]:{animationName:eC.Qt},[`${a}${l}bottomLeft`]:{animationName:eC.Uw},[` - ${a}${l}topLeft, - ${a}${l}topRight - `]:{animationName:eC.ly},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},eR(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},eE.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,eC.oN)(e,"slide-up"),(0,eC.oN)(e,"slide-down"),(0,eI.Fm)(e,"move-up"),(0,eI.Fm)(e,"move-down")]};let eO=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e,r=(n-t)/2-o;return[r,Math.ceil(r/2)]};function ez(e,t){let{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=eO(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,eE.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` - &-input, - &-mirror - `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var eH=e=>{let{componentCls:t}=e,n=(0,ey.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,ey.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,r]=eO(e);return[ez(e),ez(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},ez(o,"lg")]};function eP(e,t){let{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}let eD=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},eT=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:a}=t,l=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r}})}}},eN=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ek=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:Object.assign(Object.assign({},(0,eE.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},eD(e)),eN(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},eE.vS),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},eE.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,eE.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},eL=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},ek(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[eP(e),eP((0,ey.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:1.5*e.fontSize}}}},eP((0,ey.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),eH(e),eM(e),{[`${t}-rtl`]:{direction:"rtl"}},eT(t,(0,ey.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),eT(`${t}-status-error`,(0,ey.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),eT(`${t}-status-warning`,(0,ey.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,ex.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var ej=(0,eZ.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,o=(0,ey.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[eL(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let eW=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var eA=n(63606),eV=n(4340),eB=n(97937),eF=n(80882),e_=n(50888),eX=n(68795),eK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let eG="SECRET_COMBOBOX_MODE_DO_NOT_USE",eY=m.forwardRef((e,t)=>{let n;var o,i,a,{prefixCls:l,bordered:c=!0,className:u,rootClassName:s,getPopupContainer:d,popupClassName:p,dropdownClassName:f,listHeight:h=256,placement:g,listItemHeight:v=24,size:b,disabled:S,notFoundContent:w,status:$,builtinPlacements:E,dropdownMatchSelectWidth:x,popupMatchSelectWidth:y,direction:Z,style:C,allowClear:I}=e,R=eK(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);let{getPopupContainer:M,getPrefixCls:O,renderEmpty:z,direction:H,virtual:P,popupMatchSelectWidth:D,popupOverflow:T,select:N}=m.useContext(eg.E_),k=O("select",l),L=O(),j=null!=Z?Z:H,{compactSize:W,compactItemClassnames:A}=(0,e$.ri)(k,j),[V,B]=ej(k),F=m.useMemo(()=>{let{mode:e}=R;return"combobox"===e?void 0:e===eG?"combobox":e},[R.mode]),_=(o=R.suffixIcon,void 0!==(i=R.showArrow)?i:null!==o),X=null!==(a=null!=y?y:x)&&void 0!==a?a:D,{status:K,hasFeedback:G,isFormItemInput:Y,feedbackIcon:U}=m.useContext(ew.aM),Q=(0,eh.F)(K,$);n=void 0!==w?w:"combobox"===F?null:(null==z?void 0:z("Select"))||m.createElement(eb.Z,{componentName:"Select"});let{suffixIcon:J,itemIcon:q,removeIcon:ee,clearIcon:et}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:s,showArrow:d,componentName:p}=e,f=null!=n?n:m.createElement(eV.Z,null),h=e=>null!==t||l||d?m.createElement(m.Fragment,null,!1!==u&&e,l&&s):null,g=null;if(void 0!==t)g=h(t);else if(i)g=h(m.createElement(e_.Z,{spin:!0}));else{let e=`${c}-suffix`;g=t=>{let{open:n,showSearch:o}=t;return n&&o?h(m.createElement(eX.Z,{className:e})):h(m.createElement(eF.Z,{className:e}))}}let v=null;return v=void 0!==o?o:a?m.createElement(eA.Z,null):null,{clearIcon:f,suffixIcon:g,itemIcon:v,removeIcon:void 0!==r?r:m.createElement(eB.Z,null)}}(Object.assign(Object.assign({},R),{multiple:"multiple"===F||"tags"===F,hasFeedback:G,feedbackIcon:U,showSuffixIcon:_,prefixCls:k,showArrow:R.showArrow,componentName:"Select"})),en=(0,er.Z)(R,["suffixIcon","itemIcon"]),eo=r()(p||f,{[`${k}-dropdown-${j}`]:"rtl"===j},s,B),ei=(0,eS.Z)(e=>{var t;return null!==(t=null!=b?b:W)&&void 0!==t?t:e}),ea=m.useContext(ev.Z),el=r()({[`${k}-lg`]:"large"===ei,[`${k}-sm`]:"small"===ei,[`${k}-rtl`]:"rtl"===j,[`${k}-borderless`]:!c,[`${k}-in-form-item`]:Y},(0,eh.Z)(k,Q,G),A,null==N?void 0:N.className,u,s,B),ec=m.useMemo(()=>void 0!==g?g:"rtl"===j?"bottomRight":"bottomLeft",[g,j]),eu=E||eW(T);return V(m.createElement(ep,Object.assign({ref:t,virtual:P,showSearch:null==N?void 0:N.showSearch},en,{style:Object.assign(Object.assign({},null==N?void 0:N.style),C),dropdownMatchSelectWidth:X,builtinPlacements:eu,transitionName:(0,em.m)(L,"slide-up",R.transitionName),listHeight:h,listItemHeight:v,mode:F,prefixCls:k,placement:ec,direction:j,suffixIcon:J,menuItemSelectedIcon:q,removeIcon:ee,allowClear:!0===I?{clearIcon:et}:I,notFoundContent:n,className:el,getPopupContainer:d||M,dropdownClassName:eo,disabled:null!=S?S:ea})))}),eU=(0,ef.Z)(eY);eY.SECRET_COMBOBOX_MODE_DO_NOT_USE=eG,eY.Option=en,eY.OptGroup=et,eY._InternalPanelDoNotUseOrYouWillBeFired=eU;var eQ=eY},85344:function(e,t,n){n.d(t,{Z:function(){return P}});var o=n(87462),r=n(1413),i=n(71002),a=n(97685),l=n(4942),c=n(45987),u=n(67294),s=n(73935),d=n(94184),p=n.n(d),f=n(9220),m=u.forwardRef(function(e,t){var n,i=e.height,a=e.offsetY,c=e.offsetX,s=e.children,d=e.prefixCls,m=e.onInnerResize,h=e.innerProps,g=e.rtl,v=e.extra,b={},S={display:"flex",flexDirection:"column"};return void 0!==a&&(b={height:i,position:"relative",overflow:"hidden"},S=(0,r.Z)((0,r.Z)({},S),{},(n={transform:"translateY(".concat(a,"px)")},(0,l.Z)(n,g?"marginRight":"marginLeft",-c),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"left",0),(0,l.Z)(n,"right",0),(0,l.Z)(n,"top",0),n))),u.createElement("div",{style:b},u.createElement(f.Z,{onResize:function(e){e.offsetHeight&&m&&m()}},u.createElement("div",(0,o.Z)({style:S,className:p()((0,l.Z)({},"".concat(d,"-holder-inner"),d)),ref:t},h),s,v)))});m.displayName="Filler";var h=n(75164);function g(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var v=u.forwardRef(function(e,t){var n,o=e.prefixCls,r=e.rtl,i=e.scrollOffset,c=e.scrollRange,s=e.onStartMove,d=e.onStopMove,f=e.onScroll,m=e.horizontal,v=e.spinSize,b=e.containerSize,S=u.useState(!1),w=(0,a.Z)(S,2),$=w[0],E=w[1],x=u.useState(null),y=(0,a.Z)(x,2),Z=y[0],C=y[1],I=u.useState(null),R=(0,a.Z)(I,2),M=R[0],O=R[1],z=!r,H=u.useRef(),P=u.useRef(),D=u.useState(!1),T=(0,a.Z)(D,2),N=T[0],k=T[1],L=u.useRef(),j=function(){clearTimeout(L.current),k(!0),L.current=setTimeout(function(){k(!1)},3e3)},W=c-b||0,A=b-v||0,V=W>0,B=u.useMemo(function(){return 0===i||0===W?0:i/W*A},[i,W,A]),F=u.useRef({top:B,dragging:$,pageY:Z,startTop:M});F.current={top:B,dragging:$,pageY:Z,startTop:M};var _=function(e){E(!0),C(g(e,m)),O(F.current.top),s(),e.stopPropagation(),e.preventDefault()};u.useEffect(function(){var e=function(e){e.preventDefault()},t=H.current,n=P.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",_),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}},[]);var X=u.useRef();X.current=W;var K=u.useRef();K.current=A,u.useEffect(function(){if($){var e,t=function(t){var n=F.current,o=n.dragging,r=n.pageY,i=n.startTop;if(h.Z.cancel(e),o){var a=g(t,m)-r,l=i;!z&&m?l-=a:l+=a;var c=X.current,u=K.current,s=Math.ceil((u?l/u:0)*c);s=Math.min(s=Math.max(s,0),c),e=(0,h.Z)(function(){f(s,m)})}},n=function(){E(!1),d()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),h.Z.cancel(e)}}},[$]),u.useEffect(function(){j()},[i]),u.useImperativeHandle(t,function(){return{delayHidden:j}});var G="".concat(o,"-scrollbar"),Y={position:"absolute",visibility:N&&V?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return m?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,U.height="100%",U.width=v,z?U.left=B:U.right=B):(Y.width=8,Y.top=0,Y.bottom=0,z?Y.right=0:Y.left=0,U.width="100%",U.height=v,U.top=B),u.createElement("div",{ref:H,className:p()(G,(n={},(0,l.Z)(n,"".concat(G,"-horizontal"),m),(0,l.Z)(n,"".concat(G,"-vertical"),!m),(0,l.Z)(n,"".concat(G,"-visible"),N),n)),style:Y,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:j},u.createElement("div",{ref:P,className:p()("".concat(G,"-thumb"),(0,l.Z)({},"".concat(G,"-thumb-moving"),$)),style:U,onMouseDown:_}))});function b(e){var t=e.children,n=e.setRef,o=u.useCallback(function(e){n(e)},[]);return u.cloneElement(t,{ref:o})}var S=n(34203),w=n(15671),$=n(43144),E=function(){function e(){(0,w.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,$.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),x=("undefined"==typeof navigator?"undefined":(0,i.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),y=function(e,t){var n=(0,u.useRef)(!1),o=(0,u.useRef)(null),r=(0,u.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):(!i||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},Z=n(8410),C=14/15;function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var R=n(56790),M=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],O=[],z={overflowY:"auto",overflowAnchor:"none"},H=u.forwardRef(function(e,t){var n,d,g,w,$,H,P,D,T,N,k,L,j,W,A,V,B,F,_,X,K,G,Y,U,Q,J,q,ee,et,en,eo,er=e.prefixCls,ei=void 0===er?"rc-virtual-list":er,ea=e.className,el=e.height,ec=e.itemHeight,eu=e.fullHeight,es=e.style,ed=e.data,ep=e.children,ef=e.itemKey,em=e.virtual,eh=e.direction,eg=e.scrollWidth,ev=e.component,eb=void 0===ev?"div":ev,eS=e.onScroll,ew=e.onVirtualScroll,e$=e.onVisibleChange,eE=e.innerProps,ex=e.extraRender,ey=(0,c.Z)(e,M),eZ=!!(!1!==em&&el&&ec),eC=eZ&&ed&&ec*ed.length>el,eI="rtl"===eh,eR=p()(ei,(0,l.Z)({},"".concat(ei,"-rtl"),eI),ea),eM=ed||O,eO=(0,u.useRef)(),ez=(0,u.useRef)(),eH=(0,u.useState)(0),eP=(0,a.Z)(eH,2),eD=eP[0],eT=eP[1],eN=(0,u.useState)(0),ek=(0,a.Z)(eN,2),eL=ek[0],ej=ek[1],eW=(0,u.useState)(!1),eA=(0,a.Z)(eW,2),eV=eA[0],eB=eA[1],eF=function(){eB(!0)},e_=function(){eB(!1)},eX=u.useCallback(function(e){return"function"==typeof ef?ef(e):null==e?void 0:e[ef]},[ef]);function eK(e){eT(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(tc.current)||(n=Math.min(n,tc.current)),n=Math.max(n,0));return eO.current.scrollTop=o,o})}var eG=(0,u.useRef)({start:0,end:eM.length}),eY=(0,u.useRef)(),eU=(d=u.useState(eM),w=(g=(0,a.Z)(d,2))[0],$=g[1],H=u.useState(null),D=(P=(0,a.Z)(H,2))[0],T=P[1],u.useEffect(function(){var e=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i=eD&&void 0===t&&(t=a,n=r),u>eD+el&&void 0===o&&(o=a),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(el/ec)),void 0===o&&(o=eM.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,eM.length-1),offset:n}},[eC,eZ,eD,eM,e4,el]),e5=e6.scrollHeight,e3=e6.start,e7=e6.end,e8=e6.offset;eG.current.start=e3,eG.current.end=e7;var e9=u.useState({width:0,height:el}),te=(0,a.Z)(e9,2),tt=te[0],tn=te[1],to=(0,u.useRef)(),tr=(0,u.useRef)(),ti=u.useMemo(function(){return I(tt.width,eg)},[tt.width,eg]),ta=u.useMemo(function(){return I(tt.height,e5)},[tt.height,e5]),tl=e5-el,tc=(0,u.useRef)(tl);tc.current=tl;var tu=eD<=0,ts=eD>=tl,td=y(tu,ts),tp=function(){return{x:eI?-eL:eL,y:eD}},tf=(0,u.useRef)(tp()),tm=(0,R.zX)(function(){if(ew){var e=tp();(tf.current.x!==e.x||tf.current.y!==e.y)&&(ew(e),tf.current=e)}});function th(e,t){t?((0,s.flushSync)(function(){ej(e)}),tm()):eK(e)}var tg=function(e){var t=e,n=eg-tt.width;return Math.min(t=Math.max(t,0),n)},tv=(0,R.zX)(function(e,t){t?((0,s.flushSync)(function(){ej(function(t){return tg(t+(eI?-e:e))})}),tm()):eK(function(t){return t+e})}),tb=(N=!!eg,k=(0,u.useRef)(0),L=(0,u.useRef)(null),j=(0,u.useRef)(null),W=(0,u.useRef)(!1),A=y(tu,ts),V=(0,u.useRef)(null),B=(0,u.useRef)(null),[function(e){if(eZ){h.Z.cancel(B.current),B.current=(0,h.Z)(function(){V.current=null},2);var t,n=e.deltaX,o=e.deltaY;(null===V.current&&(V.current=N&&Math.abs(n)>Math.abs(o)?"x":"y"),"x"===V.current)?(tv(e.deltaX,!0),x||e.preventDefault()):(h.Z.cancel(L.current),t=e.deltaY,k.current+=t,j.current=t,A(t)||(x||e.preventDefault(),L.current=(0,h.Z)(function(){var e=W.current?10:1;tv(k.current*e),k.current=0})))}},function(e){eZ&&(W.current=e.detail===j.current)}]),tS=(0,a.Z)(tb,2),tw=tS[0],t$=tS[1];F=function(e,t){return!td(e,t)&&(tw({preventDefault:function(){},deltaY:e}),!0)},X=(0,u.useRef)(!1),K=(0,u.useRef)(0),G=(0,u.useRef)(null),Y=(0,u.useRef)(null),U=function(e){if(X.current){var t=Math.ceil(e.touches[0].pageY),n=K.current-t;K.current=t,F(n)&&e.preventDefault(),clearInterval(Y.current),Y.current=setInterval(function(){(!F(n*=C,!0)||.1>=Math.abs(n))&&clearInterval(Y.current)},16)}},Q=function(){X.current=!1,_()},J=function(e){_(),1!==e.touches.length||X.current||(X.current=!0,K.current=Math.ceil(e.touches[0].pageY),G.current=e.target,G.current.addEventListener("touchmove",U),G.current.addEventListener("touchend",Q))},_=function(){G.current&&(G.current.removeEventListener("touchmove",U),G.current.removeEventListener("touchend",Q))},(0,Z.Z)(function(){return eZ&&eO.current.addEventListener("touchstart",J),function(){var e;null===(e=eO.current)||void 0===e||e.removeEventListener("touchstart",J),_(),clearInterval(Y.current)}},[eZ]),(0,Z.Z)(function(){function e(e){eZ&&e.preventDefault()}var t=eO.current;return t.addEventListener("wheel",tw),t.addEventListener("DOMMouseScroll",t$),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tw),t.removeEventListener("DOMMouseScroll",t$),t.removeEventListener("MozMousePixelScroll",e)}},[eZ]);var tE=function(){var e,t;null===(e=to.current)||void 0===e||e.delayHidden(),null===(t=tr.current)||void 0===t||t.delayHidden()},tx=(q=u.useRef(),function(e){if(null==e){tE();return}if(h.Z.cancel(q.current),"number"==typeof e)eK(e);else if(e&&"object"===(0,i.Z)(e)){var t,n=e.align;t="index"in e?e.index:eM.findIndex(function(t){return eX(t)===e.key});var o=e.offset,r=void 0===o?0:o;!function e(o,i){if(!(o<0)&&eO.current){var a=eO.current.clientHeight,l=!1,c=i;if(a){for(var u=0,s=0,d=0,p=Math.min(eM.length,t),f=0;f<=p;f+=1){var m=eX(eM[f]);s=u;var g=e2.get(m);u=d=s+(void 0===g?ec:g),f===t&&void 0===g&&(l=!0)}var v=null;switch(i||n){case"top":v=s-r;break;case"bottom":v=d-a+r;break;default:var b=eO.current.scrollTop;sb+a&&(c="bottom")}null!==v&&v!==eO.current.scrollTop&&eK(v)}q.current=(0,h.Z)(function(){l&&e1(),e(o-1,c)},2)}}(3)}});u.useImperativeHandle(t,function(){return{getScrollInfo:tp,scrollTo:function(e){e&&"object"===(0,i.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&ej(tg(e.left)),tx(e.top)):tx(e)}}}),(0,Z.Z)(function(){e$&&e$(eM.slice(e3,e7+1),eM)},[e3,e7,eM]);var ty=(ee=u.useMemo(function(){return[new Map,[]]},[eM,e2.id,ec]),en=(et=(0,a.Z)(ee,2))[0],eo=et[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=en.get(e),o=en.get(t);if(void 0===n||void 0===o)for(var r=eM.length,i=eo.length;iel&&u.createElement(v,{ref:to,prefixCls:ei,scrollOffset:eD,scrollRange:e5,rtl:eI,onScroll:th,onStartMove:eF,onStopMove:e_,spinSize:ta,containerSize:tt.height}),eC&&eg&&u.createElement(v,{ref:tr,prefixCls:ei,scrollOffset:eL,scrollRange:eg,rtl:eI,onScroll:th,onStartMove:eF,onStopMove:e_,spinSize:ti,containerSize:tt.width,horizontal:!0}))});H.displayName="List";var P=H}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/pages/_app-3e37e71f43371f5e.js b/pilot/server/static/_next/static/chunks/pages/_app-60d502d5c75695e9.js similarity index 82% rename from pilot/server/static/_next/static/chunks/pages/_app-3e37e71f43371f5e.js rename to pilot/server/static/_next/static/chunks/pages/_app-60d502d5c75695e9.js index 6ee8b6151..7b2512f3c 100644 --- a/pilot/server/static/_next/static/chunks/pages/_app-3e37e71f43371f5e.js +++ b/pilot/server/static/_next/static/chunks/pages/_app-60d502d5c75695e9.js @@ -22,7 +22,7 @@ if (colorScheme) { ${l}.setAttribute('${a}', colorScheme); } - } catch (e) {} })();`}},"mui-color-scheme-init")})((0,o.Z)({attribute:s,colorSchemeStorageKey:w,defaultMode:C,defaultLightColorScheme:Z,defaultDarkColorScheme:P,modeStorageKey:x},e))}}({themeId:C.Z,theme:x.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,r.Z)({soft:(0,w.pP)(e),solid:(0,w.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}})},38629:function(e,t,n){"use strict";n.d(t,{F:function(){return c},Z:function(){return u}}),n(67294);var r=n(96682),o=n(71927),i=n(1812),a=n(59077),l=n(2548),s=n(85893);let c=()=>{let e=(0,r.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let n=i.Z;return t&&(n=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:n,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,n){"use strict";var r=n(59077);let o=(0,r.Z)();t.Z=o},59077:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),o=n(63366),i=n(59766),a=n(50159),l=n(41796),s=n(41512),c=n(98373);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],i=[]){Object.entries(r).forEach(([r,a])=>{n&&(!n||n([...o,r]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,r],Array.isArray(a)?[...i,r]:i):t([...o,r],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(i,e,`var(${r})`,l),u(a,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],m=["light"];var g=function(e,t){let{colorSchemes:n={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=n,g=(0,o.Z)(n,m);if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:a}=p(n,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,i.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},s),vars:l}}},v=n(86523),y=n(44920);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=n(26821),E=n(13951);let S=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function k(e){var t,n,a,u,f,d,p,h,m,y;let k=e||{},{cssVarPrefix:Z="joy",breakpoints:P,spacing:j,components:R,variants:A,colorInversion:_,shouldSkipGeneratingVar:N=w}=k,T=(0,o.Z)(k,S),I=O(Z),M={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FCFCFD",black:"#09090B"}},F=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return I(e,null==(t=M[r])?void 0:t[o])},B=e=>({plainColor:F(`palette-${e}-500`),plainHoverBg:F(`palette-${e}-50`),plainActiveBg:F(`palette-${e}-100`),plainDisabledColor:F("palette-neutral-400"),outlinedColor:F(`palette-${e}-500`),outlinedBorder:F(`palette-${e}-300`),outlinedHoverBg:F(`palette-${e}-100`),outlinedActiveBg:F(`palette-${e}-200`),outlinedDisabledColor:F("palette-neutral-400"),outlinedDisabledBorder:F("palette-neutral-200"),softColor:F(`palette-${e}-700`),softBg:F(`palette-${e}-100`),softHoverBg:F(`palette-${e}-200`),softActiveColor:F(`palette-${e}-800`),softActiveBg:F(`palette-${e}-300`),softDisabledColor:F("palette-neutral-400"),softDisabledBg:F(`palette-${e}-50`),solidColor:F("palette-common-white"),solidBg:F(`palette-${e}-500`),solidHoverBg:F(`palette-${e}-600`),solidActiveBg:F(`palette-${e}-700`),solidDisabledColor:F("palette-neutral-400"),solidDisabledBg:F(`palette-${e}-100`)}),L=e=>({plainColor:F(`palette-${e}-300`),plainHoverBg:F(`palette-${e}-800`),plainActiveBg:F(`palette-${e}-700`),plainDisabledColor:F("palette-neutral-500"),outlinedColor:F(`palette-${e}-200`),outlinedBorder:F(`palette-${e}-700`),outlinedHoverBg:F(`palette-${e}-800`),outlinedActiveBg:F(`palette-${e}-700`),outlinedDisabledColor:F("palette-neutral-500"),outlinedDisabledBorder:F("palette-neutral-800"),softColor:F(`palette-${e}-200`),softBg:F(`palette-${e}-800`),softHoverBg:F(`palette-${e}-700`),softActiveColor:F(`palette-${e}-100`),softActiveBg:F(`palette-${e}-600`),softDisabledColor:F("palette-neutral-500"),softDisabledBg:F(`palette-${e}-900`),solidColor:F("palette-common-white"),solidBg:F(`palette-${e}-500`),solidHoverBg:F(`palette-${e}-600`),solidActiveBg:F(`palette-${e}-700`),solidDisabledColor:F("palette-neutral-500"),solidDisabledBg:F(`palette-${e}-800`)}),D={palette:{mode:"light",primary:(0,r.Z)({},M.primary,B("primary")),neutral:(0,r.Z)({},M.neutral,B("neutral"),{plainColor:F("palette-neutral-700"),outlinedColor:F("palette-neutral-700")}),danger:(0,r.Z)({},M.danger,B("danger")),success:(0,r.Z)({},M.success,B("success")),warning:(0,r.Z)({},M.warning,B("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:F("palette-neutral-800"),secondary:F("palette-neutral-700"),tertiary:F("palette-neutral-600"),icon:F("palette-neutral-500")},background:{body:F("palette-neutral-50"),surface:F("palette-common-white"),popup:F("palette-common-white"),level1:F("palette-neutral-100"),level2:F("palette-neutral-200"),level3:F("palette-neutral-300"),tooltip:F("palette-neutral-500"),backdrop:`rgba(${I("palette-neutral-darkChannel",(0,l.n8)(M.neutral[900]))} / 0.25)`},divider:`rgba(${I("palette-neutral-mainChannel",(0,l.n8)(M.neutral[500]))} / 0.3)`,focusVisible:F("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},z={palette:{mode:"dark",primary:(0,r.Z)({},M.primary,L("primary")),neutral:(0,r.Z)({},M.neutral,L("neutral")),danger:(0,r.Z)({},M.danger,L("danger")),success:(0,r.Z)({},M.success,L("success")),warning:(0,r.Z)({},M.warning,L("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:F("palette-neutral-100"),secondary:F("palette-neutral-300"),tertiary:F("palette-neutral-400"),icon:F("palette-neutral-400")},background:{body:F("palette-common-black"),surface:F("palette-neutral-900"),popup:F("palette-common-black"),level1:F("palette-neutral-800"),level2:F("palette-neutral-700"),level3:F("palette-neutral-600"),tooltip:F("palette-neutral-600"),backdrop:`rgba(${I("palette-neutral-darkChannel",(0,l.n8)(M.neutral[50]))} / 0.25)`},divider:`rgba(${I("palette-neutral-mainChannel",(0,l.n8)(M.neutral[500]))} / 0.16)`,focusVisible:F("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},H='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',V=(0,r.Z)({body:`"Inter", ${I(`fontFamily-fallback, ${H}`)}`,display:`"Inter", ${I(`fontFamily-fallback, ${H}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:H},T.fontFamily),U=(0,r.Z)({sm:300,md:500,lg:600,xl:700},T.fontWeight),W=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},T.fontSize),K=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},T.lineHeight),q=null!=(t=null==(n=T.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:D.shadowRing,G=null!=(a=null==(u=T.colorSchemes)||null==(u=u.light)?void 0:u.shadowChannel)?a:D.shadowChannel,X=null!=(f=null==(d=T.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:D.shadowOpacity,Y={colorSchemes:{light:D,dark:z},fontSize:W,fontFamily:V,fontWeight:U,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${I("focus-thickness",null!=(p=null==(h=T.focus)?void 0:h.thickness)?p:"2px")})`,outline:`${I("focus-thickness",null!=(m=null==(y=T.focus)?void 0:y.thickness)?m:"2px")} solid ${I("palette-focusVisible",M.primary[500])}`}},lineHeight:K,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${I("shadowRing",q)}, 0px 1px 2px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,sm:`${I("shadowRing",q)}, 0px 1px 2px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 2px 4px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,md:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 6px 12px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,lg:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 12px 16px -4px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,xl:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 20px 24px -4px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-xl, ${U.xl}`),fontSize:I(`fontSize-xl4, ${W.xl4}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h2:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-xl, ${U.xl}`),fontSize:I(`fontSize-xl3, ${W.xl3}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h3:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-xl2, ${W.xl2}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h4:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-xl, ${W.xl}`),lineHeight:I(`lineHeight-md, ${K.md}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-lg":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-lg, ${W.lg}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-md":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-md, ${W.md}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-sm":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-sm, ${W.sm}`),lineHeight:I(`lineHeight-sm, ${K.sm}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"body-lg":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-lg, ${W.lg}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-secondary, ${D.palette.text.secondary}`)},"body-md":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-md, ${W.md}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-secondary, ${D.palette.text.secondary}`)},"body-sm":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-sm, ${W.sm}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-tertiary, ${D.palette.text.tertiary}`)},"body-xs":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-xs, ${W.xs}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-tertiary, ${D.palette.text.tertiary}`)}}},J=T?(0,i.Z)(Y,T):Y,{colorSchemes:Q}=J,ee=(0,o.Z)(J,$),et=(0,r.Z)({colorSchemes:Q},ee,{breakpoints:(0,s.Z)(null!=P?P:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${et.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary}),o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},R),cssVarPrefix:Z,getCssVar:I,spacing:(0,c.Z)(j),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(et.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:en,generateCssVars:er}=g((0,r.Z)({colorSchemes:Q},ee),{prefix:Z,shouldSkipGeneratingVar:N});et.vars=en,et.generateCssVars=er,et.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),et.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},et.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eo={getCssVar:I,palette:et.colorSchemes.light.palette};return et.variants=(0,i.Z)({plain:(0,E.Zm)("plain",eo),plainHover:(0,E.Zm)("plainHover",eo),plainActive:(0,E.Zm)("plainActive",eo),plainDisabled:(0,E.Zm)("plainDisabled",eo),outlined:(0,E.Zm)("outlined",eo),outlinedHover:(0,E.Zm)("outlinedHover",eo),outlinedActive:(0,E.Zm)("outlinedActive",eo),outlinedDisabled:(0,E.Zm)("outlinedDisabled",eo),soft:(0,E.Zm)("soft",eo),softHover:(0,E.Zm)("softHover",eo),softActive:(0,E.Zm)("softActive",eo),softDisabled:(0,E.Zm)("softDisabled",eo),solid:(0,E.Zm)("solid",eo),solidHover:(0,E.Zm)("solidHover",eo),solidActive:(0,E.Zm)("solidActive",eo),solidDisabled:(0,E.Zm)("solidDisabled",eo)},A),et.palette=(0,r.Z)({},et.colorSchemes.light.palette,{colorScheme:"light"}),et.shouldSkipGeneratingVar=N,et.colorInversion="function"==typeof _?_:(0,i.Z)({soft:(0,E.pP)(et,!0),solid:(0,E.Lo)(et,!0)},_||{},{clone:!1}),et}},2548:function(e,t){"use strict";t.Z="$$joy"},13951:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var r=n(87462),o=n(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),a(r,t,e)}}),r},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(n=(0,r.Z)({},n,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{var r;let o=t.split("-"),i=o[1],a=o[2];return n(t,null==(r=e.palette)||null==(r=r[i])?void 0:r[a])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;i(o)&&(a[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-200`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:l(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{let r=t.split("-"),o=r[1],i=r[2];return n(t,e.palette[o][i])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;i(n)&&(a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-200`),[r("--palette-text-tertiary")]:l(`palette-${t}-300`),[r("--palette-text-icon")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-100`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},44819:function(e,t,n){"use strict";var r=n(67294);let o=r.createContext(null);t.Z=o},56760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(44819);function i(){let e=r.useContext(o.Z);return e}},71927:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),o=n(67294),i=n(56760),a=n(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=n(85893),u=function(e){let{children:t,theme:n}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,r.Z)({},e,t)}(l,n);return null!=e&&(e[s]=null!==l),e},[n,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=n(75260),d=n(34168);let p={};function h(e,t,n,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),l=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var m=function(e){let{children:t,theme:n,themeId:r}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(r,o,n),s=h(r,a,n,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var r=n(59766);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||i;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){let e=r.breakpoints||i;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);r[o]=n(t[i],i)}else r[i]=t[i];return r},{})}let a=n(t);return a}function l(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function s(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function c(e,...t){let n=l(e),o=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return s(Object.keys(n),o)}function u({values:e,breakpoints:t,base:n}){let r;let o=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,n,o)=>(Array.isArray(e)?(t[n]=null!=e[o]?e[o]:e[r],r=o):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var r=n(71387);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let a=e.substring(n+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},41512:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63366),o=n(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,s=(0,r.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),o=n(63366),i=n(59766),a=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,m=(0,o.Z)(e,f),g=(0,a.Z)(n),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:v,shape:(0,r.Z)({},l,h)},m);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return m},e6:function(){return v},o3:function(){return y}});var r=n(95408),o=n(54844),i=n(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,n]=e.split(""),r=a[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let i=c(n),a=e[n];return(0,r.k9)(e,a,e=>i.reduce((t,n)=>(t[n]=m(o,e),t),{}))})(e,t,o,n)).reduce(i.Z,{})}function v(e){return g(e,u)}function y(e){return g(e,f)}function b(e){return g(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return a}});var r=n(14142),o=n(95408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(98700),o=n(54844),i=n(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,m,g,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let E=(0,o.ZP)({prop:"gridColumn"}),S=(0,o.ZP)({prop:"gridRow"}),$=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),k=(0,o.ZP)({prop:"gridAutoRows"}),Z=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),j=(0,o.ZP)({prop:"gridTemplateAreas"}),R=(0,o.ZP)({prop:"gridArea"});function A(e,t){return"grey"===t?t:e}a(x,w,C,E,S,$,O,k,Z,P,j,R);let _=(0,o.ZP)({prop:"color",themeKey:"palette",transform:A}),N=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),T=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:A});function I(e){return e<=1&&0!==e?`${100*e}%`:e}a(_,N,T);let M=(0,o.ZP)({prop:"width",transform:I}),F=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r;let o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.VO[t];return o?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:I(t)}}):null;F.filterProps=["maxWidth"];let B=(0,o.ZP)({prop:"minWidth",transform:I}),L=(0,o.ZP)({prop:"height",transform:I}),D=(0,o.ZP)({prop:"maxHeight",transform:I}),z=(0,o.ZP)({prop:"minHeight",transform:I});(0,o.ZP)({prop:"size",cssProperty:"width",transform:I}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:I});let H=(0,o.ZP)({prop:"boxSizing"});a(M,F,B,L,D,z,H);let V={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:I},maxWidth:{style:F},minWidth:{transform:I},height:{transform:I},maxHeight:{transform:I},minHeight:{transform:I},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var U=V},86523:function(e,t,n){"use strict";var r=n(14142),o=n(47730),i=n(54844),a=n(95408),l=n(44920);let s=function(){function e(e,t,n,o){let l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(n,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let n=(0,i.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}})}return function t(n){var r;let{sx:i,theme:s={}}=n||{};if(!i)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(r).forEach(n=>{var i;let l="function"==typeof(i=r[n])?i(s):i;if(null!=l){if("object"==typeof l){if(c[n])u=(0,o.Z)(u,e(n,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,n){"use strict";var r=n(88647),o=n(34168);let i=(0,r.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},34168:function(e,t,n){"use strict";var r=n(67294),o=n(75260);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},14142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71387);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,i={clone:!0}){let a=i.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?a[r]=e(t[r],n[r],i):i.clone?a[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:a[r]=n[r])}),a}}});var r=n(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},2788:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(97685),o=n(67294),i=n(73935),a=n(98924);n(80334);var l=n(42550),s=o.createContext(null),c=n(74902),u=n(8410),f=[],d=n(44958),p=n(74204),h="rc-util-locker-".concat(Date.now()),m=0,g=!1,v=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=o.forwardRef(function(e,t){var n,y,b,x,w=e.open,C=e.autoLock,E=e.getContainer,S=(e.debug,e.autoDestroy),$=void 0===S||S,O=e.children,k=o.useState(w),Z=(0,r.Z)(k,2),P=Z[0],j=Z[1],R=P||w;o.useEffect(function(){($||w)&&j(w)},[w,$]);var A=o.useState(function(){return v(E)}),_=(0,r.Z)(A,2),N=_[0],T=_[1];o.useEffect(function(){var e=v(E);T(null!=e?e:null)});var I=function(e,t){var n=o.useState(function(){return(0,a.Z)()?document.createElement("div"):null}),i=(0,r.Z)(n,1)[0],l=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=d||(l.current?void 0:function(e){g(function(t){return[e].concat((0,c.Z)(t))})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.Z)(function(){return e?d?d(y):y():b(),b},[e]),(0,u.Z)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[i,v]}(R&&!N,0),M=(0,r.Z)(I,2),F=M[0],B=M[1],L=null!=N?N:F;n=!!(C&&w&&(0,a.Z)()&&(L===F||L===document.body)),y=o.useState(function(){return m+=1,"".concat(h,"_").concat(m)}),b=(0,r.Z)(y,1)[0],(0,u.Z)(function(){if(n){var e=(0,p.o)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,d.jL)(b);return function(){(0,d.jL)(b)}},[n,b]);var D=null;O&&(0,l.Yr)(O)&&t&&(D=O.ref);var z=(0,l.x1)(D,t);if(!R||!(0,a.Z)()||void 0===N)return null;var H=!1===L||("boolean"==typeof x&&(g=x),g),V=O;return t&&(V=o.cloneElement(O,{ref:z})),o.createElement(s.Provider,{value:B},H?V:(0,i.createPortal)(V,L))})},40228:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(1413),o=n(97685),i=n(45987),a=n(2788),l=n(94184),s=n.n(l),c=n(9220),u=n(34203),f=n(27571),d=n(66680),p=n(7028),h=n(8410),m=n(31131),g=n(67294),v=n(73935),y=g.createContext(null);function b(e){return e?Array.isArray(e)?e:[e]:[]}var x=n(5110);function w(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function C(e){return e.ownerDocument.defaultView}function E(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=C(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function $(e){return S(parseFloat(e),0)}function O(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=C(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=$(i),m=$(a),g=$(l),v=$(s),y=S(Math.round(c.width/d*1e3)/1e3),b=S(Math.round(c.height/u*1e3)/1e3),x=h*b,w=g*y,E=0,O=0;if("clip"===r){var k=$(o);E=k*y,O=k*b}var Z=c.x+w-E,P=c.y+x-O,j=Z+c.width+2*E-w-v*y-(d-p-g-v)*y,R=P+c.height+2*O-x-m*b-(u-f-h-m)*b;n.left=Math.max(n.left,Z),n.top=Math.max(n.top,P),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,R)}}),n}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Z(e,t){var n=(0,o.Z)(t||[],2),r=n[0],i=n[1];return[k(e.width,r),k(e.height,i)]}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function R(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var A=n(74902);n(56790);var _=n(75164),N=n(87462),T=n(82225),I=n(42550);function M(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=o.y,f=g.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],y=h[0],b=h[1];m!==y&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===u?0:u,v!==b&&["l","r"].includes(v)?"l"===v?d.left=0:d.right=0:d.left=void 0===c?0:c}return g.createElement("div",{ref:f,className:s()("".concat(t,"-arrow"),a),style:d},l)}function F(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(T.ZP,(0,N.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var B=g.memo(function(e){return e.children},function(e,t){return t.cache}),L=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,m=e.onClick,v=e.mask,y=e.arrow,b=e.arrowPos,x=e.align,w=e.motion,C=e.maskMotion,E=e.forceRender,S=e.getPopupContainer,$=e.autoDestroy,O=e.portal,k=e.zIndex,Z=e.onMouseEnter,P=e.onMouseLeave,j=e.onPointerEnter,R=e.ready,A=e.offsetX,_=e.offsetY,L=e.offsetR,D=e.offsetB,z=e.onAlign,H=e.onPrepare,V=e.stretch,U=e.targetWidth,W=e.targetHeight,K="function"==typeof n?n():n,q=(null==S?void 0:S.length)>0,G=g.useState(!S||!q),X=(0,o.Z)(G,2),Y=X[0],J=X[1];if((0,h.Z)(function(){!Y&&q&&u&&J(!0)},[Y,q,u]),!Y)return null;var Q="auto",ee={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(R||!d){var et=x.points,en=x._experimental,er=null==en?void 0:en.dynamicInset,eo=er&&"r"===et[0][1],ei=er&&"b"===et[0][0];eo?(ee.right=L,ee.left=Q):(ee.left=A,ee.right=Q),ei?(ee.bottom=D,ee.top=Q):(ee.top=_,ee.bottom=Q)}var ea={};return V&&(V.includes("height")&&W?ea.height=W:V.includes("minHeight")&&W&&(ea.minHeight=W),V.includes("width")&&U?ea.width=U:V.includes("minWidth")&&U&&(ea.minWidth=U)),d||(ea.pointerEvents="none"),g.createElement(O,{open:E||d||p,getContainer:S&&function(){return S(u)},autoDestroy:$},g.createElement(F,{prefixCls:a,open:d,zIndex:k,mask:v,motion:C}),g.createElement(c.Z,{onResize:z,disabled:!d},function(e){return g.createElement(T.ZP,(0,N.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(a,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),f(e)}}),function(n,o){var c=n.className,u=n.style,f=s()(a,c,i);return g.createElement("div",{ref:(0,I.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ee),ea),u),{},{boxSizing:"border-box",zIndex:k},l),onMouseEnter:Z,onMouseLeave:P,onPointerEnter:j,onClick:m},y&&g.createElement(M,{prefixCls:a,arrow:y,arrowPos:b,align:x}),g.createElement(B,{cache:!d},K))})}))}),D=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,I.Yr)(n),i=g.useCallback(function(e){(0,I.mH)(t,r?r(e):e)},[r]),a=(0,I.x1)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return g.forwardRef(function(t,n){var a,l,$,k,N,T,I,M,F,B,H,V,U,W,K,q,G,X=t.prefixCls,Y=void 0===X?"rc-trigger-popup":X,J=t.children,Q=t.action,ee=t.showAction,et=t.hideAction,en=t.popupVisible,er=t.defaultPopupVisible,eo=t.onPopupVisibleChange,ei=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,el=t.mouseLeaveDelay,es=void 0===el?.1:el,ec=t.focusDelay,eu=t.blurDelay,ef=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,eh=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,ev=t.popup,ey=t.popupClassName,eb=t.popupStyle,ex=t.popupPlacement,ew=t.builtinPlacements,eC=void 0===ew?{}:ew,eE=t.popupAlign,eS=t.zIndex,e$=t.stretch,eO=t.getPopupClassNameFromAlign,ek=t.alignPoint,eZ=t.onPopupClick,eP=t.onPopupAlign,ej=t.arrow,eR=t.popupMotion,eA=t.maskMotion,e_=t.popupTransitionName,eN=t.popupAnimation,eT=t.maskTransitionName,eI=t.maskAnimation,eM=t.className,eF=t.getTriggerDOMNode,eB=(0,i.Z)(t,z),eL=g.useState(!1),eD=(0,o.Z)(eL,2),ez=eD[0],eH=eD[1];(0,h.Z)(function(){eH((0,m.Z)())},[]);var eV=g.useRef({}),eU=g.useContext(y),eW=g.useMemo(function(){return{registerSubPopup:function(e,t){eV.current[e]=t,null==eU||eU.registerSubPopup(e,t)}}},[eU]),eK=(0,p.Z)(),eq=g.useState(null),eG=(0,o.Z)(eq,2),eX=eG[0],eY=eG[1],eJ=(0,d.Z)(function(e){(0,u.S)(e)&&eX!==e&&eY(e),null==eU||eU.registerSubPopup(eK,e)}),eQ=g.useState(null),e0=(0,o.Z)(eQ,2),e1=e0[0],e2=e0[1],e4=(0,d.Z)(function(e){(0,u.S)(e)&&e1!==e&&e2(e)}),e5=g.Children.only(J),e3=(null==e5?void 0:e5.props)||{},e6={},e8=(0,d.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,f.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eX?void 0:eX.contains(e))||(null===(n=(0,f.A)(eX))||void 0===n?void 0:n.host)===e||e===eX||Object.values(eV.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=w(Y,eR,eN,e_),e9=w(Y,eA,eI,eT),te=g.useState(er||!1),tt=(0,o.Z)(te,2),tn=tt[0],tr=tt[1],to=null!=en?en:tn,ti=(0,d.Z)(function(e){void 0===en&&tr(e)});(0,h.Z)(function(){tr(en||!1)},[en]);var ta=g.useRef(to);ta.current=to;var tl=(0,d.Z)(function(e){(0,v.flushSync)(function(){to!==e&&(ti(e),null==eo||eo(e))})}),ts=g.useRef(),tc=function(){clearTimeout(ts.current)},tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tc(),0===t?tl(e):ts.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tc},[]);var tf=g.useState(!1),td=(0,o.Z)(tf,2),tp=td[0],th=td[1];(0,h.Z)(function(e){(!e||to)&&th(!0)},[to]);var tm=g.useState(null),tg=(0,o.Z)(tm,2),tv=tg[0],ty=tg[1],tb=g.useState([0,0]),tx=(0,o.Z)(tb,2),tw=tx[0],tC=tx[1],tE=function(e){tC([e.clientX,e.clientY])},tS=(a=ek?tw:e1,l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eC[ex]||{}}),k=($=(0,o.Z)(l,2))[0],N=$[1],T=g.useRef(0),I=g.useMemo(function(){return eX?E(eX):[]},[eX]),M=g.useRef({}),to||(M.current={}),F=(0,d.Z)(function(){if(eX&&a&&to){var e,t,n,i,l,s,c,f=eX.ownerDocument,d=C(eX).getComputedStyle(eX),p=d.width,h=d.height,m=d.position,g=eX.style.left,v=eX.style.top,y=eX.style.right,b=eX.style.bottom,w=(0,r.Z)((0,r.Z)({},eC[ex]),eE),E=f.createElement("div");if(null===(e=eX.parentElement)||void 0===e||e.appendChild(E),E.style.left="".concat(eX.offsetLeft,"px"),E.style.top="".concat(eX.offsetTop,"px"),E.style.position=m,E.style.height="".concat(eX.offsetHeight,"px"),E.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",Array.isArray(a))n={x:a[0],y:a[1],width:0,height:0};else{var $=a.getBoundingClientRect();n={x:$.x,y:$.y,width:$.width,height:$.height}}var k=eX.getBoundingClientRect(),A=f.documentElement,_=A.clientWidth,T=A.clientHeight,F=A.scrollWidth,B=A.scrollHeight,L=A.scrollTop,D=A.scrollLeft,z=k.height,H=k.width,V=n.height,U=n.width,W=w.htmlRegion,K="visible",q="visibleFirst";"scroll"!==W&&W!==q&&(W=K);var G=W===q,X=O({left:-D,top:-L,right:F-D,bottom:B-L},I),Y=O({left:0,top:0,right:_,bottom:T},I),J=W===K?Y:X,Q=G?Y:J;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ee=eX.getBoundingClientRect();eX.style.left=g,eX.style.top=v,eX.style.right=y,eX.style.bottom=b,null===(t=eX.parentElement)||void 0===t||t.removeChild(E);var et=S(Math.round(H/parseFloat(p)*1e3)/1e3),en=S(Math.round(z/parseFloat(h)*1e3)/1e3);if(!(0===et||0===en||(0,u.S)(a)&&!(0,x.Z)(a))){var er=w.offset,eo=w.targetOffset,ei=Z(k,er),ea=(0,o.Z)(ei,2),el=ea[0],es=ea[1],ec=Z(n,eo),eu=(0,o.Z)(ec,2),ef=eu[0],ed=eu[1];n.x-=ef,n.y-=ed;var ep=w.points||[],eh=(0,o.Z)(ep,2),em=eh[0],eg=P(eh[1]),ev=P(em),ey=j(n,eg),eb=j(k,ev),ew=(0,r.Z)({},w),eS=ey.x-eb.x+el,e$=ey.y-eb.y+es,eO=te(eS,e$),ek=te(eS,e$,Y),eZ=j(n,["t","l"]),ej=j(k,["t","l"]),eR=j(n,["b","r"]),eA=j(k,["b","r"]),e_=w.overflow||{},eN=e_.adjustX,eT=e_.adjustY,eI=e_.shiftX,eM=e_.shiftY,eF=function(e){return"boolean"==typeof e?e:e>=0};tt();var eB=eF(eT),eL=ev[0]===eg[0];if(eB&&"t"===ev[0]&&(l>Q.bottom||M.current.bt)){var eD=e$;eL?eD-=z-V:eD=eZ.y-eA.y-es;var ez=te(eS,eD),eH=te(eS,eD,Y);ez>eO||ez===eO&&(!G||eH>=ek)?(M.current.bt=!0,e$=eD,es=-es,ew.points=[R(ev,0),R(eg,0)]):M.current.bt=!1}if(eB&&"b"===ev[0]&&(ieO||eU===eO&&(!G||eW>=ek)?(M.current.tb=!0,e$=eV,es=-es,ew.points=[R(ev,0),R(eg,0)]):M.current.tb=!1}var eK=eF(eN),eq=ev[1]===eg[1];if(eK&&"l"===ev[1]&&(c>Q.right||M.current.rl)){var eG=eS;eq?eG-=H-U:eG=eZ.x-eA.x-el;var eY=te(eG,e$),eJ=te(eG,e$,Y);eY>eO||eY===eO&&(!G||eJ>=ek)?(M.current.rl=!0,eS=eG,el=-el,ew.points=[R(ev,1),R(eg,1)]):M.current.rl=!1}if(eK&&"r"===ev[1]&&(seO||e0===eO&&(!G||e1>=ek)?(M.current.lr=!0,eS=eQ,el=-el,ew.points=[R(ev,1),R(eg,1)]):M.current.lr=!1}tt();var e2=!0===eI?0:eI;"number"==typeof e2&&(sY.right&&(eS-=c-Y.right-el,n.x>Y.right-e2&&(eS+=n.x-Y.right+e2)));var e4=!0===eM?0:eM;"number"==typeof e4&&(iY.bottom&&(e$-=l-Y.bottom-es,n.y>Y.bottom-e4&&(e$+=n.y-Y.bottom+e4)));var e5=k.x+eS,e3=k.y+e$,e6=n.x,e8=n.y;null==eP||eP(eX,ew);var e7=ee.right-k.x-(eS+k.width),e9=ee.bottom-k.y-(e$+k.height);N({ready:!0,offsetX:eS/et,offsetY:e$/en,offsetR:e7/et,offsetB:e9/en,arrowX:((Math.max(e5,e6)+Math.min(e5+H,e6+U))/2-e5)/et,arrowY:((Math.max(e3,e8)+Math.min(e3+z,e8+V))/2-e3)/en,scaleX:et,scaleY:en,align:ew})}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=k.x+e,o=k.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-i)*(Math.min(o+z,n.bottom)-a))}function tt(){l=(i=k.y+e$)+z,c=(s=k.x+eS)+H}}}),B=function(){N(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,h.Z)(B,[ex]),(0,h.Z)(function(){to||B()},[to]),[k.ready,k.offsetX,k.offsetY,k.offsetR,k.offsetB,k.arrowX,k.arrowY,k.scaleX,k.scaleY,k.align,function(){T.current+=1;var e=T.current;Promise.resolve().then(function(){T.current===e&&F()})}]),t$=(0,o.Z)(tS,11),tO=t$[0],tk=t$[1],tZ=t$[2],tP=t$[3],tj=t$[4],tR=t$[5],tA=t$[6],t_=t$[7],tN=t$[8],tT=t$[9],tI=t$[10],tM=(H=void 0===Q?"hover":Q,g.useMemo(function(){var e=b(null!=ee?ee:H),t=b(null!=et?et:H),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,H,ee,et])),tF=(0,o.Z)(tM,2),tB=tF[0],tL=tF[1],tD=tB.has("click"),tz=tL.has("click")||tL.has("contextMenu"),tH=(0,d.Z)(function(){tp||tI()});V=function(){ta.current&&ek&&tz&&tu(!1)},(0,h.Z)(function(){if(to&&e1&&eX){var e=E(e1),t=E(eX),n=C(eX),r=new Set([n].concat((0,A.Z)(e),(0,A.Z)(t)));function o(){tH(),V()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tH(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e1,eX]),(0,h.Z)(function(){tH()},[tw,ex]),(0,h.Z)(function(){to&&!(null!=eC&&eC[ex])&&tH()},[JSON.stringify(eE)]);var tV=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eC,Y,tT,ek);return s()(e,null==eO?void 0:eO(tT))},[tT,eO,eC,Y,ek]);g.useImperativeHandle(n,function(){return{forceAlign:tH}});var tU=g.useState(0),tW=(0,o.Z)(tU,2),tK=tW[0],tq=tW[1],tG=g.useState(0),tX=(0,o.Z)(tG,2),tY=tX[0],tJ=tX[1],tQ=function(){if(e$&&e1){var e=e1.getBoundingClientRect();tq(e.width),tJ(e.height)}};function t0(e,t,n,r){e6[e]=function(o){var i;null==r||r(o),tu(t,n);for(var a=arguments.length,l=Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},n),{timer:i}))},h=new Map,m=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},g={},v=function(e,t){g[e]&&g[e].forEach(function(e){return e(t)})},y=function(e,t){return g[e]||(g[e]=[]),g[e].push(t),function(){var n=g[e].indexOf(t);g[e].splice(n,1)}},b=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,g=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),g)?g(t):d.get(e)};return(s(function(){if(n){var t=C(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(n,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),n)?{onBefore:function(e){var t=C(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=h.get(n);return r&&r!==x.current||(r=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=r,m(n,r)),{servicePromise:r}},onSuccess:function(t,r){var o;n&&(null===(o=b.current)||void 0===o||o.call(b),w(n,{data:t,params:r,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=b.current)||void 0===r||r.call(b),w(n,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))}}:{}},x=n(23279),w=n.n(x),C=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==r&&(e.leading=r),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[r,a,l]);return((0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;n-1&&Z.splice(e,1)})}return function(){s()}},[n,a]),f(function(){s()}),{}},R=function(e,t){var n=t.retryInterval,r=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return r?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===r||a.current<=r){var t=null!=n?n:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},A=n(23493),_=n.n(A),N=function(e,t){var n=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return l.current=_()(function(e){e()},n,s),e.runAsync=function(){for(var e=[],n=0;n{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(y)}`:`.${y}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},98787:function(e,t,n){"use strict";n.d(t,{o2:function(){return l},yT:function(){return s}});var r=n(74902),o=n(8796);let i=o.i.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function s(e){return a.includes(e)}},69760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97937),o=n(67294);function i(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(r.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}},98082:function(e,t,n){"use strict";var r=n(67294),o=n(31808);t.Z=()=>{let[e,t]=r.useState(!1);return r.useEffect(()=>{t((0,o.fk)())},[]),e}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},80636:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77786);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,f=t/2,d={};return Object.keys(o).forEach(e=>{let p=l&&i[e]||o[e],h=Object.assign(Object.assign({},p),{offset:[0,0]});switch(d[e]=h,a.has(e)&&(h.autoArrow=!1),e){case"top":case"topLeft":case"topRight":h.offset[1]=-f-s;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=f+s;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-f-s;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=f+s}let m=(0,r.fS)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":h.offset[0]=-m.dropdownArrowOffset-f;break;case"topRight":case"bottomRight":h.offset[0]=m.dropdownArrowOffset+f;break;case"leftTop":case"rightTop":h.offset[1]=-m.dropdownArrowOffset-f;break;case"leftBottom":case"rightBottom":h.offset[1]=m.dropdownArrowOffset+f}h.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(h.htmlRegion="visibleFirst")}),d}},96159:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var r,o=n(67294);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return i(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},31808:function(e,t,n){"use strict";let r;n.d(t,{fk:function(){return a},jD:function(){return i}});var o=n(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==r)return r;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),r=1===e.scrollHeight,document.body.removeChild(t),r}},45353:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(94184),o=n.n(r),i=n(42550),a=n(5110),l=n(67294),s=n(53124),c=n(96159),u=n(67968);let f=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var d=(0,u.Z)("Wave",e=>[f(e)]),p=n(66680),h=n(75164),m=n(82225),g=n(38135);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}var y=n(17415);function b(e){return Number.isNaN(e)?0:e}let x=e=>{let{className:t,target:n,component:r}=e,i=l.useRef(null),[a,s]=l.useState(null),[c,u]=l.useState([]),[f,d]=l.useState(0),[p,x]=l.useState(0),[w,C]=l.useState(0),[E,S]=l.useState(0),[$,O]=l.useState(!1),k={left:f,top:p,width:w,height:E,borderRadius:c.map(e=>`${e}px`).join(" ")};function Z(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),C(n.offsetWidth),S(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>b(parseFloat(e))))}if(a&&(k["--wave-color"]=a),l.useEffect(()=>{if(n){let e;let t=(0,h.Z)(()=>{Z(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(Z)).observe(n),()=>{h.Z.cancel(t),null==e||e.disconnect()}}},[]),!$)return null;let P=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(y.A));return l.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return l.createElement("div",{ref:i,className:o()(t,{"wave-quick":P},n),style:k})})};var w=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,g.s)(l.createElement(x,Object.assign({},t,{target:e})),o)},C=n(25976),E=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:u}=(0,l.useContext)(s.E_),f=(0,l.useRef)(null),m=u("wave"),[,g]=d(m),v=function(e,t,n){let{wave:r}=l.useContext(s.E_),[,o,i]=(0,C.Z)(),a=(0,p.Z)(a=>{let l=e.current;if((null==r?void 0:r.disabled)||!l)return;let s=l.querySelector(`.${y.A}`)||l,{showEffect:c}=r||{};(c||w)(s,{className:t,token:o,component:n,event:a,hashId:i})}),c=l.useRef();return e=>{h.Z.cancel(c.current),c.current=(0,h.Z)(()=>{a(e)})}}(f,o()(m,g),r);if(l.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!l.isValidElement(t))return null!=t?t:null;let b=(0,i.Yr)(t)?(0,i.sQ)(t.ref,f):f;return(0,c.Tm)(t,{ref:b})}},17415:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r="ant-wave-target"},4026:function(e,t,n){"use strict";n.d(t,{n:function(){return eo},Z:function(){return ea}});var r=n(67294),o=n(94184),i=n.n(o),a=n(98423),l=n(42550),s=n(45353),c=n(53124),u=n(98866),f=n(98675),d=n(4173),p=n(25976),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var g=n(96159);let v=/^[\u4e00-\u9fa5]{2}$/,y=v.test.bind(v);function b(e){return"string"==typeof e}function x(e){return"text"===e||"link"===e}let w=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},a)});var C=n(50888),E=n(82225);let S=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:l}=e,s=i()(`${n}-loading-icon`,o);return r.createElement(w,{prefixCls:n,className:s,style:a,ref:t},r.createElement(C.Z,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var k=e=>{let{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e;return o?r.createElement(S,{prefixCls:t,className:i,style:a}):r.createElement(E.ZP,{visible:!!n,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:$,onAppearActive:O,onEnterStart:$,onEnterActive:O,onLeaveStart:O,onLeaveActive:$},(e,n)=>{let{className:o,style:l}=e;return r.createElement(S,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})})},Z=n(14747),P=n(45503),j=n(67968);let R=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var A=e=>{let{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, + } catch (e) {} })();`}},"mui-color-scheme-init")})((0,o.Z)({attribute:s,colorSchemeStorageKey:w,defaultMode:C,defaultLightColorScheme:Z,defaultDarkColorScheme:P,modeStorageKey:x},e))}}({themeId:C.Z,theme:x.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,r.Z)({soft:(0,w.pP)(e),solid:(0,w.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}})},38629:function(e,t,n){"use strict";n.d(t,{F:function(){return c},Z:function(){return u}}),n(67294);var r=n(96682),o=n(71927),i=n(1812),a=n(59077),l=n(2548),s=n(85893);let c=()=>{let e=(0,r.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let n=i.Z;return t&&(n=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:n,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,n){"use strict";var r=n(59077);let o=(0,r.Z)();t.Z=o},59077:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),o=n(63366),i=n(59766),a=n(50159),l=n(41796),s=n(41512),c=n(98373);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],i=[]){Object.entries(r).forEach(([r,a])=>{n&&(!n||n([...o,r]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,r],Array.isArray(a)?[...i,r]:i):t([...o,r],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(i,e,`var(${r})`,l),u(a,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],m=["light"];var g=function(e,t){let{colorSchemes:n={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=n,g=(0,o.Z)(n,m);if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:a}=p(n,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,i.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},s),vars:l}}},v=n(86523),y=n(44920);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=n(26821),E=n(13951);let S=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function k(e){var t,n,a,u,f,d,p,h,m,y;let k=e||{},{cssVarPrefix:Z="joy",breakpoints:P,spacing:j,components:R,variants:A,colorInversion:_,shouldSkipGeneratingVar:N=w}=k,T=(0,o.Z)(k,S),I=O(Z),M={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FCFCFD",black:"#09090B"}},F=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return I(e,null==(t=M[r])?void 0:t[o])},B=e=>({plainColor:F(`palette-${e}-500`),plainHoverBg:F(`palette-${e}-50`),plainActiveBg:F(`palette-${e}-100`),plainDisabledColor:F("palette-neutral-400"),outlinedColor:F(`palette-${e}-500`),outlinedBorder:F(`palette-${e}-300`),outlinedHoverBg:F(`palette-${e}-100`),outlinedActiveBg:F(`palette-${e}-200`),outlinedDisabledColor:F("palette-neutral-400"),outlinedDisabledBorder:F("palette-neutral-200"),softColor:F(`palette-${e}-700`),softBg:F(`palette-${e}-100`),softHoverBg:F(`palette-${e}-200`),softActiveColor:F(`palette-${e}-800`),softActiveBg:F(`palette-${e}-300`),softDisabledColor:F("palette-neutral-400"),softDisabledBg:F(`palette-${e}-50`),solidColor:F("palette-common-white"),solidBg:F(`palette-${e}-500`),solidHoverBg:F(`palette-${e}-600`),solidActiveBg:F(`palette-${e}-700`),solidDisabledColor:F("palette-neutral-400"),solidDisabledBg:F(`palette-${e}-100`)}),L=e=>({plainColor:F(`palette-${e}-300`),plainHoverBg:F(`palette-${e}-800`),plainActiveBg:F(`palette-${e}-700`),plainDisabledColor:F("palette-neutral-500"),outlinedColor:F(`palette-${e}-200`),outlinedBorder:F(`palette-${e}-700`),outlinedHoverBg:F(`palette-${e}-800`),outlinedActiveBg:F(`palette-${e}-700`),outlinedDisabledColor:F("palette-neutral-500"),outlinedDisabledBorder:F("palette-neutral-800"),softColor:F(`palette-${e}-200`),softBg:F(`palette-${e}-800`),softHoverBg:F(`palette-${e}-700`),softActiveColor:F(`palette-${e}-100`),softActiveBg:F(`palette-${e}-600`),softDisabledColor:F("palette-neutral-500"),softDisabledBg:F(`palette-${e}-900`),solidColor:F("palette-common-white"),solidBg:F(`palette-${e}-500`),solidHoverBg:F(`palette-${e}-600`),solidActiveBg:F(`palette-${e}-700`),solidDisabledColor:F("palette-neutral-500"),solidDisabledBg:F(`palette-${e}-800`)}),D={palette:{mode:"light",primary:(0,r.Z)({},M.primary,B("primary")),neutral:(0,r.Z)({},M.neutral,B("neutral"),{plainColor:F("palette-neutral-700"),outlinedColor:F("palette-neutral-700")}),danger:(0,r.Z)({},M.danger,B("danger")),success:(0,r.Z)({},M.success,B("success")),warning:(0,r.Z)({},M.warning,B("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:F("palette-neutral-800"),secondary:F("palette-neutral-700"),tertiary:F("palette-neutral-600"),icon:F("palette-neutral-500")},background:{body:F("palette-neutral-50"),surface:F("palette-common-white"),popup:F("palette-common-white"),level1:F("palette-neutral-100"),level2:F("palette-neutral-200"),level3:F("palette-neutral-300"),tooltip:F("palette-neutral-500"),backdrop:`rgba(${I("palette-neutral-darkChannel",(0,l.n8)(M.neutral[900]))} / 0.25)`},divider:`rgba(${I("palette-neutral-mainChannel",(0,l.n8)(M.neutral[500]))} / 0.3)`,focusVisible:F("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},z={palette:{mode:"dark",primary:(0,r.Z)({},M.primary,L("primary")),neutral:(0,r.Z)({},M.neutral,L("neutral")),danger:(0,r.Z)({},M.danger,L("danger")),success:(0,r.Z)({},M.success,L("success")),warning:(0,r.Z)({},M.warning,L("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:F("palette-neutral-100"),secondary:F("palette-neutral-300"),tertiary:F("palette-neutral-400"),icon:F("palette-neutral-400")},background:{body:F("palette-common-black"),surface:F("palette-neutral-900"),popup:F("palette-common-black"),level1:F("palette-neutral-800"),level2:F("palette-neutral-700"),level3:F("palette-neutral-600"),tooltip:F("palette-neutral-600"),backdrop:`rgba(${I("palette-neutral-darkChannel",(0,l.n8)(M.neutral[50]))} / 0.25)`},divider:`rgba(${I("palette-neutral-mainChannel",(0,l.n8)(M.neutral[500]))} / 0.16)`,focusVisible:F("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},H='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',V=(0,r.Z)({body:`"Inter", ${I(`fontFamily-fallback, ${H}`)}`,display:`"Inter", ${I(`fontFamily-fallback, ${H}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:H},T.fontFamily),U=(0,r.Z)({sm:300,md:500,lg:600,xl:700},T.fontWeight),W=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},T.fontSize),K=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},T.lineHeight),q=null!=(t=null==(n=T.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:D.shadowRing,G=null!=(a=null==(u=T.colorSchemes)||null==(u=u.light)?void 0:u.shadowChannel)?a:D.shadowChannel,X=null!=(f=null==(d=T.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:D.shadowOpacity,Y={colorSchemes:{light:D,dark:z},fontSize:W,fontFamily:V,fontWeight:U,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${I("focus-thickness",null!=(p=null==(h=T.focus)?void 0:h.thickness)?p:"2px")})`,outline:`${I("focus-thickness",null!=(m=null==(y=T.focus)?void 0:y.thickness)?m:"2px")} solid ${I("palette-focusVisible",M.primary[500])}`}},lineHeight:K,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${I("shadowRing",q)}, 0px 1px 2px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,sm:`${I("shadowRing",q)}, 0px 1px 2px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 2px 4px 0px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,md:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 6px 12px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,lg:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 12px 16px -4px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`,xl:`${I("shadowRing",q)}, 0px 2px 8px -2px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)}), 0px 20px 24px -4px rgba(${I("shadowChannel",G)} / ${I("shadowOpacity",X)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-xl, ${U.xl}`),fontSize:I(`fontSize-xl4, ${W.xl4}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h2:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-xl, ${U.xl}`),fontSize:I(`fontSize-xl3, ${W.xl3}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h3:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-xl2, ${W.xl2}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},h4:{fontFamily:I(`fontFamily-display, ${V.display}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-xl, ${W.xl}`),lineHeight:I(`lineHeight-md, ${K.md}`),letterSpacing:"-0.025em",color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-lg":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-lg, ${U.lg}`),fontSize:I(`fontSize-lg, ${W.lg}`),lineHeight:I(`lineHeight-xs, ${K.xs}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-md":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-md, ${W.md}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"title-sm":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-sm, ${W.sm}`),lineHeight:I(`lineHeight-sm, ${K.sm}`),color:I(`palette-text-primary, ${D.palette.text.primary}`)},"body-lg":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-lg, ${W.lg}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-secondary, ${D.palette.text.secondary}`)},"body-md":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-md, ${W.md}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-secondary, ${D.palette.text.secondary}`)},"body-sm":{fontFamily:I(`fontFamily-body, ${V.body}`),fontSize:I(`fontSize-sm, ${W.sm}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-tertiary, ${D.palette.text.tertiary}`)},"body-xs":{fontFamily:I(`fontFamily-body, ${V.body}`),fontWeight:I(`fontWeight-md, ${U.md}`),fontSize:I(`fontSize-xs, ${W.xs}`),lineHeight:I(`lineHeight-md, ${K.md}`),color:I(`palette-text-tertiary, ${D.palette.text.tertiary}`)}}},J=T?(0,i.Z)(Y,T):Y,{colorSchemes:Q}=J,ee=(0,o.Z)(J,$),et=(0,r.Z)({colorSchemes:Q},ee,{breakpoints:(0,s.Z)(null!=P?P:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${et.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary}),o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},R),cssVarPrefix:Z,getCssVar:I,spacing:(0,c.Z)(j),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(et.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:en,generateCssVars:er}=g((0,r.Z)({colorSchemes:Q},ee),{prefix:Z,shouldSkipGeneratingVar:N});et.vars=en,et.generateCssVars=er,et.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),et.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},et.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eo={getCssVar:I,palette:et.colorSchemes.light.palette};return et.variants=(0,i.Z)({plain:(0,E.Zm)("plain",eo),plainHover:(0,E.Zm)("plainHover",eo),plainActive:(0,E.Zm)("plainActive",eo),plainDisabled:(0,E.Zm)("plainDisabled",eo),outlined:(0,E.Zm)("outlined",eo),outlinedHover:(0,E.Zm)("outlinedHover",eo),outlinedActive:(0,E.Zm)("outlinedActive",eo),outlinedDisabled:(0,E.Zm)("outlinedDisabled",eo),soft:(0,E.Zm)("soft",eo),softHover:(0,E.Zm)("softHover",eo),softActive:(0,E.Zm)("softActive",eo),softDisabled:(0,E.Zm)("softDisabled",eo),solid:(0,E.Zm)("solid",eo),solidHover:(0,E.Zm)("solidHover",eo),solidActive:(0,E.Zm)("solidActive",eo),solidDisabled:(0,E.Zm)("solidDisabled",eo)},A),et.palette=(0,r.Z)({},et.colorSchemes.light.palette,{colorScheme:"light"}),et.shouldSkipGeneratingVar=N,et.colorInversion="function"==typeof _?_:(0,i.Z)({soft:(0,E.pP)(et,!0),solid:(0,E.Lo)(et,!0)},_||{},{clone:!1}),et}},2548:function(e,t){"use strict";t.Z="$$joy"},13951:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var r=n(87462),o=n(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),a(r,t,e)}}),r},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(n=(0,r.Z)({},n,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{var r;let o=t.split("-"),i=o[1],a=o[2];return n(t,null==(r=e.palette)||null==(r=r[i])?void 0:r[a])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;i(o)&&(a[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-200`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:l(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{let r=t.split("-"),o=r[1],i=r[2];return n(t,e.palette[o][i])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;i(n)&&(a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-200`),[r("--palette-text-tertiary")]:l(`palette-${t}-300`),[r("--palette-text-icon")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-100`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},44819:function(e,t,n){"use strict";var r=n(67294);let o=r.createContext(null);t.Z=o},56760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(44819);function i(){let e=r.useContext(o.Z);return e}},71927:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),o=n(67294),i=n(56760),a=n(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=n(85893),u=function(e){let{children:t,theme:n}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,r.Z)({},e,t)}(l,n);return null!=e&&(e[s]=null!==l),e},[n,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=n(75260),d=n(34168);let p={};function h(e,t,n,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),l=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var m=function(e){let{children:t,theme:n,themeId:r}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(r,o,n),s=h(r,a,n,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var r=n(59766);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||i;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){let e=r.breakpoints||i;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);r[o]=n(t[i],i)}else r[i]=t[i];return r},{})}let a=n(t);return a}function l(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function s(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function c(e,...t){let n=l(e),o=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return s(Object.keys(n),o)}function u({values:e,breakpoints:t,base:n}){let r;let o=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,n,o)=>(Array.isArray(e)?(t[n]=null!=e[o]?e[o]:e[r],r=o):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var r=n(71387);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let a=e.substring(n+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},41512:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63366),o=n(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,s=(0,r.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),o=n(63366),i=n(59766),a=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,m=(0,o.Z)(e,f),g=(0,a.Z)(n),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:v,shape:(0,r.Z)({},l,h)},m);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return m},e6:function(){return v},o3:function(){return y}});var r=n(95408),o=n(54844),i=n(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,n]=e.split(""),r=a[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let i=c(n),a=e[n];return(0,r.k9)(e,a,e=>i.reduce((t,n)=>(t[n]=m(o,e),t),{}))})(e,t,o,n)).reduce(i.Z,{})}function v(e){return g(e,u)}function y(e){return g(e,f)}function b(e){return g(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return a}});var r=n(14142),o=n(95408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(98700),o=n(54844),i=n(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,m,g,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let E=(0,o.ZP)({prop:"gridColumn"}),S=(0,o.ZP)({prop:"gridRow"}),$=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),k=(0,o.ZP)({prop:"gridAutoRows"}),Z=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),j=(0,o.ZP)({prop:"gridTemplateAreas"}),R=(0,o.ZP)({prop:"gridArea"});function A(e,t){return"grey"===t?t:e}a(x,w,C,E,S,$,O,k,Z,P,j,R);let _=(0,o.ZP)({prop:"color",themeKey:"palette",transform:A}),N=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),T=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:A});function I(e){return e<=1&&0!==e?`${100*e}%`:e}a(_,N,T);let M=(0,o.ZP)({prop:"width",transform:I}),F=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r;let o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.VO[t];return o?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:I(t)}}):null;F.filterProps=["maxWidth"];let B=(0,o.ZP)({prop:"minWidth",transform:I}),L=(0,o.ZP)({prop:"height",transform:I}),D=(0,o.ZP)({prop:"maxHeight",transform:I}),z=(0,o.ZP)({prop:"minHeight",transform:I});(0,o.ZP)({prop:"size",cssProperty:"width",transform:I}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:I});let H=(0,o.ZP)({prop:"boxSizing"});a(M,F,B,L,D,z,H);let V={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:I},maxWidth:{style:F},minWidth:{transform:I},height:{transform:I},maxHeight:{transform:I},minHeight:{transform:I},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var U=V},86523:function(e,t,n){"use strict";var r=n(14142),o=n(47730),i=n(54844),a=n(95408),l=n(44920);let s=function(){function e(e,t,n,o){let l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(n,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let n=(0,i.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}})}return function t(n){var r;let{sx:i,theme:s={}}=n||{};if(!i)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(r).forEach(n=>{var i;let l="function"==typeof(i=r[n])?i(s):i;if(null!=l){if("object"==typeof l){if(c[n])u=(0,o.Z)(u,e(n,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,n){"use strict";var r=n(88647),o=n(34168);let i=(0,r.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},34168:function(e,t,n){"use strict";var r=n(67294),o=n(75260);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},14142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71387);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,i={clone:!0}){let a=i.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?a[r]=e(t[r],n[r],i):i.clone?a[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:a[r]=n[r])}),a}}});var r=n(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},2788:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(97685),o=n(67294),i=n(73935),a=n(98924);n(80334);var l=n(42550),s=o.createContext(null),c=n(74902),u=n(8410),f=[],d=n(44958),p=n(74204),h="rc-util-locker-".concat(Date.now()),m=0,g=!1,v=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=o.forwardRef(function(e,t){var n,y,b,x,w=e.open,C=e.autoLock,E=e.getContainer,S=(e.debug,e.autoDestroy),$=void 0===S||S,O=e.children,k=o.useState(w),Z=(0,r.Z)(k,2),P=Z[0],j=Z[1],R=P||w;o.useEffect(function(){($||w)&&j(w)},[w,$]);var A=o.useState(function(){return v(E)}),_=(0,r.Z)(A,2),N=_[0],T=_[1];o.useEffect(function(){var e=v(E);T(null!=e?e:null)});var I=function(e,t){var n=o.useState(function(){return(0,a.Z)()?document.createElement("div"):null}),i=(0,r.Z)(n,1)[0],l=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=d||(l.current?void 0:function(e){g(function(t){return[e].concat((0,c.Z)(t))})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.Z)(function(){return e?d?d(y):y():b(),b},[e]),(0,u.Z)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[i,v]}(R&&!N,0),M=(0,r.Z)(I,2),F=M[0],B=M[1],L=null!=N?N:F;n=!!(C&&w&&(0,a.Z)()&&(L===F||L===document.body)),y=o.useState(function(){return m+=1,"".concat(h,"_").concat(m)}),b=(0,r.Z)(y,1)[0],(0,u.Z)(function(){if(n){var e=(0,p.o)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,d.jL)(b);return function(){(0,d.jL)(b)}},[n,b]);var D=null;O&&(0,l.Yr)(O)&&t&&(D=O.ref);var z=(0,l.x1)(D,t);if(!R||!(0,a.Z)()||void 0===N)return null;var H=!1===L||("boolean"==typeof x&&(g=x),g),V=O;return t&&(V=o.cloneElement(O,{ref:z})),o.createElement(s.Provider,{value:B},H?V:(0,i.createPortal)(V,L))})},40228:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(1413),o=n(97685),i=n(45987),a=n(2788),l=n(94184),s=n.n(l),c=n(9220),u=n(34203),f=n(27571),d=n(66680),p=n(7028),h=n(8410),m=n(31131),g=n(67294),v=n(73935),y=g.createContext(null);function b(e){return e?Array.isArray(e)?e:[e]:[]}var x=n(5110);function w(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function C(e){return e.ownerDocument.defaultView}function E(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=C(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function $(e){return S(parseFloat(e),0)}function O(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=C(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=$(i),m=$(a),g=$(l),v=$(s),y=S(Math.round(c.width/d*1e3)/1e3),b=S(Math.round(c.height/u*1e3)/1e3),x=h*b,w=g*y,E=0,O=0;if("clip"===r){var k=$(o);E=k*y,O=k*b}var Z=c.x+w-E,P=c.y+x-O,j=Z+c.width+2*E-w-v*y-(d-p-g-v)*y,R=P+c.height+2*O-x-m*b-(u-f-h-m)*b;n.left=Math.max(n.left,Z),n.top=Math.max(n.top,P),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,R)}}),n}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Z(e,t){var n=(0,o.Z)(t||[],2),r=n[0],i=n[1];return[k(e.width,r),k(e.height,i)]}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function R(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var A=n(74902);n(56790);var _=n(75164),N=n(87462),T=n(82225),I=n(42550);function M(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=o.y,f=g.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],y=h[0],b=h[1];m!==y&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===u?0:u,v!==b&&["l","r"].includes(v)?"l"===v?d.left=0:d.right=0:d.left=void 0===c?0:c}return g.createElement("div",{ref:f,className:s()("".concat(t,"-arrow"),a),style:d},l)}function F(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(T.ZP,(0,N.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var B=g.memo(function(e){return e.children},function(e,t){return t.cache}),L=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,m=e.onClick,v=e.mask,y=e.arrow,b=e.arrowPos,x=e.align,w=e.motion,C=e.maskMotion,E=e.forceRender,S=e.getPopupContainer,$=e.autoDestroy,O=e.portal,k=e.zIndex,Z=e.onMouseEnter,P=e.onMouseLeave,j=e.onPointerEnter,R=e.ready,A=e.offsetX,_=e.offsetY,L=e.offsetR,D=e.offsetB,z=e.onAlign,H=e.onPrepare,V=e.stretch,U=e.targetWidth,W=e.targetHeight,K="function"==typeof n?n():n,q=(null==S?void 0:S.length)>0,G=g.useState(!S||!q),X=(0,o.Z)(G,2),Y=X[0],J=X[1];if((0,h.Z)(function(){!Y&&q&&u&&J(!0)},[Y,q,u]),!Y)return null;var Q="auto",ee={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(R||!d){var et=x.points,en=x._experimental,er=null==en?void 0:en.dynamicInset,eo=er&&"r"===et[0][1],ei=er&&"b"===et[0][0];eo?(ee.right=L,ee.left=Q):(ee.left=A,ee.right=Q),ei?(ee.bottom=D,ee.top=Q):(ee.top=_,ee.bottom=Q)}var ea={};return V&&(V.includes("height")&&W?ea.height=W:V.includes("minHeight")&&W&&(ea.minHeight=W),V.includes("width")&&U?ea.width=U:V.includes("minWidth")&&U&&(ea.minWidth=U)),d||(ea.pointerEvents="none"),g.createElement(O,{open:E||d||p,getContainer:S&&function(){return S(u)},autoDestroy:$},g.createElement(F,{prefixCls:a,open:d,zIndex:k,mask:v,motion:C}),g.createElement(c.Z,{onResize:z,disabled:!d},function(e){return g.createElement(T.ZP,(0,N.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(a,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),f(e)}}),function(n,o){var c=n.className,u=n.style,f=s()(a,c,i);return g.createElement("div",{ref:(0,I.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ee),ea),u),{},{boxSizing:"border-box",zIndex:k},l),onMouseEnter:Z,onMouseLeave:P,onPointerEnter:j,onClick:m},y&&g.createElement(M,{prefixCls:a,arrow:y,arrowPos:b,align:x}),g.createElement(B,{cache:!d},K))})}))}),D=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,I.Yr)(n),i=g.useCallback(function(e){(0,I.mH)(t,r?r(e):e)},[r]),a=(0,I.x1)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return g.forwardRef(function(t,n){var a,l,$,k,N,T,I,M,F,B,H,V,U,W,K,q,G,X=t.prefixCls,Y=void 0===X?"rc-trigger-popup":X,J=t.children,Q=t.action,ee=t.showAction,et=t.hideAction,en=t.popupVisible,er=t.defaultPopupVisible,eo=t.onPopupVisibleChange,ei=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,el=t.mouseLeaveDelay,es=void 0===el?.1:el,ec=t.focusDelay,eu=t.blurDelay,ef=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,eh=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,ev=t.popup,ey=t.popupClassName,eb=t.popupStyle,ex=t.popupPlacement,ew=t.builtinPlacements,eC=void 0===ew?{}:ew,eE=t.popupAlign,eS=t.zIndex,e$=t.stretch,eO=t.getPopupClassNameFromAlign,ek=t.alignPoint,eZ=t.onPopupClick,eP=t.onPopupAlign,ej=t.arrow,eR=t.popupMotion,eA=t.maskMotion,e_=t.popupTransitionName,eN=t.popupAnimation,eT=t.maskTransitionName,eI=t.maskAnimation,eM=t.className,eF=t.getTriggerDOMNode,eB=(0,i.Z)(t,z),eL=g.useState(!1),eD=(0,o.Z)(eL,2),ez=eD[0],eH=eD[1];(0,h.Z)(function(){eH((0,m.Z)())},[]);var eV=g.useRef({}),eU=g.useContext(y),eW=g.useMemo(function(){return{registerSubPopup:function(e,t){eV.current[e]=t,null==eU||eU.registerSubPopup(e,t)}}},[eU]),eK=(0,p.Z)(),eq=g.useState(null),eG=(0,o.Z)(eq,2),eX=eG[0],eY=eG[1],eJ=(0,d.Z)(function(e){(0,u.S)(e)&&eX!==e&&eY(e),null==eU||eU.registerSubPopup(eK,e)}),eQ=g.useState(null),e0=(0,o.Z)(eQ,2),e1=e0[0],e2=e0[1],e4=(0,d.Z)(function(e){(0,u.S)(e)&&e1!==e&&e2(e)}),e3=g.Children.only(J),e5=(null==e3?void 0:e3.props)||{},e6={},e8=(0,d.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,f.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eX?void 0:eX.contains(e))||(null===(n=(0,f.A)(eX))||void 0===n?void 0:n.host)===e||e===eX||Object.values(eV.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=w(Y,eR,eN,e_),e9=w(Y,eA,eI,eT),te=g.useState(er||!1),tt=(0,o.Z)(te,2),tn=tt[0],tr=tt[1],to=null!=en?en:tn,ti=(0,d.Z)(function(e){void 0===en&&tr(e)});(0,h.Z)(function(){tr(en||!1)},[en]);var ta=g.useRef(to);ta.current=to;var tl=(0,d.Z)(function(e){(0,v.flushSync)(function(){to!==e&&(ti(e),null==eo||eo(e))})}),ts=g.useRef(),tc=function(){clearTimeout(ts.current)},tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tc(),0===t?tl(e):ts.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tc},[]);var tf=g.useState(!1),td=(0,o.Z)(tf,2),tp=td[0],th=td[1];(0,h.Z)(function(e){(!e||to)&&th(!0)},[to]);var tm=g.useState(null),tg=(0,o.Z)(tm,2),tv=tg[0],ty=tg[1],tb=g.useState([0,0]),tx=(0,o.Z)(tb,2),tw=tx[0],tC=tx[1],tE=function(e){tC([e.clientX,e.clientY])},tS=(a=ek?tw:e1,l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eC[ex]||{}}),k=($=(0,o.Z)(l,2))[0],N=$[1],T=g.useRef(0),I=g.useMemo(function(){return eX?E(eX):[]},[eX]),M=g.useRef({}),to||(M.current={}),F=(0,d.Z)(function(){if(eX&&a&&to){var e,t,n,i,l,s,c,f=eX.ownerDocument,d=C(eX).getComputedStyle(eX),p=d.width,h=d.height,m=d.position,g=eX.style.left,v=eX.style.top,y=eX.style.right,b=eX.style.bottom,w=(0,r.Z)((0,r.Z)({},eC[ex]),eE),E=f.createElement("div");if(null===(e=eX.parentElement)||void 0===e||e.appendChild(E),E.style.left="".concat(eX.offsetLeft,"px"),E.style.top="".concat(eX.offsetTop,"px"),E.style.position=m,E.style.height="".concat(eX.offsetHeight,"px"),E.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",Array.isArray(a))n={x:a[0],y:a[1],width:0,height:0};else{var $=a.getBoundingClientRect();n={x:$.x,y:$.y,width:$.width,height:$.height}}var k=eX.getBoundingClientRect(),A=f.documentElement,_=A.clientWidth,T=A.clientHeight,F=A.scrollWidth,B=A.scrollHeight,L=A.scrollTop,D=A.scrollLeft,z=k.height,H=k.width,V=n.height,U=n.width,W=w.htmlRegion,K="visible",q="visibleFirst";"scroll"!==W&&W!==q&&(W=K);var G=W===q,X=O({left:-D,top:-L,right:F-D,bottom:B-L},I),Y=O({left:0,top:0,right:_,bottom:T},I),J=W===K?Y:X,Q=G?Y:J;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ee=eX.getBoundingClientRect();eX.style.left=g,eX.style.top=v,eX.style.right=y,eX.style.bottom=b,null===(t=eX.parentElement)||void 0===t||t.removeChild(E);var et=S(Math.round(H/parseFloat(p)*1e3)/1e3),en=S(Math.round(z/parseFloat(h)*1e3)/1e3);if(!(0===et||0===en||(0,u.S)(a)&&!(0,x.Z)(a))){var er=w.offset,eo=w.targetOffset,ei=Z(k,er),ea=(0,o.Z)(ei,2),el=ea[0],es=ea[1],ec=Z(n,eo),eu=(0,o.Z)(ec,2),ef=eu[0],ed=eu[1];n.x-=ef,n.y-=ed;var ep=w.points||[],eh=(0,o.Z)(ep,2),em=eh[0],eg=P(eh[1]),ev=P(em),ey=j(n,eg),eb=j(k,ev),ew=(0,r.Z)({},w),eS=ey.x-eb.x+el,e$=ey.y-eb.y+es,eO=te(eS,e$),ek=te(eS,e$,Y),eZ=j(n,["t","l"]),ej=j(k,["t","l"]),eR=j(n,["b","r"]),eA=j(k,["b","r"]),e_=w.overflow||{},eN=e_.adjustX,eT=e_.adjustY,eI=e_.shiftX,eM=e_.shiftY,eF=function(e){return"boolean"==typeof e?e:e>=0};tt();var eB=eF(eT),eL=ev[0]===eg[0];if(eB&&"t"===ev[0]&&(l>Q.bottom||M.current.bt)){var eD=e$;eL?eD-=z-V:eD=eZ.y-eA.y-es;var ez=te(eS,eD),eH=te(eS,eD,Y);ez>eO||ez===eO&&(!G||eH>=ek)?(M.current.bt=!0,e$=eD,es=-es,ew.points=[R(ev,0),R(eg,0)]):M.current.bt=!1}if(eB&&"b"===ev[0]&&(ieO||eU===eO&&(!G||eW>=ek)?(M.current.tb=!0,e$=eV,es=-es,ew.points=[R(ev,0),R(eg,0)]):M.current.tb=!1}var eK=eF(eN),eq=ev[1]===eg[1];if(eK&&"l"===ev[1]&&(c>Q.right||M.current.rl)){var eG=eS;eq?eG-=H-U:eG=eZ.x-eA.x-el;var eY=te(eG,e$),eJ=te(eG,e$,Y);eY>eO||eY===eO&&(!G||eJ>=ek)?(M.current.rl=!0,eS=eG,el=-el,ew.points=[R(ev,1),R(eg,1)]):M.current.rl=!1}if(eK&&"r"===ev[1]&&(seO||e0===eO&&(!G||e1>=ek)?(M.current.lr=!0,eS=eQ,el=-el,ew.points=[R(ev,1),R(eg,1)]):M.current.lr=!1}tt();var e2=!0===eI?0:eI;"number"==typeof e2&&(sY.right&&(eS-=c-Y.right-el,n.x>Y.right-e2&&(eS+=n.x-Y.right+e2)));var e4=!0===eM?0:eM;"number"==typeof e4&&(iY.bottom&&(e$-=l-Y.bottom-es,n.y>Y.bottom-e4&&(e$+=n.y-Y.bottom+e4)));var e3=k.x+eS,e5=k.y+e$,e6=n.x,e8=n.y;null==eP||eP(eX,ew);var e7=ee.right-k.x-(eS+k.width),e9=ee.bottom-k.y-(e$+k.height);N({ready:!0,offsetX:eS/et,offsetY:e$/en,offsetR:e7/et,offsetB:e9/en,arrowX:((Math.max(e3,e6)+Math.min(e3+H,e6+U))/2-e3)/et,arrowY:((Math.max(e5,e8)+Math.min(e5+z,e8+V))/2-e5)/en,scaleX:et,scaleY:en,align:ew})}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=k.x+e,o=k.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-i)*(Math.min(o+z,n.bottom)-a))}function tt(){l=(i=k.y+e$)+z,c=(s=k.x+eS)+H}}}),B=function(){N(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,h.Z)(B,[ex]),(0,h.Z)(function(){to||B()},[to]),[k.ready,k.offsetX,k.offsetY,k.offsetR,k.offsetB,k.arrowX,k.arrowY,k.scaleX,k.scaleY,k.align,function(){T.current+=1;var e=T.current;Promise.resolve().then(function(){T.current===e&&F()})}]),t$=(0,o.Z)(tS,11),tO=t$[0],tk=t$[1],tZ=t$[2],tP=t$[3],tj=t$[4],tR=t$[5],tA=t$[6],t_=t$[7],tN=t$[8],tT=t$[9],tI=t$[10],tM=(H=void 0===Q?"hover":Q,g.useMemo(function(){var e=b(null!=ee?ee:H),t=b(null!=et?et:H),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,H,ee,et])),tF=(0,o.Z)(tM,2),tB=tF[0],tL=tF[1],tD=tB.has("click"),tz=tL.has("click")||tL.has("contextMenu"),tH=(0,d.Z)(function(){tp||tI()});V=function(){ta.current&&ek&&tz&&tu(!1)},(0,h.Z)(function(){if(to&&e1&&eX){var e=E(e1),t=E(eX),n=C(eX),r=new Set([n].concat((0,A.Z)(e),(0,A.Z)(t)));function o(){tH(),V()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tH(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e1,eX]),(0,h.Z)(function(){tH()},[tw,ex]),(0,h.Z)(function(){to&&!(null!=eC&&eC[ex])&&tH()},[JSON.stringify(eE)]);var tV=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eC,Y,tT,ek);return s()(e,null==eO?void 0:eO(tT))},[tT,eO,eC,Y,ek]);g.useImperativeHandle(n,function(){return{forceAlign:tH}});var tU=g.useState(0),tW=(0,o.Z)(tU,2),tK=tW[0],tq=tW[1],tG=g.useState(0),tX=(0,o.Z)(tG,2),tY=tX[0],tJ=tX[1],tQ=function(){if(e$&&e1){var e=e1.getBoundingClientRect();tq(e.width),tJ(e.height)}};function t0(e,t,n,r){e6[e]=function(o){var i;null==r||r(o),tu(t,n);for(var a=arguments.length,l=Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},n),{timer:i}))},h=new Map,m=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},g={},v=function(e,t){g[e]&&g[e].forEach(function(e){return e(t)})},y=function(e,t){return g[e]||(g[e]=[]),g[e].push(t),function(){var n=g[e].indexOf(t);g[e].splice(n,1)}},b=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,g=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),g)?g(t):d.get(e)};return(s(function(){if(n){var t=C(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(n,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),n)?{onBefore:function(e){var t=C(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=h.get(n);return r&&r!==x.current||(r=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=r,m(n,r)),{servicePromise:r}},onSuccess:function(t,r){var o;n&&(null===(o=b.current)||void 0===o||o.call(b),w(n,{data:t,params:r,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=b.current)||void 0===r||r.call(b),w(n,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))}}:{}},x=n(23279),w=n.n(x),C=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==r&&(e.leading=r),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[r,a,l]);return((0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;n-1&&Z.splice(e,1)})}return function(){s()}},[n,a]),f(function(){s()}),{}},R=function(e,t){var n=t.retryInterval,r=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return r?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===r||a.current<=r){var t=null!=n?n:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},A=n(23493),_=n.n(A),N=function(e,t){var n=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return l.current=_()(function(e){e()},n,s),e.runAsync=function(){for(var e=[],n=0;n{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(y)}`:`.${y}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},98787:function(e,t,n){"use strict";n.d(t,{o2:function(){return l},yT:function(){return s}});var r=n(74902),o=n(8796);let i=o.i.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function s(e){return a.includes(e)}},69760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97937),o=n(67294);function i(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(r.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}},98082:function(e,t,n){"use strict";var r=n(67294),o=n(31808);t.Z=()=>{let[e,t]=r.useState(!1);return r.useEffect(()=>{t((0,o.fk)())},[]),e}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},80636:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77786);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,f=t/2,d={};return Object.keys(o).forEach(e=>{let p=l&&i[e]||o[e],h=Object.assign(Object.assign({},p),{offset:[0,0]});switch(d[e]=h,a.has(e)&&(h.autoArrow=!1),e){case"top":case"topLeft":case"topRight":h.offset[1]=-f-s;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=f+s;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-f-s;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=f+s}let m=(0,r.fS)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":h.offset[0]=-m.dropdownArrowOffset-f;break;case"topRight":case"bottomRight":h.offset[0]=m.dropdownArrowOffset+f;break;case"leftTop":case"rightTop":h.offset[1]=-m.dropdownArrowOffset-f;break;case"leftBottom":case"rightBottom":h.offset[1]=m.dropdownArrowOffset+f}h.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(h.htmlRegion="visibleFirst")}),d}},96159:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var r,o=n(67294);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return i(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},31808:function(e,t,n){"use strict";let r;n.d(t,{fk:function(){return a},jD:function(){return i}});var o=n(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==r)return r;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),r=1===e.scrollHeight,document.body.removeChild(t),r}},45353:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(94184),o=n.n(r),i=n(42550),a=n(5110),l=n(67294),s=n(53124),c=n(96159),u=n(67968);let f=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var d=(0,u.Z)("Wave",e=>[f(e)]),p=n(66680),h=n(75164),m=n(82225),g=n(38135);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}var y=n(17415);function b(e){return Number.isNaN(e)?0:e}let x=e=>{let{className:t,target:n,component:r}=e,i=l.useRef(null),[a,s]=l.useState(null),[c,u]=l.useState([]),[f,d]=l.useState(0),[p,x]=l.useState(0),[w,C]=l.useState(0),[E,S]=l.useState(0),[$,O]=l.useState(!1),k={left:f,top:p,width:w,height:E,borderRadius:c.map(e=>`${e}px`).join(" ")};function Z(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),C(n.offsetWidth),S(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>b(parseFloat(e))))}if(a&&(k["--wave-color"]=a),l.useEffect(()=>{if(n){let e;let t=(0,h.Z)(()=>{Z(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(Z)).observe(n),()=>{h.Z.cancel(t),null==e||e.disconnect()}}},[]),!$)return null;let P=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(y.A));return l.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return l.createElement("div",{ref:i,className:o()(t,{"wave-quick":P},n),style:k})})};var w=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,g.s)(l.createElement(x,Object.assign({},t,{target:e})),o)},C=n(25976),E=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:u}=(0,l.useContext)(s.E_),f=(0,l.useRef)(null),m=u("wave"),[,g]=d(m),v=function(e,t,n){let{wave:r}=l.useContext(s.E_),[,o,i]=(0,C.Z)(),a=(0,p.Z)(a=>{let l=e.current;if((null==r?void 0:r.disabled)||!l)return;let s=l.querySelector(`.${y.A}`)||l,{showEffect:c}=r||{};(c||w)(s,{className:t,token:o,component:n,event:a,hashId:i})}),c=l.useRef();return e=>{h.Z.cancel(c.current),c.current=(0,h.Z)(()=>{a(e)})}}(f,o()(m,g),r);if(l.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!l.isValidElement(t))return null!=t?t:null;let b=(0,i.Yr)(t)?(0,i.sQ)(t.ref,f):f;return(0,c.Tm)(t,{ref:b})}},17415:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r="ant-wave-target"},4026:function(e,t,n){"use strict";n.d(t,{n:function(){return eo},Z:function(){return ea}});var r=n(67294),o=n(94184),i=n.n(o),a=n(98423),l=n(42550),s=n(45353),c=n(53124),u=n(98866),f=n(98675),d=n(4173),p=n(25976),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var g=n(96159);let v=/^[\u4e00-\u9fa5]{2}$/,y=v.test.bind(v);function b(e){return"string"==typeof e}function x(e){return"text"===e||"link"===e}let w=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},a)});var C=n(50888),E=n(82225);let S=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:l}=e,s=i()(`${n}-loading-icon`,o);return r.createElement(w,{prefixCls:n,className:s,style:a,ref:t},r.createElement(C.Z,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var k=e=>{let{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e;return o?r.createElement(S,{prefixCls:t,className:i,style:a}):r.createElement(E.ZP,{visible:!!n,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:$,onAppearActive:O,onEnterStart:$,onEnterActive:O,onLeaveStart:O,onLeaveActive:$},(e,n)=>{let{className:o,style:l}=e;return r.createElement(S,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})})},Z=n(14747),P=n(45503),j=n(67968);let R=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var A=e=>{let{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},R(`${t}-primary`,o),R(`${t}-danger`,i)]}};let _=e=>{let{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Z.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},N=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),T=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),I=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),M=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),F=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},N(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),B=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},M(e))}),L=e=>Object.assign({},B(e)),D=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),z=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},L(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),N(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),F(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},N(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),F(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),B(e))}),H=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},L(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),N(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),F(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},N(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),F(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),B(e))}),V=e=>Object.assign(Object.assign({},z(e)),{borderStyle:"dashed"}),U=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},N(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),D(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},N(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),D(e))}),W=e=>Object.assign(Object.assign(Object.assign({},N(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),D(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},D(e)),N(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),K=e=>{let{componentCls:t}=e;return{[`${t}-default`]:z(e),[`${t}-primary`]:H(e),[`${t}-dashed`]:V(e),[`${t}-link`]:U(e),[`${t}-text`]:W(e),[`${t}-ghost`]:F(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*i)/2-a)}px ${s-a}px`,borderRadius:l,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:T(e)},{[`${n}${n}-round${t}`]:I(e)}]},G=e=>q(e),X=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return q(t,`${e.componentCls}-sm`)},Y=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return q(t,`${e.componentCls}-lg`)},J=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q=e=>{let{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,P.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return r};var ee=(0,j.Z)("Button",e=>{let t=Q(e);return[_(t),X(t),G(t),Y(t),J(t),K(t),A(t)]}),et=n(80110),en=(0,j.b)(["Button","compact"],e=>{let t=Q(e);return[(0,et.c)(t),function(e){var t;let n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},{[`&-item:not(${n}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t)]}),er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eo(e){return"danger"===e?{danger:!0}:{type:e}}let ei=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:p=!1,prefixCls:h,type:v="default",danger:C,shape:E="default",size:S,styles:$,disabled:O,className:Z,rootClassName:P,children:j,icon:R,ghost:A=!1,block:_=!1,htmlType:N="button",classNames:T,style:I={}}=e,M=er(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:F,autoInsertSpaceInButton:B,direction:L,button:D}=(0,r.useContext)(c.E_),z=F("btn",h),[H,V]=ee(z),U=(0,r.useContext)(u.Z),W=null!=O?O:U,K=(0,r.useContext)(m),q=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay,n=!Number.isNaN(t)&&"number"==typeof t;return{loading:!1,delay:n?t:0}}return{loading:!!e,delay:0}})(p),[p]),[G,X]=(0,r.useState)(q.loading),[Y,J]=(0,r.useState)(!1),Q=(0,r.createRef)(),et=(0,l.sQ)(t,Q),eo=1===r.Children.count(j)&&!R&&!x(v);(0,r.useEffect)(()=>{let e=null;return q.delay>0?e=setTimeout(()=>{e=null,X(!0)},q.delay):X(q.loading),function(){e&&(clearTimeout(e),e=null)}},[q]),(0,r.useEffect)(()=>{if(!et||!et.current||!1===B)return;let e=et.current.textContent;eo&&y(e)?Y||J(!0):Y&&J(!1)},[et]);let ei=t=>{let{onClick:n}=e;if(G||W){t.preventDefault();return}null==n||n(t)},ea=!1!==B,{compactSize:el,compactItemClassnames:es}=(0,d.ri)(z,L),ec=(0,f.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=S?S:el)&&void 0!==t?t:K)&&void 0!==n?n:e}),eu=ec&&({large:"lg",small:"sm",middle:void 0})[ec]||"",ef=G?"loading":R,ed=(0,a.Z)(M,["navigate"]),ep=i()(z,V,{[`${z}-${E}`]:"default"!==E&&E,[`${z}-${v}`]:v,[`${z}-${eu}`]:eu,[`${z}-icon-only`]:!j&&0!==j&&!!ef,[`${z}-background-ghost`]:A&&!x(v),[`${z}-loading`]:G,[`${z}-two-chinese-chars`]:Y&&ea&&!G,[`${z}-block`]:_,[`${z}-dangerous`]:!!C,[`${z}-rtl`]:"rtl"===L},es,Z,P,null==D?void 0:D.className),eh=Object.assign(Object.assign({},null==D?void 0:D.style),I),em=i()(null==T?void 0:T.icon,null===(n=null==D?void 0:D.classNames)||void 0===n?void 0:n.icon),eg=Object.assign(Object.assign({},(null==$?void 0:$.icon)||{}),(null===(o=null==D?void 0:D.styles)||void 0===o?void 0:o.icon)||{}),ev=R&&!G?r.createElement(w,{prefixCls:z,className:em,style:eg},R):r.createElement(k,{existIcon:!!R,prefixCls:z,loading:!!G}),ey=j||0===j?function(e,t){let n=!1,o=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),r.Children.map(o,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&b(e.type)&&y(e.props.children)?(0,g.Tm)(e,{children:e.props.children.split("").join(n)}):b(e)?y(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,g.M2)(e)?r.createElement("span",null,e):e})(e,t))}(j,eo&&ea):null;if(void 0!==ed.href)return H(r.createElement("a",Object.assign({},ed,{className:i()(ep,{[`${z}-disabled`]:W}),style:eh,onClick:ei,ref:et}),ev,ey));let eb=r.createElement("button",Object.assign({},M,{type:N,className:ep,style:eh,onClick:ei,disabled:W,ref:et}),ev,ey,es&&r.createElement(en,{key:"compact",prefixCls:z}));return x(v)||(eb=r.createElement(s.Z,{component:"Button",disabled:!!G},eb)),H(eb)});ei.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=h(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,f]=(0,p.Z)(),d="";switch(a){case"large":d="lg";break;case"small":d="sm"}let g=i()(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:"rtl"===n},l,f);return r.createElement(m.Provider,{value:a},r.createElement("div",Object.assign({},s,{className:g})))},ei.__ANT_BUTTON=!0;var ea=ei},71577:function(e,t,n){"use strict";var r=n(4026);t.ZP=r.Z},98866:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(67294);let o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)};t.Z=o},97647:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(67294);let o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)};t.Z=o},53124:function(e,t,n){"use strict";n.d(t,{E_:function(){return i},oR:function(){return o}});var r=n(67294);let o="anticon",i=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},98675:function(e,t,n){"use strict";var r=n(67294),o=n(97647);t.Z=e=>{let t=r.useContext(o.Z),n=r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return n}},46735:function(e,t,n){"use strict";let r,o,i;n.d(t,{ZP:function(){return F},w6:function(){return T}});var a=n(23183),l=n(63017),s=n(56982),c=n(8880),u=n(67294),f=n(37920),d=n(83008),p=n(76745),h=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},n)},m=n(88526),g=n(33083),v=n(2790),y=n(53124),b=n(16397),x=n(10274),w=n(98924),C=n(44958);let E=`-ant-${Date.now()}-${Math.random()}`;var S=n(98866),$=n(97647),O=n(91881),k=n(82225),Z=n(25976);function P(e){let{children:t}=e,[,n]=(0,Z.Z)(),{motion:r}=n,o=u.useRef(!1);return(o.current=o.current||!1===r,o.current)?u.createElement(k.zt,{motion:r},t):t}var j=n(53269),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function _(){return r||"ant"}function N(){return o||y.oR}let T=()=>({getPrefixCls:(e,t)=>t||(e?`${_()}-${e}`:_()),getIconPrefixCls:N,getRootPrefixCls:()=>r||_(),getTheme:()=>i}),I=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:w,virtual:C,dropdownMatchSelectWidth:E,popupMatchSelectWidth:k,popupOverflow:Z,legacyLocale:_,parentContext:N,iconPrefixCls:T,theme:I,componentDisabled:M,segmented:F,statistic:B,spin:L,calendar:D,carousel:z,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:K,divider:q,drawer:G,skeleton:X,steps:Y,image:J,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eE,upload:eS,notification:e$,tree:eO,colorPicker:ek,datePicker:eZ,wave:eP}=e,ej=u.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||N.getPrefixCls("");return t?`${o}-${t}`:o},[N.getPrefixCls,e.prefixCls]),eR=T||N.iconPrefixCls||y.oR,eA=eR!==N.iconPrefixCls,e_=n||N.csp,eN=(0,j.Z)(eR,e_),eT=function(e,t){let n=e||{},r=!1!==n.inherit&&t?t:g.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,O.Z)(e,r,!0)}))}(I,N.theme),eI={csp:e_,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:p||_,direction:x,space:w,virtual:C,popupMatchSelectWidth:null!=k?k:E,popupOverflow:Z,getPrefixCls:ej,iconPrefixCls:eR,theme:eT,segmented:F,statistic:B,spin:L,calendar:D,carousel:z,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:K,divider:q,drawer:G,skeleton:X,steps:Y,image:J,input:ec,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eE,upload:eS,notification:e$,tree:eO,colorPicker:ek,datePicker:eZ,wave:eP},eM=Object.assign({},N);Object.keys(eI).forEach(e=>{void 0!==eI[e]&&(eM[e]=eI[e])}),A.forEach(t=>{let n=e[t];n&&(eM[t]=n)});let eF=(0,s.Z)(()=>eM,eM,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eB=u.useMemo(()=>({prefixCls:eR,csp:e_}),[eR,e_]),eL=eA?eN(t):t,eD=u.useMemo(()=>{var e,t,n,r;return(0,c.T)((null===(e=m.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eF.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eF.form)||void 0===r?void 0:r.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eF,null==d?void 0:d.validateMessages]);Object.keys(eD).length>0&&(eL=u.createElement(f.Z.Provider,{value:eD},t)),p&&(eL=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eL)),(eR||e_)&&(eL=u.createElement(l.Z.Provider,{value:eB},eL)),b&&(eL=u.createElement($.q,{size:b},eL)),eL=u.createElement(P,null,eL);let ez=u.useMemo(()=>{let e=eT||{},{algorithm:t,token:n,components:r}=e,o=R(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):g.uH,l={};return Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),l[t]=r}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),n),components:l})},[eT]);return I&&(eL=u.createElement(g.Mj.Provider,{value:ez},eL)),void 0!==M&&(eL=u.createElement(S.n,{disabled:M},eL)),u.createElement(y.E_.Provider,{value:eF},eL)},M=e=>{let t=u.useContext(y.E_),n=u.useContext(p.Z);return u.createElement(I,Object.assign({parentContext:t,legacyLocale:n},e))};M.ConfigContext=y.E_,M.SizeContext=$.Z,M.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:a}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.R_)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return` :root { @@ -158,12 +158,12 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(55679)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(11163);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,setModel:()=>{},dialogueList:[],setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{}}),c=e=>{let{children:t}=e,{query:{id:n="",scene:c=""}={}}=(0,l.useRouter)(),[u,f]=(0,o.useState)(!1),[d,p]=(0,o.useState)(""),[h,m]=(0,o.useState)("chat_dashboard"!==c),[g,v]=(0,o.useState)(),{run:y,data:b=[],refresh:x}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:w=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{p(w[0])},[w,null==w?void 0:w.length]);let C=(0,o.useMemo)(()=>b.find(e=>e.conv_uid===n),[n,b]);return(0,r.jsx)(s.Provider,{value:{isContract:u,isMenuExpand:h,scene:c,chatId:n,modelList:w,model:d,dbParam:g,setModel:p,dialogueList:b,setIsContract:f,setIsMenuExpand:m,setDbParam:v,queryDialogueList:y,refreshDialogList:x,currentDialogue:C},children:t})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class E{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let S=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],Z={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return S.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Z[e]-Z[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function j(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=j(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(j(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class N extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function T(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function I(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function M(){}class F extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=I(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=T();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...I(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_);let n=new E(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new R(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new N(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=M),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=M),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new E(T());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new F(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new F(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new y.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new y.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new y.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let E=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:v,lineHeight:x,width:w,notificationIconSize:E,colorText:S}=e,$=`${n}-notice`,O=new y.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new y.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),Z={position:"relative",width:w,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:v,color:S},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+E,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+E,fontSize:v},[`${$}-icon`]:{position:"absolute",fontSize:E,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),C(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},Z)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},Z),{margin:0})}]};var S=(0,x.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,w.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[E(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e,t){return null===t||!1===t?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(u.Z,{className:`${e}-close-icon`}))}d.Z,s.Z,c.Z,f.Z,p.Z;let k={success:s.Z,info:d.Z,error:c.Z,warning:f.Z},Z=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(k[r]||null,{className:m()(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:m()({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))};var P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let j=e=>{let{children:t,prefixCls:n}=e,[,r]=S(n);return i.createElement(g.JB,{classNames:{list:r,notice:r}},t)},R=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(j,{prefixCls:n,key:r},e)},A=i.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=i.useContext(v.E_),p=o||u("notification"),[h,y]=(0,g.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>m()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:O(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:R});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:p,notification:d})),y});function _(e){let t=i.useRef(null),n=i.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:h,style:g,role:v="alert",closeIcon:y}=n,b=P(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=O(s,y);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:i.createElement(Z,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:m()(d&&`${s}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,i.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}let N=null,T=e=>e(),I=[],M={};function F(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=M,a=null!=e?e:(0,l.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let B=i.forwardRef((e,t)=>{let[n,r]=i.useState(F),[o,a]=_(n),s=(0,l.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(F)};return i.useEffect(d,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},o);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),o[t].apply(o,arguments)}}),{instance:e,sync:d}}),i.createElement(l.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},a)});function L(){if(!N){let e=document.createDocumentFragment(),t={fragment:e};N=t,T(()=>{(0,a.s)(i.createElement(B,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,L())})}}),e)});return}N.instance&&(I.forEach(e=>{switch(e.type){case"open":T(()=>{N.instance.open(Object.assign(Object.assign({},M),e.config))});break;case"destroy":T(()=>{null==N||N.instance.destroy(e.key)})}}),I=[])}function D(e){I.push({type:"open",config:e}),L()}let z={open:D,destroy:function(e){I.push({type:"destroy",key:e}),L()},config:function(e){M=Object.assign(Object.assign({},M),e),T(()=>{var e;null===(e=null==N?void 0:N.sync)||void 0===e||e.call(N)})},useNotification:function(e){return _(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=i.useContext(v.E_),p=t||d("notification"),h=`${p}-notice`,[,y]=S(p);return i.createElement(g.qX,Object.assign({},f,{prefixCls:p,className:m()(n,y,`${h}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:O(p,u),content:i.createElement(Z,{prefixCls:h,icon:r,type:o,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{z[e]=t=>D(Object.assign(Object.assign({},t),{type:e}))});let H=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else throw Error((null==n?void 0:n.err_msg)||"The interface is abnormal. Please try again later")}return[null,n.data,n,e]}).catch(e=>(z.error({message:"Request error",description:e.message}),[e,null,null,null])),V=()=>eh("/api/v1/chat/dialogue/scenes"),U=e=>eh("/api/v1/chat/dialogue/new",e),W=()=>ep("/api/v1/chat/db/list"),K=()=>ep("/api/v1/chat/db/support/type"),q=e=>eh("/chat/db/delete?db_name=".concat(e),void 0),G=e=>eh("/api/v1/chat/db/edit",e),X=e=>eh("/api/v1/chat/db/add",e),Y=e=>eh("/api/v1/chat/db/test/connect",e),J=()=>ep("/api/v1/chat/dialogue/list"),Q=()=>ep("/api/v1/model/types"),ee=e=>eh("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),et=e=>ep("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),en=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return eh("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},er=e=>eh("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eo=()=>ep("/api/v1/worker/model/list"),ei=e=>eh("/api/v1/worker/model/stop",e),ea=e=>eh("/api/v1/worker/model/start",e),el=()=>ep("/api/v1/worker/model/params"),es=()=>ep("/api/v1/feedback/select",void 0),ec=(e,t)=>ep("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eu=e=>{let{data:t,config:n}=e;return eh("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})};var ef=n(83454);let ed=o.Z.create({baseURL:null!==(r=ef.env.API_BASE_URL)&&void 0!==r?r:"",timeout:1e4}),ep=(e,t,n)=>ed.get(e,{params:t,...n}),eh=(e,t,n)=>ed.post(e,t,n)},8937:function(e,t,n){"use strict";n.d(t,{Yl:function(){return o},he:function(){return r},rU:function(){return i}});let r="__db_gpt_theme_key",o="__db_gpt_lng_key",i="__db_gpt_im_key"},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:E,setShowAltText:S,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,E,b))},[v,p,w,C,E,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,E,b)},onError:e=>{S(!0),"blur"===p&&E(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:E,height:S,fill:$,style:O,onLoad:k,onLoadingComplete:Z,placeholder:P="empty",blurDataURL:j,fetchPriority:R,layout:A,objectFit:_,objectPosition:N,lazyBoundary:T,lazyRoot:I,...M}=e,F=(0,i.useContext)(c.ImageConfigContext),B=(0,i.useMemo)(()=>{let e=f||F||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),L=M.loader||u.default;delete M.loader;let D="__next_img_default"in L;if(D){if("custom"===B.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=L;L=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!v&&(v=t)}let z="",H=p(E),V=p(S);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,j=j||e.blurDataURL,z=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),B.unoptimized&&(y=!0),D&&h.endsWith(".svg")&&!B.dangerouslyAllowSVG&&(y=!0),b&&(R="high");let[W,K]=(0,i.useState)(!1),[q,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:N}:{},q?{}:{color:"transparent"},O),J="blur"===P&&j&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:j,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:B,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:L}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(Z);(0,i.useEffect)(()=>{en.current=Z},[Z]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:B,fetchPriority:R,fill:$,unoptimized:y,placeholder:P,loader:L,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:K,setShowAltText:G,...M};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:M.crossOrigin,referrerPolicy:M.referrerPolicy,...m(R)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:E,scroll:S,locale:$,onClick:O,onMouseEnter:k,onTouchStart:Z,legacyBehavior:P=!1,...j}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let R=!1!==x,A=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,_=o.default.useContext(u.RouterContext),N=o.default.useContext(f.AppRouterContext),T=null!=_?_:N,I=!_,{href:M,as:F}=o.default.useMemo(()=>{if(!_){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(_,l,!0);return{href:e,as:g?(0,i.resolveHref)(_,g):t||e}},[_,l,g]),B=o.default.useRef(M),L=o.default.useRef(F);P&&(r=o.default.Children.only(n));let D=P?r&&"object"==typeof r&&r.ref:t,[z,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(L.current!==F||B.current!==M)&&(V(),L.current=F,B.current=M),z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[F,D,M,V,z]);o.default.useEffect(()=>{T&&H&&R&&v(T,M,F,{locale:$},{kind:A},I)},[F,M,H,$,R,null==_?void 0:_.locale,T,I,A]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,T,M,F,C,E,S,$,I,R)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(R||!I)&&v(T,M,F,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},I)},onTouchStart(e){P||"function"!=typeof Z||Z(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(R||!I)&&v(T,M,F,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},I)}};if((0,s.isAbsoluteUrl)(F))W.href=F;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(F,e,null==_?void 0:_.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...j,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},55679:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eh}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(8937),u=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,i.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,i.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})},d=n(56385),p=n(87462),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},m=n(84089),g=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:h}))}),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},y=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:v}))}),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},x=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:b}))}),w=n(16165),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},E=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:C}))}),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},$=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:S}))}),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},k=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:O}))}),Z=n(24969),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},j=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:P}))}),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},A=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:R}))}),_=n(57132),N=n(48689),T=n(12069),I=n(2453),M=n(83062),F=n(83159),B=n(20640),L=n.n(B),D=n(25675),z=n.n(D),H=n(41664),V=n.n(H),U=n(11163),W=n.n(U),K=n(67421),q=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,i.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})};function G(e){return"flex items-center px-2 h-10 hover:bg-slate-100 dark:hover:bg-[#353539] text-base w-full my-2 rounded transition-colors whitespace-nowrap ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}function X(e){return"flex items-center justify-center mx-auto w-12 h-12 text-xl rounded hover:bg-slate-100 dark:hover:bg-[#353539] cursor-pointer ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}var Y=function(){let{chatId:e,scene:t,isMenuExpand:n,dialogueList:r,queryDialogueList:o,refreshDialogList:p,setIsMenuExpand:h}=(0,a.useContext)(l.p),{pathname:m,replace:v}=(0,U.useRouter)(),{t:b,i18n:C}=(0,K.$G)(),{mode:S,setMode:O}=(0,d.tv)(),[P,R]=(0,a.useState)("/LOGO_1.png"),B=(0,a.useMemo)(()=>{let e=[{key:"prompt",name:b("Prompt"),icon:(0,i.jsx)(g,{}),path:"/prompt"},{key:"database",name:b("Database"),icon:(0,i.jsx)(y,{}),path:"/database"},{key:"knowledge",name:b("Knowledge_Space"),icon:(0,i.jsx)(x,{}),path:"/datastores"},{key:"models",name:b("model_manage"),path:"/models",icon:(0,i.jsx)(w.Z,{component:q})}];return e},[C.language]),D=()=>{h(!n)},H=(0,a.useCallback)(()=>{let e="light"===S?"dark":"light";O(e),localStorage.setItem(c.he,e)},[S]),W=(0,a.useCallback)(()=>{let e="en"===C.language?"zh":"en";C.changeLanguage(e),localStorage.setItem(c.Yl,e)},[C.language,C.changeLanguage]),Y=(0,a.useMemo)(()=>{let e=[{key:"theme",name:b("Theme"),icon:"dark"===S?(0,i.jsx)(w.Z,{component:u}):(0,i.jsx)(w.Z,{component:f}),onClick:H},{key:"language",name:b("language"),icon:(0,i.jsx)(E,{}),onClick:W},{key:"fold",name:b(n?"Close_Sidebar":"Show_Sidebar"),icon:n?(0,i.jsx)($,{}):(0,i.jsx)(k,{}),onClick:D,noDropdownItem:!0}];return e},[S,W,D,W]),J=(0,a.useMemo)(()=>B.map(e=>({key:e.key,label:(0,i.jsxs)(V(),{href:e.path,className:"text-base",children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[B]),Q=(0,a.useMemo)(()=>Y.filter(e=>!e.noDropdownItem).map(e=>({key:e.key,label:(0,i.jsxs)("div",{className:"text-base",onClick:e.onClick,children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[Y]),ee=(0,a.useCallback)(n=>{T.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,onOk:()=>new Promise(async(r,o)=>{try{let[i]=await (0,s.Vx)((0,s.MX)(n.conv_uid));if(i){o();return}I.ZP.success("success"),p(),n.chat_mode===t&&n.conv_uid===e&&v("/"),r()}catch(e){o()}})})},[p]),et=(0,a.useCallback)(e=>{let t=L()("".concat(location.origin,"/chat/").concat(e.chat_mode,"/").concat(e.conv_uid));I.ZP[t?"success":"error"](t?"Copy success":"Copy failed")},[]);return((0,a.useEffect)(()=>{o()},[]),(0,a.useEffect)(()=>{R("dark"===S?"/WHITE_LOGO.png":"/LOGO_1.png")},[S]),n)?(0,i.jsxs)("div",{className:"flex flex-col h-screen border-r dark:bg-[#1A1E26]",children:[(0,i.jsx)(V(),{href:"/",className:"p-2",children:(0,i.jsx)(z(),{src:P,alt:"DB-GPT",width:239,height:60,className:"w-full h-full"})}),(0,i.jsxs)(V(),{href:"/",className:"flex items-center justify-center mb-4 mx-4 h-11 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded text-white",children:[(0,i.jsx)(Z.Z,{className:"mr-2"}),(0,i.jsx)("span",{children:"New Chat"})]}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 px-2 border-t",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsxs)(V(),{href:"/chat/".concat(n.chat_mode,"/").concat(n.conv_uid),className:"group/item ".concat(G(r)),children:[(0,i.jsx)(g,{className:"text-base"}),(0,i.jsx)("div",{className:"flex-1 line-clamp-1 mx-2 text-sm",children:n.user_name||n.user_input}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0 mr-1",onClick:e=>{e.preventDefault(),et(n)},children:(0,i.jsx)(_.Z,{})}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.preventDefault(),ee(n)},children:(0,i.jsx)(N.Z,{})})]},n.conv_uid)})}),(0,i.jsxs)("div",{className:"pt-2 pb-6 border-t",children:[(0,i.jsx)("div",{className:"px-2",children:B.map(e=>(0,i.jsx)(V(),{href:e.path,className:"".concat(G(m===e.path)),children:(0,i.jsxs)(i.Fragment,{children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})},e.key))}),(0,i.jsx)("div",{className:"flex items-center justify-around mt-4 pt-6 border-t border-dashed",children:Y.map(e=>(0,i.jsx)(M.Z,{title:e.name,children:(0,i.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})},e.key))})]})]}):(0,i.jsxs)("div",{className:"flex flex-col justify-between h-screen border-r dark:bg-[#1A1E26] animate-fade animate-duration-300",children:[(0,i.jsx)(V(),{href:"/",className:"px-2 py-3",children:(0,i.jsx)(z(),{src:"/LOGO_SMALL.png",alt:"DB-GPT",width:63,height:46,className:"w-[63px] h-[46px]"})}),(0,i.jsx)("div",{className:"border-t border-dashed",children:(0,i.jsx)(V(),{href:"/",className:"flex items-center justify-center my-4 mx-auto w-12 h-12 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded-full text-white",children:(0,i.jsx)(Z.Z,{className:"text-lg"})})}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 border-t border-dashed space-y-2",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsx)(M.Z,{title:n.user_name||n.user_input,placement:"right",children:(0,i.jsx)(V(),{href:"/chat/".concat(n.chat_mode,"/").concat(n.conv_uid),className:X(r),children:(0,i.jsx)(g,{})})},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-4 space-y-2 border-t",children:[(0,i.jsx)(F.Z,{menu:{items:J},placement:"topRight",children:(0,i.jsx)("div",{className:X(),children:(0,i.jsx)(j,{})})}),(0,i.jsx)(F.Z,{menu:{items:Q},placement:"topRight",children:(0,i.jsx)("div",{className:X(),children:(0,i.jsx)(A,{})})}),Y.filter(e=>e.noDropdownItem).map(e=>(0,i.jsx)(M.Z,{title:e.name,placement:"right",children:(0,i.jsx)("div",{className:X(),onClick:e.onClick,children:e.icon})},e.key))]})]})},J=n(38629),Q=n(59077),ee=n(9818);let et=(0,Q.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...ee.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...ee.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var en=n(74865),er=n.n(en);let eo=0;function ei(){"loading"!==o&&(o="loading",r=setTimeout(function(){er().start()},250))}function ea(){eo>0||(o="stop",clearTimeout(r),er().done())}if(W().events.on("routeChangeStart",ei),W().events.on("routeChangeComplete",ea),W().events.on("routeChangeError",ea),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,n=Array(t),r=0;r{let e=function(){let e=localStorage.getItem(c.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}();o(e)},[]),(0,a.useEffect)(()=>{if((null==s?void 0:s.current)&&r){var e,t,n,o,i,a;null==s||null===(e=s.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==s||null===(n=s.current)||void 0===n||null===(o=n.classList)||void 0===o||o.remove("dark"):null==s||null===(i=s.current)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[s,r]),(0,a.useEffect)(()=>{n.changeLanguage&&n.changeLanguage(window.localStorage.getItem(c.Yl)||"en")},[n]),(0,i.jsxs)("div",{ref:s,children:[(0,i.jsx)(el,{}),(0,i.jsx)(l.R,{children:t})]})}function ep(e){let{children:t}=e,{isMenuExpand:n}=(0,a.useContext)(l.p),{mode:r}=(0,d.tv)();return(0,i.jsx)(eu.ZP,{theme:{algorithm:"dark"===r?ef.default.darkAlgorithm:void 0},children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:ec()("transition-[width]",n?"w-64":"w-20","hidden","md:block"),children:(0,i.jsx)(Y,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}var eh=function(e){let{Component:t,pageProps:n}=e;return(0,i.jsx)(J.Z,{theme:et,children:(0,i.jsx)(d.lL,{theme:et,defaultMode:"light",children:(0,i.jsx)(ed,{children:(0,i.jsx)(ep,{children:(0,i.jsx)(t,{...n})})})})})}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,l=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(73725)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(11163);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,dialogueList:[],agentList:[],setAgentList:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{}}),c=e=>{let{children:t}=e,{query:{id:n="",scene:c=""}={}}=(0,l.useRouter)(),[u,f]=(0,o.useState)(!1),[d,p]=(0,o.useState)(""),[h,m]=(0,o.useState)("chat_dashboard"!==c),[g,v]=(0,o.useState)(),[y,b]=(0,o.useState)([]),{run:x,data:w=[],refresh:C}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:E=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{p(E[0])},[E,null==E?void 0:E.length]);let S=(0,o.useMemo)(()=>w.find(e=>e.conv_uid===n),[n,w]);return(0,r.jsx)(s.Provider,{value:{isContract:u,isMenuExpand:h,scene:c,chatId:n,modelList:E,model:d,dbParam:g,dialogueList:w,agentList:y,setAgentList:b,setModel:p,setIsContract:f,setIsMenuExpand:m,setDbParam:v,queryDialogueList:x,refreshDialogList:C,currentDialogue:S},children:t})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class E{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let S=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],Z={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return S.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Z[e]-Z[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function j(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=j(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(j(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class N extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function T(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function I(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function M(){}class F extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=I(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=T();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...I(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_);let n=new E(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new R(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new N(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=M),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=M),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new E(T());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new F(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new F(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new y.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new y.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new y.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let E=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:v,lineHeight:x,width:w,notificationIconSize:E,colorText:S}=e,$=`${n}-notice`,O=new y.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new y.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),Z={position:"relative",width:w,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:v,color:S},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+E,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+E,fontSize:v},[`${$}-icon`]:{position:"absolute",fontSize:E,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),C(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},Z)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},Z),{margin:0})}]};var S=(0,x.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,w.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[E(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e,t){return null===t||!1===t?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(u.Z,{className:`${e}-close-icon`}))}d.Z,s.Z,c.Z,f.Z,p.Z;let k={success:s.Z,info:d.Z,error:c.Z,warning:f.Z},Z=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(k[r]||null,{className:m()(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:m()({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))};var P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let j=e=>{let{children:t,prefixCls:n}=e,[,r]=S(n);return i.createElement(g.JB,{classNames:{list:r,notice:r}},t)},R=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(j,{prefixCls:n,key:r},e)},A=i.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=i.useContext(v.E_),p=o||u("notification"),[h,y]=(0,g.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>m()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:O(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:R});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:p,notification:d})),y});function _(e){let t=i.useRef(null),n=i.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:h,style:g,role:v="alert",closeIcon:y}=n,b=P(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=O(s,y);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:i.createElement(Z,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:m()(d&&`${s}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,i.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}let N=null,T=e=>e(),I=[],M={};function F(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=M,a=null!=e?e:(0,l.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let B=i.forwardRef((e,t)=>{let[n,r]=i.useState(F),[o,a]=_(n),s=(0,l.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(F)};return i.useEffect(d,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},o);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),o[t].apply(o,arguments)}}),{instance:e,sync:d}}),i.createElement(l.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},a)});function L(){if(!N){let e=document.createDocumentFragment(),t={fragment:e};N=t,T(()=>{(0,a.s)(i.createElement(B,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,L())})}}),e)});return}N.instance&&(I.forEach(e=>{switch(e.type){case"open":T(()=>{N.instance.open(Object.assign(Object.assign({},M),e.config))});break;case"destroy":T(()=>{null==N||N.instance.destroy(e.key)})}}),I=[])}function D(e){I.push({type:"open",config:e}),L()}let z={open:D,destroy:function(e){I.push({type:"destroy",key:e}),L()},config:function(e){M=Object.assign(Object.assign({},M),e),T(()=>{var e;null===(e=null==N?void 0:N.sync)||void 0===e||e.call(N)})},useNotification:function(e){return _(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=i.useContext(v.E_),p=t||d("notification"),h=`${p}-notice`,[,y]=S(p);return i.createElement(g.qX,Object.assign({},f,{prefixCls:p,className:m()(n,y,`${h}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:O(p,u),content:i.createElement(Z,{prefixCls:h,icon:r,type:o,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{z[e]=t=>D(Object.assign(Object.assign({},t),{type:e}))});let H=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else throw Error((null==n?void 0:n.err_msg)||"The interface is abnormal. Please try again later")}return[null,n.data,n,e]}).catch(e=>(z.error({message:"Request error",description:e.message}),[e,null,null,null])),V=()=>ey("/api/v1/chat/dialogue/scenes"),U=e=>ey("/api/v1/chat/dialogue/new",e),W=()=>ev("/api/v1/chat/db/list"),K=()=>ev("/api/v1/chat/db/support/type"),q=e=>ey("/chat/db/delete?db_name=".concat(e),void 0),G=e=>ey("/api/v1/chat/db/edit",e),X=e=>ey("/api/v1/chat/db/add",e),Y=e=>ey("/api/v1/chat/db/test/connect",e),J=()=>ev("/api/v1/chat/dialogue/list"),Q=()=>ev("/api/v1/model/types"),ee=e=>ey("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),et=e=>ev("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),en=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return ey("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},er=e=>ey("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eo=()=>ev("/api/v1/worker/model/list"),ei=e=>ey("/api/v1/worker/model/stop",e),ea=e=>ey("/api/v1/worker/model/start",e),el=()=>ev("/api/v1/worker/model/params"),es=e=>ey("/api/v1/agent/query",e),ec=e=>ey("/api/v1/agent/my",void 0,{params:{user:e}}),eu=(e,t)=>ey("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),ef=(e,t)=>ey("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),ed=()=>ev("/api/v1/feedback/select",void 0),ep=(e,t)=>ev("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eh=e=>{let{data:t,config:n}=e;return ey("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})};var em=n(83454);let eg=o.Z.create({baseURL:null!==(r=em.env.API_BASE_URL)&&void 0!==r?r:"",timeout:1e4}),ev=(e,t,n)=>eg.get(e,{params:t,...n}),ey=(e,t,n)=>eg.post(e,t,n)},8937:function(e,t,n){"use strict";n.d(t,{Yl:function(){return o},he:function(){return r},rU:function(){return i}});let r="__db_gpt_theme_key",o="__db_gpt_lng_key",i="__db_gpt_im_key"},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:E,setShowAltText:S,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,E,b))},[v,p,w,C,E,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,E,b)},onError:e=>{S(!0),"blur"===p&&E(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:E,height:S,fill:$,style:O,onLoad:k,onLoadingComplete:Z,placeholder:P="empty",blurDataURL:j,fetchPriority:R,layout:A,objectFit:_,objectPosition:N,lazyBoundary:T,lazyRoot:I,...M}=e,F=(0,i.useContext)(c.ImageConfigContext),B=(0,i.useMemo)(()=>{let e=f||F||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),L=M.loader||u.default;delete M.loader;let D="__next_img_default"in L;if(D){if("custom"===B.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=L;L=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!v&&(v=t)}let z="",H=p(E),V=p(S);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,j=j||e.blurDataURL,z=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),B.unoptimized&&(y=!0),D&&h.endsWith(".svg")&&!B.dangerouslyAllowSVG&&(y=!0),b&&(R="high");let[W,K]=(0,i.useState)(!1),[q,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:N}:{},q?{}:{color:"transparent"},O),J="blur"===P&&j&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:j,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:B,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:L}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(Z);(0,i.useEffect)(()=>{en.current=Z},[Z]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:B,fetchPriority:R,fill:$,unoptimized:y,placeholder:P,loader:L,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:K,setShowAltText:G,...M};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:M.crossOrigin,referrerPolicy:M.referrerPolicy,...m(R)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:E,scroll:S,locale:$,onClick:O,onMouseEnter:k,onTouchStart:Z,legacyBehavior:P=!1,...j}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let R=!1!==x,A=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,_=o.default.useContext(u.RouterContext),N=o.default.useContext(f.AppRouterContext),T=null!=_?_:N,I=!_,{href:M,as:F}=o.default.useMemo(()=>{if(!_){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(_,l,!0);return{href:e,as:g?(0,i.resolveHref)(_,g):t||e}},[_,l,g]),B=o.default.useRef(M),L=o.default.useRef(F);P&&(r=o.default.Children.only(n));let D=P?r&&"object"==typeof r&&r.ref:t,[z,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(L.current!==F||B.current!==M)&&(V(),L.current=F,B.current=M),z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[F,D,M,V,z]);o.default.useEffect(()=>{T&&H&&R&&v(T,M,F,{locale:$},{kind:A},I)},[F,M,H,$,R,null==_?void 0:_.locale,T,I,A]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,T,M,F,C,E,S,$,I,R)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(R||!I)&&v(T,M,F,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},I)},onTouchStart(e){P||"function"!=typeof Z||Z(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(R||!I)&&v(T,M,F,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},I)}};if((0,s.isAbsoluteUrl)(F))W.href=F;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(F,e,null==_?void 0:_.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...j,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},73725:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eg}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(8937),u=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,i.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,i.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})},d=n(56385),p=n(87462),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},m=n(84089),g=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:h}))}),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},y=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:v}))}),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},x=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:b}))}),w=n(16165),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},E=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:C}))}),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},$=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:S}))}),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},k=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:O}))}),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},P=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:Z}))}),j=n(24969),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},A=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:R}))}),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},N=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)({},e,{ref:t,icon:_}))}),T=n(57132),I=n(48689),M=n(12069),F=n(2453),B=n(83062),L=n(83159),D=n(20640),z=n.n(D),H=n(25675),V=n.n(H),U=n(41664),W=n.n(U),K=n(11163),q=n.n(K),G=n(67421),X=function(){return(0,i.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,i.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})};function Y(e){return"flex items-center px-2 h-10 hover:bg-slate-100 dark:hover:bg-[#353539] text-base w-full my-2 rounded transition-colors whitespace-nowrap ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}function J(e){return"flex items-center justify-center mx-auto w-12 h-12 text-xl rounded hover:bg-slate-100 dark:hover:bg-[#353539] cursor-pointer ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}var Q=function(){let{chatId:e,scene:t,isMenuExpand:n,dialogueList:r,queryDialogueList:o,refreshDialogList:p,setIsMenuExpand:h}=(0,a.useContext)(l.p),{pathname:m,replace:v}=(0,K.useRouter)(),{t:b,i18n:C}=(0,G.$G)(),{mode:S,setMode:O}=(0,d.tv)(),[Z,R]=(0,a.useState)("/LOGO_1.png"),_=(0,a.useMemo)(()=>{let e=[{key:"prompt",name:b("Prompt"),icon:(0,i.jsx)(g,{}),path:"/prompt"},{key:"database",name:b("Database"),icon:(0,i.jsx)(y,{}),path:"/database"},{key:"knowledge",name:b("Knowledge_Space"),icon:(0,i.jsx)(x,{}),path:"/datastores"},{key:"models",name:b("model_manage"),path:"/models",icon:(0,i.jsx)(w.Z,{component:X})},{key:"agent",name:b("Plusgins"),path:"/agent",icon:(0,i.jsx)(E,{})}];return e},[C.language]),D=()=>{h(!n)},H=(0,a.useCallback)(()=>{let e="light"===S?"dark":"light";O(e),localStorage.setItem(c.he,e)},[S]),U=(0,a.useCallback)(()=>{let e="en"===C.language?"zh":"en";C.changeLanguage(e),localStorage.setItem(c.Yl,e)},[C.language,C.changeLanguage]),q=(0,a.useMemo)(()=>{let e=[{key:"theme",name:b("Theme"),icon:"dark"===S?(0,i.jsx)(w.Z,{component:u}):(0,i.jsx)(w.Z,{component:f}),onClick:H},{key:"language",name:b("language"),icon:(0,i.jsx)($,{}),onClick:U},{key:"fold",name:b(n?"Close_Sidebar":"Show_Sidebar"),icon:n?(0,i.jsx)(k,{}):(0,i.jsx)(P,{}),onClick:D,noDropdownItem:!0}];return e},[S,U,D,U]),Q=(0,a.useMemo)(()=>_.map(e=>({key:e.key,label:(0,i.jsxs)(W(),{href:e.path,className:"text-base",children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[_]),ee=(0,a.useMemo)(()=>q.filter(e=>!e.noDropdownItem).map(e=>({key:e.key,label:(0,i.jsxs)("div",{className:"text-base",onClick:e.onClick,children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[q]),et=(0,a.useCallback)(n=>{M.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,onOk:()=>new Promise(async(r,o)=>{try{let[i]=await (0,s.Vx)((0,s.MX)(n.conv_uid));if(i){o();return}F.ZP.success("success"),p(),n.chat_mode===t&&n.conv_uid===e&&v("/"),r()}catch(e){o()}})})},[p]),en=(0,a.useCallback)(e=>{let t=z()("".concat(location.origin,"/chat/").concat(e.chat_mode,"/").concat(e.conv_uid));F.ZP[t?"success":"error"](t?"Copy success":"Copy failed")},[]);return((0,a.useEffect)(()=>{o()},[]),(0,a.useEffect)(()=>{R("dark"===S?"/WHITE_LOGO.png":"/LOGO_1.png")},[S]),n)?(0,i.jsxs)("div",{className:"flex flex-col h-screen border-r dark:bg-[#1A1E26]",children:[(0,i.jsx)(W(),{href:"/",className:"p-2",children:(0,i.jsx)(V(),{src:Z,alt:"DB-GPT",width:239,height:60,className:"w-full h-full"})}),(0,i.jsxs)(W(),{href:"/",className:"flex items-center justify-center mb-4 mx-4 h-11 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded text-white",children:[(0,i.jsx)(j.Z,{className:"mr-2"}),(0,i.jsx)("span",{children:"New Chat"})]}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 px-2 border-t",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsxs)(W(),{href:"/chat/".concat(n.chat_mode,"/").concat(n.conv_uid),className:"group/item ".concat(Y(r)),children:[(0,i.jsx)(g,{className:"text-base"}),(0,i.jsx)("div",{className:"flex-1 line-clamp-1 mx-2 text-sm",children:n.user_name||n.user_input}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0 mr-1",onClick:e=>{e.preventDefault(),en(n)},children:(0,i.jsx)(T.Z,{})}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.preventDefault(),et(n)},children:(0,i.jsx)(I.Z,{})})]},n.conv_uid)})}),(0,i.jsxs)("div",{className:"pt-2 pb-6 border-t",children:[(0,i.jsx)("div",{className:"px-2",children:_.map(e=>(0,i.jsx)(W(),{href:e.path,className:"".concat(Y(m===e.path)),children:(0,i.jsxs)(i.Fragment,{children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})},e.key))}),(0,i.jsx)("div",{className:"flex items-center justify-around mt-4 pt-6 border-t border-dashed",children:q.map(e=>(0,i.jsx)(B.Z,{title:e.name,children:(0,i.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})},e.key))})]})]}):(0,i.jsxs)("div",{className:"flex flex-col justify-between h-screen border-r dark:bg-[#1A1E26] animate-fade animate-duration-300",children:[(0,i.jsx)(W(),{href:"/",className:"px-2 py-3",children:(0,i.jsx)(V(),{src:"/LOGO_SMALL.png",alt:"DB-GPT",width:63,height:46,className:"w-[63px] h-[46px]"})}),(0,i.jsx)("div",{className:"border-t border-dashed",children:(0,i.jsx)(W(),{href:"/",className:"flex items-center justify-center my-4 mx-auto w-12 h-12 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded-full text-white",children:(0,i.jsx)(j.Z,{className:"text-lg"})})}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 border-t border-dashed space-y-2",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsx)(B.Z,{title:n.user_name||n.user_input,placement:"right",children:(0,i.jsx)(W(),{href:"/chat/".concat(n.chat_mode,"/").concat(n.conv_uid),className:J(r),children:(0,i.jsx)(g,{})})},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-4 space-y-2 border-t",children:[(0,i.jsx)(L.Z,{menu:{items:Q},placement:"topRight",children:(0,i.jsx)("div",{className:J(),children:(0,i.jsx)(A,{})})}),(0,i.jsx)(L.Z,{menu:{items:ee},placement:"topRight",children:(0,i.jsx)("div",{className:J(),children:(0,i.jsx)(N,{})})}),q.filter(e=>e.noDropdownItem).map(e=>(0,i.jsx)(B.Z,{title:e.name,placement:"right",children:(0,i.jsx)("div",{className:J(),onClick:e.onClick,children:e.icon})},e.key))]})]})},ee=n(38629),et=n(59077),en=n(9818);let er=(0,et.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...en.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...en.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var eo=n(74865),ei=n.n(eo);let ea=0;function el(){"loading"!==o&&(o="loading",r=setTimeout(function(){ei().start()},250))}function es(){ea>0||(o="stop",clearTimeout(r),ei().done())}if(q().events.on("routeChangeStart",el),q().events.on("routeChangeComplete",es),q().events.on("routeChangeError",es),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,n=Array(t),r=0;r{let e=function(){let e=localStorage.getItem(c.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}();o(e)},[]),(0,a.useEffect)(()=>{if((null==s?void 0:s.current)&&r){var e,t,n,o,i,a;null==s||null===(e=s.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==s||null===(n=s.current)||void 0===n||null===(o=n.classList)||void 0===o||o.remove("dark"):null==s||null===(i=s.current)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[s,r]),(0,a.useEffect)(()=>{n.changeLanguage&&n.changeLanguage(window.localStorage.getItem(c.Yl)||"en")},[n]),(0,i.jsxs)("div",{ref:s,children:[(0,i.jsx)(ec,{}),(0,i.jsx)(l.R,{children:t})]})}function em(e){let{children:t}=e,{isMenuExpand:n}=(0,a.useContext)(l.p),{mode:r}=(0,d.tv)();return(0,i.jsx)(ed.ZP,{theme:{algorithm:"dark"===r?ep.default.darkAlgorithm:void 0},children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:ef()("transition-[width]",n?"w-64":"w-20","hidden","md:block"),children:(0,i.jsx)(Q,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}var eg=function(e){let{Component:t,pageProps:n}=e;return(0,i.jsx)(ee.Z,{theme:er,children:(0,i.jsx)(d.lL,{theme:er,defaultMode:"light",children:(0,i.jsx)(eh,{children:(0,i.jsx)(em,{children:(0,i.jsx)(t,{...n})})})})})}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,l=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var r=n(675),o=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return k(e).length;default:if(o)return r?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){for(var f=!0,d=0;d239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function w(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function C(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);on&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,c,u,f,d,p,h,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o.push(n%256),o.push(r);return o}(e,this.length-h),this,h,m);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],n=0;n=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,u=(1<>1,d=23===o?5960464477539062e-23:0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(72);e.exports=o}()},90833:function(){},80864:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],c=!1,u=-1;function f(){c&&r&&(c=!1,r.length?s=r.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(r=s,s=[];++u1)for(var n=1;n
'};function i(e,t,n){return en?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=i(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),s=n.querySelector(o.barSelector),c=o.speed,u=o.easing;return n.offsetWidth,a(function(t){var i,a;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),l(s,(i=e,(a="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+i)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+i)*100+"%,0)"}:{"margin-left":(-1+i)*100+"%"}).transition="all "+c+"ms "+u,a)),1===e?(l(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){l(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,i,a=t.querySelector(o.barSelector),s=e?"-100":(-1+(r.status||0))*100,u=document.querySelector(o.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(i=t.querySelector(o.spinnerSelector))&&d(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var i;r=t[i=(i=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[i]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(i)),n.style[r]=o}return function(e,t){var r,o,i=arguments;if(2==i.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,i[1],i[2])}}();function s(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=f(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=f(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},13328:function(e,t,n){"use strict";n.d(t,{s:function(){return b},Z:function(){return S}});var r=n(87462),o=n(97685),i=n(67294),a=n(2788),l=n(1413),s=n(94184),c=n.n(s),u=n(94999),f=n(7028),d=n(15105),p=n(64217);function h(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var g=n(82225),v=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),y={width:0,height:0,overflow:"hidden",outline:"none"},b=i.forwardRef(function(e,t){var n,o,a,s=e.prefixCls,u=e.className,f=e.style,d=e.title,p=e.ariaId,h=e.footer,m=e.closable,g=e.closeIcon,b=e.onClose,x=e.children,w=e.bodyStyle,C=e.bodyProps,E=e.modalRender,S=e.onMouseDown,$=e.onMouseUp,O=e.holderRef,k=e.visible,Z=e.forceRender,P=e.width,j=e.height,R=(0,i.useRef)(),A=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===A.current?R.current.focus():e||t!==R.current||A.current.focus()}}});var _={};void 0!==P&&(_.width=P),void 0!==j&&(_.height=j),h&&(n=i.createElement("div",{className:"".concat(s,"-footer")},h)),d&&(o=i.createElement("div",{className:"".concat(s,"-header")},i.createElement("div",{className:"".concat(s,"-title"),id:p},d))),m&&(a=i.createElement("button",{type:"button",onClick:b,"aria-label":"Close",className:"".concat(s,"-close")},g||i.createElement("span",{className:"".concat(s,"-close-x")})));var N=i.createElement("div",{className:"".concat(s,"-content")},a,o,i.createElement("div",(0,r.Z)({className:"".concat(s,"-body"),style:w},C),x),n);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":d?p:null,"aria-modal":"true",ref:O,style:(0,l.Z)((0,l.Z)({},f),_),className:c()(s,u),onMouseDown:S,onMouseUp:$},i.createElement("div",{tabIndex:0,ref:R,style:y,"aria-hidden":"true"}),i.createElement(v,{shouldUpdate:k||Z},E?E(N):N),i.createElement("div",{tabIndex:0,ref:A,style:y,"aria-hidden":"true"}))}),x=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,s=e.style,u=e.className,f=e.visible,d=e.forceRender,p=e.destroyOnClose,h=e.motionName,v=e.ariaId,y=e.onVisibleChanged,x=e.mousePosition,w=(0,i.useRef)(),C=i.useState(),E=(0,o.Z)(C,2),S=E[0],$=E[1],O={};function k(){var e,t,n,r,o,i=(n={left:(t=(e=w.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);$(x?"".concat(x.x-i.left,"px ").concat(x.y-i.top,"px"):"")}return S&&(O.transformOrigin=S),i.createElement(g.ZP,{visible:f,onVisibleChanged:y,onAppearPrepare:k,onEnterPrepare:k,forceRender:d,motionName:h,removeOnLeave:p,ref:w},function(o,f){var d=o.className,p=o.style;return i.createElement(b,(0,r.Z)({},e,{ref:t,title:a,ariaId:v,prefixCls:n,holderRef:f,style:(0,l.Z)((0,l.Z)((0,l.Z)({},p),s),O),className:c()(u,d)}))})});function w(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,s=e.motionName;return i.createElement(g.ZP,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var s=e.className,u=e.style;return i.createElement("div",(0,r.Z)({ref:o,style:(0,l.Z)((0,l.Z)({},u),n),className:c()("".concat(t,"-mask"),s)},a))})}function C(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,s=e.visible,m=void 0!==s&&s,g=e.keyboard,v=void 0===g||g,y=e.focusTriggerAfterClose,b=void 0===y||y,C=e.wrapStyle,E=e.wrapClassName,S=e.wrapProps,$=e.onClose,O=e.afterOpenChange,k=e.afterClose,Z=e.transitionName,P=e.animation,j=e.closable,R=e.mask,A=void 0===R||R,_=e.maskTransitionName,N=e.maskAnimation,T=e.maskClosable,I=e.maskStyle,M=e.maskProps,F=e.rootClassName,B=(0,i.useRef)(),L=(0,i.useRef)(),D=(0,i.useRef)(),z=i.useState(m),H=(0,o.Z)(z,2),V=H[0],U=H[1],W=(0,f.Z)();function K(e){null==$||$(e)}var q=(0,i.useRef)(!1),G=(0,i.useRef)(),X=null;return(void 0===T||T)&&(X=function(e){q.current?q.current=!1:L.current===e.target&&K(e)}),(0,i.useEffect)(function(){m&&(U(!0),(0,u.Z)(L.current,document.activeElement)||(B.current=document.activeElement))},[m]),(0,i.useEffect)(function(){return function(){clearTimeout(G.current)}},[]),i.createElement("div",(0,r.Z)({className:c()("".concat(n,"-root"),F)},(0,p.Z)(e,{data:!0})),i.createElement(w,{prefixCls:n,visible:A&&m,motionName:h(n,_,N),style:(0,l.Z)({zIndex:a},I),maskProps:M}),i.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(v&&e.keyCode===d.Z.ESC){e.stopPropagation(),K(e);return}m&&e.keyCode===d.Z.TAB&&D.current.changeActive(!e.shiftKey)},className:c()("".concat(n,"-wrap"),E),ref:L,onClick:X,style:(0,l.Z)((0,l.Z)({zIndex:a},C),{},{display:V?null:"none"})},S),i.createElement(x,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(G.current),q.current=!0},onMouseUp:function(){G.current=setTimeout(function(){q.current=!1})},ref:D,closable:void 0===j||j,ariaId:W,prefixCls:n,visible:m&&V,onClose:K,onVisibleChanged:function(e){if(e)!function(){if(!(0,u.Z)(L.current,document.activeElement)){var e;null===(e=D.current)||void 0===e||e.focus()}}();else{if(U(!1),A&&B.current&&b){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}V&&(null==k||k())}null==O||O(e)},motionName:h(n,Z,P)}))))}x.displayName="Content";var E=function(e){var t=e.visible,n=e.getContainer,l=e.forceRender,s=e.destroyOnClose,c=void 0!==s&&s,u=e.afterClose,f=i.useState(t),d=(0,o.Z)(f,2),p=d[0],h=d[1];return(i.useEffect(function(){t&&h(!0)},[t]),l||!c||p)?i.createElement(a.Z,{open:t||l||p,autoDestroy:!1,getContainer:n,autoLock:t||p},i.createElement(C,(0,r.Z)({},e,{destroyOnClose:c,afterClose:function(){null==u||u(),h(!1)}}))):null};E.displayName="Dialog";var S=E},29171:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(87462),o=n(4942),i=n(97685),a=n(45987),l=n(40228),s=n(94184),c=n.n(s),u=n(42550),f=n(67294),d=n(15105),p=n(75164),h=d.Z.ESC,m=d.Z.TAB,g=(0,f.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,f.useMemo)(function(){return"function"==typeof n?n():n},[n]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],b={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=f.forwardRef(function(e,t){var n,s,d,v,y,w,C,E,S,$,O,k,Z,P,j=e.arrow,R=void 0!==j&&j,A=e.prefixCls,_=void 0===A?"rc-dropdown":A,N=e.transitionName,T=e.animation,I=e.align,M=e.placement,F=e.placements,B=e.getPopupContainer,L=e.showAction,D=e.hideAction,z=e.overlayClassName,H=e.overlayStyle,V=e.visible,U=e.trigger,W=void 0===U?["hover"]:U,K=e.autoFocus,q=e.overlay,G=e.children,X=e.onVisibleChange,Y=(0,a.Z)(e,x),J=f.useState(),Q=(0,i.Z)(J,2),ee=Q[0],et=Q[1],en="visible"in e?V:ee,er=f.useRef(null),eo=f.useRef(null),ei=f.useRef(null);f.useImperativeHandle(t,function(){return er.current});var ea=function(e){et(e),null==X||X(e)};s=(n={visible:en,triggerRef:ei,onVisibleChange:ea,autoFocus:K,overlayRef:eo}).visible,d=n.triggerRef,v=n.onVisibleChange,y=n.autoFocus,w=n.overlayRef,C=f.useRef(!1),E=function(){if(s){var e,t;null===(e=d.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==v||v(!1)}},S=function(){var e;return null!==(e=w.current)&&void 0!==e&&!!e.focus&&(w.current.focus(),C.current=!0,!0)},$=function(e){switch(e.keyCode){case h:E();break;case m:var t=!1;C.current||(t=S()),t?e.preventDefault():E()}},f.useEffect(function(){return s?(window.addEventListener("keydown",$),y&&(0,p.Z)(S,3),function(){window.removeEventListener("keydown",$),C.current=!1}):function(){C.current=!1}},[s]);var el=function(){return f.createElement(g,{ref:eo,overlay:q,prefixCls:_,arrow:R})},es=f.cloneElement(G,{className:c()(null===(P=G.props)||void 0===P?void 0:P.className,en&&(void 0!==(O=e.openClassName)?O:"".concat(_,"-open"))),ref:(0,u.Yr)(G)?(0,u.sQ)(ei,G.ref):void 0}),ec=D;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),f.createElement(l.Z,(0,r.Z)({builtinPlacements:void 0===F?b:F},Y,{prefixCls:_,ref:er,popupClassName:c()(z,(0,o.Z)({},"".concat(_,"-show-arrow"),R)),popupStyle:H,action:W,showAction:L,hideAction:ec,popupPlacement:void 0===M?"bottomLeft":M,popupAlign:I,popupTransitionName:N,popupAnimation:T,popupVisible:en,stretch:(k=e.minOverlayWidthMatchTrigger,Z=e.alignPoint,"minOverlayWidthMatchTrigger"in e?k:!Z)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ea,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),es)})},43589:function(e,t,n){"use strict";n.d(t,{gN:function(){return eg},zb:function(){return x},RV:function(){return eO},aV:function(){return ev},ZM:function(){return w},ZP:function(){return eA},cI:function(){return eS},qo:function(){return ej}});var r,o=n(67294),i=n(87462),a=n(45987),l=n(4942),s=n(1413),c=n(74902),u=n(15671),f=n(43144),d=n(97326),p=n(32531),h=n(73568),m=n(50344),g=n(80334),v=n(91881),y="RC_FORM_INTERNAL_HOOKS",b=function(){(0,g.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},x=o.createContext({getFieldValue:b,getFieldsValue:b,getFieldError:b,getFieldWarning:b,getFieldsError:b,isFieldsTouched:b,isFieldTouched:b,isFieldValidating:b,isFieldsValidating:b,resetFields:b,setFields:b,setFieldValue:b,setFieldsValue:b,validateFields:b,submit:b,getInternalHooks:function(){return b(),{dispatch:b,initEntityValue:b,registerField:b,useSubscribe:b,setInitialValues:b,destroyForm:b,setCallbacks:b,registerWatch:b,getFields:b,setValidateMessages:b,setPreserve:b,getInitialValue:b}}}),w=o.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}var E=n(74165),S=n(15861),$=n(83454);function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function N(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function T(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length){n(a);return}var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(D.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(L())},hex:function(e){return"string"==typeof e&&!!e.match(D.hex)}},H="enum",V={required:B,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(_(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t){B(e,t,n,r,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?z[i](t)||r.push(_(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(_(o.messages.types[i],e.fullField,e.type))},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?c="number":f?c="string":d&&(c="array"),!c)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(_(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(_(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(_(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&r.push(_(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,n,r,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(_(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||r.push(_(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},U=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,i)&&!e.required)return n();V.required(e,t,r,a,o,i),N(t,i)||V.type(e,t,r,a,o)}n(a)},W={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();V.required(e,t,r,i,o,"string"),N(t,"string")||(V.type(e,t,r,i,o),V.range(e,t,r,i,o),V.pattern(e,t,r,i,o),!0===e.whitespace&&V.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),N(t)||V.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();V.required(e,t,r,i,o,"array"),null!=t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return n();V.required(e,t,r,i,o),N(t,"string")||V.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t,"date")&&!e.required)return n();V.required(e,t,r,a,o),!N(t,"date")&&(i=t instanceof Date?t:new Date(t),V.type(e,i,r,a,o),i&&V.range(e,i.getTime(),r,a,o))}n(a)},url:U,hex:U,email:U,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(N(t)&&!e.required)return n();V.required(e,t,r,i,o)}n(i)}};function K(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var q=K(),G=function(){function e(e){this.rules=null,this._messages=q,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=F(K(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===q&&(s=K()),F(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=o.rules[e],r=i[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=O({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:O({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});var u={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a;T((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,e[t]||[])}),a),n,function(e){return r(e),e.length?i(new I(e,A(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(t,i){var f=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new I(u,A(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?T(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,f)})});return f.catch(function(e){return e}),f}(c,a,function(t,n){var r,o=t.rule,l=("object"===o.type||"array"===o.type)&&("object"==typeof o.fields||"object"==typeof o.defaultField);function s(e,t){return O({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var f=c.map(M(o,i));if(a.first&&f.length)return u[o.field]=1,n(f);if(l){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(M(o,i)):a.error&&(f=[a.error(o,_(a.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map(function(e){d[e]=o.defaultField});var p={};Object.keys(d=O({},d,t.rule.fields)).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))});var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){for(var t=[],n={},r=0;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var ed=["name"],ep=[];function eh(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var em=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,u.Z)(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.prevValidating=void 0,r.errors=ep,r.warnings=ep,r.cancelRegister=function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ea(o)),r.cancelRegisterFunc=null},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,o=void 0===n?[]:n;return void 0!==t?[].concat((0,c.Z)(o),(0,c.Z)(t)):[]},r.getRules=function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})},r.refresh=function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})},r.metaCache=null,r.triggerMetaEvent=function(e){var t=r.props.onMetaChange;if(t){var n=(0,s.Z)((0,s.Z)({},r.getMeta()),{},{destroy:e});(0,v.Z)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null},r.onStoreChange=function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(c),p=t&&es(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ep,r.warnings=ep,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),null==s||s(),r.refresh();return}break;case"remove":if(i){r.reRender();return}break;case"setField":if(p){var h=n.data;"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||ep),"warnings"in h&&(r.warnings=h.warnings||ep),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if(i&&!u.length&&eh(i,e,c,f,d,n)){r.reRender();return}break;case"dependenciesUpdate":if(l.map(ea).some(function(e){return es(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!l.length||u.length||i)&&eh(i,e,c,f,d,n)){r.reRender();return}}!0===i&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=Promise.resolve().then(function(){if(!r.mounted)return[];var o=r.props,a=o.validateFirst,u=void 0!==a&&a,f=o.messageVariables,d=r.getRules();i&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||C(t).includes(i)}));var p=function(e,t,n,r,o,i){var a,l,c=e.join("."),u=n.map(function(e,t){var n=e.validator,r=(0,s.Z)((0,s.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:ep;if(r.validatePromise===l){r.validatePromise=null;var t,n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ep:r;t?o.push.apply(o,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),p});return void 0!==a&&a||(r.validatePromise=l,r.dirty=!0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(y).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return(0,s.Z)((0,s.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return(0,ei.Z)(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,c=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,p=r.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,g=h(y).dispatch,v=r.getValue(),b=u||function(e){return(0,l.Z)({},c,e)},x=e[n],w=(0,s.Z)((0,s.Z)({},e),b(v));return w[n]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o=0&&t<=n.length?(d.keys=[].concat((0,c.Z)(d.keys.slice(0,t)),[d.id],(0,c.Z)(d.keys.slice(t))),o([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(d.keys=[].concat((0,c.Z)(d.keys),[d.id]),o([].concat((0,c.Z)(n),[e]))),d.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(d.keys=ef(d.keys,e,t),o(ef(n,e,t)))}}},t)})))},ey=n(97685),eb="__@field_split__";function ex(e){return e.map(function(e){return"".concat((0,eo.Z)(e),":").concat(e)}).join(eb)}var ew=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(ex(e),t)}},{key:"get",value:function(e){return this.kvs.get(ex(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ex(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map(function(t){var n=(0,ey.Z)(t,2),r=n[0],o=n[1];return e({key:r.split(eb).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ey.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),eC=["name"],eE=(0,f.Z)(function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,g.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,o=(0,J.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=(0,J.Z)(o,n,(0,ei.Z)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}},this.destroyForm=function(){var e=new ew;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=(0,ei.Z)(n.initialValues,e);return e.length?(0,J.T)(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ew;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=ea(e);return t.get(n)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,eo.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,i,a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null===(n=e.isList)||void 0===n?void 0:n.call(e))return}else if(!r&&(null===(t=e.isListField)||void 0===t?void 0:t.call(e)))return;o?o("getMeta"in e?e.getMeta():null)&&l.push(a):l.push(a)}),el(n.store,l.map(ea))},this.getFieldValue=function(e){n.warningUnhooked();var t=ea(e);return(0,ei.Z)(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){n.warningUnhooked();var t=ea(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=ea(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=new ew,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,c.Z)((0,c.Z)(o).map(function(e){return e.entity})))})):e=o,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))(0,g.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)(0,g.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);t.skipExist&&void 0!==a||n.updateStore((0,J.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}})}(e)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore((0,J.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(ea);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,J.Z)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.Z)(e,eC),l=ea(o);r.push(l),"value"in i&&n.updateStore((0,J.Z)(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})}),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,s.Z)((0,s.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,ei.Z)(n.store,r)&&n.updateStore((0,J.Z)(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!ec(e.getNamePath(),t)})){var l=n.store;n.updateStore((0,J.Z)(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=(0,s.Z)((0,s.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(r))}),r},this.updateValue=function(e,t){var r=ea(e),o=n.store;n.updateStore((0,J.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(el(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,J.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new ew;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=ea(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ew;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return es(e,t.name)});a.length&&r(a,o)}},this.validateFields=function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,l=t):l=e;var r,o,i,a,l,u=!!a,f=u?a.map(ea):[],d=[],p=String(Date.now()),h=new Set;n.getFieldEntities(!0).forEach(function(e){if(u||f.push(e.getNamePath()),(null===(t=l)||void 0===t?void 0:t.recursive)&&u){var t,r=e.getNamePath();r.every(function(e,t){return a[t]===e||void 0===a[t]})&&f.push(r)}if(e.props.rules&&e.props.rules.length){var o=e.getNamePath();if(h.add(o.join(p)),!u||es(f,o)){var i=e.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},Y),n.validateMessages)},l));d.push(i.then(function(){return{name:o,errors:[],warnings:[]}}).catch(function(e){var t,n=[],r=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,(0,c.Z)(o)):n.push.apply(n,(0,c.Z)(o))}),n.length)?Promise.reject({name:o,errors:n,warnings:r}):{name:o,errors:n,warnings:r}}))}}});var m=(r=!1,o=d.length,i=[],d.length?new Promise(function(e,t){d.forEach(function(n,a){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,i[a]=n,o>0||(r&&t(i),e(i))})})}):Promise.resolve([]));n.lastValidatePromise=m,m.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:t,outOfDate:n.lastValidatePromise!==m})});g.catch(function(e){return e});var v=f.filter(function(e){return h.has(e.join(p))});return n.triggerOnFieldsChange(v),g},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eS=function(e){var t=o.useRef(),n=o.useState({}),r=(0,ey.Z)(n,2)[1];if(!t.current){if(e)t.current=e;else{var i=new eE(function(){r({})});t.current=i.getForm()}}return[t.current]},e$=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(e$),c=o.useRef({});return o.createElement(e$.Provider,{value:(0,s.Z)((0,s.Z)({},a),{},{validateMessages:(0,s.Z)((0,s.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:c.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=(0,s.Z)((0,s.Z)({},c.current),{},(0,l.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.Z)({},c.current);delete t[e],c.current=t,a.unregisterForm(e)}})},i)},ek=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function eZ(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var eP=function(){},ej=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1];if((0,A.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var N=j.Z.LEFT,T=j.Z.RIGHT,I=j.Z.UP,M=j.Z.DOWN,F=j.Z.ENTER,B=j.Z.ESC,L=j.Z.HOME,D=j.Z.END,z=[I,M,N,T];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter(function(e){return _(e,t)});return _(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var U="__RC_UTIL_PATH_SPLIT__",W=function(e){return e.join(U)},K="rc-menu-more";function q(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(S.motionAppear=!1);var $=S.onVisibleChanged;return(S.onVisibleChanged=function(e){return g.current||e||x(!0),null==$?void 0:$(e)},b)?null:h.createElement(E,{mode:s,locked:!g.current},h.createElement(e$.ZP,(0,r.Z)({visible:w},S,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,r=e.style;return h.createElement(em,{id:t,className:n,style:r},a)}))}var ek=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eZ=["active"],eP=function(e){var t,n=e.style,a=e.className,c=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,g=e.children,v=e.itemIcon,y=e.expandIcon,x=e.popupClassName,w=e.popupOffset,S=e.onClick,$=e.onMouseEnter,O=e.onMouseLeave,j=e.onTitleClick,R=e.onTitleMouseEnter,A=e.onTitleMouseLeave,_=(0,s.Z)(e,ek),N=b(d),T=h.useContext(C),I=T.prefixCls,M=T.mode,F=T.openKeys,B=T.disabled,L=T.overflowDisabled,D=T.activeKey,z=T.selectedKeys,H=T.itemIcon,V=T.expandIcon,U=T.onItemClick,W=T.onOpenChange,K=T.onActive,G=h.useContext(P)._internalRenderSubMenuItem,X=h.useContext(Z).isSubPathKey,Y=k(),J="".concat(I,"-submenu"),Q=B||p,ee=h.useRef(),et=h.useRef(),en=y||V,ea=F.includes(d),es=!L&&ea,ec=X(z,d),eu=er(d,Q,R,A),ef=eu.active,ed=(0,s.Z)(eu,eZ),ep=h.useState(!1),eh=(0,l.Z)(ep,2),eg=eh[0],ev=eh[1],ey=function(e){Q||ev(e)},eb=h.useMemo(function(){return ef||"inline"!==M&&(eg||X([D],d))},[M,ef,D,eg,d,X]),ex=eo(Y.length),ew=q(function(e){null==S||S(el(e)),U(e)}),eC=N&&"".concat(N,"-popup"),eE=h.createElement("div",(0,r.Z)({role:"menuitem",style:ex,className:"".concat(J,"-title"),tabIndex:Q?null:-1,ref:ee,title:"string"==typeof c?c:null,"data-menu-id":L&&N?null:N,"aria-expanded":es,"aria-haspopup":!0,"aria-controls":eC,"aria-disabled":Q,onClick:function(e){Q||(null==j||j({key:d,domEvent:e}),"inline"===M&&W(d,!ea))},onFocus:function(){K(d)}},ed),c,h.createElement(ei,{icon:"horizontal"!==M?en:null,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:es,isSubMenu:!0})},h.createElement("i",{className:"".concat(J,"-arrow")}))),e$=h.useRef(M);if("inline"!==M&&Y.length>1?e$.current="vertical":e$.current=M,!L){var eP=e$.current;eE=h.createElement(eS,{mode:eP,prefixCls:J,visible:!m&&es&&"inline"!==M,popupClassName:x,popupOffset:w,popup:h.createElement(E,{mode:"horizontal"===eP?"vertical":eP},h.createElement(em,{id:eC,ref:et},g)),disabled:Q,onVisibleChange:function(e){"inline"!==M&&W(d,e)}},eE)}var ej=h.createElement(f.Z.Item,(0,r.Z)({role:"none"},_,{component:"li",style:n,className:u()(J,"".concat(J,"-").concat(M),a,(t={},(0,o.Z)(t,"".concat(J,"-open"),es),(0,o.Z)(t,"".concat(J,"-active"),eb),(0,o.Z)(t,"".concat(J,"-selected"),ec),(0,o.Z)(t,"".concat(J,"-disabled"),Q),t)),onMouseEnter:function(e){ey(!0),null==$||$({key:d,domEvent:e})},onMouseLeave:function(e){ey(!1),null==O||O({key:d,domEvent:e})}}),eE,!L&&h.createElement(eO,{id:eC,open:es,keyPath:Y},g));return G&&(ej=G(ej,e,{selected:ec,active:eb,open:es,disabled:Q})),h.createElement(E,{onItemClick:ew,mode:"horizontal"===M?"vertical":M,itemIcon:v||H,expandIcon:en},ej)};function ej(e){var t,n=e.eventKey,r=e.children,o=k(n),i=ev(r,o),a=$();return h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]),t=a?i:h.createElement(eP,e,i),h.createElement(O.Provider,{value:o},t)}var eR=n(71002),eA=["className","title","eventKey","children"],e_=["children"],eN=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,s.Z)(e,eA),a=h.useContext(C).prefixCls,l="".concat(a,"-item-group");return h.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:u()(l,t)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function eT(e){var t=e.children,n=(0,s.Z)(e,e_),r=ev(t,k(n.eventKey));return $()?r:h.createElement(eN,(0,et.Z)(n,["warnKey"]),r)}function eI(e){var t=e.className,n=e.style,r=h.useContext(C).prefixCls;return $()?null:h.createElement("li",{className:u()("".concat(r,"-item-divider"),t),style:n})}var eM=["label","children","key","type"],eF=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eB=[],eL=h.forwardRef(function(e,t){var n,c,p,b,x,w,C,$,O,k,j,A,_,Y,J,Q,ee,et,en,er,eo,ei,ea,es,ec,eu,ef,ed=e.prefixCls,eh=void 0===ed?"rc-menu":ed,em=e.rootClassName,eg=e.style,ey=e.className,eb=e.tabIndex,ex=e.items,ew=e.children,eC=e.direction,eE=e.id,eS=e.mode,e$=void 0===eS?"vertical":eS,eO=e.inlineCollapsed,ek=e.disabled,eZ=e.disabledOverflow,eP=e.subMenuOpenDelay,eA=e.subMenuCloseDelay,e_=e.forceSubMenuRender,eN=e.defaultOpenKeys,eL=e.openKeys,eD=e.activeKey,ez=e.defaultActiveFirst,eH=e.selectable,eV=void 0===eH||eH,eU=e.multiple,eW=void 0!==eU&&eU,eK=e.defaultSelectedKeys,eq=e.selectedKeys,eG=e.onSelect,eX=e.onDeselect,eY=e.inlineIndent,eJ=e.motion,eQ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e4=e.expandIcon,e5=e.overflowedIndicator,e3=void 0===e5?"...":e5,e6=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e7=e.onClick,e9=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,s.Z)(e,eF),to=h.useMemo(function(){var e;return e=ew,ex&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,eR.Z)(t)){var o=t.label,i=t.children,a=t.key,l=t.type,c=(0,s.Z)(t,eM),u=null!=a?a:"tmp-".concat(n);return i||"group"===l?"group"===l?h.createElement(eT,(0,r.Z)({key:u},c,{title:o}),e(i)):h.createElement(ej,(0,r.Z)({key:u},c,{title:o}),e(i)):"divider"===l?h.createElement(eI,(0,r.Z)({key:u},c)):h.createElement(ep,(0,r.Z)({key:u},c),o)}return null}).filter(function(e){return e})}(ex)),ev(e,eB)},[ew,ex]),ti=h.useState(!1),ta=(0,l.Z)(ti,2),tl=ta[0],ts=ta[1],tc=h.useRef(),tu=(n=(0,d.Z)(eE,{value:eE}),p=(c=(0,l.Z)(n,2))[0],b=c[1],h.useEffect(function(){X+=1;var e="".concat(G,"-").concat(X);b("rc-menu-uuid-".concat(e))},[]),p),tf="rtl"===eC,td=(0,d.Z)(eN,{value:eL,postState:function(e){return e||eB}}),tp=(0,l.Z)(td,2),th=tp[0],tm=tp[1],tg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e9||e9(e)}t?(0,m.flushSync)(n):n()},tv=h.useState(th),ty=(0,l.Z)(tv,2),tb=ty[0],tx=ty[1],tw=h.useRef(!1),tC=h.useMemo(function(){return("inline"===e$||"vertical"===e$)&&eO?["vertical",eO]:[e$,!1]},[e$,eO]),tE=(0,l.Z)(tC,2),tS=tE[0],t$=tE[1],tO="inline"===tS,tk=h.useState(tS),tZ=(0,l.Z)(tk,2),tP=tZ[0],tj=tZ[1],tR=h.useState(t$),tA=(0,l.Z)(tR,2),t_=tA[0],tN=tA[1];h.useEffect(function(){tj(tS),tN(t$),tw.current&&(tO?tm(tb):tg(eB))},[tS,t$]);var tT=h.useState(0),tI=(0,l.Z)(tT,2),tM=tI[0],tF=tI[1],tB=tM>=to.length-1||"horizontal"!==tP||eZ;h.useEffect(function(){tO&&tx(th)},[th]),h.useEffect(function(){return tw.current=!0,function(){tw.current=!1}},[]);var tL=(x=h.useState({}),w=(0,l.Z)(x,2)[1],C=(0,h.useRef)(new Map),$=(0,h.useRef)(new Map),O=h.useState([]),j=(k=(0,l.Z)(O,2))[0],A=k[1],_=(0,h.useRef)(0),Y=(0,h.useRef)(!1),J=function(){Y.current||w({})},Q=(0,h.useCallback)(function(e,t){var n=W(t);$.current.set(n,e),C.current.set(e,n),_.current+=1;var r=_.current;Promise.resolve().then(function(){r===_.current&&J()})},[]),ee=(0,h.useCallback)(function(e,t){var n=W(t);$.current.delete(n),C.current.delete(e)},[]),et=(0,h.useCallback)(function(e){A(e)},[]),en=(0,h.useCallback)(function(e,t){var n=(C.current.get(e)||"").split(U);return t&&j.includes(n[0])&&n.unshift(K),n},[j]),er=(0,h.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,h.useCallback)(function(e){var t="".concat(C.current.get(e)).concat(U),n=new Set;return(0,a.Z)($.current.keys()).forEach(function(e){e.startsWith(t)&&n.add($.current.get(e))}),n},[]),h.useEffect(function(){return function(){Y.current=!0}},[]),{registerPath:Q,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,a.Z)(C.current.keys());return j.length&&e.push(K),e},getSubPathKeys:eo}),tD=tL.registerPath,tz=tL.unregisterPath,tH=tL.refreshOverflowKeys,tV=tL.isSubPathKey,tU=tL.getKeyPath,tW=tL.getKeys,tK=tL.getSubPathKeys,tq=h.useMemo(function(){return{registerPath:tD,unregisterPath:tz}},[tD,tz]),tG=h.useMemo(function(){return{isSubPathKey:tV}},[tV]);h.useEffect(function(){tH(tB?eB:to.slice(tM+1).map(function(e){return e.key}))},[tM,tB]);var tX=(0,d.Z)(eD||ez&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:eD}),tY=(0,l.Z)(tX,2),tJ=tY[0],tQ=tY[1],t0=q(function(e){tQ(e)}),t1=q(function(){tQ(void 0)});(0,h.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r,o,i=null!=tJ?tJ:null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;i&&(null===(n=tc.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(y(tu,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}});var t2=(0,d.Z)(eK||[],{value:eq,postState:function(e){return Array.isArray(e)?e:null==e?eB:[e]}}),t4=(0,l.Z)(t2,2),t5=t4[0],t3=t4[1],t6=function(e){if(eV){var t,n=e.key,r=t5.includes(n);t3(t=eW?r?t5.filter(function(e){return e!==n}):[].concat((0,a.Z)(t5),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eX||eX(o):null==eG||eG(o)}!eW&&th.length&&"inline"!==tP&&tg(eB)},t8=q(function(e){null==e7||e7(el(e)),t6(e)}),t7=q(function(e,t){var n=th.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tP){var r=tK(e);n=n.filter(function(e){return!r.has(e)})}(0,g.Z)(th,n,!0)||tg(n,!0)}),t9=(ei=function(e,t){var n=null!=t?t:!th.includes(e);t7(e,n)},ea=h.useRef(),(es=h.useRef()).current=tJ,ec=function(){R.Z.cancel(ea.current)},h.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(z,[F,B,L,D]).includes(t)){var n=function(){return s=new Set,c=new Map,u=new Map,tW().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(y(tu,e),"']"));t&&(s.add(t),u.set(t,e),c.set(e,t))}),s};n();var r=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(c.get(tJ),s),i=u.get(r),a=function(e,t,n,r){var i,a,l,s,c="prev",u="next",f="children",d="parent";if("inline"===e&&r===F)return{inlineTrigger:!0};var p=(i={},(0,o.Z)(i,I,c),(0,o.Z)(i,M,u),i),h=(a={},(0,o.Z)(a,N,n?u:c),(0,o.Z)(a,T,n?c:u),(0,o.Z)(a,M,f),(0,o.Z)(a,F,f),a),m=(l={},(0,o.Z)(l,I,c),(0,o.Z)(l,M,u),(0,o.Z)(l,F,f),(0,o.Z)(l,B,d),(0,o.Z)(l,N,n?f:d),(0,o.Z)(l,T,n?d:f),l);switch(null===(s=({inline:p,horizontal:h,vertical:m,inlineSub:p,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(tP,1===tU(i,!0).length,tf,t);if(!a&&t!==L&&t!==D)return;(z.includes(t)||[L,D].includes(t))&&e.preventDefault();var l=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=u.get(e);tQ(r),ec(),ea.current=(0,R.Z)(function(){es.current===r&&t.focus()})}};if([L,D].includes(t)||a.sibling||!r){var s,c,u,f,d=H(f=r&&"inline"!==tP?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(r):tc.current,s);l(t===L?d[0]:t===D?d[d.length-1]:V(f,s,r,a.offset))}else if(a.inlineTrigger)ei(i);else if(a.offset>0)ei(i,!0),ec(),ea.current=(0,R.Z)(function(){n();var e=r.getAttribute("aria-controls");l(V(document.getElementById(e),s))},5);else if(a.offset<0){var p=tU(i,!0),h=p[p.length-2],m=c.get(h);ei(h,!1),l(m)}}null==te||te(e)});h.useEffect(function(){ts(!0)},[]);var ne=h.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tP||eZ?to:to.map(function(e,t){return h.createElement(E,{key:e.key,overflowDisabled:t>tM},e)}),nn=h.createElement(f.Z,(0,r.Z)({id:eE,ref:tc,prefixCls:"".concat(eh,"-overflow"),component:"ul",itemComponent:ep,className:u()(eh,"".concat(eh,"-root"),"".concat(eh,"-").concat(tP),ey,(ef={},(0,o.Z)(ef,"".concat(eh,"-inline-collapsed"),t_),(0,o.Z)(ef,"".concat(eh,"-rtl"),tf),ef),em),dir:eC,style:eg,role:"menu",tabIndex:void 0===eb?0:eb,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return h.createElement(ej,{eventKey:K,title:e3,disabled:tB,internalPopupClose:0===t,popupClassName:e6},n)},maxCount:"horizontal"!==tP||eZ?f.Z.INVALIDATE:f.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tF(e)},onKeyDown:t9},tr));return h.createElement(P.Provider,{value:ne},h.createElement(v.Provider,{value:tu},h.createElement(E,{prefixCls:eh,rootClassName:em,mode:tP,openKeys:th,rtl:tf,disabled:ek,motion:tl?eJ:null,defaultMotions:tl?eQ:null,activeKey:tJ,onActive:t0,onInactive:t1,selectedKeys:t5,inlineIndent:void 0===eY?24:eY,subMenuOpenDelay:void 0===eP?.1:eP,subMenuCloseDelay:void 0===eA?.1:eA,forceSubMenuRender:e_,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e4,onItemClick:t8,onOpenChange:t7},h.createElement(Z.Provider,{value:tG},nn),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(S.Provider,{value:tq},to)))))});eL.Item=ep,eL.SubMenu=ej,eL.ItemGroup=eT,eL.Divider=eI;var eD=eL},82225:function(e,t,n){"use strict";n.d(t,{V4:function(){return ep},zt:function(){return x},ZP:function(){return eh}});var r,o,i,a,l,s=n(4942),c=n(1413),u=n(97685),f=n(71002),d=n(94184),p=n.n(d),h=n(34203),m=n(42550),g=n(67294),v=n(45987),y=["children"],b=g.createContext({});function x(e){var t=e.children,n=(0,v.Z)(e,y);return g.createElement(b.Provider,{value:n},t)}var w=n(15671),C=n(43144),E=n(32531),S=n(73568),$=function(e){(0,E.Z)(n,e);var t=(0,S.Z)(n);function n(){return(0,w.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),O=n(30470),k="none",Z="appear",P="enter",j="leave",R="none",A="prepare",_="start",N="active",T="prepared",I=n(98924);function M(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var F=(r=(0,I.Z)(),o="undefined"!=typeof window?window:{},i={animationend:M("Animation","AnimationEnd"),transitionend:M("Transition","TransitionEnd")},!r||("AnimationEvent"in o||delete i.animationend.animation,"TransitionEvent"in o||delete i.transitionend.transition),i),B={};(0,I.Z)()&&(B=document.createElement("div").style);var L={};function D(e){if(L[e])return L[e];var t=F[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,X.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]},J=[A,_,N,"end"],Q=[A,T];function ee(e){return e===N||"end"===e}var et=function(e,t,n){var r=(0,O.Z)(R),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=Y(),s=(0,u.Z)(l,2),c=s[0],f=s[1],d=t?Q:J;return G(function(){if(i!==R&&"end"!==i){var e=d.indexOf(i),t=d[e+1],r=n(i);!1===r?a(t,!0):t&&c(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),g.useEffect(function(){return function(){f()}},[]),[function(){a(A,!0)},i]},en=(a=V,"object"===(0,f.Z)(V)&&(a=V.transitionSupport),(l=g.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,i=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,v=e.leavedClassName,y=e.eventProps,x=g.useContext(b).motion,w=!!(e.motionName&&a&&!1!==x),C=(0,g.useRef)(),E=(0,g.useRef)(),S=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,w=r.onLeaveStart,C=r.onAppearActive,E=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,R=r.onEnterEnd,I=r.onLeaveEnd,M=r.onVisibleChanged,F=(0,O.Z)(),B=(0,u.Z)(F,2),L=B[0],D=B[1],z=(0,O.Z)(k),H=(0,u.Z)(z,2),V=H[0],U=H[1],W=(0,O.Z)(null),K=(0,u.Z)(W,2),X=K[0],Y=K[1],J=(0,g.useRef)(!1),Q=(0,g.useRef)(null),en=(0,g.useRef)(!1);function er(){U(k,!0),Y(null,!0)}function eo(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=en.current;V===Z&&o?t=null==$?void 0:$(r,e):V===P&&o?t=null==R?void 0:R(r,e):V===j&&o&&(t=null==I?void 0:I(r,e)),V!==k&&o&&!1!==t&&er()}}var ei=q(eo),ea=(0,u.Z)(ei,1)[0],el=function(e){var t,n,r;switch(e){case Z:return t={},(0,s.Z)(t,A,m),(0,s.Z)(t,_,b),(0,s.Z)(t,N,C),t;case P:return n={},(0,s.Z)(n,A,v),(0,s.Z)(n,_,x),(0,s.Z)(n,N,E),n;case j:return r={},(0,s.Z)(r,A,y),(0,s.Z)(r,_,w),(0,s.Z)(r,N,S),r;default:return{}}},es=g.useMemo(function(){return el(V)},[V]),ec=et(V,!e,function(e){if(e===A){var t,r=es[A];return!!r&&r(n())}return ed in es&&Y((null===(t=es[ed])||void 0===t?void 0:t.call(es,n(),null))||null),ed===N&&(ea(n()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){eo({deadline:!0})},p))),ed===T&&er(),!0}),eu=(0,u.Z)(ec,2),ef=eu[0],ed=eu[1],ep=ee(ed);en.current=ep,G(function(){D(t);var n,r=J.current;J.current=!0,!r&&t&&l&&(n=Z),r&&t&&i&&(n=P),(r&&!t&&d||!r&&h&&!t&&d)&&(n=j);var o=el(n);n&&(e||o[A])?(U(n),ef()):U(k)},[t]),(0,g.useEffect)(function(){(V!==Z||l)&&(V!==P||i)&&(V!==j||d)||U(k)},[l,i,d]),(0,g.useEffect)(function(){return function(){J.current=!1,clearTimeout(Q.current)}},[]);var eh=g.useRef(!1);(0,g.useEffect)(function(){L&&(eh.current=!0),void 0!==L&&V===k&&((eh.current||L)&&(null==M||M(L)),eh.current=!0)},[L,V]);var em=X;return es[A]&&ed===_&&(em=(0,c.Z)({transition:"none"},em)),[V,ed,em,null!=L?L:t]}(w,r,function(){try{return C.current instanceof HTMLElement?C.current:(0,h.Z)(E.current)}catch(e){return null}},e),R=(0,u.Z)(S,4),I=R[0],M=R[1],F=R[2],B=R[3],L=g.useRef(B);B&&(L.current=!0);var D=g.useCallback(function(e){C.current=e,(0,m.mH)(t,e)},[t]),z=(0,c.Z)((0,c.Z)({},y),{},{visible:r});if(f){if(I===k)H=B?f((0,c.Z)({},z),D):!i&&L.current&&v?f((0,c.Z)((0,c.Z)({},z),{},{className:v}),D):!l&&(i||v)?null:f((0,c.Z)((0,c.Z)({},z),{},{style:{display:"none"}}),D);else{M===A?U="prepare":ee(M)?U="active":M===_&&(U="start");var H,V,U,W=K(d,"".concat(I,"-").concat(U));H=f((0,c.Z)((0,c.Z)({},z),{},{className:p()(K(d,I),(V={},(0,s.Z)(V,W,W&&U),(0,s.Z)(V,d,"string"==typeof d),V)),style:F}),D)}}else H=null;return g.isValidElement(H)&&(0,m.Yr)(H)&&!H.ref&&(H=g.cloneElement(H,{ref:D})),g.createElement($,{ref:E},H)})).displayName="CSSMotion",l),er=n(87462),eo=n(97326),ei="keep",ea="remove",el="removed";function es(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(es)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,n=function(e){(0,E.Z)(r,e);var n=(0,S.Z)(r);function r(){var e;(0,w.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ec(e),a=ec(t);i.forEach(function(e){for(var t=!1,i=r;i1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ea})).forEach(function(t){t.key===e&&(t.status=ei)})}),n})(r,ec(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==el||e.status!==ea})}}}]),r}(g.Component);return(0,s.Z)(n,"defaultProps",{component:"div"}),n}(V),eh=en},86621:function(e,t,n){"use strict";n.d(t,{qX:function(){return m},JB:function(){return v},lm:function(){return E}});var r=n(74902),o=n(97685),i=n(45987),a=n(67294),l=n(1413),s=n(73935),c=n(87462),u=n(94184),f=n.n(u),d=n(82225),p=n(4942),h=n(15105),m=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,l=e.duration,s=void 0===l?4.5:l,u=e.eventKey,d=e.content,m=e.closable,g=e.closeIcon,v=void 0===g?"x":g,y=e.props,b=e.onClick,x=e.onNoticeClose,w=e.times,C=a.useState(!1),E=(0,o.Z)(C,2),S=E[0],$=E[1],O=function(){x(u)};a.useEffect(function(){if(!S&&s>0){var e=setTimeout(function(){O()},1e3*s);return function(){clearTimeout(e)}}},[s,S,w]);var k="".concat(n,"-notice");return a.createElement("div",(0,c.Z)({},y,{ref:t,className:f()(k,i,(0,p.Z)({},"".concat(k,"-closable"),m)),style:r,onMouseEnter:function(){$(!0)},onMouseLeave:function(){$(!1)},onClick:b}),a.createElement("div",{className:"".concat(k,"-content")},d),m&&a.createElement("a",{tabIndex:0,className:"".concat(k,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===h.Z.ENTER)&&O()},onClick:function(e){e.preventDefault(),e.stopPropagation(),O()}},v))}),g=a.createContext({}),v=function(e){var t=e.children,n=e.classNames;return a.createElement(g.Provider,{value:{classNames:n}},t)},y=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,s=e.motion,u=e.onAllNoticeRemoved,p=e.onNoticeClose,h=(0,a.useContext)(g).classNames,v=t.map(function(e){return{config:e,key:e.key}}),y="function"==typeof s?s(n):s;return a.createElement(d.V4,(0,c.Z)({key:n,className:f()(r,"".concat(r,"-").concat(n),null==h?void 0:h.list,o),style:i,keys:v,motionAppear:!0},y,{onAllRemoved:function(){u(n)}}),function(e,t){var n=e.config,o=e.className,i=e.style,s=n.key,u=n.times,d=n.className,g=n.style;return a.createElement(m,(0,c.Z)({},n,{ref:t,prefixCls:r,className:f()(o,d,null==h?void 0:h.notice),style:(0,l.Z)((0,l.Z)({},i),g),times:u,key:s,eventKey:s,onNoticeClose:p}))})},b=a.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,c=e.container,u=e.motion,f=e.maxCount,d=e.className,p=e.style,h=e.onAllRemoved,m=e.renderNotifications,g=a.useState([]),v=(0,o.Z)(g,2),b=v[0],x=v[1],w=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),x(function(t){return t.filter(function(t){return t.key!==e})})};a.useImperativeHandle(t,function(){return{open:function(e){x(function(t){var n,o=(0,r.Z)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,l.Z)({},e);return i>=0?(a.times=((null===(n=t[i])||void 0===n?void 0:n.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),f>0&&o.length>f&&(o=o.slice(-f)),o})},close:function(e){w(e)},destroy:function(){x([])}}});var C=a.useState({}),E=(0,o.Z)(C,2),S=E[0],$=E[1];a.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(S).forEach(function(t){e[t]=e[t]||[]}),$(e)},[b]);var O=function(e){$(function(t){var n=(0,l.Z)({},t);return(n[e]||[]).length||delete n[e],n})},k=a.useRef(!1);if(a.useEffect(function(){Object.keys(S).length>0?k.current=!0:k.current&&(null==h||h(),k.current=!1)},[S]),!c)return null;var Z=Object.keys(S);return(0,s.createPortal)(a.createElement(a.Fragment,null,Z.map(function(e){var t=S[e],n=a.createElement(y,{key:e,configList:t,placement:e,prefixCls:i,className:null==d?void 0:d(e),style:null==p?void 0:p(e),motion:u,onNoticeClose:w,onAllNoticeRemoved:O});return m?m(n,{prefixCls:i,key:e}):n})),c)}),x=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","renderNotifications"],w=function(){return document.body},C=0;function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?w:t,l=e.motion,s=e.prefixCls,c=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,p=e.renderNotifications,h=(0,i.Z)(e,x),m=a.useState(),g=(0,o.Z)(m,2),v=g[0],y=g[1],E=a.useRef(),S=a.createElement(b,{container:v,ref:E,prefixCls:s,motion:l,maxCount:c,className:u,style:f,onAllRemoved:d,renderNotifications:p}),$=a.useState([]),O=(0,o.Z)($,2),k=O[0],Z=O[1],P=a.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r_,ej=(0,l.useMemo)(function(){var e=x;return ek?e=null===W&&z?x:x.slice(0,Math.min(x.length,q/P)):"number"==typeof _&&(e=x.slice(0,_)),e},[x,P,W,_,ek]),eR=(0,l.useMemo)(function(){return ek?x.slice(eb+1):x.slice(ej.length)},[x,ej,ek,eb]),eA=(0,l.useCallback)(function(e,t){var n;return"function"==typeof E?E(e):null!==(n=E&&(null==e?void 0:e[E]))&&void 0!==n?n:t},[E]),e_=(0,l.useCallback)(w||function(e){return e},[w]);function eN(e,t,n){(ev!==e||void 0!==t&&t!==ep)&&(ey(e),n||(eE(eq){eN(r-1,e-o-ec+ei);break}}I&&eI(0)+ec>q&&eh(null)}},[q,Y,ei,ec,eA,ej]);var eM=eC&&!!eR.length,eF={};null!==ep&&ek&&(eF={position:"absolute",left:ep,top:0});var eB={prefixCls:eS,responsive:ek,component:B,invalidate:eZ},eL=C?function(e,t){var n=eA(e,t);return l.createElement(b.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},eB),{},{order:t,item:e,itemKey:n,registerSize:eT,display:t<=eb})},C(e,t))}:function(e,t){var n=eA(e,t);return l.createElement(h,(0,r.Z)({},eB,{order:t,key:n,item:e,renderItem:e_,itemKey:n,registerSize:eT,display:t<=eb}))},eD={order:eM?eb:Number.MAX_SAFE_INTEGER,className:"".concat(eS,"-rest"),registerSize:function(e,t){ea(t),en(ei)},display:eM};if(T)T&&(s=l.createElement(b.Provider,{value:(0,o.Z)((0,o.Z)({},eB),eD)},T(eR)));else{var ez=N||k;s=l.createElement(h,(0,r.Z)({},eB,eD),"function"==typeof ez?ez(eR):ez)}var eH=l.createElement(F,(0,r.Z)({className:c()(!eZ&&p,A),style:R,ref:t},D),ej.map(eL),eP?s:null,I&&l.createElement(h,(0,r.Z)({},eB,{responsive:eO,responsiveDisabled:!ek,order:eb,className:"".concat(eS,"-suffix"),registerSize:function(e,t){eu(t)},display:!0,style:eF}),I));return eO&&(eH=l.createElement(u.Z,{onResize:function(e,t){K(t.clientWidth)},disabled:!ek},eH)),eH});Z.displayName="Overflow",Z.Item=E,Z.RESPONSIVE=$,Z.INVALIDATE=O;var P=Z},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},9220:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(87462),o=n(67294),i=n(50344);n(80334);var a=n(1413),l=n(42550),s=n(34203),c=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){u&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){u&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;p.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),g=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new c,k=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),r=new $(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}});var Z=void 0!==f.ResizeObserver?f.ResizeObserver:k,P=new Map,j=new Z(function(e){e.forEach(function(e){var t,n=e.target;null===(t=P.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),R=n(15671),A=n(43144),_=n(32531),N=n(73568),T=function(e){(0,_.Z)(n,e);var t=(0,N.Z)(n);function n(){return(0,R.Z)(this,n),t.apply(this,arguments)}return(0,A.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),I=o.createContext(null),M=o.forwardRef(function(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),c=o.useRef(null),u=o.useContext(I),f="function"==typeof n,d=f?n(i):n,p=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!f&&o.isValidElement(d)&&(0,l.Yr)(d),m=h?d.ref:null,g=o.useMemo(function(){return(0,l.sQ)(m,i)},[m,i]),v=function(){return(0,s.Z)(i.current)||(0,s.Z)(c.current)};o.useImperativeHandle(t,function(){return v()});var y=o.useRef(e);y.current=e;var b=o.useCallback(function(e){var t=y.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,c=e.offsetHeight,f=Math.floor(i),d=Math.floor(l);if(p.current.width!==f||p.current.height!==d||p.current.offsetWidth!==s||p.current.offsetHeight!==c){var h={width:f,height:d,offsetWidth:s,offsetHeight:c};p.current=h;var m=s===Math.round(i)?i:s,g=c===Math.round(l)?l:c,v=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:m,offsetHeight:g});null==u||u(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return o.useEffect(function(){var e=v();return e&&!r&&(P.has(e)||(P.set(e,new Set),j.observe(e)),P.get(e).add(b)),function(){P.has(e)&&(P.get(e).delete(b),P.get(e).size||(j.unobserve(e),P.delete(e)))}},[i.current,r]),o.createElement(T,{ref:c},h?o.cloneElement(d,{ref:g}):d)}),F=o.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(M,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)})});F.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(I),l=o.useCallback(function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){l===r.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,o)},[n,a]);return o.createElement(I.Provider,{value:l},t)};var B=F},92419:function(e,t,n){"use strict";n.d(t,{G:function(){return h},Z:function(){return g}});var r=n(87462),o=n(1413),i=n(45987),a=n(40228),l=n(67294),s={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],f={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}},d=n(94184),p=n.n(d);function h(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return l.createElement("div",{className:p()("".concat(n,"-content"),i),style:a},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],g=(0,l.forwardRef)(function(e,t){var n=e.overlayClassName,s=e.trigger,c=e.mouseEnterDelay,u=e.mouseLeaveDelay,d=e.overlayStyle,p=e.prefixCls,g=void 0===p?"rc-tooltip":p,v=e.children,y=e.onVisibleChange,b=e.afterVisibleChange,x=e.transitionName,w=e.animation,C=e.motion,E=e.placement,S=e.align,$=e.destroyTooltipOnHide,O=e.defaultVisible,k=e.getTooltipContainer,Z=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),j=e.id,R=e.showArrow,A=(0,i.Z)(e,m),_=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return _.current});var N=(0,o.Z)({},A);return"visible"in e&&(N.popupVisible=e.visible),l.createElement(a.Z,(0,r.Z)({popupClassName:n,prefixCls:g,popup:function(){return l.createElement(h,{key:"content",prefixCls:g,id:j,overlayInnerStyle:Z},P)},action:void 0===s?["hover"]:s,builtinPlacements:f,popupPlacement:void 0===E?"right":E,ref:_,popupAlign:void 0===S?{}:S,getPopupContainer:k,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:x,popupAnimation:w,popupMotion:C,defaultPopupVisible:O,autoDestroy:void 0!==$&&$,mouseLeaveDelay:void 0===u?.1:u,popupStyle:d,mouseEnterDelay:void 0===c?0:c,arrow:void 0===R||R},N),v)})},50344:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return r.Children.forEach(t,function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,o.isFragment)(t)&&t.props?i=i.concat(e(t.props.children,n)):i.push(t))}),i}}});var r=n(67294),o=n(11805)},98924:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{hq:function(){return h},jL:function(){return p}});var r=n(98924),o=n(94999),i="data-rc-order",a="data-rc-priority",l=new Map;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,l=t.priority,s=void 0===l?0:l,f="queue"===o?"prependQueue":o?"prepend":"append",d="prependQueue"===f,p=document.createElement("style");p.setAttribute(i,f),d&&s&&p.setAttribute(a,"".concat(s)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var h=c(t),m=h.firstChild;if(o){if(d){var g=u(h).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(i))&&s>=Number(e.getAttribute(a)||0)});if(g.length)return h.insertBefore(p,g[g.length-1].nextSibling),p}h.insertBefore(p,m)}else h.appendChild(p);return p}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(c(t)).find(function(n){return n.getAttribute(s(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(e,t);n&&c(t).removeChild(n)}function h(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=l.get(e);if(!n||!(0,o.Z)(document,n)){var r=f("",t),i=r.parentNode;l.set(e,i),e.removeChild(r)}}(c(a),a);var u=d(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(i=a.csp)||void 0===i?void 0:i.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var p=f(e,a);return p.setAttribute(s(a),t),p}},34203:function(e,t,n){"use strict";n.d(t,{S:function(){return i},Z:function(){return a}});var r=n(67294),o=n(73935);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},27571:function(e,t,n){"use strict";function r(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return r(e) instanceof ShadowRoot?r(e):null}n.d(t,{A:function(){return o}})},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},38135:function(e,t,n){"use strict";n.d(t,{s:function(){return g},v:function(){return y}});var r,o,i=n(74165),a=n(15861),l=n(71002),s=n(1413),c=n(73935),u=(0,s.Z)({},r||(r=n.t(c,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var m="__rc_react_root__";function g(e,t){if(o){var n;h(!0),n=t[m]||o(t),h(!1),n.render(e),t[m]=n;return}d(e,t)}function v(){return(v=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[m])||void 0===e||e.unmount(),delete t[m]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return v.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},74204:function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,{Z:function(){return o},o:function(){return a}})},66680:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u
NameSceneSub SceneContentOperation
No data
\ No newline at end of file +
NameSceneSub SceneContentOperation
No data
\ No newline at end of file