From 00bfa32e17a528140873a9e1cf054198a3f1c93f Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Sun, 19 Nov 2023 14:51:47 +0800 Subject: [PATCH] feat:0.4.2 web module --- docs/conf.py | 2 +- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../static/8m2xrHJY6k3-HPFFPXJRM/_buildManifest.js | 1 - .../_next/static/chunks/0.a72ce5fc922b73c0.js | 1 - .../_next/static/chunks/0.d9d1fd4e6173f2c3.js | 1 + ...2ddf33727c08464e.js => 396.2cca7f693431f729.js} | 2 +- .../_next/static/chunks/553-df5701294eedae07.js | 14 ++++++++++++++ .../_next/static/chunks/607-1314698cecb41dbb.js | 14 -------------- ...c4c42ddf11c8d458.js => 607-b224c640f6907e4b.js} | 2 +- ...985aeeb0618c336c.js => 739.82283c4d1eea95ee.js} | 2 +- ...180fc5bccf5f11d7.js => 955.7d98b7257d696836.js} | 2 +- ...1edace54fc9f831.js => _app-ac89701b207da8ea.js} | 2 +- ...1bcee3bfe2924e.js => agent-92e9dce47267e88d.js} | 2 +- ...07dd353134ffec4.js => chat-84fbba4764166684.js} | 2 +- ...1aa6c232164b3db.js => [id]-f665336966e79cc9.js} | 2 +- .../static/chunks/pages/index-522941d66d7d7ee2.js | 1 + .../static/chunks/pages/index-b3e99cf782a4a38e.js | 1 - .../chunks/pages/knowledge-393c91ce6395cc3f.js | 1 - .../chunks/pages/knowledge-3ab0601175ce9584.js | 1 + .../pages/knowledge/chunk-765a4b202d79ac28.js | 4 ---- .../pages/knowledge/chunk-9f117a5ed799edd3.js | 4 ++++ ...88261d5b9e550.js => prompt-7f839dfd56bc4c20.js} | 2 +- ...437737e1d113.js => webpack-349594ef1e91f841.js} | 2 +- .../static/qQFGcnJFkii2r3wglNxHi/_buildManifest.js | 1 + .../_ssgManifest.js | 0 pilot/server/static/agent/index.html | 2 +- pilot/server/static/chat/[scene]/[id]/index.html | 2 +- pilot/server/static/chat/index.html | 2 +- pilot/server/static/database/index.html | 2 +- pilot/server/static/index.html | 2 +- pilot/server/static/knowledge/chunk/index.html | 2 +- pilot/server/static/knowledge/index.html | 2 +- pilot/server/static/models/index.html | 2 +- pilot/server/static/prompt/index.html | 2 +- setup.py | 2 +- 36 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 pilot/server/static/_next/static/8m2xrHJY6k3-HPFFPXJRM/_buildManifest.js delete mode 100644 pilot/server/static/_next/static/chunks/0.a72ce5fc922b73c0.js create mode 100644 pilot/server/static/_next/static/chunks/0.d9d1fd4e6173f2c3.js rename pilot/server/static/_next/static/chunks/{214.2ddf33727c08464e.js => 396.2cca7f693431f729.js} (98%) create mode 100644 pilot/server/static/_next/static/chunks/553-df5701294eedae07.js delete mode 100644 pilot/server/static/_next/static/chunks/607-1314698cecb41dbb.js rename pilot/server/static/_next/static/chunks/{396-c4c42ddf11c8d458.js => 607-b224c640f6907e4b.js} (99%) rename pilot/server/static/_next/static/chunks/{739.985aeeb0618c336c.js => 739.82283c4d1eea95ee.js} (88%) rename pilot/server/static/_next/static/chunks/{955.180fc5bccf5f11d7.js => 955.7d98b7257d696836.js} (60%) rename pilot/server/static/_next/static/chunks/pages/{_app-b1edace54fc9f831.js => _app-ac89701b207da8ea.js} (88%) rename pilot/server/static/_next/static/chunks/pages/{agent-9f1bcee3bfe2924e.js => agent-92e9dce47267e88d.js} (98%) rename pilot/server/static/_next/static/chunks/pages/{chat-507dd353134ffec4.js => chat-84fbba4764166684.js} (95%) rename pilot/server/static/_next/static/chunks/pages/chat/[scene]/{[id]-e1aa6c232164b3db.js => [id]-f665336966e79cc9.js} (96%) create mode 100644 pilot/server/static/_next/static/chunks/pages/index-522941d66d7d7ee2.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/index-b3e99cf782a4a38e.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge-393c91ce6395cc3f.js create mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge-3ab0601175ce9584.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge/chunk-765a4b202d79ac28.js create mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge/chunk-9f117a5ed799edd3.js rename pilot/server/static/_next/static/chunks/pages/{prompt-c4588261d5b9e550.js => prompt-7f839dfd56bc4c20.js} (99%) rename pilot/server/static/_next/static/chunks/{webpack-1949437737e1d113.js => webpack-349594ef1e91f841.js} (54%) create mode 100644 pilot/server/static/_next/static/qQFGcnJFkii2r3wglNxHi/_buildManifest.js rename pilot/server/static/_next/static/{8m2xrHJY6k3-HPFFPXJRM => qQFGcnJFkii2r3wglNxHi}/_ssgManifest.js (100%) diff --git a/docs/conf.py b/docs/conf.py index f29e9f73e..1fe4747f5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ copyright = "2023, csunny" author = "csunny" -version = "👏👏 0.4.1" +version = "👏👏 0.4.2" html_title = project + " " + version # -- General configuration --------------------------------------------------- diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index bdbd3d11e..594cc36d6 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 bdbd3d11e..594cc36d6 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/8m2xrHJY6k3-HPFFPXJRM/_buildManifest.js b/pilot/server/static/_next/static/8m2xrHJY6k3-HPFFPXJRM/_buildManifest.js deleted file mode 100644 index 69a3ea83f..000000000 --- a/pilot/server/static/_next/static/8m2xrHJY6k3-HPFFPXJRM/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,n,d,f,k,b,h,i){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/29107295-90b90cb30c825230.js",s,c,a,n,d,f,k,"static/chunks/412-b911d4a677c64b70.js","static/chunks/981-ff77d5cc3ab95298.js","static/chunks/pages/index-b3e99cf782a4a38e.js"],"/_error":["static/chunks/pages/_error-dee72aff9b2e2c12.js"],"/agent":[s,c,e,n,t,d,"static/chunks/pages/agent-9f1bcee3bfe2924e.js"],"/chat":["static/chunks/pages/chat-507dd353134ffec4.js"],"/chat/[scene]/[id]":["static/chunks/pages/chat/[scene]/[id]-e1aa6c232164b3db.js"],"/database":[s,c,a,e,t,f,b,"static/chunks/643-d8f53f40dd3c5b40.js","static/chunks/pages/database-b4f32916b9d484a7.js"],"/knowledge":[h,s,c,e,n,t,d,f,"static/chunks/551-266086fbfa0925ec.js","static/chunks/pages/knowledge-393c91ce6395cc3f.js"],"/knowledge/chunk":[e,t,"static/chunks/pages/knowledge/chunk-765a4b202d79ac28.js"],"/models":[h,s,c,a,i,b,"static/chunks/pages/models-fa9ad76f43cc7a5f.js"],"/prompt":[s,c,a,i,"static/chunks/837-e6d4d1eb9e057050.js",k,"static/chunks/396-c4c42ddf11c8d458.js","static/chunks/pages/prompt-c4588261d5b9e550.js"],sortedPages:["/","/_app","/_error","/agent","/chat","/chat/[scene]/[id]","/database","/knowledge","/knowledge/chunk","/models","/prompt"]}}("static/chunks/64-91b49d45b9846775.js","static/chunks/479-b20198841f9a6a1e.js","static/chunks/9-bb2c54d5c06ba4bf.js","static/chunks/442-197e6cbc1e54109a.js","static/chunks/813-cce9482e33f2430c.js","static/chunks/607-1314698cecb41dbb.js","static/chunks/924-ba8e16df4d61ff5c.js","static/chunks/411-d9eba2657c72f766.js","static/chunks/270-2f094a936d056513.js","static/chunks/928-74244889bd7f2699.js","static/chunks/75fc9c18-a784766a129ec5fb.js","static/chunks/947-5980a3ff49069ddd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/0.a72ce5fc922b73c0.js b/pilot/server/static/_next/static/chunks/0.a72ce5fc922b73c0.js deleted file mode 100644 index b6ef83afb..000000000 --- a/pilot/server/static/_next/static/chunks/0.a72ce5fc922b73c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return eb}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),x=t(63606),m=t(50228),h=t(87547),p=t(89035),g=t(33035),v=t(12767),f=t(94184),j=t.n(f),b=t(66309),y=t(81799),w=t(41468),_=t(44442),Z=t(29158),N=t(98165),k=t(38426),C=t(61607),S=t(36782),P=t(13135),R=t(71577),E=t(2453),L=t(57132),O=t(79166),D=t(93179),M=t(20640),q=t.n(M);function z(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(R.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(L.Z,{}),onClick:()=>{let e=q()(l);E.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(D.Z,{language:t,style:O.Z,children:l})]})}let I={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,c=/language-(\w+)/.exec(n||"");return!t&&c?(0,a.jsx)(z,{code:r,language:null!==(l=null==c?void 0:c[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.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:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(Z.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(N.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.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:l})},references(e){let l,{children:t}=e;try{l=JSON.parse(t)}catch(e){return console.log(e),(0,a.jsx)("p",{className:"text-sm",children:"Render Reference Error!"})}let s=null==l?void 0:l.references;return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(Z.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:l.title})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("p",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.pages)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:l},"file_page_".concat(t)),t<(null==e?void 0:e.pages.length)-1&&(0,a.jsx)("span",{children:","},"file_page__".concat(t))]}))]},"file_".concat(l))})]})},"chart-view":function(e){var l,t,s;let n,{content:r}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let o=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],i={key:"chart",label:"Chart",children:(0,a.jsx)(P._z,{data:null==n?void 0:n.data,chartType:(0,P.aG)(null==n?void 0:n.type)})},c={key:"sql",label:"SQL",children:(0,a.jsx)(z,{code:(0,S.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},d={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:o})},u=(null==n?void 0:n.type)==="response_table"?[d,c]:[i,c,d];return(0,a.jsx)("div",{children:(0,a.jsx)(_.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:u,size:"small"})})}},A={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(x.Z,{className:"ml-2"})}};function V(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"").replace(/]+)>/gi,"")}var T=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:x,value:f,cachePlguinContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePlguinContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:V(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePlguinContext:a,value:n}},[i]),Z=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=A[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(g.D,{components:I,rehypePlugins:[v.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 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,a.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,y.A)(c)||(0,a.jsx)(m.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(g.D,{components:{...I,...Z},rehypePlugins:[v.Z],children:V(f)}),!!(null==x?void 0:x.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==x?void 0:x.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),F=t(59301),H=t(41132),J=t(74312),W=t(3414),$=t(72868),G=t(59562),U=t(14553),Q=t(25359),B=t(7203),K=t(48665),X=t(26047),Y=t(99056),ee=t(57814),el=t(63955),et=t(33028),ea=t(40911),es=t(66478),en=t(83062),er=t(50489),eo=t(67421),ei=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,eo.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[x,m]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),g=(0,s.useRef)(null),[v,f]=E.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,er.Vx)((0,er.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),m(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),m(4),p(""))},[c,t]),b=(0,J.Z)(W.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)($.L,{onOpenChange:j,children:[f,(0,a.jsx)(en.Z,{title:i("Rating"),children:(0,a.jsx)(G.Z,{slots:{root:U.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(F.Z,{})})}),(0,a.jsxs)(Q.Z,{children:[(0,a.jsx)(B.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(K.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:x,ques_type:d,messages:h};console.log(l),(0,er.Vx)((0,er.VC)({data:l})).then(e=>{v.open({type:"success",content:"save success"})}).catch(e=>{v.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(X.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(X.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(X.Z,{xs:10,children:(0,a.jsx)(Y.Z,{action:g,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(U.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,a.jsx)(H.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(ee.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(X.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(en.Z,{title:(0,a.jsx)(K.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(X.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(el.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 l;return m(null===(l=e.target)||void 0===l?void 0:l.value)},value:x})}),(0,a.jsx)(X.Z,{xs:13,children:(0,a.jsx)(et.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(ea.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(X.Z,{xs:13,children:(0,a.jsx)(es.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},ec=t(32983),ed=t(12069),eu=t(96486),ex=t.n(eu),em=t(92519),eh=t(98399),ep=t(87740),eg=t(80573),ev=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:x,refreshDialogList:m,chatId:h,agentList:p,docId:g}=(0,s.useContext)(w.p),{t:v}=(0,eo.$G)(),f=(0,o.useSearchParams)(),b=null!==(l=f&&f.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,Z]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[O,D]=(0,s.useState)(),M=(0,s.useRef)(null),z=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),I=(0,eg.Z)(),A=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),V=async e=>{if(!_&&e.trim())try{Z(!0),await r(e,{select_param:null!=A?A:""})}finally{Z(!1)}},F=e=>{try{return JSON.parse(e)}catch(l){return e}},[H,J]=E.ZP.useMessage(),W=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=q()(l);t?l?H.open({type:"success",content:v("Copy_success")}):H.open({type:"warning",content:v("Copy_nothing")}):H.open({type:"error",content:v("Copry_error")})},$=async()=>{!_&&g&&(Z(!0),await I(g),Z(!1))};return(0,n.Z)(async()=>{let e=(0,eh.a_)();e&&e.id===h&&(await V(e.message),m(),localStorage.removeItem(eh.rU))},[h]),(0,s.useEffect)(()=>{let e=t;z&&(e=ex().cloneDeep(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=F(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[z,t]),(0,s.useEffect)(()=>{(0,er.Vx)((0,er.Lu)()).then(e=>{D(e[1])}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=M.current)||void 0===e||e.scrollTo(0,M.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[J,(0,a.jsx)("div",{ref:M,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.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:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(T,{content:e,isChartChat:z,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(es.Z,{onClick:$,slots:{root:U.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ep.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:"Retry"})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(ei,{select_param:O,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(en.Z,{title:v("Copy"),children:(0,a.jsx)(es.Z,{onClick:()=>W(null==e?void 0:e.context),slots:{root:U.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(L.Z,{})})})]})]})},l)}):(0,a.jsx)(ec.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,a.jsx)("div",{className:j()("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"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[x&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(x)}),(0,a.jsx)(em.Z,{scene:u,loading:_,onSubmit:V,setLoading:Z})]})}),(0,a.jsx)(ed.default,{title:"JSON Editor",open:N,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},ef=t(34625),ej=t(45247),eb=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:x}=(0,s.useContext)(w.p),m=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,g]=(0,s.useState)(!1),[v,f]=(0,s.useState)(),b=async()=>{g(!0);let[,e]=await (0,er.Vx)((0,er.$i)(i));x(null!=e?e:[]),g(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);f((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){f(void 0)}};(0,n.Z)(async()=>{let e=(0,eh.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;x([...s]),m({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,x([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,x([...s]),a()}})}),[u,m,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ej.Z,{visible:p}),(0,a.jsx)(ef.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==v?void 0:v.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(P.ZP,{chartsData:v})}),!(null==v?void 0:v.length)&&"chat_dashboard"===t&&(0,a.jsx)(ec.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,a.jsx)("div",{className:j()("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"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ev,{messages:u,onSubmit:_})})]})]})}},92519:function(e,l,t){t.d(l,{Z:function(){return R}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),x=t(74627),m=t(39479),h=t(51009),p=t(58299),g=t(577),v=t(30119),f=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,f.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,f.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,g.Z)(()=>(0,v.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(x.Z,{title:(0,a.jsx)(m.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),Z=t(5392),N=t(66607);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{fetchDocuments:s}=e,n=(0,_.Z)(),[i,c]=(0,o.useState)(!1),d=async(e,l)=>{await (0,w.Vx)((0,w.Hx)(e,{doc_ids:[l]}))},u=async a=>{var r,o;c(!0);let i=new FormData;i.append("doc_name",a.file.name),i.append("doc_file",a.file),i.append("doc_type","DOCUMENT");let u=await (0,w.Vx)((0,w.iG)(l||"default",i));if(!u[1]){c(!1);return}t(u[1]),s(),await d(l||"default",null==u?void 0:u[1]),c(!1),null===(r=e.setLoading)||void 0===r||r.call(e,!0),await n(u[1]),null===(o=e.setLoading)||void 0===o||o.call(e,!1)};return(0,a.jsx)(N.default,{customRequest:u,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:i,size:"small",shape:"circle",icon:(0,a.jsx)(Z.Z,{})})})}var C=t(58895),S=t(11163);function P(e){let{documents:l,dbParam:t}=e,s=(0,S.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>(0,a.jsxs)(r.ZP,{onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(C.Z,{className:"mr-2"}),e.doc_name]},e.id))}):null}var R=function(e){let{children:l,loading:t,onSubmit:i,scene:c,...d}=e,{dbParam:u}=(0,o.useContext)(y.p),[x,m]=(0,o.useState)(""),h=(0,o.useMemo)(()=>"chat_knowledge"===c,[c]),[p,g]=(0,o.useState)([]);async function v(){if(!u)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(u,{page:1,page_size:20}));g(null==l?void 0:l.data)}return(0,o.useEffect)(()=>{h&&v()},[u]),(0,a.jsxs)("div",{className:"flex-1 relative",children:[h&&(0,a.jsx)(P,{documents:p,dbParam:u}),h&&(0,a.jsx)(k,{fetchDocuments:v,setLoading:d.setLoading,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(h?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...d,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){m(e=>e+"\n");return}i(x),setTimeout(()=>{m("")},0)}},onChange:e=>{if("number"==typeof d.maxLength){m(e.target.value.substring(0,d.maxLength));return}m(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{m(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.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,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),o=(0,n.useCallback)(async e=>{let{data:n,chatId:o,onMessage:i,onClose:c,onDone:d,onError:u}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let x={...n,conv_uid:o};if(!x.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var m;await (0,a.L)("".concat((m="http://127.0.0.1:5000",void 0!==m)?m:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==c||c()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==d||d():(null==t?void 0:t.startsWith("[ERROR]"))?null==u||u(null==t?void 0:t.replace("[ERROR]","")):null==i||i(t)}})}catch(e){t.abort(),null==u||u("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),o}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/0.d9d1fd4e6173f2c3.js b/pilot/server/static/_next/static/chunks/0.d9d1fd4e6173f2c3.js new file mode 100644 index 000000000..d83510010 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/0.d9d1fd4e6173f2c3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return ey}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(50228),h=t(87547),p=t(89035),v=t(33035),g=t(12767),f=t(94184),j=t.n(f),b=t(66309),y=t(81799),w=t(41468),_=t(29158),Z=t(98165),N=t(14079),k=t(38426),C=t(61607),S=t(44442),P=t(36782),R=t(13135),E=t(71577),D=t(2453),I=t(57132),z=t(79166),L=t(93179),M=t(20640),O=t.n(M);function A(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(E.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(I.Z,{}),onClick:()=>{let e=O()(l);D.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(L.Z,{language:t,style:z.Z,children:l})]})}let F={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,c=/language-(\w+)/.exec(n||"");return!t&&c?(0,a.jsx)(A,{code:r,language:null!==(l=null==c?void 0:c[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.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:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(_.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(Z.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.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:l})},references(e){let l,{children:t}=e;try{l=JSON.parse(t)}catch(e){return console.log(e),(0,a.jsx)("p",{className:"text-sm",children:"Render Reference Error!"})}let s=null==l?void 0:l.references;return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(_.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:l.title})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("p",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.pages)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:l},"file_page_".concat(t)),t<(null==e?void 0:e.pages.length)-1&&(0,a.jsx)("span",{children:","},"file_page__".concat(t))]}))]},"file_".concat(l))})]})},summary(e){let{children:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-2",children:[(0,a.jsx)(N.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:"doc Summary"})]}),(0,a.jsx)("div",{children:l})]})},"chart-view":function(e){var l,t,s;let n,{content:r}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let o=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],i={key:"chart",label:"Chart",children:(0,a.jsx)(R._z,{data:null==n?void 0:n.data,chartType:(0,R.aG)(null==n?void 0:n.type)})},c={key:"sql",label:"SQL",children:(0,a.jsx)(A,{code:(0,P.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},d={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:o})},u=(null==n?void 0:n.type)==="response_table"?[d,c]:[i,c,d];return(0,a.jsx)("div",{children:(0,a.jsx)(S.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:u,size:"small"})})}},H={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(m.Z,{className:"ml-2"})}};function q(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"
").replace(/]+)>/gi,"")}var V=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:m,value:f,cachePlguinContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePlguinContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:q(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePlguinContext:a,value:n}},[i]),Z=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=H[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(v.D,{components:F,rehypePlugins:[g.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 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,a.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,y.A)(c)||(0,a.jsx)(x.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(v.D,{components:{...F,...Z},rehypePlugins:[g.Z],children:q(f)}),!!(null==m?void 0:m.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==m?void 0:m.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),T=t(59301),G=t(41132),J=t(74312),U=t(3414),W=t(72868),$=t(59562),B=t(14553),Q=t(25359),K=t(7203),X=t(48665),Y=t(26047),ee=t(99056),el=t(57814),et=t(63955),ea=t(33028),es=t(40911),en=t(66478),er=t(83062),eo=t(50489),ei=t(67421),ec=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,ei.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),v=(0,s.useRef)(null),[g,f]=D.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,eo.Vx)((0,eo.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),x(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),x(4),p(""))},[c,t]),b=(0,J.Z)(U.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)(W.L,{onOpenChange:j,children:[f,(0,a.jsx)(er.Z,{title:i("Rating"),children:(0,a.jsx)($.Z,{slots:{root:B.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(T.Z,{})})}),(0,a.jsxs)(Q.Z,{children:[(0,a.jsx)(K.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(X.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:m,ques_type:d,messages:h};console.log(l),(0,eo.Vx)((0,eo.VC)({data:l})).then(e=>{g.open({type:"success",content:"save success"})}).catch(e=>{g.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(Y.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(Y.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(Y.Z,{xs:10,children:(0,a.jsx)(ee.Z,{action:v,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(B.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=v.current)||void 0===e||e.focusVisible()},children:(0,a.jsx)(G.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(el.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(Y.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(er.Z,{title:(0,a.jsx)(X.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(Y.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(et.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 l;return x(null===(l=e.target)||void 0===l?void 0:l.value)},value:m})}),(0,a.jsx)(Y.Z,{xs:13,children:(0,a.jsx)(ea.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(es.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(Y.Z,{xs:13,children:(0,a.jsx)(en.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},ed=t(32983),eu=t(12069),em=t(96486),ex=t.n(em),eh=t(20766),ep=t(98399),ev=t(87740),eg=t(80573),ef=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:m,refreshDialogList:x,chatId:h,agentList:p,docId:v}=(0,s.useContext)(w.p),{t:g}=(0,ei.$G)(),f=(0,o.useSearchParams)(),b=null!==(l=f&&f.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,Z]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[E,z]=(0,s.useState)(),L=(0,s.useRef)(null),M=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),A=(0,eg.Z)(),F=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),H=async e=>{if(!_&&e.trim())try{Z(!0),await r(e,{select_param:null!=F?F:""})}finally{Z(!1)}},q=e=>{try{return JSON.parse(e)}catch(l){return e}},[T,G]=D.ZP.useMessage(),J=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=O()(l);t?l?T.open({type:"success",content:g("Copy_success")}):T.open({type:"warning",content:g("Copy_nothing")}):T.open({type:"error",content:g("Copry_error")})},U=async()=>{!_&&v&&(Z(!0),await A(v),Z(!1))};return(0,n.Z)(async()=>{let e=(0,ep.a_)();e&&e.id===h&&(await H(e.message),x(),localStorage.removeItem(ep.rU))},[h]),(0,s.useEffect)(()=>{let e=t;M&&(e=ex().cloneDeep(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=q(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[M,t]),(0,s.useEffect)(()=>{(0,eo.Vx)((0,eo.Lu)()).then(e=>{z(e[1])}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=L.current)||void 0===e||e.scrollTo(0,L.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[G,(0,a.jsx)("div",{ref:L,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.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:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(V,{content:e,isChartChat:M,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(en.Z,{onClick:U,slots:{root:B.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ev.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:"Retry"})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(ec,{select_param:E,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(er.Z,{title:g("Copy"),children:(0,a.jsx)(en.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:B.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(I.Z,{})})})]})]})},l)}):(0,a.jsx)(ed.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,a.jsx)("div",{className:j()("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"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[m&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(m)}),(0,a.jsx)(eh.Z,{scene:u,loading:_,onSubmit:H,handleFinish:Z})]})}),(0,a.jsx)(eu.default,{title:"JSON Editor",open:N,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},ej=t(34625),eb=t(45247),ey=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:m}=(0,s.useContext)(w.p),x=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,v]=(0,s.useState)(!1),[g,f]=(0,s.useState)(),b=async()=>{v(!0);let[,e]=await (0,eo.Vx)((0,eo.$i)(i));m(null!=e?e:[]),v(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);f((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){f(void 0)}};(0,n.Z)(async()=>{let e=(0,ep.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;m([...s]),x({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,m([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,m([...s]),a()}})}),[u,x,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eb.Z,{visible:p}),(0,a.jsx)(ej.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==g?void 0:g.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(R.ZP,{chartsData:g})}),!(null==g?void 0:g.length)&&"chat_dashboard"===t&&(0,a.jsx)(ed.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,a.jsx)("div",{className:j()("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"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ef,{messages:u,onSubmit:_})})]})]})}},20766:function(e,l,t){t.d(l,{Z:function(){return D}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),m=t(74627),x=t(39479),h=t(51009),p=t(58299),v=t(577),g=t(30119),f=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,f.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,f.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,v.Z)(()=>(0,g.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(x.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),Z=t(5392),N=t(84553);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{fetchDocuments:s,handleFinish:n}=e,i=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=async(e,l)=>{await (0,w.Vx)((0,w.Hx)(e,{doc_ids:[l]}))},m=async e=>{d(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,w.Vx)((0,w.iG)(l||"default",a));if(!r[1]){d(!1);return}t(r[1]),s(),await u(l||"default",null==r?void 0:r[1]),d(!1),null==n||n(!0),await i(r[1]),null==n||n(!1)};return(0,a.jsx)(N.default,{customRequest:m,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:c,size:"small",shape:"circle",icon:(0,a.jsx)(Z.Z,{})})})}var C=t(11163),S=t(82579);function P(){return(0,a.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,a.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}function R(e){let{document:l}=e;switch(l.status){case"RUNNING":return(0,a.jsx)(S.Rp,{});case"FINISHED":default:return(0,a.jsx)(S.s2,{});case"FAILED":return(0,a.jsx)(P,{})}}function E(e){let{documents:l,dbParam:t}=e,s=(0,C.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>{let l;switch(e.status){case"RUNNING":l="#2db7f5";break;case"FINISHED":default:l="#87d068";break;case"FAILED":l="#f50"}return(0,a.jsx)(c.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:l},onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var D=function(e){let{children:l,loading:t,onSubmit:i,handleFinish:c,scene:d,...u}=e,{dbParam:m}=(0,o.useContext)(y.p),[x,h]=(0,o.useState)(""),p=(0,o.useMemo)(()=>"chat_knowledge"===d,[d]),[v,g]=(0,o.useState)([]);async function f(){if(!m)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(m,{page:1,page_size:20}));g(null==l?void 0:l.data)}return(0,o.useEffect)(()=>{p&&f()},[m]),(0,a.jsxs)("div",{className:"flex-1 relative",children:[p&&(0,a.jsx)(E,{documents:v,dbParam:m}),p&&(0,a.jsx)(k,{handleFinish:c,fetchDocuments:f,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(p?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...u,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){h(e=>e+"\n");return}i(x),setTimeout(()=>{h("")},0)}},onChange:e=>{if("number"==typeof u.maxLength){h(e.target.value.substring(0,u.maxLength));return}h(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{h(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.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,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989),o=t(83454);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),i=(0,n.useCallback)(async e=>{let{data:n,chatId:i,onMessage:c,onClose:d,onDone:u,onError:m}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let x={...n,conv_uid:i};if(!x.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var h;await (0,a.L)("".concat(null!==(h=o.env.API_BASE_URL)&&void 0!==h?h:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==d||d()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==u||u():(null==t?void 0:t.startsWith("[ERROR]"))?null==m||m(null==t?void 0:t.replace("[ERROR]","")):null==c||c(t)}})}catch(e){t.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),i}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/214.2ddf33727c08464e.js b/pilot/server/static/_next/static/chunks/396.2cca7f693431f729.js similarity index 98% rename from pilot/server/static/_next/static/chunks/214.2ddf33727c08464e.js rename to pilot/server/static/_next/static/chunks/396.2cca7f693431f729.js index 8f6d5e5c9..eadb3cc49 100644 --- a/pilot/server/static/_next/static/chunks/214.2ddf33727c08464e.js +++ b/pilot/server/static/_next/static/chunks/396.2cca7f693431f729.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{24019: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:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},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}))})},57132: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:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},87740: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:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",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}))})},72868:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(67294),a=n(85241),i=n(78031),o=n(51633);function s(e,t){switch(t.type){case o.Q.blur:case o.Q.escapeKeyDown:return{open:!1};case o.Q.toggle:return{open:!e.open};case o.Q.open:return{open:!0};case o.Q.close:return{open:!1};default:throw Error("Unhandled action")}}var l=n(85893);function c(e){let{children:t,open:n,defaultOpen:c,onOpenChange:u}=e,{contextValue:d}=function(e={}){let{defaultOpen:t,onOpenChange:n,open:a}=e,[l,c]=r.useState(""),[u,d]=r.useState(null),p=r.useRef(null),m=r.useCallback((e,t,r,a)=>{"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")},66478:function(e,t,n){"use strict";n.d(t,{Z:function(){return R},f:function(){return v}});var r=n(63366),a=n(87462),i=n(67294),o=n(70758),s=n(94780),l=n(14142),c=n(33703),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(48699),f=n(26821);function h(e){return(0,f.d6)("MuiButton",e)}let b=(0,f.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var E=n(89996),T=n(85893);let S=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],y=e=>{let{color:t,disabled:n,focusVisible:r,focusVisibleClassName:a,fullWidth:i,size:o,variant:c,loading:u}=e,d={root:["root",n&&"disabled",r&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,t&&`color${(0,l.Z)(t)}`,o&&`size${(0,l.Z)(o)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},p=(0,s.Z)(d,h,{});return r&&a&&(p.root+=` ${a}`),p},A=(0,u.Z)("span",{name:"JoyButton",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)"}),_=(0,u.Z)("span",{name:"JoyButton",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)"}),k=(0,u.Z)("span",{name:"JoyButton",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})}),v=({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},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"24px","--CircularProgress-thickness":"3px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),(0,a.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':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]},"center"===t.loadingPosition&&{[`&.${b.loading}`]:{color:"transparent"}})]},N=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(v),C=i.forwardRef(function(e,t){var n;let s=(0,d.Z)({props:e,name:"JoyButton"}),{children:l,action:u,color:f="primary",variant:h="solid",size:b="md",fullWidth:v=!1,startDecorator:C,endDecorator:R,loading:I=!1,loadingPosition:O="center",loadingIndicator:w,disabled:x,component:L,slots:D={},slotProps:P={}}=s,M=(0,r.Z)(s,S),F=i.useContext(E.Z),U=e.variant||F.variant||h,B=e.size||F.size||b,{getColor:H}=(0,p.VT)(U),G=H(e.color,F.color||f),z=null!=(n=e.disabled||e.loading)?n:F.disabled||x||I,$=i.useRef(null),j=(0,c.Z)($,t),{focusVisible:V,setFocusVisible:W,getRootProps:K}=(0,o.U)((0,a.Z)({},s,{disabled:z,rootRef:j})),Z=null!=w?w:(0,T.jsx)(g.Z,(0,a.Z)({},"context"!==G&&{color:G},{thickness:{sm:2,md:3,lg:4}[B]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;W(!0),null==(e=$.current)||e.focus()}}),[W]);let Y=(0,a.Z)({},s,{color:G,fullWidth:v,variant:U,size:B,focusVisible:V,loading:I,loadingPosition:O,disabled:z}),q=y(Y),X=(0,a.Z)({},M,{component:L,slots:D,slotProps:P}),[Q,J]=(0,m.Z)("root",{ref:t,className:q.root,elementType:N,externalForwardedProps:X,getSlotProps:K,ownerState:Y}),[ee,et]=(0,m.Z)("startDecorator",{className:q.startDecorator,elementType:A,externalForwardedProps:X,ownerState:Y}),[en,er]=(0,m.Z)("endDecorator",{className:q.endDecorator,elementType:_,externalForwardedProps:X,ownerState:Y}),[ea,ei]=(0,m.Z)("loadingIndicatorCenter",{className:q.loadingIndicatorCenter,elementType:k,externalForwardedProps:X,ownerState:Y});return(0,T.jsxs)(Q,(0,a.Z)({},J,{children:[(C||I&&"start"===O)&&(0,T.jsx)(ee,(0,a.Z)({},et,{children:I&&"start"===O?Z:C})),l,I&&"center"===O&&(0,T.jsx)(ea,(0,a.Z)({},ei,{children:Z})),(R||I&&"end"===O)&&(0,T.jsx)(en,(0,a.Z)({},er,{children:I&&"end"===O?Z:R}))]}))});C.muiName="Button";var R=C},89996:function(e,t,n){"use strict";var r=n(67294);let a=r.createContext({});t.Z=a},48699:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(87462),a=n(63366),i=n(67294),o=n(90512),s=n(14142),l=n(94780),c=n(70917),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(26821);function f(e){return(0,g.d6)("MuiCircularProgress",e)}(0,g.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=n(85893);let b=e=>e,E,T=["color","backgroundColor"],S=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],y=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),A=e=>{let{determinate:t,color:n,variant:r,size:a}=e,i={root:["root",t&&"determinate",n&&`color${(0,s.Z)(n)}`,r&&`variant${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,f,{})};function _(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}let k=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;let i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:o,backgroundColor:s}=i,l=(0,a.Z)(i,T);return(0,r.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":o,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":_("track","3px"),"--_progress-thickness":_("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":_("track","6px"),"--_progress-thickness":_("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":_("track","8px"),"--_progress-thickness":_("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:o},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===e.variant&&{"&:before":(0,r.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),v=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),N=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),C=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&(0,c.iv)(E||(E=b` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[396],{24019: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:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},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}))})},57132: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:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},14079: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:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},o=n(84089),s=a.forwardRef(function(e,t){return a.createElement(o.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},87740: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:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",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}))})},72868:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var r=n(67294),a=n(85241),i=n(78031),o=n(51633);function s(e,t){switch(t.type){case o.Q.blur:case o.Q.escapeKeyDown:return{open:!1};case o.Q.toggle:return{open:!e.open};case o.Q.open:return{open:!0};case o.Q.close:return{open:!1};default:throw Error("Unhandled action")}}var l=n(85893);function c(e){let{children:t,open:n,defaultOpen:c,onOpenChange:u}=e,{contextValue:d}=function(e={}){let{defaultOpen:t,onOpenChange:n,open:a}=e,[l,c]=r.useState(""),[u,d]=r.useState(null),p=r.useRef(null),m=r.useCallback((e,t,r,a)=>{"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")},66478:function(e,t,n){"use strict";n.d(t,{Z:function(){return R},f:function(){return v}});var r=n(63366),a=n(87462),i=n(67294),o=n(70758),s=n(94780),l=n(14142),c=n(33703),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(48699),f=n(26821);function h(e){return(0,f.d6)("MuiButton",e)}let b=(0,f.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);var E=n(89996),T=n(85893);let S=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],y=e=>{let{color:t,disabled:n,focusVisible:r,focusVisibleClassName:a,fullWidth:i,size:o,variant:c,loading:u}=e,d={root:["root",n&&"disabled",r&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,t&&`color${(0,l.Z)(t)}`,o&&`size${(0,l.Z)(o)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},p=(0,s.Z)(d,h,{});return r&&a&&(p.root+=` ${a}`),p},A=(0,u.Z)("span",{name:"JoyButton",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)"}),_=(0,u.Z)("span",{name:"JoyButton",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)"}),k=(0,u.Z)("span",{name:"JoyButton",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})}),v=({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},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"24px","--CircularProgress-thickness":"3px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),(0,a.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':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]},"center"===t.loadingPosition&&{[`&.${b.loading}`]:{color:"transparent"}})]},N=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(v),C=i.forwardRef(function(e,t){var n;let s=(0,d.Z)({props:e,name:"JoyButton"}),{children:l,action:u,color:f="primary",variant:h="solid",size:b="md",fullWidth:v=!1,startDecorator:C,endDecorator:R,loading:I=!1,loadingPosition:O="center",loadingIndicator:w,disabled:x,component:L,slots:D={},slotProps:P={}}=s,M=(0,r.Z)(s,S),F=i.useContext(E.Z),U=e.variant||F.variant||h,B=e.size||F.size||b,{getColor:H}=(0,p.VT)(U),G=H(e.color,F.color||f),z=null!=(n=e.disabled||e.loading)?n:F.disabled||x||I,$=i.useRef(null),j=(0,c.Z)($,t),{focusVisible:V,setFocusVisible:W,getRootProps:K}=(0,o.U)((0,a.Z)({},s,{disabled:z,rootRef:j})),Z=null!=w?w:(0,T.jsx)(g.Z,(0,a.Z)({},"context"!==G&&{color:G},{thickness:{sm:2,md:3,lg:4}[B]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;W(!0),null==(e=$.current)||e.focus()}}),[W]);let Y=(0,a.Z)({},s,{color:G,fullWidth:v,variant:U,size:B,focusVisible:V,loading:I,loadingPosition:O,disabled:z}),q=y(Y),X=(0,a.Z)({},M,{component:L,slots:D,slotProps:P}),[Q,J]=(0,m.Z)("root",{ref:t,className:q.root,elementType:N,externalForwardedProps:X,getSlotProps:K,ownerState:Y}),[ee,et]=(0,m.Z)("startDecorator",{className:q.startDecorator,elementType:A,externalForwardedProps:X,ownerState:Y}),[en,er]=(0,m.Z)("endDecorator",{className:q.endDecorator,elementType:_,externalForwardedProps:X,ownerState:Y}),[ea,ei]=(0,m.Z)("loadingIndicatorCenter",{className:q.loadingIndicatorCenter,elementType:k,externalForwardedProps:X,ownerState:Y});return(0,T.jsxs)(Q,(0,a.Z)({},J,{children:[(C||I&&"start"===O)&&(0,T.jsx)(ee,(0,a.Z)({},et,{children:I&&"start"===O?Z:C})),l,I&&"center"===O&&(0,T.jsx)(ea,(0,a.Z)({},ei,{children:Z})),(R||I&&"end"===O)&&(0,T.jsx)(en,(0,a.Z)({},er,{children:I&&"end"===O?Z:R}))]}))});C.muiName="Button";var R=C},89996:function(e,t,n){"use strict";var r=n(67294);let a=r.createContext({});t.Z=a},48699:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(87462),a=n(63366),i=n(67294),o=n(90512),s=n(14142),l=n(94780),c=n(70917),u=n(74312),d=n(20407),p=n(78653),m=n(30220),g=n(26821);function f(e){return(0,g.d6)("MuiCircularProgress",e)}(0,g.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=n(85893);let b=e=>e,E,T=["color","backgroundColor"],S=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],y=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),A=e=>{let{determinate:t,color:n,variant:r,size:a}=e,i={root:["root",t&&"determinate",n&&`color${(0,s.Z)(n)}`,r&&`variant${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,f,{})};function _(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}let k=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;let i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:o,backgroundColor:s}=i,l=(0,a.Z)(i,T);return(0,r.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":o,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":_("track","3px"),"--_progress-thickness":_("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":_("track","6px"),"--_progress-thickness":_("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":_("track","8px"),"--_progress-thickness":_("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:o},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===e.variant&&{"&:before":(0,r.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),v=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),N=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),C=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&(0,c.iv)(E||(E=b` animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) ${0}; `),y)),R=i.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:g,determinate:f=!1,value:b=f?0:25,component:E,slots:T={},slotProps:y={}}=n,_=(0,a.Z)(n,S),{getColor:R}=(0,p.VT)(u),I=R(e.color,l),O=(0,r.Z)({},n,{color:I,size:c,variant:u,thickness:g,value:b,determinate:f,instanceSize:e.size}),w=A(O),x=(0,r.Z)({},_,{component:E,slots:T,slotProps:y}),[L,D]=(0,m.Z)("root",{ref:t,className:(0,o.Z)(w.root,s),elementType:k,externalForwardedProps:x,ownerState:O,additionalProps:(0,r.Z)({role:"progressbar",style:{"--CircularProgress-percent":b}},b&&f&&{"aria-valuenow":"number"==typeof b?Math.round(b):Math.round(Number(b||0))})}),[P,M]=(0,m.Z)("svg",{className:w.svg,elementType:v,externalForwardedProps:x,ownerState:O}),[F,U]=(0,m.Z)("track",{className:w.track,elementType:N,externalForwardedProps:x,ownerState:O}),[B,H]=(0,m.Z)("progress",{className:w.progress,elementType:C,externalForwardedProps:x,ownerState:O});return(0,h.jsxs)(L,(0,r.Z)({},D,{children:[(0,h.jsxs)(P,(0,r.Z)({},M,{children:[(0,h.jsx)(F,(0,r.Z)({},U)),(0,h.jsx)(B,(0,r.Z)({},H))]})),i]}))});var I=R},26047:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(87462),a=n(63366),i=n(67294),o=n(90512),s=n(94780),l=n(34867),c=n(18719),u=n(70182);let d=(0,u.ZP)();var p=n(39214),m=n(96682),g=n(39707),f=n(88647);let h=(e,t)=>e.filter(e=>t.includes(e)),b=(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:h(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 E(e){return e?`Level${e}`:""}function T(e){return e.unstable_level>0&&e.container}function S(e){return function(t){return`var(--Grid-${t}Spacing${E(e.unstable_level)})`}}function y(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${E(e.unstable_level-1)})`}}function A(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${E(e.unstable_level-1)})`}let _=({theme:e,ownerState:t})=>{let n=S(t),r={};return b(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} / ${A(t)}${T(t)?` + ${n("column")}`:""})`}),e(r,i)}),r},k=({theme:e,ownerState:t})=>{let n={};return b(e.breakpoints,t.gridOffset,(e,r)=>{let a={};"auto"===r&&(a={marginLeft:"auto"}),"number"==typeof r&&(a={marginLeft:0===r?"0px":`calc(100% * ${r} / ${A(t)})`}),e(n,a)}),n},v=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=T(t)?{[`--Grid-columns${E(t.unstable_level)}`]:A(t)}:{"--Grid-columns":12};return b(e.breakpoints,t.columns,(e,r)=>{e(n,{[`--Grid-columns${E(t.unstable_level)}`]:r})}),n},N=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=y(t),r=T(t)?{[`--Grid-rowSpacing${E(t.unstable_level)}`]:n("row")}:{};return b(e.breakpoints,t.rowSpacing,(n,a)=>{var i;n(r,{[`--Grid-rowSpacing${E(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=y(t),r=T(t)?{[`--Grid-columnSpacing${E(t.unstable_level)}`]:n("column")}:{};return b(e.breakpoints,t.columnSpacing,(n,a)=>{var i;n(r,{[`--Grid-columnSpacing${E(t.unstable_level)}`]:"string"==typeof a?a:null==(i=e.spacing)?void 0:i.call(e,a)})}),r},R=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return b(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},I=({ownerState:e})=>{let t=S(e),n=y(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||T(e))&&(0,r.Z)({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},O=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},w=(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[]},x=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var L=n(85893);let D=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],P=(0,f.Z)(),M=d("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function F(e){return(0,p.Z)({props:e,name:"MuiGrid",defaultTheme:P})}var U=n(74312),B=n(20407);let H=function(e={}){let{createStyledComponent:t=M,useThemeProps:n=F,componentName:u="MuiGrid"}=e,d=i.createContext(void 0),p=(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)}`,...x(r),...O(o),...n?w(a,t.breakpoints.keys[0]):[]]};return(0,s.Z)(c,e=>(0,l.Z)(u,e),{})},f=t(v,C,N,_,R,I,k),h=i.forwardRef(function(e,t){var s,l,u,h,b,E,T,S;let y=(0,m.Z)(),A=n(e),_=(0,g.Z)(A),k=i.useContext(d),{className:v,children:N,columns:C=12,container:R=!1,component:I="div",direction:O="row",wrap:w="wrap",spacing:x=0,rowSpacing:P=x,columnSpacing:M=x,disableEqualOverflow:F,unstable_level:U=0}=_,B=(0,a.Z)(_,D),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:C,V=null!=(l=e.spacing)?l:U?void 0:x,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,Z=(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}),Y=p(Z,y),q=(0,L.jsx)(f,(0,r.Z)({ref:t,as:I,ownerState:Z,className:(0,o.Z)(Y.root,v)},$,{children:i.Children.map(N,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,L.jsx)(d.Provider,{value:H,children:q})),q});return h.muiName="Grid",h}({createStyledComponent:(0,U.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,B.Z)({props:e,name:"JoyGrid"})});var G=H},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:v={}}=o,N=(0,r.Z)(o,E),C=i.useContext(h.Z),R=e.variant||C.variant||A,I=e.size||C.size||_,{getColor:O}=(0,p.VT)(R),w=O(e.color,C.color||f),x=null!=(n=e.disabled)?n:C.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)({},N,{component:g,slots:k,slotProps:v}),[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(53406),k=n(7293),v=n(50984),N=n(3419),C=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)(v.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)"},N.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:v,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:Z,dispatch:Y,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,v=i.useRef(y),{subitems:N,contextValue:C}=(0,b.Y)(),R=i.useMemo(()=>Array.from(N.keys()),[N]),I=i.useCallback(e=>{var t,n;return null==e?null:null!=(t=null==(n=N.get(e))?void 0:n.ref.current)?t:null},[N]),{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==N||null==(t=N.get(e))?void 0:t.disabled)||!1},items:R,getItemAsString:e=>{var t,n;return(null==(t=N.get(e))?void 0:t.label)||(null==(n=N.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]&&!v.current){var e;null==(e=N.get(R[0]))||null==(e=e.ref)||null==(e=e.current)||e.focus()}},[y,L,N,R]),i.useEffect(()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==L&&(null==N||null==(t=N.get(L))||null==(t=t.ref.current)||t.focus())},[L,N]);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:N,highlightedValue:L}),{contextValue:(0,a.Z)({},C,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:N,open:y,triggerElement:_}}({onItemsChange:U,id:L,listboxRef:t});i.useImperativeHandle(s,()=>({dispatch:Y,resetHighlight:()=>Y({type:d.F.resetHighlight,event:null})}),[Y]);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:v,slots:z,slotProps:$}),et=i.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...B||[]],[B]),en=(0,k.y)({elementType:M,getSlotProps:Z,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)(C.Z.Provider,{value:"menu",children:(0,y.jsx)(N.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:v||"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,{})},v=(0,T.Z)("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(E.f),N=(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)"}),C=(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})),Z=(0,a.Z)({},d,{active:W,color:z,disabled:$,open:V,size:H,variant:B}),Y=k(Z),q=(0,a.Z)({},F,{component:g,slots:D,slotProps:L}),[X,Q]=(0,h.Z)("root",{elementType:v,getSlotProps:j,externalForwardedProps:q,ref:t,ownerState:Z,className:Y.root}),[J,ee]=(0,h.Z)("startDecorator",{className:Y.startDecorator,elementType:N,externalForwardedProps:q,ownerState:Z}),[et,en]=(0,h.Z)("endDecorator",{className:Y.endDecorator,elementType:C,externalForwardedProps:q,ownerState:Z}),[er,ea]=(0,h.Z)("loadingIndicatorCenter",{className:Y.loadingIndicatorCenter,elementType:R,externalForwardedProps:q,ownerState:Z});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 v=n(40780);let N=i.createContext("horizontal");var C=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(v.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:v,totalItemCount:N}=(0,f.B)(null!=E?E:h,S),{getRootProps:C,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)(C,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:v,totalItemCount:N,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,Z]=(0,C.Z)("root",{ref:t,elementType:w,getSlotProps:G,externalForwardedProps:W,className:V.root,ownerState:j});return(0,R.jsx)(N.Provider,{value:x,children:(0,R.jsx)(K,(0,r.Z)({},Z,{children:s}))})});var L=x},3414:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(63366),a=n(87462),i=n(67294),o=n(90512),s=n(94780),l=n(14142),c=n(54844),u=n(20407),d=n(74312),p=n(58859),m=n(26821);function g(e){return(0,m.d6)("MuiSheet",e)}(0,m.sI)("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var f=n(78653),h=n(30220),b=n(85893);let E=["className","color","component","variant","invertedColors","slots","slotProps"],T=e=>{let{variant:t,color:n}=e,r={root:["root",t&&`variant${(0,l.Z)(t)}`,n&&`color${(0,l.Z)(n)}`]};return(0,s.Z)(r,g,{})},S=(0,d.Z)("div",{name:"JoySheet",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],{borderRadius:o,bgcolor:s,backgroundColor:l,background:u}=(0,p.V)({theme:e,ownerState:t},["borderRadius","bgcolor","backgroundColor","background"]),d=(0,c.DW)(e,`palette.${s}`)||s||(0,c.DW)(e,`palette.${l}`)||l||u||(null==i?void 0:i.backgroundColor)||(null==i?void 0:i.background)||e.vars.palette.background.surface;return[(0,a.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--ListItem-stickyBackground":"transparent"===d?"initial":d,"--Sheet-background":"transparent"===d?"initial":d},void 0!==o&&{"--List-radius":`calc(${o} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${o} - var(--variant-borderWidth, 0px))`},{backgroundColor:e.vars.palette.background.surface,position:"relative"}),(0,a.Z)({},e.typography["body-md"],i),"context"!==t.color&&t.invertedColors&&(null==(r=e.colorInversion[t.variant])?void 0:r[t.color])]}),y=i.forwardRef(function(e,t){let n=(0,u.Z)({props:e,name:"JoySheet"}),{className:i,color:s="neutral",component:l="div",variant:c="plain",invertedColors:d=!1,slots:p={},slotProps:m={}}=n,g=(0,r.Z)(n,E),{getColor:y}=(0,f.VT)(c),A=y(e.color,s),_=(0,a.Z)({},n,{color:A,component:l,invertedColors:d,variant:c}),k=T(_),v=(0,a.Z)({},g,{component:l,slots:p,slotProps:m}),[N,C]=(0,h.Z)("root",{ref:t,className:(0,o.Z)(k.root,i),elementType:S,externalForwardedProps:v,ownerState:_}),R=(0,b.jsx)(N,(0,a.Z)({},C));return d?(0,b.jsx)(f.do,{variant:c,children:R}):R});var A=y},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}%`})}},N=e=>e;function C(){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%)"})),Z=(0,I.Z)("input",{name:"JoySlider",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Y=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:Y=!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:Y,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:ev,values:eN,trackOffset:eC,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=N,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)}),Z=Array.isArray(V),Y=Z?V.slice().sort(E):[V];Y=Y.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=Y[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(Z){d=t?eu.current:S(Y,r),a&&(r=T(r,Y[d-1]||-1/0,Y[d+1]||1/0));let e=r;r=A({values:Y,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;C()||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:C()}),()=>{e.removeEventListener("touchstart",ef,{passive:C()}),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=((Z?Y[0]:b)-b)*100/(c-b),eT=(Y[Y.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:v,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:Z,rootRef:eo,trackLeap:eT,trackOffset:eE,values:Y,getThumbStyle:e=>({pointerEvents:-1!==U&&U!==e?"none":void 0})}}((0,i.Z)({},eg,{rootRef:t}));eg.marked=ev.length>0&&ev.some(e=>e.label),eg.dragging=ek;let eO=(0,i.Z)({},ef[ey].offset(eC),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:Z,externalForwardedProps:ex,getSlotProps:eb,ownerState:eg}),[eK,eZ]=(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)),ev.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!==eN.indexOf(e.value):"normal"===et&&(e_?e.value>=eN[0]&&e.value<=eN[eN.length-1]:e.value<=eN[0])||"inverted"===et&&(e_?e.value<=eN[0]||e.value>=eN[eN.length-1]:e.value>=eN[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)}),eN.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:eN[t]},eW)),"off"!==en?(0,M.jsx)(eK,(0,i.Z)({},eZ,{className:(0,s.Z)(eZ.className,(eT===t||eS===t||"on"===en)&&ew.valueLabelOpen),children:"function"==typeof er?er(J(e),t):er})):null]}),t)})]}))});var q=Y},33028: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(73935),c=n(33703),u=n(74161),d=n(39336),p=n(73546),m=n(85893);let g=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}let h={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function b(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let E=i.forwardRef(function(e,t){let{onChange:n,maxRows:o,minRows:s=1,style:E,value:T}=e,S=(0,r.Z)(e,g),{current:y}=i.useRef(null!=T),A=i.useRef(null),_=(0,c.Z)(t,A),k=i.useRef(null),v=i.useRef(0),[N,C]=i.useState({outerHeightStyle:0}),R=i.useCallback(()=>{let t=A.current,n=(0,u.Z)(t),r=n.getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};let a=k.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");let i=r.boxSizing,l=f(r.paddingBottom)+f(r.paddingTop),c=f(r.borderBottomWidth)+f(r.borderTopWidth),d=a.scrollHeight;a.value="x";let p=a.scrollHeight,m=d;s&&(m=Math.max(Number(s)*p,m)),o&&(m=Math.min(Number(o)*p,m)),m=Math.max(m,p);let g=m+("border-box"===i?l+c:0),h=1>=Math.abs(m-d);return{outerHeightStyle:g,overflow:h}},[o,s,e.placeholder]),I=(e,t)=>{let{outerHeightStyle:n,overflow:r}=t;return v.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(v.current+=1,{overflow:r,outerHeightStyle:n}):e},O=i.useCallback(()=>{let e=R();b(e)||C(t=>I(t,e))},[R]),w=()=>{let e=R();b(e)||l.flushSync(()=>{C(t=>I(t,e))})};return i.useEffect(()=>{let e;let t=(0,d.Z)(()=>{v.current=0,A.current&&w()}),n=A.current,r=(0,u.Z)(n);return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(()=>{v.current=0,A.current&&w()})).observe(n),()=>{t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}}),(0,p.Z)(()=>{O()}),i.useEffect(()=>{v.current=0},[T]),(0,m.jsxs)(i.Fragment,{children:[(0,m.jsx)("textarea",(0,a.Z)({value:T,onChange:e=>{v.current=0,y||O(),n&&n(e)},ref:_,rows:s,style:(0,a.Z)({height:N.outerHeightStyle,overflow:N.overflow?"hidden":void 0},E)},S)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,a.Z)({},h.shadow,E,{paddingTop:0,paddingBottom:0})})]})});var T=n(74312),S=n(20407),y=n(78653),A=n(30220),_=n(26821);function k(e){return(0,_.d6)("MuiTextarea",e)}let v=(0,_.sI)("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]);var N=n(71387);let C=i.createContext(void 0);var R=n(30437),I=n(76043);let O=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"],w=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],x=e=>{let{disabled:t,variant:n,color:r,size:a}=e,i={root:["root",t&&"disabled",n&&`variant${(0,o.Z)(n)}`,r&&`color${(0,o.Z)(r)}`,a&&`size${(0,o.Z)(a)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(i,k,{})},L=(0,T.Z)("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,r,i,o,s;let l=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[(0,a.Z)({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":e.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Textarea-focusedHighlight":e.vars.palette.focusVisible}:{"--Textarea-focusedHighlight":null==(r=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:r[500]},"sm"===t.size&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Textarea-minHeight":"2.5rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(2rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:null!=(i=null==l?void 0:l.backgroundColor)?i:e.vars.palette.background.surface,"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":(0,a.Z)({},null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],{backgroundColor:null,cursor:"text"}),[`&.${v.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),D=(0,T.Z)(E,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),P=(0,T.Z)("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),M=(0,T.Z)("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),F=i.forwardRef(function(e,t){var n,o,s,l,u,d,p;let g=(0,S.Z)({props:e,name:"JoyTextarea"}),f=function(e,t){let n=i.useContext(I.Z),{"aria-describedby":o,"aria-label":s,"aria-labelledby":l,autoComplete:u,autoFocus:d,className:p,defaultValue:m,disabled:g,error:f,id:h,name:b,onClick:E,onChange:T,onKeyDown:S,onKeyUp:y,onFocus:A,onBlur:_,placeholder:k,readOnly:v,required:w,type:x,value:L}=e,D=(0,r.Z)(e,O),{getRootProps:P,getInputProps:M,focused:F,error:U,disabled:B}=function(e){let t,n,r,o,s;let{defaultValue:l,disabled:u=!1,error:d=!1,onBlur:p,onChange:m,onFocus:g,required:f=!1,value:h,inputRef:b}=e,E=i.useContext(C);if(E){var T,S,y;t=void 0,n=null!=(T=E.disabled)&&T,r=null!=(S=E.error)&&S,o=null!=(y=E.required)&&y,s=E.value}else t=l,n=u,r=d,o=f,s=h;let{current:A}=i.useRef(null!=s),_=i.useCallback(e=>{},[]),k=i.useRef(null),v=(0,c.Z)(k,b,_),[I,O]=i.useState(!1);i.useEffect(()=>{!E&&n&&I&&(O(!1),null==p||p())},[E,n,I,p]);let w=e=>t=>{var n,r;if(null!=E&&E.disabled){t.stopPropagation();return}null==(n=e.onFocus)||n.call(e,t),E&&E.onFocus?null==E||null==(r=E.onFocus)||r.call(E):O(!0)},x=e=>t=>{var n;null==(n=e.onBlur)||n.call(e,t),E&&E.onBlur?E.onBlur():O(!1)},L=e=>(t,...n)=>{var r,a;if(!A){let e=t.target||k.current;if(null==e)throw Error((0,N.Z)(17))}null==E||null==(r=E.onChange)||r.call(E,t),null==(a=e.onChange)||a.call(e,t,...n)},D=e=>t=>{var n;k.current&&t.currentTarget===t.target&&k.current.focus(),null==(n=e.onClick)||n.call(e,t)};return{disabled:n,error:r,focused:I,formControlContext:E,getInputProps:(e={})=>{let i=(0,a.Z)({},{onBlur:p,onChange:m,onFocus:g},(0,R._)(e)),l=(0,a.Z)({},e,i,{onBlur:x(i),onChange:L(i),onFocus:w(i)});return(0,a.Z)({},l,{"aria-invalid":r||void 0,defaultValue:t,ref:v,value:s,required:o,disabled:n})},getRootProps:(t={})=>{let n=(0,R._)(e,["onBlur","onChange","onFocus"]),r=(0,a.Z)({},n,(0,R._)(t));return(0,a.Z)({},t,r,{onClick:D(r)})},inputRef:v,required:o,value:s}}({disabled:null!=g?g:null==n?void 0:n.disabled,defaultValue:m,error:f,onBlur:_,onClick:E,onChange:T,onFocus:A,required:null!=w?w:null==n?void 0:n.required,value:L}),H={[t.disabled]:B,[t.error]:U,[t.focused]:F,[t.formControl]:!!n,[p]:p},G={[t.disabled]:B};return(0,a.Z)({formControl:n,propsToForward:{"aria-describedby":o,"aria-label":s,"aria-labelledby":l,autoComplete:u,autoFocus:d,disabled:B,id:h,onKeyDown:S,onKeyUp:y,name:b,placeholder:k,readOnly:v,type:x},rootStateClasses:H,inputStateClasses:G,getRootProps:P,getInputProps:M,focused:F,error:U,disabled:B},D)}(g,v),{propsToForward:h,rootStateClasses:b,inputStateClasses:E,getRootProps:T,getInputProps:_,formControl:k,focused:F,error:U=!1,disabled:B=!1,size:H="md",color:G="neutral",variant:z="outlined",startDecorator:$,endDecorator:j,minRows:V,maxRows:W,component:K,slots:Z={},slotProps:Y={}}=f,q=(0,r.Z)(f,w),X=null!=(n=null!=(o=e.disabled)?o:null==k?void 0:k.disabled)?n:B,Q=null!=(s=null!=(l=e.error)?l:null==k?void 0:k.error)?s:U,J=null!=(u=null!=(d=e.size)?d:null==k?void 0:k.size)?u:H,{getColor:ee}=(0,y.VT)(z),et=ee(e.color,Q?"danger":null!=(p=null==k?void 0:k.color)?p:G),en=(0,a.Z)({},g,{color:et,disabled:X,error:Q,focused:F,size:J,variant:z}),er=x(en),ea=(0,a.Z)({},q,{component:K,slots:Z,slotProps:Y}),[ei,eo]=(0,A.Z)("root",{ref:t,className:[er.root,b],elementType:L,externalForwardedProps:ea,getSlotProps:T,ownerState:en}),[es,el]=(0,A.Z)("textarea",{additionalProps:{id:null==k?void 0:k.htmlFor,"aria-describedby":null==k?void 0:k["aria-describedby"]},className:[er.textarea,E],elementType:D,internalForwardedProps:(0,a.Z)({},h,{minRows:V,maxRows:W}),externalForwardedProps:ea,getSlotProps:_,ownerState:en}),[ec,eu]=(0,A.Z)("startDecorator",{className:er.startDecorator,elementType:P,externalForwardedProps:ea,ownerState:en}),[ed,ep]=(0,A.Z)("endDecorator",{className:er.endDecorator,elementType:M,externalForwardedProps:ea,ownerState:en});return(0,m.jsxs)(ei,(0,a.Z)({},eo,{children:[$&&(0,m.jsx)(ec,(0,a.Z)({},eu,{children:$})),(0,m.jsx)(es,(0,a.Z)({},el)),j&&(0,m.jsx)(ed,(0,a.Z)({},ep,{children:j}))]}))});var U=F},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),v=n(75164),N={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},C=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,v=e.onClose,N=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&&v()};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:N,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(C.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:v},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:N},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,C=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,Z=void 0===K?1:K,Y=e.maxScale,q=void 0===Y?50:Y,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)(N),d=(i=(0,u.Z)(a,2))[0],g=i[1],f=function(e,r){null===t.current&&(n.current=[],t.current=(0,v.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(N),er&&!(0,k.Z)(N,d)&&er({transform:N,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(eN!==s&&eC!==c){var u=eo.current.offsetWidth*ev,d=eo.current.offsetHeight*ev,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,eN,eC,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:C,style:{transform:"translate3d(".concat(eh.x,"px, ").concat(eh.y,"px, 0) scale3d(").concat(eh.flipX?"-":"").concat(ev,", ").concat(eh.flipY?"-":"").concat(ev,", 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!==ev?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:ev,minScale:Z,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,v=void 0===k?"".concat(_,"-preview"):k,N=e.placeholder,C=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),$=N&&!0!==N,j="object"===(0,d.Z)(x)?x:{},V=j.src,W=j.visible,K=void 0===W?void 0:W,Z=j.onVisibleChange,Y=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===Z?y:Z}),el=(0,u.Z)(es,2),ec=el[0],eu=el[1],ed=E({src:T,isCustomPlaceholder:$,fallback:C}),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_]),ev=(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(ev,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===N),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")},N),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:v,onClose:function(){eu(!1),eT(null)},mousePosition:eE,src:eo,alt:S,fallback:C,getContainer:void 0===Y?void 0:Y,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,v=_.onVisibleChange,N=_.getContainer,C=_.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:C}),K=(0,u.Z)(W,2),Z=K[0],Y=K[1],q=(0,r.useState)(!1),X=(0,u.Z)(q,2),Q=X[0],J=X[1],ee=(null===(m=j[Z])||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==v||v(e,t,Z)}}),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}),Y(r<0?0:r),J(!0)},[j]);r.useEffect(function(){ei?Q||Y(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:N,current:Z,count:j.length,countRender:w,onTransform:U,toolbarRender:B,imageRender:H,onChange:function(e,t){Y(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),Z=r.forwardRef(function(e,t){return r.createElement(K.Z,(0,s.Z)({},e,{ref:t,icon:W}))}),Y={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:Y}))}),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(Z,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},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,v,N,C,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,Z=-1,Y=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]):(N="",((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,N+=u(A>>>10|55296),A=56320|1023&A),A=N+u(A))):O!==m&&k(4,D)),A?(ee(),x=J(),K=P-1,Y+=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),Y+=S.length,K=P-1)}else 10===y&&(q++,Z++,Y=0),y==y?(X+=u(y),Y++):ee();return Q.join("");function J(){return{line:q,column:Y,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",v="IN_HEAD_NO_SCRIPT_MODE",N="AFTER_HEAD_MODE",C="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]:C,[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]:Z,[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]:Z,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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]:Z,[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.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]:Y,[r.START_TAG_TOKEN]:er,[r.END_TAG_TOKEN]:ea,[r.EOF_TOKEN]:ei},[v]:{[r.CHARACTER_TOKEN]:eo,[r.NULL_CHARACTER_TOKEN]:eo,[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.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},[N]:{[r.CHARACTER_TOKEN]:es,[r.NULL_CHARACTER_TOKEN]:es,[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.BODY?(e._insertElement(t,b.HTML),e.framesetOk=!1,e.insertionMode=C):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},[C]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:eS,[r.END_TAG_TOKEN]:ek,[r.EOF_TOKEN]:ev},[R]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Q,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:Z,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:Z,[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]:eN,[r.NULL_CHARACTER_TOKEN]:eN,[r.WHITESPACE_CHARACTER_TOKEN]:eN,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:eC,[r.END_TAG_TOKEN]:eR,[r.EOF_TOKEN]:ev},[O]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:Z,[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]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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]:ev},[x]:{[r.CHARACTER_TOKEN]:ew,[r.NULL_CHARACTER_TOKEN]:ew,[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.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]:ev},[L]:{[r.CHARACTER_TOKEN]:eN,[r.NULL_CHARACTER_TOKEN]:eN,[r.WHITESPACE_CHARACTER_TOKEN]:eN,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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)):eC(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]:ev},[D]:{[r.CHARACTER_TOKEN]:eN,[r.NULL_CHARACTER_TOKEN]:eN,[r.WHITESPACE_CHARACTER_TOKEN]:eN,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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)):eC(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]:ev},[P]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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]:ev},[M]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:Q,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[r.START_TAG_TOKEN]:ex,[r.END_TAG_TOKEN]:eL,[r.EOF_TOKEN]:ev},[F]:{[r.CHARACTER_TOKEN]:Q,[r.NULL_CHARACTER_TOKEN]:Z,[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.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]:ev},[U]:{[r.CHARACTER_TOKEN]:ec,[r.NULL_CHARACTER_TOKEN]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:q,[r.DOCTYPE_TOKEN]:Z,[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]||C;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]:Z,[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]:Z,[r.NULL_CHARACTER_TOKEN]:Z,[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.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]:Z,[r.NULL_CHARACTER_TOKEN]:Z,[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.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]:Z,[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]:Z,[r.NULL_CHARACTER_TOKEN]:Z,[r.WHITESPACE_CHARACTER_TOKEN]:el,[r.COMMENT_TOKEN]:X,[r.DOCTYPE_TOKEN]:Z,[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]:Z,[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 Z(){}function Y(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=v):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=N):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=N,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=C,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 ev(e,t){e.tmplInsertionModeStackTop>-1?eD(e,t):e.stopped=!0}function eN(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 eC(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=C,e._processToken(t)}function eM(e,t){e.insertionMode=C,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=C,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[C][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?N:_;break}else if(t){this.insertionMode=C;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",v="SCRIPT_DATA_END_TAG_OPEN_STATE",N="SCRIPT_DATA_END_TAG_NAME_STATE",C="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",Z="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Y="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",ev="CDATA_SECTION_BRACKET_STATE",eN="CDATA_SECTION_END_STATE",eC="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=Y: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=Z:e===s.AMPERSAND?(this.returnState=V,this.state=eC):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=Z:e===s.AMPERSAND?(this.returnState=W,this.state=eC):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=eC):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)}[Z](e){eM(e)?this._leaveAttrValue(G):e===s.SOLIDUS?this._leaveAttrValue(Y):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))}[Y](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=ev:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[ev](e){e===s.RIGHT_SQUARE_BRACKET?this.state=eN:(this._emitChars("]"),this._reconsumeInState(ek))}[eN](e){e===s.GREATER_THAN_SIGN?this.state=u:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ek))}[eC](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);++de+1,0);return e}},69814:function(e,t,r){r.d(t,{Z:function(){return et}});var n=r(89739),o=r(63606),i=r(4340),a=r(97937),l=r(94184),s=r.n(l),c=r(98423),u=r(67294),d=r(53124),p=r(87462),f=r(1413),m=r(45987),g={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},h=function(){var e=(0,u.useRef)([]),t=(0,u.useRef)(null);return(0,u.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},b=r(71002),v=r(97685),$=r(98924),y=0,w=(0,$.Z)(),k=function(e){var t=u.useState(),r=(0,v.Z)(t,2),n=r[0],o=r[1];return u.useEffect(function(){var e;o("rc_progress_".concat((w?(e=y,y+=1):e="TEST_OR_SSR",e)))},[]),e||n},E=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function x(e){return+e.replace("%","")}function C(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var S=function(e,t,r,n,o,i,a,l,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 l?l: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})[a]),"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}},O=function(e){var t,r,n,o,i=(0,f.Z)((0,f.Z)({},g),e),a=i.id,l=i.prefixCls,c=i.steps,d=i.strokeWidth,v=i.trailWidth,$=i.gapDegree,y=void 0===$?0:$,w=i.gapPosition,O=i.trailColor,j=i.strokeLinecap,Z=i.style,I=i.className,D=i.strokeColor,R=i.percent,N=(0,m.Z)(i,E),P=k(a),M="".concat(P,"-gradient"),F=50-d/2,A=2*Math.PI*F,L=y>0?90+y/2:-90,z=A*((360-y)/360),T="object"===(0,b.Z)(c)?c:{count:c,space:2},X=T.count,_=T.space,U=S(A,z,0,100,L,y,w,O,j,d),H=C(R),W=C(D),B=W.find(function(e){return e&&"object"===(0,b.Z)(e)}),q=h();return u.createElement("svg",(0,p.Z)({className:s()("".concat(l,"-circle"),I),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:Z,id:a,role:"presentation"},N),B&&u.createElement("defs",null,u.createElement("linearGradient",{id:M,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(B).sort(function(e,t){return x(e)-x(t)}).map(function(e,t){return u.createElement("stop",{key:t,offset:e,stopColor:B[e]})}))),!X&&u.createElement("circle",{className:"".concat(l,"-circle-trail"),r:F,cx:0,cy:0,stroke:O,strokeLinecap:j,strokeWidth:v||d,style:U}),X?(t=Math.round(X*(H[0]/100)),r=100/X,n=0,Array(X).fill(null).map(function(e,o){var i=o<=t-1?W[0]:O,a=i&&"object"===(0,b.Z)(i)?"url(#".concat(M,")"):void 0,s=S(A,z,n,r,L,y,w,i,"butt",d,_);return n+=(z-s.strokeDashoffset+_)*100/z,u.createElement("circle",{key:o,className:"".concat(l,"-circle-path"),r:F,cx:0,cy:0,stroke:a,strokeWidth:d,opacity:1,style:s,ref:function(e){q[o]=e}})})):(o=0,H.map(function(e,t){var r=W[t]||W[W.length-1],n=r&&"object"===(0,b.Z)(r)?"url(#".concat(M,")"):void 0,i=S(A,z,o,e,L,y,w,r,j,d);return o+=e,u.createElement("circle",{key:t,className:"".concat(l,"-circle-path"),r:F,cx:0,cy:0,stroke:n,strokeLinecap:j,strokeWidth:d,opacity:0===e?0:1,style:i,ref:function(e){q[t]=e}})}).reverse()))},j=r(83062),Z=r(16397);function I(e){return!e||e<0?0:e>100?100:e}function D(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 R=e=>{let{percent:t,success:r,successPercent:n}=e,o=I(D({success:r,successPercent:n}));return[o,I(I(t)-o)]},N=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:n}=t;return[n||Z.presetPrimaryColors.green,r||null]},P=(e,t,r)=>{var n,o,i,a;let l=-1,s=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=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?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,s=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,s]},M=e=>3/e*100;var F=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:c,success:d,size:p=a}=e,[f,m]=P(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(M(f),6));let h=u.useMemo(()=>i||0===i?i:"dashboard"===l?75:void 0,[i,l]),b=o||"dashboard"===l&&"bottom"||void 0,v="[object Object]"===Object.prototype.toString.call(e.strokeColor),$=N({success:d,strokeColor:e.strokeColor}),y=s()(`${t}-inner`,{[`${t}-circle-gradient`]:v}),w=u.createElement(O,{percent:R(e),strokeWidth:g,trailWidth:g,strokeColor:$,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:h,gapPosition:b});return u.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?u.createElement(j.Z,{title:c},u.createElement("span",null,w)):u.createElement(u.Fragment,null,w,c))},A=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 L=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(", ")},z=(e,t)=>{let{from:r=Z.presetPrimaryColors.blue,to:n=Z.presetPrimaryColors.blue,direction:o="rtl"===t?"to left":"to right"}=e,i=A(e,["from","to","direction"]);if(0!==Object.keys(i).length){let e=L(i);return{backgroundImage:`linear-gradient(${o}, ${e})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}};var T=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,success:d}=e,p=a&&"string"!=typeof a?z(a,r):{backgroundColor:a},f="square"===l||"butt"===l?0:void 0,m=null!=o?o:[-1,i||("small"===o?6:8)],[g,h]=P(m,"line",{strokeWidth:i}),b=Object.assign({width:`${I(n)}%`,height:h,borderRadius:f},p),v=D(e),$={width:`${I(v)}%`,height:h,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${t}-outer`,style:{width:g<0?"100%":g,height:h}},u.createElement("div",{className:`${t}-inner`,style:{backgroundColor:c||void 0,borderRadius:f}},u.createElement("div",{className:`${t}-bg`,style:b}),void 0!==v?u.createElement("div",{className:`${t}-success-bg`,style:$}):null)),s)},X=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:c}=e,d=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,o],[f,m]=P(p,"step",{steps:r,strokeWidth:o}),g=f/r,h=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new _.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}})},q=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,U.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:B(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:B(!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}}})}},V=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"}}}},G=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}}}}}},J=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var K=(0,H.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,W.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[q(r),V(r),G(r),J(r)]}),Q=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 Y=["normal","exception","active","success"],ee=u.forwardRef((e,t)=>{let r;let{prefixCls:l,className:p,rootClassName:f,steps:m,strokeColor:g,percent:h=0,size:b="default",showInfo:v=!0,type:$="line",status:y,format:w,style:k}=e,E=Q(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),x=u.useMemo(()=>{var t,r;let n=D(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=h?h:0)||void 0===r?void 0:r.toString(),10)},[h,e.success,e.successPercent]),C=u.useMemo(()=>!Y.includes(y)&&x>=100?"success":y||"normal",[y,x]),{getPrefixCls:S,direction:O,progress:j}=u.useContext(d.E_),Z=S("progress",l),[R,N]=K(Z),M=u.useMemo(()=>{let t;if(!v)return null;let r=D(e),l=w||(e=>`${e}%`),s="line"===$;return w||"exception"!==C&&"success"!==C?t=l(I(h),I(r)):"exception"===C?t=s?u.createElement(i.Z,null):u.createElement(a.Z,null):"success"===C&&(t=s?u.createElement(n.Z,null):u.createElement(o.Z,null)),u.createElement("span",{className:`${Z}-text`,title:"string"==typeof t?t:void 0},t)},[v,h,x,C,$,Z,w]),A=Array.isArray(g)?g[0]:g,L="string"==typeof g||Array.isArray(g)?g:void 0;"line"===$?r=m?u.createElement(X,Object.assign({},e,{strokeColor:L,prefixCls:Z,steps:m}),M):u.createElement(T,Object.assign({},e,{strokeColor:A,prefixCls:Z,direction:O}),M):("circle"===$||"dashboard"===$)&&(r=u.createElement(F,Object.assign({},e,{strokeColor:A,prefixCls:Z,progressStatus:C}),M));let z=s()(Z,`${Z}-status-${C}`,`${Z}-${"dashboard"===$&&"circle"||m&&"steps"||$}`,{[`${Z}-inline-circle`]:"circle"===$&&P(b,"circle")[0]<=20,[`${Z}-show-info`]:v,[`${Z}-${b}`]:"string"==typeof b,[`${Z}-rtl`]:"rtl"===O},null==j?void 0:j.className,p,f,N);return R(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==j?void 0:j.style),k),className:z,role:"progressbar","aria-valuenow":x},(0,c.Z)(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))});var et=ee},84553:function(e,t,r){r.d(t,{default:function(){return eI}});var n=r(67294),o=r(74902),i=r(94184),a=r.n(i),l=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 $(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 y=+new Date,w=0;function k(){return"rc-upload-".concat(y,"-").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(),a=t.toLowerCase(),l=[a];return(".jpg"===a||".jpeg"===a)&&(l=[".jpg",".jpeg"]),l.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,a,l;i=function(t){t.forEach(function(t){e(t,"".concat(o).concat(n.name,"/"))})},a=n.createReader(),l=[],function e(){a.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():i(l)})}()}};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,a=Array(i),l=0;l{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 K=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]},Q=e=>0===e.indexOf("image/"),Y=e=>{if(e.type&&!e.thumbUrl)return Q(e.type);let t=e.thumbUrl||e.url||"",r=K(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 ee(e){return new Promise(t=>{if(!e.type||!Q(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,a=200,l=200,s=0,c=0;e>i?c=-((l=i*(200/e))-a)/2:s=-((a=e*(200/i))-l)/2,n.drawImage(o,s,c,a,l);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 et=r(48689),er=r(23430),en=r(99611),eo=r(69814),ei=r(83062);let ea=n.forwardRef((e,t)=>{var r,o;let{prefixCls:i,className:l,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:$,showDownloadIcon:y,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[I,D]=n.useState(!1);n.useEffect(()=>{let e=setTimeout(()=>{D(!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=a()(`${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=a()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:"uploading"!==j});P=n.createElement("div",{className:e},N)}}let M=a()(`${i}-list-item`,`${i}-list-item-${j}`),F="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,A=$?g(("function"==typeof k?k(d):k)||n.createElement(et.Z,null),()=>S(d),i,c.removeFile):null,L=y&&"done"===j?g(("function"==typeof E?E(d):E)||n.createElement(er.Z,null),()=>C(d),i,c.downloadFile):null,z="picture-card"!==u&&"picture-circle"!==u&&n.createElement("span",{key:"download-delete",className:a()(`${i}-list-item-actions`,{picture:"picture"===u})},L,A),T=a()(`${i}-list-item-name`),X=d.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:d.name},F,{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],_=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(en.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==j&&n.createElement("span",{className:`${i}-list-item-actions`},_,"done"===j&&L,A),{getPrefixCls:W}=n.useContext(R.E_),B=W(),q=n.createElement("div",{className:M},P,X,H,I&&n.createElement(U.ZP,{motionName:`${B}-fade`,visible:"uploading"===j,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in d?n.createElement(eo.Z,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return n.createElement("div",{className:a()(`${i}-list-item-progress`,t)},r)})),V=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(ei.Z,{title:V,getPopupContainer:e=>e.parentNode},q):q;return n.createElement("div",{className:a()(`${i}-list-item-container`,l),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)}),el=n.forwardRef((e,t)=>{let{listType:r="text",previewFile:i=ee,onPreview:l,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=Y,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:$,downloadIcon:y,progress:w={size:[-1,2],showInfo:!1},appendAction:k,appendActionVisible:E=!0,itemRender:x,disabled:C}=e,S=(0,H.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(l)return null==t||t.preventDefault(),l(e)},I=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},D=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(T.Z,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,B.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,B.l$)(e)){let t=(0,B.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:I}));let{getPrefixCls:M}=n.useContext(R.E_),F=M("upload",f),A=M(),X=a()(`${F}-list`,`${F}-list-${r}`),V=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),G="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",J={motionDeadline:2e3,motionName:`${F}-${G}`,keys:V,motionAppear:O},K=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&&(J=Object.assign(Object.assign({},K),J)),n.createElement("div",{className:X},n.createElement(U.V4,Object.assign({},J,{component:!1}),e=>{let{key:t,file:o,className:i,style:a}=e;return n.createElement(ea,{key:t,locale:u,prefixCls:F,className:i,style:a,file:o,items:m,progress:w,listType:r,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:$,downloadIcon:y,iconRender:N,actionIconRender:P,itemRender:x,onPreview:Z,onDownload:I,onClose:D})}),k&&n.createElement(U.ZP,Object.assign({},J,{visible:E,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,B.Tm)(k,e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var es=r(14747),ec=r(33507),eu=r(67968),ed=r(45503),ep=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}}}}}},ef=e=>{let{componentCls:t,antCls:r,iconCls:n,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,es.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},es.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[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},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${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:'""'}}})}}},em=r(23183),eg=r(16932);let eh=new em.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),eb=new em.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ev=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:eh},[`${r}-leave`]:{animationName:eb}}},{[`${t}-wrapper`]:(0,eg.J$)(e)},eh,eb]},e$=r(16397),ey=r(10274);let ew=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[` + ${i}${i}-picture, + ${i}${i}-picture-card, + ${i}${i}-picture-circle + `]:{[a]:{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"},[`${a}-thumbnail`]:Object.assign(Object.assign({},es.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"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${r}`]:{[`svg path[fill='${e$.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${e$.blue.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},ek=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,es.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,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:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{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:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-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"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new ey.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${a}-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 eE=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let ex=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,es.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var eC=(0,eu.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightLG:i}=e,a=(0,ed.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*n)/2+o,uploadPicCardSize:2.55*i});return[ex(a),ep(a),ew(a),ek(a),ef(a),ev(a),eE(a),(0,ec.Z)(a)]},e=>({actionsColor:e.colorTextDescription}));let eS=`__LIST_IGNORE_${Date.now()}__`,eO=n.forwardRef((e,t)=>{var r;let{fileList:i,defaultFileList:l,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:$,progress:y,prefixCls:w,className:k,type:E="select",children:x,style:C,itemRender:S,maxCount:O,data:j={},multiple:F=!1,action:A="",accept:L="",supportServerRender:z=!0}=e,T=n.useContext(N.Z),X=null!=h?h:T,[_,U]=(0,I.Z)(l||[],{value:i,postState:e=>null!=e?e:[]}),[H,W]=n.useState("drop"),B=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 q=(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,D.flushSync)(()=>{U(n)});let a={file:e,fileList:n};r&&(a.event=r),(!i||n.some(t=>t.uid===e.uid))&&(0,D.flushSync)(()=>{null==f||f(a)})},K=e=>{let t=e.filter(e=>!e.file[eS]);if(!t.length)return;let r=t.map(e=>V(e.file)),n=(0,o.Z)(_);r.forEach(e=>{n=G(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}q(o,n)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!J(t,_))return;let n=V(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;let o=G(n,_);q(n,o)},Y=(e,t)=>{if(!J(t,_))return;let r=V(t);r.status="uploading",r.percent=e.percent;let n=G(r,_);q(r,n,e)},ee=(e,t,r)=>{if(!J(r,_))return;let n=V(r);n.error=e,n.response=t,n.status="error";let o=G(n,_);q(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,_);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==_||_.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(n=B.current)||void 0===n||n.abort(t),q(t,o))})},er=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};n.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:Q,onProgress:Y,onError:ee,fileList:_,upload:B.current}));let{getPrefixCls:en,direction:eo,upload:ei}=n.useContext(R.E_),ea=en("upload",w),es=Object.assign(Object.assign({onBatchStart:K,onError:ee,onProgress:Y,onSuccess:Q},e),{data:j,multiple:F,action:A,accept:L,supportServerRender:z,prefixCls:ea,disabled:X,beforeUpload:(t,r)=>{var n,o,i,a;return n=void 0,o=void 0,i=void 0,a=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[eS],e===eS)return Object.defineProperty(t,eS,{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(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.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,l)}s((a=a.apply(n,o||[])).next())})},onChange:void 0});delete es.className,delete es.style,(!x||X)&&delete es.id;let[ec,eu]=eC(ea),[ed]=(0,P.Z)("Upload",M.Z.Upload),{showRemoveIcon:ep,showPreviewIcon:ef,showDownloadIcon:em,removeIcon:eg,previewIcon:eh,downloadIcon:eb}="boolean"==typeof c?{}:c,ev=(e,t)=>c?n.createElement(el,{prefixCls:ea,listType:u,items:_,previewFile:g,onPreview:d,onDownload:p,onRemove:et,showRemoveIcon:!X&&ep,showPreviewIcon:ef,showDownloadIcon:em,removeIcon:eg,previewIcon:eh,downloadIcon:eb,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:$,progress:y,appendAction:e,appendActionVisible:t,itemRender:S,disabled:X}):e,e$=a()(`${ea}-wrapper`,k,eu,null==ei?void 0:ei.className,{[`${ea}-rtl`]:"rtl"===eo,[`${ea}-picture-card-wrapper`]:"picture-card"===u,[`${ea}-picture-circle-wrapper`]:"picture-circle"===u}),ey=Object.assign(Object.assign({},null==ei?void 0:ei.style),C);if("drag"===E){let e=a()(eu,ea,`${ea}-drag`,{[`${ea}-drag-uploading`]:_.some(e=>"uploading"===e.status),[`${ea}-drag-hover`]:"dragover"===H,[`${ea}-disabled`]:X,[`${ea}-rtl`]:"rtl"===eo});return ec(n.createElement("span",{className:e$},n.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},n.createElement(Z,Object.assign({},es,{ref:B,className:`${ea}-btn`}),n.createElement("div",{className:`${ea}-drag-container`},x))),ev()))}let ew=a()(ea,`${ea}-select`,{[`${ea}-disabled`]:X}),ek=(r=x?void 0:{display:"none"},n.createElement("div",{className:ew,style:r},n.createElement(Z,Object.assign({},es,{ref:B}))));return ec("picture-card"===u||"picture-circle"===u?n.createElement("span",{className:e$},ev(ek,!!x)):n.createElement("span",{className:e$},ek,ev()))});var ej=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 eZ=n.forwardRef((e,t)=>{var{style:r,height:o}=e,i=ej(e,["style","height"]);return n.createElement(eO,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))});eO.Dragger=eZ,eO.LIST_IGNORE=eS;var eI=eO}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/607-1314698cecb41dbb.js b/pilot/server/static/_next/static/chunks/607-1314698cecb41dbb.js deleted file mode 100644 index 97957a543..000000000 --- a/pilot/server/static/_next/static/chunks/607-1314698cecb41dbb.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{23430:function(e,t,r){r.d(t,{Z:function(){return l}});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"},a=r(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},58895:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},a=r(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},5392:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},a=r(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},57838:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(67294);function o(){let[,e]=n.useReducer(e=>e+1,0);return e}},69814:function(e,t,r){r.d(t,{Z:function(){return et}});var n=r(89739),o=r(63606),i=r(4340),a=r(97937),l=r(94184),s=r.n(l),c=r(98423),u=r(67294),d=r(53124),p=r(87462),f=r(1413),m=r(45987),g={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},h=function(){var e=(0,u.useRef)([]),t=(0,u.useRef)(null);return(0,u.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},b=r(71002),v=r(97685),$=r(98924),y=0,w=(0,$.Z)(),k=function(e){var t=u.useState(),r=(0,v.Z)(t,2),n=r[0],o=r[1];return u.useEffect(function(){var e;o("rc_progress_".concat((w?(e=y,y+=1):e="TEST_OR_SSR",e)))},[]),e||n},E=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function x(e){return+e.replace("%","")}function C(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var S=function(e,t,r,n,o,i,a,l,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 l?l: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})[a]),"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}},O=function(e){var t,r,n,o,i=(0,f.Z)((0,f.Z)({},g),e),a=i.id,l=i.prefixCls,c=i.steps,d=i.strokeWidth,v=i.trailWidth,$=i.gapDegree,y=void 0===$?0:$,w=i.gapPosition,O=i.trailColor,j=i.strokeLinecap,Z=i.style,I=i.className,D=i.strokeColor,R=i.percent,N=(0,m.Z)(i,E),P=k(a),M="".concat(P,"-gradient"),F=50-d/2,A=2*Math.PI*F,L=y>0?90+y/2:-90,z=A*((360-y)/360),T="object"===(0,b.Z)(c)?c:{count:c,space:2},X=T.count,_=T.space,U=S(A,z,0,100,L,y,w,O,j,d),H=C(R),W=C(D),B=W.find(function(e){return e&&"object"===(0,b.Z)(e)}),q=h();return u.createElement("svg",(0,p.Z)({className:s()("".concat(l,"-circle"),I),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:Z,id:a,role:"presentation"},N),B&&u.createElement("defs",null,u.createElement("linearGradient",{id:M,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(B).sort(function(e,t){return x(e)-x(t)}).map(function(e,t){return u.createElement("stop",{key:t,offset:e,stopColor:B[e]})}))),!X&&u.createElement("circle",{className:"".concat(l,"-circle-trail"),r:F,cx:0,cy:0,stroke:O,strokeLinecap:j,strokeWidth:v||d,style:U}),X?(t=Math.round(X*(H[0]/100)),r=100/X,n=0,Array(X).fill(null).map(function(e,o){var i=o<=t-1?W[0]:O,a=i&&"object"===(0,b.Z)(i)?"url(#".concat(M,")"):void 0,s=S(A,z,n,r,L,y,w,i,"butt",d,_);return n+=(z-s.strokeDashoffset+_)*100/z,u.createElement("circle",{key:o,className:"".concat(l,"-circle-path"),r:F,cx:0,cy:0,stroke:a,strokeWidth:d,opacity:1,style:s,ref:function(e){q[o]=e}})})):(o=0,H.map(function(e,t){var r=W[t]||W[W.length-1],n=r&&"object"===(0,b.Z)(r)?"url(#".concat(M,")"):void 0,i=S(A,z,o,e,L,y,w,r,j,d);return o+=e,u.createElement("circle",{key:t,className:"".concat(l,"-circle-path"),r:F,cx:0,cy:0,stroke:n,strokeLinecap:j,strokeWidth:d,opacity:0===e?0:1,style:i,ref:function(e){q[t]=e}})}).reverse()))},j=r(83062),Z=r(16397);function I(e){return!e||e<0?0:e>100?100:e}function D(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 R=e=>{let{percent:t,success:r,successPercent:n}=e,o=I(D({success:r,successPercent:n}));return[o,I(I(t)-o)]},N=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:n}=t;return[n||Z.presetPrimaryColors.green,r||null]},P=(e,t,r)=>{var n,o,i,a;let l=-1,s=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=n?n:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=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?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(n=e[0])&&void 0!==n?n:e[1])&&void 0!==o?o:120,s=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,s]},M=e=>3/e*100;var F=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:c,success:d,size:p=a}=e,[f,m]=P(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(M(f),6));let h=u.useMemo(()=>i||0===i?i:"dashboard"===l?75:void 0,[i,l]),b=o||"dashboard"===l&&"bottom"||void 0,v="[object Object]"===Object.prototype.toString.call(e.strokeColor),$=N({success:d,strokeColor:e.strokeColor}),y=s()(`${t}-inner`,{[`${t}-circle-gradient`]:v}),w=u.createElement(O,{percent:R(e),strokeWidth:g,trailWidth:g,strokeColor:$,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:h,gapPosition:b});return u.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?u.createElement(j.Z,{title:c},u.createElement("span",null,w)):u.createElement(u.Fragment,null,w,c))},A=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 L=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(", ")},z=(e,t)=>{let{from:r=Z.presetPrimaryColors.blue,to:n=Z.presetPrimaryColors.blue,direction:o="rtl"===t?"to left":"to right"}=e,i=A(e,["from","to","direction"]);if(0!==Object.keys(i).length){let e=L(i);return{backgroundImage:`linear-gradient(${o}, ${e})`}}return{backgroundImage:`linear-gradient(${o}, ${r}, ${n})`}};var T=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,success:d}=e,p=a&&"string"!=typeof a?z(a,r):{backgroundColor:a},f="square"===l||"butt"===l?0:void 0,m=null!=o?o:[-1,i||("small"===o?6:8)],[g,h]=P(m,"line",{strokeWidth:i}),b=Object.assign({width:`${I(n)}%`,height:h,borderRadius:f},p),v=D(e),$={width:`${I(v)}%`,height:h,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${t}-outer`,style:{width:g<0?"100%":g,height:h}},u.createElement("div",{className:`${t}-inner`,style:{backgroundColor:c||void 0,borderRadius:f}},u.createElement("div",{className:`${t}-bg`,style:b}),void 0!==v?u.createElement("div",{className:`${t}-success-bg`,style:$}):null)),s)},X=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:c}=e,d=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,o],[f,m]=P(p,"step",{steps:r,strokeWidth:o}),g=f/r,h=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new _.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}})},q=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,U.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:B(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:B(!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}}})}},V=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"}}}},G=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}}}}}},J=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var K=(0,H.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,W.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[q(r),V(r),G(r),J(r)]}),Q=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 Y=["normal","exception","active","success"],ee=u.forwardRef((e,t)=>{let r;let{prefixCls:l,className:p,rootClassName:f,steps:m,strokeColor:g,percent:h=0,size:b="default",showInfo:v=!0,type:$="line",status:y,format:w,style:k}=e,E=Q(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),x=u.useMemo(()=>{var t,r;let n=D(e);return parseInt(void 0!==n?null===(t=null!=n?n:0)||void 0===t?void 0:t.toString():null===(r=null!=h?h:0)||void 0===r?void 0:r.toString(),10)},[h,e.success,e.successPercent]),C=u.useMemo(()=>!Y.includes(y)&&x>=100?"success":y||"normal",[y,x]),{getPrefixCls:S,direction:O,progress:j}=u.useContext(d.E_),Z=S("progress",l),[R,N]=K(Z),M=u.useMemo(()=>{let t;if(!v)return null;let r=D(e),l=w||(e=>`${e}%`),s="line"===$;return w||"exception"!==C&&"success"!==C?t=l(I(h),I(r)):"exception"===C?t=s?u.createElement(i.Z,null):u.createElement(a.Z,null):"success"===C&&(t=s?u.createElement(n.Z,null):u.createElement(o.Z,null)),u.createElement("span",{className:`${Z}-text`,title:"string"==typeof t?t:void 0},t)},[v,h,x,C,$,Z,w]),A=Array.isArray(g)?g[0]:g,L="string"==typeof g||Array.isArray(g)?g:void 0;"line"===$?r=m?u.createElement(X,Object.assign({},e,{strokeColor:L,prefixCls:Z,steps:m}),M):u.createElement(T,Object.assign({},e,{strokeColor:A,prefixCls:Z,direction:O}),M):("circle"===$||"dashboard"===$)&&(r=u.createElement(F,Object.assign({},e,{strokeColor:A,prefixCls:Z,progressStatus:C}),M));let z=s()(Z,`${Z}-status-${C}`,`${Z}-${"dashboard"===$&&"circle"||m&&"steps"||$}`,{[`${Z}-inline-circle`]:"circle"===$&&P(b,"circle")[0]<=20,[`${Z}-show-info`]:v,[`${Z}-${b}`]:"string"==typeof b,[`${Z}-rtl`]:"rtl"===O},null==j?void 0:j.className,p,f,N);return R(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==j?void 0:j.style),k),className:z,role:"progressbar","aria-valuenow":x},(0,c.Z)(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))});var et=ee},66607:function(e,t,r){r.d(t,{default:function(){return eZ}});var n=r(67294),o=r(74902),i=r(94184),a=r.n(i),l=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 $(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 y=+new Date,w=0;function k(){return"rc-upload-".concat(y,"-").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(),a=t.toLowerCase(),l=[a];return(".jpg"===a||".jpeg"===a)&&(l=[".jpg",".jpeg"]),l.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,a,l;i=function(t){t.forEach(function(t){e(t,"".concat(o).concat(n.name,"/"))})},a=n.createReader(),l=[],function e(){a.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():i(l)})}()}};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,a=Array(i),l=0;l{let{uid:r}=t;return r===e.uid});return -1===n?r.push(e):r[n]=e,r}function G(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let J=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]},K=e=>0===e.indexOf("image/"),Q=e=>{if(e.type&&!e.thumbUrl)return K(e.type);let t=e.thumbUrl||e.url||"",r=J(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 Y(e){return new Promise(t=>{if(!e.type||!K(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,a=200,l=200,s=0,c=0;e>i?c=-((l=i*(200/e))-a)/2:s=-((a=e*(200/i))-l)/2,n.drawImage(o,s,c,a,l);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 ee=r(48689),et=r(23430),er=r(99611),en=r(69814),eo=r(83062);let ei=n.forwardRef((e,t)=>{var r,o;let{prefixCls:i,className:l,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:$,showDownloadIcon:y,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[I,D]=n.useState(!1);n.useEffect(()=>{let e=setTimeout(()=>{D(!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=a()(`${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=a()(`${i}-list-item-thumbnail`,{[`${i}-list-item-file`]:"uploading"!==j});P=n.createElement("div",{className:e},N)}}let M=a()(`${i}-list-item`,`${i}-list-item-${j}`),F="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,A=$?g(("function"==typeof k?k(d):k)||n.createElement(ee.Z,null),()=>S(d),i,c.removeFile):null,L=y&&"done"===j?g(("function"==typeof E?E(d):E)||n.createElement(et.Z,null),()=>C(d),i,c.downloadFile):null,z="picture-card"!==u&&"picture-circle"!==u&&n.createElement("span",{key:"download-delete",className:a()(`${i}-list-item-actions`,{picture:"picture"===u})},L,A),T=a()(`${i}-list-item-name`),X=d.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:T,title:d.name},F,{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],U=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(er.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==j&&n.createElement("span",{className:`${i}-list-item-actions`},U,"done"===j&&L,A),{getPrefixCls:W}=n.useContext(R.E_),B=W(),q=n.createElement("div",{className:M},P,X,H,I&&n.createElement(_.ZP,{motionName:`${B}-fade`,visible:"uploading"===j,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in d?n.createElement(en.Z,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return n.createElement("div",{className:a()(`${i}-list-item-progress`,t)},r)})),V=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(eo.Z,{title:V,getPopupContainer:e=>e.parentNode},q):q;return n.createElement("div",{className:a()(`${i}-list-item-container`,l),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)}),ea=n.forwardRef((e,t)=>{let{listType:r="text",previewFile:i=Y,onPreview:l,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=Q,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:$,downloadIcon:y,progress:w={size:[-1,2],showInfo:!1},appendAction:k,appendActionVisible:E=!0,itemRender:x,disabled:C}=e,S=(0,U.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(l)return null==t||t.preventDefault(),l(e)},I=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},D=e=>{null==c||c(e)},N=e=>{if(d)return d(e,r);let t="uploading"===e.status,o=p&&p(e)?n.createElement(X,null):n.createElement(F.Z,null),i=t?n.createElement(A.Z,null):n.createElement(L.Z,null);return"picture"===r?i=t?n.createElement(A.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,W.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,W.l$)(e)){let t=(0,W.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return n.createElement(B.ZP,Object.assign({},i,{icon:t}))}return n.createElement(B.ZP,Object.assign({},i),n.createElement("span",null,e))};n.useImperativeHandle(t,()=>({handlePreview:Z,handleDownload:I}));let{getPrefixCls:M}=n.useContext(R.E_),z=M("upload",f),T=M(),q=a()(`${z}-list`,`${z}-list-${r}`),V=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),G="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",J={motionDeadline:2e3,motionName:`${z}-${G}`,keys:V,motionAppear:O},K=n.useMemo(()=>{let e=Object.assign({},(0,H.Z)(T));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[T]);return"picture-card"!==r&&"picture-circle"!==r&&(J=Object.assign(Object.assign({},K),J)),n.createElement("div",{className:q},n.createElement(_.V4,Object.assign({},J,{component:!1}),e=>{let{key:t,file:o,className:i,style:a}=e;return n.createElement(ei,{key:t,locale:u,prefixCls:z,className:i,style:a,file:o,items:m,progress:w,listType:r,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:$,downloadIcon:y,iconRender:N,actionIconRender:P,itemRender:x,onPreview:Z,onDownload:I,onClose:D})}),k&&n.createElement(_.ZP,Object.assign({},J,{visible:E,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,W.Tm)(k,e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var el=r(14747),es=r(33507),ec=r(67968),eu=r(45503),ed=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}}}}}},ep=e=>{let{componentCls:t,antCls:r,iconCls:n,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,el.dF)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},el.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[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},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${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:'""'}}})}}},ef=r(23183),em=r(16932);let eg=new ef.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),eh=new ef.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var eb=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:eg},[`${r}-leave`]:{animationName:eh}}},{[`${t}-wrapper`]:(0,em.J$)(e)},eg,eh]},ev=r(16397),e$=r(10274);let ey=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[` - ${i}${i}-picture, - ${i}${i}-picture-card, - ${i}${i}-picture-circle - `]:{[a]:{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"},[`${a}-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"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${r}`]:{[`svg path[fill='${ev.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ev.blue.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},ew=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=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:l,height:l,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:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{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:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-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"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e$.C(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${a}-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 ek=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let eE=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 ex=(0,ec.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightLG:i}=e,a=(0,eu.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*n)/2+o,uploadPicCardSize:2.55*i});return[eE(a),ed(a),ey(a),ew(a),ep(a),eb(a),ek(a),(0,es.Z)(a)]},e=>({actionsColor:e.colorTextDescription}));let eC=`__LIST_IGNORE_${Date.now()}__`,eS=n.forwardRef((e,t)=>{var r;let{fileList:i,defaultFileList:l,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:$,progress:y,prefixCls:w,className:k,type:E="select",children:x,style:C,itemRender:S,maxCount:O,data:j={},multiple:F=!1,action:A="",accept:L="",supportServerRender:z=!0}=e,T=n.useContext(N.Z),X=null!=h?h:T,[_,U]=(0,I.Z)(l||[],{value:i,postState:e=>null!=e?e:[]}),[H,W]=n.useState("drop"),B=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 J=(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,D.flushSync)(()=>{U(n)});let a={file:e,fileList:n};r&&(a.event=r),(!i||n.some(t=>t.uid===e.uid))&&(0,D.flushSync)(()=>{null==f||f(a)})},K=e=>{let t=e.filter(e=>!e.file[eC]);if(!t.length)return;let r=t.map(e=>q(e.file)),n=(0,o.Z)(_);r.forEach(e=>{n=V(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}J(o,n)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!G(t,_))return;let n=q(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;let o=V(n,_);J(n,o)},Y=(e,t)=>{if(!G(t,_))return;let r=q(t);r.status="uploading",r.percent=e.percent;let n=V(r,_);J(r,n,e)},ee=(e,t,r)=>{if(!G(r,_))return;let n=q(r);n.error=e,n.response=t,n.status="error";let o=V(n,_);J(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,_);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==_||_.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(n=B.current)||void 0===n||n.abort(t),J(t,o))})},er=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};n.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:Q,onProgress:Y,onError:ee,fileList:_,upload:B.current}));let{getPrefixCls:en,direction:eo,upload:ei}=n.useContext(R.E_),el=en("upload",w),es=Object.assign(Object.assign({onBatchStart:K,onError:ee,onProgress:Y,onSuccess:Q},e),{data:j,multiple:F,action:A,accept:L,supportServerRender:z,prefixCls:el,disabled:X,beforeUpload:(t,r)=>{var n,o,i,a;return n=void 0,o=void 0,i=void 0,a=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[eC],e===eC)return Object.defineProperty(t,eC,{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(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.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,l)}s((a=a.apply(n,o||[])).next())})},onChange:void 0});delete es.className,delete es.style,(!x||X)&&delete es.id;let[ec,eu]=ex(el),[ed]=(0,P.Z)("Upload",M.Z.Upload),{showRemoveIcon:ep,showPreviewIcon:ef,showDownloadIcon:em,removeIcon:eg,previewIcon:eh,downloadIcon:eb}="boolean"==typeof c?{}:c,ev=(e,t)=>c?n.createElement(ea,{prefixCls:el,listType:u,items:_,previewFile:g,onPreview:d,onDownload:p,onRemove:et,showRemoveIcon:!X&&ep,showPreviewIcon:ef,showDownloadIcon:em,removeIcon:eg,previewIcon:eh,downloadIcon:eb,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:$,progress:y,appendAction:e,appendActionVisible:t,itemRender:S,disabled:X}):e,e$=a()(`${el}-wrapper`,k,eu,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=a()(eu,el,`${el}-drag`,{[`${el}-drag-uploading`]:_.some(e=>"uploading"===e.status),[`${el}-drag-hover`]:"dragover"===H,[`${el}-disabled`]:X,[`${el}-rtl`]:"rtl"===eo});return ec(n.createElement("span",{className:e$},n.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},n.createElement(Z,Object.assign({},es,{ref:B,className:`${el}-btn`}),n.createElement("div",{className:`${el}-drag-container`},x))),ev()))}let ew=a()(el,`${el}-select`,{[`${el}-disabled`]:X}),ek=(r=x?void 0:{display:"none"},n.createElement("div",{className:ew,style:r},n.createElement(Z,Object.assign({},es,{ref:B}))));return ec("picture-card"===u||"picture-circle"===u?n.createElement("span",{className:e$},ev(ek,!!x)):n.createElement("span",{className:e$},ek,ev()))});var eO=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 ej=n.forwardRef((e,t)=>{var{style:r,height:o}=e,i=eO(e,["style","height"]);return n.createElement(eS,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))});eS.Dragger=ej,eS.LIST_IGNORE=eC;var eZ=eS}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/396-c4c42ddf11c8d458.js b/pilot/server/static/_next/static/chunks/607-b224c640f6907e4b.js similarity index 99% rename from pilot/server/static/_next/static/chunks/396-c4c42ddf11c8d458.js rename to pilot/server/static/_next/static/chunks/607-b224c640f6907e4b.js index 490d69226..4a5c42434 100644 --- a/pilot/server/static/_next/static/chunks/396-c4c42ddf11c8d458.js +++ b/pilot/server/static/_next/static/chunks/607-b224c640f6907e4b.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[396],{84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),l=n.n(r),o=n(50132),a=n(67294),i=n(53124),c=n(98866),s=n(65223);let u=a.createContext(null);var d=n(63185),f=n(45353),p=n(17415),m=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let P=S("checkbox",r),[T,z]=(0,d.ZP)(P),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:M.checked,[`${P}-wrapper-disabled`]:I,[`${P}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${P}-indeterminate`]:b},p.A,z);return T(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:P,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,P={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},T=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:T,style:p},I,{ref:t}),a.createElement(u.Provider,{value:P},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,P=e.record,T=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,F=e.fixLeft,W=e.fixRight,D=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(P,e),r=n,l=void 0;if(T){var o=T(n,P,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,P,x,z,T,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof F&&ee,ec="number"==typeof W&ⅇei&&(ea.position="sticky",ea.left=F),ec&&(ea.position="sticky",ea.right=W);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),D&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;P&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;P&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),P=n(45987),T=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,P.Z)(e,T);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},F=n(74204),W=n(64217),D=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,P=S.onTriggerExpand,T=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),F=_[0],W=_[1],D=m&&m.has(s);u.useEffect(function(){D&&W(!0)},[D]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(P);Y.current=P;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof T?t=T:"function"==typeof T&&(t=T(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,P.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,P.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),T=o[o.length-1],z={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,D.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,D.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,D.Z)(e),(0,D.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,D.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,P.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,F.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,F.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,T=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(T,e)||t},[T]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tF=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tF(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tD=n.expandable,tK=(0,P.Z)(n,q),!1===(tW="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tD):tK).showExpandColumn&&(tW.expandIconColumnIndex=-1),tV=tW.expandIcon,tX=tW.expandedRowKeys,tU=tW.defaultExpandedRowKeys,tG=tW.defaultExpandAllRows,tY=tW.expandedRowRender,tJ=tW.onExpand,tq=tW.onExpandedRowsChange,tQ=tW.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,D.Z)(t4)):t=[].concat((0,D.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tW,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eP=(0,a.Z)(ej,2),eT=eP[0],ez=eP[1],eM=u.useMemo(function(){return{columns:eT,flattenColumns:ez}},[eT,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eF=u.useState(!1),eW=(0,a.Z)(eF,2),eD=eW[0],eK=eW[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t7=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eF=n(71577),eW=n(84567),eD=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,D.Z)(t),(0,D.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[P,T]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;T(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},F=()=>{R(!1),_(P())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?T(($||[]).map(e=>String(e))):T([])},D=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(P())},clearFilters:W,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=P()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eW.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));T(e)}else T([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:D,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eW.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:P(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eF.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>W()},x.filterReset),u.createElement(eF.ZP,{type:"primary",size:"small",onClick:F},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eD.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&T(j||[]),R(e),e||i.filterDropdown||F()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,D.Z)(r),(0,D.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e7(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e6=e=>e.flatMap(e=>"children"in e?[e].concat((0,D.Z)(e6(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e6(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,D.Z)(n),(0,D.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),P=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{P(R)},[R]);let{keyEntities:T}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,D.Z)(e),(0,D.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,T,H);return[e||[],t]},[R,v,T,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[F,W]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;P(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,D.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eD.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eW.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),W(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eW.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([F,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,D.Z)(L),[o]),!0,T,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},T,H).checkedKeys}V(o,!c,l,t)}c?W(null):W(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,D.Z)(t))}else o=[tc].concat((0,D.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,F,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,D.Z)(r),(0,D.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),l=n.n(r),o=n(50132),a=n(67294),i=n(53124),c=n(98866),s=n(65223);let u=a.createContext(null);var d=n(63185),f=n(45353),p=n(17415),m=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let P=S("checkbox",r),[T,z]=(0,d.ZP)(P),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:M.checked,[`${P}-wrapper-disabled`]:I,[`${P}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${P}-indeterminate`]:b},p.A,z);return T(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:P,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,P={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},T=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:T,style:p},I,{ref:t}),a.createElement(u.Provider,{value:P},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,P=e.record,T=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,F=e.fixLeft,W=e.fixRight,D=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(P,e),r=n,l=void 0;if(T){var o=T(n,P,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,P,x,z,T,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof F&&ee,ec="number"==typeof W&ⅇei&&(ea.position="sticky",ea.left=F),ec&&(ea.position="sticky",ea.right=W);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),D&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;P&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;P&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),P=n(45987),T=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,P.Z)(e,T);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},F=n(74204),W=n(64217),D=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,P=S.onTriggerExpand,T=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),F=_[0],W=_[1],D=m&&m.has(s);u.useEffect(function(){D&&W(!0)},[D]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(P);Y.current=P;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof T?t=T:"function"==typeof T&&(t=T(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,P.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,P.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),T=o[o.length-1],z={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,D.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,D.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,D.Z)(e),(0,D.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,D.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,P.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,F.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,F.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,T=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(T,e)||t},[T]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tF=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tF(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tD=n.expandable,tK=(0,P.Z)(n,q),!1===(tW="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tD):tK).showExpandColumn&&(tW.expandIconColumnIndex=-1),tV=tW.expandIcon,tX=tW.expandedRowKeys,tU=tW.defaultExpandedRowKeys,tG=tW.defaultExpandAllRows,tY=tW.expandedRowRender,tJ=tW.onExpand,tq=tW.onExpandedRowsChange,tQ=tW.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,D.Z)(t4)):t=[].concat((0,D.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tW,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eP=(0,a.Z)(ej,2),eT=eP[0],ez=eP[1],eM=u.useMemo(function(){return{columns:eT,flattenColumns:ez}},[eT,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eF=u.useState(!1),eW=(0,a.Z)(eF,2),eD=eW[0],eK=eW[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t7=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eF=n(71577),eW=n(84567),eD=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,D.Z)(t),(0,D.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[P,T]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;T(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},F=()=>{R(!1),_(P())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?T(($||[]).map(e=>String(e))):T([])},D=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(P())},clearFilters:W,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=P()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eW.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));T(e)}else T([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:D,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eW.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:P(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eF.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>W()},x.filterReset),u.createElement(eF.ZP,{type:"primary",size:"small",onClick:F},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eD.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&T(j||[]),R(e),e||i.filterDropdown||F()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,D.Z)(r),(0,D.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e7(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e6=e=>e.flatMap(e=>"children"in e?[e].concat((0,D.Z)(e6(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e6(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=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 l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,D.Z)(n),(0,D.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),P=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{P(R)},[R]);let{keyEntities:T}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,D.Z)(e),(0,D.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,T,H);return[e||[],t]},[R,v,T,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[F,W]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;P(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,D.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eD.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eW.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),W(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eW.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([F,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,D.Z)(L),[o]),!0,T,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},T,H).checkedKeys}V(o,!c,l,t)}c?W(null):W(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,D.Z)(t))}else o=[tc].concat((0,D.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,F,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,D.Z)(r),(0,D.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` diff --git a/pilot/server/static/_next/static/chunks/739.985aeeb0618c336c.js b/pilot/server/static/_next/static/chunks/739.82283c4d1eea95ee.js similarity index 88% rename from pilot/server/static/_next/static/chunks/739.985aeeb0618c336c.js rename to pilot/server/static/_next/static/chunks/739.82283c4d1eea95ee.js index 6671288bf..bfdc3e13b 100644 --- a/pilot/server/static/_next/static/chunks/739.985aeeb0618c336c.js +++ b/pilot/server/static/_next/static/chunks/739.82283c4d1eea95ee.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[739],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},5165:function(e,t,i){"use strict";i.d(t,{w:function(){return tK}});var n=i(97582),r={line_chart:{id:"line_chart",name:"Line Chart",alias:["Lines"],family:["LineCharts"],def:"A line chart uses lines with segments to show changes in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},step_line_chart:{id:"step_line_chart",name:"Step Line Chart",alias:["Step Lines"],family:["LineCharts"],def:"A step line chart is a line chart in which points of each line are connected by horizontal and vertical line segments, looking like steps of a staircase.",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},area_chart:{id:"area_chart",name:"Area Chart",alias:[],family:["AreaCharts"],def:"An area chart uses series of line segments with overlapped areas to show the change in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_area_chart:{id:"stacked_area_chart",name:"Stacked Area Chart",alias:[],family:["AreaCharts"],def:"A stacked area chart uses layered line segments with different styles of padding regions to display how multiple sets of data change in the same ordinal dimension, and the endpoint heights of the segments on the same dimension tick are accumulated by value.",purpose:["Composition","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},percent_stacked_area_chart:{id:"percent_stacked_area_chart",name:"Percent Stacked Area Chart",alias:["Percent Stacked Area","% Stacked Area","100% Stacked Area"],family:["AreaCharts"],def:"A percent stacked area chart is an extented stacked area chart in which the height of the endpoints of the line segment on the same dimension tick is the accumulated proportion of the ratio, which is 100% of the total.",purpose:["Comparison","Composition","Proportion","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},column_chart:{id:"column_chart",name:"Column Chart",alias:["Columns"],family:["ColumnCharts"],def:"A column chart uses series of columns to display the value of the dimension. The horizontal axis shows the classification dimension and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_column_chart:{id:"grouped_column_chart",name:"Grouped Column Chart",alias:["Grouped Column"],family:["ColumnCharts"],def:"A grouped column chart uses columns of different colors to form a group to display the values of dimensions. The horizontal axis indicates the grouping of categories, the color indicates the categories, and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_column_chart:{id:"stacked_column_chart",name:"Stacked Column Chart",alias:["Stacked Column"],family:["ColumnCharts"],def:"A stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_column_chart:{id:"percent_stacked_column_chart",name:"Percent Stacked Column Chart",alias:["Percent Stacked Column","% Stacked Column","100% Stacked Column"],family:["ColumnCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},range_column_chart:{id:"range_column_chart",name:"Range Column Chart",alias:[],family:["ColumnCharts"],def:"A column chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Length"],recRate:"Recommended"},waterfall_chart:{id:"waterfall_chart",name:"Waterfall Chart",alias:["Flying Bricks Chart","Mario Chart","Bridge Chart","Cascade Chart"],family:["ColumnCharts"],def:"A waterfall chart is used to portray how an initial value is affected by a series of intermediate positive or negative values",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal","Time","Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},histogram:{id:"histogram",name:"Histogram",alias:[],family:["ColumnCharts"],def:"A histogram is an accurate representation of the distribution of numerical data.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},bar_chart:{id:"bar_chart",name:"Bar Chart",alias:["Bars"],family:["BarCharts"],def:"A bar chart uses series of bars to display the value of the dimension. The vertical axis shows the classification dimension and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},stacked_bar_chart:{id:"stacked_bar_chart",name:"Stacked Bar Chart",alias:["Stacked Bar"],family:["BarCharts"],def:"A stacked bar chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_bar_chart:{id:"percent_stacked_bar_chart",name:"Percent Stacked Bar Chart",alias:["Percent Stacked Bar","% Stacked Bar","100% Stacked Bar"],family:["BarCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},grouped_bar_chart:{id:"grouped_bar_chart",name:"Grouped Bar Chart",alias:["Grouped Bar"],family:["BarCharts"],def:"A grouped bar chart uses bars of different colors to form a group to display the values of the dimensions. The vertical axis indicates the grouping of categories, the color indicates the categories, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},range_bar_chart:{id:"range_bar_chart",name:"Range Bar Chart",alias:[],family:["BarCharts"],def:"A bar chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Length"],recRate:"Recommended"},radial_bar_chart:{id:"radial_bar_chart",name:"Radial Bar Chart",alias:["Radial Column Chart"],family:["BarCharts"],def:"A bar chart that is plotted in the polar coordinate system. The axis along radius shows the classification dimension and the angle shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color"],recRate:"Recommended"},bullet_chart:{id:"bullet_chart",name:"Bullet Chart",alias:[],family:["BarCharts"],def:"A bullet graph is a variation of a bar graph developed by Stephen Few. Seemingly inspired by the traditional thermometer charts and progress bars found in many dashboards, the bullet graph serves as a replacement for dashboard gauges and meters.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Position","Color"],recRate:"Recommended"},pie_chart:{id:"pie_chart",name:"Pie Chart",alias:["Circle Chart","Pie"],family:["PieCharts"],def:"A pie chart is a chart that the classification and proportion of data are represented by the color and arc length (angle, area) of the sector.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Area","Color"],recRate:"Use with Caution"},donut_chart:{id:"donut_chart",name:"Donut Chart",alias:["Donut","Doughnut","Doughnut Chart","Ring Chart"],family:["PieCharts"],def:"A donut chart is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["ArcLength"],recRate:"Recommended"},nested_pie_chart:{id:"nested_pie_chart",name:"Nested Pie Chart",alias:["Nested Circle Chart","Nested Pie","Nested Donut Chart"],family:["PieCharts"],def:"A nested pie chart is a chart that contains several donut charts, where all the donut charts share the same center in position.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:["Angle","Area","Color","Position"],recRate:"Use with Caution"},rose_chart:{id:"rose_chart",name:"Rose Chart",alias:["Nightingale Chart","Polar Area Chart","Coxcomb Chart"],family:["PieCharts"],def:"Nightingale Rose Chart is a peculiar combination of the Radar Chart and Stacked Column Chart types of data visualization.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color","Length"],recRate:"Use with Caution"},scatter_plot:{id:"scatter_plot",name:"Scatter Plot",alias:["Scatter Chart","Scatterplot"],family:["ScatterCharts"],def:"A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for series of data.",purpose:["Comparison","Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},bubble_chart:{id:"bubble_chart",name:"Bubble Chart",alias:["Bubble Chart"],family:["ScatterCharts"],def:"A bubble chart is a type of chart that displays four dimensions of data with x, y positions, circle size and circle color.",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position","Size"],recRate:"Recommended"},non_ribbon_chord_diagram:{id:"non_ribbon_chord_diagram",name:"Non-Ribbon Chord Diagram",alias:[],family:["GeneralGraph"],def:"A stripped-down version of a Chord Diagram, with only the connection lines showing. This provides more emphasis on the connections within the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},arc_diagram:{id:"arc_diagram",name:"Arc Diagram",alias:[],family:["GeneralGraph"],def:"A graph where the edges are represented as arcs.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},chord_diagram:{id:"chord_diagram",name:"Chord Diagram",alias:[],family:["GeneralGraph"],def:"A graphical method of displaying the inter-relationships between data in a matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs connecting the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},treemap:{id:"treemap",name:"Treemap",alias:[],family:["TreeGraph"],def:"A visual representation of a data tree with nodes. Each node is displayed as a rectangle, sized and colored according to values that you assign.",purpose:["Composition","Comparison","Hierarchy"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Area"],recRate:"Recommended"},sankey_diagram:{id:"sankey_diagram",name:"Sankey Diagram",alias:[],family:["GeneralGraph"],def:"A graph shows the flows with weights between objects.",purpose:["Flow","Trend","Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},funnel_chart:{id:"funnel_chart",name:"Funnel Chart",alias:[],family:["FunnelCharts"],def:"A funnel chart is often used to represent stages in a sales process and show the amount of potential revenue for each stage.",purpose:["Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},mirror_funnel_chart:{id:"mirror_funnel_chart",name:"Mirror Funnel Chart",alias:["Contrast Funnel Chart"],family:["FunnelCharts"],def:"A mirror funnel chart is a funnel chart divided into two series by a central axis.",purpose:["Comparison","Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length","Direction"],recRate:"Recommended"},box_plot:{id:"box_plot",name:"Box Plot",alias:["Box and Whisker Plot","boxplot"],family:["BarCharts"],def:"A box plot is often used to graphically depict groups of numerical data through their quartiles. Box plots may also have lines extending from the boxes indicating variability outside the upper and lower quartiles. Outliers may be plotted as individual points.",purpose:["Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},heatmap:{id:"heatmap",name:"Heatmap",alias:[],family:["HeatmapCharts"],def:"A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},density_heatmap:{id:"density_heatmap",name:"Density Heatmap",alias:["Heatmap"],family:["HeatmapCharts"],def:"A density heatmap is a heatmap for representing the density of dots.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]}],channel:["Color","Position","Area"],recRate:"Recommended"},radar_chart:{id:"radar_chart",name:"Radar Chart",alias:["Web Chart","Spider Chart","Star Chart","Cobweb Chart","Irregular Polygon","Kiviat diagram"],family:["RadarCharts"],def:"A radar chart maps series of data volume of multiple dimensions onto the axes. Starting at the same center point, usually ending at the edge of the circle, connecting the same set of points using lines.",purpose:["Comparison"],coord:["Radar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},wordcloud:{id:"wordcloud",name:"Word Cloud",alias:["Wordle","Tag Cloud","Text Cloud"],family:["Others"],def:"A word cloud is a collection, or cluster, of words depicted in different sizes, colors, and shapes, which takes a piece of text as input. Typically, the font size in the word cloud is encoded as the word frequency in the input text.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Diagram"],shape:["Scatter"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal"]},{minQty:0,maxQty:1,fieldConditions:["Interval"]}],channel:["Size","Position","Color"],recRate:"Recommended"},candlestick_chart:{id:"candlestick_chart",name:"Candlestick Chart",alias:["Japanese Candlestick Chart)"],family:["BarCharts"],def:"A candlestick chart is a specific version of box plot, which is a style of financial chart used to describe price movements of a security, derivative, or currency.",purpose:["Trend","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},compact_box_tree:{id:"compact_box_tree",name:"CompactBox Tree",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the nodes with same depth on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},dendrogram:{id:"dendrogram",name:"Dendrogram",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the leaves on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},indented_tree:{id:"indented_tree",name:"Indented Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout where the hierarchy of tree is represented by the horizontal indentation, and each element will occupy one row/column. It is commonly used to represent the file directory structure.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_tree:{id:"radial_tree",name:"Radial Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which places the root at the center, and the branches around the root radially.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},flow_diagram:{id:"flow_diagram",name:"Flow Diagram",alias:["Dagre Graph Layout","Dagre","Flow Chart"],family:["GeneralGraph"],def:"Directed flow graph.",purpose:["Relation","Flow"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fruchterman_layout_graph:{id:"fruchterman_layout_graph",name:"Fruchterman Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},force_directed_layout_graph:{id:"force_directed_layout_graph",name:"Force Directed Graph Layout",alias:[],family:["GeneralGraph"],def:"The classical force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fa2_layout_graph:{id:"fa2_layout_graph",name:"Force Atlas 2 Graph Layout",alias:["FA2 Layout"],family:["GeneralGraph"],def:"A type of force directed graph layout algorithm. It focuses more on the degree of the node when calculating the force than the classical force-directed algorithm .",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},mds_layout_graph:{id:"mds_layout_graph",name:"Multi-Dimensional Scaling Layout",alias:["MDS Layout"],family:["GeneralGraph"],def:"A type of dimension reduction algorithm that could be used for calculating graph layout. MDS (Multidimensional scaling) is used for project high dimensional data onto low dimensional space.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},circular_layout_graph:{id:"circular_layout_graph",name:"Circular Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes on a circle.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},spiral_layout_graph:{id:"spiral_layout_graph",name:"Spiral Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes along a spiral line.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_layout_graph:{id:"radial_layout_graph",name:"Radial Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which places a focus node on the center and the others on the concentrics centered at the focus node according to the shortest path length to the it.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},concentric_layout_graph:{id:"concentric_layout_graph",name:"Concentric Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges the nodes on concentrics.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},grid_layout_graph:{id:"grid_layout_graph",name:"Grid Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout arranges the nodes on grids.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"}};function o(e,t){return t.every(function(t){return e.includes(t)})}var s=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],a=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function l(e,t){return t.some(function(t){return e.includes(t)})}function h(e,t){return e.distinctt.distinct?-1:0}var u={"bar-series-qty":.5,"data-check":1,"data-field-qty":1,"diff-pie-sector":.5,"landscape-or-portrait":.3,"limit-series":1,"line-field-time-ordinal":1,"no-redundant-field":1,"nominal-enum-combinatorial":1,"purpose-check":1,"series-qty-limit":.8},d=function(e,t,i,r,o,s){var a=1;return Object.values(i).filter(function(i){var s,a,l,h=(null===(s=i.option)||void 0===s?void 0:s.weight)||u[i.id]||1,d=null===(a=i.option)||void 0===a?void 0:a.extra;return i.type===r&&i.trigger((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},o),{weight:h}),d),{chartType:e,chartWIKI:t}))&&!(null===(l=i.option)||void 0===l?void 0:l.off)}).forEach(function(i){var l,h,d=(null===(l=i.option)||void 0===l?void 0:l.weight)||u[i.id]||1,c=null===(h=i.option)||void 0===h?void 0:h.extra,f=i.validator((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},o),{weight:d}),c),{chartType:e,chartWIKI:t})),g=d*f;a*=g,s.push({phase:"ADVISE",ruleId:i.id,score:g,base:f,weight:d,ruleType:r})}),a},c=["pie_chart","donut_chart"],f=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function g(e){var t=e.chartType,i=e.dataProps,n=e.preferences;return!!(i&&t&&n&&n.canvasLayout)}var p=["line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart"],m=["bar_chart","column_chart","grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];function _(e){return e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])})}var E=["pie_chart","donut_chart","radar_chart","rose_chart"],v=i(96486);function b(e){return"number"==typeof e}function C(e){return"string"==typeof e||"boolean"==typeof e}function S(e){return e instanceof Date}function y(e){var t=e.encode,i=e.data,r=e.scale,o=(0,v.mapValues)(t,function(e,t){var n,o,s;return{field:e,type:void 0!==(n=null==r?void 0:r[t].type)?function(e){switch(e){case"linear":case"log":case"pow":case"sqrt":case"qunatile":case"threshold":case"quantize":case"sequential":return"quantitative";case"time":return"temporal";case"ordinal":case"point":case"band":return"categorical";default:throw Error("Unkonwn scale type: ".concat(e,"."))}}(n):function(e){if(e.some(b))return"quantitative";if(e.some(C))return"categorical";if(e.some(S))return"temporal";throw Error("Unknown type: ".concat(typeof e[0]))}((o=i,"function"==typeof(s=e)?o.map(s):"string"==typeof s&&o.some(function(e){return void 0!==e[s]})?o.map(function(e){return e[s]}):o.map(function(){return s})))}});return(0,n.pi)((0,n.pi)({},e),{encode:o})}var T=["line_chart"],R={"bar-series-qty":{id:"bar-series-qty",type:"SOFT",docs:{lintText:"Bar chart should has proper number of bars or bar groups."},trigger:function(e){var t=e.chartType;return s.includes(t)},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i&&n){var r=i.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),s=r&&r.count?r.count:0;s>20&&(t=20/s)}return t<.1?.1:t}},"bar-without-axis-min":{id:"bar-without-axis-min",type:"DESIGN",docs:{lintText:"It is not recommended to set the minimum value of axis for the bar or column chart.",fixText:"Remove the minimum value config of axis."},trigger:function(e){var t=e.chartType;return a.includes(t)},optimizer:function(e,t){var i,n,r=t.scale;if(!r)return{};var o=null===(i=r.x)||void 0===i?void 0:i.domainMin,s=null===(n=r.y)||void 0===n?void 0:n.domainMin;if(o||s){var a=JSON.parse(JSON.stringify(r));return o&&(a.x.domainMin=0),s&&(a.y.domainMin=0),{scale:a}}return{}}},"data-check":{id:"data-check",type:"HARD",docs:{lintText:"Data must satisfy the data prerequisites."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){t=1;var o=r[n].dataPres||[];o.forEach(function(e){!function(e,t){var i=t.map(function(e){return e.levelOfMeasurements});if(i){var n=0;if(i.forEach(function(t){t&&l(t,e.fieldConditions)&&(n+=1)}),n>=e.minQty&&(n<=e.maxQty||"*"===e.maxQty))return!0}return!1}(e,i)&&(t=0)}),i.map(function(e){return e.levelOfMeasurements}).forEach(function(e){var i=!1;o.forEach(function(t){e&&l(e,t.fieldConditions)&&(i=!0)}),i||(t=0)})}return t}},"data-field-qty":{id:"data-field-qty",type:"HARD",docs:{lintText:"Data must have at least the min qty of the prerequisite."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){t=1;var o=(r[n].dataPres||[]).map(function(e){return e.minQty}).reduce(function(e,t){return e+t});i.length&&i.length>=o&&(t=1)}return t}},"diff-pie-sector":{id:"diff-pie-sector",type:"SOFT",docs:{lintText:"The difference between sectors of a pie chart should be large enough."},trigger:function(e){var t=e.chartType;return c.includes(t)},validator:function(e){var t=1,i=e.dataProps;if(i){var n=i.find(function(e){return o(e.levelOfMeasurements,["Interval"])});if(n&&n.sum&&n.rawData){var r=1/n.sum,s=n.rawData.map(function(e){return e*r}).reduce(function(e,t){return e*t}),a=n.rawData.length,l=Math.pow(1/a,a);t=2*(Math.abs(l-Math.abs(s))/l)}}return t<.1?.1:t}},"landscape-or-portrait":{id:"landscape-or-portrait",type:"SOFT",docs:{lintText:"Recommend column charts for landscape layout and bar charts for portrait layout."},trigger:function(e){return f.includes(e.chartType)&&g(e)},validator:function(e){var t=1,i=e.chartType,n=e.preferences;return g(e)&&("portrait"===n.canvasLayout&&["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart"].includes(i)?t=5:"landscape"===n.canvasLayout&&["column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"].includes(i)&&(t=5)),t}},"limit-series":{id:"limit-series",type:"SOFT",docs:{lintText:"Avoid too many values in one series."},trigger:function(e){return e.dataProps.filter(function(e){return l(e.levelOfMeasurements,["Nominal","Ordinal"])}).length>=2},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i){var r=i.filter(function(e){return l(e.levelOfMeasurements,["Nominal","Ordinal"])});if(r.length>=2){var o=r.sort(h)[1];o.distinct&&(t=o.distinct>10?.1:1/o.distinct,o.distinct>6&&"heatmap"===n?t=5:"heatmap"===n&&(t=1))}}return t}},"line-field-time-ordinal":{id:"line-field-time-ordinal",type:"SOFT",docs:{lintText:"Data containing time or ordinal fields are suitable for line or area charts."},trigger:function(e){var t=e.chartType;return p.includes(t)},validator:function(e){var t=1,i=e.dataProps;return i&&i.find(function(e){return l(e.levelOfMeasurements,["Ordinal","Time"])})&&(t=5),t}},"no-redundant-field":{id:"no-redundant-field",type:"HARD",docs:{lintText:"No redundant field."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){var o=(r[n].dataPres||[]).map(function(e){return"*"===e.maxQty?99:e.maxQty}).reduce(function(e,t){return e+t});i.length&&i.length<=o&&(t=1)}return t}},"nominal-enum-combinatorial":{id:"nominal-enum-combinatorial",type:"SOFT",docs:{lintText:"Single (Basic) and Multi (Stacked, Grouped,...) charts should be optimized recommended by nominal enums combinatorial numbers."},trigger:function(e){var t=e.chartType,i=e.dataProps;return m.includes(t)&&_(i).length>=2},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i){var r=_(i);if(r.length>=2){var o=r.sort(h),s=o[0],a=o[1];s.distinct===s.count&&["bar_chart","column_chart"].includes(n)&&(t=5),s.count&&s.distinct&&a.distinct&&s.count>s.distinct&&["grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"].includes(n)&&(t=5)}}return t}},"purpose-check":{id:"purpose-check",type:"HARD",docs:{lintText:"Choose chart types that satisfy the purpose, if purpose is defined."},trigger:function(){return!0},validator:function(e){var t=0,i=e.chartType,n=e.purpose,r=e.chartWIKI;return n?(i&&r[i]&&n&&(r[i].purpose||"").includes(n)&&(t=1),t):t=1}},"series-qty-limit":{id:"series-qty-limit",type:"SOFT",docs:{lintText:"Some charts should has at most N values for the series."},trigger:function(e){var t=e.chartType;return E.includes(t)},validator:function(e){var t=1,i=e.dataProps,n=e.chartType,r=e.limit;if((!Number.isInteger(r)||r<=0)&&(r=6,("pie_chart"===n||"donut_chart"===n||"rose_chart"===n)&&(r=6),"radar_chart"===n&&(r=8)),i){var s=i.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),a=s&&s.count?s.count:0;a>=2&&a<=r&&(t=5+2/a)}return t}},"x-axis-line-fading":{id:"x-axis-line-fading",type:"DESIGN",docs:{lintText:"Adjust axis to make it prettier"},trigger:function(e){var t=e.chartType;return T.includes(t)},optimizer:function(e,t){var i,n=y(t).encode;if(n&&(null===(i=n.y)||void 0===i?void 0:i.type)==="quantitative"){var r=e.find(function(e){var t;return e.name===(null===(t=n.y)||void 0===t?void 0:t.field)});if(r){var o=r.maximum-r.minimum;if(r.minimum&&r.maximum&&o<2*r.maximum/3){var s=Math.floor(r.minimum-o/5);return{axis:{x:{tick:!1}},scale:{y:{domainMin:s>0?s:0}},clip:!0}}}}return{}}}},A=Object.keys(R),N=function(e){var t={};return e.forEach(function(e){Object.keys(R).includes(e)&&(t[e]=R[e])}),t},O=function(e){if(!e)return N(A);var t=N(A);if(e.exclude&&e.exclude.forEach(function(e){Object.keys(t).includes(e)&&delete t[e]}),e.include){var i=e.include;Object.keys(t).forEach(function(e){i.includes(e)||delete t[e]})}var r=(0,n.pi)((0,n.pi)({},t),e.custom),o=e.options;return o&&Object.keys(o).forEach(function(e){if(Object.keys(r).includes(e)){var t=o[e];r[e]=(0,n.pi)((0,n.pi)({},r[e]),{option:t})}}),r},L=[[!0,!1],[0,1],["true","false"],["Yes","No"],["True","False"],["0","1"],["是","否"]],I="([-_./\\s])",w="(18|19|20)\\d{2}",D="(0?[1-9]|1[012])",x="(0?[1-9]|[12]\\d|3[01])",M="(0?\\d|1\\d|2[0-4])",k="(0?\\d|[012345]\\d)",P="(Z|[+-]".concat(M,"(:").concat(k,")?)");function F(e){return null==e||""===e||Number.isNaN(e)||"null"===e}function B(e){return"string"==typeof e}function U(e){return"number"==typeof e}function H(e){if(B(e)){var t=!1,i=e;/^[+-]/.test(i)&&(i=i.slice(1));for(var n=0;n0&&t<100,"The percent cannot be between (0, 100)."),(i?e:e.sort(function(e,t){return e>t?1:-1}))[Math.ceil(e.length*t/100)-1]}function eo(e){var t=en(e),i=J(e,"variance");return void 0!==i?i:Q(e,"variance",e.reduce(function(e,i){return e+Math.pow(i-t,2)},0)/e.length)}function es(e){return Math.sqrt(eo(e))}function ea(e){var t={};return e.forEach(function(e){var i="".concat(e);t[i]?t[i]+=1:t[i]=1}),t}var el=function(e){var t,i,r=(void 0===(t=e)&&(t=!0),["".concat(w),"".concat(w).concat(I).concat(t?"":"?","W").concat("([0-4]\\d|5[0-2])","(").concat(I).concat(t?"":"?").concat("([1-7])",")?"),"".concat(D).concat(I).concat(t?"":"?").concat(x).concat(I).concat(t?"":"?").concat(w),"".concat(w).concat(I).concat(t?"":"?").concat(D).concat(I).concat(t?"":"?").concat(x),"".concat(w).concat(I).concat(t?"":"?").concat(D),"".concat(w).concat(I).concat(t?"":"?").concat("((([0-2]\\d|3[0-5])\\d)|36[0-6])")]),o=(void 0===(i=e)&&(i=!0),["".concat(M,":").concat(i?"":"?").concat(k,":").concat(i?"":"?").concat(k,"([.,]").concat("\\d{1,4}",")?").concat(P,"?"),"".concat(M,":").concat(i?"":"?").concat(k,"?").concat(P)]),s=(0,n.ev)((0,n.ev)([],(0,n.CR)(r),!1),(0,n.CR)(o),!1);return r.forEach(function(e){o.forEach(function(t){s.push("".concat(e,"[T\\s]").concat(t))})}),s.map(function(e){return new RegExp("^".concat(e,"$"))})};function eh(e,t){if(B(e)){for(var i=el(t),n=0;n0&&(c.generateColumns([0],null==i?void 0:i.columns),c.colData=[c.data],c.data=c.data.map(function(e){return[e]})),Y(g)){var p=q(g.length);c.generateDataAndColDataFromArray(!1,t,p,null==i?void 0:i.fillValue,null==i?void 0:i.columnTypes),c.generateColumns(p,null==i?void 0:i.columns)}if(K(g)){for(var m=[],f=0;f=0&&m>=0||_.length>0,"The rowLoc is not found in the indexes."),p>=0&&m>=0&&(A=this.data.slice(p,m),N=this.indexes.slice(p,m)),_.length>0)for(var a=0;a<_.length;a+=1){var C=_[a];A.push(this.data[C]),N.push(this.indexes[C])}if(E>=0&&v>=0){for(var a=0;a0){for(var O=[],L=A.slice(),a=0;a=0&&p>=0||m.length>0,"The colLoc is illegal"),V(i)&&q(this.columns.length).includes(i)&&(_=i,E=i+1),Y(i))for(var a=0;a=0&&p>=0||m.length>0,"The rowLoc is not found in the indexes.");var R=[],A=[];if(g>=0&&p>=0)R=this.data.slice(g,p),A=this.indexes.slice(g,p);else if(m.length>0)for(var a=0;a=0&&E>=0||v.length>0,"The colLoc is not found in the columns index."),_>=0&&E>=0){for(var a=0;a0){for(var N=[],O=R.slice(),a=0;a1){var E={},v=f;g.forEach(function(t){"date"===t?(E.date=e(v.filter(function(e){return eh(e)}),i),v=v.filter(function(e){return!eh(e)})):"integer"===t?(E.integer=e(v.filter(function(e){return W(e)}),i),v=v.filter(function(e){return!W(e)})):"float"===t?(E.float=e(v.filter(function(e){return G(e)}),i),v=v.filter(function(e){return!G(e)})):"string"===t&&(E.string=e(v.filter(function(e){return"string"===ed(e,i)})),v=v.filter(function(e){return"string"!==ed(e,i)}))}),_.meta=E}2===_.distinct&&"date"!==_.recommendation&&(d.length>=100?_.recommendation="boolean":z(m,!0)&&(_.recommendation="boolean")),"string"===u&&Object.assign(_,{maxLength:et(r=(n=f.map(function(e){return"".concat(e)})).map(function(e){return e.length})),minLength:ee(r),meanLength:en(r),containsChar:n.some(function(e){return/[A-z]/.test(e)}),containsDigit:n.some(function(e){return/[0-9]/.test(e)}),containsSpace:n.some(function(e){return/\s/.test(e)})}),("integer"===u||"float"===u)&&Object.assign(_,{minimum:ee(o=f.map(function(e){return 1*e})),maximum:et(o),mean:en(o),percentile5:er(o,5),percentile25:er(o,25),percentile50:er(o,50),percentile75:er(o,75),percentile95:er(o,95),sum:ei(o),variance:eo(o),standardDeviation:es(o),zeros:o.filter(function(e){return 0===e}).length}),"date"===u&&Object.assign(_,(s="integer"===_.type,a=f.map(function(e){if(s){var t="".concat(e);if(8===t.length)return new Date("".concat(t.substring(0,4),"/").concat(t.substring(4,2),"/").concat(t.substring(6,2))).getTime()}return new Date(e).getTime()}),{minimum:f[void 0!==(l=J(a,"minIndex"))?l:Q(a,"minIndex",function(e){for(var t=e[0],i=0,n=0;nt&&(i=n,t=e[n]);return i}(a))]}));var b=[];return"boolean"!==_.recommendation&&("string"!==_.recommendation||eu(_))||b.push("Nominal"),eu(_)&&b.push("Ordinal"),("integer"===_.recommendation||"float"===_.recommendation)&&b.push("Interval"),"integer"===_.recommendation&&b.push("Discrete"),"float"===_.recommendation&&b.push("Continuous"),"date"===_.recommendation&&b.push("Time"),_.levelOfMeasurements=b,_}(this.colData[i],this.extra.strictDatePattern)),{name:String(r)}))}return t},t.prototype.toString=function(){for(var e=this,t=Array(this.columns.length+1).fill(0),i=0;it[0]&&(t[0]=n)}for(var i=0;it[i+1]&&(t[i+1]=n)}for(var i=0;it[i+1]&&(t[i+1]=n)}return"".concat(ep(t[0])).concat(this.columns.map(function(i,n){return"".concat(i).concat(n!==e.columns.length?ep(t[n+1]-e_(i)+2):"")}).join(""),"\n").concat(this.indexes.map(function(i,n){var r;return"".concat(i).concat(ep(t[0]-e_(i))).concat(null===(r=e.data[n])||void 0===r?void 0:r.map(function(i,n){return"".concat(em(i)).concat(n!==e.columns.length?ep(t[n+1]-e_(i)):"")}).join("")).concat(n!==e.indexes.length?"\n":"")}).join(""))},t}(ev),eS=function(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e)){t=[];for(var t,i=0,n=e.length;i!!eA().valid(e);function eO(e){let{value:t}=e;return eN(t)?eA()(t).hex():""}let eL={lab:{l:[0,100],a:[-86.185,98.254],b:[-107.863,94.482]},lch:{l:[0,100],c:[0,100],h:[0,360]},rgb:{r:[0,255],g:[0,255],b:[0,255]},rgba:{r:[0,255],g:[0,255],b:[0,255],a:[0,1]},hsl:{h:[0,360],s:[0,1],l:[0,1]},hsv:{h:[0,360],s:[0,1],v:[0,1]},hsi:{h:[0,360],s:[0,1],i:[0,1]},cmyk:{c:[0,1],m:[0,1],y:[0,1],k:[0,1]}},eI=e=>!!eA().valid(e),ew=e=>{let{value:t}=e;return eI(t)?eA()(t):eA()("#000")},eD=(e,t=e.model)=>{let i=ew(e);return i?i[t]():[0,0,0]},ex=(e,t=4===e.length?"rgba":"rgb")=>{let i={};if(1===e.length){let[n]=e;for(let e=0;ee*t/255,eB=(e,t)=>e+t-e*t/255,eU=(e,t)=>e<128?eF(2*e,t):eB(2*e-255,t),eH={normal:e=>e,darken:(e,t)=>Math.min(e,t),multiply:eF,colorBurn:(e,t)=>0===e?0:Math.max(0,255*(1-(255-t)/e)),lighten:(e,t)=>Math.max(e,t),screen:eB,colorDodge:(e,t)=>255===e?255:Math.min(255,255*(t/(255-e))),overlay:(e,t)=>eU(t,e),softLight:(e,t)=>{if(e<128)return t-(1-2*e/255)*t*(1-t/255);let i=t<64?((16*(t/255)-12)*(t/255)+4)*(t/255):Math.sqrt(t/255);return t+255*(2*e/255-1)*(i-t/255)},hardLight:eU,difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t/255,linearBurn:(e,t)=>Math.max(e+t-255,0),linearDodge:(e,t)=>Math.min(255,e+t),linearLight:(e,t)=>Math.max(t+2*e-255,0),vividLight:(e,t)=>e<128?255*(1-(1-t/255)/(2*e/255)):255*(t/2/(255-e)),pinLight:(e,t)=>e<128?Math.min(t,2*e):Math.max(t,2*e-255)},eV=e=>.3*e[0]+.58*e[1]+.11*e[2],eW=e=>{let t=eV(e),i=Math.min(...e),n=Math.max(...e),r=[...e];return i<0&&(r=r.map(e=>t+(e-t)*t/(t-i))),n>255&&(r=r.map(e=>t+(e-t)*(255-t)/(n-t))),r},eG=(e,t)=>{let i=t-eV(e);return eW(e.map(e=>e+i))},ej=e=>Math.max(...e)-Math.min(...e),ez=(e,t)=>{let i=e.map((e,t)=>({value:e,index:t}));i.sort((e,t)=>e.value-t.value);let n=i[0].index,r=i[1].index,o=i[2].index,s=[...e];return s[o]>s[n]?(s[r]=(s[r]-s[n])*t/(s[o]-s[n]),s[o]=t):(s[r]=0,s[o]=0),s[n]=0,s},eK={hue:(e,t)=>eG(ez(e,ej(t)),eV(t)),saturation:(e,t)=>eG(ez(t,ej(e)),eV(t)),color:(e,t)=>eG(e,eV(t)),luminosity:(e,t)=>eG(t,eV(e))},eY=(e,t,i="normal")=>{let n;let[r,o,s,a]=eD(e,"rgba"),[l,h,u,d]=eD(t,"rgba"),c=[r,o,s],f=[l,h,u];if(eT.includes(i)){let e=eH[i];n=c.map((t,i)=>Math.floor(e(t,f[i])))}else n=eK[i](c,f);let g=a+d*(1-a),p=Math.round((a*(1-d)*r+a*d*n[0]+(1-a)*d*l)/g),m=Math.round((a*(1-d)*o+a*d*n[1]+(1-a)*d*h)/g),_=Math.round((a*(1-d)*s+a*d*n[2]+(1-a)*d*u)/g);return 1===g?{model:"rgb",value:{r:p,g:m,b:_}}:{model:"rgba",value:{r:p,g:m,b:_,a:g}}},e$=(e,t)=>{let i=(e+t)%360;return i<0?i+=360:i>=360&&(i-=360),i},eq=(e=1,t=0)=>{let i=Math.min(e,t),n=Math.max(e,t);return i+Math.random()*(n-i)},eX=(e=1,t=0)=>{let i=Math.ceil(Math.min(e,t)),n=Math.floor(Math.max(e,t));return Math.floor(i+Math.random()*(n-i+1))},eZ=e=>{if(e&&"object"==typeof e){let t=Array.isArray(e);if(t){let t=e.map(e=>eZ(e));return t}let i={},n=Object.keys(e);return n.forEach(t=>{i[t]=eZ(e[t])}),i}return e};function eQ(e){return e*(Math.PI/180)}var eJ=i(56917),e0=i.n(eJ);let e1=(e,t="normal")=>{if("normal"===t)return{...e};let i=eO(e),n=e0()[t](i);return eP(n)},e2=e=>{let t=eM(e),[,,,i=1]=eD(e,"rgba");return ek(t,i)},e5=(e,t="normal")=>"grayscale"===t?e2(e):e1(e,t),e4=(e,t,i=[eX(5,10),eX(90,95)])=>{let[n,r,o]=eD(e,"lab"),s=n<=15?n:i[0],a=n>=85?n:i[1],l=(a-s)/(t-1),h=Math.ceil((n-s)/l);return l=0===h?l:(n-s)/h,Array(t).fill(0).map((e,t)=>ex([l*t+s,r,o],"lab"))},e3=e=>{let{count:t,color:i,tendency:n}=e,r=e4(i,t),o={name:"monochromatic",semantic:null,type:"discrete-scale",colors:"tint"===n?r:r.reverse()};return o},e6={model:"rgb",value:{r:0,g:0,b:0}},e9={model:"rgb",value:{r:255,g:255,b:255}},e8=(e,t,i="lab")=>eA().distance(ew(e),ew(t),i),e7=(e,t)=>{let i=Math.atan2(e,t)*(180/Math.PI);return i>=0?i:i+360},te=(e,t)=>{let i,n;let[r,o,s]=eD(e,"lab"),[a,l,h]=eD(t,"lab"),u=Math.sqrt(o**2+s**2),d=Math.sqrt(l**2+h**2),c=(u+d)/2,f=.5*(1-Math.sqrt(c**7/(c**7+6103515625))),g=(1+f)*o,p=(1+f)*l,m=Math.sqrt(g**2+s**2),_=Math.sqrt(p**2+h**2),E=e7(s,g),v=e7(h,p),b=_-m;i=180>=Math.abs(v-E)?v-E:v-E<-180?v-E+360:v-E-360;let C=2*Math.sqrt(m*_)*Math.sin(eQ(i)/2);n=180>=Math.abs(E-v)?(E+v)/2:Math.abs(E-v)>180&&E+v<360?(E+v+360)/2:(E+v-360)/2;let S=(r+a)/2,y=(m+_)/2,T=1-.17*Math.cos(eQ(n-30))+.24*Math.cos(eQ(2*n))+.32*Math.cos(eQ(3*n+6))-.2*Math.cos(eQ(4*n-63)),R=1+.015*(S-50)**2/Math.sqrt(20+(S-50)**2),A=1+.045*y,N=1+.015*y*T,O=-2*Math.sqrt(y**7/(y**7+6103515625))*Math.sin(eQ(60*Math.exp(-(((n-275)/25)**2)))),L=Math.sqrt(((a-r)/(1*R))**2+(b/(1*A))**2+(C/(1*N))**2+O*(b/(1*A))*(C/(1*N)));return L},tt=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},ti=e=>{let[t,i,n]=eD(e);return .2126*tt(t)+.7152*tt(i)+.0722*tt(n)},tn=(e,t)=>{let i=ti(e),n=ti(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)},tr=(e,t,i={measure:"euclidean"})=>{let{measure:n="euclidean",backgroundColor:r=ey}=i,o=eY(e,r),s=eY(t,r);switch(n){case"CIEDE2000":return te(o,s);case"euclidean":return e8(o,s,i.colorModel);case"contrastRatio":return tn(o,s);default:return e8(o,s)}},to=[.8,1.2],ts={rouletteWheel:e=>{let t=e.reduce((e,t)=>e+t),i=0,n=eq(t),r=0;for(let t=0;t{let t=-1,i=0;for(let n=0;n<3;n+=1){let r=eX(e.length-1);e[r]>i&&(t=n,i=e[r])}return t}},ta=(e,t="tournament")=>ts[t](e),tl=(e,t)=>{let i=eZ(e),n=eZ(t);for(let r=1;r{let r=eZ(e),o=t[eX(t.length-1)],s=eX(e[0].length-1),a=r[o][s]*eq(...to),l=[15,240];"grayscale"!==i&&(l=eL[n][n.split("")[s]]);let[h,u]=l;return au&&(a=u),r[o][s]=a,r},tu=(e,t,i,n,r,o)=>{let s;s="grayscale"===i?e.map(([e])=>ek(e)):e.map(e=>e5(ex(e,n),i));let a=1/0;for(let e=0;e{if(Math.round(tu(e,t,i,r,o,s))>n)return e;let a=Array(e.length).fill(0).map((e,t)=>t).filter((e,i)=>!t[i]),l=Array(50).fill(0).map(()=>th(e,a,i,r)),h=l.map(e=>tu(e,t,i,r,o,s)),u=Math.max(...h),d=l[h.findIndex(e=>e===u)],c=1;for(;c<100&&Math.round(u)eq()?tl(t,n):[t,n];o=o.map(e=>.1>eq()?th(e,a,i,r):e),e.push(...o)}h=(l=e).map(e=>tu(e,t,i,r,o,s));let n=Math.max(...h);u=n,d=l[h.findIndex(e=>e===n)],c+=1}return d},tc={euclidean:30,CIEDE2000:20,contrastRatio:4.5},tf={euclidean:291.48,CIEDE2000:100,contrastRatio:21},tg=(e,t={})=>{let{locked:i=[],simulationType:n="normal",threshold:r,colorModel:o="hsv",colorDifferenceMeasure:s="euclidean",backgroundColor:a=ey}=t,l=r;if(l||(l=tc[s]),"grayscale"===n){let t=tf[s];l=Math.min(l,t/e.colors.length)}let h=eZ(e);if("matrix"!==h.type&&"continuous-scale"!==h.type){if("grayscale"===n){let e=h.colors.map(e=>[eM(e)]),t=td(e,i,n,l,o,s,a);h.colors.forEach((e,i)=>Object.assign(e,function(e,t){let i;let[,n,r]=eD(t,"lab"),[,,,o=1]=eD(t,"rgba"),s=100*e,a=Math.round(s),l=eM(ex([a,n,r],"lab")),h=25;for(;Math.round(s)!==Math.round(l/255*100)&&h>0;)s>l/255*100?a+=1:a-=1,h-=1,l=eM(ex([a,n,r],"lab"));if(Math.round(s)eD(e,o)),t=td(e,i,n,l,o,s,a);h.colors.forEach((e,i)=>{Object.assign(e,ex(t[i],o))})}}return h},tp=[.3,.9],tm=[.5,1],t_=(e,t,i,n=[])=>{let[r]=eD(e,"hsv"),o=Array(i).fill(!1),s=-1===n.findIndex(t=>t&&t.model===e.model&&t.value===e.value),a=Array(i).fill(0).map((i,a)=>{let l=n[a];return l?(o[a]=!0,l):s?(s=!1,o[a]=!0,e):ex([e$(r,t*a),eq(...tp),eq(...tm)],"hsv")});return{newColors:a,locked:o}};function tE(){let e=eX(255),t=eX(255),i=eX(255);return ex([e,t,i],"rgb")}let tv=e=>{let{count:t,colors:i}=e,n=[],r={name:"random",semantic:null,type:"categorical",colors:Array(t).fill(0).map((e,t)=>{let r=i[t];return r?(n[t]=!0,r):tE()})};return tg(r,{locked:n})},tb=["monochromatic"],tC=(e,t)=>{let{count:i=8,tendency:n="tint"}=t,{colors:r=[],color:o}=t;return o||(o=r.find(e=>!!e&&!!e.model&&!!e.value)||tE()),tb.includes(e)&&(r=[]),{color:o,colors:r,count:i,tendency:n}},tS={monochromatic:e3,analogous:e=>{let{count:t,color:i,tendency:n}=e,[r,o,s]=eD(i,"hsv"),a=Math.floor(t/2),l=60/(t-1);r>=60&&r<=240&&(l=-l);let h=(o-.1)/3/(t-a-1),u=(s-.4)/3/a,d=Array(t).fill(0).map((e,t)=>{let i=e$(r,l*(t-a)),n=t<=a?Math.min(o+h*(a-t),1):o+3*h*(a-t),d=t<=a?s-3*u*(a-t):Math.min(s-u*(a-t),1);return ex([i,n,d],"hsv")}),c={name:"analogous",semantic:null,type:"discrete-scale",colors:"tint"===n?d:d.reverse()};return c},achromatic:e=>{let{tendency:t}=e,i={...e,color:"tint"===t?e6:e9},n=e3(i);return{...n,name:"achromatic"}},complementary:e=>{let t;let{count:i,color:n}=e,[r,o,s]=eD(n,"hsv"),a=ex([e$(r,180),o,s],"hsv"),l=eX(80,90),h=eX(15,25),u=Math.floor(i/2),d=e4(n,u,[h,l]),c=e4(a,u,[h,l]).reverse();if(i%2==1){let e=ex([(e$(r,180)+r)/2,eq(.05,.1),eq(.9,.95)],"hsv");t=[...d,e,...c]}else t=[...d,...c];let f={name:"complementary",semantic:null,type:"discrete-scale",colors:t};return f},"split-complementary":e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,180,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},triadic:e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,120,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},tetradic:e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,90,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},polychromatic:e=>{let{count:t,color:i,colors:n}=e,r=360/t,{newColors:o,locked:s}=t_(i,r,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})},customized:tv},ty=(e="monochromatic",t={})=>{let i=tC(e,t);try{return tS[e](i)}catch(e){return tv(i)}};i(16243);var tT={}.toString,tR=function(e,t){return tT.call(e)==="[object ".concat(t,"]")},tA=function(e){if(!("object"==typeof e&&null!==e)||!tR(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tN=function(e){for(var t=[],i=1;it.distinct)return -1}return 0};function tw(e){return[e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),e.find(function(e){return o(e.levelOfMeasurements,["Interval"])})]}function tD(e,t){var i=t.find(function(t){return t.name===e});return(null==i?void 0:i.recommendation)==="date"?function(t){return new Date(t[e])}:e}function tx(e){return[e.find(function(e){return l(e.levelOfMeasurements,["Time","Ordinal"])}),e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])})]}function tM(e){var t=e.find(function(e){return l(e.levelOfMeasurements,["Time","Ordinal"])}),i=e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])});return[t,e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),i]}function tk(e){var t=e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])}).sort(tI),i=t[0],n=t[1];return[e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),i,n]}function tP(e){var t,i,r,s,a,l,h=e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])}).sort(tI);return!function(e,t){if(!Y(e)||0===e.length||!Y(t)||0===t.length||e.length!==t.length)return!1;for(var i={},n=0;nr.corr&&(r.x=i[e],r.y=i[t],r.corr=a,r.size=i[(0,n.ev)([],(0,n.CR)(Array(i.length).keys()),!1).find(function(i){return i!==e&&i!==t})||0])},o=e+1;o0&&(!_||e.spec)}).sort(function(e,t){return e.scoret.score?-1:0}),log:v}}catch(e){return console.error("error: ",e),null}}var tH=function(e){var t,i=e.coordinate;if((null==i?void 0:i.type)==="theta")return(null==i?void 0:i.innerRadius)?"donut_chart":"pie_chart";var n=e.transform,r=null===(t=null==i?void 0:i.transform)||void 0===t?void 0:t.some(function(e){return"transpose"===e.type}),o=null==n?void 0:n.some(function(e){return"normalizeY"===e.type}),s=null==n?void 0:n.some(function(e){return"stackY"===e.type}),a=null==n?void 0:n.some(function(e){return"dodgeX"===e.type});return r?a?"grouped_bar_chart":o?"stacked_bar_chart":s?"percent_stacked_bar_chart":"bar_chart":a?"grouped_column_chart":o?"stacked_column_chart":s?"percent_stacked_column_chart":"column_chart"},tV=function(e){var t=e.transform,i=null==t?void 0:t.some(function(e){return"stackY"===e.type}),n=null==t?void 0:t.some(function(e){return"normalizeY"===e.type});return i?n?"percent_stacked_area_chart":"stacked_area_chart":"area_chart"},tW=function(e){var t=e.encode;return t.shape&&"hvh"===t.shape?"step_line_chart":"line_chart"},tG=function(e){var t;switch(e.type){case"area":t=tV(e);break;case"interval":t=tH(e);break;case"line":t=tW(e);break;case"point":t=e.encode.size?"bubble_chart":"scatter_plot";break;case"rect":t="histogram";break;case"cell":t="heatmap";break;default:t=""}return t};function tj(e,t,i,r,o,s,a){Object.values(e).filter(function(e){var r,o,a=e.option||{},l=a.weight,h=a.extra;return r=e.type,("DESIGN"===t?"DESIGN"===r:"DESIGN"!==r)&&!(null===(o=e.option)||void 0===o?void 0:o.off)&&e.trigger((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},i),{weight:l}),h),{chartWIKI:s}))}).forEach(function(e){var l,h=e.type,u=e.id,d=e.docs;if("DESIGN"===t){var c=e.optimizer(i.dataProps,a);l=0===Object.keys(c).length?1:0,o.push({type:h,id:u,score:l,fix:c,docs:d})}else{var f=e.option||{},g=f.weight,p=f.extra;l=e.validator((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},i),{weight:g}),p),{chartWIKI:s})),o.push({type:h,id:u,score:l,docs:d})}r.push({phase:"LINT",ruleId:u,score:l,base:l,weight:1,ruleType:h})})}function tz(e,t,i){var n=e.spec,r=e.options,o=e.dataProps,s=null==r?void 0:r.purpose,a=null==r?void 0:r.preferences,l=tG(n),h=[],u=[];if(!n||!l)return{lints:h,log:u};if(!o||!o.length)try{o=new eC(n.data).info()}catch(e){return console.error("error: ",e),{lints:h,log:u}}var d={dataProps:o,chartType:l,purpose:s,preferences:a};return tj(t,"notDESIGN",d,u,h,i),tj(t,"DESIGN",d,u,h,i,n),{lints:h=h.filter(function(e){return e.score<1}),log:u}}var tK=function(){function e(e){var t,i,o,s,a;void 0===e&&(e={}),this.ckb=(t=e.ckbCfg,i=JSON.parse(JSON.stringify(r)),t?(o=t.exclude,s=t.include,a=t.custom,o&&o.forEach(function(e){Object.keys(i).includes(e)&&delete i[e]}),s&&Object.keys(i).forEach(function(e){s.includes(e)||delete i[e]}),(0,n.pi)((0,n.pi)({},i),a)):i),this.ruleBase=O(e.ruleCfg)}return e.prototype.advise=function(e){return tU(e,this.ckb,this.ruleBase).advices},e.prototype.adviseWithLog=function(e){return tU(e,this.ckb,this.ruleBase)},e.prototype.lint=function(e){return tz(e,this.ruleBase,this.ckb).lints},e.prototype.lintWithLog=function(e){return tz(e,this.ruleBase,this.ckb)},e}()},17816:function(e,t){!function(e){"use strict";function t(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||0i=>e(t(i)),e)}function T(e,t){return t-e?i=>(i-e)/(t-e):e=>.5}x=new g(3),g!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0),x=new g(4),g!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0,x[3]=0);let R=Math.sqrt(50),A=Math.sqrt(10),N=Math.sqrt(2);function O(e,t,i){return e=Math.floor(Math.log(t=(t-e)/Math.max(0,i))/Math.LN10),i=t/10**e,0<=e?(i>=R?10:i>=A?5:i>=N?2:1)*10**e:-(10**-e)/(i>=R?10:i>=A?5:i>=N?2:1)}let L=(e,t,i=5)=>{let n=0,r=(e=[e,t]).length-1,o=e[n],s=e[r],a;return s{i.prototype.rescale=function(){this.initRange(),this.nice();var[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},i.prototype.initRange=function(){var t=this.options.interpolator;this.options.range=e(t)},i.prototype.composeOutput=function(e,i){var{domain:n,interpolator:r,round:o}=this.getOptions(),n=t(n.map(e)),o=o?e=>a(e=r(e),"Number")?Math.round(e):e:r;this.output=y(o,n,i,e)},i.prototype.invert=void 0}}var D,x={exports:{}},M={exports:{}},k=Array.prototype.concat,P=Array.prototype.slice,F=M.exports=function(e){for(var t=[],i=0,n=e.length;ii=>e*(1-i)+t*i,q=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return $(e,t);if("string"!=typeof e||"string"!=typeof t)return()=>e;{let i=Y(e),n=Y(t);return null===i||null===n?i?()=>e:()=>t:e=>{var t=[,,,,];for(let s=0;s<4;s+=1){var r=i[s],o=n[s];t[s]=r*(1-e)+o*e}var[s,a,l,h]=t;return`rgba(${Math.round(s)}, ${Math.round(a)}, ${Math.round(l)}, ${h})`}}},X=(e,t)=>{let i=$(e,t);return e=>Math.round(i(e))};function Z({map:e,initKey:t},i){return t=t(i),e.has(t)?e.get(t):i}function Q(e){return"object"==typeof e?e.valueOf():e}class J extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=Q,null!==e)for(var[t,i]of e)this.set(t,i)}get(e){return super.get(Z({map:this.map,initKey:this.initKey},e))}has(e){return super.has(Z({map:this.map,initKey:this.initKey},e))}set(e,t){var i,n;return super.set(([{map:e,initKey:i},n]=[{map:this.map,initKey:this.initKey},e],i=i(n),e.has(i)?e.get(i):(e.set(i,n),n)),t)}delete(e){var t,i;return super.delete(([{map:e,initKey:t},i]=[{map:this.map,initKey:this.initKey},e],t=t(i),e.has(t)&&(i=e.get(t),e.delete(t)),i))}}class ee{constructor(e){this.options=d({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=d({},this.options,e),this.rescale(e)}rescale(e){}}let et=Symbol("defaultUnknown");function ei(e,t,i){for(let n=0;n""+e:"object"==typeof e?e=>JSON.stringify(e):e=>e}class eo extends ee{getDefaultOptions(){return{domain:[],range:[],unknown:et}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&ei(this.domainIndexMap,this.getDomain(),this.domainKey),en({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&ei(this.rangeIndexMap,this.getRange(),this.rangeKey),en({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){var[t]=this.options.domain,[i]=this.options.range;this.domainKey=er(t),this.rangeKey=er(i),this.rangeIndexMap?(e&&!e.range||this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new eo(this.options)}getRange(){return this.options.range}getDomain(){var e,t;return this.sortedDomain||({domain:e,compare:t}=this.options,this.sortedDomain=t?[...e].sort(t):e),this.sortedDomain}}class es extends eo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:et,flex:[]}}constructor(e){super(e)}clone(){return new es(this.options)}getStep(e){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:e,paddingInner:t}=this.options;return 0e/t)}(h),g=d/f.reduce((e,t)=>e+t);var h=new J(t.map((e,t)=>(t=f[t]*g,[e,s?Math.floor(t):t]))),p=new J(t.map((e,t)=>(t=f[t]*g+c,[e,s?Math.floor(t):t]))),d=Array.from(p.values()).reduce((e,t)=>e+t),e=e+(u-(d-d/l*r))*a;let m=s?Math.round(e):e;var _=Array(l);for(let e=0;el+t*s),{valueStep:s,valueBandWidth:a,adjustedRange:e}}({align:e,range:i,round:n,flex:r,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=n,this.valueBandWidth=i,this.adjustedRange=e}}let ea=(e,t,i)=>{let n,r,o=e,s=t;if(o===s&&0{let n;var[e,r]=e,[t,o]=t;return y(e{let n=Math.min(e.length,t.length)-1,r=Array(n),o=Array(n);var s=e[0]>e[n],a=s?[...e].reverse():e,l=s?[...t].reverse():t;for(let e=0;e{var i=function(e,t,i,n,r){let o=1,s=n||e.length;for(var a=e=>e;ot?s=l:o=l+1}return o}(e,t,0,n)-1,s=r[i];return y(o[i],s)(t)}},eu=(e,t,i,n)=>(2Math.min(Math.max(n,e),r)}return c}composeOutput(e,t){var{domain:i,range:n,round:r,interpolate:o}=this.options,i=eu(i.map(e),n,o,r);this.output=y(i,t,e)}composeInput(e,t,i){var{domain:n,range:r}=this.options,r=eu(r,n.map(e),$);this.input=y(t,i,r)}}class ec extends ed{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:q,tickMethod:ea,tickCount:5}}chooseTransforms(){return[c,c]}clone(){return new ec(this.options)}}class ef extends es{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:et,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new ef(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}function eg(e,t){for(var i=[],n=0,r=e.length;n{var[e,t]=e;return y($(0,1),T(e,t))})],e_);let eE=o=class extends ec{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:c,tickMethod:ea,tickCount:5}}constructor(e){super(e)}clone(){return new o(this.options)}};function ev(e,t,n,r,o){var s=new ec({range:[t,t+r]}),a=new ec({range:[n,n+o]});return{transform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.map(t),a.map(e)]},untransform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.invert(t),a.invert(e)]}}}function eb(e,t,n,r,o){return(0,i(e,1)[0])(t,n,r,o)}function eC(e,t,n,r,o){return i(e,1)[0]}function eS(e,t,n,r,o){var s=(e=i(e,4))[0],a=e[1],l=e[2],e=e[3],h=new ec({range:[l,e]}),u=new ec({range:[s,a]}),d=1<(l=o/r)?1:l,c=1{let[t,i,n]=e,r=y($(0,.5),T(t,i)),o=y($(.5,1),T(i,n));return e=>(t>n?eh&&(h=g)}for(var p=Math.atan(n/(i*Math.tan(r))),m=1/0,_=-1/0,E=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var v=p+d;o_&&(_=C)}return{x:l,y:m,width:h-l,height:_-m}}function l(e,t,i,n){return o(e,t,i,n)}function h(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}}function u(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function d(e,t,i,n){var o,s,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if((0,r.Z)(l,0))!(0,r.Z)(h,0)&&(o=-u/h)>=0&&o<=1&&d.push(o);else{var c=h*h-4*l*u;(0,r.Z)(c,0)?d.push(-h/(2*l)):c>0&&(o=(-h+(a=Math.sqrt(c)))/(2*l),s=(-h-a)/(2*l),o>=0&&o<=1&&d.push(o),s>=0&&s<=1&&d.push(s))}return d}function c(e,t,i,n,r,o,a,l){for(var h=[e,a],c=[t,l],f=d(e,i,r,a),g=d(t,n,o,l),p=0;p=0?[o]:[]}function m(e,t,i,n,r,o){var a=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==a&&h.push(g(e,i,r,a)),void 0!==l&&u.push(g(t,n,o,l)),s(h,u)}},53984:function(e,t){"use strict";t.Z=function(e,t,i){return ei?i:e}},47427:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return Array.isArray?Array.isArray(e):(0,n.Z)(e,"Array")}},63725:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return(0,n.Z)(e,"Boolean")}},37377:function(e,t){"use strict";t.Z=function(e){return null==e}},76703:function(e,t,i){"use strict";function n(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)1&&(v*=O=Math.sqrt(O),b*=O);var L=v*v,I=b*b,w=(s===l?-1:1)*Math.sqrt(Math.abs((L*I-L*N*N-I*A*A)/(L*N*N+I*A*A)));p=w*v*N/b+(_+C)/2,m=-(w*b)*A/v+(E+S)/2,f=Math.asin(((E-m)/b*1e9>>0)/1e9),g=Math.asin(((S-m)/b*1e9>>0)/1e9),f=_g&&(f-=2*Math.PI),!l&&g>f&&(g-=2*Math.PI)}var D=g-f;if(Math.abs(D)>y){var x=g,M=C,k=S;R=e(C=p+v*Math.cos(g=f+y*(l&&g>f?1:-1)),S=m+b*Math.sin(g),v,b,o,0,l,M,k,[g,x,p,m])}D=g-f;var P=Math.cos(f),F=Math.cos(g),B=Math.tan(D/4),U=4/3*v*B,H=4/3*b*B,V=[_,E],W=[_+U*Math.sin(f),E-H*P],G=[C+U*Math.sin(g),S-H*F],j=[C,S];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],d)return W.concat(G,j,R);R=W.concat(G,j,R);for(var z=[],K=0,Y=R.length;K7){e[i].shift();for(var n=e[i],r=i;n.length;)t[i]="A",e.splice(r+=1,0,["C"].concat(n.splice(0,6)));e.splice(i,1)}}(d,f,_),p=d.length,"Z"===g&&m.push(_),l=(i=d[_]).length,c.x1=+i[l-2],c.y1=+i[l-1],c.x2=+i[l-4]||c.x1,c.y2=+i[l-3]||c.y1}return t?[d,m]:d}},63893:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},54109:function(e,t,i){"use strict";i.d(t,{z:function(){return n}});var n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},8699:function(e,t,i){"use strict";function n(e){return e.map(function(e){return Array.isArray(e)?[].concat(e):e})}i.d(t,{U:function(){return n}})},28024:function(e,t,i){"use strict";i.d(t,{A:function(){return f}});var n=i(97582),r=i(12884),o=i(54109),s=i(41793),a=i(66141),l=i(63893);function h(e){for(var t=e.pathValue[e.segmentStart],i=t.toLowerCase(),n=e.data;n.length>=l.R[i]&&("m"===i&&n.length>2?(e.segments.push([t].concat(n.splice(0,2))),i="l",t="m"===t?"l":"L"):e.segments.push([t].concat(n.splice(0,l.R[i]))),l.R[i]););}function u(e){return e>=48&&e<=57}function d(e){for(var t,i=e.pathValue,n=e.max;e.index=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t));)e.index+=1}var c=function(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function f(e){if((0,r.y)(e))return[].concat(e);for(var t=function(e){if((0,s.b)(e))return[].concat(e);var t=function(e){if((0,a.n)(e))return[].concat(e);var t=new c(e);for(d(t);t.index0;a-=1){if((32|r)==97&&(3===a||4===a)?function(e){var t=e.index,i=e.pathValue,n=i.charCodeAt(t);if(48===n){e.param=0,e.index+=1;return}if(49===n){e.param=1,e.index+=1;return}e.err='[path-util]: invalid Arc flag "'+i[t]+'", expecting 0 or 1 at index '+t}(e):function(e){var t,i=e.max,n=e.pathValue,r=e.index,o=r,s=!1,a=!1,l=!1,h=!1;if(o>=i){e.err="[path-util]: Invalid path value at index "+o+', "pathValue" is missing param';return}if((43===(t=n.charCodeAt(o))||45===t)&&(o+=1,t=n.charCodeAt(o)),!u(t)&&46!==t){e.err="[path-util]: Invalid path value at index "+o+', "'+n[o]+'" is not a number';return}if(46!==t){if(s=48===t,o+=1,t=n.charCodeAt(o),s&&o=e.max||!((s=i.charCodeAt(e.index))>=48&&s<=57||43===s||45===s||46===s))break}h(e)}(t);return t.err?t.err:t.segments}(e),i=0,n=0,r=0,o=0;return t.map(function(e){var t,s=e.slice(1).map(Number),a=e[0],l=a.toUpperCase();if("M"===a)return i=s[0],n=s[1],r=i,o=n,["M",i,n];if(a!==l)switch(l){case"A":t=[l,s[0],s[1],s[2],s[3],s[4],s[5]+i,s[6]+n];break;case"V":t=[l,s[0]+n];break;case"H":t=[l,s[0]+i];break;default:t=[l].concat(s.map(function(e,t){return e+(t%2?n:i)}))}else t=[l].concat(s);var h=t.length;switch(l){case"Z":i=r,n=o;break;case"H":i=t[1];break;case"V":n=t[1];break;default:i=t[h-2],n=t[h-1],"M"===l&&(r=i,o=n)}return t})}(e),i=(0,n.pi)({},o.z),f=0;f=g[t],p[t]-=m?1:0,m?e.ss:[e.s]}).flat()});return _[0].length===_[1].length?_:e(_[0],_[1],f)}}});var n=i(47852),r=i(31427);function o(e){return e.map(function(e,t,i){var o,s,a,l,h,u,d,c,f,g,p,m,_=t&&i[t-1].slice(-2).concat(e.slice(1)),E=t?(0,r.S)(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],{bbox:!1}).length:0;return m=t?E?(void 0===o&&(o=.5),s=_.slice(0,2),a=_.slice(2,4),l=_.slice(4,6),h=_.slice(6,8),u=(0,n.k)(s,a,o),d=(0,n.k)(a,l,o),c=(0,n.k)(l,h,o),f=(0,n.k)(u,d,o),g=(0,n.k)(d,c,o),p=(0,n.k)(f,g,o),[["C"].concat(u,f,p),["C"].concat(g,c,h)]):[e,e]:[e],{s:e,ss:m,l:E}})}},49958:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(75066);function r(e){var t,i,r;return t=0,i=0,r=0,(0,n.Y)(e).map(function(e){if("M"===e[0])return t=e[1],i=e[2],0;var n,o,s,a=e.slice(1),l=a[0],h=a[1],u=a[2],d=a[3],c=a[4],f=a[5];return o=t,r=3*((f-(s=i))*(l+u)-(c-o)*(h+d)+h*(o-u)-l*(s-d)+f*(u+o/3)-c*(d+s/3))/20,t=(n=e.slice(-2))[0],i=n[1],r}).reduce(function(e,t){return e+t},0)>=0}},80431:function(e,t,i){"use strict";i.d(t,{r:function(){return o}});var n=i(97582),r=i(12369);function o(e,t,i){return(0,r.s)(e,t,(0,n.pi)((0,n.pi)({},i),{bbox:!1,length:!0})).point}},88154:function(e,t,i){"use strict";i.d(t,{g:function(){return r}});var n=i(6393);function r(e,t){var i,r,o=e.length-1,s=[],a=0,l=(r=(i=e.length)-1,e.map(function(t,n){return e.map(function(t,o){var s=n+o;return 0===o||e[s]&&"M"===e[s][0]?["M"].concat(e[s].slice(-2)):(s>=i&&(s-=r),e[s])})}));return l.forEach(function(i,r){e.slice(1).forEach(function(i,s){a+=(0,n.y)(e[(r+s)%o].slice(-2),t[s%o].slice(-2))}),s[r]=a,a=0}),l[s.indexOf(Math.min.apply(null,s))]}},72888:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i(97582),r=i(12369);function o(e,t){return(0,r.s)(e,void 0,(0,n.pi)((0,n.pi)({},t),{bbox:!1,length:!0})).length}},41793:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(66141);function r(e){return(0,n.n)(e)&&e.every(function(e){var t=e[0];return t===t.toUpperCase()})}},12884:function(e,t,i){"use strict";i.d(t,{y:function(){return r}});var n=i(41793);function r(e){return(0,n.b)(e)&&e.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}},66141:function(e,t,i){"use strict";i.d(t,{n:function(){return r}});var n=i(63893);function r(e){return Array.isArray(e)&&e.every(function(e){var t=e[0].toLowerCase();return n.R[t]===e.length-1&&"achlmqstvz".includes(t)})}},47852:function(e,t,i){"use strict";function n(e,t,i){var n=e[0],r=e[1];return[n+(t[0]-n)*i,r+(t[1]-r)*i]}i.d(t,{k:function(){return n}})},12369:function(e,t,i){"use strict";i.d(t,{s:function(){return h}});var n=i(28024),r=i(47852),o=i(6393);function s(e,t,i,n,s){var a=(0,o.y)([e,t],[i,n]),l={x:0,y:0};if("number"==typeof s){if(s<=0)l={x:e,y:t};else if(s>=a)l={x:i,y:n};else{var h=(0,r.k)([e,t],[i,n],s/a);l={x:h[0],y:h[1]}}}return{length:a,point:l,min:{x:Math.min(e,i),y:Math.min(t,n)},max:{x:Math.max(e,i),y:Math.max(t,n)}}}function a(e,t){var i=e.x,n=e.y,r=t.x,o=t.y,s=Math.sqrt((Math.pow(i,2)+Math.pow(n,2))*(Math.pow(r,2)+Math.pow(o,2)));return(i*o-n*r<0?-1:1)*Math.acos((i*r+n*o)/s)}var l=i(31427);function h(e,t,i){for(var r,h,u,d,c,f,g,p,m,_=(0,n.A)(e),E="number"==typeof t,v=[],b=0,C=0,S=0,y=0,T=[],R=[],A=0,N={x:0,y:0},O=N,L=N,I=N,w=0,D=0,x=_.length;D1&&(_*=p(y),E*=p(y));var T=(Math.pow(_,2)*Math.pow(E,2)-Math.pow(_,2)*Math.pow(S.y,2)-Math.pow(E,2)*Math.pow(S.x,2))/(Math.pow(_,2)*Math.pow(S.y,2)+Math.pow(E,2)*Math.pow(S.x,2)),R=(o!==l?1:-1)*p(T=T<0?0:T),A={x:R*(_*S.y/E),y:R*(-(E*S.x)/_)},N={x:g(v)*A.x-f(v)*A.y+(e+h)/2,y:f(v)*A.x+g(v)*A.y+(t+u)/2},O={x:(S.x-A.x)/_,y:(S.y-A.y)/E},L=a({x:1,y:0},O),I=a(O,{x:(-S.x-A.x)/_,y:(-S.y-A.y)/E});!l&&I>0?I-=2*m:l&&I<0&&(I+=2*m);var w=L+(I%=2*m)*d,D=_*g(w),x=E*f(w);return{x:g(v)*D-f(v)*x+N.x,y:f(v)*D+g(v)*x+N.y}}(e,t,i,n,r,l,h,u,d,L/b)).x,y=g.y,m&&O.push({x:S,y:y}),E&&(T+=(0,o.y)(A,[S,y])),A=[S,y],C&&T>=c&&c>R[2]){var I=(T-c)/(T-R[2]);N={x:A[0]*(1-I)+R[0]*I,y:A[1]*(1-I)+R[1]*I}}R=[S,y,T]}return C&&c>=T&&(N={x:u,y:d}),{length:T,point:N,min:{x:Math.min.apply(null,O.map(function(e){return e.x})),y:Math.min.apply(null,O.map(function(e){return e.y}))},max:{x:Math.max.apply(null,O.map(function(e){return e.x})),y:Math.max.apply(null,O.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],(t||0)-w,i||{})).length,N=h.min,O=h.max,L=h.point):"C"===p?(A=(u=(0,l.S)(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],(t||0)-w,i||{})).length,N=u.min,O=u.max,L=u.point):"Q"===p?(A=(d=function(e,t,i,n,r,s,a,l){var h,u=l.bbox,d=void 0===u||u,c=l.length,f=void 0===c||c,g=l.sampleSize,p=void 0===g?10:g,m="number"==typeof a,_=e,E=t,v=0,b=[_,E,0],C=[_,E],S={x:0,y:0},y=[{x:_,y:E}];m&&a<=0&&(S={x:_,y:E});for(var T=0;T<=p;T+=1){if(_=(h=function(e,t,i,n,r,o,s){var a=1-s;return{x:Math.pow(a,2)*e+2*a*s*i+Math.pow(s,2)*r,y:Math.pow(a,2)*t+2*a*s*n+Math.pow(s,2)*o}}(e,t,i,n,r,s,T/p)).x,E=h.y,d&&y.push({x:_,y:E}),f&&(v+=(0,o.y)(C,[_,E])),C=[_,E],m&&v>=a&&a>b[2]){var R=(v-a)/(v-b[2]);S={x:C[0]*(1-R)+b[0]*R,y:C[1]*(1-R)+b[1]*R}}b=[_,E,v]}return m&&a>=v&&(S={x:r,y:s}),{length:v,point:S,min:{x:Math.min.apply(null,y.map(function(e){return e.x})),y:Math.min.apply(null,y.map(function(e){return e.y}))},max:{x:Math.max.apply(null,y.map(function(e){return e.x})),y:Math.max.apply(null,y.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],(t||0)-w,i||{})).length,N=d.min,O=d.max,L=d.point):"Z"===p&&(A=(c=s((v=[b,C,S,y])[0],v[1],v[2],v[3],(t||0)-w)).length,N=c.min,O=c.max,L=c.point),E&&w=t&&(I=L),R.push(O),T.push(N),w+=A,b=(f="Z"!==p?m.slice(-2):[S,y])[0],C=f[1];return E&&t>=w&&(I={x:b,y:C}),{length:w,point:I,min:{x:Math.min.apply(null,T.map(function(e){return e.x})),y:Math.min.apply(null,T.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},31427:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});var n=i(6393);function r(e,t,i,r,o,s,a,l,h,u){var d,c=u.bbox,f=void 0===c||c,g=u.length,p=void 0===g||g,m=u.sampleSize,_=void 0===m?10:m,E="number"==typeof h,v=e,b=t,C=0,S=[v,b,0],y=[v,b],T={x:0,y:0},R=[{x:v,y:b}];E&&h<=0&&(T={x:v,y:b});for(var A=0;A<=_;A+=1){if(v=(d=function(e,t,i,n,r,o,s,a,l){var h=1-l;return{x:Math.pow(h,3)*e+3*Math.pow(h,2)*l*i+3*h*Math.pow(l,2)*r+Math.pow(l,3)*s,y:Math.pow(h,3)*t+3*Math.pow(h,2)*l*n+3*h*Math.pow(l,2)*o+Math.pow(l,3)*a}}(e,t,i,r,o,s,a,l,A/_)).x,b=d.y,f&&R.push({x:v,y:b}),p&&(C+=(0,n.y)(y,[v,b])),y=[v,b],E&&C>=h&&h>S[2]){var N=(C-h)/(C-S[2]);T={x:y[0]*(1-N)+S[0]*N,y:y[1]*(1-N)+S[1]*N}}S=[v,b,C]}return E&&h>=C&&(T={x:a,y:l}),{length:C,point:T,min:{x:Math.min.apply(null,R.map(function(e){return e.x})),y:Math.min.apply(null,R.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},33439:function(e,t,i){"use strict";function n(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function r(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function o(){}i.d(t,{ZP:function(){return v}});var s="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,u=RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),c=RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),f=RegExp("^rgba\\("+[l,l,l,a]+"\\)$"),g=RegExp("^hsl\\("+[a,l,l]+"\\)$"),p=RegExp("^hsla\\("+[a,l,l,a]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function v(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?b(t):3===i?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?C(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?C(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=u.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?C(t[1],t[2],t[3],t[4]):(t=f.exec(e))?C(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?A(t[1],t[2]/100,t[3]/100,1):(t=p.exec(e))?A(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?b(m[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function b(e){return new S(e>>16&255,e>>8&255,255&e,1)}function C(e,t,i,n){return n<=0&&(e=t=i=NaN),new S(e,t,i,n)}function S(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function y(){return"#"+R(this.r)+R(this.g)+R(this.b)}function T(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function R(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function A(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,i,n)}function N(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=v(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),s=Math.max(t,i,n),a=NaN,l=s-r,h=(s+r)/2;return l?(a=t===s?(i-n)/l+(i0&&h<1?0:a,new O(a,l,h,e.opacity)}function O(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function L(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}n(o,v,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_,formatHex:_,formatHsl:function(){return N(this).formatHsl()},formatRgb:E,toString:E}),n(S,function(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof o||(r=v(r)),r)?(r=r.rgb(),new S(r.r,r.g,r.b,r.opacity)):new S:new S(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y,formatHex:y,formatRgb:T,toString:T})),n(O,function(e,t,i,n){return 1==arguments.length?N(e):new O(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new O(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new S(L(e>=240?e-240:e+120,r,n),L(e,r,n),L(e<120?e+240:e-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return ew}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),f=i(82690);function g(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=g(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=g(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _(e){if("undefined"==typeof ShadowRoot)return!1;var t=g(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,v=Math.min,b=Math.round;function C(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(C())}function y(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&b(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&b(n.height)/e.offsetHeight||1);var s=(p(e)?g(e):window).visualViewport,a=!S()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function T(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return y(A(e)).left+T(e).scrollLeft}function O(e){return g(e).getComputedStyle(e)}function L(e){var t=O(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function I(e){var t=y(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function w(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||A(e)}function D(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(R(t))>=0?t.ownerDocument.body:m(t)&&L(t)?t:e(w(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=g(n),s=r?[o].concat(o.visualViewport||[],L(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(D(w(s)))}function x(e){return m(e)&&"fixed"!==O(e).position?e.offsetParent:null}function M(e){for(var t=g(e),i=x(e);i&&["table","td","th"].indexOf(R(i))>=0&&"static"===O(i).position;)i=x(i);return i&&("html"===R(i)||"body"===R(i)&&"static"===O(i).position)?t:i||function(e){var t=/firefox/i.test(C());if(/Trident/i.test(C())&&m(e)&&"fixed"===O(e).position)return null;var i=w(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(R(i));){var n=O(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),j=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function Q(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?q(r):null,s=r?X(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,f=e.position,p=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,E=e.isFixed,v=c.x,C=void 0===v?0:v,S=c.y,y=void 0===S?0:S,T="function"==typeof _?_({x:C,y:y}):{x:C,y:y};C=T.x,y=T.y;var R=c.hasOwnProperty("x"),N=c.hasOwnProperty("y"),L=F,I="top",w=window;if(m){var D=M(l),x="clientHeight",B="clientWidth";D===g(l)&&"static"!==O(D=A(l)).position&&"absolute"===f&&(x="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(I=k,y-=(E&&D===w&&w.visualViewport?w.visualViewport.height:D[x])-h.height,y*=p?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(L=P,C-=(E&&D===w&&w.visualViewport?w.visualViewport.width:D[B])-h.width,C*=p?1:-1)}var U=Object.assign({position:f},m&&J),H=!0===_?(t={x:C,y:y},i=g(l),n=t.x,r=t.y,{x:b(n*(o=i.devicePixelRatio||1))/o||0,y:b(r*o)/o||0}):{x:C,y:y};return(C=H.x,y=H.y,p)?Object.assign({},U,((a={})[I]=N?"0":"",a[L]=R?"0":"",a.transform=1>=(w.devicePixelRatio||1)?"translate("+C+"px, "+y+"px)":"translate3d("+C+"px, "+y+"px, 0)",a)):Object.assign({},U,((s={})[I]=N?y+"px":"",s[L]=R?C+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&_(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=g(e),n=A(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=S();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+N(e),y:l}}(e,i)):p(t)?((n=y(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=A(e),s=A(r),a=T(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+N(r),c=-a.scrollTop,"rtl"===O(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,f=void 0===c?e.strategy:c,g=h.boundary,_=h.rootBoundary,b=h.elementContext,C=void 0===b?W:b,S=h.altBoundary,T=h.padding,N=void 0===T?0:T,L=eh("number"!=typeof N?N:eu(N,U)),I=e.rects.popper,x=e.elements[void 0!==S&&S?C===W?"reference":W:C],F=(i=p(x)?x:x.contextElement||A(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===g?"clippingParents":g)?(r=D(w(i)),p(o=["absolute","fixed"].indexOf(O(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return p(e)&&eo(e,o)&&"body"!==R(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,f);return e.top=E(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,f))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=y(e.elements.reference),H=Q({reference:B,element:I,strategy:"absolute",placement:d}),G=es(Object.assign({},I,H)),j=C===W?G:B,z={top:F.top-j.top+L.top,bottom:j.bottom-F.bottom+L.bottom,left:F.left-j.left+L.left,right:j.right-F.right+L.right},K=e.modifiersData.offset;if(C===W&&K){var Y=K[d];Object.keys(z).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";z[e]+=Y[i]*t})}return z}function ec(e,t,i){return E(e,v(t,i))}function ef(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function eg(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ep=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=g(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,$)}),a&&l.addEventListener("resize",i.update,$),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,$)}),a&&l.removeEventListener("resize",i.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:q(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&R(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&R(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=j.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=q(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,f=i.flipVariations,g=void 0===f||f,p=i.allowedAutoPlacements,m=t.options.placement,_=q(m)===m,E=l||(_||!g?[ei(m)]:function(e){if(q(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,f,m,_,E,v;return e.concat(q(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:g,allowedAutoPlacements:p}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,f=void 0===(c=n.allowedAutoPlacements)?j:c,0===(E=(_=(m=X(r))?l?G:G.filter(function(e){return X(e)===m}):U).filter(function(e){return f.indexOf(e)>=0})).length&&(E=_),Object.keys(v=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[q(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),b=t.rects.reference,C=t.rects.popper,S=new Map,y=!0,T=v[0],R=0;R=0,I=L?"width":"height",w=ed(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),D=L?O?P:F:O?k:"top";b[I]>C[I]&&(D=ei(D));var x=ei(D),M=[];if(o&&M.push(w[N]<=0),a&&M.push(w[D]<=0,w[x]<=0),M.every(function(e){return e})){T=A,y=!1;break}S.set(A,M)}if(y)for(var V=g?3:1,W=function(e){var t=v.find(function(t){var i=S.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},z=V;z>0&&"break"!==W(z);z--);t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,f=void 0===c?0:c,g=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),p=q(t.placement),m=X(t.placement),_=!m,b=Z(p),C="x"===b?"y":"x",S=t.modifiersData.popperOffsets,y=t.rects.reference,T=t.rects.popper,R="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(void 0===r||r){var L,w="y"===b?"top":F,D="y"===b?k:P,x="y"===b?"height":"width",B=S[b],U=B+g[w],V=B-g[D],W=d?-T[x]/2:0,G=m===H?y[x]:T[x],j=m===H?-T[x]:-y[x],z=t.elements.arrow,K=d&&z?I(z):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),$=Y[w],Q=Y[D],J=ec(0,y[x],K[x]),ee=_?y[x]/2-W-J-$-A.mainAxis:G-J-$-A.mainAxis,et=_?-y[x]/2+W+J+Q+A.mainAxis:j+J+Q+A.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===b?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(L=null==N?void 0:N[b])?L:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?v(U,eo):U,B,d?E(V,es):V);S[b]=ea,O[b]=ea-B}if(void 0!==o&&o){var eh,eu,ef="x"===b?"top":F,eg="x"===b?k:P,ep=S[C],em="y"===C?"height":"width",e_=ep+g[ef],eE=ep-g[eg],ev=-1!==["top",F].indexOf(p),eb=null!=(eu=null==N?void 0:N[C])?eu:0,eC=ev?e_:ep-y[em]-T[em]-eb+A.altAxis,eS=ev?ep+y[em]+T[em]-eb-A.altAxis:eE,ey=d&&ev?(eh=ec(eC,ep,eS))>eS?eS:eh:ec(d?eC:e_,ep,d?eS:eE);S[C]=ey,O[C]=ey-ep}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=q(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=I(s),f="y"===h?"top":F,g="y"===h?k:P,p=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],_=M(s),E=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,v=d[f],b=E-c[u]-d[g],C=E/2-c[u]/2+(p/2-m/2),S=ec(v,C,b);n.modifiersData[r]=((i={})[h]=S,i.centerOffset=S-C,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=ef(s,n),h=ef(a,r,o),u=eg(l),d=eg(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,f,g="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,g),r.scrollParents={reference:p(e)?D(e):e.contextElement?D(e.contextElement):[],popper:D(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,f=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),f.push(t)}(e)}),z.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,f,p,_=r.elements,E=_.reference,v=_.popper;if(Y(E,v)){r.rects={reference:(t=M(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=b((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=b(o.height)/t.offsetHeight||1,1!==s||1!==a),d=A(t),c=y(E,u,i),f={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!i)&&(("body"!==R(t)||L(d))&&(f=(e=t)!==g(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:T(e)),m(t)?(p=y(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=N(d))),{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}),popper:I(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var C=0;C{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,ev.jsx)(u.Fragment,{children:i}):(0,ev.jsx)(u.Fragment,{children:o?e_.createPortal(i,o):o})});var eC=i(34867);function eS(e){return(0,eC.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var ey=i(7293);let eT=u.createContext({disableDefaultClasses:!1}),eR=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eA=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eN(e){return"function"==typeof e?e():e}let eO=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eT);return i=>t?"":e(i)}(eS)),eL={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:f,placement:g,popperOptions:p,popperRef:m,slotProps:_={},slots:E={},TransitionProps:v}=e,b=(0,h.Z)(e,eR),C=u.useRef(null),S=(0,d.Z)(C,t),y=u.useRef(null),T=(0,d.Z)(y,m),R=u.useRef(T);(0,c.Z)(()=>{R.current=T},[T]),u.useImperativeHandle(m,()=>y.current,[]);let A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,o),[N,O]=u.useState(A),[L,I]=u.useState(eN(n));u.useEffect(()=>{y.current&&y.current.forceUpdate()}),u.useEffect(()=>{n&&I(eN(n))},[n]),(0,c.Z)(()=>{if(!L||!f)return;let e=e=>{O(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));let i=ep(L,C.current,(0,l.Z)({placement:A},p,{modifiers:t}));return R.current(i),()=>{i.destroy(),R.current(null)}},[L,s,a,f,p,A]);let w={placement:N};null!==v&&(w.TransitionProps=v);let D=eO(),x=null!=(i=E.root)?i:"div",M=(0,ey.y)({elementType:x,externalSlotProps:_.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:D.root});return(0,ev.jsx)(x,(0,l.Z)({},M,{children:"function"==typeof r?r(w):r}))}),ew=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:g,placement:p="bottom",popperOptions:m=eL,popperRef:_,style:E,transition:v=!1,slotProps:b={},slots:C={}}=e,S=(0,h.Z)(e,eA),[y,T]=u.useState(!0);if(!d&&!g&&(!v||y))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,f.Z)(e).body:(0,f.Z)(null).body}let R=!g&&d&&(!v||y)?"none":void 0;return(0,ev.jsx)(eb,{disablePortal:a,container:i,children:(0,ev.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:v?!y:g,placement:p,popperOptions:m,popperRef:_,slotProps:b,slots:C},S,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:R},E),TransitionProps:v?{in:g,onEnter:()=>{T(!1)},onExited:()=>{T(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,f=r.useRef(),[g,p]=r.useState(!1),{isFocusVisibleRef:m,onFocus:_,onBlur:E,ref:v}=(0,o.Z)(),[b,C]=r.useState(!1);t&&!i&&b&&C(!1),r.useEffect(()=>{m.current=b},[b,m]);let[S,y]=r.useState(""),T=e=>t=>{var i;b&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},R=e=>t=>{var i;E(t),!1===m.current&&C(!1),null==(i=e.onBlur)||i.call(e,t)},A=e=>t=>{var i,n;f.current||(f.current=t.currentTarget),_(t),!0===m.current&&(C(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},N=()=>{let e=f.current;return"BUTTON"===S||"INPUT"===S&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===S&&(null==e?void 0:e.href)},O=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},L=e=>i=>{var n;t||(p(!0),document.addEventListener("mouseup",()=>{p(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},I=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||N()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||p(!0),i.target!==i.currentTarget||N()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},w=e=>i=>{var n,r;i.target===i.currentTarget&&p(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||N()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},D=r.useCallback(e=>{var t;y(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),x=(0,s.Z)(D,h,v,f),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===S?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==S&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:R(i),onClick:O(i),onFocus:A(i),onKeyDown:I(i),onKeyUp:w(i),onMouseDown:L(i),onMouseLeave:T(i),ref:x});return delete r.onFocusVisible,r},focusVisible:b,setFocusVisible:C,active:g,rootRef:x}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,f=null==e?-1:s.findIndex(t=>u(t,e)),g=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",g=!1;break;case"start":r=0,o="next",g=!1;break;case"end":r=c,o="previous",g=!1;break;default:{let e=f+t;e<0?!g&&-1!==f||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!g||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let p=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,g);return -1!==p||null===e||a(e,f)?null!=(n=s[p])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return v}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let f={},g=()=>{},p=(e,t)=>e===t,m=()=>!1,_=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function v(e){let{controlledProps:t=f,disabledItemsFocusable:i=!1,disableListWrap:v=!1,focusManagement:b="activeDescendant",getInitialState:C=E,getItemDomElement:S,getItemId:y,isItemDisabled:T=m,rootRef:R,onStateChange:A=g,items:N,itemComparer:O=p,getItemAsString:L=_,onChange:I,onHighlightChange:w,onItemsChange:D,orientation:x="vertical",pageSize:M=5,reducerActionContext:k=f,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(R,B),H=r.useCallback((e,t,i)=>{if(null==w||w(e,t,i),"DOM"===b&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==S||null==(n=S(t))||n.focus()}},[S,w,b]),V=r.useMemo(()=>({highlightedValue:O,selectedValues:(e,t)=>(0,d.H)(e,t,O)}),[O]),W=r.useCallback((e,t,i,n,r)=>{switch(null==A||A(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==I||I(e,i,n)}},[H,I,A]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:v,focusManagement:b,isItemDisabled:T,itemComparer:O,items:N,getItemAsString:L,onHighlightChange:H,orientation:x,pageSize:M,selectionMode:P,stateComparers:V}),[i,v,b,T,O,N,L,H,x,M,P,V]),j=C(),z=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[Y,$]=(0,u.r)({reducer:z,actionContext:K,initialState:j,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:q,selectedValues:X}=Y,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>$({type:s.F.textNavigation,event:t,searchString:e})),Q=c(X),J=c(q),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,N,O)||($({type:s.F.itemsChange,event:null,items:N,previousItems:ee.current}),ee.current=N,null==D||D(N))},[N,O,$,D]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(X)},[X,et]),r.useEffect(()=>{ei(q)},[q,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===x?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===b&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),$({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||$({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=N.findIndex(t=>O(t,e)),n=(null!=(t=Q.current)?t:[]).some(t=>null!=t&&O(e,t)),r=T(e,i),o=null!=J.current&&O(e,J.current),s="DOM"===b;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[N,T,O,Q,J,b]),el=r.useMemo(()=>({dispatch:$,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[$,ea,en,er]);return r.useDebugValue({state:Y}),{contextValue:el,dispatch:$,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===b&&null!=q?y(q):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===b?-1:0,ref:U}),rootRef:U,state:Y}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),f=r.useContext(l.Z);if(!f)throw Error("useListItem must be used within a ListProvider");let{dispatch:g,getItemState:p,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=f,{highlighted:E,selected:v,focusable:b}=p(h),C=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&C():C()})),(0,s.Z)(()=>_(function(e){v?e.includes(h)||C():e.includes(h)&&C()}),[_,C,v,h]);let S=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||g({type:a.F.itemClick,item:h,event:t})},[g,h]),y=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||g({type:a.F.itemHover,item:h,event:t})},[g,h]);return b&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:S(e),onPointerOver:i?y(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:v}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),f=t(u),g=(0,r.Z)(null==f?void 0:f.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),p=(0,n.Z)({},null==f?void 0:f.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},f,i,c,d);return g.length>0&&(m.className=g),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:f.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:f}=e,g=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[p,m]=r.useReducer(g,h),_=r.useCallback(e=>{m((0,n.Z)({},e,{context:f}))},[f]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:p,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(p,u),_]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,f=(0,r.Z)(e,h),g=c?{}:(0,l.x)(u,d),{props:p,internalRef:m}=(0,a.L)((0,n.Z)({},f,{externalSlotProps:g})),_=(0,o.Z)(m,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},p,{ref:_}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var f=i(37078),g=i(1812),p=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:f="MuiBox-root",generateClassName:g}=e,p=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:_="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(p,(0,n.Z)({as:_,ref:o,className:(0,s.Z)(m,g?g(f):f),theme:t&&a[t]||a},E))});return m}({themeId:p.Z,defaultTheme:g.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var _=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),f=i(26821);function g(e){return(0,f.d6)("MuiCard",e)}(0,f.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var p=i(58859),m=i(30220),_=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],v=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,g,{})},b=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,p.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),C=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:f=!1,size:g="md",variant:p="outlined",children:C,orientation:S="vertical",slots:y={},slotProps:T={}}=i,R=(0,n.Z)(i,E),{getColor:A}=(0,c.VT)(p),N=A(e.color,l),O=(0,r.Z)({},i,{color:N,component:d,orientation:S,size:g,variant:p}),L=v(O),I=(0,r.Z)({},R,{component:d,slots:y,slotProps:T}),[w,D]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(L.root,a),elementType:b,externalForwardedProps:I,ownerState:O}),x=(0,_.jsx)(w,(0,r.Z)({},D,{children:o.Children.map(C,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===S?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===S&&(i["data-parent"]="Card-horizontal"),"vertical"===S&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(C)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return f?(0,_.jsx)(c.do,{variant:p,children:x}):x});var S=C},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var f=i(30220),g=i(85893);let p=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),_=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,p),v=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),b=(0,n.Z)({},i,{component:a,orientation:u}),C=m(),[S,y]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(C.root,o),elementType:_,externalForwardedProps:v,ownerState:b});return(0,g.jsx)(S,(0,n.Z)({},y,{children:h}))});var v=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return A}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),f=i(74312),g=i(20407),p=i(78653),m=i(55907),_=i(26821);function E(e){return(0,_.d6)("MuiOption",e)}let v=(0,_.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var b=i(40780),C=i(85893);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],y=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},T=(0,f.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${v.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),R=o.forwardRef(function(e,t){var i;let s=(0,g.Z)({props:e,name:"JoyOption"}),{component:c="li",children:f,disabled:_=!1,value:E,label:v,variant:R="plain",color:A="neutral",slots:N={},slotProps:O={}}=s,L=(0,r.Z)(s,S),I=o.useContext(b.Z),{variant:w=R,color:D=A}=(0,m.yP)(e.variant,e.color),x=o.useRef(null),M=(0,l.Z)(x,t),k=null!=v?v:"string"==typeof f?f:null==(i=x.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:f,highlighted:g,selected:p}=(0,h.J)({item:t}),m=(0,a.Z)(d),_=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:_,id:m}),[r,i,t,m]),{index:v}=(0,u.B)(t,E),b=(0,l.Z)(s,_,f);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:b,role:"option","aria-selected":p}),highlighted:g,index:v,selected:p,rootRef:b}}({disabled:_,label:k,value:E,rootRef:M}),{getColor:H}=(0,p.VT)(w),V=H(e.color,D),W=(0,n.Z)({},s,{disabled:_,selected:F,highlighted:B,index:U,component:c,variant:w,color:V,row:I}),G=y(W),j=(0,n.Z)({},L,{component:c,slots:N,slotProps:O}),[z,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:T,externalForwardedProps:j,className:G.root,ownerState:W});return(0,C.jsx)(z,(0,n.Z)({},K,{children:f}))});var A=R},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),f=i(70758);let g={buttonClick:"buttonClick"};var p=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var _=i(12247),E=i(7333),v=i(22644);function b(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===g.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case v.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case v.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case v.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var C=i(2900);let S={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},y=()=>{};function T(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function R(e){e.preventDefault()}var A=i(26558),N=i(85893);function O(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,N.jsx)(_.s.Provider,{value:c,children:(0,N.jsx)(A.Z.Provider,{value:d,children:i})})}var L=i(94780),I=i(50984),w=i(3419),D=i(43614),x=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,L.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,x.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:f=!1,titleAccess:g,viewBox:p="0 0 24 24",size:m="md",slots:_={},slotProps:E={}}=i,v=(0,r.Z)(i,B),b=s.isValidElement(n)&&"svg"===n.type,C=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:b}),S=U(C),y=(0,o.Z)({},v,{component:u,slots:_,slotProps:E}),[T,R]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(S.root,l),elementType:V,externalForwardedProps:y,ownerState:C,additionalProps:(0,o.Z)({color:c,focusable:!1},g&&{role:"img"},!g&&{"aria-hidden":!0},!f&&{viewBox:p},b&&n.props)});return(0,N.jsxs)(T,(0,o.Z)({},R,{children:[b?n.props.children:n,g?(0,N.jsx)("title",{children:g}):null]}))});var G=function(e,t){function i(i,n){return(0,N.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,N.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),j=i(78653),z=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let Y=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var $=i(76043),q=i(55907);let X=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let Q=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],J=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,L.Z)(a,K,{})},ee=(0,x.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,z.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${Y.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${Y.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${Y.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,x.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,x.Z)(I.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},w.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,x.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,x.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,x.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${Y.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${Y.expanded}, .${Y.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,v,A,L,I;let x=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:z,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:ef="md",variant:eg="outlined",color:ep="neutral",startDecorator:em,endDecorator:e_,indicator:eE=n||(n=(0,N.jsx)(G,{})),"aria-describedby":ev,"aria-label":eb,"aria-labelledby":eC,id:eS,name:ey,slots:eT={},slotProps:eR={}}=x,eA=(0,r.Z)(x,X),eN=s.useContext($.Z),eO=null!=(i=null!=(l=e.disabled)?l:null==eN?void 0:eN.disabled)?i:V,eL=null!=(E=null!=(v=e.size)?v:null==eN?void 0:eN.size)?E:ef,{getColor:eI}=(0,j.VT)(eg),ew=eI(e.color,null!=eN&&eN.error?"danger":null!=(A=null==eN?void 0:eN.color)?A:ep),eD=null!=eu?eu:Z,[ex,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ej,getListboxProps:ez,getHiddenInputProps:eK,getOptionMetadata:eY,open:e$,value:eq}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:v,listboxRef:A,multiple:N=!1,name:O,required:L,onChange:I,onHighlightChange:w,onOpenChange:D,open:x,options:M,getOptionAsString:k=m,getSerializedValue:P=T,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(v);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=N?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return N?F:null==F?[]:[F]},[F,N]),{subitems:G,contextValue:j}=(0,_.Y)(),z=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(A,H),{getRootProps:Y,active:$,focusVisible:q,rootRef:X}=(0,f.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(z.keys()),[z]),Q=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return z.get(t)}return z.get(e)},[z,r,Z]),J=s.useCallback(e=>{var t;let i=Q(e);return null!=(t=null==i?void 0:i.disabled)&&t},[Q]),ee=s.useCallback(e=>{let t=Q(e);return t?k(t):""},[Q,k]),et=s.useMemo(()=>({selectedValues:W,open:x}),[W,x]),ei=s.useCallback(e=>{var t;return null==(t=z.get(e))?void 0:t.id},[z]),en=s.useCallback((e,t)=>{if(N)null==I||I(e,t);else{var i;null==I||I(e,null!=(i=t[0])?i:null)}},[N,I]),er=s.useCallback((e,t)=>{null==w||w(e,null!=t?t:null)},[w]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==D||D(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[D]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:J,rootRef:X,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:N}),[N]),items:Z,getItemAsString:ee,selectionMode:N?"multiple":"single",stateReducer:b},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:ef}=(0,p.s)(es),eg=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:g.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=Q(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,Q]);let ep=s.useCallback(e=>Q(e),[Q]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:eg(e),ref:ef,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let e_=s.useMemo(()=>(0,o.Z)({},eh,j),[eh,j]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,N)n=i.map(e=>ep(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ep(i))?eE:null}return{buttonActive:$,buttonFocusVisible:q,buttonRef:X,contextValue:e_,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,C.f)(Y,el),i=(0,C.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:O,tabIndex:-1,"aria-hidden":!0,required:!!L||void 0,value:P(n),onChange:y,style:S},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":N?"true":void 0,ref:K,onMouseDown:R}),getOptionMetadata:ep,listboxRef:ef,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eO,getSerializedValue:W,listboxId:K,multiple:!1,name:ey,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eX=(0,o.Z)({},x,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:e$,renderValue:eD,value:eq,size:eL,variant:eg,color:ew}),eZ=J(eX),eQ=(0,o.Z)({},eA,{slots:eT,slotProps:eR}),eJ=s.useMemo(()=>{var e;return null!=(e=eY(eq))?e:null},[eY,eq]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eQ,ownerState:eX}),[e2,e5]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=ev?ev:null==eN?void 0:eN["aria-describedby"],"aria-label":eb,"aria-labelledby":null!=eC?eC:null==eN?void 0:eN.labelId,"aria-required":ed?"true":void 0,id:null!=eS?eS:null==eN?void 0:eN.htmlFor,name:ey},className:eZ.button,elementType:et,externalForwardedProps:eQ,getSlotProps:ej,ownerState:eX}),[e4,e3]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:ex,open:e$,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eQ,getSlotProps:ez,ownerState:(0,o.Z)({},eX,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eL,variant:e.variant||eg,color:e.color||(e.disablePortal?ew:ep),disableColorInversion:!e.disablePortal})}),[e6,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eQ,ownerState:eX}),[e8,e7]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eQ,ownerState:eX}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eQ,ownerState:eX}),ti=s.useMemo(()=>[...Q,...e3.modifiers||[]],[e3.modifiers]),tn=null;return ex&&(tn=(0,N.jsx)(e4,(0,o.Z)({},e3,{className:(0,a.Z)(e3.className,(null==(L=e3.ownerState)?void 0:L.color)==="context"&&Y.colorContext),modifiers:ti},!(null!=(I=x.slots)&&I.listbox)&&{as:u.r,slots:{root:e3.as||"ul"}},{children:(0,N.jsx)(O,{value:eW,children:(0,N.jsx)(q.Yb,{variant:eg,color:ep,children:(0,N.jsx)(D.Z.Provider,{value:"select",children:(0,N.jsx)(w.Z,{nested:!0,children:B})})})})})),e3.disablePortal||(tn=(0,N.jsx)(j.ZP.Provider,{value:void 0,children:tn}))),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,N.jsx)(e6,(0,o.Z)({},e9,{children:em})),(0,N.jsx)(e2,(0,o.Z)({},e5,{children:eJ?eD(eJ):z})),e_&&(0,N.jsx)(e8,(0,o.Z)({},e7,{children:e_})),eE&&(0,N.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,N.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function f(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var g=i(40911),p=i(30220),m=i(85893);let _=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,f,{})},v={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},b=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[v.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[v.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[v.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[v.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[v.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${v.getColumnExceptFirst()}, ${v.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[v.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[v.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[v.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[v.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[v.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[v.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[v.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[v.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),C=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:f=!1,size:v="md",variant:C="plain",color:S="neutral",stripe:y,stickyHeader:T=!1,stickyFooter:R=!1,slots:A={},slotProps:N={}}=i,O=(0,n.Z)(i,_),{getColor:L}=(0,u.VT)(C),I=L(e.color,S),w=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:f,component:a,size:v,color:I,variant:C,stripe:y,stickyHeader:T,stickyFooter:R}),D=E(w),x=(0,r.Z)({},O,{component:a,slots:A,slotProps:N}),[M,k]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,o),elementType:b,externalForwardedProps:x,ownerState:w});return(0,m.jsx)(g.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var S=C},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return b},ZP:function(){return N}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),f=i(30220),g=i(26821);function p(e){return(0,g.d6)("MuiTypography",e)}(0,g.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let _=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],v=o.createContext(!1),b=o.createContext(!1),C=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,p,{})},S=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),y=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),R={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},A=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,_),g=o.useContext(v),p=o.useContext(b),A=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:N,gutterBottom:O=!1,noWrap:L=!1,level:I="body-md",levelMapping:w=R,children:D,endDecorator:x,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=A,B=(0,n.Z)(A,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=g||p?e.level||"inherit":I,W=(0,a.Z)(D,["Skeleton"]),G=N||(g?"span":w[V]||R[V]||"span"),j=(0,r.Z)({},A,{level:V,component:G,color:H,gutterBottom:O,noWrap:L,nesting:g,variant:k,unstable_hasSkeleton:W}),z=C(j),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[Y,$]=(0,f.Z)("root",{ref:t,className:z.root,elementType:T,externalForwardedProps:K,ownerState:j}),[q,X]=(0,f.Z)("startDecorator",{className:z.startDecorator,elementType:S,externalForwardedProps:K,ownerState:j}),[Z,Q]=(0,f.Z)("endDecorator",{className:z.endDecorator,elementType:y,externalForwardedProps:K,ownerState:j});return(0,m.jsx)(v.Provider,{value:!0,children:(0,m.jsxs)(Y,(0,r.Z)({},$,{children:[M&&(0,m.jsx)(q,(0,r.Z)({},X,{children:M})),W?o.cloneElement(D,{variant:D.props.variant||"inline"}):D,x&&(0,m.jsx)(Z,(0,r.Z)({},Q,{children:x}))]}))})});A.muiName="Typography";var N=A},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],f=["disableColorInversion"];function g(e,t){let{className:i,elementType:g,ownerState:p,externalForwardedProps:m,getSlotOwnerState:_,internalForwardedProps:E}=t,v=(0,r.Z)(t,u),{component:b,slots:C={[e]:void 0},slotProps:S={[e]:void 0}}=m,y=(0,r.Z)(m,d),T=C[e]||g,R=(0,s.x)(S[e],p),A=(0,a.L)((0,n.Z)({className:i},v,{externalForwardedProps:"root"===e?y:void 0,externalSlotProps:R})),{props:{component:N},internalRef:O}=A,L=(0,r.Z)(A.props,c),I=(0,o.Z)(O,null==R?void 0:R.ref,t.ref),w=_?_(L):{},{disableColorInversion:D=!1}=w,x=(0,r.Z)(w,f),M=(0,n.Z)({},p,x),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=L.color)?P:p.color}else D||(M.color=k(L.color,M.color));let F="root"===e?N||b:N,B=(0,l.$)(T,(0,n.Z)({},"root"===e&&!b&&!C[e]&&E,"root"!==e&&!C[e]&&E,L,F&&{as:F},{ref:I}),M);return Object.keys(x).forEach(e=>{delete B[e]}),[T,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.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||i)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(){i=!0}},t)}},15746:function(e,t,i){"use strict";var n=i(21584);t.Z=n.Z},71230:function(e,t,i){"use strict";var n=i(92820);t.Z=n.Z},87760:function(e,t){"use strict";var i={protan:{x:.7465,y:.2535,m:1.273463,yi:-.073894},deutan:{x:1.4,y:-.4,m:.968437,yi:.003331},tritan:{x:.1748,y:0,m:.062921,yi:.292119},custom:{x:.735,y:.265,m:-1.059259,yi:1.026914}},n=function(e){var t={},i=e.R/255,n=e.G/255,r=e.B/255;return i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,t.X=.41242371206635076*i+.3575793401363035*n+.1804662232369621*r,t.Y=.21265606784927693*i+.715157818248362*n+.0721864539171564*r,t.Z=.019331987577444885*i+.11919267420354762*n+.9504491124870351*r,t},r=function(e){var t=e.X+e.Y+e.Z;return 0===t?{x:0,y:0,Y:e.Y}:{x:e.X/t,y:e.Y/t,Y:e.Y}};t.a=function(e,t,o){var s,a,l,h,u,d,c,f,g,p,m,_,E,v,b,C,S,y,T,R;return"achroma"===t?(s={R:s=.212656*e.R+.715158*e.G+.072186*e.B,G:s,B:s},o&&(l=(a=1.75)+1,s.R=(a*s.R+e.R)/l,s.G=(a*s.G+e.G)/l,s.B=(a*s.B+e.B)/l),s):(h=i[t],d=((u=r(n(e))).y-h.y)/(u.x-h.x),c=u.y-u.x*d,f=(h.yi-c)/(d-h.m),g=d*f+c,(s={}).X=f*u.Y/g,s.Y=u.Y,s.Z=(1-(f+g))*u.Y/g,y=.312713*u.Y/.329016,T=.358271*u.Y/.329016,_=3.240712470389558*(p=y-s.X)+-0+-.49857440415943116*(m=T-s.Z),E=-.969259258688888*p+0+.041556132211625726*m,v=.05563600315398933*p+-0+1.0570636917433989*m,s.R=3.240712470389558*s.X+-1.5372626602963142*s.Y+-.49857440415943116*s.Z,s.G=-.969259258688888*s.X+1.875996969313966*s.Y+.041556132211625726*s.Z,s.B=.05563600315398933*s.X+-.2039948802843549*s.Y+1.0570636917433989*s.Z,b=((s.R<0?0:1)-s.R)/_,C=((s.G<0?0:1)-s.G)/E,(S=(S=((s.B<0?0:1)-s.B)/v)>1||S<0?0:S)>(R=(b=b>1||b<0?0:b)>(C=C>1||C<0?0:C)?b:C)&&(R=S),s.R+=R*_,s.G+=R*E,s.B+=R*v,s.R=255*(s.R<=0?0:s.R>=1?1:Math.pow(s.R,.45454545454545453)),s.G=255*(s.G<=0?0:s.G>=1?1:Math.pow(s.G,.45454545454545453)),s.B=255*(s.B<=0?0:s.B>=1?1:Math.pow(s.B,.45454545454545453)),o&&(l=(a=1.75)+1,s.R=(a*s.R+e.R)/l,s.G=(a*s.G+e.G)/l,s.B=(a*s.B+e.B)/l),s)}},56917:function(e,t,i){"use strict";var n=i(74314),r=i(87760).a,o={protanomaly:{type:"protan",anomalize:!0},protanopia:{type:"protan"},deuteranomaly:{type:"deutan",anomalize:!0},deuteranopia:{type:"deutan"},tritanomaly:{type:"tritan",anomalize:!0},tritanopia:{type:"tritan"},achromatomaly:{type:"achroma",anomalize:!0},achromatopsia:{type:"achroma"}},s=function(e){return Math.round(255*e)},a=function(e){return function(t,i){var a=n(t);if(!a)return i?{R:0,G:0,B:0}:"#000000";var l=new r({R:s(a.red()||0),G:s(a.green()||0),B:s(a.blue()||0)},o[e].type,o[e].anomalize);return(l.R=l.R||0,l.G=l.G||0,l.B=l.B||0,i)?(delete l.X,delete l.Y,delete l.Z,l):new n.RGB(l.R%256/255,l.G%256/255,l.B%256/255,1).hex()}};for(var l in o)t[l]=a(l)},8874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(e,t,i){var n=i(8874),r=i(86851),o=Object.hasOwnProperty,s=Object.create(null);for(var a in n)o.call(n,a)&&(s[n[a]]=a);var l=e.exports={to:{},get:{}};function h(e,t,i){return Math.min(Math.max(t,e),i)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,i;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),i="hsl";break;case"hwb":t=l.get.hwb(e),i="hwb";break;default:t=l.get.rgb(e),i="rgb"}return t?{model:i,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,i,r,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=0,r=t[2],t=t[1];i<3;i++){var a=2*i;s[i]=parseInt(t.slice(a,a+2),16)}r&&(s[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=0,r=(t=t[1])[3];i<3;i++)s[i]=parseInt(t[i]+t[i],16);r&&(s[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=parseInt(t[i+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=Math.round(2.55*parseFloat(t[i+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((s=n[t[1]])[3]=1,s):null;for(i=0;i<3;i++)s[i]=h(s[i],0,255);return s[3]=h(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+i+"%, "+n+"%)":"rgba("+t+"%, "+i+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new r(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),a.prototype.eventNames=function(){var e,n,r=[];if(0===this._eventsCount)return r;for(n in e=this._events)t.call(e,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=Array(o);rh+a*s*u||d>=p)g=s;else{if(Math.abs(f)<=-l*u)return s;f*(g-c)>=0&&(g=c),c=s,p=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),f=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return p(g,s,c);if(Math.abs(f)<=-l*u)break;if(f>=0)return p(s,g,d);c=d,g=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=p[g-1].fx){var O=!1;if(C.fx>N.fx?(o(S,1+c,b,-c,N),S.fx=e(S),S.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:g}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,f=i.c2||.1,g=[];if(i.history){var p=e;e=function(e,t){return g.push(e.slice()),p(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{Ib:function(){return n},WT:function(){return r}});var n=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";i.d(t,{Ue:function(){return r},al:function(){return s},xO:function(){return o}});var n=i(49685);function r(){var e=new n.WT(9);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function s(e,t,i,r,o,s,a,l,h){var u=new n.WT(9);return u[0]=e,u[1]=t,u[2]=i,u[3]=r,u[4]=o,u[5]=s,u[6]=a,u[7]=l,u[8]=h,u}},85975:function(e,t,i){"use strict";i.r(t),i.d(t,{add:function(){return Y},adjoint:function(){return c},clone:function(){return o},copy:function(){return s},create:function(){return r},determinant:function(){return f},equals:function(){return Q},exactEquals:function(){return Z},frob:function(){return K},fromQuat:function(){return M},fromQuat2:function(){return O},fromRotation:function(){return y},fromRotationTranslation:function(){return N},fromRotationTranslationScale:function(){return D},fromRotationTranslationScaleOrigin:function(){return x},fromScaling:function(){return S},fromTranslation:function(){return C},fromValues:function(){return a},fromXRotation:function(){return T},fromYRotation:function(){return R},fromZRotation:function(){return A},frustum:function(){return k},getRotation:function(){return w},getScaling:function(){return I},getTranslation:function(){return L},identity:function(){return h},invert:function(){return d},lookAt:function(){return G},mul:function(){return J},multiply:function(){return g},multiplyScalar:function(){return q},multiplyScalarAndAdd:function(){return X},ortho:function(){return V},orthoNO:function(){return H},orthoZO:function(){return W},perspective:function(){return F},perspectiveFromFieldOfView:function(){return U},perspectiveNO:function(){return P},perspectiveZO:function(){return B},rotate:function(){return _},rotateX:function(){return E},rotateY:function(){return v},rotateZ:function(){return b},scale:function(){return m},set:function(){return l},str:function(){return z},sub:function(){return ee},subtract:function(){return $},targetTo:function(){return j},translate:function(){return p},transpose:function(){return u}});var n=i(49685);function r(){var e=new n.WT(16);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function o(e){var t=new n.WT(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(e,t,i,r,o,s,a,l,h,u,d,c,f,g,p,m){var _=new n.WT(16);return _[0]=e,_[1]=t,_[2]=i,_[3]=r,_[4]=o,_[5]=s,_[6]=a,_[7]=l,_[8]=h,_[9]=u,_[10]=d,_[11]=c,_[12]=f,_[13]=g,_[14]=p,_[15]=m,_}function l(e,t,i,n,r,o,s,a,l,h,u,d,c,f,g,p,m){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=o,e[5]=s,e[6]=a,e[7]=l,e[8]=h,e[9]=u,e[10]=d,e[11]=c,e[12]=f,e[13]=g,e[14]=p,e[15]=m,e}function h(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){var i=t[1],n=t[2],r=t[3],o=t[6],s=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=i,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=o,e[11]=t[14],e[12]=r,e[13]=s,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function d(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],f=t[11],g=t[12],p=t[13],m=t[14],_=t[15],E=i*a-n*s,v=i*l-r*s,b=i*h-o*s,C=n*l-r*a,S=n*h-o*a,y=r*h-o*l,T=u*p-d*g,R=u*m-c*g,A=u*_-f*g,N=d*m-c*p,O=d*_-f*p,L=c*_-f*m,I=E*L-v*O+b*N+C*A-S*R+y*T;return I?(I=1/I,e[0]=(a*L-l*O+h*N)*I,e[1]=(r*O-n*L-o*N)*I,e[2]=(p*y-m*S+_*C)*I,e[3]=(c*S-d*y-f*C)*I,e[4]=(l*A-s*L-h*R)*I,e[5]=(i*L-r*A+o*R)*I,e[6]=(m*b-g*y-_*v)*I,e[7]=(u*y-c*b+f*v)*I,e[8]=(s*O-a*A+h*T)*I,e[9]=(n*A-i*O-o*T)*I,e[10]=(g*S-p*b+_*E)*I,e[11]=(d*b-u*S-f*E)*I,e[12]=(a*R-s*N-l*T)*I,e[13]=(i*N-n*R+r*T)*I,e[14]=(p*v-g*C-m*E)*I,e[15]=(u*C-d*v+c*E)*I,e):null}function c(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],f=t[11],g=t[12],p=t[13],m=t[14],_=t[15];return e[0]=a*(c*_-f*m)-d*(l*_-h*m)+p*(l*f-h*c),e[1]=-(n*(c*_-f*m)-d*(r*_-o*m)+p*(r*f-o*c)),e[2]=n*(l*_-h*m)-a*(r*_-o*m)+p*(r*h-o*l),e[3]=-(n*(l*f-h*c)-a*(r*f-o*c)+d*(r*h-o*l)),e[4]=-(s*(c*_-f*m)-u*(l*_-h*m)+g*(l*f-h*c)),e[5]=i*(c*_-f*m)-u*(r*_-o*m)+g*(r*f-o*c),e[6]=-(i*(l*_-h*m)-s*(r*_-o*m)+g*(r*h-o*l)),e[7]=i*(l*f-h*c)-s*(r*f-o*c)+u*(r*h-o*l),e[8]=s*(d*_-f*p)-u*(a*_-h*p)+g*(a*f-h*d),e[9]=-(i*(d*_-f*p)-u*(n*_-o*p)+g*(n*f-o*d)),e[10]=i*(a*_-h*p)-s*(n*_-o*p)+g*(n*h-o*a),e[11]=-(i*(a*f-h*d)-s*(n*f-o*d)+u*(n*h-o*a)),e[12]=-(s*(d*m-c*p)-u*(a*m-l*p)+g*(a*c-l*d)),e[13]=i*(d*m-c*p)-u*(n*m-r*p)+g*(n*c-r*d),e[14]=-(i*(a*m-l*p)-s*(n*m-r*p)+g*(n*l-r*a)),e[15]=i*(a*c-l*d)-s*(n*c-r*d)+u*(n*l-r*a),e}function f(e){var t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],d=e[10],c=e[11],f=e[12],g=e[13],p=e[14],m=e[15];return(t*s-i*o)*(d*m-c*p)-(t*a-n*o)*(u*m-c*g)+(t*l-r*o)*(u*p-d*g)+(i*a-n*s)*(h*m-c*f)-(i*l-r*s)*(h*p-d*f)+(n*l-r*a)*(h*g-u*f)}function g(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],f=t[10],g=t[11],p=t[12],m=t[13],_=t[14],E=t[15],v=i[0],b=i[1],C=i[2],S=i[3];return e[0]=v*n+b*a+C*d+S*p,e[1]=v*r+b*l+C*c+S*m,e[2]=v*o+b*h+C*f+S*_,e[3]=v*s+b*u+C*g+S*E,v=i[4],b=i[5],C=i[6],S=i[7],e[4]=v*n+b*a+C*d+S*p,e[5]=v*r+b*l+C*c+S*m,e[6]=v*o+b*h+C*f+S*_,e[7]=v*s+b*u+C*g+S*E,v=i[8],b=i[9],C=i[10],S=i[11],e[8]=v*n+b*a+C*d+S*p,e[9]=v*r+b*l+C*c+S*m,e[10]=v*o+b*h+C*f+S*_,e[11]=v*s+b*u+C*g+S*E,v=i[12],b=i[13],C=i[14],S=i[15],e[12]=v*n+b*a+C*d+S*p,e[13]=v*r+b*l+C*c+S*m,e[14]=v*o+b*h+C*f+S*_,e[15]=v*s+b*u+C*g+S*E,e}function p(e,t,i){var n,r,o,s,a,l,h,u,d,c,f,g,p=i[0],m=i[1],_=i[2];return t===e?(e[12]=t[0]*p+t[4]*m+t[8]*_+t[12],e[13]=t[1]*p+t[5]*m+t[9]*_+t[13],e[14]=t[2]*p+t[6]*m+t[10]*_+t[14],e[15]=t[3]*p+t[7]*m+t[11]*_+t[15]):(n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],f=t[10],g=t[11],e[0]=n,e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=h,e[7]=u,e[8]=d,e[9]=c,e[10]=f,e[11]=g,e[12]=n*p+a*m+d*_+t[12],e[13]=r*p+l*m+c*_+t[13],e[14]=o*p+h*m+f*_+t[14],e[15]=s*p+u*m+g*_+t[15]),e}function m(e,t,i){var n=i[0],r=i[1],o=i[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function _(e,t,i,r){var o,s,a,l,h,u,d,c,f,g,p,m,_,E,v,b,C,S,y,T,R,A,N,O,L=r[0],I=r[1],w=r[2],D=Math.hypot(L,I,w);return D0?(i[0]=(l*a+d*r+h*s-u*o)*2/c,i[1]=(h*a+d*o+u*r-l*s)*2/c,i[2]=(u*a+d*s+l*o-h*r)*2/c):(i[0]=(l*a+d*r+h*s-u*o)*2,i[1]=(h*a+d*o+u*r-l*s)*2,i[2]=(u*a+d*s+l*o-h*r)*2),N(e,t,i),e}function L(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function I(e,t){var i=t[0],n=t[1],r=t[2],o=t[4],s=t[5],a=t[6],l=t[8],h=t[9],u=t[10];return e[0]=Math.hypot(i,n,r),e[1]=Math.hypot(o,s,a),e[2]=Math.hypot(l,h,u),e}function w(e,t){var i=new n.WT(3);I(i,t);var r=1/i[0],o=1/i[1],s=1/i[2],a=t[0]*r,l=t[1]*o,h=t[2]*s,u=t[4]*r,d=t[5]*o,c=t[6]*s,f=t[8]*r,g=t[9]*o,p=t[10]*s,m=a+d+p,_=0;return m>0?(_=2*Math.sqrt(m+1),e[3]=.25*_,e[0]=(c-g)/_,e[1]=(f-h)/_,e[2]=(l-u)/_):a>d&&a>p?(_=2*Math.sqrt(1+a-d-p),e[3]=(c-g)/_,e[0]=.25*_,e[1]=(l+u)/_,e[2]=(f+h)/_):d>p?(_=2*Math.sqrt(1+d-a-p),e[3]=(f-h)/_,e[0]=(l+u)/_,e[1]=.25*_,e[2]=(c+g)/_):(_=2*Math.sqrt(1+p-a-d),e[3]=(l-u)/_,e[0]=(f+h)/_,e[1]=(c+g)/_,e[2]=.25*_),e}function D(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3],l=r+r,h=o+o,u=s+s,d=r*l,c=r*h,f=r*u,g=o*h,p=o*u,m=s*u,_=a*l,E=a*h,v=a*u,b=n[0],C=n[1],S=n[2];return e[0]=(1-(g+m))*b,e[1]=(c+v)*b,e[2]=(f-E)*b,e[3]=0,e[4]=(c-v)*C,e[5]=(1-(d+m))*C,e[6]=(p+_)*C,e[7]=0,e[8]=(f+E)*S,e[9]=(p-_)*S,e[10]=(1-(d+g))*S,e[11]=0,e[12]=i[0],e[13]=i[1],e[14]=i[2],e[15]=1,e}function x(e,t,i,n,r){var o=t[0],s=t[1],a=t[2],l=t[3],h=o+o,u=s+s,d=a+a,c=o*h,f=o*u,g=o*d,p=s*u,m=s*d,_=a*d,E=l*h,v=l*u,b=l*d,C=n[0],S=n[1],y=n[2],T=r[0],R=r[1],A=r[2],N=(1-(p+_))*C,O=(f+b)*C,L=(g-v)*C,I=(f-b)*S,w=(1-(c+_))*S,D=(m+E)*S,x=(g+v)*y,M=(m-E)*y,k=(1-(c+p))*y;return e[0]=N,e[1]=O,e[2]=L,e[3]=0,e[4]=I,e[5]=w,e[6]=D,e[7]=0,e[8]=x,e[9]=M,e[10]=k,e[11]=0,e[12]=i[0]+T-(N*T+I*R+x*A),e[13]=i[1]+R-(O*T+w*R+M*A),e[14]=i[2]+A-(L*T+D*R+k*A),e[15]=1,e}function M(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i+i,a=n+n,l=r+r,h=i*s,u=n*s,d=n*a,c=r*s,f=r*a,g=r*l,p=o*s,m=o*a,_=o*l;return e[0]=1-d-g,e[1]=u+_,e[2]=c-m,e[3]=0,e[4]=u-_,e[5]=1-h-g,e[6]=f+p,e[7]=0,e[8]=c+m,e[9]=f-p,e[10]=1-h-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function k(e,t,i,n,r,o,s){var a=1/(i-t),l=1/(r-n),h=1/(o-s);return e[0]=2*o*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(i+t)*a,e[9]=(r+n)*l,e[10]=(s+o)*h,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*o*2*h,e[15]=0,e}function P(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=(r+n)*o,e[14]=2*r*n*o):(e[10]=-1,e[14]=-2*n),e}var F=P;function B(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=r*o,e[14]=r*n*o):(e[10]=-1,e[14]=-n),e}function U(e,t,i,n){var r=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(r+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=h,e[6]=0,e[7]=0,e[8]=-((s-a)*l*.5),e[9]=(r-o)*h*.5,e[10]=n/(i-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*i/(i-n),e[15]=0,e}function H(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=(s+o)*h,e[15]=1,e}var V=H;function W(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=o*h,e[15]=1,e}function G(e,t,i,r){var o,s,a,l,u,d,c,f,g,p,m=t[0],_=t[1],E=t[2],v=r[0],b=r[1],C=r[2],S=i[0],y=i[1],T=i[2];return Math.abs(m-S)0&&(u*=f=1/Math.sqrt(f),d*=f,c*=f);var g=l*c-h*d,p=h*u-a*c,m=a*d-l*u;return(f=g*g+p*p+m*m)>0&&(g*=f=1/Math.sqrt(f),p*=f,m*=f),e[0]=g,e[1]=p,e[2]=m,e[3]=0,e[4]=d*m-c*p,e[5]=c*g-u*m,e[6]=u*p-d*g,e[7]=0,e[8]=u,e[9]=d,e[10]=c,e[11]=0,e[12]=r,e[13]=o,e[14]=s,e[15]=1,e}function z(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function K(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Y(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e[4]=t[4]+i[4],e[5]=t[5]+i[5],e[6]=t[6]+i[6],e[7]=t[7]+i[7],e[8]=t[8]+i[8],e[9]=t[9]+i[9],e[10]=t[10]+i[10],e[11]=t[11]+i[11],e[12]=t[12]+i[12],e[13]=t[13]+i[13],e[14]=t[14]+i[14],e[15]=t[15]+i[15],e}function $(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e[4]=t[4]-i[4],e[5]=t[5]-i[5],e[6]=t[6]-i[6],e[7]=t[7]-i[7],e[8]=t[8]-i[8],e[9]=t[9]-i[9],e[10]=t[10]-i[10],e[11]=t[11]-i[11],e[12]=t[12]-i[12],e[13]=t[13]-i[13],e[14]=t[14]-i[14],e[15]=t[15]-i[15],e}function q(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12]*i,e[13]=t[13]*i,e[14]=t[14]*i,e[15]=t[15]*i,e}function X(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e[3]=t[3]+i[3]*n,e[4]=t[4]+i[4]*n,e[5]=t[5]+i[5]*n,e[6]=t[6]+i[6]*n,e[7]=t[7]+i[7]*n,e[8]=t[8]+i[8]*n,e[9]=t[9]+i[9]*n,e[10]=t[10]+i[10]*n,e[11]=t[11]+i[11]*n,e[12]=t[12]+i[12]*n,e[13]=t[13]+i[13]*n,e[14]=t[14]+i[14]*n,e[15]=t[15]+i[15]*n,e}function Z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Q(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=e[9],f=e[10],g=e[11],p=e[12],m=e[13],_=e[14],E=e[15],v=t[0],b=t[1],C=t[2],S=t[3],y=t[4],T=t[5],R=t[6],A=t[7],N=t[8],O=t[9],L=t[10],I=t[11],w=t[12],D=t[13],x=t[14],M=t[15];return Math.abs(i-v)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-b)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-C)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(C))&&Math.abs(s-S)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-y)<=n.Ib*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-T)<=n.Ib*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(h-R)<=n.Ib*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-A)<=n.Ib*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-N)<=n.Ib*Math.max(1,Math.abs(d),Math.abs(N))&&Math.abs(c-O)<=n.Ib*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-L)<=n.Ib*Math.max(1,Math.abs(f),Math.abs(L))&&Math.abs(g-I)<=n.Ib*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(p-w)<=n.Ib*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(m-D)<=n.Ib*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(_-x)<=n.Ib*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(E-M)<=n.Ib*Math.max(1,Math.abs(E),Math.abs(M))}var J=g,ee=$},32945:function(e,t,i){"use strict";i.d(t,{Fv:function(){return p},JG:function(){return f},Jp:function(){return h},Su:function(){return d},U_:function(){return u},Ue:function(){return a},al:function(){return c},dC:function(){return g},yY:function(){return l}});var n=i(49685),r=i(35600),o=i(77160),s=i(98333);function a(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function l(e,t,i){var n=Math.sin(i*=.5);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(i),e}function h(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=i[0],l=i[1],h=i[2],u=i[3];return e[0]=n*u+s*a+r*h-o*l,e[1]=r*u+s*l+o*a-n*h,e[2]=o*u+s*h+n*l-r*a,e[3]=s*u-n*a-r*l-o*h,e}function u(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o,a=s?1/s:0;return e[0]=-i*a,e[1]=-n*a,e[2]=-r*a,e[3]=o*a,e}function d(e,t,i,n){var r=.5*Math.PI/180,o=Math.sin(t*=r),s=Math.cos(t),a=Math.sin(i*=r),l=Math.cos(i),h=Math.sin(n*=r),u=Math.cos(n);return e[0]=o*l*u-s*a*h,e[1]=s*a*u+o*l*h,e[2]=s*l*h-o*a*u,e[3]=s*l*u+o*a*h,e}s.d9;var c=s.al,f=s.JG;s.t8,s.IH;var g=h;s.bA,s.AK,s.t7,s.kE,s.we;var p=s.Fv;s.I6,s.fS,o.Ue(),o.al(1,0,0),o.al(0,1,0),a(),a(),r.Ue()},31437:function(e,t,i){"use strict";i.d(t,{AK:function(){return l},Fv:function(){return a},I6:function(){return h},JG:function(){return s},al:function(){return o}});var n,r=i(49685);function o(e,t){var i=new r.WT(2);return i[0]=e,i[1]=t,i}function s(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function h(e,t){return e[0]===t[0]&&e[1]===t[1]}n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},77160:function(e,t,i){"use strict";i.d(t,{$X:function(){return d},AK:function(){return p},Fv:function(){return g},IH:function(){return u},JG:function(){return l},Jp:function(){return c},TK:function(){return S},Ue:function(){return r},VC:function(){return b},Zh:function(){return y},al:function(){return a},bA:function(){return f},d9:function(){return o},fF:function(){return E},fS:function(){return C},kC:function(){return m},kE:function(){return s},kK:function(){return v},t7:function(){return _},t8:function(){return h}});var n=i(49685);function r(){var e=new n.WT(3);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function o(e){var t=new n.WT(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(e){return Math.hypot(e[0],e[1],e[2])}function a(e,t,i){var r=new n.WT(3);return r[0]=e,r[1]=t,r[2]=i,r}function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function u(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function d(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t){var i=t[0],n=t[1],r=t[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function p(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=r*l-o*a,e[1]=o*s-n*l,e[2]=n*a-r*s,e}function _(e,t,i,n){var r=t[0],o=t[1],s=t[2];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e}function E(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return s=s||1,e[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/s,e[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,e[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,e}function v(e,t,i){var n=t[0],r=t[1],o=t[2];return e[0]=n*i[0]+r*i[3]+o*i[6],e[1]=n*i[1]+r*i[4]+o*i[7],e[2]=n*i[2]+r*i[5]+o*i[8],e}function b(e,t,i){var n=i[0],r=i[1],o=i[2],s=i[3],a=t[0],l=t[1],h=t[2],u=r*h-o*l,d=o*a-n*h,c=n*l-r*a,f=r*c-o*d,g=o*u-n*c,p=n*d-r*u,m=2*s;return u*=m,d*=m,c*=m,f*=2,g*=2,p*=2,e[0]=a+u+f,e[1]=l+d+g,e[2]=h+c+p,e}function C(e,t){var i=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2];return Math.abs(i-s)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-a)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(l))}var S=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},y=s;r()},98333:function(e,t,i){"use strict";i.d(t,{AK:function(){return g},Fv:function(){return f},I6:function(){return _},IH:function(){return h},JG:function(){return a},Ue:function(){return r},al:function(){return s},bA:function(){return u},d9:function(){return o},fF:function(){return m},fS:function(){return E},kE:function(){return d},t7:function(){return p},t8:function(){return l},we:function(){return c}});var n=i(49685);function r(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function o(e){var t=new n.WT(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(e,t,i,r){var o=new n.WT(4);return o[0]=e,o[1]=t,o[2]=i,o[3]=r,o}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e}function h(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e}function u(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function d(e){return Math.hypot(e[0],e[1],e[2],e[3])}function c(e){var t=e[0],i=e[1],n=e[2],r=e[3];return t*t+i*i+n*n+r*r}function f(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=n*s,e[2]=r*s,e[3]=o*s,e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function p(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e[3]=a+n*(i[3]-a),e}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3];return e[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,e[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,e[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,e[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function E(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=t[0],l=t[1],h=t[2],u=t[3];return Math.abs(i-a)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-l)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-h)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-u)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(u))}r()},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function f(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function g(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function p(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function _(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function v(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function b(e,t){for(let i of t)e.push(i)}function C(e,t,i,n){let r=S(e,t),o=e.splice(r,i);return!function(e,t,i){let n=S(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function T(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function R(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return f},Gb:function(){return o},H9:function(){return A},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return R},W$:function(){return N},XY:function(){return d},Xh:function(){return p},Zv:function(){return _},al:function(){return v},dF:function(){return g},db:function(){return C},fS:function(){return a},jV:function(){return T},kX:function(){return u},ry:function(){return h},tT:function(){return y},vA:function(){return b},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class N{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new N(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new N(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}N.empty=new N(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return S},ED:function(){return E},G6:function(){return k},IJ:function(){return b},OS:function(){return L},dz:function(){return v},fn:function(){return O},gn:function(){return T},i7:function(){return x},li:function(){return p},n2:function(){return y},r:function(){return D},tY:function(){return C},tq:function(){return R},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,f=!1,g=!1,p="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==p.vscode&&void 0!==p.vscode.process?r=p.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),_=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||_){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,f=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,g=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,v=h,b=u,C=d,S=c,y=c&&"function"==typeof p.importScripts,T=f,R=g,A=n,N="function"==typeof p.postMessage&&!p.importScripts,O=(()=>{if(N){let e=[];p.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),p.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),L=h||f?2:l?1:3,I=!0,w=!1;function D(){if(!w){w=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);I=513===t[0]}return I}let x=!!(A&&A.indexOf("Chrome")>=0),M=!!(A&&A.indexOf("Firefox")>=0),k=!!(!x&&A&&A.indexOf("Safari")>=0),P=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function f(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function g(e){return"function"==typeof e}function p(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,f,g,p,m,_,E,v,b;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k5},KeyMod:function(){return k4},MarkerSeverity:function(){return k7},MarkerTag:function(){return Pe},Position:function(){return k3},Range:function(){return k6},Selection:function(){return k9},SelectionDirection:function(){return k8},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var C,S,y,T,R,A,N,O,L,I,w,D,x,M,k,P,F,B,U,H,V,W,G,j,z,K,Y,$,q,X,Z,Q,J,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,ef,eg,ep,em,e_,eE,ev,eb,eC,eS,ey,eT,eR,eA,eN,eO,eL,eI,ew,eD,ex,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ej,ez,eK,eY,e$,eq,eX,eZ,eQ,eJ,e0,e1,e2,e5,e4,e3,e6,e9,e8,e7,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tf,tg,tp,tm,t_,tE,tv,tb,tC,tS,ty,tT,tR,tA,tN,tO,tL,tI,tw,tD,tx,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tj,tz,tK,tY,t$,tq,tX,tZ,tQ,tJ,t0,t1,t2,t5,t4,t3,t6,t9,t8,t7,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,i_,iE,iv,ib,iC,iS,iy,iT,iR,iA,iN,iO,iL,iI,iw,iD,ix,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,ij,iz,iK,iY,i$,iq,iX,iZ,iQ,iJ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i3(e)||i0.onUnexpectedError(e)}function i2(e){i3(e)||i0.onUnexpectedExternalError(e)}function i5(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i4="Canceled";function i3(e){return e instanceof i6||e instanceof Error&&e.name===i4&&e.message===i4}class i6 extends Error{constructor(){super(i4),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i8(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i7 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class nf{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class ng{constructor(e){this.object=e}dispose(){}}class np{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let n_=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=n_&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new ny({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new ny({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new ny({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new ny({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new ny({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new ny({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e8||(e8={}));class nv{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${nv._idPool++}`,nv.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}nv.all=new Set,nv._idPool=0;class nb{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nC{static create(){var e;return new nC(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class nS{constructor(e){this.value=e}}class ny{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nb(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new nv(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new nS(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nC.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof nS?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nR),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let nT=()=>new nR;class nR{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nA extends ny{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nN extends nA{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nO extends ny{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nL{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nI{constructor(){this.listening=!1,this.inputEvent=e8.None,this.inputEventListener=nc.None,this.emitter=new ny({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nw=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(S=e7||(e7={})).isCancellationToken=function(e){return e===S.None||e===S.Cancelled||e instanceof nD||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e8.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nw});class nD{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nw:(this._emitter||(this._emitter=new ny),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nx{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nD),this._token}cancel(){this._token?this._token instanceof nD&&this._token.cancel():this._token=e7.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nD&&this._token.dispose():this._token=e7.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nj=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nj[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nj[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nj[3]=46}(),(y=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},y.fromString=function(e){return nk.strToKeyCode(e)},y.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},y.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},y.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},y.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nz=i(1432),nK=i(83454);if(void 0!==nz.li.vscode&&void 0!==nz.li.vscode.process){let e=nz.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nz.ED?"win32":nz.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let nY=n.cwd,n$=n.env,nq=n.platform;class nX extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nX(t,"string",e)}let nQ="win32"===nq;function nJ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n5(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nX(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n4={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=nY():(void 0===(o=n$[`=${t}`]||nY())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nJ(u)&&(a=1,h=!0);else if(nJ(u)){if(h=!0,nJ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nJ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nJ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nJ(o)){if(r=!0,nJ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nJ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nJ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nJ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nJ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nJ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nJ(i.charCodeAt(1))&&(++r,e>2&&(nJ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n4.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n4.resolve(e),n=n4.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let f="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(f+=0===f.length?"..":"\\..");return(a+=d,f.length>0)?`${f}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n4.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nJ(r)?e:".";if(nJ(r)){if(i=n=1,nJ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nJ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nJ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nJ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nJ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nJ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n5.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nJ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nJ(r)){if(n=1,nJ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nJ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n3=(()=>{if(nQ){let e=/\\/g;return()=>{let t=nY().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>nY()})(),n6={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n3();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n6.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n6.resolve(e))===(t=n6.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n5.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n6.win32=n4.win32=n4,n6.posix=n4.posix=n6;let n9=nQ?n4.normalize:n6.normalize,n8=nQ?n4.resolve:n6.resolve,n7=nQ?n4.relative:n6.relative,re=nQ?n4.dirname:n6.dirname,rt=nQ?n4.basename:n6.basename,ri=nQ?n4.extname:n6.extname,rn=nQ?n4.sep:n6.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rg(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",r_(i[4]||""),r_(i[5]||""),r_(i[7]||""),r_(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nz.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nz.ED&&"file"===e.scheme?rl.file(n4.join(rg(e,!0),...t)).path:n6.join(e.path,...t),e.with({path:i})}toString(e=!1){return rp(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nz.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rg(this,!1)),this._fsPath}toString(e=!1){return e?rp(this,!0):(this._formatted||(this._formatted=rp(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rf(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nz.ED&&(i=i.replace(/\//g,"\\")),i}function rp(e,t){let i=t?rf:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function r_(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return rv.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return rv.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return rv.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return rv.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return rv.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new rv(i,n,r,o)}intersectRanges(e){return rv.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new rv(i,n,r,o)}equalsRange(e){return rv.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return rv.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return rv.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new rv(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new rv(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return rv.collapseToStart(this)}static collapseToStart(e){return new rv(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return rv.collapseToEnd(this)}static collapseToEnd(e){return new rv(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new rv(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new rv(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new rv(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rb extends rv{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rb.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rb(this.startLineNumber,this.startColumn,e,t):new rb(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rb(e,t,this.endLineNumber,this.endColumn):new rb(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rb(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rb(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rb(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rb(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rx=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new ny,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rA(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rR(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(O=tl||(tl={}))[O.Unknown=0]="Unknown",O[O.Disabled=1]="Disabled",O[O.Enabled=2]="Enabled",(L=th||(th={}))[L.Invoke=1]="Invoke",L[L.Auto=2]="Auto",(I=tu||(tu={}))[I.None=0]="None",I[I.KeepWhitespace=1]="KeepWhitespace",I[I.InsertAsSnippet=4]="InsertAsSnippet",(w=td||(td={}))[w.Method=0]="Method",w[w.Function=1]="Function",w[w.Constructor=2]="Constructor",w[w.Field=3]="Field",w[w.Variable=4]="Variable",w[w.Class=5]="Class",w[w.Struct=6]="Struct",w[w.Interface=7]="Interface",w[w.Module=8]="Module",w[w.Property=9]="Property",w[w.Event=10]="Event",w[w.Operator=11]="Operator",w[w.Unit=12]="Unit",w[w.Value=13]="Value",w[w.Constant=14]="Constant",w[w.Enum=15]="Enum",w[w.EnumMember=16]="EnumMember",w[w.Keyword=17]="Keyword",w[w.Text=18]="Text",w[w.Color=19]="Color",w[w.File=20]="File",w[w.Reference=21]="Reference",w[w.Customcolor=22]="Customcolor",w[w.Folder=23]="Folder",w[w.TypeParameter=24]="TypeParameter",w[w.User=25]="User",w[w.Issue=26]="Issue",w[w.Snippet=27]="Snippet",(D=tc||(tc={}))[D.Deprecated=1]="Deprecated",(x=tf||(tf={}))[x.Invoke=0]="Invoke",x[x.TriggerCharacter=1]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tg||(tg={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tp||(tp={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=t_||(t_={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=tv||(tv={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tb||(tb={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tC||(tC={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=tS||(tS={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=ty||(ty={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(j=tT||(tT={}))[j.Both=0]="Both",j[j.Right=1]="Right",j[j.Left=2]="Left",j[j.None=3]="None",(z=tR||(tR={}))[z.Type=1]="Type",z[z.Parameter=2]="Parameter",(K=tA||(tA={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",(Y=tN||(tN={}))[Y.DependsOnKbLayout=-1]="DependsOnKbLayout",Y[Y.Unknown=0]="Unknown",Y[Y.Backspace=1]="Backspace",Y[Y.Tab=2]="Tab",Y[Y.Enter=3]="Enter",Y[Y.Shift=4]="Shift",Y[Y.Ctrl=5]="Ctrl",Y[Y.Alt=6]="Alt",Y[Y.PauseBreak=7]="PauseBreak",Y[Y.CapsLock=8]="CapsLock",Y[Y.Escape=9]="Escape",Y[Y.Space=10]="Space",Y[Y.PageUp=11]="PageUp",Y[Y.PageDown=12]="PageDown",Y[Y.End=13]="End",Y[Y.Home=14]="Home",Y[Y.LeftArrow=15]="LeftArrow",Y[Y.UpArrow=16]="UpArrow",Y[Y.RightArrow=17]="RightArrow",Y[Y.DownArrow=18]="DownArrow",Y[Y.Insert=19]="Insert",Y[Y.Delete=20]="Delete",Y[Y.Digit0=21]="Digit0",Y[Y.Digit1=22]="Digit1",Y[Y.Digit2=23]="Digit2",Y[Y.Digit3=24]="Digit3",Y[Y.Digit4=25]="Digit4",Y[Y.Digit5=26]="Digit5",Y[Y.Digit6=27]="Digit6",Y[Y.Digit7=28]="Digit7",Y[Y.Digit8=29]="Digit8",Y[Y.Digit9=30]="Digit9",Y[Y.KeyA=31]="KeyA",Y[Y.KeyB=32]="KeyB",Y[Y.KeyC=33]="KeyC",Y[Y.KeyD=34]="KeyD",Y[Y.KeyE=35]="KeyE",Y[Y.KeyF=36]="KeyF",Y[Y.KeyG=37]="KeyG",Y[Y.KeyH=38]="KeyH",Y[Y.KeyI=39]="KeyI",Y[Y.KeyJ=40]="KeyJ",Y[Y.KeyK=41]="KeyK",Y[Y.KeyL=42]="KeyL",Y[Y.KeyM=43]="KeyM",Y[Y.KeyN=44]="KeyN",Y[Y.KeyO=45]="KeyO",Y[Y.KeyP=46]="KeyP",Y[Y.KeyQ=47]="KeyQ",Y[Y.KeyR=48]="KeyR",Y[Y.KeyS=49]="KeyS",Y[Y.KeyT=50]="KeyT",Y[Y.KeyU=51]="KeyU",Y[Y.KeyV=52]="KeyV",Y[Y.KeyW=53]="KeyW",Y[Y.KeyX=54]="KeyX",Y[Y.KeyY=55]="KeyY",Y[Y.KeyZ=56]="KeyZ",Y[Y.Meta=57]="Meta",Y[Y.ContextMenu=58]="ContextMenu",Y[Y.F1=59]="F1",Y[Y.F2=60]="F2",Y[Y.F3=61]="F3",Y[Y.F4=62]="F4",Y[Y.F5=63]="F5",Y[Y.F6=64]="F6",Y[Y.F7=65]="F7",Y[Y.F8=66]="F8",Y[Y.F9=67]="F9",Y[Y.F10=68]="F10",Y[Y.F11=69]="F11",Y[Y.F12=70]="F12",Y[Y.F13=71]="F13",Y[Y.F14=72]="F14",Y[Y.F15=73]="F15",Y[Y.F16=74]="F16",Y[Y.F17=75]="F17",Y[Y.F18=76]="F18",Y[Y.F19=77]="F19",Y[Y.F20=78]="F20",Y[Y.F21=79]="F21",Y[Y.F22=80]="F22",Y[Y.F23=81]="F23",Y[Y.F24=82]="F24",Y[Y.NumLock=83]="NumLock",Y[Y.ScrollLock=84]="ScrollLock",Y[Y.Semicolon=85]="Semicolon",Y[Y.Equal=86]="Equal",Y[Y.Comma=87]="Comma",Y[Y.Minus=88]="Minus",Y[Y.Period=89]="Period",Y[Y.Slash=90]="Slash",Y[Y.Backquote=91]="Backquote",Y[Y.BracketLeft=92]="BracketLeft",Y[Y.Backslash=93]="Backslash",Y[Y.BracketRight=94]="BracketRight",Y[Y.Quote=95]="Quote",Y[Y.OEM_8=96]="OEM_8",Y[Y.IntlBackslash=97]="IntlBackslash",Y[Y.Numpad0=98]="Numpad0",Y[Y.Numpad1=99]="Numpad1",Y[Y.Numpad2=100]="Numpad2",Y[Y.Numpad3=101]="Numpad3",Y[Y.Numpad4=102]="Numpad4",Y[Y.Numpad5=103]="Numpad5",Y[Y.Numpad6=104]="Numpad6",Y[Y.Numpad7=105]="Numpad7",Y[Y.Numpad8=106]="Numpad8",Y[Y.Numpad9=107]="Numpad9",Y[Y.NumpadMultiply=108]="NumpadMultiply",Y[Y.NumpadAdd=109]="NumpadAdd",Y[Y.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",Y[Y.NumpadSubtract=111]="NumpadSubtract",Y[Y.NumpadDecimal=112]="NumpadDecimal",Y[Y.NumpadDivide=113]="NumpadDivide",Y[Y.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",Y[Y.ABNT_C1=115]="ABNT_C1",Y[Y.ABNT_C2=116]="ABNT_C2",Y[Y.AudioVolumeMute=117]="AudioVolumeMute",Y[Y.AudioVolumeUp=118]="AudioVolumeUp",Y[Y.AudioVolumeDown=119]="AudioVolumeDown",Y[Y.BrowserSearch=120]="BrowserSearch",Y[Y.BrowserHome=121]="BrowserHome",Y[Y.BrowserBack=122]="BrowserBack",Y[Y.BrowserForward=123]="BrowserForward",Y[Y.MediaTrackNext=124]="MediaTrackNext",Y[Y.MediaTrackPrevious=125]="MediaTrackPrevious",Y[Y.MediaStop=126]="MediaStop",Y[Y.MediaPlayPause=127]="MediaPlayPause",Y[Y.LaunchMediaPlayer=128]="LaunchMediaPlayer",Y[Y.LaunchMail=129]="LaunchMail",Y[Y.LaunchApp2=130]="LaunchApp2",Y[Y.Clear=131]="Clear",Y[Y.MAX_VALUE=132]="MAX_VALUE",($=tO||(tO={}))[$.Hint=1]="Hint",$[$.Info=2]="Info",$[$.Warning=4]="Warning",$[$.Error=8]="Error",(q=tL||(tL={}))[q.Unnecessary=1]="Unnecessary",q[q.Deprecated=2]="Deprecated",(X=tI||(tI={}))[X.Inline=1]="Inline",X[X.Gutter=2]="Gutter",(Z=tw||(tw={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(Q=tD||(tD={}))[Q.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",Q[Q.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",Q[Q.TOP_CENTER=2]="TOP_CENTER",(J=tx||(tx={}))[J.Left=1]="Left",J[J.Center=2]="Center",J[J.Right=4]="Right",J[J.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tj||(tj={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tz||(tz={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nx,Emitter:ny,KeyCode:tN,KeyMod:rM,Position:rE,Range:rv,Selection:rb,SelectionDirection:tU,MarkerSeverity:tO,MarkerTag:tL,Uri:rl,Token:rO}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rj(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rz(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rq(e,t){return et?1:0}function rX(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rQ(e,t,0,e.length,0,t.length)}function rQ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rX(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rJ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rQ(e,t)}function r5(e,t){let i=t.length;return!(t.length>e.length)&&0===rQ(e,t,0,i)}function r4(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r6(n))return r8(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r7(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=og.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(of(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=og.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(of(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function of(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class og{static getInstance(){return og._INSTANCE||(og._INSTANCE=new og),og._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}og._INSTANCE=null;class op{static getInstance(e){return op.cache.get(Array.from(e))}static getLocales(){return op._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}op.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),op.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new op(s)}),op._locales=new rF(()=>Object.keys(op.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class o_{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}o_.INSTANCE=new o_;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class ov extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function ob(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let oC=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new ov),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oS=navigator.userAgent,oy=oS.indexOf("Firefox")>=0,oT=oS.indexOf("AppleWebKit")>=0,oR=oS.indexOf("Chrome")>=0,oA=!oR&&oS.indexOf("Safari")>=0,oN=!oR&&!oA&&oT;oS.indexOf("Electron/");let oO=oS.indexOf("Android")>=0,oL=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oL=e.matches,ob(e,({matches:e})=>{oL&&t.matches||(oL=e)})}class oI{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=ow(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=ow(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=ow(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=ow(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=ow(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=ow(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=ow(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=ow(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=ow(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=ow(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=ow(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ow(e){return"number"==typeof e?`${e}px`:e}function oD(e){return new oI(e)}function ox(e,t){e instanceof oI?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");ox(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");ox(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");ox(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:oC.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),f=this._createRequest("7",0,t,i),g=this._createRequest("8",0,t,i),p=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),_=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),v=this._createRequest(String.fromCharCode(11825),0,t,null),b="|/-_ilm%";for(let e=0,n=b.length;e.001){S=!1;break}}let T=!0;return S&&_.width!==y&&(T=!1),_.width>m.width&&(T=!1),new oU({pixelRatio:oC.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:v.width,maxDigitWidth:C},!0)}};(ef=tY||(tY={})).serviceIds=new Map,ef.DI_TARGET="$di$target",ef.DI_DEPENDENCIES="$di$dependencies",ef.getServiceDependencies=function(e){return e[ef.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(tY.serviceIds.has(e))return tY.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[tY.DI_TARGET]===e?e[tY.DI_DEPENDENCIES].push({id:t,index:n}):(e[tY.DI_DEPENDENCIES]=[{id:t,index:n}],e[tY.DI_TARGET]=e)};return t.toString=()=>e,tY.serviceIds.set(e,t),t}let oj=oG("codeEditorService");function oz(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function oY(e){e()||(e(),i1(new nt("Assertion Failed")))}function o$(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i8(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o5._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o5._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o5._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o4=new Map;o4.set("false",!1),o4.set("true",!0),o4.set("isMac",nz.dz),o4.set("isLinux",nz.IJ),o4.set("isWindows",nz.ED),o4.set("isWeb",nz.$L),o4.set("isMacNative",nz.dz&&!nz.$L),o4.set("isEdge",nz.un),o4.set("isFirefox",nz.vU),o4.set("isChrome",nz.i7),o4.set("isSafari",nz.G6);let o3=Object.prototype.hasOwnProperty,o6={regexParsingWithErrorRecovery:!0},o9=(0,rN.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o8=(0,rN.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o7=(0,rN.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rN.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rN.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rN.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rN.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rN.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o6){this._config=e,this._scanner=new o5,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o8});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o5.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sp.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sC.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sC.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o7);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),sv.create(t,this._value());case 6:return this._advance(),sb.create(t,this._value());case 7:return this._advance(),s_.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[739],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},5165:function(e,t,i){"use strict";i.d(t,{w:function(){return tz}});var n=i(97582),r={line_chart:{id:"line_chart",name:"Line Chart",alias:["Lines"],family:["LineCharts"],def:"A line chart uses lines with segments to show changes in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},step_line_chart:{id:"step_line_chart",name:"Step Line Chart",alias:["Step Lines"],family:["LineCharts"],def:"A step line chart is a line chart in which points of each line are connected by horizontal and vertical line segments, looking like steps of a staircase.",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Direction"],recRate:"Recommended"},area_chart:{id:"area_chart",name:"Area Chart",alias:[],family:["AreaCharts"],def:"An area chart uses series of line segments with overlapped areas to show the change in data in a ordinal dimension.",purpose:["Comparison","Trend","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_area_chart:{id:"stacked_area_chart",name:"Stacked Area Chart",alias:[],family:["AreaCharts"],def:"A stacked area chart uses layered line segments with different styles of padding regions to display how multiple sets of data change in the same ordinal dimension, and the endpoint heights of the segments on the same dimension tick are accumulated by value.",purpose:["Composition","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},percent_stacked_area_chart:{id:"percent_stacked_area_chart",name:"Percent Stacked Area Chart",alias:["Percent Stacked Area","% Stacked Area","100% Stacked Area"],family:["AreaCharts"],def:"A percent stacked area chart is an extented stacked area chart in which the height of the endpoints of the line segment on the same dimension tick is the accumulated proportion of the ratio, which is 100% of the total.",purpose:["Comparison","Composition","Proportion","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length"],recRate:"Recommended"},column_chart:{id:"column_chart",name:"Column Chart",alias:["Columns"],family:["ColumnCharts"],def:"A column chart uses series of columns to display the value of the dimension. The horizontal axis shows the classification dimension and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},grouped_column_chart:{id:"grouped_column_chart",name:"Grouped Column Chart",alias:["Grouped Column"],family:["ColumnCharts"],def:"A grouped column chart uses columns of different colors to form a group to display the values of dimensions. The horizontal axis indicates the grouping of categories, the color indicates the categories, and the vertical axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},stacked_column_chart:{id:"stacked_column_chart",name:"Stacked Column Chart",alias:["Stacked Column"],family:["ColumnCharts"],def:"A stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_column_chart:{id:"percent_stacked_column_chart",name:"Percent Stacked Column Chart",alias:["Percent Stacked Column","% Stacked Column","100% Stacked Column"],family:["ColumnCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The horizontal axis indicates the first classification dimension, the color indicates the second classification dimension, and the vertical axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},range_column_chart:{id:"range_column_chart",name:"Range Column Chart",alias:[],family:["ColumnCharts"],def:"A column chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Length"],recRate:"Recommended"},waterfall_chart:{id:"waterfall_chart",name:"Waterfall Chart",alias:["Flying Bricks Chart","Mario Chart","Bridge Chart","Cascade Chart"],family:["ColumnCharts"],def:"A waterfall chart is used to portray how an initial value is affected by a series of intermediate positive or negative values",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal","Time","Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},histogram:{id:"histogram",name:"Histogram",alias:[],family:["ColumnCharts"],def:"A histogram is an accurate representation of the distribution of numerical data.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},bar_chart:{id:"bar_chart",name:"Bar Chart",alias:["Bars"],family:["BarCharts"],def:"A bar chart uses series of bars to display the value of the dimension. The vertical axis shows the classification dimension and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position","Color"],recRate:"Recommended"},stacked_bar_chart:{id:"stacked_bar_chart",name:"Stacked Bar Chart",alias:["Stacked Bar"],family:["BarCharts"],def:"A stacked bar chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Composition","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length","Position"],recRate:"Recommended"},percent_stacked_bar_chart:{id:"percent_stacked_bar_chart",name:"Percent Stacked Bar Chart",alias:["Percent Stacked Bar","% Stacked Bar","100% Stacked Bar"],family:["BarCharts"],def:"A percent stacked column chart uses stacked bars of different colors to display the values for each dimension. The vertical axis indicates the first classification dimension, the color indicates the second classification dimension, and the horizontal axis shows the percentage of the corresponding classification.",purpose:["Comparison","Composition","Distribution","Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},grouped_bar_chart:{id:"grouped_bar_chart",name:"Grouped Bar Chart",alias:["Grouped Bar"],family:["BarCharts"],def:"A grouped bar chart uses bars of different colors to form a group to display the values of the dimensions. The vertical axis indicates the grouping of categories, the color indicates the categories, and the horizontal axis shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},range_bar_chart:{id:"range_bar_chart",name:"Range Bar Chart",alias:[],family:["BarCharts"],def:"A bar chart that does not have to start from zero axis.",purpose:["Comparison"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Length"],recRate:"Recommended"},radial_bar_chart:{id:"radial_bar_chart",name:"Radial Bar Chart",alias:["Radial Column Chart"],family:["BarCharts"],def:"A bar chart that is plotted in the polar coordinate system. The axis along radius shows the classification dimension and the angle shows the corresponding value.",purpose:["Comparison","Distribution","Rank"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color"],recRate:"Recommended"},bullet_chart:{id:"bullet_chart",name:"Bullet Chart",alias:[],family:["BarCharts"],def:"A bullet graph is a variation of a bar graph developed by Stephen Few. Seemingly inspired by the traditional thermometer charts and progress bars found in many dashboards, the bullet graph serves as a replacement for dashboard gauges and meters.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]}],channel:["Position","Color"],recRate:"Recommended"},pie_chart:{id:"pie_chart",name:"Pie Chart",alias:["Circle Chart","Pie"],family:["PieCharts"],def:"A pie chart is a chart that the classification and proportion of data are represented by the color and arc length (angle, area) of the sector.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Area","Color"],recRate:"Use with Caution"},donut_chart:{id:"donut_chart",name:"Donut Chart",alias:["Donut","Doughnut","Doughnut Chart","Ring Chart"],family:["PieCharts"],def:"A donut chart is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["ArcLength"],recRate:"Recommended"},nested_pie_chart:{id:"nested_pie_chart",name:"Nested Pie Chart",alias:["Nested Circle Chart","Nested Pie","Nested Donut Chart"],family:["PieCharts"],def:"A nested pie chart is a chart that contains several donut charts, where all the donut charts share the same center in position.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]}],channel:["Angle","Area","Color","Position"],recRate:"Use with Caution"},rose_chart:{id:"rose_chart",name:"Rose Chart",alias:["Nightingale Chart","Polar Area Chart","Coxcomb Chart"],family:["PieCharts"],def:"Nightingale Rose Chart is a peculiar combination of the Radar Chart and Stacked Column Chart types of data visualization.",purpose:["Comparison","Composition","Proportion"],coord:["Polar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Angle","Color","Length"],recRate:"Use with Caution"},scatter_plot:{id:"scatter_plot",name:"Scatter Plot",alias:["Scatter Chart","Scatterplot"],family:["ScatterCharts"],def:"A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for series of data.",purpose:["Comparison","Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position"],recRate:"Recommended"},bubble_chart:{id:"bubble_chart",name:"Bubble Chart",alias:["Bubble Chart"],family:["ScatterCharts"],def:"A bubble chart is a type of chart that displays four dimensions of data with x, y positions, circle size and circle color.",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Scatter"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Position","Size"],recRate:"Recommended"},non_ribbon_chord_diagram:{id:"non_ribbon_chord_diagram",name:"Non-Ribbon Chord Diagram",alias:[],family:["GeneralGraph"],def:"A stripped-down version of a Chord Diagram, with only the connection lines showing. This provides more emphasis on the connections within the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},arc_diagram:{id:"arc_diagram",name:"Arc Diagram",alias:[],family:["GeneralGraph"],def:"A graph where the edges are represented as arcs.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},chord_diagram:{id:"chord_diagram",name:"Chord Diagram",alias:[],family:["GeneralGraph"],def:"A graphical method of displaying the inter-relationships between data in a matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs connecting the data.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},treemap:{id:"treemap",name:"Treemap",alias:[],family:["TreeGraph"],def:"A visual representation of a data tree with nodes. Each node is displayed as a rectangle, sized and colored according to values that you assign.",purpose:["Composition","Comparison","Hierarchy"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Area"],recRate:"Recommended"},sankey_diagram:{id:"sankey_diagram",name:"Sankey Diagram",alias:[],family:["GeneralGraph"],def:"A graph shows the flows with weights between objects.",purpose:["Flow","Trend","Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},funnel_chart:{id:"funnel_chart",name:"Funnel Chart",alias:[],family:["FunnelCharts"],def:"A funnel chart is often used to represent stages in a sales process and show the amount of potential revenue for each stage.",purpose:["Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Length"],recRate:"Recommended"},mirror_funnel_chart:{id:"mirror_funnel_chart",name:"Mirror Funnel Chart",alias:["Contrast Funnel Chart"],family:["FunnelCharts"],def:"A mirror funnel chart is a funnel chart divided into two series by a central axis.",purpose:["Comparison","Trend"],coord:["SymmetricCartesian"],category:["Statistic"],shape:["Symmetric"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Length","Direction"],recRate:"Recommended"},box_plot:{id:"box_plot",name:"Box Plot",alias:["Box and Whisker Plot","boxplot"],family:["BarCharts"],def:"A box plot is often used to graphically depict groups of numerical data through their quartiles. Box plots may also have lines extending from the boxes indicating variability outside the upper and lower quartiles. Outliers may be plotted as individual points.",purpose:["Distribution","Anomaly"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},heatmap:{id:"heatmap",name:"Heatmap",alias:[],family:["HeatmapCharts"],def:"A heatmap is a graphical representation of data where the individual values contained in a matrix are represented as colors.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Square"],dataPres:[{minQty:2,maxQty:2,fieldConditions:["Nominal","Ordinal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},density_heatmap:{id:"density_heatmap",name:"Density Heatmap",alias:["Heatmap"],family:["HeatmapCharts"],def:"A density heatmap is a heatmap for representing the density of dots.",purpose:["Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Area"],dataPres:[{minQty:3,maxQty:3,fieldConditions:["Interval"]}],channel:["Color","Position","Area"],recRate:"Recommended"},radar_chart:{id:"radar_chart",name:"Radar Chart",alias:["Web Chart","Spider Chart","Star Chart","Cobweb Chart","Irregular Polygon","Kiviat diagram"],family:["RadarCharts"],def:"A radar chart maps series of data volume of multiple dimensions onto the axes. Starting at the same center point, usually ending at the edge of the circle, connecting the same set of points using lines.",purpose:["Comparison"],coord:["Radar"],category:["Statistic"],shape:["Round"],dataPres:[{minQty:1,maxQty:2,fieldConditions:["Nominal"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Color","Position"],recRate:"Recommended"},wordcloud:{id:"wordcloud",name:"Word Cloud",alias:["Wordle","Tag Cloud","Text Cloud"],family:["Others"],def:"A word cloud is a collection, or cluster, of words depicted in different sizes, colors, and shapes, which takes a piece of text as input. Typically, the font size in the word cloud is encoded as the word frequency in the input text.",purpose:["Proportion"],coord:["Cartesian2D"],category:["Diagram"],shape:["Scatter"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Nominal"]},{minQty:0,maxQty:1,fieldConditions:["Interval"]}],channel:["Size","Position","Color"],recRate:"Recommended"},candlestick_chart:{id:"candlestick_chart",name:"Candlestick Chart",alias:["Japanese Candlestick Chart)"],family:["BarCharts"],def:"A candlestick chart is a specific version of box plot, which is a style of financial chart used to describe price movements of a security, derivative, or currency.",purpose:["Trend","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Bars"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time"]},{minQty:1,maxQty:1,fieldConditions:["Interval"]}],channel:["Position"],recRate:"Recommended"},compact_box_tree:{id:"compact_box_tree",name:"CompactBox Tree",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the nodes with same depth on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},dendrogram:{id:"dendrogram",name:"Dendrogram",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which arranges the leaves on the same level.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},indented_tree:{id:"indented_tree",name:"Indented Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout where the hierarchy of tree is represented by the horizontal indentation, and each element will occupy one row/column. It is commonly used to represent the file directory structure.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_tree:{id:"radial_tree",name:"Radial Tree Layout",alias:[],family:["TreeGraph"],def:"A type of tree graph layout which places the root at the center, and the branches around the root radially.",purpose:["Relation","Hierarchy"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},flow_diagram:{id:"flow_diagram",name:"Flow Diagram",alias:["Dagre Graph Layout","Dagre","Flow Chart"],family:["GeneralGraph"],def:"Directed flow graph.",purpose:["Relation","Flow"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fruchterman_layout_graph:{id:"fruchterman_layout_graph",name:"Fruchterman Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},force_directed_layout_graph:{id:"force_directed_layout_graph",name:"Force Directed Graph Layout",alias:[],family:["GeneralGraph"],def:"The classical force directed graph layout.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},fa2_layout_graph:{id:"fa2_layout_graph",name:"Force Atlas 2 Graph Layout",alias:["FA2 Layout"],family:["GeneralGraph"],def:"A type of force directed graph layout algorithm. It focuses more on the degree of the node when calculating the force than the classical force-directed algorithm .",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},mds_layout_graph:{id:"mds_layout_graph",name:"Multi-Dimensional Scaling Layout",alias:["MDS Layout"],family:["GeneralGraph"],def:"A type of dimension reduction algorithm that could be used for calculating graph layout. MDS (Multidimensional scaling) is used for project high dimensional data onto low dimensional space.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},circular_layout_graph:{id:"circular_layout_graph",name:"Circular Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes on a circle.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},spiral_layout_graph:{id:"spiral_layout_graph",name:"Spiral Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges all the nodes along a spiral line.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},radial_layout_graph:{id:"radial_layout_graph",name:"Radial Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which places a focus node on the center and the others on the concentrics centered at the focus node according to the shortest path length to the it.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},concentric_layout_graph:{id:"concentric_layout_graph",name:"Concentric Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout which arranges the nodes on concentrics.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"},grid_layout_graph:{id:"grid_layout_graph",name:"Grid Graph Layout",alias:[],family:["GeneralGraph"],def:"A type of graph layout arranges the nodes on grids.",purpose:["Relation"],coord:["Cartesian2D"],category:["Graph"],shape:["Network"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Nominal"]}],channel:["Color","Size","Opacity","Stroke","LineWidth"],recRate:"Recommended"}};function o(e,t){return t.every(function(t){return e.includes(t)})}var s=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"],a=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function l(e,t){return t.some(function(t){return e.includes(t)})}function h(e,t){return e.distinctt.distinct?-1:0}var u={"bar-series-qty":.5,"data-check":1,"data-field-qty":1,"diff-pie-sector":.5,"landscape-or-portrait":.3,"limit-series":1,"line-field-time-ordinal":1,"no-redundant-field":1,"nominal-enum-combinatorial":1,"purpose-check":1,"series-qty-limit":.8},d=function(e,t,i,r,o,s){var a=1;return Object.values(i).filter(function(i){var s,a,l,h=(null===(s=i.option)||void 0===s?void 0:s.weight)||u[i.id]||1,d=null===(a=i.option)||void 0===a?void 0:a.extra;return i.type===r&&i.trigger((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},o),{weight:h}),d),{chartType:e,chartWIKI:t}))&&!(null===(l=i.option)||void 0===l?void 0:l.off)}).forEach(function(i){var l,h,d=(null===(l=i.option)||void 0===l?void 0:l.weight)||u[i.id]||1,c=null===(h=i.option)||void 0===h?void 0:h.extra,f=i.validator((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},o),{weight:d}),c),{chartType:e,chartWIKI:t})),g=d*f;a*=g,s.push({phase:"ADVISE",ruleId:i.id,score:g,base:f,weight:d,ruleType:r})}),a},c=["pie_chart","donut_chart"],f=["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart","column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"];function g(e){var t=e.chartType,i=e.dataProps,n=e.preferences;return!!(i&&t&&n&&n.canvasLayout)}var p=["line_chart","area_chart","stacked_area_chart","percent_stacked_area_chart"],m=["bar_chart","column_chart","grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"];function _(e){return e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])})}var E=["pie_chart","donut_chart","radar_chart","rose_chart"],v=i(96486);function b(e){return"number"==typeof e}function C(e){return"string"==typeof e||"boolean"==typeof e}function S(e){return e instanceof Date}function y(e){var t=e.encode,i=e.data,r=e.scale,o=(0,v.mapValues)(t,function(e,t){var n,o,s;return{field:e,type:void 0!==(n=null==r?void 0:r[t].type)?function(e){switch(e){case"linear":case"log":case"pow":case"sqrt":case"qunatile":case"threshold":case"quantize":case"sequential":return"quantitative";case"time":return"temporal";case"ordinal":case"point":case"band":return"categorical";default:throw Error("Unkonwn scale type: ".concat(e,"."))}}(n):function(e){if(e.some(b))return"quantitative";if(e.some(C))return"categorical";if(e.some(S))return"temporal";throw Error("Unknown type: ".concat(typeof e[0]))}((o=i,"function"==typeof(s=e)?o.map(s):"string"==typeof s&&o.some(function(e){return void 0!==e[s]})?o.map(function(e){return e[s]}):o.map(function(){return s})))}});return(0,n.pi)((0,n.pi)({},e),{encode:o})}var T=["line_chart"],R={"bar-series-qty":{id:"bar-series-qty",type:"SOFT",docs:{lintText:"Bar chart should has proper number of bars or bar groups."},trigger:function(e){var t=e.chartType;return s.includes(t)},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i&&n){var r=i.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),s=r&&r.count?r.count:0;s>20&&(t=20/s)}return t<.1?.1:t}},"bar-without-axis-min":{id:"bar-without-axis-min",type:"DESIGN",docs:{lintText:"It is not recommended to set the minimum value of axis for the bar or column chart.",fixText:"Remove the minimum value config of axis."},trigger:function(e){var t=e.chartType;return a.includes(t)},optimizer:function(e,t){var i,n,r=t.scale;if(!r)return{};var o=null===(i=r.x)||void 0===i?void 0:i.domainMin,s=null===(n=r.y)||void 0===n?void 0:n.domainMin;if(o||s){var a=JSON.parse(JSON.stringify(r));return o&&(a.x.domainMin=0),s&&(a.y.domainMin=0),{scale:a}}return{}}},"data-check":{id:"data-check",type:"HARD",docs:{lintText:"Data must satisfy the data prerequisites."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){t=1;var o=r[n].dataPres||[];o.forEach(function(e){!function(e,t){var i=t.map(function(e){return e.levelOfMeasurements});if(i){var n=0;if(i.forEach(function(t){t&&l(t,e.fieldConditions)&&(n+=1)}),n>=e.minQty&&(n<=e.maxQty||"*"===e.maxQty))return!0}return!1}(e,i)&&(t=0)}),i.map(function(e){return e.levelOfMeasurements}).forEach(function(e){var i=!1;o.forEach(function(t){e&&l(e,t.fieldConditions)&&(i=!0)}),i||(t=0)})}return t}},"data-field-qty":{id:"data-field-qty",type:"HARD",docs:{lintText:"Data must have at least the min qty of the prerequisite."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){t=1;var o=(r[n].dataPres||[]).map(function(e){return e.minQty}).reduce(function(e,t){return e+t});i.length&&i.length>=o&&(t=1)}return t}},"diff-pie-sector":{id:"diff-pie-sector",type:"SOFT",docs:{lintText:"The difference between sectors of a pie chart should be large enough."},trigger:function(e){var t=e.chartType;return c.includes(t)},validator:function(e){var t=1,i=e.dataProps;if(i){var n=i.find(function(e){return o(e.levelOfMeasurements,["Interval"])});if(n&&n.sum&&n.rawData){var r=1/n.sum,s=n.rawData.map(function(e){return e*r}).reduce(function(e,t){return e*t}),a=n.rawData.length,l=Math.pow(1/a,a);t=2*(Math.abs(l-Math.abs(s))/l)}}return t<.1?.1:t}},"landscape-or-portrait":{id:"landscape-or-portrait",type:"SOFT",docs:{lintText:"Recommend column charts for landscape layout and bar charts for portrait layout."},trigger:function(e){return f.includes(e.chartType)&&g(e)},validator:function(e){var t=1,i=e.chartType,n=e.preferences;return g(e)&&("portrait"===n.canvasLayout&&["bar_chart","grouped_bar_chart","stacked_bar_chart","percent_stacked_bar_chart"].includes(i)?t=5:"landscape"===n.canvasLayout&&["column_chart","grouped_column_chart","stacked_column_chart","percent_stacked_column_chart"].includes(i)&&(t=5)),t}},"limit-series":{id:"limit-series",type:"SOFT",docs:{lintText:"Avoid too many values in one series."},trigger:function(e){return e.dataProps.filter(function(e){return l(e.levelOfMeasurements,["Nominal","Ordinal"])}).length>=2},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i){var r=i.filter(function(e){return l(e.levelOfMeasurements,["Nominal","Ordinal"])});if(r.length>=2){var o=r.sort(h)[1];o.distinct&&(t=o.distinct>10?.1:1/o.distinct,o.distinct>6&&"heatmap"===n?t=5:"heatmap"===n&&(t=1))}}return t}},"line-field-time-ordinal":{id:"line-field-time-ordinal",type:"SOFT",docs:{lintText:"Data containing time or ordinal fields are suitable for line or area charts."},trigger:function(e){var t=e.chartType;return p.includes(t)},validator:function(e){var t=1,i=e.dataProps;return i&&i.find(function(e){return l(e.levelOfMeasurements,["Ordinal","Time"])})&&(t=5),t}},"no-redundant-field":{id:"no-redundant-field",type:"HARD",docs:{lintText:"No redundant field."},trigger:function(){return!0},validator:function(e){var t=0,i=e.dataProps,n=e.chartType,r=e.chartWIKI;if(i&&n&&r[n]){var o=(r[n].dataPres||[]).map(function(e){return"*"===e.maxQty?99:e.maxQty}).reduce(function(e,t){return e+t});i.length&&i.length<=o&&(t=1)}return t}},"nominal-enum-combinatorial":{id:"nominal-enum-combinatorial",type:"SOFT",docs:{lintText:"Single (Basic) and Multi (Stacked, Grouped,...) charts should be optimized recommended by nominal enums combinatorial numbers."},trigger:function(e){var t=e.chartType,i=e.dataProps;return m.includes(t)&&_(i).length>=2},validator:function(e){var t=1,i=e.dataProps,n=e.chartType;if(i){var r=_(i);if(r.length>=2){var o=r.sort(h),s=o[0],a=o[1];s.distinct===s.count&&["bar_chart","column_chart"].includes(n)&&(t=5),s.count&&s.distinct&&a.distinct&&s.count>s.distinct&&["grouped_bar_chart","grouped_column_chart","stacked_bar_chart","stacked_column_chart"].includes(n)&&(t=5)}}return t}},"purpose-check":{id:"purpose-check",type:"HARD",docs:{lintText:"Choose chart types that satisfy the purpose, if purpose is defined."},trigger:function(){return!0},validator:function(e){var t=0,i=e.chartType,n=e.purpose,r=e.chartWIKI;return n?(i&&r[i]&&n&&(r[i].purpose||"").includes(n)&&(t=1),t):t=1}},"series-qty-limit":{id:"series-qty-limit",type:"SOFT",docs:{lintText:"Some charts should has at most N values for the series."},trigger:function(e){var t=e.chartType;return E.includes(t)},validator:function(e){var t=1,i=e.dataProps,n=e.chartType,r=e.limit;if((!Number.isInteger(r)||r<=0)&&(r=6,("pie_chart"===n||"donut_chart"===n||"rose_chart"===n)&&(r=6),"radar_chart"===n&&(r=8)),i){var s=i.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),a=s&&s.count?s.count:0;a>=2&&a<=r&&(t=5+2/a)}return t}},"x-axis-line-fading":{id:"x-axis-line-fading",type:"DESIGN",docs:{lintText:"Adjust axis to make it prettier"},trigger:function(e){var t=e.chartType;return T.includes(t)},optimizer:function(e,t){var i,n=y(t).encode;if(n&&(null===(i=n.y)||void 0===i?void 0:i.type)==="quantitative"){var r=e.find(function(e){var t;return e.name===(null===(t=n.y)||void 0===t?void 0:t.field)});if(r){var o=r.maximum-r.minimum;if(r.minimum&&r.maximum&&o<2*r.maximum/3){var s=Math.floor(r.minimum-o/5);return{axis:{x:{tick:!1}},scale:{y:{domainMin:s>0?s:0}},clip:!0}}}}return{}}}},A=Object.keys(R),N=function(e){var t={};return e.forEach(function(e){Object.keys(R).includes(e)&&(t[e]=R[e])}),t},O=function(e){if(!e)return N(A);var t=N(A);if(e.exclude&&e.exclude.forEach(function(e){Object.keys(t).includes(e)&&delete t[e]}),e.include){var i=e.include;Object.keys(t).forEach(function(e){i.includes(e)||delete t[e]})}var r=(0,n.pi)((0,n.pi)({},t),e.custom),o=e.options;return o&&Object.keys(o).forEach(function(e){if(Object.keys(r).includes(e)){var t=o[e];r[e]=(0,n.pi)((0,n.pi)({},r[e]),{option:t})}}),r},L=[[!0,!1],[0,1],["true","false"],["Yes","No"],["True","False"],["0","1"],["是","否"]],I="([-_./\\s])",w="(18|19|20)\\d{2}",D="(0?[1-9]|1[012])",x="(0?[1-9]|[12]\\d|3[01])",M="(0?\\d|1\\d|2[0-4])",k="(0?\\d|[012345]\\d)",P="(Z|[+-]".concat(M,"(:").concat(k,")?)");function F(e){return null==e||""===e||Number.isNaN(e)||"null"===e}function B(e){return"string"==typeof e}function U(e){return"number"==typeof e}function H(e){if(B(e)){var t=!1,i=e;/^[+-]/.test(i)&&(i=i.slice(1));for(var n=0;n0&&t<100,"The percent cannot be between (0, 100)."),(i?e:e.sort(function(e,t){return e>t?1:-1}))[Math.ceil(e.length*t/100)-1]}function eo(e){var t=en(e),i=J(e,"variance");return void 0!==i?i:Q(e,"variance",e.reduce(function(e,i){return e+Math.pow(i-t,2)},0)/e.length)}function es(e){return Math.sqrt(eo(e))}function ea(e){var t={};return e.forEach(function(e){var i="".concat(e);t[i]?t[i]+=1:t[i]=1}),t}var el=function(e){var t,i,r=(void 0===(t=e)&&(t=!0),["".concat(w),"".concat(w).concat(I).concat(t?"":"?","W").concat("([0-4]\\d|5[0-2])","(").concat(I).concat(t?"":"?").concat("([1-7])",")?"),"".concat(D).concat(I).concat(t?"":"?").concat(x).concat(I).concat(t?"":"?").concat(w),"".concat(w).concat(I).concat(t?"":"?").concat(D).concat(I).concat(t?"":"?").concat(x),"".concat(w).concat(I).concat(t?"":"?").concat(D),"".concat(w).concat(I).concat(t?"":"?").concat("((([0-2]\\d|3[0-5])\\d)|36[0-6])")]),o=(void 0===(i=e)&&(i=!0),["".concat(M,":").concat(i?"":"?").concat(k,":").concat(i?"":"?").concat(k,"([.,]").concat("\\d{1,4}",")?").concat(P,"?"),"".concat(M,":").concat(i?"":"?").concat(k,"?").concat(P)]),s=(0,n.ev)((0,n.ev)([],(0,n.CR)(r),!1),(0,n.CR)(o),!1);return r.forEach(function(e){o.forEach(function(t){s.push("".concat(e,"[T\\s]").concat(t))})}),s.map(function(e){return new RegExp("^".concat(e,"$"))})};function eh(e,t){if(B(e)){for(var i=el(t),n=0;n0&&(c.generateColumns([0],null==i?void 0:i.columns),c.colData=[c.data],c.data=c.data.map(function(e){return[e]})),Y(g)){var p=q(g.length);c.generateDataAndColDataFromArray(!1,t,p,null==i?void 0:i.fillValue,null==i?void 0:i.columnTypes),c.generateColumns(p,null==i?void 0:i.columns)}if(K(g)){for(var m=[],f=0;f=0&&m>=0||_.length>0,"The rowLoc is not found in the indexes."),p>=0&&m>=0&&(A=this.data.slice(p,m),N=this.indexes.slice(p,m)),_.length>0)for(var a=0;a<_.length;a+=1){var C=_[a];A.push(this.data[C]),N.push(this.indexes[C])}if(E>=0&&v>=0){for(var a=0;a0){for(var O=[],L=A.slice(),a=0;a=0&&p>=0||m.length>0,"The colLoc is illegal"),V(i)&&q(this.columns.length).includes(i)&&(_=i,E=i+1),Y(i))for(var a=0;a=0&&p>=0||m.length>0,"The rowLoc is not found in the indexes.");var R=[],A=[];if(g>=0&&p>=0)R=this.data.slice(g,p),A=this.indexes.slice(g,p);else if(m.length>0)for(var a=0;a=0&&E>=0||v.length>0,"The colLoc is not found in the columns index."),_>=0&&E>=0){for(var a=0;a0){for(var N=[],O=R.slice(),a=0;a1){var E={},v=f;g.forEach(function(t){"date"===t?(E.date=e(v.filter(function(e){return eh(e)}),i),v=v.filter(function(e){return!eh(e)})):"integer"===t?(E.integer=e(v.filter(function(e){return W(e)}),i),v=v.filter(function(e){return!W(e)})):"float"===t?(E.float=e(v.filter(function(e){return G(e)}),i),v=v.filter(function(e){return!G(e)})):"string"===t&&(E.string=e(v.filter(function(e){return"string"===ed(e,i)})),v=v.filter(function(e){return"string"!==ed(e,i)}))}),_.meta=E}2===_.distinct&&"date"!==_.recommendation&&(d.length>=100?_.recommendation="boolean":z(m,!0)&&(_.recommendation="boolean")),"string"===u&&Object.assign(_,{maxLength:et(r=(n=f.map(function(e){return"".concat(e)})).map(function(e){return e.length})),minLength:ee(r),meanLength:en(r),containsChar:n.some(function(e){return/[A-z]/.test(e)}),containsDigit:n.some(function(e){return/[0-9]/.test(e)}),containsSpace:n.some(function(e){return/\s/.test(e)})}),("integer"===u||"float"===u)&&Object.assign(_,{minimum:ee(o=f.map(function(e){return 1*e})),maximum:et(o),mean:en(o),percentile5:er(o,5),percentile25:er(o,25),percentile50:er(o,50),percentile75:er(o,75),percentile95:er(o,95),sum:ei(o),variance:eo(o),standardDeviation:es(o),zeros:o.filter(function(e){return 0===e}).length}),"date"===u&&Object.assign(_,(s="integer"===_.type,a=f.map(function(e){if(s){var t="".concat(e);if(8===t.length)return new Date("".concat(t.substring(0,4),"/").concat(t.substring(4,2),"/").concat(t.substring(6,2))).getTime()}return new Date(e).getTime()}),{minimum:f[void 0!==(l=J(a,"minIndex"))?l:Q(a,"minIndex",function(e){for(var t=e[0],i=0,n=0;nt&&(i=n,t=e[n]);return i}(a))]}));var b=[];return"boolean"!==_.recommendation&&("string"!==_.recommendation||eu(_))||b.push("Nominal"),eu(_)&&b.push("Ordinal"),("integer"===_.recommendation||"float"===_.recommendation)&&b.push("Interval"),"integer"===_.recommendation&&b.push("Discrete"),"float"===_.recommendation&&b.push("Continuous"),"date"===_.recommendation&&b.push("Time"),_.levelOfMeasurements=b,_}(this.colData[i],this.extra.strictDatePattern)),{name:String(r)}))}return t},t.prototype.toString=function(){for(var e=this,t=Array(this.columns.length+1).fill(0),i=0;it[0]&&(t[0]=n)}for(var i=0;it[i+1]&&(t[i+1]=n)}for(var i=0;it[i+1]&&(t[i+1]=n)}return"".concat(ep(t[0])).concat(this.columns.map(function(i,n){return"".concat(i).concat(n!==e.columns.length?ep(t[n+1]-e_(i)+2):"")}).join(""),"\n").concat(this.indexes.map(function(i,n){var r;return"".concat(i).concat(ep(t[0]-e_(i))).concat(null===(r=e.data[n])||void 0===r?void 0:r.map(function(i,n){return"".concat(em(i)).concat(n!==e.columns.length?ep(t[n+1]-e_(i)):"")}).join("")).concat(n!==e.indexes.length?"\n":"")}).join(""))},t}(ev),eS=function(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e)){t=[];for(var t,i=0,n=e.length;i!!eA().valid(e);function eO(e){let{value:t}=e;return eN(t)?eA()(t).hex():""}let eL={lab:{l:[0,100],a:[-86.185,98.254],b:[-107.863,94.482]},lch:{l:[0,100],c:[0,100],h:[0,360]},rgb:{r:[0,255],g:[0,255],b:[0,255]},rgba:{r:[0,255],g:[0,255],b:[0,255],a:[0,1]},hsl:{h:[0,360],s:[0,1],l:[0,1]},hsv:{h:[0,360],s:[0,1],v:[0,1]},hsi:{h:[0,360],s:[0,1],i:[0,1]},cmyk:{c:[0,1],m:[0,1],y:[0,1],k:[0,1]}},eI=e=>!!eA().valid(e),ew=e=>{let{value:t}=e;return eI(t)?eA()(t):eA()("#000")},eD=(e,t=e.model)=>{let i=ew(e);return i?i[t]():[0,0,0]},ex=(e,t=4===e.length?"rgba":"rgb")=>{let i={};if(1===e.length){let[n]=e;for(let e=0;ee*t/255,eB=(e,t)=>e+t-e*t/255,eU=(e,t)=>e<128?eF(2*e,t):eB(2*e-255,t),eH={normal:e=>e,darken:(e,t)=>Math.min(e,t),multiply:eF,colorBurn:(e,t)=>0===e?0:Math.max(0,255*(1-(255-t)/e)),lighten:(e,t)=>Math.max(e,t),screen:eB,colorDodge:(e,t)=>255===e?255:Math.min(255,255*(t/(255-e))),overlay:(e,t)=>eU(t,e),softLight:(e,t)=>{if(e<128)return t-(1-2*e/255)*t*(1-t/255);let i=t<64?((16*(t/255)-12)*(t/255)+4)*(t/255):Math.sqrt(t/255);return t+255*(2*e/255-1)*(i-t/255)},hardLight:eU,difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t/255,linearBurn:(e,t)=>Math.max(e+t-255,0),linearDodge:(e,t)=>Math.min(255,e+t),linearLight:(e,t)=>Math.max(t+2*e-255,0),vividLight:(e,t)=>e<128?255*(1-(1-t/255)/(2*e/255)):255*(t/2/(255-e)),pinLight:(e,t)=>e<128?Math.min(t,2*e):Math.max(t,2*e-255)},eV=e=>.3*e[0]+.58*e[1]+.11*e[2],eW=e=>{let t=eV(e),i=Math.min(...e),n=Math.max(...e),r=[...e];return i<0&&(r=r.map(e=>t+(e-t)*t/(t-i))),n>255&&(r=r.map(e=>t+(e-t)*(255-t)/(n-t))),r},eG=(e,t)=>{let i=t-eV(e);return eW(e.map(e=>e+i))},ej=e=>Math.max(...e)-Math.min(...e),ez=(e,t)=>{let i=e.map((e,t)=>({value:e,index:t}));i.sort((e,t)=>e.value-t.value);let n=i[0].index,r=i[1].index,o=i[2].index,s=[...e];return s[o]>s[n]?(s[r]=(s[r]-s[n])*t/(s[o]-s[n]),s[o]=t):(s[r]=0,s[o]=0),s[n]=0,s},eK={hue:(e,t)=>eG(ez(e,ej(t)),eV(t)),saturation:(e,t)=>eG(ez(t,ej(e)),eV(t)),color:(e,t)=>eG(e,eV(t)),luminosity:(e,t)=>eG(t,eV(e))},eY=(e,t,i="normal")=>{let n;let[r,o,s,a]=eD(e,"rgba"),[l,h,u,d]=eD(t,"rgba"),c=[r,o,s],f=[l,h,u];if(eT.includes(i)){let e=eH[i];n=c.map((t,i)=>Math.floor(e(t,f[i])))}else n=eK[i](c,f);let g=a+d*(1-a),p=Math.round((a*(1-d)*r+a*d*n[0]+(1-a)*d*l)/g),m=Math.round((a*(1-d)*o+a*d*n[1]+(1-a)*d*h)/g),_=Math.round((a*(1-d)*s+a*d*n[2]+(1-a)*d*u)/g);return 1===g?{model:"rgb",value:{r:p,g:m,b:_}}:{model:"rgba",value:{r:p,g:m,b:_,a:g}}},e$=(e,t)=>{let i=(e+t)%360;return i<0?i+=360:i>=360&&(i-=360),i},eq=(e=1,t=0)=>{let i=Math.min(e,t),n=Math.max(e,t);return i+Math.random()*(n-i)},eX=(e=1,t=0)=>{let i=Math.ceil(Math.min(e,t)),n=Math.floor(Math.max(e,t));return Math.floor(i+Math.random()*(n-i+1))},eZ=e=>{if(e&&"object"==typeof e){let t=Array.isArray(e);if(t){let t=e.map(e=>eZ(e));return t}let i={},n=Object.keys(e);return n.forEach(t=>{i[t]=eZ(e[t])}),i}return e};function eQ(e){return e*(Math.PI/180)}var eJ=i(56917),e0=i.n(eJ);let e1=(e,t="normal")=>{if("normal"===t)return{...e};let i=eO(e),n=e0()[t](i);return eP(n)},e2=e=>{let t=eM(e),[,,,i=1]=eD(e,"rgba");return ek(t,i)},e5=(e,t="normal")=>"grayscale"===t?e2(e):e1(e,t),e4=(e,t,i=[eX(5,10),eX(90,95)])=>{let[n,r,o]=eD(e,"lab"),s=n<=15?n:i[0],a=n>=85?n:i[1],l=(a-s)/(t-1),h=Math.ceil((n-s)/l);return l=0===h?l:(n-s)/h,Array(t).fill(0).map((e,t)=>ex([l*t+s,r,o],"lab"))},e3=e=>{let{count:t,color:i,tendency:n}=e,r=e4(i,t),o={name:"monochromatic",semantic:null,type:"discrete-scale",colors:"tint"===n?r:r.reverse()};return o},e6={model:"rgb",value:{r:0,g:0,b:0}},e9={model:"rgb",value:{r:255,g:255,b:255}},e8=(e,t,i="lab")=>eA().distance(ew(e),ew(t),i),e7=(e,t)=>{let i=Math.atan2(e,t)*(180/Math.PI);return i>=0?i:i+360},te=(e,t)=>{let i,n;let[r,o,s]=eD(e,"lab"),[a,l,h]=eD(t,"lab"),u=Math.sqrt(o**2+s**2),d=Math.sqrt(l**2+h**2),c=(u+d)/2,f=.5*(1-Math.sqrt(c**7/(c**7+6103515625))),g=(1+f)*o,p=(1+f)*l,m=Math.sqrt(g**2+s**2),_=Math.sqrt(p**2+h**2),E=e7(s,g),v=e7(h,p),b=_-m;i=180>=Math.abs(v-E)?v-E:v-E<-180?v-E+360:v-E-360;let C=2*Math.sqrt(m*_)*Math.sin(eQ(i)/2);n=180>=Math.abs(E-v)?(E+v)/2:Math.abs(E-v)>180&&E+v<360?(E+v+360)/2:(E+v-360)/2;let S=(r+a)/2,y=(m+_)/2,T=1-.17*Math.cos(eQ(n-30))+.24*Math.cos(eQ(2*n))+.32*Math.cos(eQ(3*n+6))-.2*Math.cos(eQ(4*n-63)),R=1+.015*(S-50)**2/Math.sqrt(20+(S-50)**2),A=1+.045*y,N=1+.015*y*T,O=-2*Math.sqrt(y**7/(y**7+6103515625))*Math.sin(eQ(60*Math.exp(-(((n-275)/25)**2)))),L=Math.sqrt(((a-r)/(1*R))**2+(b/(1*A))**2+(C/(1*N))**2+O*(b/(1*A))*(C/(1*N)));return L},tt=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},ti=e=>{let[t,i,n]=eD(e);return .2126*tt(t)+.7152*tt(i)+.0722*tt(n)},tn=(e,t)=>{let i=ti(e),n=ti(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)},tr=(e,t,i={measure:"euclidean"})=>{let{measure:n="euclidean",backgroundColor:r=ey}=i,o=eY(e,r),s=eY(t,r);switch(n){case"CIEDE2000":return te(o,s);case"euclidean":return e8(o,s,i.colorModel);case"contrastRatio":return tn(o,s);default:return e8(o,s)}},to=[.8,1.2],ts={rouletteWheel:e=>{let t=e.reduce((e,t)=>e+t),i=0,n=eq(t),r=0;for(let t=0;t{let t=-1,i=0;for(let n=0;n<3;n+=1){let r=eX(e.length-1);e[r]>i&&(t=n,i=e[r])}return t}},ta=(e,t="tournament")=>ts[t](e),tl=(e,t)=>{let i=eZ(e),n=eZ(t);for(let r=1;r{let r=eZ(e),o=t[eX(t.length-1)],s=eX(e[0].length-1),a=r[o][s]*eq(...to),l=[15,240];"grayscale"!==i&&(l=eL[n][n.split("")[s]]);let[h,u]=l;return au&&(a=u),r[o][s]=a,r},tu=(e,t,i,n,r,o)=>{let s;s="grayscale"===i?e.map(([e])=>ek(e)):e.map(e=>e5(ex(e,n),i));let a=1/0;for(let e=0;e{if(Math.round(tu(e,t,i,r,o,s))>n)return e;let a=Array(e.length).fill(0).map((e,t)=>t).filter((e,i)=>!t[i]),l=Array(50).fill(0).map(()=>th(e,a,i,r)),h=l.map(e=>tu(e,t,i,r,o,s)),u=Math.max(...h),d=l[h.findIndex(e=>e===u)],c=1;for(;c<100&&Math.round(u)eq()?tl(t,n):[t,n];o=o.map(e=>.1>eq()?th(e,a,i,r):e),e.push(...o)}h=(l=e).map(e=>tu(e,t,i,r,o,s));let n=Math.max(...h);u=n,d=l[h.findIndex(e=>e===n)],c+=1}return d},tc={euclidean:30,CIEDE2000:20,contrastRatio:4.5},tf={euclidean:291.48,CIEDE2000:100,contrastRatio:21},tg=(e,t={})=>{let{locked:i=[],simulationType:n="normal",threshold:r,colorModel:o="hsv",colorDifferenceMeasure:s="euclidean",backgroundColor:a=ey}=t,l=r;if(l||(l=tc[s]),"grayscale"===n){let t=tf[s];l=Math.min(l,t/e.colors.length)}let h=eZ(e);if("matrix"!==h.type&&"continuous-scale"!==h.type){if("grayscale"===n){let e=h.colors.map(e=>[eM(e)]),t=td(e,i,n,l,o,s,a);h.colors.forEach((e,i)=>Object.assign(e,function(e,t){let i;let[,n,r]=eD(t,"lab"),[,,,o=1]=eD(t,"rgba"),s=100*e,a=Math.round(s),l=eM(ex([a,n,r],"lab")),h=25;for(;Math.round(s)!==Math.round(l/255*100)&&h>0;)s>l/255*100?a+=1:a-=1,h-=1,l=eM(ex([a,n,r],"lab"));if(Math.round(s)eD(e,o)),t=td(e,i,n,l,o,s,a);h.colors.forEach((e,i)=>{Object.assign(e,ex(t[i],o))})}}return h},tp=[.3,.9],tm=[.5,1],t_=(e,t,i,n=[])=>{let[r]=eD(e,"hsv"),o=Array(i).fill(!1),s=-1===n.findIndex(t=>t&&t.model===e.model&&t.value===e.value),a=Array(i).fill(0).map((i,a)=>{let l=n[a];return l?(o[a]=!0,l):s?(s=!1,o[a]=!0,e):ex([e$(r,t*a),eq(...tp),eq(...tm)],"hsv")});return{newColors:a,locked:o}};function tE(){let e=eX(255),t=eX(255),i=eX(255);return ex([e,t,i],"rgb")}let tv=e=>{let{count:t,colors:i}=e,n=[],r={name:"random",semantic:null,type:"categorical",colors:Array(t).fill(0).map((e,t)=>{let r=i[t];return r?(n[t]=!0,r):tE()})};return tg(r,{locked:n})},tb=["monochromatic"],tC=(e,t)=>{let{count:i=8,tendency:n="tint"}=t,{colors:r=[],color:o}=t;return o||(o=r.find(e=>!!e&&!!e.model&&!!e.value)||tE()),tb.includes(e)&&(r=[]),{color:o,colors:r,count:i,tendency:n}},tS={monochromatic:e3,analogous:e=>{let{count:t,color:i,tendency:n}=e,[r,o,s]=eD(i,"hsv"),a=Math.floor(t/2),l=60/(t-1);r>=60&&r<=240&&(l=-l);let h=(o-.1)/3/(t-a-1),u=(s-.4)/3/a,d=Array(t).fill(0).map((e,t)=>{let i=e$(r,l*(t-a)),n=t<=a?Math.min(o+h*(a-t),1):o+3*h*(a-t),d=t<=a?s-3*u*(a-t):Math.min(s-u*(a-t),1);return ex([i,n,d],"hsv")}),c={name:"analogous",semantic:null,type:"discrete-scale",colors:"tint"===n?d:d.reverse()};return c},achromatic:e=>{let{tendency:t}=e,i={...e,color:"tint"===t?e6:e9},n=e3(i);return{...n,name:"achromatic"}},complementary:e=>{let t;let{count:i,color:n}=e,[r,o,s]=eD(n,"hsv"),a=ex([e$(r,180),o,s],"hsv"),l=eX(80,90),h=eX(15,25),u=Math.floor(i/2),d=e4(n,u,[h,l]),c=e4(a,u,[h,l]).reverse();if(i%2==1){let e=ex([(e$(r,180)+r)/2,eq(.05,.1),eq(.9,.95)],"hsv");t=[...d,e,...c]}else t=[...d,...c];let f={name:"complementary",semantic:null,type:"discrete-scale",colors:t};return f},"split-complementary":e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,180,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},triadic:e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,120,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},tetradic:e=>{let{count:t,color:i,colors:n}=e,{newColors:r,locked:o}=t_(i,90,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:r},{locked:o})},polychromatic:e=>{let{count:t,color:i,colors:n}=e,r=360/t,{newColors:o,locked:s}=t_(i,r,t,n);return tg({name:"tetradic",semantic:null,type:"categorical",colors:o},{locked:s})},customized:tv},ty=(e="monochromatic",t={})=>{let i=tC(e,t);try{return tS[e](i)}catch(e){return tv(i)}};i(16243);var tT={}.toString,tR=function(e,t){return tT.call(e)==="[object ".concat(t,"]")},tA=function(e){if(!("object"==typeof e&&null!==e)||!tR(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},tN=function(e){for(var t=[],i=1;it.distinct)return -1}return 0};function tw(e){return[e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])}),e.find(function(e){return o(e.levelOfMeasurements,["Interval"])})]}function tD(e){return[e.find(function(e){return l(e.levelOfMeasurements,["Time","Ordinal"])}),e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])})]}function tx(e){var t=e.find(function(e){return l(e.levelOfMeasurements,["Time","Ordinal"])}),i=e.find(function(e){return o(e.levelOfMeasurements,["Nominal"])});return[t,e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),i]}function tM(e){var t=e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])}).sort(tI),i=t[0],n=t[1];return[e.find(function(e){return o(e.levelOfMeasurements,["Interval"])}),i,n]}function tk(e){var t,i,r,s,a,l,h=e.filter(function(e){return o(e.levelOfMeasurements,["Nominal"])}).sort(tI);return!function(e,t){if(!Y(e)||0===e.length||!Y(t)||0===t.length||e.length!==t.length)return!1;for(var i={},n=0;nr.corr&&(r.x=i[e],r.y=i[t],r.corr=a,r.size=i[(0,n.ev)([],(0,n.CR)(Array(i.length).keys()),!1).find(function(i){return i!==e&&i!==t})||0])},o=e+1;o0&&(!_||e.spec)}).sort(function(e,t){return e.scoret.score?-1:0}),log:v}}catch(e){return console.error("error: ",e),null}}var tU=function(e){var t,i=e.coordinate;if((null==i?void 0:i.type)==="theta")return(null==i?void 0:i.innerRadius)?"donut_chart":"pie_chart";var n=e.transform,r=null===(t=null==i?void 0:i.transform)||void 0===t?void 0:t.some(function(e){return"transpose"===e.type}),o=null==n?void 0:n.some(function(e){return"normalizeY"===e.type}),s=null==n?void 0:n.some(function(e){return"stackY"===e.type}),a=null==n?void 0:n.some(function(e){return"dodgeX"===e.type});return r?a?"grouped_bar_chart":o?"stacked_bar_chart":s?"percent_stacked_bar_chart":"bar_chart":a?"grouped_column_chart":o?"stacked_column_chart":s?"percent_stacked_column_chart":"column_chart"},tH=function(e){var t=e.transform,i=null==t?void 0:t.some(function(e){return"stackY"===e.type}),n=null==t?void 0:t.some(function(e){return"normalizeY"===e.type});return i?n?"percent_stacked_area_chart":"stacked_area_chart":"area_chart"},tV=function(e){var t=e.encode;return t.shape&&"hvh"===t.shape?"step_line_chart":"line_chart"},tW=function(e){var t;switch(e.type){case"area":t=tH(e);break;case"interval":t=tU(e);break;case"line":t=tV(e);break;case"point":t=e.encode.size?"bubble_chart":"scatter_plot";break;case"rect":t="histogram";break;case"cell":t="heatmap";break;default:t=""}return t};function tG(e,t,i,r,o,s,a){Object.values(e).filter(function(e){var r,o,a=e.option||{},l=a.weight,h=a.extra;return r=e.type,("DESIGN"===t?"DESIGN"===r:"DESIGN"!==r)&&!(null===(o=e.option)||void 0===o?void 0:o.off)&&e.trigger((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},i),{weight:l}),h),{chartWIKI:s}))}).forEach(function(e){var l,h=e.type,u=e.id,d=e.docs;if("DESIGN"===t){var c=e.optimizer(i.dataProps,a);l=0===Object.keys(c).length?1:0,o.push({type:h,id:u,score:l,fix:c,docs:d})}else{var f=e.option||{},g=f.weight,p=f.extra;l=e.validator((0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},i),{weight:g}),p),{chartWIKI:s})),o.push({type:h,id:u,score:l,docs:d})}r.push({phase:"LINT",ruleId:u,score:l,base:l,weight:1,ruleType:h})})}function tj(e,t,i){var n=e.spec,r=e.options,o=e.dataProps,s=null==r?void 0:r.purpose,a=null==r?void 0:r.preferences,l=tW(n),h=[],u=[];if(!n||!l)return{lints:h,log:u};if(!o||!o.length)try{o=new eC(n.data).info()}catch(e){return console.error("error: ",e),{lints:h,log:u}}var d={dataProps:o,chartType:l,purpose:s,preferences:a};return tG(t,"notDESIGN",d,u,h,i),tG(t,"DESIGN",d,u,h,i,n),{lints:h=h.filter(function(e){return e.score<1}),log:u}}var tz=function(){function e(e){var t,i,o,s,a;void 0===e&&(e={}),this.ckb=(t=e.ckbCfg,i=JSON.parse(JSON.stringify(r)),t?(o=t.exclude,s=t.include,a=t.custom,o&&o.forEach(function(e){Object.keys(i).includes(e)&&delete i[e]}),s&&Object.keys(i).forEach(function(e){s.includes(e)||delete i[e]}),(0,n.pi)((0,n.pi)({},i),a)):i),this.ruleBase=O(e.ruleCfg)}return e.prototype.advise=function(e){return tB(e,this.ckb,this.ruleBase).advices},e.prototype.adviseWithLog=function(e){return tB(e,this.ckb,this.ruleBase)},e.prototype.lint=function(e){return tj(e,this.ruleBase,this.ckb).lints},e.prototype.lintWithLog=function(e){return tj(e,this.ruleBase,this.ckb)},e}()},17816:function(e,t){!function(e){"use strict";function t(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||0i=>e(t(i)),e)}function T(e,t){return t-e?i=>(i-e)/(t-e):e=>.5}x=new g(3),g!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0),x=new g(4),g!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0,x[3]=0);let R=Math.sqrt(50),A=Math.sqrt(10),N=Math.sqrt(2);function O(e,t,i){return e=Math.floor(Math.log(t=(t-e)/Math.max(0,i))/Math.LN10),i=t/10**e,0<=e?(i>=R?10:i>=A?5:i>=N?2:1)*10**e:-(10**-e)/(i>=R?10:i>=A?5:i>=N?2:1)}let L=(e,t,i=5)=>{let n=0,r=(e=[e,t]).length-1,o=e[n],s=e[r],a;return s{i.prototype.rescale=function(){this.initRange(),this.nice();var[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},i.prototype.initRange=function(){var t=this.options.interpolator;this.options.range=e(t)},i.prototype.composeOutput=function(e,i){var{domain:n,interpolator:r,round:o}=this.getOptions(),n=t(n.map(e)),o=o?e=>a(e=r(e),"Number")?Math.round(e):e:r;this.output=y(o,n,i,e)},i.prototype.invert=void 0}}var D,x={exports:{}},M={exports:{}},k=Array.prototype.concat,P=Array.prototype.slice,F=M.exports=function(e){for(var t=[],i=0,n=e.length;ii=>e*(1-i)+t*i,q=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return $(e,t);if("string"!=typeof e||"string"!=typeof t)return()=>e;{let i=Y(e),n=Y(t);return null===i||null===n?i?()=>e:()=>t:e=>{var t=[,,,,];for(let s=0;s<4;s+=1){var r=i[s],o=n[s];t[s]=r*(1-e)+o*e}var[s,a,l,h]=t;return`rgba(${Math.round(s)}, ${Math.round(a)}, ${Math.round(l)}, ${h})`}}},X=(e,t)=>{let i=$(e,t);return e=>Math.round(i(e))};function Z({map:e,initKey:t},i){return t=t(i),e.has(t)?e.get(t):i}function Q(e){return"object"==typeof e?e.valueOf():e}class J extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=Q,null!==e)for(var[t,i]of e)this.set(t,i)}get(e){return super.get(Z({map:this.map,initKey:this.initKey},e))}has(e){return super.has(Z({map:this.map,initKey:this.initKey},e))}set(e,t){var i,n;return super.set(([{map:e,initKey:i},n]=[{map:this.map,initKey:this.initKey},e],i=i(n),e.has(i)?e.get(i):(e.set(i,n),n)),t)}delete(e){var t,i;return super.delete(([{map:e,initKey:t},i]=[{map:this.map,initKey:this.initKey},e],t=t(i),e.has(t)&&(i=e.get(t),e.delete(t)),i))}}class ee{constructor(e){this.options=d({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=d({},this.options,e),this.rescale(e)}rescale(e){}}let et=Symbol("defaultUnknown");function ei(e,t,i){for(let n=0;n""+e:"object"==typeof e?e=>JSON.stringify(e):e=>e}class eo extends ee{getDefaultOptions(){return{domain:[],range:[],unknown:et}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&ei(this.domainIndexMap,this.getDomain(),this.domainKey),en({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&ei(this.rangeIndexMap,this.getRange(),this.rangeKey),en({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){var[t]=this.options.domain,[i]=this.options.range;this.domainKey=er(t),this.rangeKey=er(i),this.rangeIndexMap?(e&&!e.range||this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new eo(this.options)}getRange(){return this.options.range}getDomain(){var e,t;return this.sortedDomain||({domain:e,compare:t}=this.options,this.sortedDomain=t?[...e].sort(t):e),this.sortedDomain}}class es extends eo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:et,flex:[]}}constructor(e){super(e)}clone(){return new es(this.options)}getStep(e){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:e,paddingInner:t}=this.options;return 0e/t)}(h),g=d/f.reduce((e,t)=>e+t);var h=new J(t.map((e,t)=>(t=f[t]*g,[e,s?Math.floor(t):t]))),p=new J(t.map((e,t)=>(t=f[t]*g+c,[e,s?Math.floor(t):t]))),d=Array.from(p.values()).reduce((e,t)=>e+t),e=e+(u-(d-d/l*r))*a;let m=s?Math.round(e):e;var _=Array(l);for(let e=0;el+t*s),{valueStep:s,valueBandWidth:a,adjustedRange:e}}({align:e,range:i,round:n,flex:r,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=n,this.valueBandWidth=i,this.adjustedRange=e}}let ea=(e,t,i)=>{let n,r,o=e,s=t;if(o===s&&0{let n;var[e,r]=e,[t,o]=t;return y(e{let n=Math.min(e.length,t.length)-1,r=Array(n),o=Array(n);var s=e[0]>e[n],a=s?[...e].reverse():e,l=s?[...t].reverse():t;for(let e=0;e{var i=function(e,t,i,n,r){let o=1,s=n||e.length;for(var a=e=>e;ot?s=l:o=l+1}return o}(e,t,0,n)-1,s=r[i];return y(o[i],s)(t)}},eu=(e,t,i,n)=>(2Math.min(Math.max(n,e),r)}return c}composeOutput(e,t){var{domain:i,range:n,round:r,interpolate:o}=this.options,i=eu(i.map(e),n,o,r);this.output=y(i,t,e)}composeInput(e,t,i){var{domain:n,range:r}=this.options,r=eu(r,n.map(e),$);this.input=y(t,i,r)}}class ec extends ed{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:q,tickMethod:ea,tickCount:5}}chooseTransforms(){return[c,c]}clone(){return new ec(this.options)}}class ef extends es{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:et,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new ef(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}function eg(e,t){for(var i=[],n=0,r=e.length;n{var[e,t]=e;return y($(0,1),T(e,t))})],e_);let eE=o=class extends ec{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:c,tickMethod:ea,tickCount:5}}constructor(e){super(e)}clone(){return new o(this.options)}};function ev(e,t,n,r,o){var s=new ec({range:[t,t+r]}),a=new ec({range:[n,n+o]});return{transform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.map(t),a.map(e)]},untransform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.invert(t),a.invert(e)]}}}function eb(e,t,n,r,o){return(0,i(e,1)[0])(t,n,r,o)}function eC(e,t,n,r,o){return i(e,1)[0]}function eS(e,t,n,r,o){var s=(e=i(e,4))[0],a=e[1],l=e[2],e=e[3],h=new ec({range:[l,e]}),u=new ec({range:[s,a]}),d=1<(l=o/r)?1:l,c=1{let[t,i,n]=e,r=y($(0,.5),T(t,i)),o=y($(.5,1),T(i,n));return e=>(t>n?eh&&(h=g)}for(var p=Math.atan(n/(i*Math.tan(r))),m=1/0,_=-1/0,E=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var v=p+d;o_&&(_=C)}return{x:l,y:m,width:h-l,height:_-m}}function l(e,t,i,n){return o(e,t,i,n)}function h(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}}function u(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function d(e,t,i,n){var o,s,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if((0,r.Z)(l,0))!(0,r.Z)(h,0)&&(o=-u/h)>=0&&o<=1&&d.push(o);else{var c=h*h-4*l*u;(0,r.Z)(c,0)?d.push(-h/(2*l)):c>0&&(o=(-h+(a=Math.sqrt(c)))/(2*l),s=(-h-a)/(2*l),o>=0&&o<=1&&d.push(o),s>=0&&s<=1&&d.push(s))}return d}function c(e,t,i,n,r,o,a,l){for(var h=[e,a],c=[t,l],f=d(e,i,r,a),g=d(t,n,o,l),p=0;p=0?[o]:[]}function m(e,t,i,n,r,o){var a=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==a&&h.push(g(e,i,r,a)),void 0!==l&&u.push(g(t,n,o,l)),s(h,u)}},53984:function(e,t){"use strict";t.Z=function(e,t,i){return ei?i:e}},47427:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return Array.isArray?Array.isArray(e):(0,n.Z)(e,"Array")}},63725:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return(0,n.Z)(e,"Boolean")}},37377:function(e,t){"use strict";t.Z=function(e){return null==e}},76703:function(e,t,i){"use strict";function n(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)1&&(v*=O=Math.sqrt(O),b*=O);var L=v*v,I=b*b,w=(s===l?-1:1)*Math.sqrt(Math.abs((L*I-L*N*N-I*A*A)/(L*N*N+I*A*A)));p=w*v*N/b+(_+C)/2,m=-(w*b)*A/v+(E+S)/2,f=Math.asin(((E-m)/b*1e9>>0)/1e9),g=Math.asin(((S-m)/b*1e9>>0)/1e9),f=_g&&(f-=2*Math.PI),!l&&g>f&&(g-=2*Math.PI)}var D=g-f;if(Math.abs(D)>y){var x=g,M=C,k=S;R=e(C=p+v*Math.cos(g=f+y*(l&&g>f?1:-1)),S=m+b*Math.sin(g),v,b,o,0,l,M,k,[g,x,p,m])}D=g-f;var P=Math.cos(f),F=Math.cos(g),B=Math.tan(D/4),U=4/3*v*B,H=4/3*b*B,V=[_,E],W=[_+U*Math.sin(f),E-H*P],G=[C+U*Math.sin(g),S-H*F],j=[C,S];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],d)return W.concat(G,j,R);R=W.concat(G,j,R);for(var z=[],K=0,Y=R.length;K7){e[i].shift();for(var n=e[i],r=i;n.length;)t[i]="A",e.splice(r+=1,0,["C"].concat(n.splice(0,6)));e.splice(i,1)}}(d,f,_),p=d.length,"Z"===g&&m.push(_),l=(i=d[_]).length,c.x1=+i[l-2],c.y1=+i[l-1],c.x2=+i[l-4]||c.x1,c.y2=+i[l-3]||c.y1}return t?[d,m]:d}},63893:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},54109:function(e,t,i){"use strict";i.d(t,{z:function(){return n}});var n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},8699:function(e,t,i){"use strict";function n(e){return e.map(function(e){return Array.isArray(e)?[].concat(e):e})}i.d(t,{U:function(){return n}})},28024:function(e,t,i){"use strict";i.d(t,{A:function(){return f}});var n=i(97582),r=i(12884),o=i(54109),s=i(41793),a=i(66141),l=i(63893);function h(e){for(var t=e.pathValue[e.segmentStart],i=t.toLowerCase(),n=e.data;n.length>=l.R[i]&&("m"===i&&n.length>2?(e.segments.push([t].concat(n.splice(0,2))),i="l",t="m"===t?"l":"L"):e.segments.push([t].concat(n.splice(0,l.R[i]))),l.R[i]););}function u(e){return e>=48&&e<=57}function d(e){for(var t,i=e.pathValue,n=e.max;e.index=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t));)e.index+=1}var c=function(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function f(e){if((0,r.y)(e))return[].concat(e);for(var t=function(e){if((0,s.b)(e))return[].concat(e);var t=function(e){if((0,a.n)(e))return[].concat(e);var t=new c(e);for(d(t);t.index0;a-=1){if((32|r)==97&&(3===a||4===a)?function(e){var t=e.index,i=e.pathValue,n=i.charCodeAt(t);if(48===n){e.param=0,e.index+=1;return}if(49===n){e.param=1,e.index+=1;return}e.err='[path-util]: invalid Arc flag "'+i[t]+'", expecting 0 or 1 at index '+t}(e):function(e){var t,i=e.max,n=e.pathValue,r=e.index,o=r,s=!1,a=!1,l=!1,h=!1;if(o>=i){e.err="[path-util]: Invalid path value at index "+o+', "pathValue" is missing param';return}if((43===(t=n.charCodeAt(o))||45===t)&&(o+=1,t=n.charCodeAt(o)),!u(t)&&46!==t){e.err="[path-util]: Invalid path value at index "+o+', "'+n[o]+'" is not a number';return}if(46!==t){if(s=48===t,o+=1,t=n.charCodeAt(o),s&&o=e.max||!((s=i.charCodeAt(e.index))>=48&&s<=57||43===s||45===s||46===s))break}h(e)}(t);return t.err?t.err:t.segments}(e),i=0,n=0,r=0,o=0;return t.map(function(e){var t,s=e.slice(1).map(Number),a=e[0],l=a.toUpperCase();if("M"===a)return i=s[0],n=s[1],r=i,o=n,["M",i,n];if(a!==l)switch(l){case"A":t=[l,s[0],s[1],s[2],s[3],s[4],s[5]+i,s[6]+n];break;case"V":t=[l,s[0]+n];break;case"H":t=[l,s[0]+i];break;default:t=[l].concat(s.map(function(e,t){return e+(t%2?n:i)}))}else t=[l].concat(s);var h=t.length;switch(l){case"Z":i=r,n=o;break;case"H":i=t[1];break;case"V":n=t[1];break;default:i=t[h-2],n=t[h-1],"M"===l&&(r=i,o=n)}return t})}(e),i=(0,n.pi)({},o.z),f=0;f=g[t],p[t]-=m?1:0,m?e.ss:[e.s]}).flat()});return _[0].length===_[1].length?_:e(_[0],_[1],f)}}});var n=i(47852),r=i(31427);function o(e){return e.map(function(e,t,i){var o,s,a,l,h,u,d,c,f,g,p,m,_=t&&i[t-1].slice(-2).concat(e.slice(1)),E=t?(0,r.S)(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],{bbox:!1}).length:0;return m=t?E?(void 0===o&&(o=.5),s=_.slice(0,2),a=_.slice(2,4),l=_.slice(4,6),h=_.slice(6,8),u=(0,n.k)(s,a,o),d=(0,n.k)(a,l,o),c=(0,n.k)(l,h,o),f=(0,n.k)(u,d,o),g=(0,n.k)(d,c,o),p=(0,n.k)(f,g,o),[["C"].concat(u,f,p),["C"].concat(g,c,h)]):[e,e]:[e],{s:e,ss:m,l:E}})}},49958:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(75066);function r(e){var t,i,r;return t=0,i=0,r=0,(0,n.Y)(e).map(function(e){if("M"===e[0])return t=e[1],i=e[2],0;var n,o,s,a=e.slice(1),l=a[0],h=a[1],u=a[2],d=a[3],c=a[4],f=a[5];return o=t,r=3*((f-(s=i))*(l+u)-(c-o)*(h+d)+h*(o-u)-l*(s-d)+f*(u+o/3)-c*(d+s/3))/20,t=(n=e.slice(-2))[0],i=n[1],r}).reduce(function(e,t){return e+t},0)>=0}},80431:function(e,t,i){"use strict";i.d(t,{r:function(){return o}});var n=i(97582),r=i(12369);function o(e,t,i){return(0,r.s)(e,t,(0,n.pi)((0,n.pi)({},i),{bbox:!1,length:!0})).point}},88154:function(e,t,i){"use strict";i.d(t,{g:function(){return r}});var n=i(6393);function r(e,t){var i,r,o=e.length-1,s=[],a=0,l=(r=(i=e.length)-1,e.map(function(t,n){return e.map(function(t,o){var s=n+o;return 0===o||e[s]&&"M"===e[s][0]?["M"].concat(e[s].slice(-2)):(s>=i&&(s-=r),e[s])})}));return l.forEach(function(i,r){e.slice(1).forEach(function(i,s){a+=(0,n.y)(e[(r+s)%o].slice(-2),t[s%o].slice(-2))}),s[r]=a,a=0}),l[s.indexOf(Math.min.apply(null,s))]}},72888:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i(97582),r=i(12369);function o(e,t){return(0,r.s)(e,void 0,(0,n.pi)((0,n.pi)({},t),{bbox:!1,length:!0})).length}},41793:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(66141);function r(e){return(0,n.n)(e)&&e.every(function(e){var t=e[0];return t===t.toUpperCase()})}},12884:function(e,t,i){"use strict";i.d(t,{y:function(){return r}});var n=i(41793);function r(e){return(0,n.b)(e)&&e.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}},66141:function(e,t,i){"use strict";i.d(t,{n:function(){return r}});var n=i(63893);function r(e){return Array.isArray(e)&&e.every(function(e){var t=e[0].toLowerCase();return n.R[t]===e.length-1&&"achlmqstvz".includes(t)})}},47852:function(e,t,i){"use strict";function n(e,t,i){var n=e[0],r=e[1];return[n+(t[0]-n)*i,r+(t[1]-r)*i]}i.d(t,{k:function(){return n}})},12369:function(e,t,i){"use strict";i.d(t,{s:function(){return h}});var n=i(28024),r=i(47852),o=i(6393);function s(e,t,i,n,s){var a=(0,o.y)([e,t],[i,n]),l={x:0,y:0};if("number"==typeof s){if(s<=0)l={x:e,y:t};else if(s>=a)l={x:i,y:n};else{var h=(0,r.k)([e,t],[i,n],s/a);l={x:h[0],y:h[1]}}}return{length:a,point:l,min:{x:Math.min(e,i),y:Math.min(t,n)},max:{x:Math.max(e,i),y:Math.max(t,n)}}}function a(e,t){var i=e.x,n=e.y,r=t.x,o=t.y,s=Math.sqrt((Math.pow(i,2)+Math.pow(n,2))*(Math.pow(r,2)+Math.pow(o,2)));return(i*o-n*r<0?-1:1)*Math.acos((i*r+n*o)/s)}var l=i(31427);function h(e,t,i){for(var r,h,u,d,c,f,g,p,m,_=(0,n.A)(e),E="number"==typeof t,v=[],b=0,C=0,S=0,y=0,T=[],R=[],A=0,N={x:0,y:0},O=N,L=N,I=N,w=0,D=0,x=_.length;D1&&(_*=p(y),E*=p(y));var T=(Math.pow(_,2)*Math.pow(E,2)-Math.pow(_,2)*Math.pow(S.y,2)-Math.pow(E,2)*Math.pow(S.x,2))/(Math.pow(_,2)*Math.pow(S.y,2)+Math.pow(E,2)*Math.pow(S.x,2)),R=(o!==l?1:-1)*p(T=T<0?0:T),A={x:R*(_*S.y/E),y:R*(-(E*S.x)/_)},N={x:g(v)*A.x-f(v)*A.y+(e+h)/2,y:f(v)*A.x+g(v)*A.y+(t+u)/2},O={x:(S.x-A.x)/_,y:(S.y-A.y)/E},L=a({x:1,y:0},O),I=a(O,{x:(-S.x-A.x)/_,y:(-S.y-A.y)/E});!l&&I>0?I-=2*m:l&&I<0&&(I+=2*m);var w=L+(I%=2*m)*d,D=_*g(w),x=E*f(w);return{x:g(v)*D-f(v)*x+N.x,y:f(v)*D+g(v)*x+N.y}}(e,t,i,n,r,l,h,u,d,L/b)).x,y=g.y,m&&O.push({x:S,y:y}),E&&(T+=(0,o.y)(A,[S,y])),A=[S,y],C&&T>=c&&c>R[2]){var I=(T-c)/(T-R[2]);N={x:A[0]*(1-I)+R[0]*I,y:A[1]*(1-I)+R[1]*I}}R=[S,y,T]}return C&&c>=T&&(N={x:u,y:d}),{length:T,point:N,min:{x:Math.min.apply(null,O.map(function(e){return e.x})),y:Math.min.apply(null,O.map(function(e){return e.y}))},max:{x:Math.max.apply(null,O.map(function(e){return e.x})),y:Math.max.apply(null,O.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],(t||0)-w,i||{})).length,N=h.min,O=h.max,L=h.point):"C"===p?(A=(u=(0,l.S)(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],(t||0)-w,i||{})).length,N=u.min,O=u.max,L=u.point):"Q"===p?(A=(d=function(e,t,i,n,r,s,a,l){var h,u=l.bbox,d=void 0===u||u,c=l.length,f=void 0===c||c,g=l.sampleSize,p=void 0===g?10:g,m="number"==typeof a,_=e,E=t,v=0,b=[_,E,0],C=[_,E],S={x:0,y:0},y=[{x:_,y:E}];m&&a<=0&&(S={x:_,y:E});for(var T=0;T<=p;T+=1){if(_=(h=function(e,t,i,n,r,o,s){var a=1-s;return{x:Math.pow(a,2)*e+2*a*s*i+Math.pow(s,2)*r,y:Math.pow(a,2)*t+2*a*s*n+Math.pow(s,2)*o}}(e,t,i,n,r,s,T/p)).x,E=h.y,d&&y.push({x:_,y:E}),f&&(v+=(0,o.y)(C,[_,E])),C=[_,E],m&&v>=a&&a>b[2]){var R=(v-a)/(v-b[2]);S={x:C[0]*(1-R)+b[0]*R,y:C[1]*(1-R)+b[1]*R}}b=[_,E,v]}return m&&a>=v&&(S={x:r,y:s}),{length:v,point:S,min:{x:Math.min.apply(null,y.map(function(e){return e.x})),y:Math.min.apply(null,y.map(function(e){return e.y}))},max:{x:Math.max.apply(null,y.map(function(e){return e.x})),y:Math.max.apply(null,y.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],(t||0)-w,i||{})).length,N=d.min,O=d.max,L=d.point):"Z"===p&&(A=(c=s((v=[b,C,S,y])[0],v[1],v[2],v[3],(t||0)-w)).length,N=c.min,O=c.max,L=c.point),E&&w=t&&(I=L),R.push(O),T.push(N),w+=A,b=(f="Z"!==p?m.slice(-2):[S,y])[0],C=f[1];return E&&t>=w&&(I={x:b,y:C}),{length:w,point:I,min:{x:Math.min.apply(null,T.map(function(e){return e.x})),y:Math.min.apply(null,T.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},31427:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});var n=i(6393);function r(e,t,i,r,o,s,a,l,h,u){var d,c=u.bbox,f=void 0===c||c,g=u.length,p=void 0===g||g,m=u.sampleSize,_=void 0===m?10:m,E="number"==typeof h,v=e,b=t,C=0,S=[v,b,0],y=[v,b],T={x:0,y:0},R=[{x:v,y:b}];E&&h<=0&&(T={x:v,y:b});for(var A=0;A<=_;A+=1){if(v=(d=function(e,t,i,n,r,o,s,a,l){var h=1-l;return{x:Math.pow(h,3)*e+3*Math.pow(h,2)*l*i+3*h*Math.pow(l,2)*r+Math.pow(l,3)*s,y:Math.pow(h,3)*t+3*Math.pow(h,2)*l*n+3*h*Math.pow(l,2)*o+Math.pow(l,3)*a}}(e,t,i,r,o,s,a,l,A/_)).x,b=d.y,f&&R.push({x:v,y:b}),p&&(C+=(0,n.y)(y,[v,b])),y=[v,b],E&&C>=h&&h>S[2]){var N=(C-h)/(C-S[2]);T={x:y[0]*(1-N)+S[0]*N,y:y[1]*(1-N)+S[1]*N}}S=[v,b,C]}return E&&h>=C&&(T={x:a,y:l}),{length:C,point:T,min:{x:Math.min.apply(null,R.map(function(e){return e.x})),y:Math.min.apply(null,R.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},33439:function(e,t,i){"use strict";function n(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function r(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function o(){}i.d(t,{ZP:function(){return v}});var s="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,u=RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),c=RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),f=RegExp("^rgba\\("+[l,l,l,a]+"\\)$"),g=RegExp("^hsl\\("+[a,l,l]+"\\)$"),p=RegExp("^hsla\\("+[a,l,l,a]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function v(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?b(t):3===i?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?C(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?C(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=u.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?C(t[1],t[2],t[3],t[4]):(t=f.exec(e))?C(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?A(t[1],t[2]/100,t[3]/100,1):(t=p.exec(e))?A(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?b(m[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function b(e){return new S(e>>16&255,e>>8&255,255&e,1)}function C(e,t,i,n){return n<=0&&(e=t=i=NaN),new S(e,t,i,n)}function S(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function y(){return"#"+R(this.r)+R(this.g)+R(this.b)}function T(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function R(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function A(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,i,n)}function N(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=v(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),s=Math.max(t,i,n),a=NaN,l=s-r,h=(s+r)/2;return l?(a=t===s?(i-n)/l+(i0&&h<1?0:a,new O(a,l,h,e.opacity)}function O(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function L(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}n(o,v,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_,formatHex:_,formatHsl:function(){return N(this).formatHsl()},formatRgb:E,toString:E}),n(S,function(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof o||(r=v(r)),r)?(r=r.rgb(),new S(r.r,r.g,r.b,r.opacity)):new S:new S(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y,formatHex:y,formatRgb:T,toString:T})),n(O,function(e,t,i,n){return 1==arguments.length?N(e):new O(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new O(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new S(L(e>=240?e-240:e+120,r,n),L(e,r,n),L(e<120?e+240:e-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return ew}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),f=i(82690);function g(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=g(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=g(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _(e){if("undefined"==typeof ShadowRoot)return!1;var t=g(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,v=Math.min,b=Math.round;function C(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(C())}function y(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&b(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&b(n.height)/e.offsetHeight||1);var s=(p(e)?g(e):window).visualViewport,a=!S()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function T(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return y(A(e)).left+T(e).scrollLeft}function O(e){return g(e).getComputedStyle(e)}function L(e){var t=O(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function I(e){var t=y(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function w(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||A(e)}function D(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(R(t))>=0?t.ownerDocument.body:m(t)&&L(t)?t:e(w(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=g(n),s=r?[o].concat(o.visualViewport||[],L(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(D(w(s)))}function x(e){return m(e)&&"fixed"!==O(e).position?e.offsetParent:null}function M(e){for(var t=g(e),i=x(e);i&&["table","td","th"].indexOf(R(i))>=0&&"static"===O(i).position;)i=x(i);return i&&("html"===R(i)||"body"===R(i)&&"static"===O(i).position)?t:i||function(e){var t=/firefox/i.test(C());if(/Trident/i.test(C())&&m(e)&&"fixed"===O(e).position)return null;var i=w(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(R(i));){var n=O(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),j=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function Q(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?q(r):null,s=r?X(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,f=e.position,p=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,E=e.isFixed,v=c.x,C=void 0===v?0:v,S=c.y,y=void 0===S?0:S,T="function"==typeof _?_({x:C,y:y}):{x:C,y:y};C=T.x,y=T.y;var R=c.hasOwnProperty("x"),N=c.hasOwnProperty("y"),L=F,I="top",w=window;if(m){var D=M(l),x="clientHeight",B="clientWidth";D===g(l)&&"static"!==O(D=A(l)).position&&"absolute"===f&&(x="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(I=k,y-=(E&&D===w&&w.visualViewport?w.visualViewport.height:D[x])-h.height,y*=p?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(L=P,C-=(E&&D===w&&w.visualViewport?w.visualViewport.width:D[B])-h.width,C*=p?1:-1)}var U=Object.assign({position:f},m&&J),H=!0===_?(t={x:C,y:y},i=g(l),n=t.x,r=t.y,{x:b(n*(o=i.devicePixelRatio||1))/o||0,y:b(r*o)/o||0}):{x:C,y:y};return(C=H.x,y=H.y,p)?Object.assign({},U,((a={})[I]=N?"0":"",a[L]=R?"0":"",a.transform=1>=(w.devicePixelRatio||1)?"translate("+C+"px, "+y+"px)":"translate3d("+C+"px, "+y+"px, 0)",a)):Object.assign({},U,((s={})[I]=N?y+"px":"",s[L]=R?C+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&_(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=g(e),n=A(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=S();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+N(e),y:l}}(e,i)):p(t)?((n=y(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=A(e),s=A(r),a=T(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+N(r),c=-a.scrollTop,"rtl"===O(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,f=void 0===c?e.strategy:c,g=h.boundary,_=h.rootBoundary,b=h.elementContext,C=void 0===b?W:b,S=h.altBoundary,T=h.padding,N=void 0===T?0:T,L=eh("number"!=typeof N?N:eu(N,U)),I=e.rects.popper,x=e.elements[void 0!==S&&S?C===W?"reference":W:C],F=(i=p(x)?x:x.contextElement||A(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===g?"clippingParents":g)?(r=D(w(i)),p(o=["absolute","fixed"].indexOf(O(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return p(e)&&eo(e,o)&&"body"!==R(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,f);return e.top=E(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,f))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=y(e.elements.reference),H=Q({reference:B,element:I,strategy:"absolute",placement:d}),G=es(Object.assign({},I,H)),j=C===W?G:B,z={top:F.top-j.top+L.top,bottom:j.bottom-F.bottom+L.bottom,left:F.left-j.left+L.left,right:j.right-F.right+L.right},K=e.modifiersData.offset;if(C===W&&K){var Y=K[d];Object.keys(z).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";z[e]+=Y[i]*t})}return z}function ec(e,t,i){return E(e,v(t,i))}function ef(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function eg(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ep=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=g(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,$)}),a&&l.addEventListener("resize",i.update,$),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,$)}),a&&l.removeEventListener("resize",i.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:q(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&R(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&R(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=j.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=q(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,f=i.flipVariations,g=void 0===f||f,p=i.allowedAutoPlacements,m=t.options.placement,_=q(m)===m,E=l||(_||!g?[ei(m)]:function(e){if(q(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,f,m,_,E,v;return e.concat(q(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:g,allowedAutoPlacements:p}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,f=void 0===(c=n.allowedAutoPlacements)?j:c,0===(E=(_=(m=X(r))?l?G:G.filter(function(e){return X(e)===m}):U).filter(function(e){return f.indexOf(e)>=0})).length&&(E=_),Object.keys(v=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[q(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),b=t.rects.reference,C=t.rects.popper,S=new Map,y=!0,T=v[0],R=0;R=0,I=L?"width":"height",w=ed(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),D=L?O?P:F:O?k:"top";b[I]>C[I]&&(D=ei(D));var x=ei(D),M=[];if(o&&M.push(w[N]<=0),a&&M.push(w[D]<=0,w[x]<=0),M.every(function(e){return e})){T=A,y=!1;break}S.set(A,M)}if(y)for(var V=g?3:1,W=function(e){var t=v.find(function(t){var i=S.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},z=V;z>0&&"break"!==W(z);z--);t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,f=void 0===c?0:c,g=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),p=q(t.placement),m=X(t.placement),_=!m,b=Z(p),C="x"===b?"y":"x",S=t.modifiersData.popperOffsets,y=t.rects.reference,T=t.rects.popper,R="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(void 0===r||r){var L,w="y"===b?"top":F,D="y"===b?k:P,x="y"===b?"height":"width",B=S[b],U=B+g[w],V=B-g[D],W=d?-T[x]/2:0,G=m===H?y[x]:T[x],j=m===H?-T[x]:-y[x],z=t.elements.arrow,K=d&&z?I(z):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),$=Y[w],Q=Y[D],J=ec(0,y[x],K[x]),ee=_?y[x]/2-W-J-$-A.mainAxis:G-J-$-A.mainAxis,et=_?-y[x]/2+W+J+Q+A.mainAxis:j+J+Q+A.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===b?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(L=null==N?void 0:N[b])?L:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?v(U,eo):U,B,d?E(V,es):V);S[b]=ea,O[b]=ea-B}if(void 0!==o&&o){var eh,eu,ef="x"===b?"top":F,eg="x"===b?k:P,ep=S[C],em="y"===C?"height":"width",e_=ep+g[ef],eE=ep-g[eg],ev=-1!==["top",F].indexOf(p),eb=null!=(eu=null==N?void 0:N[C])?eu:0,eC=ev?e_:ep-y[em]-T[em]-eb+A.altAxis,eS=ev?ep+y[em]+T[em]-eb-A.altAxis:eE,ey=d&&ev?(eh=ec(eC,ep,eS))>eS?eS:eh:ec(d?eC:e_,ep,d?eS:eE);S[C]=ey,O[C]=ey-ep}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=q(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=I(s),f="y"===h?"top":F,g="y"===h?k:P,p=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],_=M(s),E=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,v=d[f],b=E-c[u]-d[g],C=E/2-c[u]/2+(p/2-m/2),S=ec(v,C,b);n.modifiersData[r]=((i={})[h]=S,i.centerOffset=S-C,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=ef(s,n),h=ef(a,r,o),u=eg(l),d=eg(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,f,g="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,g),r.scrollParents={reference:p(e)?D(e):e.contextElement?D(e.contextElement):[],popper:D(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,f=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),f.push(t)}(e)}),z.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,f,p,_=r.elements,E=_.reference,v=_.popper;if(Y(E,v)){r.rects={reference:(t=M(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=b((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=b(o.height)/t.offsetHeight||1,1!==s||1!==a),d=A(t),c=y(E,u,i),f={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!i)&&(("body"!==R(t)||L(d))&&(f=(e=t)!==g(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:T(e)),m(t)?(p=y(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=N(d))),{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}),popper:I(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var C=0;C{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,ev.jsx)(u.Fragment,{children:i}):(0,ev.jsx)(u.Fragment,{children:o?e_.createPortal(i,o):o})});var eC=i(34867);function eS(e){return(0,eC.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var ey=i(7293);let eT=u.createContext({disableDefaultClasses:!1}),eR=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eA=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eN(e){return"function"==typeof e?e():e}let eO=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eT);return i=>t?"":e(i)}(eS)),eL={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:f,placement:g,popperOptions:p,popperRef:m,slotProps:_={},slots:E={},TransitionProps:v}=e,b=(0,h.Z)(e,eR),C=u.useRef(null),S=(0,d.Z)(C,t),y=u.useRef(null),T=(0,d.Z)(y,m),R=u.useRef(T);(0,c.Z)(()=>{R.current=T},[T]),u.useImperativeHandle(m,()=>y.current,[]);let A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,o),[N,O]=u.useState(A),[L,I]=u.useState(eN(n));u.useEffect(()=>{y.current&&y.current.forceUpdate()}),u.useEffect(()=>{n&&I(eN(n))},[n]),(0,c.Z)(()=>{if(!L||!f)return;let e=e=>{O(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));let i=ep(L,C.current,(0,l.Z)({placement:A},p,{modifiers:t}));return R.current(i),()=>{i.destroy(),R.current(null)}},[L,s,a,f,p,A]);let w={placement:N};null!==v&&(w.TransitionProps=v);let D=eO(),x=null!=(i=E.root)?i:"div",M=(0,ey.y)({elementType:x,externalSlotProps:_.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:D.root});return(0,ev.jsx)(x,(0,l.Z)({},M,{children:"function"==typeof r?r(w):r}))}),ew=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:g,placement:p="bottom",popperOptions:m=eL,popperRef:_,style:E,transition:v=!1,slotProps:b={},slots:C={}}=e,S=(0,h.Z)(e,eA),[y,T]=u.useState(!0);if(!d&&!g&&(!v||y))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,f.Z)(e).body:(0,f.Z)(null).body}let R=!g&&d&&(!v||y)?"none":void 0;return(0,ev.jsx)(eb,{disablePortal:a,container:i,children:(0,ev.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:v?!y:g,placement:p,popperOptions:m,popperRef:_,slotProps:b,slots:C},S,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:R},E),TransitionProps:v?{in:g,onEnter:()=>{T(!1)},onExited:()=>{T(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,f=r.useRef(),[g,p]=r.useState(!1),{isFocusVisibleRef:m,onFocus:_,onBlur:E,ref:v}=(0,o.Z)(),[b,C]=r.useState(!1);t&&!i&&b&&C(!1),r.useEffect(()=>{m.current=b},[b,m]);let[S,y]=r.useState(""),T=e=>t=>{var i;b&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},R=e=>t=>{var i;E(t),!1===m.current&&C(!1),null==(i=e.onBlur)||i.call(e,t)},A=e=>t=>{var i,n;f.current||(f.current=t.currentTarget),_(t),!0===m.current&&(C(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},N=()=>{let e=f.current;return"BUTTON"===S||"INPUT"===S&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===S&&(null==e?void 0:e.href)},O=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},L=e=>i=>{var n;t||(p(!0),document.addEventListener("mouseup",()=>{p(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},I=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||N()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||p(!0),i.target!==i.currentTarget||N()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},w=e=>i=>{var n,r;i.target===i.currentTarget&&p(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||N()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},D=r.useCallback(e=>{var t;y(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),x=(0,s.Z)(D,h,v,f),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===S?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==S&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:R(i),onClick:O(i),onFocus:A(i),onKeyDown:I(i),onKeyUp:w(i),onMouseDown:L(i),onMouseLeave:T(i),ref:x});return delete r.onFocusVisible,r},focusVisible:b,setFocusVisible:C,active:g,rootRef:x}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,f=null==e?-1:s.findIndex(t=>u(t,e)),g=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",g=!1;break;case"start":r=0,o="next",g=!1;break;case"end":r=c,o="previous",g=!1;break;default:{let e=f+t;e<0?!g&&-1!==f||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!g||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let p=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,g);return -1!==p||null===e||a(e,f)?null!=(n=s[p])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return v}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let f={},g=()=>{},p=(e,t)=>e===t,m=()=>!1,_=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function v(e){let{controlledProps:t=f,disabledItemsFocusable:i=!1,disableListWrap:v=!1,focusManagement:b="activeDescendant",getInitialState:C=E,getItemDomElement:S,getItemId:y,isItemDisabled:T=m,rootRef:R,onStateChange:A=g,items:N,itemComparer:O=p,getItemAsString:L=_,onChange:I,onHighlightChange:w,onItemsChange:D,orientation:x="vertical",pageSize:M=5,reducerActionContext:k=f,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(R,B),H=r.useCallback((e,t,i)=>{if(null==w||w(e,t,i),"DOM"===b&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==S||null==(n=S(t))||n.focus()}},[S,w,b]),V=r.useMemo(()=>({highlightedValue:O,selectedValues:(e,t)=>(0,d.H)(e,t,O)}),[O]),W=r.useCallback((e,t,i,n,r)=>{switch(null==A||A(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==I||I(e,i,n)}},[H,I,A]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:v,focusManagement:b,isItemDisabled:T,itemComparer:O,items:N,getItemAsString:L,onHighlightChange:H,orientation:x,pageSize:M,selectionMode:P,stateComparers:V}),[i,v,b,T,O,N,L,H,x,M,P,V]),j=C(),z=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[Y,$]=(0,u.r)({reducer:z,actionContext:K,initialState:j,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:q,selectedValues:X}=Y,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>$({type:s.F.textNavigation,event:t,searchString:e})),Q=c(X),J=c(q),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,N,O)||($({type:s.F.itemsChange,event:null,items:N,previousItems:ee.current}),ee.current=N,null==D||D(N))},[N,O,$,D]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(X)},[X,et]),r.useEffect(()=>{ei(q)},[q,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===x?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===b&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),$({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||$({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=N.findIndex(t=>O(t,e)),n=(null!=(t=Q.current)?t:[]).some(t=>null!=t&&O(e,t)),r=T(e,i),o=null!=J.current&&O(e,J.current),s="DOM"===b;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[N,T,O,Q,J,b]),el=r.useMemo(()=>({dispatch:$,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[$,ea,en,er]);return r.useDebugValue({state:Y}),{contextValue:el,dispatch:$,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===b&&null!=q?y(q):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===b?-1:0,ref:U}),rootRef:U,state:Y}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),f=r.useContext(l.Z);if(!f)throw Error("useListItem must be used within a ListProvider");let{dispatch:g,getItemState:p,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=f,{highlighted:E,selected:v,focusable:b}=p(h),C=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&C():C()})),(0,s.Z)(()=>_(function(e){v?e.includes(h)||C():e.includes(h)&&C()}),[_,C,v,h]);let S=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||g({type:a.F.itemClick,item:h,event:t})},[g,h]),y=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||g({type:a.F.itemHover,item:h,event:t})},[g,h]);return b&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:S(e),onPointerOver:i?y(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:v}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),f=t(u),g=(0,r.Z)(null==f?void 0:f.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),p=(0,n.Z)({},null==f?void 0:f.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},f,i,c,d);return g.length>0&&(m.className=g),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:f.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:f}=e,g=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[p,m]=r.useReducer(g,h),_=r.useCallback(e=>{m((0,n.Z)({},e,{context:f}))},[f]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:p,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(p,u),_]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,f=(0,r.Z)(e,h),g=c?{}:(0,l.x)(u,d),{props:p,internalRef:m}=(0,a.L)((0,n.Z)({},f,{externalSlotProps:g})),_=(0,o.Z)(m,null==g?void 0:g.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},p,{ref:_}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var f=i(37078),g=i(1812),p=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:f="MuiBox-root",generateClassName:g}=e,p=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:_="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(p,(0,n.Z)({as:_,ref:o,className:(0,s.Z)(m,g?g(f):f),theme:t&&a[t]||a},E))});return m}({themeId:p.Z,defaultTheme:g.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var _=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),f=i(26821);function g(e){return(0,f.d6)("MuiCard",e)}(0,f.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var p=i(58859),m=i(30220),_=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],v=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,g,{})},b=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,p.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),C=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:f=!1,size:g="md",variant:p="outlined",children:C,orientation:S="vertical",slots:y={},slotProps:T={}}=i,R=(0,n.Z)(i,E),{getColor:A}=(0,c.VT)(p),N=A(e.color,l),O=(0,r.Z)({},i,{color:N,component:d,orientation:S,size:g,variant:p}),L=v(O),I=(0,r.Z)({},R,{component:d,slots:y,slotProps:T}),[w,D]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(L.root,a),elementType:b,externalForwardedProps:I,ownerState:O}),x=(0,_.jsx)(w,(0,r.Z)({},D,{children:o.Children.map(C,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===S?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===S&&(i["data-parent"]="Card-horizontal"),"vertical"===S&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(C)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return f?(0,_.jsx)(c.do,{variant:p,children:x}):x});var S=C},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var f=i(30220),g=i(85893);let p=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),_=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,p),v=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),b=(0,n.Z)({},i,{component:a,orientation:u}),C=m(),[S,y]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(C.root,o),elementType:_,externalForwardedProps:v,ownerState:b});return(0,g.jsx)(S,(0,n.Z)({},y,{children:h}))});var v=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return A}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),f=i(74312),g=i(20407),p=i(78653),m=i(55907),_=i(26821);function E(e){return(0,_.d6)("MuiOption",e)}let v=(0,_.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var b=i(40780),C=i(85893);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],y=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},T=(0,f.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${v.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),R=o.forwardRef(function(e,t){var i;let s=(0,g.Z)({props:e,name:"JoyOption"}),{component:c="li",children:f,disabled:_=!1,value:E,label:v,variant:R="plain",color:A="neutral",slots:N={},slotProps:O={}}=s,L=(0,r.Z)(s,S),I=o.useContext(b.Z),{variant:w=R,color:D=A}=(0,m.yP)(e.variant,e.color),x=o.useRef(null),M=(0,l.Z)(x,t),k=null!=v?v:"string"==typeof f?f:null==(i=x.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:f,highlighted:g,selected:p}=(0,h.J)({item:t}),m=(0,a.Z)(d),_=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:_,id:m}),[r,i,t,m]),{index:v}=(0,u.B)(t,E),b=(0,l.Z)(s,_,f);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:b,role:"option","aria-selected":p}),highlighted:g,index:v,selected:p,rootRef:b}}({disabled:_,label:k,value:E,rootRef:M}),{getColor:H}=(0,p.VT)(w),V=H(e.color,D),W=(0,n.Z)({},s,{disabled:_,selected:F,highlighted:B,index:U,component:c,variant:w,color:V,row:I}),G=y(W),j=(0,n.Z)({},L,{component:c,slots:N,slotProps:O}),[z,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:T,externalForwardedProps:j,className:G.root,ownerState:W});return(0,C.jsx)(z,(0,n.Z)({},K,{children:f}))});var A=R},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),f=i(70758);let g={buttonClick:"buttonClick"};var p=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var _=i(12247),E=i(7333),v=i(22644);function b(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===g.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case v.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case v.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case v.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var C=i(2900);let S={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},y=()=>{};function T(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function R(e){e.preventDefault()}var A=i(26558),N=i(85893);function O(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,N.jsx)(_.s.Provider,{value:c,children:(0,N.jsx)(A.Z.Provider,{value:d,children:i})})}var L=i(94780),I=i(50984),w=i(3419),D=i(43614),x=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,L.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,x.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:f=!1,titleAccess:g,viewBox:p="0 0 24 24",size:m="md",slots:_={},slotProps:E={}}=i,v=(0,r.Z)(i,B),b=s.isValidElement(n)&&"svg"===n.type,C=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:b}),S=U(C),y=(0,o.Z)({},v,{component:u,slots:_,slotProps:E}),[T,R]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(S.root,l),elementType:V,externalForwardedProps:y,ownerState:C,additionalProps:(0,o.Z)({color:c,focusable:!1},g&&{role:"img"},!g&&{"aria-hidden":!0},!f&&{viewBox:p},b&&n.props)});return(0,N.jsxs)(T,(0,o.Z)({},R,{children:[b?n.props.children:n,g?(0,N.jsx)("title",{children:g}):null]}))});var G=function(e,t){function i(i,n){return(0,N.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,N.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),j=i(78653),z=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let Y=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var $=i(76043),q=i(55907);let X=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let Q=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],J=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,L.Z)(a,K,{})},ee=(0,x.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,z.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${Y.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${Y.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${Y.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,x.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,x.Z)(I.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},w.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,x.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,x.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,x.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${Y.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${Y.expanded}, .${Y.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,v,A,L,I;let x=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:z,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:ef="md",variant:eg="outlined",color:ep="neutral",startDecorator:em,endDecorator:e_,indicator:eE=n||(n=(0,N.jsx)(G,{})),"aria-describedby":ev,"aria-label":eb,"aria-labelledby":eC,id:eS,name:ey,slots:eT={},slotProps:eR={}}=x,eA=(0,r.Z)(x,X),eN=s.useContext($.Z),eO=null!=(i=null!=(l=e.disabled)?l:null==eN?void 0:eN.disabled)?i:V,eL=null!=(E=null!=(v=e.size)?v:null==eN?void 0:eN.size)?E:ef,{getColor:eI}=(0,j.VT)(eg),ew=eI(e.color,null!=eN&&eN.error?"danger":null!=(A=null==eN?void 0:eN.color)?A:ep),eD=null!=eu?eu:Z,[ex,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ej,getListboxProps:ez,getHiddenInputProps:eK,getOptionMetadata:eY,open:e$,value:eq}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:v,listboxRef:A,multiple:N=!1,name:O,required:L,onChange:I,onHighlightChange:w,onOpenChange:D,open:x,options:M,getOptionAsString:k=m,getSerializedValue:P=T,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(v);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=N?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return N?F:null==F?[]:[F]},[F,N]),{subitems:G,contextValue:j}=(0,_.Y)(),z=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(A,H),{getRootProps:Y,active:$,focusVisible:q,rootRef:X}=(0,f.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(z.keys()),[z]),Q=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return z.get(t)}return z.get(e)},[z,r,Z]),J=s.useCallback(e=>{var t;let i=Q(e);return null!=(t=null==i?void 0:i.disabled)&&t},[Q]),ee=s.useCallback(e=>{let t=Q(e);return t?k(t):""},[Q,k]),et=s.useMemo(()=>({selectedValues:W,open:x}),[W,x]),ei=s.useCallback(e=>{var t;return null==(t=z.get(e))?void 0:t.id},[z]),en=s.useCallback((e,t)=>{if(N)null==I||I(e,t);else{var i;null==I||I(e,null!=(i=t[0])?i:null)}},[N,I]),er=s.useCallback((e,t)=>{null==w||w(e,null!=t?t:null)},[w]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==D||D(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[D]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:J,rootRef:X,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:N}),[N]),items:Z,getItemAsString:ee,selectionMode:N?"multiple":"single",stateReducer:b},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:ef}=(0,p.s)(es),eg=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:g.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=Q(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,Q]);let ep=s.useCallback(e=>Q(e),[Q]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:eg(e),ref:ef,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let e_=s.useMemo(()=>(0,o.Z)({},eh,j),[eh,j]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,N)n=i.map(e=>ep(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ep(i))?eE:null}return{buttonActive:$,buttonFocusVisible:q,buttonRef:X,contextValue:e_,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,C.f)(Y,el),i=(0,C.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:O,tabIndex:-1,"aria-hidden":!0,required:!!L||void 0,value:P(n),onChange:y,style:S},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":N?"true":void 0,ref:K,onMouseDown:R}),getOptionMetadata:ep,listboxRef:ef,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eO,getSerializedValue:W,listboxId:K,multiple:!1,name:ey,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eX=(0,o.Z)({},x,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:e$,renderValue:eD,value:eq,size:eL,variant:eg,color:ew}),eZ=J(eX),eQ=(0,o.Z)({},eA,{slots:eT,slotProps:eR}),eJ=s.useMemo(()=>{var e;return null!=(e=eY(eq))?e:null},[eY,eq]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eQ,ownerState:eX}),[e2,e5]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=ev?ev:null==eN?void 0:eN["aria-describedby"],"aria-label":eb,"aria-labelledby":null!=eC?eC:null==eN?void 0:eN.labelId,"aria-required":ed?"true":void 0,id:null!=eS?eS:null==eN?void 0:eN.htmlFor,name:ey},className:eZ.button,elementType:et,externalForwardedProps:eQ,getSlotProps:ej,ownerState:eX}),[e4,e3]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:ex,open:e$,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eQ,getSlotProps:ez,ownerState:(0,o.Z)({},eX,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eL,variant:e.variant||eg,color:e.color||(e.disablePortal?ew:ep),disableColorInversion:!e.disablePortal})}),[e6,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eQ,ownerState:eX}),[e8,e7]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eQ,ownerState:eX}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eQ,ownerState:eX}),ti=s.useMemo(()=>[...Q,...e3.modifiers||[]],[e3.modifiers]),tn=null;return ex&&(tn=(0,N.jsx)(e4,(0,o.Z)({},e3,{className:(0,a.Z)(e3.className,(null==(L=e3.ownerState)?void 0:L.color)==="context"&&Y.colorContext),modifiers:ti},!(null!=(I=x.slots)&&I.listbox)&&{as:u.r,slots:{root:e3.as||"ul"}},{children:(0,N.jsx)(O,{value:eW,children:(0,N.jsx)(q.Yb,{variant:eg,color:ep,children:(0,N.jsx)(D.Z.Provider,{value:"select",children:(0,N.jsx)(w.Z,{nested:!0,children:B})})})})})),e3.disablePortal||(tn=(0,N.jsx)(j.ZP.Provider,{value:void 0,children:tn}))),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,N.jsx)(e6,(0,o.Z)({},e9,{children:em})),(0,N.jsx)(e2,(0,o.Z)({},e5,{children:eJ?eD(eJ):z})),e_&&(0,N.jsx)(e8,(0,o.Z)({},e7,{children:e_})),eE&&(0,N.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,N.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function f(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var g=i(40911),p=i(30220),m=i(85893);let _=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,f,{})},v={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},b=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[v.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[v.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[v.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[v.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[v.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${v.getColumnExceptFirst()}, ${v.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[v.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[v.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[v.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[v.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[v.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[v.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[v.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[v.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),C=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:f=!1,size:v="md",variant:C="plain",color:S="neutral",stripe:y,stickyHeader:T=!1,stickyFooter:R=!1,slots:A={},slotProps:N={}}=i,O=(0,n.Z)(i,_),{getColor:L}=(0,u.VT)(C),I=L(e.color,S),w=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:f,component:a,size:v,color:I,variant:C,stripe:y,stickyHeader:T,stickyFooter:R}),D=E(w),x=(0,r.Z)({},O,{component:a,slots:A,slotProps:N}),[M,k]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,o),elementType:b,externalForwardedProps:x,ownerState:w});return(0,m.jsx)(g.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var S=C},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return b},ZP:function(){return N}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),f=i(30220),g=i(26821);function p(e){return(0,g.d6)("MuiTypography",e)}(0,g.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let _=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],v=o.createContext(!1),b=o.createContext(!1),C=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,p,{})},S=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),y=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),R={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},A=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,_),g=o.useContext(v),p=o.useContext(b),A=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:N,gutterBottom:O=!1,noWrap:L=!1,level:I="body-md",levelMapping:w=R,children:D,endDecorator:x,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=A,B=(0,n.Z)(A,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=g||p?e.level||"inherit":I,W=(0,a.Z)(D,["Skeleton"]),G=N||(g?"span":w[V]||R[V]||"span"),j=(0,r.Z)({},A,{level:V,component:G,color:H,gutterBottom:O,noWrap:L,nesting:g,variant:k,unstable_hasSkeleton:W}),z=C(j),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[Y,$]=(0,f.Z)("root",{ref:t,className:z.root,elementType:T,externalForwardedProps:K,ownerState:j}),[q,X]=(0,f.Z)("startDecorator",{className:z.startDecorator,elementType:S,externalForwardedProps:K,ownerState:j}),[Z,Q]=(0,f.Z)("endDecorator",{className:z.endDecorator,elementType:y,externalForwardedProps:K,ownerState:j});return(0,m.jsx)(v.Provider,{value:!0,children:(0,m.jsxs)(Y,(0,r.Z)({},$,{children:[M&&(0,m.jsx)(q,(0,r.Z)({},X,{children:M})),W?o.cloneElement(D,{variant:D.props.variant||"inline"}):D,x&&(0,m.jsx)(Z,(0,r.Z)({},Q,{children:x}))]}))})});A.muiName="Typography";var N=A},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return g}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],f=["disableColorInversion"];function g(e,t){let{className:i,elementType:g,ownerState:p,externalForwardedProps:m,getSlotOwnerState:_,internalForwardedProps:E}=t,v=(0,r.Z)(t,u),{component:b,slots:C={[e]:void 0},slotProps:S={[e]:void 0}}=m,y=(0,r.Z)(m,d),T=C[e]||g,R=(0,s.x)(S[e],p),A=(0,a.L)((0,n.Z)({className:i},v,{externalForwardedProps:"root"===e?y:void 0,externalSlotProps:R})),{props:{component:N},internalRef:O}=A,L=(0,r.Z)(A.props,c),I=(0,o.Z)(O,null==R?void 0:R.ref,t.ref),w=_?_(L):{},{disableColorInversion:D=!1}=w,x=(0,r.Z)(w,f),M=(0,n.Z)({},p,x),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=L.color)?P:p.color}else D||(M.color=k(L.color,M.color));let F="root"===e?N||b:N,B=(0,l.$)(T,(0,n.Z)({},"root"===e&&!b&&!C[e]&&E,"root"!==e&&!C[e]&&E,L,F&&{as:F},{ref:I}),M);return Object.keys(x).forEach(e=>{delete B[e]}),[T,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.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||i)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(){i=!0}},t)}},15746:function(e,t,i){"use strict";var n=i(21584);t.Z=n.Z},71230:function(e,t,i){"use strict";var n=i(92820);t.Z=n.Z},87760:function(e,t){"use strict";var i={protan:{x:.7465,y:.2535,m:1.273463,yi:-.073894},deutan:{x:1.4,y:-.4,m:.968437,yi:.003331},tritan:{x:.1748,y:0,m:.062921,yi:.292119},custom:{x:.735,y:.265,m:-1.059259,yi:1.026914}},n=function(e){var t={},i=e.R/255,n=e.G/255,r=e.B/255;return i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,t.X=.41242371206635076*i+.3575793401363035*n+.1804662232369621*r,t.Y=.21265606784927693*i+.715157818248362*n+.0721864539171564*r,t.Z=.019331987577444885*i+.11919267420354762*n+.9504491124870351*r,t},r=function(e){var t=e.X+e.Y+e.Z;return 0===t?{x:0,y:0,Y:e.Y}:{x:e.X/t,y:e.Y/t,Y:e.Y}};t.a=function(e,t,o){var s,a,l,h,u,d,c,f,g,p,m,_,E,v,b,C,S,y,T,R;return"achroma"===t?(s={R:s=.212656*e.R+.715158*e.G+.072186*e.B,G:s,B:s},o&&(l=(a=1.75)+1,s.R=(a*s.R+e.R)/l,s.G=(a*s.G+e.G)/l,s.B=(a*s.B+e.B)/l),s):(h=i[t],d=((u=r(n(e))).y-h.y)/(u.x-h.x),c=u.y-u.x*d,f=(h.yi-c)/(d-h.m),g=d*f+c,(s={}).X=f*u.Y/g,s.Y=u.Y,s.Z=(1-(f+g))*u.Y/g,y=.312713*u.Y/.329016,T=.358271*u.Y/.329016,_=3.240712470389558*(p=y-s.X)+-0+-.49857440415943116*(m=T-s.Z),E=-.969259258688888*p+0+.041556132211625726*m,v=.05563600315398933*p+-0+1.0570636917433989*m,s.R=3.240712470389558*s.X+-1.5372626602963142*s.Y+-.49857440415943116*s.Z,s.G=-.969259258688888*s.X+1.875996969313966*s.Y+.041556132211625726*s.Z,s.B=.05563600315398933*s.X+-.2039948802843549*s.Y+1.0570636917433989*s.Z,b=((s.R<0?0:1)-s.R)/_,C=((s.G<0?0:1)-s.G)/E,(S=(S=((s.B<0?0:1)-s.B)/v)>1||S<0?0:S)>(R=(b=b>1||b<0?0:b)>(C=C>1||C<0?0:C)?b:C)&&(R=S),s.R+=R*_,s.G+=R*E,s.B+=R*v,s.R=255*(s.R<=0?0:s.R>=1?1:Math.pow(s.R,.45454545454545453)),s.G=255*(s.G<=0?0:s.G>=1?1:Math.pow(s.G,.45454545454545453)),s.B=255*(s.B<=0?0:s.B>=1?1:Math.pow(s.B,.45454545454545453)),o&&(l=(a=1.75)+1,s.R=(a*s.R+e.R)/l,s.G=(a*s.G+e.G)/l,s.B=(a*s.B+e.B)/l),s)}},56917:function(e,t,i){"use strict";var n=i(74314),r=i(87760).a,o={protanomaly:{type:"protan",anomalize:!0},protanopia:{type:"protan"},deuteranomaly:{type:"deutan",anomalize:!0},deuteranopia:{type:"deutan"},tritanomaly:{type:"tritan",anomalize:!0},tritanopia:{type:"tritan"},achromatomaly:{type:"achroma",anomalize:!0},achromatopsia:{type:"achroma"}},s=function(e){return Math.round(255*e)},a=function(e){return function(t,i){var a=n(t);if(!a)return i?{R:0,G:0,B:0}:"#000000";var l=new r({R:s(a.red()||0),G:s(a.green()||0),B:s(a.blue()||0)},o[e].type,o[e].anomalize);return(l.R=l.R||0,l.G=l.G||0,l.B=l.B||0,i)?(delete l.X,delete l.Y,delete l.Z,l):new n.RGB(l.R%256/255,l.G%256/255,l.B%256/255,1).hex()}};for(var l in o)t[l]=a(l)},8874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(e,t,i){var n=i(8874),r=i(86851),o=Object.hasOwnProperty,s=Object.create(null);for(var a in n)o.call(n,a)&&(s[n[a]]=a);var l=e.exports={to:{},get:{}};function h(e,t,i){return Math.min(Math.max(t,e),i)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,i;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),i="hsl";break;case"hwb":t=l.get.hwb(e),i="hwb";break;default:t=l.get.rgb(e),i="rgb"}return t?{model:i,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,i,r,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=0,r=t[2],t=t[1];i<3;i++){var a=2*i;s[i]=parseInt(t.slice(a,a+2),16)}r&&(s[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=0,r=(t=t[1])[3];i<3;i++)s[i]=parseInt(t[i]+t[i],16);r&&(s[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=parseInt(t[i+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=Math.round(2.55*parseFloat(t[i+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((s=n[t[1]])[3]=1,s):null;for(i=0;i<3;i++)s[i]=h(s[i],0,255);return s[3]=h(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+i+"%, "+n+"%)":"rgba("+t+"%, "+i+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new r(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),a.prototype.eventNames=function(){var e,n,r=[];if(0===this._eventsCount)return r;for(n in e=this._events)t.call(e,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=Array(o);rh+a*s*u||d>=p)g=s;else{if(Math.abs(f)<=-l*u)return s;f*(g-c)>=0&&(g=c),c=s,p=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),f=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return p(g,s,c);if(Math.abs(f)<=-l*u)break;if(f>=0)return p(s,g,d);c=d,g=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=p[g-1].fx){var O=!1;if(C.fx>N.fx?(o(S,1+c,b,-c,N),S.fx=e(S),S.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:g}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,f=i.c2||.1,g=[];if(i.history){var p=e;e=function(e,t){return g.push(e.slice()),p(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{Ib:function(){return n},WT:function(){return r}});var n=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";i.d(t,{Ue:function(){return r},al:function(){return s},xO:function(){return o}});var n=i(49685);function r(){var e=new n.WT(9);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function s(e,t,i,r,o,s,a,l,h){var u=new n.WT(9);return u[0]=e,u[1]=t,u[2]=i,u[3]=r,u[4]=o,u[5]=s,u[6]=a,u[7]=l,u[8]=h,u}},85975:function(e,t,i){"use strict";i.r(t),i.d(t,{add:function(){return Y},adjoint:function(){return c},clone:function(){return o},copy:function(){return s},create:function(){return r},determinant:function(){return f},equals:function(){return Q},exactEquals:function(){return Z},frob:function(){return K},fromQuat:function(){return M},fromQuat2:function(){return O},fromRotation:function(){return y},fromRotationTranslation:function(){return N},fromRotationTranslationScale:function(){return D},fromRotationTranslationScaleOrigin:function(){return x},fromScaling:function(){return S},fromTranslation:function(){return C},fromValues:function(){return a},fromXRotation:function(){return T},fromYRotation:function(){return R},fromZRotation:function(){return A},frustum:function(){return k},getRotation:function(){return w},getScaling:function(){return I},getTranslation:function(){return L},identity:function(){return h},invert:function(){return d},lookAt:function(){return G},mul:function(){return J},multiply:function(){return g},multiplyScalar:function(){return q},multiplyScalarAndAdd:function(){return X},ortho:function(){return V},orthoNO:function(){return H},orthoZO:function(){return W},perspective:function(){return F},perspectiveFromFieldOfView:function(){return U},perspectiveNO:function(){return P},perspectiveZO:function(){return B},rotate:function(){return _},rotateX:function(){return E},rotateY:function(){return v},rotateZ:function(){return b},scale:function(){return m},set:function(){return l},str:function(){return z},sub:function(){return ee},subtract:function(){return $},targetTo:function(){return j},translate:function(){return p},transpose:function(){return u}});var n=i(49685);function r(){var e=new n.WT(16);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function o(e){var t=new n.WT(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(e,t,i,r,o,s,a,l,h,u,d,c,f,g,p,m){var _=new n.WT(16);return _[0]=e,_[1]=t,_[2]=i,_[3]=r,_[4]=o,_[5]=s,_[6]=a,_[7]=l,_[8]=h,_[9]=u,_[10]=d,_[11]=c,_[12]=f,_[13]=g,_[14]=p,_[15]=m,_}function l(e,t,i,n,r,o,s,a,l,h,u,d,c,f,g,p,m){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=o,e[5]=s,e[6]=a,e[7]=l,e[8]=h,e[9]=u,e[10]=d,e[11]=c,e[12]=f,e[13]=g,e[14]=p,e[15]=m,e}function h(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){var i=t[1],n=t[2],r=t[3],o=t[6],s=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=i,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=o,e[11]=t[14],e[12]=r,e[13]=s,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function d(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],f=t[11],g=t[12],p=t[13],m=t[14],_=t[15],E=i*a-n*s,v=i*l-r*s,b=i*h-o*s,C=n*l-r*a,S=n*h-o*a,y=r*h-o*l,T=u*p-d*g,R=u*m-c*g,A=u*_-f*g,N=d*m-c*p,O=d*_-f*p,L=c*_-f*m,I=E*L-v*O+b*N+C*A-S*R+y*T;return I?(I=1/I,e[0]=(a*L-l*O+h*N)*I,e[1]=(r*O-n*L-o*N)*I,e[2]=(p*y-m*S+_*C)*I,e[3]=(c*S-d*y-f*C)*I,e[4]=(l*A-s*L-h*R)*I,e[5]=(i*L-r*A+o*R)*I,e[6]=(m*b-g*y-_*v)*I,e[7]=(u*y-c*b+f*v)*I,e[8]=(s*O-a*A+h*T)*I,e[9]=(n*A-i*O-o*T)*I,e[10]=(g*S-p*b+_*E)*I,e[11]=(d*b-u*S-f*E)*I,e[12]=(a*R-s*N-l*T)*I,e[13]=(i*N-n*R+r*T)*I,e[14]=(p*v-g*C-m*E)*I,e[15]=(u*C-d*v+c*E)*I,e):null}function c(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],f=t[11],g=t[12],p=t[13],m=t[14],_=t[15];return e[0]=a*(c*_-f*m)-d*(l*_-h*m)+p*(l*f-h*c),e[1]=-(n*(c*_-f*m)-d*(r*_-o*m)+p*(r*f-o*c)),e[2]=n*(l*_-h*m)-a*(r*_-o*m)+p*(r*h-o*l),e[3]=-(n*(l*f-h*c)-a*(r*f-o*c)+d*(r*h-o*l)),e[4]=-(s*(c*_-f*m)-u*(l*_-h*m)+g*(l*f-h*c)),e[5]=i*(c*_-f*m)-u*(r*_-o*m)+g*(r*f-o*c),e[6]=-(i*(l*_-h*m)-s*(r*_-o*m)+g*(r*h-o*l)),e[7]=i*(l*f-h*c)-s*(r*f-o*c)+u*(r*h-o*l),e[8]=s*(d*_-f*p)-u*(a*_-h*p)+g*(a*f-h*d),e[9]=-(i*(d*_-f*p)-u*(n*_-o*p)+g*(n*f-o*d)),e[10]=i*(a*_-h*p)-s*(n*_-o*p)+g*(n*h-o*a),e[11]=-(i*(a*f-h*d)-s*(n*f-o*d)+u*(n*h-o*a)),e[12]=-(s*(d*m-c*p)-u*(a*m-l*p)+g*(a*c-l*d)),e[13]=i*(d*m-c*p)-u*(n*m-r*p)+g*(n*c-r*d),e[14]=-(i*(a*m-l*p)-s*(n*m-r*p)+g*(n*l-r*a)),e[15]=i*(a*c-l*d)-s*(n*c-r*d)+u*(n*l-r*a),e}function f(e){var t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],d=e[10],c=e[11],f=e[12],g=e[13],p=e[14],m=e[15];return(t*s-i*o)*(d*m-c*p)-(t*a-n*o)*(u*m-c*g)+(t*l-r*o)*(u*p-d*g)+(i*a-n*s)*(h*m-c*f)-(i*l-r*s)*(h*p-d*f)+(n*l-r*a)*(h*g-u*f)}function g(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],f=t[10],g=t[11],p=t[12],m=t[13],_=t[14],E=t[15],v=i[0],b=i[1],C=i[2],S=i[3];return e[0]=v*n+b*a+C*d+S*p,e[1]=v*r+b*l+C*c+S*m,e[2]=v*o+b*h+C*f+S*_,e[3]=v*s+b*u+C*g+S*E,v=i[4],b=i[5],C=i[6],S=i[7],e[4]=v*n+b*a+C*d+S*p,e[5]=v*r+b*l+C*c+S*m,e[6]=v*o+b*h+C*f+S*_,e[7]=v*s+b*u+C*g+S*E,v=i[8],b=i[9],C=i[10],S=i[11],e[8]=v*n+b*a+C*d+S*p,e[9]=v*r+b*l+C*c+S*m,e[10]=v*o+b*h+C*f+S*_,e[11]=v*s+b*u+C*g+S*E,v=i[12],b=i[13],C=i[14],S=i[15],e[12]=v*n+b*a+C*d+S*p,e[13]=v*r+b*l+C*c+S*m,e[14]=v*o+b*h+C*f+S*_,e[15]=v*s+b*u+C*g+S*E,e}function p(e,t,i){var n,r,o,s,a,l,h,u,d,c,f,g,p=i[0],m=i[1],_=i[2];return t===e?(e[12]=t[0]*p+t[4]*m+t[8]*_+t[12],e[13]=t[1]*p+t[5]*m+t[9]*_+t[13],e[14]=t[2]*p+t[6]*m+t[10]*_+t[14],e[15]=t[3]*p+t[7]*m+t[11]*_+t[15]):(n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],f=t[10],g=t[11],e[0]=n,e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=h,e[7]=u,e[8]=d,e[9]=c,e[10]=f,e[11]=g,e[12]=n*p+a*m+d*_+t[12],e[13]=r*p+l*m+c*_+t[13],e[14]=o*p+h*m+f*_+t[14],e[15]=s*p+u*m+g*_+t[15]),e}function m(e,t,i){var n=i[0],r=i[1],o=i[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function _(e,t,i,r){var o,s,a,l,h,u,d,c,f,g,p,m,_,E,v,b,C,S,y,T,R,A,N,O,L=r[0],I=r[1],w=r[2],D=Math.hypot(L,I,w);return D0?(i[0]=(l*a+d*r+h*s-u*o)*2/c,i[1]=(h*a+d*o+u*r-l*s)*2/c,i[2]=(u*a+d*s+l*o-h*r)*2/c):(i[0]=(l*a+d*r+h*s-u*o)*2,i[1]=(h*a+d*o+u*r-l*s)*2,i[2]=(u*a+d*s+l*o-h*r)*2),N(e,t,i),e}function L(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function I(e,t){var i=t[0],n=t[1],r=t[2],o=t[4],s=t[5],a=t[6],l=t[8],h=t[9],u=t[10];return e[0]=Math.hypot(i,n,r),e[1]=Math.hypot(o,s,a),e[2]=Math.hypot(l,h,u),e}function w(e,t){var i=new n.WT(3);I(i,t);var r=1/i[0],o=1/i[1],s=1/i[2],a=t[0]*r,l=t[1]*o,h=t[2]*s,u=t[4]*r,d=t[5]*o,c=t[6]*s,f=t[8]*r,g=t[9]*o,p=t[10]*s,m=a+d+p,_=0;return m>0?(_=2*Math.sqrt(m+1),e[3]=.25*_,e[0]=(c-g)/_,e[1]=(f-h)/_,e[2]=(l-u)/_):a>d&&a>p?(_=2*Math.sqrt(1+a-d-p),e[3]=(c-g)/_,e[0]=.25*_,e[1]=(l+u)/_,e[2]=(f+h)/_):d>p?(_=2*Math.sqrt(1+d-a-p),e[3]=(f-h)/_,e[0]=(l+u)/_,e[1]=.25*_,e[2]=(c+g)/_):(_=2*Math.sqrt(1+p-a-d),e[3]=(l-u)/_,e[0]=(f+h)/_,e[1]=(c+g)/_,e[2]=.25*_),e}function D(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3],l=r+r,h=o+o,u=s+s,d=r*l,c=r*h,f=r*u,g=o*h,p=o*u,m=s*u,_=a*l,E=a*h,v=a*u,b=n[0],C=n[1],S=n[2];return e[0]=(1-(g+m))*b,e[1]=(c+v)*b,e[2]=(f-E)*b,e[3]=0,e[4]=(c-v)*C,e[5]=(1-(d+m))*C,e[6]=(p+_)*C,e[7]=0,e[8]=(f+E)*S,e[9]=(p-_)*S,e[10]=(1-(d+g))*S,e[11]=0,e[12]=i[0],e[13]=i[1],e[14]=i[2],e[15]=1,e}function x(e,t,i,n,r){var o=t[0],s=t[1],a=t[2],l=t[3],h=o+o,u=s+s,d=a+a,c=o*h,f=o*u,g=o*d,p=s*u,m=s*d,_=a*d,E=l*h,v=l*u,b=l*d,C=n[0],S=n[1],y=n[2],T=r[0],R=r[1],A=r[2],N=(1-(p+_))*C,O=(f+b)*C,L=(g-v)*C,I=(f-b)*S,w=(1-(c+_))*S,D=(m+E)*S,x=(g+v)*y,M=(m-E)*y,k=(1-(c+p))*y;return e[0]=N,e[1]=O,e[2]=L,e[3]=0,e[4]=I,e[5]=w,e[6]=D,e[7]=0,e[8]=x,e[9]=M,e[10]=k,e[11]=0,e[12]=i[0]+T-(N*T+I*R+x*A),e[13]=i[1]+R-(O*T+w*R+M*A),e[14]=i[2]+A-(L*T+D*R+k*A),e[15]=1,e}function M(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i+i,a=n+n,l=r+r,h=i*s,u=n*s,d=n*a,c=r*s,f=r*a,g=r*l,p=o*s,m=o*a,_=o*l;return e[0]=1-d-g,e[1]=u+_,e[2]=c-m,e[3]=0,e[4]=u-_,e[5]=1-h-g,e[6]=f+p,e[7]=0,e[8]=c+m,e[9]=f-p,e[10]=1-h-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function k(e,t,i,n,r,o,s){var a=1/(i-t),l=1/(r-n),h=1/(o-s);return e[0]=2*o*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(i+t)*a,e[9]=(r+n)*l,e[10]=(s+o)*h,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*o*2*h,e[15]=0,e}function P(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=(r+n)*o,e[14]=2*r*n*o):(e[10]=-1,e[14]=-2*n),e}var F=P;function B(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=r*o,e[14]=r*n*o):(e[10]=-1,e[14]=-n),e}function U(e,t,i,n){var r=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(r+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=h,e[6]=0,e[7]=0,e[8]=-((s-a)*l*.5),e[9]=(r-o)*h*.5,e[10]=n/(i-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*i/(i-n),e[15]=0,e}function H(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=(s+o)*h,e[15]=1,e}var V=H;function W(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=o*h,e[15]=1,e}function G(e,t,i,r){var o,s,a,l,u,d,c,f,g,p,m=t[0],_=t[1],E=t[2],v=r[0],b=r[1],C=r[2],S=i[0],y=i[1],T=i[2];return Math.abs(m-S)0&&(u*=f=1/Math.sqrt(f),d*=f,c*=f);var g=l*c-h*d,p=h*u-a*c,m=a*d-l*u;return(f=g*g+p*p+m*m)>0&&(g*=f=1/Math.sqrt(f),p*=f,m*=f),e[0]=g,e[1]=p,e[2]=m,e[3]=0,e[4]=d*m-c*p,e[5]=c*g-u*m,e[6]=u*p-d*g,e[7]=0,e[8]=u,e[9]=d,e[10]=c,e[11]=0,e[12]=r,e[13]=o,e[14]=s,e[15]=1,e}function z(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function K(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Y(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e[4]=t[4]+i[4],e[5]=t[5]+i[5],e[6]=t[6]+i[6],e[7]=t[7]+i[7],e[8]=t[8]+i[8],e[9]=t[9]+i[9],e[10]=t[10]+i[10],e[11]=t[11]+i[11],e[12]=t[12]+i[12],e[13]=t[13]+i[13],e[14]=t[14]+i[14],e[15]=t[15]+i[15],e}function $(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e[4]=t[4]-i[4],e[5]=t[5]-i[5],e[6]=t[6]-i[6],e[7]=t[7]-i[7],e[8]=t[8]-i[8],e[9]=t[9]-i[9],e[10]=t[10]-i[10],e[11]=t[11]-i[11],e[12]=t[12]-i[12],e[13]=t[13]-i[13],e[14]=t[14]-i[14],e[15]=t[15]-i[15],e}function q(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12]*i,e[13]=t[13]*i,e[14]=t[14]*i,e[15]=t[15]*i,e}function X(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e[3]=t[3]+i[3]*n,e[4]=t[4]+i[4]*n,e[5]=t[5]+i[5]*n,e[6]=t[6]+i[6]*n,e[7]=t[7]+i[7]*n,e[8]=t[8]+i[8]*n,e[9]=t[9]+i[9]*n,e[10]=t[10]+i[10]*n,e[11]=t[11]+i[11]*n,e[12]=t[12]+i[12]*n,e[13]=t[13]+i[13]*n,e[14]=t[14]+i[14]*n,e[15]=t[15]+i[15]*n,e}function Z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Q(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=e[9],f=e[10],g=e[11],p=e[12],m=e[13],_=e[14],E=e[15],v=t[0],b=t[1],C=t[2],S=t[3],y=t[4],T=t[5],R=t[6],A=t[7],N=t[8],O=t[9],L=t[10],I=t[11],w=t[12],D=t[13],x=t[14],M=t[15];return Math.abs(i-v)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-b)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(o-C)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(C))&&Math.abs(s-S)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-y)<=n.Ib*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-T)<=n.Ib*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(h-R)<=n.Ib*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-A)<=n.Ib*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-N)<=n.Ib*Math.max(1,Math.abs(d),Math.abs(N))&&Math.abs(c-O)<=n.Ib*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-L)<=n.Ib*Math.max(1,Math.abs(f),Math.abs(L))&&Math.abs(g-I)<=n.Ib*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(p-w)<=n.Ib*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(m-D)<=n.Ib*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(_-x)<=n.Ib*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(E-M)<=n.Ib*Math.max(1,Math.abs(E),Math.abs(M))}var J=g,ee=$},32945:function(e,t,i){"use strict";i.d(t,{Fv:function(){return p},JG:function(){return f},Jp:function(){return h},Su:function(){return d},U_:function(){return u},Ue:function(){return a},al:function(){return c},dC:function(){return g},yY:function(){return l}});var n=i(49685),r=i(35600),o=i(77160),s=i(98333);function a(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function l(e,t,i){var n=Math.sin(i*=.5);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(i),e}function h(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=i[0],l=i[1],h=i[2],u=i[3];return e[0]=n*u+s*a+r*h-o*l,e[1]=r*u+s*l+o*a-n*h,e[2]=o*u+s*h+n*l-r*a,e[3]=s*u-n*a-r*l-o*h,e}function u(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o,a=s?1/s:0;return e[0]=-i*a,e[1]=-n*a,e[2]=-r*a,e[3]=o*a,e}function d(e,t,i,n){var r=.5*Math.PI/180,o=Math.sin(t*=r),s=Math.cos(t),a=Math.sin(i*=r),l=Math.cos(i),h=Math.sin(n*=r),u=Math.cos(n);return e[0]=o*l*u-s*a*h,e[1]=s*a*u+o*l*h,e[2]=s*l*h-o*a*u,e[3]=s*l*u+o*a*h,e}s.d9;var c=s.al,f=s.JG;s.t8,s.IH;var g=h;s.bA,s.AK,s.t7,s.kE,s.we;var p=s.Fv;s.I6,s.fS,o.Ue(),o.al(1,0,0),o.al(0,1,0),a(),a(),r.Ue()},31437:function(e,t,i){"use strict";i.d(t,{AK:function(){return l},Fv:function(){return a},I6:function(){return h},JG:function(){return s},al:function(){return o}});var n,r=i(49685);function o(e,t){var i=new r.WT(2);return i[0]=e,i[1]=t,i}function s(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function h(e,t){return e[0]===t[0]&&e[1]===t[1]}n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},77160:function(e,t,i){"use strict";i.d(t,{$X:function(){return d},AK:function(){return p},Fv:function(){return g},IH:function(){return u},JG:function(){return l},Jp:function(){return c},TK:function(){return S},Ue:function(){return r},VC:function(){return b},Zh:function(){return y},al:function(){return a},bA:function(){return f},d9:function(){return o},fF:function(){return E},fS:function(){return C},kC:function(){return m},kE:function(){return s},kK:function(){return v},t7:function(){return _},t8:function(){return h}});var n=i(49685);function r(){var e=new n.WT(3);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function o(e){var t=new n.WT(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(e){return Math.hypot(e[0],e[1],e[2])}function a(e,t,i){var r=new n.WT(3);return r[0]=e,r[1]=t,r[2]=i,r}function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function u(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function d(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function f(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function g(e,t){var i=t[0],n=t[1],r=t[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function p(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=r*l-o*a,e[1]=o*s-n*l,e[2]=n*a-r*s,e}function _(e,t,i,n){var r=t[0],o=t[1],s=t[2];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e}function E(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return s=s||1,e[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/s,e[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,e[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,e}function v(e,t,i){var n=t[0],r=t[1],o=t[2];return e[0]=n*i[0]+r*i[3]+o*i[6],e[1]=n*i[1]+r*i[4]+o*i[7],e[2]=n*i[2]+r*i[5]+o*i[8],e}function b(e,t,i){var n=i[0],r=i[1],o=i[2],s=i[3],a=t[0],l=t[1],h=t[2],u=r*h-o*l,d=o*a-n*h,c=n*l-r*a,f=r*c-o*d,g=o*u-n*c,p=n*d-r*u,m=2*s;return u*=m,d*=m,c*=m,f*=2,g*=2,p*=2,e[0]=a+u+f,e[1]=l+d+g,e[2]=h+c+p,e}function C(e,t){var i=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2];return Math.abs(i-s)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-a)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(l))}var S=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},y=s;r()},98333:function(e,t,i){"use strict";i.d(t,{AK:function(){return g},Fv:function(){return f},I6:function(){return _},IH:function(){return h},JG:function(){return a},Ue:function(){return r},al:function(){return s},bA:function(){return u},d9:function(){return o},fF:function(){return m},fS:function(){return E},kE:function(){return d},t7:function(){return p},t8:function(){return l},we:function(){return c}});var n=i(49685);function r(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function o(e){var t=new n.WT(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(e,t,i,r){var o=new n.WT(4);return o[0]=e,o[1]=t,o[2]=i,o[3]=r,o}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e}function h(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e}function u(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function d(e){return Math.hypot(e[0],e[1],e[2],e[3])}function c(e){var t=e[0],i=e[1],n=e[2],r=e[3];return t*t+i*i+n*n+r*r}function f(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=n*s,e[2]=r*s,e[3]=o*s,e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function p(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e[3]=a+n*(i[3]-a),e}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3];return e[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,e[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,e[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,e[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function E(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=t[0],l=t[1],h=t[2],u=t[3];return Math.abs(i-a)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-l)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-h)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-u)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(u))}r()},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function f(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function g(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function p(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function _(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function v(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function b(e,t){for(let i of t)e.push(i)}function C(e,t,i,n){let r=S(e,t),o=e.splice(r,i);return!function(e,t,i){let n=S(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function T(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function R(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return f},Gb:function(){return o},H9:function(){return A},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return R},W$:function(){return N},XY:function(){return d},Xh:function(){return p},Zv:function(){return _},al:function(){return v},dF:function(){return g},db:function(){return C},fS:function(){return a},jV:function(){return T},kX:function(){return u},ry:function(){return h},tT:function(){return y},vA:function(){return b},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class N{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new N(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new N(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}N.empty=new N(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return S},ED:function(){return E},G6:function(){return k},IJ:function(){return b},OS:function(){return L},dz:function(){return v},fn:function(){return O},gn:function(){return T},i7:function(){return x},li:function(){return p},n2:function(){return y},r:function(){return D},tY:function(){return C},tq:function(){return R},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,f=!1,g=!1,p="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==p.vscode&&void 0!==p.vscode.process?r=p.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),_=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||_){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,f=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,g=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,v=h,b=u,C=d,S=c,y=c&&"function"==typeof p.importScripts,T=f,R=g,A=n,N="function"==typeof p.postMessage&&!p.importScripts,O=(()=>{if(N){let e=[];p.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),p.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),L=h||f?2:l?1:3,I=!0,w=!1;function D(){if(!w){w=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);I=513===t[0]}return I}let x=!!(A&&A.indexOf("Chrome")>=0),M=!!(A&&A.indexOf("Firefox")>=0),k=!!(!x&&A&&A.indexOf("Safari")>=0),P=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function f(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function g(e){return"function"==typeof e}function p(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,f,g,p,m,_,E,v,b;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k5},KeyMod:function(){return k4},MarkerSeverity:function(){return k7},MarkerTag:function(){return Pe},Position:function(){return k3},Range:function(){return k6},Selection:function(){return k9},SelectionDirection:function(){return k8},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var C,S,y,T,R,A,N,O,L,I,w,D,x,M,k,P,F,B,U,H,V,W,G,j,z,K,Y,$,q,X,Z,Q,J,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,ef,eg,ep,em,e_,eE,ev,eb,eC,eS,ey,eT,eR,eA,eN,eO,eL,eI,ew,eD,ex,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ej,ez,eK,eY,e$,eq,eX,eZ,eQ,eJ,e0,e1,e2,e5,e4,e3,e6,e9,e8,e7,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tf,tg,tp,tm,t_,tE,tv,tb,tC,tS,ty,tT,tR,tA,tN,tO,tL,tI,tw,tD,tx,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tj,tz,tK,tY,t$,tq,tX,tZ,tQ,tJ,t0,t1,t2,t5,t4,t3,t6,t9,t8,t7,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,i_,iE,iv,ib,iC,iS,iy,iT,iR,iA,iN,iO,iL,iI,iw,iD,ix,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,ij,iz,iK,iY,i$,iq,iX,iZ,iQ,iJ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i3(e)||i0.onUnexpectedError(e)}function i2(e){i3(e)||i0.onUnexpectedExternalError(e)}function i5(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i4="Canceled";function i3(e){return e instanceof i6||e instanceof Error&&e.name===i4&&e.message===i4}class i6 extends Error{constructor(){super(i4),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i8(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i7 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class nf{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class ng{constructor(e){this.object=e}dispose(){}}class np{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let n_=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=n_&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new ny({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new ny({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new ny({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new ny({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new ny({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new ny({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e8||(e8={}));class nv{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${nv._idPool++}`,nv.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}nv.all=new Set,nv._idPool=0;class nb{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nC{static create(){var e;return new nC(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class nS{constructor(e){this.value=e}}class ny{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nb(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new nv(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new nS(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nC.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof nS?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nR),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let nT=()=>new nR;class nR{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nA extends ny{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nN extends nA{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nO extends ny{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nL{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nI{constructor(){this.listening=!1,this.inputEvent=e8.None,this.inputEventListener=nc.None,this.emitter=new ny({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nw=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(S=e7||(e7={})).isCancellationToken=function(e){return e===S.None||e===S.Cancelled||e instanceof nD||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e8.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nw});class nD{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nw:(this._emitter||(this._emitter=new ny),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nx{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nD),this._token}cancel(){this._token?this._token instanceof nD&&this._token.cancel():this._token=e7.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nD&&this._token.dispose():this._token=e7.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nj=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nj[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nj[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nj[3]=46}(),(y=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},y.fromString=function(e){return nk.strToKeyCode(e)},y.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},y.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},y.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},y.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nz=i(1432),nK=i(83454);if(void 0!==nz.li.vscode&&void 0!==nz.li.vscode.process){let e=nz.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nz.ED?"win32":nz.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let nY=n.cwd,n$=n.env,nq=n.platform;class nX extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nX(t,"string",e)}let nQ="win32"===nq;function nJ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n5(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nX(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n4={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=nY():(void 0===(o=n$[`=${t}`]||nY())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nJ(u)&&(a=1,h=!0);else if(nJ(u)){if(h=!0,nJ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nJ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nJ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nJ(o)){if(r=!0,nJ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nJ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nJ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nJ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nJ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nJ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nJ(i.charCodeAt(1))&&(++r,e>2&&(nJ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n4.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n4.resolve(e),n=n4.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let f="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(f+=0===f.length?"..":"\\..");return(a+=d,f.length>0)?`${f}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n4.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nJ(r)?e:".";if(nJ(r)){if(i=n=1,nJ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nJ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nJ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nJ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nJ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nJ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n5.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nJ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nJ(r)){if(n=1,nJ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nJ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n3=(()=>{if(nQ){let e=/\\/g;return()=>{let t=nY().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>nY()})(),n6={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n3();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n6.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n6.resolve(e))===(t=n6.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n5.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n6.win32=n4.win32=n4,n6.posix=n4.posix=n6;let n9=nQ?n4.normalize:n6.normalize,n8=nQ?n4.resolve:n6.resolve,n7=nQ?n4.relative:n6.relative,re=nQ?n4.dirname:n6.dirname,rt=nQ?n4.basename:n6.basename,ri=nQ?n4.extname:n6.extname,rn=nQ?n4.sep:n6.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rg(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",r_(i[4]||""),r_(i[5]||""),r_(i[7]||""),r_(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nz.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nz.ED&&"file"===e.scheme?rl.file(n4.join(rg(e,!0),...t)).path:n6.join(e.path,...t),e.with({path:i})}toString(e=!1){return rp(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nz.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rg(this,!1)),this._fsPath}toString(e=!1){return e?rp(this,!0):(this._formatted||(this._formatted=rp(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rf(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nz.ED&&(i=i.replace(/\//g,"\\")),i}function rp(e,t){let i=t?rf:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function r_(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return rv.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return rv.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return rv.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return rv.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return rv.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new rv(i,n,r,o)}intersectRanges(e){return rv.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new rv(i,n,r,o)}equalsRange(e){return rv.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return rv.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return rv.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new rv(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new rv(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return rv.collapseToStart(this)}static collapseToStart(e){return new rv(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return rv.collapseToEnd(this)}static collapseToEnd(e){return new rv(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new rv(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new rv(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new rv(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rb extends rv{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rb.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rb(this.startLineNumber,this.startColumn,e,t):new rb(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rb(e,t,this.endLineNumber,this.endColumn):new rb(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rb(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rb(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rb(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rb(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rx=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new ny,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rA(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rR(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(O=tl||(tl={}))[O.Unknown=0]="Unknown",O[O.Disabled=1]="Disabled",O[O.Enabled=2]="Enabled",(L=th||(th={}))[L.Invoke=1]="Invoke",L[L.Auto=2]="Auto",(I=tu||(tu={}))[I.None=0]="None",I[I.KeepWhitespace=1]="KeepWhitespace",I[I.InsertAsSnippet=4]="InsertAsSnippet",(w=td||(td={}))[w.Method=0]="Method",w[w.Function=1]="Function",w[w.Constructor=2]="Constructor",w[w.Field=3]="Field",w[w.Variable=4]="Variable",w[w.Class=5]="Class",w[w.Struct=6]="Struct",w[w.Interface=7]="Interface",w[w.Module=8]="Module",w[w.Property=9]="Property",w[w.Event=10]="Event",w[w.Operator=11]="Operator",w[w.Unit=12]="Unit",w[w.Value=13]="Value",w[w.Constant=14]="Constant",w[w.Enum=15]="Enum",w[w.EnumMember=16]="EnumMember",w[w.Keyword=17]="Keyword",w[w.Text=18]="Text",w[w.Color=19]="Color",w[w.File=20]="File",w[w.Reference=21]="Reference",w[w.Customcolor=22]="Customcolor",w[w.Folder=23]="Folder",w[w.TypeParameter=24]="TypeParameter",w[w.User=25]="User",w[w.Issue=26]="Issue",w[w.Snippet=27]="Snippet",(D=tc||(tc={}))[D.Deprecated=1]="Deprecated",(x=tf||(tf={}))[x.Invoke=0]="Invoke",x[x.TriggerCharacter=1]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tg||(tg={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tp||(tp={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=t_||(t_={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=tv||(tv={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tb||(tb={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tC||(tC={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=tS||(tS={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=ty||(ty={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(j=tT||(tT={}))[j.Both=0]="Both",j[j.Right=1]="Right",j[j.Left=2]="Left",j[j.None=3]="None",(z=tR||(tR={}))[z.Type=1]="Type",z[z.Parameter=2]="Parameter",(K=tA||(tA={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",(Y=tN||(tN={}))[Y.DependsOnKbLayout=-1]="DependsOnKbLayout",Y[Y.Unknown=0]="Unknown",Y[Y.Backspace=1]="Backspace",Y[Y.Tab=2]="Tab",Y[Y.Enter=3]="Enter",Y[Y.Shift=4]="Shift",Y[Y.Ctrl=5]="Ctrl",Y[Y.Alt=6]="Alt",Y[Y.PauseBreak=7]="PauseBreak",Y[Y.CapsLock=8]="CapsLock",Y[Y.Escape=9]="Escape",Y[Y.Space=10]="Space",Y[Y.PageUp=11]="PageUp",Y[Y.PageDown=12]="PageDown",Y[Y.End=13]="End",Y[Y.Home=14]="Home",Y[Y.LeftArrow=15]="LeftArrow",Y[Y.UpArrow=16]="UpArrow",Y[Y.RightArrow=17]="RightArrow",Y[Y.DownArrow=18]="DownArrow",Y[Y.Insert=19]="Insert",Y[Y.Delete=20]="Delete",Y[Y.Digit0=21]="Digit0",Y[Y.Digit1=22]="Digit1",Y[Y.Digit2=23]="Digit2",Y[Y.Digit3=24]="Digit3",Y[Y.Digit4=25]="Digit4",Y[Y.Digit5=26]="Digit5",Y[Y.Digit6=27]="Digit6",Y[Y.Digit7=28]="Digit7",Y[Y.Digit8=29]="Digit8",Y[Y.Digit9=30]="Digit9",Y[Y.KeyA=31]="KeyA",Y[Y.KeyB=32]="KeyB",Y[Y.KeyC=33]="KeyC",Y[Y.KeyD=34]="KeyD",Y[Y.KeyE=35]="KeyE",Y[Y.KeyF=36]="KeyF",Y[Y.KeyG=37]="KeyG",Y[Y.KeyH=38]="KeyH",Y[Y.KeyI=39]="KeyI",Y[Y.KeyJ=40]="KeyJ",Y[Y.KeyK=41]="KeyK",Y[Y.KeyL=42]="KeyL",Y[Y.KeyM=43]="KeyM",Y[Y.KeyN=44]="KeyN",Y[Y.KeyO=45]="KeyO",Y[Y.KeyP=46]="KeyP",Y[Y.KeyQ=47]="KeyQ",Y[Y.KeyR=48]="KeyR",Y[Y.KeyS=49]="KeyS",Y[Y.KeyT=50]="KeyT",Y[Y.KeyU=51]="KeyU",Y[Y.KeyV=52]="KeyV",Y[Y.KeyW=53]="KeyW",Y[Y.KeyX=54]="KeyX",Y[Y.KeyY=55]="KeyY",Y[Y.KeyZ=56]="KeyZ",Y[Y.Meta=57]="Meta",Y[Y.ContextMenu=58]="ContextMenu",Y[Y.F1=59]="F1",Y[Y.F2=60]="F2",Y[Y.F3=61]="F3",Y[Y.F4=62]="F4",Y[Y.F5=63]="F5",Y[Y.F6=64]="F6",Y[Y.F7=65]="F7",Y[Y.F8=66]="F8",Y[Y.F9=67]="F9",Y[Y.F10=68]="F10",Y[Y.F11=69]="F11",Y[Y.F12=70]="F12",Y[Y.F13=71]="F13",Y[Y.F14=72]="F14",Y[Y.F15=73]="F15",Y[Y.F16=74]="F16",Y[Y.F17=75]="F17",Y[Y.F18=76]="F18",Y[Y.F19=77]="F19",Y[Y.F20=78]="F20",Y[Y.F21=79]="F21",Y[Y.F22=80]="F22",Y[Y.F23=81]="F23",Y[Y.F24=82]="F24",Y[Y.NumLock=83]="NumLock",Y[Y.ScrollLock=84]="ScrollLock",Y[Y.Semicolon=85]="Semicolon",Y[Y.Equal=86]="Equal",Y[Y.Comma=87]="Comma",Y[Y.Minus=88]="Minus",Y[Y.Period=89]="Period",Y[Y.Slash=90]="Slash",Y[Y.Backquote=91]="Backquote",Y[Y.BracketLeft=92]="BracketLeft",Y[Y.Backslash=93]="Backslash",Y[Y.BracketRight=94]="BracketRight",Y[Y.Quote=95]="Quote",Y[Y.OEM_8=96]="OEM_8",Y[Y.IntlBackslash=97]="IntlBackslash",Y[Y.Numpad0=98]="Numpad0",Y[Y.Numpad1=99]="Numpad1",Y[Y.Numpad2=100]="Numpad2",Y[Y.Numpad3=101]="Numpad3",Y[Y.Numpad4=102]="Numpad4",Y[Y.Numpad5=103]="Numpad5",Y[Y.Numpad6=104]="Numpad6",Y[Y.Numpad7=105]="Numpad7",Y[Y.Numpad8=106]="Numpad8",Y[Y.Numpad9=107]="Numpad9",Y[Y.NumpadMultiply=108]="NumpadMultiply",Y[Y.NumpadAdd=109]="NumpadAdd",Y[Y.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",Y[Y.NumpadSubtract=111]="NumpadSubtract",Y[Y.NumpadDecimal=112]="NumpadDecimal",Y[Y.NumpadDivide=113]="NumpadDivide",Y[Y.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",Y[Y.ABNT_C1=115]="ABNT_C1",Y[Y.ABNT_C2=116]="ABNT_C2",Y[Y.AudioVolumeMute=117]="AudioVolumeMute",Y[Y.AudioVolumeUp=118]="AudioVolumeUp",Y[Y.AudioVolumeDown=119]="AudioVolumeDown",Y[Y.BrowserSearch=120]="BrowserSearch",Y[Y.BrowserHome=121]="BrowserHome",Y[Y.BrowserBack=122]="BrowserBack",Y[Y.BrowserForward=123]="BrowserForward",Y[Y.MediaTrackNext=124]="MediaTrackNext",Y[Y.MediaTrackPrevious=125]="MediaTrackPrevious",Y[Y.MediaStop=126]="MediaStop",Y[Y.MediaPlayPause=127]="MediaPlayPause",Y[Y.LaunchMediaPlayer=128]="LaunchMediaPlayer",Y[Y.LaunchMail=129]="LaunchMail",Y[Y.LaunchApp2=130]="LaunchApp2",Y[Y.Clear=131]="Clear",Y[Y.MAX_VALUE=132]="MAX_VALUE",($=tO||(tO={}))[$.Hint=1]="Hint",$[$.Info=2]="Info",$[$.Warning=4]="Warning",$[$.Error=8]="Error",(q=tL||(tL={}))[q.Unnecessary=1]="Unnecessary",q[q.Deprecated=2]="Deprecated",(X=tI||(tI={}))[X.Inline=1]="Inline",X[X.Gutter=2]="Gutter",(Z=tw||(tw={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(Q=tD||(tD={}))[Q.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",Q[Q.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",Q[Q.TOP_CENTER=2]="TOP_CENTER",(J=tx||(tx={}))[J.Left=1]="Left",J[J.Center=2]="Center",J[J.Right=4]="Right",J[J.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tj||(tj={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tz||(tz={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nx,Emitter:ny,KeyCode:tN,KeyMod:rM,Position:rE,Range:rv,Selection:rb,SelectionDirection:tU,MarkerSeverity:tO,MarkerTag:tL,Uri:rl,Token:rO}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rj(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rz(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rq(e,t){return et?1:0}function rX(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rQ(e,t,0,e.length,0,t.length)}function rQ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rX(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rJ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rQ(e,t)}function r5(e,t){let i=t.length;return!(t.length>e.length)&&0===rQ(e,t,0,i)}function r4(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r6(n))return r8(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r7(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=og.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(of(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=og.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(of(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function of(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class og{static getInstance(){return og._INSTANCE||(og._INSTANCE=new og),og._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}og._INSTANCE=null;class op{static getInstance(e){return op.cache.get(Array.from(e))}static getLocales(){return op._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}op.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),op.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new op(s)}),op._locales=new rF(()=>Object.keys(op.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class o_{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}o_.INSTANCE=new o_;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class ov extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function ob(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let oC=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new ov),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oS=navigator.userAgent,oy=oS.indexOf("Firefox")>=0,oT=oS.indexOf("AppleWebKit")>=0,oR=oS.indexOf("Chrome")>=0,oA=!oR&&oS.indexOf("Safari")>=0,oN=!oR&&!oA&&oT;oS.indexOf("Electron/");let oO=oS.indexOf("Android")>=0,oL=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oL=e.matches,ob(e,({matches:e})=>{oL&&t.matches||(oL=e)})}class oI{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=ow(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=ow(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=ow(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=ow(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=ow(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=ow(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=ow(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=ow(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=ow(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=ow(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=ow(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ow(e){return"number"==typeof e?`${e}px`:e}function oD(e){return new oI(e)}function ox(e,t){e instanceof oI?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");ox(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");ox(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");ox(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:oC.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),f=this._createRequest("7",0,t,i),g=this._createRequest("8",0,t,i),p=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),_=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),v=this._createRequest(String.fromCharCode(11825),0,t,null),b="|/-_ilm%";for(let e=0,n=b.length;e.001){S=!1;break}}let T=!0;return S&&_.width!==y&&(T=!1),_.width>m.width&&(T=!1),new oU({pixelRatio:oC.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:v.width,maxDigitWidth:C},!0)}};(ef=tY||(tY={})).serviceIds=new Map,ef.DI_TARGET="$di$target",ef.DI_DEPENDENCIES="$di$dependencies",ef.getServiceDependencies=function(e){return e[ef.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(tY.serviceIds.has(e))return tY.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[tY.DI_TARGET]===e?e[tY.DI_DEPENDENCIES].push({id:t,index:n}):(e[tY.DI_DEPENDENCIES]=[{id:t,index:n}],e[tY.DI_TARGET]=e)};return t.toString=()=>e,tY.serviceIds.set(e,t),t}let oj=oG("codeEditorService");function oz(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function oY(e){e()||(e(),i1(new nt("Assertion Failed")))}function o$(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i8(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o5._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o5._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o5._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o4=new Map;o4.set("false",!1),o4.set("true",!0),o4.set("isMac",nz.dz),o4.set("isLinux",nz.IJ),o4.set("isWindows",nz.ED),o4.set("isWeb",nz.$L),o4.set("isMacNative",nz.dz&&!nz.$L),o4.set("isEdge",nz.un),o4.set("isFirefox",nz.vU),o4.set("isChrome",nz.i7),o4.set("isSafari",nz.G6);let o3=Object.prototype.hasOwnProperty,o6={regexParsingWithErrorRecovery:!0},o9=(0,rN.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o8=(0,rN.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o7=(0,rN.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rN.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rN.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rN.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rN.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rN.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o6){this._config=e,this._scanner=new o5,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o8});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o5.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sp.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sC.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sC.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o7);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),sv.create(t,this._value());case 6:return this._advance(),sb.create(t,this._value());case 7:return this._advance(),s_.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return!this._isAtEnd()&&this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){let n=(0,rN.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,o5.getLexeme(t)),r=t.offset,o=o5.getLexeme(t);return this._parsingErrors.push({message:n,offset:r,lexeme:o,additionalInfo:i}),so._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}so._parseError=Error();class ss{static false(){return sl.INSTANCE}static true(){return sh.INSTANCE}static has(e){return su.create(e)}static equals(e,t){return sd.create(e,t)}static notEquals(e,t){return sg.create(e,t)}static regex(e,t){return sC.create(e,t)}static in(e,t){return sc.create(e,t)}static notIn(e,t){return sf.create(e,t)}static not(e){return sp.create(e)}static and(...e){return sT.create(e,null,!0)}static or(...e){return sR.create(e,null,!0)}static deserialize(e){if(null==e)return;let t=this._parser.parse(e);return t}}function sa(e,t){return e.cmp(t)}ss._parser=new so({regexParsingWithErrorRecovery:!1});class sl{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return sh.INSTANCE}}sl.INSTANCE=new sl;class sh{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return sl.INSTANCE}}sh.INSTANCE=new sh;class su{static create(e,t=null){let i=o4.get(e);return"boolean"==typeof i?i?sh.INSTANCE:sl.INSTANCE:new su(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o4.get(this.key);return"boolean"==typeof e?e?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=sp.create(this.key,this)),this.negated}}class sd{static create(e,t,i=null){if("boolean"==typeof t)return t?su.create(e,i):sp.create(e,i);let n=o4.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sh.INSTANCE:sl.INSTANCE:new sd(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o4.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sg.create(this.key,this.value,this)),this.negated}}class sc{static create(e,t){return new sc(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&o3.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=sf.create(this.key,this.valueKey)),this.negated}}class sf{static create(e,t){return new sf(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=sc.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class sg{static create(e,t,i=null){if("boolean"==typeof t)return t?sp.create(e,i):su.create(e,i);let n=o4.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sl.INSTANCE:sh.INSTANCE:new sg(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o4.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sd.create(this.key,this.value,this)),this.negated}}class sp{static create(e,t=null){let i=o4.get(e);return"boolean"==typeof i?i?sl.INSTANCE:sh.INSTANCE:new sp(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o4.get(this.key);return"boolean"==typeof e?e?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=su.create(this.key,this)),this.negated}}function sm(e,t){if("string"==typeof e){let t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):sl.INSTANCE}class s_{static create(e,t,i=null){return sm(t,t=>new s_(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sb.create(this.key,this.value,this)),this.negated}}class sE{static create(e,t,i=null){return sm(t,t=>new sE(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sv.create(this.key,this.value,this)),this.negated}}class sv{static create(e,t,i=null){return sm(t,t=>new sv(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new sb(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:sO(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s_.create(this.key,this.value,this)),this.negated}}class sC{static create(e,t){return new sC(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sS.create(this)),this.negated}}class sS{static create(e){return new sS(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function sy(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){let e=n[n.length-1];if(9!==e.type)break;n.pop();let t=n.pop(),r=0===n.length,o=sR.create(e.expr.map(e=>sT.create([e,t],null,i)),null,r);o&&(n.push(o),n.sort(sa))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize()).join(" && ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=sR.create(e,this,!0)}return this.negated}}class sR{static create(e,t,i){return sR._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let e of sI(t))for(let t of sI(i))n.push(sT.create([e,t],null,!1));e.unshift(sR.create(n,null,!1))}this.negated=sR.create(e,this,!0)}return this.negated}}class sA extends su{static all(){return sA._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?sA._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&sA._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return sd.create(this.key,e)}}sA._info=[];let sN=oG("contextKeyService");function sO(e,t,i,n){return ei?1:tn?1:0}function sL(e,t){let i=0,n=0;for(;ithis._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this._updateAccessibilityState(e.position.lineNumber),this.nextIdx=-1)})),this._init()}_init(){let e=this._editor.getLineChanges();if(!e)return}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new rv(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new rv(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new rv(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})}),this.ranges.sort((e,t)=>rv.compareRangesUsingStarts(e.range,t.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let n=0,r=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t),this._updateAccessibilityState(e.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var i;let n=null===(i=this._editor.getModel())||void 0===i?void 0:i.modified;if(!n)return;let r=n.getLineDecorations(e).find(e=>"line-insert"===e.options.className);if(r)this._audioCueService.playAudioCue(oJ.diffLineModified,!0);else{if(!t)return;this._audioCueService.playAudioCue(oJ.diffLineDeleted,!0)}let o=this._codeEditorService.getActiveCodeEditor();t&&o&&r&&this._accessibilityService.isScreenReaderOptimized()&&(o.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),o.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([sx(2,oX),sx(3,oj),sx(4,sw)],sk);let sP={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};(eg=t$||(t$={}))[eg.Left=1]="Left",eg[eg.Center=2]="Center",eg[eg.Right=4]="Right",eg[eg.Full=7]="Full",(ep=tq||(tq={}))[ep.Left=1]="Left",ep[ep.Right=2]="Right",(em=tX||(tX={}))[em.Inline=1]="Inline",em[em.Gutter=2]="Gutter",(e_=tZ||(tZ={}))[e_.Both=0]="Both",e_[e_.Right=1]="Right",e_[e_.Left=2]="Left",e_[e_.None=3]="None";class sF{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,oq.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class sB{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class sU{constructor(e,t,i,n,r,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class sH{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class sV{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}var sW=i(270);(eE=tQ||(tQ={}))[eE.None=0]="None",eE[eE.Indent=1]="Indent",eE[eE.IndentOutdent=2]="IndentOutdent",eE[eE.Outdent=3]="Outdent";class sG{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&e.getLanguageId(s-1)===r;)s--;return new sY(e,r,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}class sY{constructor(e,t,i,n,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){let e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){let t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function s$(e){return(3&e)!=0}class sq{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new sG(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new sG({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){let t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new sG({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sq.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sq.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}sq.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n ",sq.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n ";var sX=i(9488),sZ=i(21876).Buffer;let sQ=void 0!==sZ;new rF(()=>new Uint8Array(256));class sJ{static wrap(e){return sQ&&!sZ.isBuffer(e)&&(e=sZ.from(e.buffer,e.byteOffset,e.byteLength)),new sJ(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return sQ?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function s0(e,t){return 16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]}function s1(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function s2(){return o||(o=new TextDecoder("UTF-16LE")),o}function s5(){return a||(a=nz.r()?s2():(s||(s=new TextDecoder("UTF-16BE")),s)),a}class s4{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return s5().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||r6(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[e[0].toLowerCase(),e[1].toLowerCase()]);let i=[];for(let e=0;e{let[i,n]=e,[r,o]=t;return i===r||i===o||n===r||n===o},r=(e,n)=>{let r=Math.min(e,n),o=Math.max(e,n);for(let e=0;e0&&o.push({open:r,close:s})}return o}(t);for(let t of(this.brackets=i.map((t,n)=>new s3(e,n,t.open,t.close,function(e,t,i,n){let r=[];r=(r=r.concat(e)).concat(t);for(let e=0,t=r.length;e=0&&n.push(t);for(let t of o.close)t.indexOf(e)>=0&&n.push(t)}}function s8(e,t){return e.length-t.length}function s7(e){if(e.length<=1)return e;let t=[],i=new Set;for(let n of e)i.has(n)||(t.push(n),i.add(n));return t}function ae(e){let t=/^[\w ]+$/.test(e);return e=rV(e),t?`\\b${e}\\b`:e}function at(e){let t=`(${e.map(ae).join(")|(")})`;return rG(t,!0)}let ai=(v=null,b=null,function(e){return v!==e&&(b=function(e){let t=new Uint16Array(e.length),i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s5().decode(t)}(v=e)),b});class an{static _findPrevBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=i.length-(r.index||0),s=r[0].length,a=n+o;return new rv(t,a-s+1,t,a+1)}static findPrevBracketInRange(e,t,i,n,r){let o=ai(i),s=o.substring(i.length-r,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=r.index||0,s=r[0].length;if(0===s)return null;let a=n+o;return new rv(t,a+1,t,a+1+s)}static findNextBracketInRange(e,t,i,n,r){let o=i.substring(n,r);return this.findNextBracketInText(e,t,o,n)}}class ar{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,sX.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if(s$(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,s=an.findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;let a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),l=this._richEditBrackets.textIsOpenBracket[a];if(l)return null;let h=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function ao(e){return e.global&&(e.lastIndex=0),!0}class as{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&ao(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&ao(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&ao(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&ao(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class aa{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{let t=aa._createOpenBracketRegExp(e[0]),i=aa._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,r=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)));if(o)return r.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};am.add(aE.JSONContribution,av);let ab={Configuration:"base.contributions.configuration"},aC={properties:{},patternProperties:{}},aS={properties:{},patternProperties:{}},ay={properties:{},patternProperties:{}},aT={properties:{},patternProperties:{}},aR={properties:{},patternProperties:{}},aA={properties:{},patternProperties:{}},aN="vscode://schemas/settings/resourceLanguage",aO=am.as(aE.JSONContribution),aL="\\[([^\\]]+)\\]",aI=RegExp(aL,"g"),aw=`^(${aL})+$`,aD=new RegExp(aw);function ax(e){let t=[];if(aD.test(e)){let i=aI.exec(e);for(;null==i?void 0:i.length;){let n=i[1].trim();n&&t.push(n),i=aI.exec(e)}}return(0,sX.EB)(t)}let aM=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new ny,this._onDidUpdateConfiguration=new ny,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:rN.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},aO.registerSchema(aN,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=new Set;this.doRegisterConfigurations(e,t,i),aO.registerSchema(aN,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){let t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;let n=[];for(let{overrides:r,source:o}of e)for(let e in r)if(t.add(e),aD.test(e)){let t=this.configurationDefaultsOverrides.get(e),s=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(o)for(let t of Object.keys(r[e]))s.set(t,o);let a=Object.assign(Object.assign({},(null==t?void 0:t.value)||{}),r[e]);this.configurationDefaultsOverrides.set(e,{source:o,value:a,valuesSources:s});let l=e.replace(/[\[\]]/g,""),h={type:"object",default:a,description:rN.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",l),$ref:aN,defaultDefaultValue:a,source:rC.HD(o)?void 0:o,defaultValueSource:o};n.push(...ax(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:r[e],source:o});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})}validateAndRegisterProperties(e,t=!0,i,n,r=3,o){var s;r=rC.Jp(e.scope)?r:e.scope;let a=e.properties;if(a)for(let e in a){let l=a[e];if(t&&function(e,t){var i,n,r,o;return e.trim()?aD.test(e)?rN.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==aM.getConfigurationProperties()[e]?rN.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==aM.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?rN.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(r=t.policy)||void 0===r?void 0:r.name,aM.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:rN.NC("config.property.empty","Cannot register an empty property")}(e,l)){delete a[e];continue}if(l.source=i,l.defaultDefaultValue=a[e].default,this.updatePropertyDefaultValue(e,l),aD.test(e)?l.scope=void 0:(l.scope=rC.Jp(l.scope)?r:l.scope,l.restricted=rC.Jp(l.restricted)?!!(null==n?void 0:n.includes(e)):l.restricted),a[e].hasOwnProperty("included")&&!a[e].included){this.excludedConfigurationProperties[e]=a[e],delete a[e];continue}this.configurationProperties[e]=a[e],(null===(s=a[e].policy)||void 0===s?void 0:s.name)&&this.policyConfigurations.set(a[e].policy.name,e),!a[e].deprecationMessage&&a[e].markdownDeprecationMessage&&(a[e].deprecationMessage=a[e].markdownDeprecationMessage),o.add(e)}let l=e.allOf;if(l)for(let e of l)this.validateAndRegisterProperties(e,t,i,n,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(aC.properties[e]=t,t.scope){case 1:aS.properties[e]=t;break;case 2:ay.properties[e]=t;break;case 6:aT.properties[e]=t;break;case 3:aR.properties[e]=t;break;case 4:aA.properties[e]=t;break;case 5:aA.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:rN.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rN.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aN};this.updatePropertyDefaultValue(t,i),aC.properties[t]=i,aS.properties[t]=i,ay.properties[t]=i,aT.properties[t]=i,aR.properties[t]=i,aA.properties[t]=i}}registerOverridePropertyPatternKey(){let e={type:"object",description:rN.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rN.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aN};aC.patternProperties[aw]=e,aS.patternProperties[aw]=e,ay.patternProperties[aw]=e,aT.patternProperties[aw]=e,aR.patternProperties[aw]=e,aA.patternProperties[aw]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),n=null==i?void 0:i.value,r=null==i?void 0:i.source;rC.o8(n)&&(n=t.defaultDefaultValue,r=void 0),rC.o8(n)&&(n=function(e){let t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=r}};am.add(ab.Configuration,aM);let ak=new class{constructor(){this._onDidChangeLanguages=new ny,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{let t=new Set;return{info:new aH(this,e,t),closing:t}}),r=new rP(e=>{let t=new Set,i=new Set;return{info:new aV(this,e,t,i),opening:t,openingColorized:i}});for(let[e,t]of i){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.opening.add(i.info)}let o=t.colorizedBracketPairs?aB(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]));for(let[e,t]of o){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.openingColorized.add(i.info),o.opening.add(i.info)}this._openingBrackets=new Map([...n.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...r.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function aB(e){return e.filter(([e,t])=>""!==e&&""!==t)}class aU{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class aH extends aU{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class aV extends aU{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var aW=function(e,t){return function(i,n){t(i,n,e)}};class aG{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}let aj=oG("languageConfigurationService"),az=class extends nc{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new a0),this.onDidChangeEmitter=this._register(new ny),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let i=new Set(Object.values(aK));this._register(this.configurationService.onDidChangeConfiguration(e=>{let t=e.change.keys.some(e=>i.has(e)),n=e.change.overrides.filter(([e,t])=>t.some(e=>i.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new aG(void 0));else for(let e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new aG(e)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new aG(e.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let r=t.getLanguageConfiguration(e);if(!r){if(!n.isRegisteredLanguageId(e))return new a1(e,{});r=new a1(e,{})}let o=function(e,t){let i=t.getValue(aK.brackets,{overrideIdentifier:e}),n=t.getValue(aK.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:aY(i),colorizedBracketPairs:aY(n)}}(r.languageId,i),s=aZ([r.underlyingConfig,o]),a=new a1(r.languageId,s);return a}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};az=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([aW(0,al),aW(1,ac)],az);let aK={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function aY(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]}).filter(e=>!!e)}function a$(e,t,i){let n=e.getLineContent(t),r=rY(n);return r.length>i-1&&(r=r.substring(0,i-1)),r}function aq(e,t,i){e.tokenization.forceTokenization(t);let n=e.tokenization.getLineTokens(t),r=void 0===i?e.getLineMaxColumn(t)-1:i-1;return sK(n,r)}class aX{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){let i=new aQ(e,t,++this._order);return this._entries.push(i),this._resolved=null,nu(()=>{for(let e=0;ee.configuration)))}}function aZ(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class aQ{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class aJ{constructor(e){this.languageId=e}}class a0 extends nc{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new ny),this.onDidChange=this._onDidChange.event,this._register(this.register(aP,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new aX(e),this._entries.set(e,n));let r=n.register(t,i);return this._onDidChange.fire(new aJ(e)),nu(()=>{r.dispose(),this._onDidChange.fire(new aJ(e))})}getLanguageConfiguration(e){let t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class a1{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new aa(this.underlyingConfig):null,this.comments=a1._handleComments(this.underlyingConfig),this.characterPair=new sq(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||sW.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new as(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new aF(e,this.underlyingConfig)}getWordDefinition(){return(0,sW.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new s6(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new ar(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new sj(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){let t=e.comments;if(!t)return null;let i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){let[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}ap(aj,az,1);let a2=new class{clone(){return this}equals(e){return this===e}};function a5(e,t){return new rL([new rO(0,"",e)],t)}function a4(e,t){let i=new Uint32Array(2);return i[0]=0,i[1]=(e<<0|33587200)>>>0,new rI(i,null===t?a2:t)}let a3=oG("modelService"),a6=Symbol("MicrotaskDelay");var a9=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},a8=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){!function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)}(n,r,(t=e[i](t)).done,t.value)})}}};function a7(e){return!!e&&"function"==typeof e.then}function le(e){let t=new nx,i=e(t.token),n=new Promise((e,n)=>{let r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),n(new i6)});Promise.resolve(i).then(i=>{r.dispose(),t.dispose(),e(i)},e=>{r.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}class lt{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)throw Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{if(this.queuedPromise=null,this.isDisposed)return;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}dispose(){this.isDisposed=!0}}let li=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},ln=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}};class lr{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===a6?ln(i):li(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new i6),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class lo{constructor(e){this.delayer=new lr(e),this.throttler=new lt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function ls(e,t){return t?new Promise((i,n)=>{let r=setTimeout(()=>{o.dispose(),i()},e),o=t.onCancellationRequested(()=>{clearTimeout(r),o.dispose(),n(new i6)})}):le(t=>ls(e,t))}function la(e,t=0){let i=setTimeout(e,t);return nu(()=>clearTimeout(i))}class ll{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class lh{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class lu{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}l="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,nz.fn)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){t||(t=!0)}}}:(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class ld{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=l(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class lc{get isRejected(){var e;return(null===(e=this.outcome)||void 0===e?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i6)}}(ev=tJ||(tJ={})).settled=function(e){return a9(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return i})},ev.withAsyncBody=function(e){return new Promise((t,i)=>a9(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class lf{static fromArray(e){return new lf(t=>{t.emitMany(e)})}static fromPromise(e){return new lf(t=>a9(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new lf(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>a9(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new lf(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n,r;return a9(this,void 0,void 0,function*(){var o,s,a,l;try{for(i=!0,n=a8(e);!(o=(r=yield n.next()).done);i=!0)l=r.value,i=!1,t.emitOne(l)}catch(e){s={error:e}}finally{try{!i&&!o&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new ny,queueMicrotask(()=>a9(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>a9(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(ea9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a8(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,i.emitOne(t(s))}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}map(e){return lf.map(this,e)}static filter(e,t){return new lf(i=>a9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a8(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,t(s)&&i.emitOne(s)}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}filter(e){return lf.filter(this,e)}static coalesce(e){return lf.filter(e,e=>!!e)}coalesce(){return lf.coalesce(this)}static toPromise(e){var t,i,n,r,o,s,a;return a9(this,void 0,void 0,function*(){let l=[];try{for(t=!0,i=a8(e);!(r=(n=yield i.next()).done);t=!0)a=n.value,t=!1,l.push(a)}catch(e){o={error:e}}finally{try{!t&&!r&&(s=i.return)&&(yield s.call(i))}finally{if(o)throw o.error}}return l})}toPromise(){return lf.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}lf.EMPTY=lf.fromArray([]);let lg=!1;function lp(e){nz.$L&&(lg||(lg=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class lm{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class l_{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class lE{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class lv{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class lb{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class lC{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){let i=String(++this._lastSentReq);return new Promise((n,r)=>{this._pendingReplies[i]={resolve:n,reject:r},this._send(new lm(this._workerId,i,e,t))})}listen(e,t){let i=null,n=new ny({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new lE(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new lb(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId)&&this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&((i=Error()).name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req,i=this._handler.handleMessage(e.method,e.args);i.then(e=>{this._send(new l_(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=i5(e.detail)),this._send(new l_(this._workerId,t,void 0,i5(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(e=>{this._send(new lv(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)},e=>{null==n||n(e)})),this._protocol=new lC({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(lT(e)){let n=i[e].call(i,t);if("function"!=typeof n)throw Error(`Missing dynamic event ${e} on main thread host.`);return n}if(ly(e)){let t=i[e];if("function"!=typeof t)throw Error(`Missing event ${e} on main thread host.`);return t}throw Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let r=null,o=globalThis.require;void 0!==o&&"function"==typeof o.getConfig?r=o.getConfig():void 0!==globalThis.requirejs&&(r=globalThis.requirejs.s.contexts._.config);let s=(0,oq.$E)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,s]);let a=(e,t)=>this._request(e,t),l=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise((e,i)=>{n=i,this._onModuleLoaded.then(t=>{e(function(e,t,i){let n=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r=e=>function(t){return i(e,t)},o={};for(let t of e){if(lT(t)){o[t]=r(t);continue}if(ly(t)){o[t]=i(t,void 0);continue}o[t]=n(t)}return o}(t,a,l))},e=>{i(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function ly(e){return"o"===e[0]&&"n"===e[1]&&r1(e.charCodeAt(2))}function lT(e){return/^onDynamic/.test(e)&&r1(e.charCodeAt(9))}function lR(e,t){var i;let n=globalThis.MonacoEnvironment;if(null==n?void 0:n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(e){i1(e);return}try{return null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(e){i1(e);return}}let lA=lR("defaultWorkerFactory",{createScriptURL:e=>e});class lN{constructor(e,t,i,n,r){this.id=t;let o=function(e){let t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e);return new Worker(lA?lA.createScriptURL(i):i,{name:e})}}throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);("function"==typeof o.then?0:1)?this.worker=Promise.resolve(o):this.worker=o,this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"==typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then(i=>i.postMessage(e,t))}dispose(){var e;null===(e=this.worker)||void 0===e||e.then(e=>e.terminate()),this.worker=null}}class lO{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++lO.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new lN(e,n,this._label||"anonymous"+n,t,e=>{lp(e),this._webWorkerFailedBeforeError=e,i(e)})}}lO.LAST_WORKER_ID=0;class lL{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function lI(e,t){return(t<<5)-t+e|0}function lw(e,t){t=lI(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function lx(e,t=0,i=e.byteLength,n=0){for(let r=0;re.toString(16).padStart(2,"0")).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class lk{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t,i;let n=e.length;if(0===n)return;let r=this._buff,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(t=s,i=-1,s=0):(t=e.charCodeAt(0),i=0);;){let a=t;if(r6(t)){if(i+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),lM(this._h0)+lM(this._h1)+lM(this._h2)+lM(this._h3)+lM(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,lx(this._buff,this._buffLen),this._buffLen>56&&(this._step(),lx(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e,t,i;let n=lk._bigBlock32,r=this._buffDV;for(let e=0;e<64;e+=4)n.setUint32(e,r.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)n.setUint32(e,lD(n.getUint32(e-12,!1)^n.getUint32(e-32,!1)^n.getUint32(e-56,!1)^n.getUint32(e-64,!1),1),!1);let o=this._h0,s=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let r=0;r<80;r++)r<20?(e=s&a|~s&l,t=1518500249):r<40?(e=s^a^l,t=1859775393):r<60?(e=s&a|s&l|a&l,t=2400959708):(e=s^a^l,t=3395469782),i=lD(o,5)+e+h+t+n.getUint32(4*r,!1)&4294967295,h=l,l=a,a=lD(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}lk._bigBlock32=new DataView(new ArrayBuffer(320));class lP{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new lL(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class lH{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;let[n,r,o]=lH._getElements(e),[s,a,l]=lH._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){let t=e.getElements();if(lH._isStringArray(t)){let e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new lL(e,0,i,n-i+1)]):e<=t?(lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new lL(e,t-e+1,i,0)]):(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}let o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,i,n,o,s,r),l=o[0],h=s[0];if(null!==a)return a;if(!r[0]){let o=this.ComputeDiffRecursive(e,l,i,h,r),s=[];return s=r[0]?[new lL(l+1,t-(l+1)+1,h+1,n-(h+1)+1)]:this.ComputeDiffRecursive(l+1,t,h+1,n,r),this.ConcatenateChanges(o,s)}return[new lL(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,s,a,l,h,u,d,c,f,g,p,m,_){let E=null,v=null,b=new lU,C=t,S=i,y=c[0]-p[0]-n,T=-1073741824,R=this.m_forwardHistory.length-1;do{let t=y+e;t===C||t=0&&(e=(l=this.m_forwardHistory[R])[0],C=1,S=l.length-1)}while(--R>=-1);if(E=b.getReverseChanges(),_[0]){let e=c[0]+1,t=p[0]+1;if(null!==E&&E.length>0){let i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}v=[new lL(e,d-e+1,t,g-t+1)]}else{b=new lU,C=o,S=s,y=c[0]-p[0]-a,T=1073741824,R=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=y+r;e===C||e=h[e+1]?(f=(u=h[e+1]-1)-y-a,u>T&&b.MarkNextChange(),T=u+1,b.AddOriginalElement(u+1,f+1),y=e+1-r):(f=(u=h[e-1])-y-a,u>T&&b.MarkNextChange(),T=u,b.AddModifiedElement(u+1,f+1),y=e-1-r),R>=0&&(r=(h=this.m_reverseHistory[R])[0],C=1,S=h.length-1)}while(--R>=-1);v=b.getChanges()}return this.ConcatenateChanges(E,v)}ComputeRecursionPoint(e,t,i,n,r,o,s){let a=0,l=0,h=0,u=0,d=0,c=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let f=t-e+(n-i),g=f+1,p=new Int32Array(g),m=new Int32Array(g),_=n-i,E=t-e,v=e-i,b=t-n,C=E-_,S=C%2==0;p[_]=e,m[E]=t,s[0]=!1;for(let C=1;C<=f/2+1;C++){let f=0,y=0;h=this.ClipDiagonalBound(_-C,C,_,g),u=this.ClipDiagonalBound(_+C,C,_,g);for(let e=h;e<=u;e+=2){l=(a=e===h||ef+y&&(f=a,y=l),!S&&Math.abs(e-E)<=C-1&&a>=m[e]){if(r[0]=a,o[0]=l,i<=m[e]&&C<=1448)return this.WALKTRACE(_,h,u,v,E,d,c,b,p,m,a,t,r,l,n,o,S,s);return null}}let T=(f-e+(y-i)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,T)){if(s[0]=!0,r[0]=f,o[0]=y,!(T>0)||!(C<=1448))return e++,i++,[new lL(e,t-e+1,i,n-i+1)];break}d=this.ClipDiagonalBound(E-C,C,E,g),c=this.ClipDiagonalBound(E+C,C,E,g);for(let f=d;f<=c;f+=2){l=(a=f===d||f=m[f+1]?m[f+1]-1:m[f-1])-(f-E)-b;let g=a;for(;a>e&&l>i&&this.ElementsAreEqual(a,l);)a--,l--;if(m[f]=a,S&&Math.abs(f-_)<=C&&a<=p[f]){if(r[0]=a,o[0]=l,g>=p[f]&&C<=1448)return this.WALKTRACE(_,h,u,v,E,d,c,b,p,m,a,t,r,l,n,o,S,s);return null}}if(C<=1447){let e=new Int32Array(u-h+2);e[0]=_-h+1,lB.Copy2(p,h,e,1,u-h+1),this.m_forwardHistory.push(e),(e=new Int32Array(c-d+2))[0]=E-d+1,lB.Copy2(m,d,e,1,c-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,h,u,v,E,d,c,b,p,m,a,t,r,l,n,o,S,s)}PrettifyChanges(e){for(let t=0;t0,s=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){let i=e[t],n=0,r=0;if(t>0){let i=e[t-1];n=i.originalStart+i.originalLength,r=i.modifiedStart+i.modifiedLength}let o=i.originalLength>0,s=i.modifiedLength>0,a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){let t=i.originalStart-e,h=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;let h=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],h)){e[t-1]=h[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){let r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(i,n)?1:0;return r+o}ConcatenateChanges(e,t){let i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){let n=Array(e.length+t.length-1);return lB.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],lB.Copy(t,1,n,e.length,t.length-1),n}{let i=Array(e.length+t.length);return lB.Copy(e,0,i,0,e.length),lB.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(lF.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),lF.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),!(e.originalStart+e.originalLength>=t.originalStart)&&!(e.modifiedStart+e.modifiedLength>=t.modifiedStart))return i[0]=null,!1;{let n=e.originalStart,r=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new lL(n,r,o,s),!0}}ClipDiagonalBound(e,t,i,n){if(e>=0&&e255?255:0|e}function lW(e){return e<0?0:e>4294967295?4294967295:0|e}class lG{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=lW(e);let i=this.values,n=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=lW(e),t=lW(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;let r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=lW(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,r=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,e<(o=(r=this.prefixSum[n])-this.values[n]))i=n-1;else if(e>=r)t=n+1;else break;return new lz(n,e-o)}}class lj{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return(this._ensureValid(),0===e)?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();let t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new lz(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,sX.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class l${constructor(e,t,i){let n=new Uint8Array(e*t);for(let r=0,o=e*t;rt&&(t=o),r>i&&(i=r),s>i&&(i=s)}t++,i++;let n=new l$(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let lX=null;function lZ(){return null===lX&&(lX=new lq([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),lX}let lQ=null;class lJ{static _createLink(e,t,i,n,r){let o=r-1;do{let i=t.charCodeAt(o),n=e.get(i);if(2!==n)break;o--}while(o>n);if(n>0){let e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=lZ()){let i=function(){if(null===lQ){lQ=new lY(0);let e=" <>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null}}l0.INSTANCE=new l0;class l1 extends lY{constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(i)||(t[i]=e(i)),t[i])}(e=>new l1(e));class l5{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){let e;if(""===this.searchString)return null;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;let n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=rG(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new sH(t,this.wordSeparators?l2(this.wordSeparators):null,i?this.searchString:null)}}function l4(e,t,i){if(!i)return new sB(e,null);let n=[];for(let e=0,i=t.length;e>0);t[r]>=e?n=r-1:t[r+1]>=e?(i=r,n=r):i=r+1}return i+1}}class l6{static findMatches(e,t,i,n,r){let o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new l8(o.wordSeparators,o.regex),n,r):this._doFindMatchesLineByLine(e,i,o,n,r):[]}static _getMultilineMatchRange(e,t,i,n,r,o){let s,a;let l=0;if(n?(l=n.findLineFeedCountBeforeOffset(r),s=t+r+l):s=t+r,n){let e=n.findLineFeedCountBeforeOffset(r+o.length),t=e-l;a=s+o.length+t}else a=s+o.length;let h=e.getPositionAt(s),u=e.getPositionAt(a);return new rv(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,i,n,r){let o;let s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new l3(a):null,h=[],u=0;for(i.reset(0);(o=i.next(a))&&(h[u++]=l4(this._getMultilineMatchRange(e,s,a,l,o.index,o[0]),o,n),!(u>=r)););return h}static _doFindMatchesLineByLine(e,t,i,n,r){let o=[],s=0;if(t.startLineNumber===t.endLineNumber){let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r),o}let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r);for(let a=t.startLineNumber+1;a=a))););return r}let u=new l8(e.wordSeparators,e.regex);u.reset(0);do if((l=u.next(t))&&(o[r++]=l4(new rv(i,l.index+1+n,i,l.index+1+l[0].length+n),l,s),r>=a))break;while(l);return r}static findNextMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l8(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){let r=new rE(t.lineNumber,1),o=e.getOffsetAt(r),s=e.getLineCount(),a=e.getValueInRange(new rv(r.lineNumber,r.column,s,e.getLineMaxColumn(s)),1),l="\r\n"===e.getEOL()?new l3(a):null;i.reset(t.column-1);let h=i.next(a);return h?l4(this._getMultilineMatchRange(e,o,a,l,h.index,h[0]),h,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new rE(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(i,s,o,t.column,n);if(a)return a;for(let t=1;t<=r;t++){let s=(o+t-1)%r,a=e.getLineContent(s+1),l=this._findFirstMatchInLine(i,a,s+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,r){e.reset(n-1);let o=e.next(t);return o?l4(new rv(i,o.index+1,i,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l8(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){let r=this._doFindMatchesMultiline(e,new rv(1,1,t.lineNumber,t.column),i,n,9990);if(r.length>0)return r[r.length-1];let o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new rE(o,e.getLineMaxColumn(o)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,o,n);if(a)return a;for(let t=1;t<=r;t++){let s=(r+o-t-1)%r,a=e.getLineContent(s+1),l=this._findLastMatchInLine(i,a,s+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let r,o=null;for(e.reset(0);r=e.next(t);)o=l4(new rv(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function l9(e,t,i,n,r){return function(e,t,i,n,r){if(0===n)return!0;let o=t.charCodeAt(n-1);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,r)&&function(e,t,i,n,r){if(n+r===i)return!0;let o=t.charCodeAt(n+r);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n+r-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,r)}class l8{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t;let i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||!(t=this._searchRegex.exec(e)))break;let n=t.index,r=t[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){r7(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}break}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||l9(this._wordSeparators,e,i,n,r))return t}while(t);return null}}class l7{static computeUnicodeHighlights(e,t,i){let n,r;let o=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new he(t),l=a.getCandidateCodePoints();n="allNonBasicAscii"===l?RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):RegExp(`${function(e,t){let i=`[${rV(e.map(e=>String.fromCodePoint(e)).join(""))}]`;return i}(Array.from(l))}`,"g");let h=new l8(null,n),u=[],d=!1,c=0,f=0,g=0;e:for(let t=o;t<=s;t++){let i=e.getLineContent(t),n=i.length;h.reset(0);do if(r=h.next(i)){let e=r.index,o=r.index+r[0].length;if(e>0){let t=i.charCodeAt(e-1);r6(t)&&e--}if(o+1=1e3){d=!0;break e}u.push(new rv(t,e+1,t,o+1))}}while(r)}return{ranges:u,hasMore:d,ambiguousCharacterCount:c,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(e,t){let i=new he(t),n=i.shouldHighlightNonBasicASCII(e,null);switch(n){case 0:return null;case 2:return{kind:1};case 3:{let n=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(n),o=op.getLocales().filter(e=>!op.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class he{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=op.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of om.codePoints)ht(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,r=!1;if(t)for(let e of t){let t=e.codePointAt(0),i=os(e);n=n||i,i||this.ambiguousCharacters.isAmbiguous(t)||om.isInvisibleCharacter(t)||(r=!0)}return!n&&r?0:this.options.invisibleCharacters&&!ht(e)&&om.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function ht(e){return" "===e||"\n"===e||" "===e}class hi{static fromRange(e){return new hi(e.startLineNumber,e.endLineNumber)}static subtract(e,t){return t?e.startLineNumber=s.startLineNumber?o=new hi(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(i.push(o),o=s)}return null!==o&&i.push(o),i}static ofLength(e,t){return new hi(e,e+t)}static deserialize(e){return new hi(e[0],e[1])}constructor(e,t){if(e>t)throw new nt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new hr(this.modifiedRange,this.originalRange,null===(e=this.innerChanges)||void 0===e?void 0:e.map(e=>e.flip()))}}class ho{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ho(this.modifiedRange,this.originalRange)}}class hs{constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new hs(this.modified,this.original)}}class ha{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new ha(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}class hl{computeDiff(e,t,i){var n;let r=new hg(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}),o=r.computeDiff(),s=[],a=null;for(let e of o.changes){let t,i;t=0===e.originalEndLineNumber?new hi(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new hi(e.originalStartLineNumber,e.originalEndLineNumber+1),i=0===e.modifiedEndLineNumber?new hi(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new hi(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new hr(t,i,null===(n=e.charChanges)||void 0===n?void 0:n.map(e=>new ho(new rv(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new rv(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modifiedRange.endLineNumberExclusive===r.modifiedRange.startLineNumber||a.originalRange.endLineNumberExclusive===r.originalRange.startLineNumber)&&(r=new hr(a.originalRange.join(r.originalRange),a.modifiedRange.join(r.modifiedRange),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),s.pop()),s.push(r),a=r}return oY(()=>o$(s,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class hc{constructor(e,t,i,n,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let n=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),h=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new hc(n,r,o,s,a,l,h,u)}}class hf{constructor(e,t,i,n,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=r}static createFromDiffResult(e,t,i,n,r,o,s){let a,l,h,u,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=n.getStartLineNumber(t.modifiedStart)-1,u=0):(h=n.getStartLineNumber(t.modifiedStart),u=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){let o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=hh(o,a,r,!0).changes;s&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let n=1,r=e.length;n1&&s>1;){let n=e.charCodeAt(i-2),r=t.charCodeAt(s-2);if(n!==r)break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(n,r+1,1,i,o+1,1,s)}{let i=hm(e,1),s=hm(t,1),a=e.length+1,l=t.length+1;for(;i!0;let t=Date.now();return()=>Date.now()-tt))return new hE(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new nt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new hE(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new hb(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new hb(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class hC{isValid(){return!0}}hC.instance=new hC;class hS{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new nt("timeout must be positive")}isValid(){let e=Date.now()-this.startTime0&&l>0&&3===o.get(a-1,l-1)&&(h+=s.get(a-1,l-1)),h+=n?n(a,l):1):h=-1;let c=Math.max(u,d,h);if(c===h){let e=a>0&&l>0?s.get(a-1,l-1):0;s.set(a,l,e+1),o.set(a,l,3)}else c===u?(s.set(a,l,0),o.set(a,l,1)):c===d&&(s.set(a,l,0),o.set(a,l,2));r.set(a,l,c)}let a=[],l=e.length,h=t.length;function u(e,t){(e+1!==l||t+1!==h)&&a.push(new hb(new hE(e+1,l),new hE(t+1,h))),l=e,h=t}let d=e.length-1,c=t.length-1;for(;d>=0&&c>=0;)3===o.get(d,c)?(u(d,c),d--,c--):1===o.get(d,c)?d--:c--;return u(-1,-1),a.reverse(),new hv(a,!1)}}function hR(e,t,i){let n=i;return n=function(e,t,i){if(0===i.length)return i;let n=[];n.push(i[0]);for(let r=1;r0&&(s=s.delta(r))}r.push(s)}return n.length>0&&r.push(n[n.length-1]),r}(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,o=i[n],s=n+1=n.start&&e.seq2Range.start-o>=r.start&&i.getElement(e.seq2Range.start-o)===i.getElement(e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let s=0;for(;e.seq1Range.start+sl&&(l=h,a=n)}return e.delta(a)}class hN{compute(e,t,i=hC.instance){if(0===e.length||0===t.length)return hv.trivial(e,t);function n(i,n){for(;ie.length||d>t.length)continue;let c=n(u,d);o.set(a,c);let f=u===i?s.get(a+1):s.get(a-1);if(s.set(a,c!==u?new hO(f,u,d,c-u):f),o.get(a)===e.length&&o.get(a)-a===t.length)break t}}let l=s.get(a),h=[],u=e.length,d=t.length;for(;;){let e=l?l.x+l.length:0,t=l?l.y+l.length:0;if((e!==u||t!==d)&&h.push(new hb(new hE(e,u),new hE(t,d))),!l)break;u=l.x,d=l.y,l=l.prev}return h.reverse(),new hv(h,!1)}}class hO{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class hL{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class hI{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class hw{constructor(){this.dynamicProgrammingDiffing=new hT,this.myersDiffingAlgorithm=new hN}computeDiff(e,t,i){if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return{changes:[new hr(new hi(1,e.length+1),new hi(1,t.length+1),[new ho(new rv(1,1,e.length,e[0].length+1),new rv(1,1,t.length,t[0].length+1))])],hitTimeout:!1,moves:[]};let n=0===i.maxComputationTimeMs?hC.instance:new hS(i.maxComputationTimeMs),r=!i.ignoreTrimWhitespace,o=new Map;function s(e){let t=o.get(e);return void 0===t&&(t=o.size,o.set(e,t)),t}let a=e.map(e=>s(e.trim())),l=t.map(e=>s(e.trim())),h=new hx(a,e),u=new hx(l,t),d=h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,n,(i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99):this.myersDiffingAlgorithm.compute(h,u),c=d.diffs,f=d.hitTimeout;c=hR(h,u,c);let g=[],p=i=>{if(r)for(let o=0;oi.seq1Range.start-m==i.seq2Range.start-_);let o=i.seq1Range.start-m;p(o),m=i.seq1Range.endExclusive,_=i.seq2Range.endExclusive;let s=this.refineDiff(e,t,i,n,r);for(let e of(s.hitTimeout&&(f=!0),s.mappings))g.push(e)}p(e.length-m);let E=hD(g,e,t),v=[];if(i.computeMoves){let i=E.filter(e=>e.modifiedRange.isEmpty&&e.originalRange.length>=3).map(t=>new hV(t.originalRange,e)),o=new Set(E.filter(e=>e.originalRange.isEmpty&&e.modifiedRange.length>=3).map(e=>new hV(e.modifiedRange,t)));for(let s of i){let i,a=-1;for(let e of o){let t=s.computeSimilarity(e);t>a&&(a=t,i=e)}if(a>.9&&i){let a=this.refineDiff(e,t,new hb(new hE(s.range.startLineNumber-1,s.range.endLineNumberExclusive-1),new hE(i.range.startLineNumber-1,i.range.endLineNumberExclusive-1)),n,r),l=hD(a.mappings,e,t,!0);o.delete(i),v.push(new ha(new hs(s.range,i.range),l))}}}return oY(()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let i=t[e.lineNumber-1];return!(e.column<1)&&!(e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1)&&!(e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1)&&!(e.endLineNumberExclusive>t.length+1)}for(let r of E){if(!r.innerChanges)return!1;for(let n of r.innerChanges){let r=i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e);if(!r)return!1}if(!n(r.modifiedRange,t)||!n(r.originalRange,e))return!1}return!0}),new hn(E,v,f)}refineDiff(e,t,i,n,r){let o=new hk(e,i.seq1Range,r),s=new hk(t,i.seq2Range,r),a=o.length+s.length<500?this.dynamicProgrammingDiffing.compute(o,s,n):this.myersDiffingAlgorithm.compute(o,s,n),l=a.diffs;l=hR(o,s,l),l=function(e,t,i){let n=[];for(let e of i){let t=n[n.length-1];if(!t){n.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?n[n.length-1]=new hb(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):n.push(e)}return n}(0,0,l=function(e,t,i){let n;let r=[];function o(){if(!n)return;let e=n.s1Range.length-n.deleted;n.s2Range.length,n.added,Math.max(n.deleted,n.added)+(n.count-1)>e&&r.push(new hb(n.s1Range,n.s2Range)),n=void 0}for(let r of i){function s(e,t){var i,s,a,l;if(!n||!n.s1Range.containsRange(e)||!n.s2Range.containsRange(t)){if(n&&!(n.s1Range.endExclusive0||t.length>0;){let n;let r=e[0],o=t[0];n=r&&(!o||r.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=n.seq1Range.start?i[i.length-1]=i[i.length-1].join(n):i.push(n)}return i}(i,r);return a}(o,s,l)),l=function(e,t,i){let n,r=i;if(0===r.length)return r;let o=0;do{n=!1;let i=[r[0]];for(let o=1;o5||r.length>500)return!1;let l=e.getText(r).trim();if(l.length>20||l.split(/\r\n|\r|\n/).length>1)return!1;let h=e.countLinesIn(i.seq1Range),u=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),c=i.seq2Range.length,f=e.countLinesIn(n.seq1Range),g=n.seq1Range.length,p=t.countLinesIn(n.seq2Range),m=n.seq2Range.length;function _(e){return Math.min(e,130)}return Math.pow(Math.pow(_(40*h+u),1.5)+Math.pow(_(40*d+c),1.5),1.5)+Math.pow(Math.pow(_(40*f+g),1.5)+Math.pow(_(40*p+m),1.5),1.5)>74184.96480721243}(a,s);l?(n=!0,i[i.length-1]=i[i.length-1].join(s)):i.push(s)}r=i}while(o++<10&&n);return r}(o,s,l);let h=l.map(e=>new ho(o.translateRange(e.seq1Range),s.translateRange(e.seq2Range)));return{mappings:h,hitTimeout:a.hitTimeout}}}function hD(e,t,i,n=!1){let r=[];for(let n of function*(e,t){let i,n;for(let r of e)void 0!==n&&t(n,r)?i.push(r):(i&&(yield i),i=[r]),n=r;i&&(yield i)}(e.map(e=>(function(e,t,i){let n=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(n=1);let o=new hi(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+r),s=new hi(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+r);return new hr(o,s,[e])})(e,t,i)),(e,t)=>e.originalRange.overlapOrTouch(t.originalRange)||e.modifiedRange.overlapOrTouch(t.modifiedRange))){let e=n[0],t=n[n.length-1];r.push(new hr(e.originalRange.join(t.originalRange),e.modifiedRange.join(t.modifiedRange),n.map(e=>e.innerChanges[0])))}return oY(()=>(!!n||!(r.length>0)||r[0].originalRange.startLineNumber===r[0].modifiedRange.startLineNumber)&&o$(r,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive0&&t.endExclusive>=e.length&&(t=new hE(t.start-1,t.endExclusive),n=!0),this.lineRange=t;for(let t=this.lineRange.start;tString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=hB(e>0?this.elements[e-1]:-1),i=hB(ee?i=n:t=n+1}let n=0===t?0:this.firstCharOffsetByLineMinusOne[t-1];return new rE(this.lineRange.start+t+1,e-n+1+this.offsetByLine[t])}translateRange(e){return rv.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!hP(this.elements[e]))return;let t=e;for(;t>0&&hP(this.elements[t-1]);)t--;let i=e;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}let hF={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function hB(e){if(10===e)return 7;if(13===e)return 6;if(32===e||9===e)return 5;if(e>=97&&e<=122)return 0;if(e>=65&&e<=90)return 1;if(e>=48&&e<=57)return 2;if(-1===e)return 3;else return 4}let hU=new Map;function hH(e){let t=hU.get(e);return void 0===t&&(t=hU.size,hU.set(e,t)),t}class hV{constructor(e,t){this.range=e,this.lines=t,this.histogram=[];let i=0;for(let n=e.startLineNumber-1;nnew hl,getAdvanced:()=>new hw};function hG(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}class hj{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class hz{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.l=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,r=e.a,o=Math.max(t,i,n),s=Math.min(t,i,n),a=0,l=0,h=(s+o)/2,u=o-s;if(u>0){switch(l=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:a=(i-n)/u+(i1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n;let r=e.h/360,{s:o,l:s,a}=e;if(0===o)t=i=n=s;else{let e=s<.5?s*(1+o):s+o-s*o,a=2*s-e;t=hz._hue2rgb(a,e,r+1/3),i=hz._hue2rgb(a,e,r),n=hz._hue2rgb(a,e,r-1/3)}return new hj(Math.round(255*t),Math.round(255*i),Math.round(255*n),a)}}class hK{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.v=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t;let i=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(i,n,r),s=Math.min(i,n,r),a=o-s,l=0===o?0:a/o;return t=0===a?0:o===i?((n-r)/a%6+6)%6:o===n?(r-i)/a+2:(i-n)/a+4,new hK(Math.round(60*t),l,o,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:r}=e,o=n*i,s=o*(1-Math.abs(t/60%2-1)),a=n-o,[l,h,u]=[0,0,0];return t<60?(l=o,h=s):t<120?(l=s,h=o):t<180?(h=o,u=s):t<240?(h=s,u=o):t<300?(l=s,u=o):t<=360&&(l=o,u=s),l=Math.round((l+a)*255),h=Math.round((h+a)*255),u=Math.round((u+a)*255),new hj(l,h,u,r)}}class hY{static fromHex(e){return hY.Format.CSS.parseHex(e)||hY.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:hz.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:hK.fromRGBA(this.rgba)}constructor(e){if(e){if(e instanceof hj)this.rgba=e;else if(e instanceof hz)this._hsla=e,this.rgba=hz.toRGBA(e);else if(e instanceof hK)this._hsva=e,this.rgba=hK.toRGBA(e);else throw Error("Invalid color ctor argument")}else throw Error("Color needs a value")}equals(e){return!!e&&hj.equals(this.rgba,e.rgba)&&hz.equals(this.hsla,e.hsla)&&hK.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=hY._relativeLuminanceForComponent(this.rgba.r),t=hY._relativeLuminanceForComponent(this.rgba.g),i=hY._relativeLuminanceForComponent(this.rgba.b);return hG(.2126*e+.7152*t+.0722*i,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){let e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return tthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{let e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class h2{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new h1(rl.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let i=this._models[e];i.onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return h0(this,void 0,void 0,function*(){let n=this._getModel(e);return n?l7.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e),o=this._getModel(t);return r&&o?h2.computeDiff(r,o,i,n):null})}static computeDiff(e,t,i,n){let r="advanced"===n?hW.getAdvanced():hW.getLegacy(),o=e.getLinesContent(),s=t.getLinesContent(),a=r.computeDiff(o,s,i),l=!(a.changes.length>0)&&this._modelsAreIdentical(e,t);function h(e){return e.map(e=>{var t;return[e.originalRange.startLineNumber,e.originalRange.endLineNumberExclusive,e.modifiedRange.startLineNumber,e.modifiedRange.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])]})}return{identical:l,quitEarly:a.hitTimeout,changes:h(a.changes),moves:a.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,h(e.changes)])}}static _modelsAreIdentical(e,t){let i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let n=1;n<=i;n++){let i=e.getLineContent(n),r=t.getLineContent(n);if(i!==r)return!1}return!0}computeMoreMinimalEdits(e,t,i){return h0(this,void 0,void 0,function*(){let n;let r=this._getModel(e);if(!r)return t;let o=[];for(let{range:e,text:a,eol:l}of t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return rv.compareRangesUsingStarts(e.range,t.range);let i=e.range?0:1,n=t.range?0:1;return i-n})){var s;if("number"==typeof l&&(n=l),rv.isEmpty(e)&&!a)continue;let t=r.getValueInRange(e);if(t===(a=a.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(a.length,t.length)>h2._diffLimit){o.push({range:e,text:a});continue}let h=(s=a,new lH(new lP(t),new lP(s)).ComputeDiff(i).changes),u=r.offsetAt(rv.lift(e).getStartPosition());for(let e of h){let t=r.positionAt(u+e.originalStart),i=r.positionAt(u+e.originalStart+e.originalLength),n={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};r.getValueInRange(n.range)!==n.text&&o.push(n)}}return"number"==typeof n&&o.push({eol:n,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getLineCount&&"function"==typeof t.getLineContent?lJ.computeLinks(t):[]:null})}computeDefaultDocumentColors(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getValue&&"function"==typeof t.positionAt?function(e){let t=[],i=hJ(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(let n of i){let i;let r=n.filter(e=>void 0!==e),o=r[1],s=r[2];if(s){if("rgb"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;i=hZ(hX(e,n),hJ(s,t),!1)}else if("rgba"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hZ(hX(e,n),hJ(s,t),!0)}else if("hsl"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;i=hQ(hX(e,n),hJ(s,t),!1)}else if("hsla"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hQ(hX(e,n),hJ(s,t),!0)}else"#"===o&&(i=function(e,t){if(!e)return;let i=hY.Format.CSS.parseHex(t);if(i)return{range:e,color:hq(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}(hX(e,n),o+s));i&&t.push(i)}}return t}(t):[]:null})}textualSuggest(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=new nE,o=new RegExp(i,n),s=new Set;i:for(let i of e){let e=this._getModel(i);if(e){for(let i of e.words(o))if(i!==t&&isNaN(Number(i))&&(s.add(i),s.size>h2._suggestionsLimit))break i}}return{words:Array.from(s),duration:r.elapsed()}})}computeWordRanges(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e);if(!r)return Object.create(null);let o=new RegExp(i,n),s=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t));return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory({host:n,getMirrorModels:()=>this._getModels()},t),Promise.resolve((0,oq.$E)(this._foreignModule))):Promise.reject(Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}h2._diffLimit=1e5,h2._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=rk());let h5=oG("textResourceConfigurationService"),h4=oG("textResourcePropertiesService"),h3=oG("logService");(eS=t0||(t0={}))[eS.Off=0]="Off",eS[eS.Trace=1]="Trace",eS[eS.Debug=2]="Debug",eS[eS.Info=3]="Info",eS[eS.Warning=4]="Warning",eS[eS.Error=5]="Error";let h6=t0.Info;class h9 extends nc{constructor(){super(...arguments),this.level=h6,this._onDidChangeLogLevel=this._register(new ny),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==t0.Off&&this.level<=e}}class h8 extends h9{constructor(e=h6,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(t0.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(t0.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(t0.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(t0.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(t0.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class h7 extends h9{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(let t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(let i of this.loggers)i.trace(e,...t)}debug(e,...t){for(let i of this.loggers)i.debug(e,...t)}info(e,...t){for(let i of this.loggers)i.info(e,...t)}warn(e,...t){for(let i of this.loggers)i.warn(e,...t)}error(e,...t){for(let i of this.loggers)i.error(e,...t)}dispose(){for(let e of this.loggers)e.dispose()}}new sA("logLevel",function(e){switch(e){case t0.Trace:return"trace";case t0.Debug:return"debug";case t0.Info:return"info";case t0.Warning:return"warn";case t0.Error:return"error";case t0.Off:return"off"}}(t0.Info));let ue=oG("ILanguageFeaturesService");var ut=function(e,t){return function(i,n){t(i,n,e)}},ui=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function un(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let ur=class extends nc{constructor(e,t,i,n,r){super(),this._modelService=e,this._workerManager=this._register(new us(this._modelService,n)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>un(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(r.completionProvider.register("*",new uo(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return un(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return ui(this,void 0,void 0,function*(){let r=yield this._workerManager.withWorker().then(r=>r.computeDiff(e,t,i,n));if(!r)return null;let o={identical:r.identical,quitEarly:r.quitEarly,changes:s(r.changes),moves:r.moves.map(e=>new ha(new hs(new hi(e[0],e[1]),new hi(e[2],e[3])),s(e[4])))};return o;function s(e){return e.map(e=>{var t;return new hr(new hi(e[0],e[1]),new hi(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map(e=>new ho(new rv(e[0],e[1],e[2],e[3]),new rv(e[4],e[5],e[6],e[7]))))})}})}computeMoreMinimalEdits(e,t,i=!1){if(!(0,sX.Of)(t))return Promise.resolve(void 0);{if(!un(this._modelService,e))return Promise.resolve(t);let n=nE.create(),r=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([r,ls(1e3).then(()=>t)])}}canNavigateValueSet(e){return un(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return un(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};ur=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([ut(0,a3),ut(1,h5),ut(2,h3),ut(3,aj),ut(4,ue)],ur);class uo{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return ui(this,void 0,void 0,function*(){let i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;let n=[];if("currentDocument"===i.wordBasedSuggestionsMode)un(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())un(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestionsMode||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),s=o?new rv(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):rv.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),h=yield l.textualSuggest(n,null==o?void 0:o.word,r);if(h)return{duration:h.duration,suggestions:h.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:s}}))}})}}class us extends nc{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime();let i=this._register(new lh);i.cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;let e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;let e=new Date().getTime()-this._lastWorkerUsedTime;e>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new uu(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class ua extends nc{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){let e=new lh;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)nl(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(let i of e){let e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime){let n=e-this._syncedModelsLastUsedTime[i];n>6e4&&t.push(i)}for(let e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let r=new nd;r.add(i.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),r.add(i.onWillDispose(()=>{this._stopModelSync(n)})),r.add(nu(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=r}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],nl(t)}}class ul{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class uh{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class uu extends nc{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new lO(i),this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new lS(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new uh(this)))}catch(e){lp(e),this._worker=new ul(new h2(new uh(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(lp(e),this._worker=new ul(new h2(new uh(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new ua(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return ui(this,void 0,void 0,function*(){return this._disposed?Promise.reject(function(){let e=Error(i4);return e.name=e.message,e}()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(r=>r.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}textualSuggest(e,t,i){return ui(this,void 0,void 0,function*(){let n=yield this._withSyncedResources(e),r=i.source,o=rj(i);return n.textualSuggest(e.map(e=>e.toString()),t,r,o)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{let n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);let r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=r.source,s=rj(r);return i.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{let r=this._modelService.getModel(e);if(!r)return null;let o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),s=o.source,a=rj(o);return n.navigateValueSet(e.toString(),t,i,s,a)})}dispose(){super.dispose(),this._disposed=!0}}class ud extends uu{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?(0,oq.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r={};for(let e of t)r[e]=n(e,i);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}class uc{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t=this.getForeground(e),i="mtk"+t,n=this.getFontStyle(e);return 1&n&&(i+=" mtki"),2&n&&(i+=" mtkb"),4&n&&(i+=" mtku"),8&n&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),r=`color: ${t[i]};`;1&n&&(r+="font-style: italic;"),2&n&&(r+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(r+=`text-decoration:${o};`),r}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}class uf{static createEmpty(e,t){let i=uf.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new uf(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof uf&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let n=t<<1,r=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){let t=this._tokens[(e<<1)+1];return t}getLanguageId(e){let t=this._tokens[(e<<1)+1],i=uc.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){let t=this._tokens[(e<<1)+1];return uc.getTokenType(t)}getForeground(e){let t=this._tokens[(e<<1)+1];return uc.getForeground(t)}getClassName(e){let t=this._tokens[(e<<1)+1];return uc.getClassNameFromMetadata(t)}getInlineStyle(e,t){let i=this._tokens[(e<<1)+1];return uc.getInlineStyleFromMetadata(i,t)}getPresentation(e){let t=this._tokens[(e<<1)+1];return uc.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return uf.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new ug(this,e,t,i)}static convertToEndOffset(e,t){let i=e.length>>>1,n=i-1;for(let t=0;t>>1)-1;for(;it&&(n=r)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="",r=[],o=0;for(;;){let s=to){n+=this._text.substring(o,a.offset);let e=this._tokens[(t<<1)+1];r.push(n.length,e),o=a.offset}n+=a.text,r.push(n.length,a.tokenMetadata),i++}else break}return new uf(new Uint32Array(r),n,this._languageIdCodec)}}uf.defaultTokenMetadata=33587200;class ug{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof ug&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){let t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class up{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){let i=e.length,n=t.length;if(i!==n)return!1;for(let n=0;n=r||(s[a++]=new up(Math.max(1,t.startColumn-n+1),Math.min(o+1,t.endColumn-n+1),t.className,t.type));return s}static filter(e,t,i,n){if(0===e.length)return[];let r=[],o=0;for(let s=0,a=e.length;st||l.isEmpty()&&(0===a.type||3===a.type))continue;let h=l.startLineNumber===t?l.startColumn:i,u=l.endLineNumber===t?l.endColumn:n;r[o++]=new up(h,u,a.inlineClassName,a.type)}return r}static _typeCompare(e,t){let i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;let i=up._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class uE{static normalize(e,t){if(0===t.length)return[];let i=[],n=new u_,r=0;for(let o=0,s=t.length;o1){let t=e.charCodeAt(a-2);r6(t)&&a--}if(l>1){let t=e.charCodeAt(l-2);r6(t)&&l--}let d=a-1,c=l-2;r=n.consumeLowerThan(d,r,i),0===n.count&&(r=d),n.insert(c,h,u)}return n.consumeLowerThan(1073741824,r,i),i}}class uv{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class ub{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class uC{constructor(e,t,i,n,r,o,s,a,l,h,u,d,c,f,g,p,m,_,E){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l.sort(up.compare),this.tabSize=h,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=g,this.renderWhitespace="all"===p?4:"boundary"===p?1:"selection"===p?2:"trailing"===p?3:0,this.renderControlCharacters=m,this.fontLigatures=_,this.selectionsOnLine=E&&E.sort((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){this._data[e-1]=(t<<16|i<<0)>>>0,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){let t=this.charOffsetToPartData(e-1),i=uy.getPartIndex(t),n=uy.getCharIndex(t);return new uS(i,n)}getColumn(e,t){let i=this.partDataToCharOffset(e.partIndex,t,e.charIndex);return i+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;let n=(e<<16|i<<0)>>>0,r=0,o=this.length-1;for(;r+1>>1,t=this._data[e];if(t===n)return e;t>n?o=e:r=e}if(r===o)return r;let s=this._data[r],a=this._data[o];if(s===n)return r;if(a===n)return o;let l=uy.getPartIndex(s),h=uy.getCharIndex(s),u=uy.getPartIndex(a);return i-h<=(l!==u?t:uy.getCharIndex(a))-i?r:o}}class uT{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function uR(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,r=0;for(let o of e.lineDecorations)(1===o.type||2===o.type)&&(t.appendString(''),1===o.type&&(r|=1,i++),2===o.type&&(r|=2,n++));t.appendString("");let o=new uy(1,i+n);return o.setColumnInfo(1,i,0,0),new uT(o,!1,r)}return t.appendString(""),new uT(new uy(0,0),!1,0)}return function(e,t){let i=e.fontIsMonospace,n=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,l=e.overflowingCharCount,h=e.parts,u=e.fauxIndentLength,d=e.tabSize,c=e.startVisibleColumn,f=e.containsRTL,g=e.spaceWidth,p=e.renderSpaceCharCode,m=e.renderWhitespace,_=e.renderControlCharacters,E=new uy(s+1,h.length),v=!1,b=0,C=c,S=0,y=0,T=0;f?t.appendString(''):t.appendString("");for(let e=0,a=h.length;e=u&&(t+=r)}}for(A&&(t.appendString(' style="width:'),t.appendString(String(g*i)),t.appendString('px"')),t.appendASCIICharCode(62);b1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=r;e++)t.appendCharCode(160)}else i=2,r=1,t.appendCharCode(p),t.appendCharCode(8204);S+=i,y+=r,b>=u&&(C+=r)}}else for(t.appendASCIICharCode(62);b=u&&(C+=r)}N?T++:T=0,b>=s&&!v&&a.isPseudoAfter()&&(v=!0,E.setColumnInfo(b+1,e,S,y)),t.appendString("")}return v||E.setColumnInfo(s+1,h.length-1,S,y),a&&(t.appendString(''),t.appendString(rN.NC("showMore","Show more ({0})",l<1024?rN.NC("overflow.chars","{0} chars",l):l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`)),t.appendString("")),t.appendString(""),new uT(E,f,r)}(function(e){let t,i,n;let r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(o[s++]=new uv(n,"",0,!1));let a=n;for(let l=0,h=i.getCount();l=r){let i=!!t&&or(e.substring(a,r));o[s++]=new uv(r,u,0,i);break}let d=!!t&&or(e.substring(a,h));o[s++]=new uv(h,u,0,d),a=h}return o}(r,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(o=function(e,t){let i=[],n=new uv(0,"",0,!1),r=0;for(let o of t){let t=o.endIndex;for(;rn.endIndex&&(n=new uv(r,o.type,o.metadata,o.containsRTL),i.push(n)),n=new uv(r+1,"mtkcontrol",o.metadata,!1),i.push(n))}r>n.endIndex&&(n=new uv(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(r,o)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(o=function(e,t,i,n){let r;let o=e.continuesWithWrappedLine,s=e.fauxIndentLength,a=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,u=e.selectionsOnLine,d=1===e.renderWhitespace,c=3===e.renderWhitespace,f=e.renderSpaceWidth!==e.spaceWidth,g=[],p=0,m=0,_=n[0].type,E=n[m].containsRTL,v=n[m].endIndex,b=n.length,C=!1,S=rK(t);-1===S?(C=!0,S=i,r=i):r=r$(t);let y=!1,T=0,R=u&&u[T],A=l%a;for(let e=s;e=R.endOffset&&(T++,R=u&&u[T]),er)o=!0;else if(9===l)o=!0;else if(32===l){if(d){if(y)o=!0;else{let n=e+1e),o&&c&&(o=C||e>r),o&&E&&e>=S&&e<=r&&(o=!1),y){if(!o||!h&&A>=a){if(f){let t=p>0?g[p-1].endIndex:s;for(let i=t+1;i<=e;i++)g[p++]=new uv(i,"mtkw",1,!1)}else g[p++]=new uv(e,"mtkw",1,!1);A%=a}}else(e===v||o&&e>s)&&(g[p++]=new uv(e,_,0,E),A%=a);for(9===l?A=a:ol(l)?A+=2:A++,y=o;e===v;)if(++m0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(N=!0)}else N=!0}if(N){if(f){let e=p>0?g[p-1].endIndex:s;for(let t=e+1;t<=i;t++)g[p++]=new uv(t,"mtkw",1,!1)}else g[p++]=new uv(i,"mtkw",1,!1)}else g[p++]=new uv(i,_,0,E);return g}(e,r,n,o));let s=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;th&&(h=e.startOffset,a[l++]=new uv(h,u,d,c)),e.endOffset+1<=n)h=e.endOffset+1,a[l++]=new uv(h,u+" "+e.className,d|e.metadata,c),s++;else{h=n,a[l++]=new uv(h,u+" "+e.className,d|e.metadata,c);break}}n>h&&(h=n,a[l++]=new uv(h,u,d,c))}let u=i[i.length-1].endIndex;if(s=50&&(r[o++]=new uv(h+1,t,i,l),u=h+1,h=-1);u!==a&&(r[o++]=new uv(a,t,i,l))}else r[o++]=s;n=a}else for(let e=0,i=t.length;e50){let e=i.type,t=i.metadata,l=i.containsRTL,h=Math.ceil(a/50);for(let i=1;i=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}class uI{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class uw{constructor(e,t){this.tabSize=e,this.data=t}}class uD{constructor(e,t,i,n,r,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=r,this.tokens=o,this.inlineDecorations=s}}class ux{constructor(e,t,i,n,r,o,s,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=ux.isBasicASCII(i,o),this.containsRTL=ux.containsRTL(i,this.isBasicASCII,r),this.tokens=s,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||os(e)}static containsRTL(e,t,i){return!t&&!!i&&or(e)}}class uM{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class uk{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new uM(new rv(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class uP{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class uF{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function uB(e){return"string"==typeof e}function uU(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function uH(e){return e.replace(/[&<>'"_]/g,"-")}function uV(e,t){return Error(`${e.languageId}: ${t}`)}function uW(e,t,i,n,r){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,l,h,u,d,c,f){return a?"$":l?uU(e,i):h&&h0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}class uj{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uz(e,t);let i=uz.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new uz(e,t),this._entries[i]=n),n}}uj._INSTANCE=new uj(5);class uz{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uz._equals(this,e)}push(e){return uj.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return uj.create(this.parent,e)}}class uK{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){let e=this.state.clone();return e===this.state?this:new uK(this.languageId,this.state)}}class uY{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new u$(e,t);let i=uz.getStackElementId(e),n=this._entries[i];return n||(n=new u$(e,null),this._entries[i]=n),n}}uY._INSTANCE=new uY(5);class u${constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){let e=this.embeddedLanguageData?this.embeddedLanguageData.clone():null;return e===this.embeddedLanguageData?this:uY.create(this.stack,this.embeddedLanguageData)}equals(e){return!!(e instanceof u$&&this.stack.equals(e.stack))&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class uq{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new rO(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let r=i.languageId,o=i.state,s=rx.get(r);if(!s)return this.enterLanguage(r),this.emit(n,""),o;let a=s.tokenize(e,t,o);if(0!==n)for(let e of a.tokens)this._tokens.push(new rO(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new rL(this._tokens,e)}}class uX{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,r=t.length,o=null!==i?i.length:0;if(0===n&&0===r&&0===o)return new Uint32Array(0);if(0===n&&0===r)return i;if(0===r&&0===o)return e;let s=new Uint32Array(n+r+o);null!==e&&s.set(e);for(let e=0;e{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let t=[];for(let i in this._embeddedLanguages){let n=rx.get(i);if(n){if(n instanceof e){let e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}continue}rx.isResolved(i)||t.push(rx.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>void 0)}}getInitialState(){let e=uj.create(null,this._lexer.start);return uY.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a5(this._languageId,i);let n=new uq,r=this._tokenize(e,t,i,n);return n.finalize(r)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a4(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new uX(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,i,n);return n.finalize(r)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=uG(this._lexer,t.stack.state)))throw uV(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,r=!1;for(let t of i){if(uB(t.action)||"@pop"!==t.action.nextEmbedded)continue;r=!0;let i=t.regex,o=t.regex.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(i);-1!==s&&(0===s||!t.matchOnlyAtLineStart)&&(-1===n||s0&&r.nestedLanguageTokenize(s,!1,i.embeddedLanguageData,n);let a=e.substring(o);return this._myTokenize(a,t,i,n+o,r)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,r){r.enterLanguage(this._languageId);let o=e.length,s=t&&this._lexer.includeLF?e+"\n":e,a=s.length,l=i.embeddedLanguageData,h=i.stack,u=0,d=null,c=!0;for(;c||u=a)break;c=!1;let e=this._lexer.tokenizer[p];if(!e&&!(e=uG(this._lexer,p)))throw uV(this._lexer,"tokenizer state is not defined: "+p);let t=s.substr(u);for(let i of e)if((0===u||!i.matchOnlyAtLineStart)&&(m=t.match(i.regex))){_=m[0],E=i.action;break}}if(m||(m=[""],_=""),E||(u=this._lexer.maxStack)throw uV(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(p)}else if("@pop"===E.next){if(h.depth<=1)throw uV(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));h=h.pop()}else if("@popall"===E.next)h=h.popall();else{let e=uW(this._lexer,E.next,_,m,p);if("@"===e[0]&&(e=e.substr(1)),uG(this._lexer,e))h=h.push(e);else throw uV(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(v))}}E.log&&"string"==typeof E.log&&console.log(`${this._lexer.languageId}: ${this._lexer.languageId+": "+uW(this._lexer,E.log,_,m,p)}`)}if(null===C)throw uV(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));let S=i=>{let o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,s=this._getNestedEmbeddedLanguageData(o);if(!(u0)throw uV(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(m.length!==C.length+1)throw uV(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));let e=0;for(let t=1;t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([function(e,t){al(e,t,4)}],uZ);let uQ=lR("standaloneColorizer",{createHTML:e=>e});class uJ{static colorizeElement(e,t,i,n){n=n||{};let r=n.theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();let s=t.getLanguageIdByMimeType(o)||o;e.setTheme(r);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+r,this.colorize(t,a||"",s,n).then(e=>{var t;let n=null!==(t=null==uQ?void 0:uQ.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n},e=>console.error(e))}static colorize(e,t,i,n){var r,o,s,a;return r=this,o=void 0,s=void 0,a=function*(){var r;let o=e.languageIdCodec,s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),od(t)&&(t=t.substr(1));let a=rz(t);if(!e.isRegisteredLanguageId(i))return u0(a,s,o);let l=yield rx.getOrCreate(i);return l?(r=s,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let r=[],o=i.getInitialState();for(let s=0,a=e.length;s"),o=l.endState}return r.join("")}(a,r,l,o);if(l instanceof uZ){let e=l.getLoadStatus();if(!1===e.loaded){e.promise.then(i,t);return}}e(n)};i()})):u0(a,s,o)},new(s||(s=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(i,n)}l((a=a.apply(r,o||[])).next())})}static colorizeLine(e,t,i,n,r=4){let o=ux.isBasicASCII(e,t),s=ux.containsRTL(e,o,i),a=uN(new uC(!1,!0,e,!1,o,s,0,n,[],r,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let r=e.tokenization.getLineTokens(t),o=r.inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function u0(e,t,i){let n=[],r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let o=0,s=e.length;o")}return n.join("")}let u1={clipboard:{writeText:nz.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:nz.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:nz.tY||oL?0:navigator.keyboard||oA?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function u2(e,t){if("number"==typeof e){if(0===e)return null;let i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new u3(0!==n?[u5(i,t),u5(n,t)]:[u5(i,t)])}{let i=[];for(let n=0;n1?i-1:0),r=1;r/gm),dj=dc(/^data-[\-\w.\u00B7-\uFFFF]/),dz=dc(/^aria-[\-\w]+$/),dK=dc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dY=dc(/^(?:\w+script|data):/i),d$=dc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function dX(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,i=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=function(t){return e(t)};if(i.version="2.3.1",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,c=t.Text,f=t.Comment,g=t.DOMParser,p=t.trustedTypes,m=l.prototype,_=dI(m,"cloneNode"),E=dI(m,"nextSibling"),v=dI(m,"childNodes"),b=dI(m,"parentNode");if("function"==typeof s){var C=r.createElement("template");C.content&&C.content.ownerDocument&&(r=C.content.ownerDocument)}var S=dZ(p,n),y=S&&q?S.createHTML(""):"",T=r,R=T.implementation,A=T.createNodeIterator,N=T.createDocumentFragment,O=T.getElementsByTagName,L=n.importNode,I={};try{I=dL(r).documentMode?r.documentMode:{}}catch(e){}var w={};i.isSupported="function"==typeof b&&R&&void 0!==R.createHTMLDocument&&9!==I;var D=dK,x=null,M=dO({},[].concat(dX(dw),dX(dD),dX(dx),dX(dk),dX(dF))),k=null,P=dO({},[].concat(dX(dB),dX(dU),dX(dH),dX(dV))),F=null,B=null,U=!0,H=!0,V=!1,W=!1,G=!1,j=!1,z=!1,K=!1,Y=!1,$=!0,q=!1,X=!0,Z=!0,Q=!1,J={},ee=null,et=dO({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ei=null,en=dO({},["audio","video","img","source","image","track"]),er=null,eo=dO({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),es="http://www.w3.org/1998/Math/MathML",ea="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml",eh=el,eu=!1,ed=null,ec=r.createElement("form"),ef=function(e){ed&&ed===e||(e&&(void 0===e?"undefined":dq(e))==="object"||(e={}),x="ALLOWED_TAGS"in(e=dL(e))?dO({},e.ALLOWED_TAGS):M,k="ALLOWED_ATTR"in e?dO({},e.ALLOWED_ATTR):P,er="ADD_URI_SAFE_ATTR"in e?dO(dL(eo),e.ADD_URI_SAFE_ATTR):eo,ei="ADD_DATA_URI_TAGS"in e?dO(dL(en),e.ADD_DATA_URI_TAGS):en,ee="FORBID_CONTENTS"in e?dO({},e.FORBID_CONTENTS):et,F="FORBID_TAGS"in e?dO({},e.FORBID_TAGS):{},B="FORBID_ATTR"in e?dO({},e.FORBID_ATTR):{},J="USE_PROFILES"in e&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,H=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,Y=e.RETURN_DOM_FRAGMENT||!1,$=!1!==e.RETURN_DOM_IMPORT,q=e.RETURN_TRUSTED_TYPE||!1,z=e.FORCE_BODY||!1,X=!1!==e.SANITIZE_DOM,Z=!1!==e.KEEP_CONTENT,Q=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||D,eh=e.NAMESPACE||el,W&&(H=!1),Y&&(K=!0),J&&(x=dO({},[].concat(dX(dF))),k=[],!0===J.html&&(dO(x,dw),dO(k,dB)),!0===J.svg&&(dO(x,dD),dO(k,dU),dO(k,dV)),!0===J.svgFilters&&(dO(x,dx),dO(k,dU),dO(k,dV)),!0===J.mathMl&&(dO(x,dk),dO(k,dH),dO(k,dV))),e.ADD_TAGS&&(x===M&&(x=dL(x)),dO(x,e.ADD_TAGS)),e.ADD_ATTR&&(k===P&&(k=dL(k)),dO(k,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&dO(er,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ee===et&&(ee=dL(ee)),dO(ee,e.FORBID_CONTENTS)),Z&&(x["#text"]=!0),G&&dO(x,["html","head","body"]),x.table&&(dO(x,["tbody"]),delete F.tbody),dd&&dd(e),ed=e)},eg=dO({},["mi","mo","mn","ms","mtext"]),ep=dO({},["foreignobject","desc","title","annotation-xml"]),em=dO({},dD);dO(em,dx),dO(em,dM);var e_=dO({},dk);dO(e_,dP);var eE=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:el,tagName:"template"});var i=db(e.tagName),n=db(t.tagName);if(e.namespaceURI===ea)return t.namespaceURI===el?"svg"===i:t.namespaceURI===es?"svg"===i&&("annotation-xml"===n||eg[n]):!!em[i];if(e.namespaceURI===es)return t.namespaceURI===el?"math"===i:t.namespaceURI===ea?"math"===i&&ep[n]:!!e_[i];if(e.namespaceURI===el){if(t.namespaceURI===ea&&!ep[n]||t.namespaceURI===es&&!eg[n])return!1;var r=dO({},["title","style","font","a","script"]);return!e_[i]&&(r[i]||!em[i])}return!1},ev=function(e){dv(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=y}catch(t){e.remove()}}},eb=function(e,t){try{dv(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){dv(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!k[e]){if(K||Y)try{ev(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},eC=function(e){var t=void 0,i=void 0;if(z)e=""+e;else{var n=dC(e,/^[\r\n\t ]+/);i=n&&n[0]}var o=S?S.createHTML(e):e;if(eh===el)try{t=new g().parseFromString(o,"text/html")}catch(e){}if(!t||!t.documentElement){t=R.createDocument(eh,"template",null);try{t.documentElement.innerHTML=eu?"":o}catch(e){}}var s=t.body||t.documentElement;return(e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),eh===el)?O.call(t,G?"html":"body")[0]:G?t.documentElement:s},eS=function(e){return A.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},ey=function(e){return(void 0===a?"undefined":dq(a))==="object"?e instanceof a:e&&(void 0===e?"undefined":dq(e))==="object"&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},eT=function(e,t,n){w[e]&&d_(w[e],function(e){e.call(i,t,n,ed)})},eR=function(e){var t=void 0;if(eT("beforeSanitizeElements",e,null),!(e instanceof c)&&!(e instanceof f)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)||dC(e.nodeName,/[\u0080-\uFFFF]/))return ev(e),!0;var n=db(e.nodeName);if(eT("uponSanitizeElement",e,{tagName:n,allowedTags:x}),!ey(e.firstElementChild)&&(!ey(e.content)||!ey(e.content.firstElementChild))&&dR(/<[/\w]/g,e.innerHTML)&&dR(/<[/\w]/g,e.textContent)||"select"===n&&dR(/