From e82b617f717f73c4a146e46b78bc54ff58b14343 Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Fri, 25 Aug 2023 10:34:36 +0800 Subject: [PATCH] feat(editor): ChatExcel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔥ChatExcel Mode Complete --- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- ...f6752de2ae.js => 1160-f112d2a6d43c53fb.js} | 52 +++++------ .../static/chunks/1191-6ed6367cd2d09bb9.js | 1 + .../static/chunks/1450-b091fc1b6f7d4bf0.js | 3 - .../static/chunks/1506-6a768872dc5b4f91.js | 1 + .../static/chunks/1630-50ebd41889c930a9.js | 16 ++++ .../static/chunks/1767-95ebb5075453e360.js | 1 + .../static/chunks/2149-aecea03e84eb1ce0.js | 17 ---- .../static/chunks/2569-06bcde13edea6c6d.js | 19 ++++ .../static/chunks/2606-54d96c1f331d01f9.js | 1 + .../static/chunks/3318-80ebf179691127d0.js | 1 + .../static/chunks/4289-34048f568794fb82.js | 19 ---- .../static/chunks/4344-506143d50e8cae48.js | 1 + .../static/chunks/4518-7e23702392053cb5.js | 84 ++++++++++++++++++ .../static/chunks/5230-6a3546b60a6e7021.js | 4 - .../static/chunks/5548-48ee10d7c4db91de.js | 16 ++++ .../static/chunks/5935-155017f0b83ac883.js | 3 - .../static/chunks/6259-1223c65658c5b56f.js | 6 ++ .../static/chunks/6412-3d741f7d398aa7c5.js | 45 ---------- .../static/chunks/7016-bead39442dd43d3d.js | 7 -- .../static/chunks/7192-200683fe6f812401.js | 1 - .../static/chunks/7487-8fae47a73361b2a8.js | 4 + .../static/chunks/7518-9f807bba2ce3df28.js | 1 - .../static/chunks/7713-ba1d39a85621df0a.js | 4 + ...0c4726f67c.js => 7746-c386d3790bf96ffb.js} | 6 +- .../static/chunks/8358-006db8314e7f90e6.js | 10 +++ .../static/chunks/8638-2f5e2000cb136650.js | 1 + .../static/chunks/8656-01bc430529fc05eb.js | 24 +++++ .../static/chunks/877-adf13c5d30ef2124.js | 84 ------------------ .../static/chunks/8942-41727d4f9c2fce04.js | 10 --- .../static/chunks/9743-c387e29b19a10bcf.js | 30 +++++++ .../chunks/app/chat/page-1a90bca511924458.js | 1 - .../chunks/app/chat/page-fccf457e30cad257.js | 1 + .../app/database/page-196052f9a84bfc36.js | 1 + .../chunklist/page-1e8576aa7ffe5a4c.js | 1 - .../chunklist/page-338f0d33a4bd4e5b.js | 1 + ...0138295cd3.js => page-624fdbee548f08f1.js} | 2 +- .../app/datastores/page-451da57ebc9dac70.js | 1 + .../app/datastores/page-905b453a410beedf.js | 1 - .../chunks/app/layout-0de45730ace296d1.js | 1 + .../chunks/app/layout-1a9dfc35f4f78db4.js | 1 - .../chunks/app/page-051666e662d06200.js | 1 - .../chunks/app/page-286277d79733e236.js | 1 + ...a2c21bf459.js => main-ef521e343defaae7.js} | 2 +- ...7f492b8.js => webpack-c2811450a636ab98.js} | 2 +- .../_next/static/css/0675832d86f31505.css | 3 - .../_next/static/css/e86c9be39f610690.css | 3 + .../_buildManifest.js | 0 .../_ssgManifest.js | 0 pilot/server/static/chat/index.html | 2 +- pilot/server/static/chat/index.txt | 14 +-- pilot/server/static/database/index.html | 1 + pilot/server/static/database/index.txt | 9 ++ .../datastores/documents/chunklist/index.html | 2 +- .../datastores/documents/chunklist/index.txt | 14 +-- .../static/datastores/documents/index.html | 2 +- .../static/datastores/documents/index.txt | 14 +-- pilot/server/static/datastores/index.html | 2 +- pilot/server/static/datastores/index.txt | 14 +-- pilot/server/static/favicon.ico | Bin 25931 -> 270398 bytes pilot/server/static/icons/mssql.png | Bin 0 -> 22534 bytes pilot/server/static/icons/mysql.png | Bin 0 -> 10873 bytes pilot/server/static/icons/sql.png | Bin 0 -> 5081 bytes pilot/server/static/index.html | 2 +- pilot/server/static/index.txt | 14 +-- 66 files changed, 312 insertions(+), 277 deletions(-) rename pilot/server/static/_next/static/chunks/{7040-3379def6752de2ae.js => 1160-f112d2a6d43c53fb.js} (86%) create mode 100644 pilot/server/static/_next/static/chunks/1191-6ed6367cd2d09bb9.js delete mode 100644 pilot/server/static/_next/static/chunks/1450-b091fc1b6f7d4bf0.js create mode 100644 pilot/server/static/_next/static/chunks/1506-6a768872dc5b4f91.js create mode 100644 pilot/server/static/_next/static/chunks/1630-50ebd41889c930a9.js create mode 100644 pilot/server/static/_next/static/chunks/1767-95ebb5075453e360.js delete mode 100644 pilot/server/static/_next/static/chunks/2149-aecea03e84eb1ce0.js create mode 100644 pilot/server/static/_next/static/chunks/2569-06bcde13edea6c6d.js create mode 100644 pilot/server/static/_next/static/chunks/2606-54d96c1f331d01f9.js create mode 100644 pilot/server/static/_next/static/chunks/3318-80ebf179691127d0.js delete mode 100644 pilot/server/static/_next/static/chunks/4289-34048f568794fb82.js create mode 100644 pilot/server/static/_next/static/chunks/4344-506143d50e8cae48.js create mode 100644 pilot/server/static/_next/static/chunks/4518-7e23702392053cb5.js delete mode 100644 pilot/server/static/_next/static/chunks/5230-6a3546b60a6e7021.js create mode 100644 pilot/server/static/_next/static/chunks/5548-48ee10d7c4db91de.js delete mode 100644 pilot/server/static/_next/static/chunks/5935-155017f0b83ac883.js create mode 100644 pilot/server/static/_next/static/chunks/6259-1223c65658c5b56f.js delete mode 100644 pilot/server/static/_next/static/chunks/6412-3d741f7d398aa7c5.js delete mode 100644 pilot/server/static/_next/static/chunks/7016-bead39442dd43d3d.js delete mode 100644 pilot/server/static/_next/static/chunks/7192-200683fe6f812401.js create mode 100644 pilot/server/static/_next/static/chunks/7487-8fae47a73361b2a8.js delete mode 100644 pilot/server/static/_next/static/chunks/7518-9f807bba2ce3df28.js create mode 100644 pilot/server/static/_next/static/chunks/7713-ba1d39a85621df0a.js rename pilot/server/static/_next/static/chunks/{8453-e1d34a0c4726f67c.js => 7746-c386d3790bf96ffb.js} (60%) create mode 100644 pilot/server/static/_next/static/chunks/8358-006db8314e7f90e6.js create mode 100644 pilot/server/static/_next/static/chunks/8638-2f5e2000cb136650.js create mode 100644 pilot/server/static/_next/static/chunks/8656-01bc430529fc05eb.js delete mode 100644 pilot/server/static/_next/static/chunks/877-adf13c5d30ef2124.js delete mode 100644 pilot/server/static/_next/static/chunks/8942-41727d4f9c2fce04.js create mode 100644 pilot/server/static/_next/static/chunks/9743-c387e29b19a10bcf.js delete mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-1a90bca511924458.js create mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-fccf457e30cad257.js create mode 100644 pilot/server/static/_next/static/chunks/app/database/page-196052f9a84bfc36.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-1e8576aa7ffe5a4c.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-338f0d33a4bd4e5b.js rename pilot/server/static/_next/static/chunks/app/datastores/documents/{page-0b66d50138295cd3.js => page-624fdbee548f08f1.js} (84%) create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-451da57ebc9dac70.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-905b453a410beedf.js create mode 100644 pilot/server/static/_next/static/chunks/app/layout-0de45730ace296d1.js delete mode 100644 pilot/server/static/_next/static/chunks/app/layout-1a9dfc35f4f78db4.js delete mode 100644 pilot/server/static/_next/static/chunks/app/page-051666e662d06200.js create mode 100644 pilot/server/static/_next/static/chunks/app/page-286277d79733e236.js rename pilot/server/static/_next/static/chunks/{main-74fdb7a2c21bf459.js => main-ef521e343defaae7.js} (68%) rename pilot/server/static/_next/static/chunks/{webpack-e4cf89f137f492b8.js => webpack-c2811450a636ab98.js} (98%) delete mode 100644 pilot/server/static/_next/static/css/0675832d86f31505.css create mode 100644 pilot/server/static/_next/static/css/e86c9be39f610690.css rename pilot/server/static/_next/static/{ae8AMgI-SPy2zYTXfjFnE => yA4tI-2mGxp7JeeGVHPYX}/_buildManifest.js (100%) rename pilot/server/static/_next/static/{ae8AMgI-SPy2zYTXfjFnE => yA4tI-2mGxp7JeeGVHPYX}/_ssgManifest.js (100%) create mode 100644 pilot/server/static/database/index.html create mode 100644 pilot/server/static/database/index.txt create mode 100644 pilot/server/static/icons/mssql.png create mode 100644 pilot/server/static/icons/mysql.png create mode 100644 pilot/server/static/icons/sql.png diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 294da0a18..8ba104762 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 294da0a18..8ba104762 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/chunks/7040-3379def6752de2ae.js b/pilot/server/static/_next/static/chunks/1160-f112d2a6d43c53fb.js similarity index 86% rename from pilot/server/static/_next/static/chunks/7040-3379def6752de2ae.js rename to pilot/server/static/_next/static/chunks/1160-f112d2a6d43c53fb.js index 8aee2fbb9..13aba4832 100644 --- a/pilot/server/static/_next/static/chunks/7040-3379def6752de2ae.js +++ b/pilot/server/static/_next/static/chunks/1160-f112d2a6d43c53fb.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{71990:function(e,t,i){"use strict";async function n(e,t){let i;let n=e.getReader();for(;!(i=await n.read()).done;)t(i.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}i.d(t,{a:function(){return s},L:function(){return l}});var o=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let s="text/event-stream",a="last-event-id";function l(e,t){var{signal:i,headers:l,onopen:u,onmessage:c,onclose:h,onerror:g,openWhenHidden:p,fetch:f}=t,m=o(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,o)=>{let _;let b=Object.assign({},l);function v(){_.abort(),document.hidden||k()}b.accept||(b.accept=s),p||document.addEventListener("visibilitychange",v);let C=1e3,y=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(y),_.abort()}null==i||i.addEventListener("abort",()=>{w(),t()});let S=null!=f?f:window.fetch,E=null!=u?u:d;async function k(){var i,s;_=new AbortController;try{let i,o,l,d;let u=await S(e,Object.assign(Object.assign({},m),{headers:b,signal:_.signal}));await E(u),await n(u.body,(s=function(e,t,i){let n=r(),o=new TextDecoder;return function(s,a){if(0===s.length)null==i||i(n),n=r();else if(a>0){let i=o.decode(s.subarray(0,a)),r=a+(32===s[a+1]?2:1),l=o.decode(s.subarray(r));switch(i){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(n.retry=d)}}}}(e=>{e?b[a]=e:delete b[a]},e=>{C=e},c),d=!1,function(e){void 0===i?(i=e,o=0,l=-1):i=function(e,t){let i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}(i,e);let t=i.length,n=0;for(;o0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!w()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,d=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,c=n.height/o;return{width:u,height:c,top:d,right:l+u,bottom:d+c,left:l,x:l,y:d}}function E(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return S(L(e)).left+E(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function D(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function T(e){var t=S(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 I(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||L(e)}function R(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&D(t)?t:e(I(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],D(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(R(I(s)))}function A(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function O(e){for(var t=p(e),i=A(e);i&&["table","td","th"].indexOf(k(i))>=0&&"static"===N(i).position;)i=A(i);return i&&("html"===k(i)||"body"===k(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&m(e)&&"fixed"===N(e).position)return null;var i=I(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(k(i));){var n=N(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 M="bottom",P="right",F="left",B="auto",W=["top",M,P,F],H="start",V="viewport",z="popper",U=W.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),$=[].concat(W,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],j={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function X(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?Z(r):null,s=r?Y(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 M: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 d=o?Q(o):null;if(null!=d){var u="y"===d?"height":"width";switch(s){case H:t[d]=t[d]-(i[u]/2-n[u]/2);break;case"end":t[d]=t[d]+(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,d=e.popperRect,u=e.placement,c=e.variation,h=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,b=e.isFixed,v=h.x,y=void 0===v?0:v,w=h.y,S=void 0===w?0:w,E="function"==typeof _?_({x:y,y:S}):{x:y,y:S};y=E.x,S=E.y;var k=h.hasOwnProperty("x"),x=h.hasOwnProperty("y"),D=F,T="top",I=window;if(m){var R=O(l),A="clientHeight",B="clientWidth";R===p(l)&&"static"!==N(R=L(l)).position&&"absolute"===g&&(A="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===c)&&(T=M,S-=(b&&R===I&&I.visualViewport?I.visualViewport.height:R[A])-d.height,S*=f?1:-1),(u===F||("top"===u||u===M)&&"end"===c)&&(D=P,y-=(b&&R===I&&I.visualViewport?I.visualViewport.width:R[B])-d.width,y*=f?1:-1)}var W=Object.assign({position:g},m&&J),H=!0===_?(t={x:y,y:S},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:y,y:S};return(y=H.x,S=H.y,f)?Object.assign({},W,((a={})[T]=x?"0":"",a[D]=k?"0":"",a.transform=1>=(I.devicePixelRatio||1)?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",a)):Object.assign({},W,((s={})[T]=x?S+"px":"",s[D]=k?y+"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,d,u,c,h;return t===V?es(function(e,t){var i=p(e),n=L(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var d=w();(d||!d&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+x(e),y:l}}(e,i)):f(t)?((n=S(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=L(e),s=L(r),a=E(r),l=null==(o=r.ownerDocument)?void 0:o.body,d=b(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=b(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+x(r),h=-a.scrollTop,"rtl"===N(l||s).direction&&(c+=b(s.clientWidth,l?l.clientWidth:0)-d),{width:d,height:u,x:c,y:h}))}function el(){return{top:0,right:0,bottom:0,left:0}}function ed(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ec(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,d=t,u=d.placement,c=void 0===u?e.placement:u,h=d.strategy,g=void 0===h?e.strategy:h,p=d.boundary,_=d.rootBoundary,C=d.elementContext,y=void 0===C?z:C,w=d.altBoundary,E=d.padding,x=void 0===E?0:E,D=ed("number"!=typeof x?x:eu(x,W)),T=e.rects.popper,A=e.elements[void 0!==w&&w?y===z?"reference":z:y],F=(i=f(A)?A:A.contextElement||L(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=R(I(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?O(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==k(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=b(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=b(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=S(e.elements.reference),H=X({reference:B,element:T,strategy:"absolute",placement:c}),U=es(Object.assign({},T,H)),$=y===z?U:B,K={top:F.top-$.top+D.top,bottom:$.bottom-F.bottom+D.bottom,left:F.left-$.left+D.left,right:$.right-F.right+D.right},j=e.modifiersData.offset;if(y===z&&j){var G=j[c];Object.keys(K).forEach(function(e){var t=[P,M].indexOf(e)>=0?1:-1,i=["top",M].indexOf(e)>=0?"y":"x";K[e]+=G[i]*t})}return K}function eh(e,t,i){return b(e,v(t,i))}function eg(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 ep(e){return["top",P,M,F].some(function(t){return e[t]>=0})}var ef=(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=p(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(e){e.addEventListener("scroll",i.update,q)}),a&&l.addEventListener("resize",i.update,q),function(){o&&d.forEach(function(e){e.removeEventListener("scroll",i.update,q)}),a&&l.removeEventListener("resize",i.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=X({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:Z(t.placement),variation:Y(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)&&k(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)&&k(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=$.reduce(function(e,i){var n,r,s,a,l,d;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=Z(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],d=a[1],l=l||0,d=(d||0)*s,[F,P].indexOf(r)>=0?{x:d,y:l}:{x:l,y:d}),e},{}),a=s[t.placement],l=a.x,d=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),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,d=i.padding,u=i.boundary,c=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,_=Z(m)===m,b=l||(_||!p?[ei(m)]:function(e){if(Z(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(b).reduce(function(e,i){var n,r,o,s,a,l,h,g,m,_,b,v;return e.concat(Z(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:c,padding:d,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(h=n.allowedAutoPlacements)?$:h,0===(b=(_=(m=Y(r))?l?U:U.filter(function(e){return Y(e)===m}):W).filter(function(e){return g.indexOf(e)>=0})).length&&(b=_),Object.keys(v=b.reduce(function(e,i){return e[i]=ec(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[Z(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,E=v[0],k=0;k=0,T=D?"width":"height",I=ec(t,{placement:L,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),R=D?N?P:F:N?M:"top";C[T]>y[T]&&(R=ei(R));var A=ei(R),O=[];if(o&&O.push(I[x]<=0),a&&O.push(I[R]<=0,I[A]<=0),O.every(function(e){return e})){E=L,S=!1;break}w.set(L,O)}if(S)for(var V=p?3:1,z=function(e){var t=v.find(function(t){var i=w.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},K=V;K>0&&"break"!==z(K);K--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,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,d=i.padding,u=i.tether,c=void 0===u||u,h=i.tetherOffset,g=void 0===h?0:h,p=ec(t,{boundary:s,rootBoundary:a,padding:d,altBoundary:l}),f=Z(t.placement),m=Y(t.placement),_=!m,C=Q(f),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(void 0===r||r){var D,I="y"===C?"top":F,R="y"===C?M:P,A="y"===C?"height":"width",B=w[C],W=B+p[I],V=B-p[R],z=c?-E[A]/2:0,U=m===H?S[A]:E[A],$=m===H?-E[A]:-S[A],K=t.elements.arrow,j=c&&K?T(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),q=G[I],X=G[R],J=eh(0,S[A],j[A]),ee=_?S[A]/2-z-J-q-L.mainAxis:U-J-q-L.mainAxis,et=_?-S[A]/2+z+J+X+L.mainAxis:$+J+X+L.mainAxis,ei=t.elements.arrow&&O(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(D=null==x?void 0:x[C])?D:0,eo=B+ee-er-en,es=B+et-er,ea=eh(c?v(W,eo):W,B,c?b(V,es):V);w[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var ed,eu,eg="x"===C?"top":F,ep="x"===C?M:P,ef=w[y],em="y"===y?"height":"width",e_=ef+p[eg],eb=ef-p[ep],ev=-1!==["top",F].indexOf(f),eC=null!=(eu=null==x?void 0:x[y])?eu:0,ey=ev?e_:ef-S[em]-E[em]-eC+L.altAxis,ew=ev?ef+S[em]+E[em]-eC-L.altAxis:eb,eS=c&&ev?(ed=eh(ey,ef,ew))>ew?ew:ed:eh(c?ey:e_,ef,c?ew:eb);w[y]=eS,N[y]=eS-ef}t.modifiersData[n]=N}},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=Z(n.placement),d=Q(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var c=ed("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,W)),h=T(s),g="y"===d?"top":F,p="y"===d?M:P,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],_=O(s),b=_?"y"===d?_.clientHeight||0:_.clientWidth||0:0,v=c[g],C=b-h[u]-c[p],y=b/2-h[u]/2+(f/2-m/2),w=eh(v,y,C);n.modifiersData[r]=((i={})[d]=w,i.centerOffset=w-y,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=ec(t,{elementContext:"reference"}),a=ec(t,{altBoundary:!0}),l=eg(s,n),d=eg(a,r,o),u=ep(l),c=ep(d);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?j:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},j,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,d={state:r,setOptions:function(i){var n,l,c,h,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(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]}),c=new Map,h=new Set,g=[],l.forEach(function(e){c.set(e.name,e)}),l.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var i=c.get(t);i&&e(i)}}),g.push(t)}(e)}),K.reduce(function(e,t){return e.concat(g.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:d,options:void 0===i?{}:i});s.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,c,h,g,f,_=r.elements,b=_.reference,v=_.popper;if(G(b,v)){r.rects={reference:(t=O(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),c=L(t),h=S(b,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==k(t)||D(c))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),m(t)?(f=S(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):c&&(f.x=x(c))),{x:h.left+g.scrollLeft-f.x,y:h.top+g.scrollTop-f.y,width:h.width,height:h.height}),popper:T(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 y=0;y(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ek);return i=>t?"":e(i)}(ev)),eT={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:_={},slots:b={},TransitionProps:v}=e,C=(0,d.Z)(e,eL),y=u.useRef(null),w=(0,c.Z)(y,t),S=u.useRef(null),E=(0,c.Z)(S,m),k=u.useRef(E);(0,h.Z)(()=>{k.current=E},[E]),u.useImperativeHandle(m,()=>S.current,[]);let L=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}}(p,o),[x,N]=u.useState(L),[D,T]=u.useState(eN(n));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{n&&T(eN(n))},[n]),(0,h.Z)(()=>{if(!D||!g)return;let e=e=>{N(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)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(D,y.current,(0,l.Z)({placement:L},f,{modifiers:t}));return k.current(i),()=>{i.destroy(),k.current(null)}},[D,s,a,g,f,L]);let I={placement:x};null!==v&&(I.TransitionProps=v);let R=eD(),A=null!=(i=b.root)?i:"div",O=function(e){var t;let{elementType:i,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1}=e,s=(0,d.Z)(e,eS),a=o?{}:(0,ew.Z)(n,r),{props:u,internalRef:h}=(0,ey.Z)((0,l.Z)({},s,{externalSlotProps:a})),g=(0,c.Z)(h,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref),p=(0,eC.Z)(i,(0,l.Z)({},u,{ref:g}),r);return p}({elementType:A,externalSlotProps:_.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:R.root});return(0,eE.jsx)(A,(0,l.Z)({},O,{children:"function"==typeof r?r(I):r}))}),eR=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:m=eT,popperRef:_,style:b,transition:v=!1,slotProps:C={},slots:y={}}=e,w=(0,d.Z)(e,ex),[S,E]=u.useState(!0);if(!c&&!p&&(!v||S))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let k=!p&&c&&(!v||S)?"none":void 0;return(0,eE.jsx)(e_.Z,{disablePortal:a,container:i,children:(0,eE.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:h,ref:t,open:v?!S:p,placement:f,popperOptions:m,popperRef:_,slotProps:C,slots:y},w,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:k},b),TransitionProps:v?{in:p,onEnter:()=>{E(!1)},onExited:()=>{E(!0)}}:void 0,children:r}))})});var eA=eR},18414:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(86006);let r=n.createContext(null)},30461: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"}},76563:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(86006);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"},48755:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");t.Z=s},55749:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=s},28179:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M17.41 6.59 15 5.5l2.41-1.09L18.5 2l1.09 2.41L22 5.5l-2.41 1.09L18.5 9l-1.09-2.41zm3.87 6.13L20.5 11l-.78 1.72-1.72.78 1.72.78.78 1.72.78-1.72L23 13.5l-1.72-.78zm-5.04 1.65 1.94 1.47-2.5 4.33-2.24-.94c-.2.13-.42.26-.64.37l-.3 2.4h-5l-.3-2.41c-.22-.11-.43-.23-.64-.37l-2.24.94-2.5-4.33 1.94-1.47c-.01-.11-.01-.24-.01-.36s0-.25.01-.37l-1.94-1.47 2.5-4.33 2.24.94c.2-.13.42-.26.64-.37L7.5 6h5l.3 2.41c.22.11.43.23.64.37l2.24-.94 2.5 4.33-1.94 1.47c.01.12.01.24.01.37s0 .24-.01.36zM13 14c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3z"}),"SettingsSuggest");t.Z=s},70781:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=s},97287:function(e,t,i){"use strict";var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(53832),l=i(88930),d=i(326),u=i(50645),c=i(47093),h=i(73141),g=i(9268);let p=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","slots","slotProps"],f=e=>{let{variant:t,color:i}=e,n={root:["root"],content:["content",t&&`variant${(0,a.Z)(t)}`,i&&`color${(0,a.Z)(i)}`]};return(0,s.Z)(n,h.x,{})},m=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{let t="number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight,i="number"==typeof e.maxHeight?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":i||"9999px","--AspectRatio-minHeight":t||"0px",borderRadius:"var(--AspectRatio-radius)",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),_=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var i;return[{flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},null==(i=e.variants[t.variant])?void 0:i[t.color]]}),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyAspectRatio"}),{children:s,ratio:a="16 / 9",minHeight:u,maxHeight:h,objectFit:b="cover",color:v="neutral",variant:C="soft",component:y,slots:w={},slotProps:S={}}=i,E=(0,r.Z)(i,p),{getColor:k}=(0,c.VT)(C),L=k(e.color,v),x=(0,n.Z)({},i,{minHeight:u,maxHeight:h,objectFit:b,ratio:a,color:L,variant:C}),N=f(x),D=(0,n.Z)({},E,{component:y,slots:w,slotProps:S}),[T,I]=(0,d.Z)("root",{ref:t,className:N.root,elementType:m,externalForwardedProps:D,ownerState:x}),[R,A]=(0,d.Z)("content",{className:N.content,elementType:_,externalForwardedProps:D,ownerState:x});return(0,g.jsx)(T,(0,n.Z)({},I,{children:(0,g.jsx)(R,(0,n.Z)({},A,{children:o.Children.map(s,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)}))}))});t.Z=b},73141:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var n=i(18587);function r(e){return(0,n.d6)("MuiAspectRatio",e)}let o=(0,n.sI)("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);t.Z=o},90022:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(88930),c=i(50645),h=i(47093),g=i(18587);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(81439),m=i(326),_=i(9268);let b=["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,p,{})},C=(0,c.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;return[(0,r.Z)({"--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":(0,f.V)({theme:e,ownerState:t},"borderRadius","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.5rem",gap:"0.375rem 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)",boxShadow:e.shadow.sm,backgroundColor:e.vars.palette.background.surface,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"}),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])]}),y=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:c="div",invertedColors:g=!1,size:p="md",variant:f="plain",children:y,orientation:w="vertical",slots:S={},slotProps:E={}}=i,k=(0,n.Z)(i,b),{getColor:L}=(0,h.VT)(f),x=L(e.color,l),N=(0,r.Z)({},i,{color:x,component:c,orientation:w,size:p,variant:f}),D=v(N),T=(0,r.Z)({},k,{component:c,slots:S,slotProps:E}),[I,R]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:C,externalForwardedProps:T,ownerState:N}),A=(0,_.jsx)(I,(0,r.Z)({},R,{children:o.Children.map(y,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,d.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===w?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,d.Z)(e,["CardOverflow"])&&("horizontal"===w&&(i["data-parent"]="Card-horizontal"),"vertical"===w&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(y)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,_.jsx)(h.do,{variant:f,children:A}):A});var w=y},8997:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(40431),r=i(46750),o=i(86006),s=i(89791),a=i(47562),l=i(88930),d=i(50645),u=i(18587);function c(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let h=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(326),p=i(9268);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},c,{}),_=(0,d.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:1,zIndex:1,columnGap:"calc(0.75 * var(--Card-padding))",padding:"var(--unstable_padding)",[`.${h.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:d,orientation:u="vertical",slots:c={},slotProps:h={}}=i,b=(0,r.Z)(i,f),v=(0,n.Z)({},b,{component:a,slots:c,slotProps:h}),C=(0,n.Z)({},i,{component:a,orientation:u}),y=m(),[w,S]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(y.root,o),elementType:_,externalForwardedProps:v,ownerState:C});return(0,p.jsx)(w,(0,n.Z)({},S,{children:d}))});var v=b},45642:function(e,t,i){"use strict";i.d(t,{Z:function(){return H}});var n=i(40431),r=i(46750),o=i(86006),s=i(73702),a=i(47562),l=i(13809),d=i(44542),u=i(96263),c=i(38295),h=i(95887),g=i(86601),p=i(89587);let f=(e,t)=>e.filter(e=>t.includes(e)),m=(e,t,i)=>{let n=e.keys[0];if(Array.isArray(t))t.forEach((t,n)=>{i((t,i)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,i):t[e.up(e.keys[n])]=i)},t)});else if(t&&"object"==typeof t){let r=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));r.forEach(r=>{if(-1!==e.keys.indexOf(r)){let o=t[r];void 0!==o&&i((t,i)=>{n===r?Object.assign(t,i):t[e.up(r)]=i},o)}})}else("number"==typeof t||"string"==typeof t)&&i((e,t)=>{Object.assign(e,t)},t)};function _(e){return e?`Level${e}`:""}function b(e){return e.unstable_level>0&&e.container}function v(e){return function(t){return`var(--Grid-${t}Spacing${_(e.unstable_level)})`}}function C(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${_(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${_(e.unstable_level-1)})`}let w=({theme:e,ownerState:t})=>{let i=v(t),n={};return m(e.breakpoints,t.gridSize,(e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${y(t)}${b(t)?` + ${i("column")}`:""})`}),e(n,o)}),n},S=({theme:e,ownerState:t})=>{let i={};return m(e.breakpoints,t.gridOffset,(e,n)=>{let r={};"auto"===n&&(r={marginLeft:"auto"}),"number"==typeof n&&(r={marginLeft:0===n?"0px":`calc(100% * ${n} / ${y(t)})`}),e(i,r)}),i},E=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=b(t)?{[`--Grid-columns${_(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return m(e.breakpoints,t.columns,(e,n)=>{e(i,{[`--Grid-columns${_(t.unstable_level)}`]:n})}),i},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-rowSpacing${_(t.unstable_level)}`]:i("row")}:{};return m(e.breakpoints,t.rowSpacing,(i,r)=>{var o;i(n,{[`--Grid-rowSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},L=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-columnSpacing${_(t.unstable_level)}`]:i("column")}:{};return m(e.breakpoints,t.columnSpacing,(i,r)=>{var o;i(n,{[`--Grid-columnSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.direction,(e,t)=>{e(i,{flexDirection:t})}),i},N=({ownerState:e})=>{let t=v(e),i=C(e);return(0,n.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,n.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||b(e))&&(0,n.Z)({padding:`calc(${i("row")} / 2) calc(${i("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${i("row")} 0px 0px ${i("column")}`}))},D=e=>{let t=[];return Object.entries(e).forEach(([e,i])=>{!1!==i&&void 0!==i&&t.push(`grid-${e}-${String(i)}`)}),t},T=(e,t="xs")=>{function i(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(i(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{i(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},I=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var R=i(9268);let A=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],O=(0,p.Z)(),M=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function P(e){return(0,c.Z)({props:e,name:"MuiGrid",defaultTheme:O})}var F=i(50645),B=i(88930);let W=function(e={}){let{createStyledComponent:t=M,useThemeProps:i=P,componentName:u="MuiGrid"}=e,c=o.createContext(void 0),p=(e,t)=>{let{container:i,direction:n,spacing:r,wrap:o,gridSize:s}=e,d={root:["root",i&&"container","wrap"!==o&&`wrap-xs-${String(o)}`,...I(n),...D(s),...i?T(r,t.breakpoints.keys[0]):[]]};return(0,a.Z)(d,e=>(0,l.Z)(u,e),{})},f=t(E,L,k,w,x,N,S),m=o.forwardRef(function(e,t){var a,l,u,m,_,b,v,C;let y=(0,h.Z)(),w=i(e),S=(0,g.Z)(w),E=o.useContext(c),{className:k,children:L,columns:x=12,container:N=!1,component:D="div",direction:T="row",wrap:I="wrap",spacing:O=0,rowSpacing:M=O,columnSpacing:P=O,disableEqualOverflow:F,unstable_level:B=0}=S,W=(0,r.Z)(S,A),H=F;B&&void 0!==F&&(H=e.disableEqualOverflow);let V={},z={},U={};Object.entries(W).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?V[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:U[e]=t});let $=null!=(a=e.columns)?a:B?void 0:x,K=null!=(l=e.spacing)?l:B?void 0:O,j=null!=(u=null!=(m=e.rowSpacing)?m:e.spacing)?u:B?void 0:M,G=null!=(_=null!=(b=e.columnSpacing)?b:e.spacing)?_:B?void 0:P,q=(0,n.Z)({},S,{level:B,columns:$,container:N,direction:T,wrap:I,spacing:K,rowSpacing:j,columnSpacing:G,gridSize:V,gridOffset:z,disableEqualOverflow:null!=(v=null!=(C=H)?C:E)&&v,parentDisableEqualOverflow:E}),Z=p(q,y),Y=(0,R.jsx)(f,(0,n.Z)({ref:t,as:D,ownerState:q,className:(0,s.Z)(Z.root,k)},U,{children:o.Children.map(L,e=>{if(o.isValidElement(e)&&(0,d.Z)(e,["Grid"])){var t;return o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:B+1})}return e})}));return void 0!==H&&H!==(null!=E&&E)&&(Y=(0,R.jsx)(c.Provider,{value:H,children:Y})),Y});return m.muiName="Grid",m}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,B.Z)({props:e,name:"JoyGrid"})});var H=W},30530:function(e,t,i){"use strict";i.d(t,{Z:function(){return E}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(50645),c=i(88930),h=i(47093),g=i(5737),p=i(18587);function f(e){return(0,p.d6)("MuiModalDialog",e)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var m=i(66752),_=i(69586),b=i(326),v=i(9268);let C=["className","children","color","component","variant","size","layout","slots","slotProps"],y=e=>{let{variant:t,color:i,size:n,layout:r}=e,o={root:["root",t&&`variant${(0,l.Z)(t)}`,i&&`color${(0,l.Z)(i)}`,n&&`size${(0,l.Z)(n)}`,r&&`layout${(0,l.Z)(r)}`]};return(0,a.Z)(o,f,{})},w=(0,u.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,r.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===t.size&&{"--ModalDialog-padding":e.spacing(2),"--ModalDialog-radius":e.vars.radius.sm,"--ModalDialog-gap":e.spacing(.75),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.25),"--ModalClose-inset":e.spacing(1.25),fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--ModalDialog-padding":e.spacing(2.5),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(1.5),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.75),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--ModalDialog-padding":e.spacing(3),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(2),"--ModalDialog-titleOffset":e.spacing(.75),"--ModalDialog-descriptionOffset":e.spacing(1),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:e.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:e.vars.fontFamily.body,lineHeight:e.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===t.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===t.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${t["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${t["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${t["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),S=o.forwardRef(function(e,t){let i=(0,c.Z)({props:e,name:"JoyModalDialog"}),{className:a,children:l,color:u="neutral",component:g="div",variant:p="outlined",size:f="md",layout:S="center",slots:E={},slotProps:k={}}=i,L=(0,n.Z)(i,C),{getColor:x}=(0,h.VT)(p),N=x(e.color,u),D=(0,r.Z)({},i,{color:N,component:g,layout:S,size:f,variant:p}),T=y(D),I=(0,r.Z)({},L,{component:g,slots:E,slotProps:k}),R=o.useMemo(()=>({variant:p,color:"context"===N?void 0:N}),[N,p]),[A,O]=(0,b.Z)("root",{ref:t,className:(0,s.Z)(T.root,a),elementType:w,externalForwardedProps:I,ownerState:D,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,v.jsx)(m.Z.Provider,{value:f,children:(0,v.jsx)(_.Z.Provider,{value:R,children:(0,v.jsx)(A,(0,r.Z)({},O,{children:o.Children.map(l,e=>{if(!o.isValidElement(e))return e;if((0,d.Z)(e,["Divider"])){let t={};return t.inset="inset"in e.props?e.props.inset:"context",o.cloneElement(e,t)}return e})}))})})});var E=S},24857:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(49657),l=i(99179),d=i(11059),u=i(30461),c=i(18414),h=i(76563),g=i(326),p=i(70092),f=i(50645),m=i(88930),_=i(47093),b=i(18587);function v(e){return(0,b.d6)("MuiOption",e)}let C=(0,b.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var y=i(76620),w=i(9268);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],E=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},v,{})},k=(0,f.Z)(p.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{[`&.${C.highlighted}`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),L=o.forwardRef(function(e,t){var i;let s=(0,m.Z)({props:e,name:"JoyOption"}),{component:p="li",children:f,disabled:b=!1,value:v,label:C,variant:L="plain",color:x="neutral",slots:N={},slotProps:D={}}=s,T=(0,r.Z)(s,S),I=o.useContext(y.Z),R=o.useRef(null),A=(0,l.Z)(R,t),O=null!=C?C:"string"==typeof f?f:null==(i=R.current)?void 0:i.innerText,{getRootProps:M,selected:P,highlighted:F,index:B}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:g}=e,{getRootProps:p,rootRef:f,highlighted:m,selected:_}=function(e){let t;let{handlePointerOverEvents:i=!1,item:r,rootRef:s}=e,a=o.useRef(null),h=(0,l.Z)(a,s),g=o.useContext(c.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=g,{highlighted:b,selected:v,focusable:C}=f(r),y=function(){let[,e]=o.useState({});return o.useCallback(()=>{e({})},[])}();(0,d.Z)(()=>m(function(e){e!==r||b?e!==r&&b&&y():y()})),(0,d.Z)(()=>_(function(e){v?e.includes(r)||y():e.includes(r)&&y()}),[_,y,v,r]);let w=o.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemClick,item:r,event:t})},[p,r]),S=o.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemHover,item:r,event:t})},[p,r]);return C&&(t=b?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:w(e),onPointerOver:i?S(e):void 0,ref:h,tabIndex:t}),highlighted:b,rootRef:h,selected:v}}({item:t}),b=(0,a.Z)(g),v=o.useRef(null),C=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:b}),[r,i,t,b]),{index:y}=function(e,t){let i=o.useContext(h.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=i,[r,s]=o.useState("function"==typeof e?void 0:e);return(0,d.Z)(()=>{let{id:i,deregister:r}=n(e,t);return s(i),r},[n,t,e]),{id:r,index:void 0!==r?i.getItemIndex(r):-1,totalItemCount:i.totalSubitemCount}}(t,C),w=(0,l.Z)(s,v,f);return{getRootProps:(e={})=>(0,n.Z)({},e,p(e),{id:b,ref:w,role:"option","aria-selected":_}),highlighted:m,index:y,selected:_,rootRef:w}}({disabled:b,label:O,value:v,rootRef:A}),{getColor:W}=(0,_.VT)(L),H=W(e.color,P?"primary":x),V=(0,n.Z)({},s,{disabled:b,selected:P,highlighted:F,index:B,component:p,variant:L,color:H,row:I}),z=E(V),U=(0,n.Z)({},T,{component:p,slots:N,slotProps:D}),[$,K]=(0,g.Z)("root",{ref:t,getSlotProps:M,elementType:k,externalForwardedProps:U,className:z.root,ownerState:V});return(0,w.jsx)($,(0,n.Z)({},K,{children:f}))});var x=L},71451:function(e,t,i){"use strict";i.d(t,{Z:function(){return ep}});var n,r=i(46750),o=i(40431),s=i(86006),a=i(89791),l=i(53832),d=i(99179),u=i(67222),c=i(49657),h=i(11059),g=i(73811);let p={buttonClick:"buttonClick"};var f=i(30461);function m(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:d,itemComparer:u,focusManagement:c}=i,h=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===c?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=h,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=h,o="previous"):e>h?!p||Math.abs(t)>1?(r=h,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=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,d,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function _(e,t,i){let{itemComparer:n,isItemDisabled:r,selectionMode:s,items:a}=i,{selectedValues:l}=t,d=a.findIndex(t=>n(e,t));if(r(e,d))return t;let u="none"===s?[]:"single"===s?n(l[0],e)?l:[e]:l.some(t=>n(t,e))?l.filter(t=>!n(t,e)):[...l,e];return(0,o.Z)({},t,{selectedValues:u,highlightedValue:e})}function b(e,t){let{type:i,context:n}=t;switch(i){case f.F.keyDown:return function(e,t,i){let n=t.highlightedValue,{orientation:r,pageSize:s}=i;switch(e){case"Home":return(0,o.Z)({},t,{highlightedValue:m(n,"start",i)});case"End":return(0,o.Z)({},t,{highlightedValue:m(n,"end",i)});case"PageUp":return(0,o.Z)({},t,{highlightedValue:m(n,-s,i)});case"PageDown":return(0,o.Z)({},t,{highlightedValue:m(n,s,i)});case"ArrowUp":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,-1,i)});case"ArrowDown":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,1,i)});case"ArrowLeft":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?-1:1,i)});case"ArrowRight":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return _(t.highlightedValue,t,i)}return t}(t.key,e,n);case f.F.itemClick:return _(t.item,e,n);case f.F.blur:return"DOM"===n.focusManagement?e:(0,o.Z)({},e,{highlightedValue:null});case f.F.textNavigation:return function(e,t,i){let{items:n,isItemDisabled:r,disabledItemsFocusable:s,getItemAsString:a}=i,l=t.length>1,d=l?e.highlightedValue:m(e.highlightedValue,1,i);for(let u=0;ua(e,i.highlightedValue)))?s:null:"DOM"===l&&0===t.length&&(d=m(null,"reset",n));let u=null!=(r=i.selectedValues)?r:[],c=u.filter(t=>e.some(e=>a(e,t)));return(0,o.Z)({},i,{highlightedValue:d,selectedValues:c})}(t.items,t.previousItems,e,n);case f.F.resetHighlight:return(0,o.Z)({},e,{highlightedValue:m(null,"reset",n)});default:return e}}let v="select:change-selection",C="select:change-highlight";function y(e,t){return e===t}let w={},S=()=>{};function E(e,t){let i=(0,o.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function k(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}function L(e,t){let i=s.useRef(e);return s.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let x={},N=()=>{},D=(e,t)=>e===t,T=()=>!1,I=e=>"string"==typeof e?e:String(e),R=()=>({highlightedValue:null,selectedValues:[]});var A=function(e){let{controlledProps:t=x,disabledItemsFocusable:i=!1,disableListWrap:n=!1,focusManagement:r="activeDescendant",getInitialState:a=R,getItemDomElement:l,getItemId:u,isItemDisabled:c=T,rootRef:h,onStateChange:g=N,items:p,itemComparer:m=D,getItemAsString:_=I,onChange:A,onHighlightChange:O,onItemsChange:M,orientation:P="vertical",pageSize:F=5,reducerActionContext:B=x,selectionMode:W="single",stateReducer:H}=e,V=s.useRef(null),z=(0,d.Z)(h,V),U=s.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===r&&null!=t&&(i===f.F.itemClick||i===f.F.keyDown||i===f.F.textNavigation)){var n;null==l||null==(n=l(t))||n.focus()}},[l,O,r]),$=s.useMemo(()=>({highlightedValue:m,selectedValues:(e,t)=>k(e,t,m)}),[m]),K=s.useCallback((e,t,i,n,r)=>{switch(null==g||g(e,t,i,n,r),t){case"highlightedValue":U(e,i,n);break;case"selectedValues":null==A||A(e,i,n)}},[U,A,g]),j=s.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:n,focusManagement:r,isItemDisabled:c,itemComparer:m,items:p,getItemAsString:_,onHighlightChange:U,orientation:P,pageSize:F,selectionMode:W,stateComparers:$}),[i,n,r,c,m,p,_,U,P,F,W,$]),G=a(),q=s.useMemo(()=>(0,o.Z)({},B,j),[B,j]),[Z,Y]=function(e){let t=s.useRef(null),{reducer:i,initialState:n,controlledProps:r=w,stateComparers:a=w,onStateChange:l=S,actionContext:d}=e,u=s.useCallback((e,n)=>{t.current=n;let o=E(e,r),s=i(o,n);return s},[r,i]),[c,h]=s.useReducer(u,n),g=s.useCallback(e=>{h((0,o.Z)({},e,{context:d}))},[d]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:r,controlledProps:o,lastActionRef:a}=e,l=s.useRef(i);s.useEffect(()=>{if(null===a.current)return;let e=E(l.current,o);Object.keys(t).forEach(i=>{var o,s,l;let d=null!=(o=n[i])?o:y,u=t[i],c=e[i];(null!=c||null==u)&&(null==c||null!=u)&&(null==c||null==u||d(u,c))||null==r||r(null!=(s=a.current.event)?s:null,i,u,null!=(l=a.current.type)?l:"",t)}),l.current=t,a.current=null},[l,t,a,r,n,o])}({nextState:c,initialState:n,stateComparers:null!=a?a:w,onStateChange:null!=l?l:S,controlledProps:r,lastActionRef:t}),[E(c,r),g]}({reducer:null!=H?H:b,actionContext:q,initialState:G,controlledProps:t,stateComparers:$,onStateChange:K}),{highlightedValue:Q,selectedValues:X}=Z,J=function(e){let t=s.useRef({searchString:"",lastTime:null});return s.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)=>Y({type:f.F.textNavigation,event:t,searchString:e})),ee=L(X),et=L(Q),ei=s.useRef([]);s.useEffect(()=>{k(ei.current,p,m)||(Y({type:f.F.itemsChange,event:null,items:p,previousItems:ei.current}),ei.current=p,null==M||M(p))},[p,m,Y,M]);let{notifySelectionChanged:en,notifyHighlightChanged:er,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}=function(){let e=function(){let e=s.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=s.useCallback(t=>{e.publish(v,t)},[e]),i=s.useCallback(t=>{e.publish(C,t)},[e]),n=s.useCallback(t=>e.subscribe(v,t),[e]),r=s.useCallback(t=>e.subscribe(C,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:r}}();s.useEffect(()=>{en(X)},[X,en]),s.useEffect(()=>{er(Q)},[Q,er]);let ea=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===P?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===r&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),Y({type:f.F.keyDown,key:t.key,event:t}),J(t)},el=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=V.current)&&n.contains(t.relatedTarget)||Y({type:f.F.blur,event:t})},ed=s.useCallback(e=>{var t;let i=p.findIndex(t=>m(t,e)),n=(null!=(t=ee.current)?t:[]).some(t=>null!=t&&m(e,t)),o=c(e,i),s=null!=et.current&&m(e,et.current),a="DOM"===r;return{disabled:o,focusable:a,highlighted:s,index:i,selected:n}},[p,c,m,ee,et,r]),eu=s.useMemo(()=>({dispatch:Y,getItemState:ed,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}),[Y,ed,eo,es]);return s.useDebugValue({state:Z}),{contextValue:eu,dispatch:Y,getRootProps:(e={})=>(0,o.Z)({},e,{"aria-activedescendant":"activeDescendant"===r&&null!=Q?u(Q):void 0,onBlur:el(e),onKeyDown:ea(e),tabIndex:"DOM"===r?-1:0,ref:z}),rootRef:z,state:Z}},O=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)},M=i(76563);function P(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:m(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=b(e,t);switch(t.type){case f.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:m(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:m(null,"end",t.context)})}break;case f.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case f.F.blur:return(0,o.Z)({},l,{open:!1})}return l}function F(e,t){return i=>{let n=(0,o.Z)({},i,e(i)),r=(0,o.Z)({},n,t(n));return r}}function B(e){e.preventDefault()}var W=function(e){let t;let{areOptionsEqual:i,buttonRef:n,defaultOpen:r=!1,defaultValue:a,disabled:l=!1,listboxId:u,listboxRef:f,multiple:m=!1,onChange:_,onHighlightChange:b,onOpenChange:v,open:C,options:y,getOptionAsString:w=O,value:S}=e,E=s.useRef(null),k=(0,d.Z)(n,E),L=s.useRef(null),x=(0,c.Z)(u);void 0===S&&void 0===a?t=[]:void 0!==a&&(t=m?a:null==a?[]:[a]);let N=s.useMemo(()=>{if(void 0!==S)return m?S:null==S?[]:[S]},[S,m]),{subitems:D,contextValue:T}=(0,M.Y)(),I=s.useMemo(()=>null!=y?new Map(y.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${x}_${t}`}])):D,[y,D,x]),R=(0,d.Z)(f,L),{getRootProps:W,active:H,focusVisible:V,rootRef:z}=(0,g.Z)({disabled:l,rootRef:k}),U=s.useMemo(()=>Array.from(I.keys()),[I]),$=s.useCallback(e=>{if(void 0!==i){let t=U.find(t=>i(t,e));return I.get(t)}return I.get(e)},[I,i,U]),K=s.useCallback(e=>{var t;let i=$(e);return null!=(t=null==i?void 0:i.disabled)&&t},[$]),j=s.useCallback(e=>{let t=$(e);return t?w(t):""},[$,w]),G=s.useMemo(()=>({selectedValues:N,open:C}),[N,C]),q=s.useCallback(e=>{var t;return null==(t=I.get(e))?void 0:t.id},[I]),Z=s.useCallback((e,t)=>{if(m)null==_||_(e,t);else{var i;null==_||_(e,null!=(i=t[0])?i:null)}},[m,_]),Y=s.useCallback((e,t)=>{null==b||b(e,null!=t?t:null)},[b]),Q=s.useCallback((e,t,i)=>{if("open"===t&&(null==v||v(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=E.current)||n.focus()}},[v]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:r}},getItemId:q,controlledProps:G,itemComparer:i,isItemDisabled:K,rootRef:z,onChange:Z,onHighlightChange:Y,onStateChange:Q,reducerActionContext:s.useMemo(()=>({multiple:m}),[m]),items:U,getItemAsString:j,selectionMode:m?"multiple":"single",stateReducer:P},{dispatch:J,getRootProps:ee,contextValue:et,state:{open:ei,highlightedValue:en,selectedValues:er},rootRef:eo}=A(X),es=e=>t=>{var i;if(null==e||null==(i=e.onClick)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};J(e)}};(0,h.Z)(()=>{if(null!=en){var e;let t=null==(e=$(en))?void 0:e.ref;if(!L.current||!(null!=t&&t.current))return;let i=L.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(L.current.scrollTop+=n.bottom-i.bottom)}},[en,$]);let ea=s.useCallback(e=>$(e),[$]),el=(e={})=>(0,o.Z)({},e,{onClick:es(e),ref:eo,role:"combobox","aria-expanded":ei,"aria-controls":x});s.useDebugValue({selectedOptions:er,highlightedOption:en,open:ei});let ed=s.useMemo(()=>(0,o.Z)({},et,T),[et,T]);return{buttonActive:H,buttonFocusVisible:V,buttonRef:z,contextValue:ed,disabled:l,dispatch:J,getButtonProps:(e={})=>{let t=F(W,ee),i=F(t,el);return i(e)},getListboxProps:(e={})=>(0,o.Z)({},e,{id:x,role:"listbox","aria-multiselectable":m?"true":void 0,ref:R,onMouseDown:B}),getOptionMetadata:ea,listboxRef:eo,open:ei,options:U,value:e.multiple?er:er.length>0?er[0]:null,highlightedOption:en}},H=i(18414),V=i(9268);function z(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:d,totalSubitemCount:u}=t,c=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),h=s.useMemo(()=>({getItemIndex:r,registerItem:d,totalSubitemCount:u}),[d,r,u]);return(0,V.jsx)(M.s.Provider,{value:h,children:(0,V.jsx)(H.Z.Provider,{value:c,children:i})})}var U=i(47562),$=i(18818),K=i(27358),j=i(8189),G=(0,i(19595).Z)((0,V.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"),q=i(50645),Z=i(88930),Y=i(47093),Q=i(326),X=i(18587);function J(e){return(0,X.d6)("MuiSelect",e)}let ee=(0,X.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var et=i(31857);let ei=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function en(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function er(e){return(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}let eo=[{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`}}],es=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,U.Z)(a,J,{})},ea=(0,q.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];return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.5,"--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":"1.25rem"},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":"1.75rem"},{"--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",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)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm},{"&::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)"},[`&.${ee.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${ee.disabled}`]:{"--Select-indicatorColor":"inherit"}}),(0,o.Z)({},a,{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${ee.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]})]}),el=(0,q.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)"}})),ed=(0,q.Z)($.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)`,"--List-radius":e.vars.radius.sm,"--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)"},K.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),eu=(0,q.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e,ownerState:t})=>(0,o.Z)({"--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",marginInlineEnd:"var(--Select-gap)",color:e.vars.palette.text.tertiary},t.focusVisible&&{color:"var(--Select-focusedHighlight)"})),ec=(0,q.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--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",marginInlineStart:"var(--Select-gap)",color:null==n?void 0:n.color}}),eh=(0,q.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1.125rem"},"md"===e.size&&{"--Icon-fontSize":"1.25rem"},"lg"===e.size&&{"--Icon-fontSize":"1.5rem"},{color:"var(--Select-indicatorColor)",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${ee.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"}})),eg=s.forwardRef(function(e,t){var i,l,c,h,g,p,f;let m=(0,Z.Z)({props:e,name:"JoySelect"}),{action:_,autoFocus:b,children:v,defaultValue:C,defaultListboxOpen:y=!1,disabled:w,getSerializedValue:S=er,placeholder:E,listboxId:k,listboxOpen:L,onChange:x,onListboxOpenChange:N,onClose:D,renderValue:T,value:I,size:R="md",variant:A="outlined",color:O="neutral",startDecorator:M,endDecorator:P,indicator:F=n||(n=(0,V.jsx)(G,{})),"aria-describedby":B,"aria-label":H,"aria-labelledby":U,id:$,name:q,slots:X={},slotProps:J={}}=m,eg=(0,r.Z)(m,ei),ep=s.useContext(et.Z),ef=null!=(i=null!=(l=e.disabled)?l:null==ep?void 0:ep.disabled)?i:w,em=null!=(c=null!=(h=e.size)?h:null==ep?void 0:ep.size)?c:R,{getColor:e_}=(0,Y.VT)(A),eb=e_(e.color,null!=ep&&ep.error?"danger":null!=(g=null==ep?void 0:ep.color)?g:O),ev=null!=T?T:en,[eC,ey]=s.useState(null),ew=s.useRef(null),eS=s.useRef(null),eE=s.useRef(null),ek=(0,d.Z)(t,ew);s.useImperativeHandle(_,()=>({focusVisible:()=>{var e;null==(e=eS.current)||e.focus()}}),[]),s.useEffect(()=>{ey(ew.current)},[]),s.useEffect(()=>{b&&eS.current.focus()},[b]);let eL=s.useCallback(e=>{null==N||N(e),e||null==D||D()},[D,N]),{buttonActive:ex,buttonFocusVisible:eN,contextValue:eD,disabled:eT,getButtonProps:eI,getListboxProps:eR,getOptionMetadata:eA,open:eO,value:eM}=W({buttonRef:eS,defaultOpen:y,defaultValue:C,disabled:ef,listboxId:k,multiple:!1,onChange:x,onOpenChange:eL,open:L,value:I}),eP=(0,o.Z)({},m,{active:ex,defaultListboxOpen:y,disabled:eT,focusVisible:eN,open:eO,renderValue:ev,value:eM,size:em,variant:A,color:eb}),eF=es(eP),eB=(0,o.Z)({},eg,{slots:X,slotProps:J}),eW=s.useMemo(()=>{var e;return null!=(e=eA(eM))?e:null},[eA,eM]),[eH,eV]=(0,Q.Z)("root",{ref:ek,className:eF.root,elementType:ea,externalForwardedProps:eB,ownerState:eP}),[ez,eU]=(0,Q.Z)("button",{additionalProps:{"aria-describedby":null!=B?B:null==ep?void 0:ep["aria-describedby"],"aria-label":H,"aria-labelledby":null!=U?U:null==ep?void 0:ep.labelId,id:null!=$?$:null==ep?void 0:ep.htmlFor,name:q},className:eF.button,elementType:el,externalForwardedProps:eB,getSlotProps:eI,ownerState:eP}),[e$,eK]=(0,Q.Z)("listbox",{additionalProps:{ref:eE,anchorEl:eC,open:eO,placement:"bottom",keepMounted:!0},className:eF.listbox,elementType:ed,externalForwardedProps:eB,getSlotProps:eR,ownerState:(0,o.Z)({},eP,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||em,variant:e.variant||"outlined",color:e.color||"neutral",disableColorInversion:!e.disablePortal})}),[ej,eG]=(0,Q.Z)("startDecorator",{className:eF.startDecorator,elementType:eu,externalForwardedProps:eB,ownerState:eP}),[eq,eZ]=(0,Q.Z)("endDecorator",{className:eF.endDecorator,elementType:ec,externalForwardedProps:eB,ownerState:eP}),[eY,eQ]=(0,Q.Z)("indicator",{className:eF.indicator,elementType:eh,externalForwardedProps:eB,ownerState:eP}),eX=s.useMemo(()=>(0,o.Z)({},eD,{color:eb}),[eb,eD]),eJ=s.useMemo(()=>[...eo,...eK.modifiers||[]],[eK.modifiers]),e0=null;return eC&&(e0=(0,V.jsx)(e$,(0,o.Z)({},eK,{className:(0,a.Z)(eK.className,(null==(p=eK.ownerState)?void 0:p.color)==="context"&&ee.colorContext),modifiers:eJ},!(null!=(f=m.slots)&&f.listbox)&&{as:u.Z,slots:{root:eK.as||"ul"}},{children:(0,V.jsx)(z,{value:eX,children:(0,V.jsx)(j.Z.Provider,{value:"select",children:(0,V.jsx)(K.Z,{nested:!0,children:v})})})})),eK.disablePortal||(e0=(0,V.jsx)(Y.ZP.Provider,{value:void 0,children:e0}))),(0,V.jsxs)(s.Fragment,{children:[(0,V.jsxs)(eH,(0,o.Z)({},eV,{children:[M&&(0,V.jsx)(ej,(0,o.Z)({},eG,{children:M})),(0,V.jsx)(ez,(0,o.Z)({},eU,{children:eW?ev(eW):E})),P&&(0,V.jsx)(eq,(0,o.Z)({},eZ,{children:P})),F&&(0,V.jsx)(eY,(0,o.Z)({},eQ,{children:F}))]})),e0,q&&(0,V.jsx)("input",{type:"hidden",name:q,value:S(eW)})]})});var ep=eg},69962:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(72120),d=i(47562),u=i(88930),c=i(50645),h=i(18587);function g(e){return(0,h.d6)("MuiSkeleton",e)}(0,h.sI)("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","h5","h6","body1","body2","body3"]);var p=i(326),f=i(9268);let m=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"],_=e=>e,b,v,C,y,w,S=e=>{let{variant:t,level:i}=e,n={root:["root",t&&`variant${(0,a.Z)(t)}`,i&&`level${(0,a.Z)(i)}`]};return(0,d.Z)(n,g,{})},E=(0,l.F4)(b||(b=_` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1160],{81616:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(40431),r=i(86006),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(1240),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},24946:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(40431),r=i(86006),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(1240),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},98479:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(40431),r=i(86006),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(1240),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},71990:function(e,t,i){"use strict";async function n(e,t){let i;let n=e.getReader();for(;!(i=await n.read()).done;)t(i.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}i.d(t,{a:function(){return s},L:function(){return l}});var o=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let s="text/event-stream",a="last-event-id";function l(e,t){var{signal:i,headers:l,onopen:u,onmessage:h,onclose:c,onerror:g,openWhenHidden:p,fetch:m}=t,f=o(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,o)=>{let _;let b=Object.assign({},l);function v(){_.abort(),document.hidden||k()}b.accept||(b.accept=s),p||document.addEventListener("visibilitychange",v);let C=1e3,y=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(y),_.abort()}null==i||i.addEventListener("abort",()=>{w(),t()});let S=null!=m?m:window.fetch,E=null!=u?u:d;async function k(){var i,s;_=new AbortController;try{let i,o,l,d;let u=await S(e,Object.assign(Object.assign({},f),{headers:b,signal:_.signal}));await E(u),await n(u.body,(s=function(e,t,i){let n=r(),o=new TextDecoder;return function(s,a){if(0===s.length)null==i||i(n),n=r();else if(a>0){let i=o.decode(s.subarray(0,a)),r=a+(32===s[a+1]?2:1),l=o.decode(s.subarray(r));switch(i){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(n.retry=d)}}}}(e=>{e?b[a]=e:delete b[a]},e=>{C=e},h),d=!1,function(e){void 0===i?(i=e,o=0,l=-1):i=function(e,t){let i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}(i,e);let t=i.length,n=0;for(;o{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"},48755:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");t.Z=s},55749:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=s},70781:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=s},97287:function(e,t,i){"use strict";var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(53832),l=i(88930),d=i(326),u=i(50645),h=i(47093),c=i(73141),g=i(9268);let p=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","slots","slotProps"],m=e=>{let{variant:t,color:i}=e,n={root:["root"],content:["content",t&&`variant${(0,a.Z)(t)}`,i&&`color${(0,a.Z)(i)}`]};return(0,s.Z)(n,c.x,{})},f=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{let t="number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight,i="number"==typeof e.maxHeight?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":i||"9999px","--AspectRatio-minHeight":t||"0px",borderRadius:"var(--AspectRatio-radius)",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),_=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var i;return[{flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},null==(i=e.variants[t.variant])?void 0:i[t.color]]}),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyAspectRatio"}),{children:s,ratio:a="16 / 9",minHeight:u,maxHeight:c,objectFit:b="cover",color:v="neutral",variant:C="soft",component:y,slots:w={},slotProps:S={}}=i,E=(0,r.Z)(i,p),{getColor:k}=(0,h.VT)(C),L=k(e.color,v),x=(0,n.Z)({},i,{minHeight:u,maxHeight:c,objectFit:b,ratio:a,color:L,variant:C}),N=m(x),D=(0,n.Z)({},E,{component:y,slots:w,slotProps:S}),[T,I]=(0,d.Z)("root",{ref:t,className:N.root,elementType:f,externalForwardedProps:D,ownerState:x}),[R,A]=(0,d.Z)("content",{className:N.content,elementType:_,externalForwardedProps:D,ownerState:x});return(0,g.jsx)(T,(0,n.Z)({},I,{children:(0,g.jsx)(R,(0,n.Z)({},A,{children:o.Children.map(s,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)}))}))});t.Z=b},73141:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var n=i(18587);function r(e){return(0,n.d6)("MuiAspectRatio",e)}let o=(0,n.sI)("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);t.Z=o},45642:function(e,t,i){"use strict";i.d(t,{Z:function(){return W}});var n=i(40431),r=i(46750),o=i(86006),s=i(73702),a=i(47562),l=i(13809),d=i(44542),u=i(96263),h=i(38295),c=i(95887),g=i(86601),p=i(89587);let m=(e,t)=>e.filter(e=>t.includes(e)),f=(e,t,i)=>{let n=e.keys[0];if(Array.isArray(t))t.forEach((t,n)=>{i((t,i)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,i):t[e.up(e.keys[n])]=i)},t)});else if(t&&"object"==typeof t){let r=Object.keys(t).length>e.keys.length?e.keys:m(e.keys,Object.keys(t));r.forEach(r=>{if(-1!==e.keys.indexOf(r)){let o=t[r];void 0!==o&&i((t,i)=>{n===r?Object.assign(t,i):t[e.up(r)]=i},o)}})}else("number"==typeof t||"string"==typeof t)&&i((e,t)=>{Object.assign(e,t)},t)};function _(e){return e?`Level${e}`:""}function b(e){return e.unstable_level>0&&e.container}function v(e){return function(t){return`var(--Grid-${t}Spacing${_(e.unstable_level)})`}}function C(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${_(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${_(e.unstable_level-1)})`}let w=({theme:e,ownerState:t})=>{let i=v(t),n={};return f(e.breakpoints,t.gridSize,(e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${y(t)}${b(t)?` + ${i("column")}`:""})`}),e(n,o)}),n},S=({theme:e,ownerState:t})=>{let i={};return f(e.breakpoints,t.gridOffset,(e,n)=>{let r={};"auto"===n&&(r={marginLeft:"auto"}),"number"==typeof n&&(r={marginLeft:0===n?"0px":`calc(100% * ${n} / ${y(t)})`}),e(i,r)}),i},E=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=b(t)?{[`--Grid-columns${_(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return f(e.breakpoints,t.columns,(e,n)=>{e(i,{[`--Grid-columns${_(t.unstable_level)}`]:n})}),i},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-rowSpacing${_(t.unstable_level)}`]:i("row")}:{};return f(e.breakpoints,t.rowSpacing,(i,r)=>{var o;i(n,{[`--Grid-rowSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},L=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-columnSpacing${_(t.unstable_level)}`]:i("column")}:{};return f(e.breakpoints,t.columnSpacing,(i,r)=>{var o;i(n,{[`--Grid-columnSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return f(e.breakpoints,t.direction,(e,t)=>{e(i,{flexDirection:t})}),i},N=({ownerState:e})=>{let t=v(e),i=C(e);return(0,n.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,n.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||b(e))&&(0,n.Z)({padding:`calc(${i("row")} / 2) calc(${i("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${i("row")} 0px 0px ${i("column")}`}))},D=e=>{let t=[];return Object.entries(e).forEach(([e,i])=>{!1!==i&&void 0!==i&&t.push(`grid-${e}-${String(i)}`)}),t},T=(e,t="xs")=>{function i(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(i(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{i(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},I=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var R=i(9268);let A=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],O=(0,p.Z)(),M=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function P(e){return(0,h.Z)({props:e,name:"MuiGrid",defaultTheme:O})}var F=i(50645),B=i(88930);let H=function(e={}){let{createStyledComponent:t=M,useThemeProps:i=P,componentName:u="MuiGrid"}=e,h=o.createContext(void 0),p=(e,t)=>{let{container:i,direction:n,spacing:r,wrap:o,gridSize:s}=e,d={root:["root",i&&"container","wrap"!==o&&`wrap-xs-${String(o)}`,...I(n),...D(s),...i?T(r,t.breakpoints.keys[0]):[]]};return(0,a.Z)(d,e=>(0,l.Z)(u,e),{})},m=t(E,L,k,w,x,N,S),f=o.forwardRef(function(e,t){var a,l,u,f,_,b,v,C;let y=(0,c.Z)(),w=i(e),S=(0,g.Z)(w),E=o.useContext(h),{className:k,children:L,columns:x=12,container:N=!1,component:D="div",direction:T="row",wrap:I="wrap",spacing:O=0,rowSpacing:M=O,columnSpacing:P=O,disableEqualOverflow:F,unstable_level:B=0}=S,H=(0,r.Z)(S,A),W=F;B&&void 0!==F&&(W=e.disableEqualOverflow);let V={},z={},U={};Object.entries(H).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?V[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:U[e]=t});let $=null!=(a=e.columns)?a:B?void 0:x,K=null!=(l=e.spacing)?l:B?void 0:O,j=null!=(u=null!=(f=e.rowSpacing)?f:e.spacing)?u:B?void 0:M,G=null!=(_=null!=(b=e.columnSpacing)?b:e.spacing)?_:B?void 0:P,q=(0,n.Z)({},S,{level:B,columns:$,container:N,direction:T,wrap:I,spacing:K,rowSpacing:j,columnSpacing:G,gridSize:V,gridOffset:z,disableEqualOverflow:null!=(v=null!=(C=W)?C:E)&&v,parentDisableEqualOverflow:E}),Z=p(q,y),Y=(0,R.jsx)(m,(0,n.Z)({ref:t,as:D,ownerState:q,className:(0,s.Z)(Z.root,k)},U,{children:o.Children.map(L,e=>{if(o.isValidElement(e)&&(0,d.Z)(e,["Grid"])){var t;return o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:B+1})}return e})}));return void 0!==W&&W!==(null!=E&&E)&&(Y=(0,R.jsx)(h.Provider,{value:W,children:Y})),Y});return f.muiName="Grid",f}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,B.Z)({props:e,name:"JoyGrid"})});var W=H},30530:function(e,t,i){"use strict";i.d(t,{Z:function(){return E}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(50645),h=i(88930),c=i(47093),g=i(5737),p=i(18587);function m(e){return(0,p.d6)("MuiModalDialog",e)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var f=i(66752),_=i(69586),b=i(326),v=i(9268);let C=["className","children","color","component","variant","size","layout","slots","slotProps"],y=e=>{let{variant:t,color:i,size:n,layout:r}=e,o={root:["root",t&&`variant${(0,l.Z)(t)}`,i&&`color${(0,l.Z)(i)}`,n&&`size${(0,l.Z)(n)}`,r&&`layout${(0,l.Z)(r)}`]};return(0,a.Z)(o,m,{})},w=(0,u.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,r.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===t.size&&{"--ModalDialog-padding":e.spacing(2),"--ModalDialog-radius":e.vars.radius.sm,"--ModalDialog-gap":e.spacing(.75),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.25),"--ModalClose-inset":e.spacing(1.25),fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--ModalDialog-padding":e.spacing(2.5),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(1.5),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.75),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--ModalDialog-padding":e.spacing(3),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(2),"--ModalDialog-titleOffset":e.spacing(.75),"--ModalDialog-descriptionOffset":e.spacing(1),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:e.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:e.vars.fontFamily.body,lineHeight:e.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===t.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===t.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${t["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${t["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${t["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),S=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyModalDialog"}),{className:a,children:l,color:u="neutral",component:g="div",variant:p="outlined",size:m="md",layout:S="center",slots:E={},slotProps:k={}}=i,L=(0,n.Z)(i,C),{getColor:x}=(0,c.VT)(p),N=x(e.color,u),D=(0,r.Z)({},i,{color:N,component:g,layout:S,size:m,variant:p}),T=y(D),I=(0,r.Z)({},L,{component:g,slots:E,slotProps:k}),R=o.useMemo(()=>({variant:p,color:"context"===N?void 0:N}),[N,p]),[A,O]=(0,b.Z)("root",{ref:t,className:(0,s.Z)(T.root,a),elementType:w,externalForwardedProps:I,ownerState:D,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,v.jsx)(f.Z.Provider,{value:m,children:(0,v.jsx)(_.Z.Provider,{value:R,children:(0,v.jsx)(A,(0,r.Z)({},O,{children:o.Children.map(l,e=>{if(!o.isValidElement(e))return e;if((0,d.Z)(e,["Divider"])){let t={};return t.inset="inset"in e.props?e.props.inset:"context",o.cloneElement(e,t)}return e})}))})})});var E=S},24857:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(49657),l=i(99179),d=i(11059),u=i(30461),h=i(18414),c=i(76563),g=i(326),p=i(70092),m=i(50645),f=i(88930),_=i(47093),b=i(18587);function v(e){return(0,b.d6)("MuiOption",e)}let C=(0,b.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var y=i(76620),w=i(9268);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],E=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},v,{})},k=(0,m.Z)(p.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{[`&.${C.highlighted}`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),L=o.forwardRef(function(e,t){var i;let s=(0,f.Z)({props:e,name:"JoyOption"}),{component:p="li",children:m,disabled:b=!1,value:v,label:C,variant:L="plain",color:x="neutral",slots:N={},slotProps:D={}}=s,T=(0,r.Z)(s,S),I=o.useContext(y.Z),R=o.useRef(null),A=(0,l.Z)(R,t),O=null!=C?C:"string"==typeof m?m:null==(i=R.current)?void 0:i.innerText,{getRootProps:M,selected:P,highlighted:F,index:B}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:g}=e,{getRootProps:p,rootRef:m,highlighted:f,selected:_}=function(e){let t;let{handlePointerOverEvents:i=!1,item:r,rootRef:s}=e,a=o.useRef(null),c=(0,l.Z)(a,s),g=o.useContext(h.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:m,registerHighlightChangeHandler:f,registerSelectionChangeHandler:_}=g,{highlighted:b,selected:v,focusable:C}=m(r),y=function(){let[,e]=o.useState({});return o.useCallback(()=>{e({})},[])}();(0,d.Z)(()=>f(function(e){e!==r||b?e!==r&&b&&y():y()})),(0,d.Z)(()=>_(function(e){v?e.includes(r)||y():e.includes(r)&&y()}),[_,y,v,r]);let w=o.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemClick,item:r,event:t})},[p,r]),S=o.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemHover,item:r,event:t})},[p,r]);return C&&(t=b?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:w(e),onPointerOver:i?S(e):void 0,ref:c,tabIndex:t}),highlighted:b,rootRef:c,selected:v}}({item:t}),b=(0,a.Z)(g),v=o.useRef(null),C=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:b}),[r,i,t,b]),{index:y}=function(e,t){let i=o.useContext(c.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=i,[r,s]=o.useState("function"==typeof e?void 0:e);return(0,d.Z)(()=>{let{id:i,deregister:r}=n(e,t);return s(i),r},[n,t,e]),{id:r,index:void 0!==r?i.getItemIndex(r):-1,totalItemCount:i.totalSubitemCount}}(t,C),w=(0,l.Z)(s,v,m);return{getRootProps:(e={})=>(0,n.Z)({},e,p(e),{id:b,ref:w,role:"option","aria-selected":_}),highlighted:f,index:y,selected:_,rootRef:w}}({disabled:b,label:O,value:v,rootRef:A}),{getColor:H}=(0,_.VT)(L),W=H(e.color,P?"primary":x),V=(0,n.Z)({},s,{disabled:b,selected:P,highlighted:F,index:B,component:p,variant:L,color:W,row:I}),z=E(V),U=(0,n.Z)({},T,{component:p,slots:N,slotProps:D}),[$,K]=(0,g.Z)("root",{ref:t,getSlotProps:M,elementType:k,externalForwardedProps:U,className:z.root,ownerState:V});return(0,w.jsx)($,(0,n.Z)({},K,{children:m}))});var x=L},71451:function(e,t,i){"use strict";i.d(t,{Z:function(){return ep}});var n,r=i(46750),o=i(40431),s=i(86006),a=i(89791),l=i(53832),d=i(99179),u=i(67222),h=i(49657),c=i(11059),g=i(73811);let p={buttonClick:"buttonClick"};var m=i(30461);function f(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:d,itemComparer:u,focusManagement:h}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===h?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=c,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!p||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let m=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,d,a,p);return -1!==m||null===e||a(e,g)?null!=(n=s[m])?n:null:e}function _(e,t,i){let{itemComparer:n,isItemDisabled:r,selectionMode:s,items:a}=i,{selectedValues:l}=t,d=a.findIndex(t=>n(e,t));if(r(e,d))return t;let u="none"===s?[]:"single"===s?n(l[0],e)?l:[e]:l.some(t=>n(t,e))?l.filter(t=>!n(t,e)):[...l,e];return(0,o.Z)({},t,{selectedValues:u,highlightedValue:e})}function b(e,t){let{type:i,context:n}=t;switch(i){case m.F.keyDown:return function(e,t,i){let n=t.highlightedValue,{orientation:r,pageSize:s}=i;switch(e){case"Home":return(0,o.Z)({},t,{highlightedValue:f(n,"start",i)});case"End":return(0,o.Z)({},t,{highlightedValue:f(n,"end",i)});case"PageUp":return(0,o.Z)({},t,{highlightedValue:f(n,-s,i)});case"PageDown":return(0,o.Z)({},t,{highlightedValue:f(n,s,i)});case"ArrowUp":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:f(n,-1,i)});case"ArrowDown":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:f(n,1,i)});case"ArrowLeft":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:f(n,"horizontal-ltr"===r?-1:1,i)});case"ArrowRight":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:f(n,"horizontal-ltr"===r?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return _(t.highlightedValue,t,i)}return t}(t.key,e,n);case m.F.itemClick:return _(t.item,e,n);case m.F.blur:return"DOM"===n.focusManagement?e:(0,o.Z)({},e,{highlightedValue:null});case m.F.textNavigation:return function(e,t,i){let{items:n,isItemDisabled:r,disabledItemsFocusable:s,getItemAsString:a}=i,l=t.length>1,d=l?e.highlightedValue:f(e.highlightedValue,1,i);for(let u=0;ua(e,i.highlightedValue)))?s:null:"DOM"===l&&0===t.length&&(d=f(null,"reset",n));let u=null!=(r=i.selectedValues)?r:[],h=u.filter(t=>e.some(e=>a(e,t)));return(0,o.Z)({},i,{highlightedValue:d,selectedValues:h})}(t.items,t.previousItems,e,n);case m.F.resetHighlight:return(0,o.Z)({},e,{highlightedValue:f(null,"reset",n)});default:return e}}let v="select:change-selection",C="select:change-highlight";function y(e,t){return e===t}let w={},S=()=>{};function E(e,t){let i=(0,o.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function k(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}function L(e,t){let i=s.useRef(e);return s.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let x={},N=()=>{},D=(e,t)=>e===t,T=()=>!1,I=e=>"string"==typeof e?e:String(e),R=()=>({highlightedValue:null,selectedValues:[]});var A=function(e){let{controlledProps:t=x,disabledItemsFocusable:i=!1,disableListWrap:n=!1,focusManagement:r="activeDescendant",getInitialState:a=R,getItemDomElement:l,getItemId:u,isItemDisabled:h=T,rootRef:c,onStateChange:g=N,items:p,itemComparer:f=D,getItemAsString:_=I,onChange:A,onHighlightChange:O,onItemsChange:M,orientation:P="vertical",pageSize:F=5,reducerActionContext:B=x,selectionMode:H="single",stateReducer:W}=e,V=s.useRef(null),z=(0,d.Z)(c,V),U=s.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===r&&null!=t&&(i===m.F.itemClick||i===m.F.keyDown||i===m.F.textNavigation)){var n;null==l||null==(n=l(t))||n.focus()}},[l,O,r]),$=s.useMemo(()=>({highlightedValue:f,selectedValues:(e,t)=>k(e,t,f)}),[f]),K=s.useCallback((e,t,i,n,r)=>{switch(null==g||g(e,t,i,n,r),t){case"highlightedValue":U(e,i,n);break;case"selectedValues":null==A||A(e,i,n)}},[U,A,g]),j=s.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:n,focusManagement:r,isItemDisabled:h,itemComparer:f,items:p,getItemAsString:_,onHighlightChange:U,orientation:P,pageSize:F,selectionMode:H,stateComparers:$}),[i,n,r,h,f,p,_,U,P,F,H,$]),G=a(),q=s.useMemo(()=>(0,o.Z)({},B,j),[B,j]),[Z,Y]=function(e){let t=s.useRef(null),{reducer:i,initialState:n,controlledProps:r=w,stateComparers:a=w,onStateChange:l=S,actionContext:d}=e,u=s.useCallback((e,n)=>{t.current=n;let o=E(e,r),s=i(o,n);return s},[r,i]),[h,c]=s.useReducer(u,n),g=s.useCallback(e=>{c((0,o.Z)({},e,{context:d}))},[d]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:r,controlledProps:o,lastActionRef:a}=e,l=s.useRef(i);s.useEffect(()=>{if(null===a.current)return;let e=E(l.current,o);Object.keys(t).forEach(i=>{var o,s,l;let d=null!=(o=n[i])?o:y,u=t[i],h=e[i];(null!=h||null==u)&&(null==h||null!=u)&&(null==h||null==u||d(u,h))||null==r||r(null!=(s=a.current.event)?s:null,i,u,null!=(l=a.current.type)?l:"",t)}),l.current=t,a.current=null},[l,t,a,r,n,o])}({nextState:h,initialState:n,stateComparers:null!=a?a:w,onStateChange:null!=l?l:S,controlledProps:r,lastActionRef:t}),[E(h,r),g]}({reducer:null!=W?W:b,actionContext:q,initialState:G,controlledProps:t,stateComparers:$,onStateChange:K}),{highlightedValue:Q,selectedValues:X}=Z,J=function(e){let t=s.useRef({searchString:"",lastTime:null});return s.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)=>Y({type:m.F.textNavigation,event:t,searchString:e})),ee=L(X),et=L(Q),ei=s.useRef([]);s.useEffect(()=>{k(ei.current,p,f)||(Y({type:m.F.itemsChange,event:null,items:p,previousItems:ei.current}),ei.current=p,null==M||M(p))},[p,f,Y,M]);let{notifySelectionChanged:en,notifyHighlightChanged:er,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}=function(){let e=function(){let e=s.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=s.useCallback(t=>{e.publish(v,t)},[e]),i=s.useCallback(t=>{e.publish(C,t)},[e]),n=s.useCallback(t=>e.subscribe(v,t),[e]),r=s.useCallback(t=>e.subscribe(C,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:r}}();s.useEffect(()=>{en(X)},[X,en]),s.useEffect(()=>{er(Q)},[Q,er]);let ea=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===P?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===r&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),Y({type:m.F.keyDown,key:t.key,event:t}),J(t)},el=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=V.current)&&n.contains(t.relatedTarget)||Y({type:m.F.blur,event:t})},ed=s.useCallback(e=>{var t;let i=p.findIndex(t=>f(t,e)),n=(null!=(t=ee.current)?t:[]).some(t=>null!=t&&f(e,t)),o=h(e,i),s=null!=et.current&&f(e,et.current),a="DOM"===r;return{disabled:o,focusable:a,highlighted:s,index:i,selected:n}},[p,h,f,ee,et,r]),eu=s.useMemo(()=>({dispatch:Y,getItemState:ed,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}),[Y,ed,eo,es]);return s.useDebugValue({state:Z}),{contextValue:eu,dispatch:Y,getRootProps:(e={})=>(0,o.Z)({},e,{"aria-activedescendant":"activeDescendant"===r&&null!=Q?u(Q):void 0,onBlur:el(e),onKeyDown:ea(e),tabIndex:"DOM"===r?-1:0,ref:z}),rootRef:z,state:Z}},O=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)},M=i(76563);function P(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:f(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=b(e,t);switch(t.type){case m.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:f(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:f(null,"end",t.context)})}break;case m.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case m.F.blur:return(0,o.Z)({},l,{open:!1})}return l}function F(e,t){return i=>{let n=(0,o.Z)({},i,e(i)),r=(0,o.Z)({},n,t(n));return r}}function B(e){e.preventDefault()}var H=function(e){let t;let{areOptionsEqual:i,buttonRef:n,defaultOpen:r=!1,defaultValue:a,disabled:l=!1,listboxId:u,listboxRef:m,multiple:f=!1,onChange:_,onHighlightChange:b,onOpenChange:v,open:C,options:y,getOptionAsString:w=O,value:S}=e,E=s.useRef(null),k=(0,d.Z)(n,E),L=s.useRef(null),x=(0,h.Z)(u);void 0===S&&void 0===a?t=[]:void 0!==a&&(t=f?a:null==a?[]:[a]);let N=s.useMemo(()=>{if(void 0!==S)return f?S:null==S?[]:[S]},[S,f]),{subitems:D,contextValue:T}=(0,M.Y)(),I=s.useMemo(()=>null!=y?new Map(y.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${x}_${t}`}])):D,[y,D,x]),R=(0,d.Z)(m,L),{getRootProps:H,active:W,focusVisible:V,rootRef:z}=(0,g.Z)({disabled:l,rootRef:k}),U=s.useMemo(()=>Array.from(I.keys()),[I]),$=s.useCallback(e=>{if(void 0!==i){let t=U.find(t=>i(t,e));return I.get(t)}return I.get(e)},[I,i,U]),K=s.useCallback(e=>{var t;let i=$(e);return null!=(t=null==i?void 0:i.disabled)&&t},[$]),j=s.useCallback(e=>{let t=$(e);return t?w(t):""},[$,w]),G=s.useMemo(()=>({selectedValues:N,open:C}),[N,C]),q=s.useCallback(e=>{var t;return null==(t=I.get(e))?void 0:t.id},[I]),Z=s.useCallback((e,t)=>{if(f)null==_||_(e,t);else{var i;null==_||_(e,null!=(i=t[0])?i:null)}},[f,_]),Y=s.useCallback((e,t)=>{null==b||b(e,null!=t?t:null)},[b]),Q=s.useCallback((e,t,i)=>{if("open"===t&&(null==v||v(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=E.current)||n.focus()}},[v]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:r}},getItemId:q,controlledProps:G,itemComparer:i,isItemDisabled:K,rootRef:z,onChange:Z,onHighlightChange:Y,onStateChange:Q,reducerActionContext:s.useMemo(()=>({multiple:f}),[f]),items:U,getItemAsString:j,selectionMode:f?"multiple":"single",stateReducer:P},{dispatch:J,getRootProps:ee,contextValue:et,state:{open:ei,highlightedValue:en,selectedValues:er},rootRef:eo}=A(X),es=e=>t=>{var i;if(null==e||null==(i=e.onClick)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};J(e)}};(0,c.Z)(()=>{if(null!=en){var e;let t=null==(e=$(en))?void 0:e.ref;if(!L.current||!(null!=t&&t.current))return;let i=L.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(L.current.scrollTop+=n.bottom-i.bottom)}},[en,$]);let ea=s.useCallback(e=>$(e),[$]),el=(e={})=>(0,o.Z)({},e,{onClick:es(e),ref:eo,role:"combobox","aria-expanded":ei,"aria-controls":x});s.useDebugValue({selectedOptions:er,highlightedOption:en,open:ei});let ed=s.useMemo(()=>(0,o.Z)({},et,T),[et,T]);return{buttonActive:W,buttonFocusVisible:V,buttonRef:z,contextValue:ed,disabled:l,dispatch:J,getButtonProps:(e={})=>{let t=F(H,ee),i=F(t,el);return i(e)},getListboxProps:(e={})=>(0,o.Z)({},e,{id:x,role:"listbox","aria-multiselectable":f?"true":void 0,ref:R,onMouseDown:B}),getOptionMetadata:ea,listboxRef:eo,open:ei,options:U,value:e.multiple?er:er.length>0?er[0]:null,highlightedOption:en}},W=i(18414),V=i(9268);function z(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:d,totalSubitemCount:u}=t,h=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:d,totalSubitemCount:u}),[d,r,u]);return(0,V.jsx)(M.s.Provider,{value:c,children:(0,V.jsx)(W.Z.Provider,{value:h,children:i})})}var U=i(47562),$=i(18818),K=i(27358),j=i(8189),G=(0,i(19595).Z)((0,V.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"),q=i(50645),Z=i(88930),Y=i(47093),Q=i(326),X=i(18587);function J(e){return(0,X.d6)("MuiSelect",e)}let ee=(0,X.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var et=i(31857);let ei=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function en(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function er(e){return(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}let eo=[{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`}}],es=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,U.Z)(a,J,{})},ea=(0,q.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];return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.5,"--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":"1.25rem"},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":"1.75rem"},{"--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",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)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm},{"&::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)"},[`&.${ee.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${ee.disabled}`]:{"--Select-indicatorColor":"inherit"}}),(0,o.Z)({},a,{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${ee.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]})]}),el=(0,q.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)"}})),ed=(0,q.Z)($.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)`,"--List-radius":e.vars.radius.sm,"--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)"},K.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),eu=(0,q.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e,ownerState:t})=>(0,o.Z)({"--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",marginInlineEnd:"var(--Select-gap)",color:e.vars.palette.text.tertiary},t.focusVisible&&{color:"var(--Select-focusedHighlight)"})),eh=(0,q.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--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",marginInlineStart:"var(--Select-gap)",color:null==n?void 0:n.color}}),ec=(0,q.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1.125rem"},"md"===e.size&&{"--Icon-fontSize":"1.25rem"},"lg"===e.size&&{"--Icon-fontSize":"1.5rem"},{color:"var(--Select-indicatorColor)",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${ee.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"}})),eg=s.forwardRef(function(e,t){var i,l,h,c,g,p,m;let f=(0,Z.Z)({props:e,name:"JoySelect"}),{action:_,autoFocus:b,children:v,defaultValue:C,defaultListboxOpen:y=!1,disabled:w,getSerializedValue:S=er,placeholder:E,listboxId:k,listboxOpen:L,onChange:x,onListboxOpenChange:N,onClose:D,renderValue:T,value:I,size:R="md",variant:A="outlined",color:O="neutral",startDecorator:M,endDecorator:P,indicator:F=n||(n=(0,V.jsx)(G,{})),"aria-describedby":B,"aria-label":W,"aria-labelledby":U,id:$,name:q,slots:X={},slotProps:J={}}=f,eg=(0,r.Z)(f,ei),ep=s.useContext(et.Z),em=null!=(i=null!=(l=e.disabled)?l:null==ep?void 0:ep.disabled)?i:w,ef=null!=(h=null!=(c=e.size)?c:null==ep?void 0:ep.size)?h:R,{getColor:e_}=(0,Y.VT)(A),eb=e_(e.color,null!=ep&&ep.error?"danger":null!=(g=null==ep?void 0:ep.color)?g:O),ev=null!=T?T:en,[eC,ey]=s.useState(null),ew=s.useRef(null),eS=s.useRef(null),eE=s.useRef(null),ek=(0,d.Z)(t,ew);s.useImperativeHandle(_,()=>({focusVisible:()=>{var e;null==(e=eS.current)||e.focus()}}),[]),s.useEffect(()=>{ey(ew.current)},[]),s.useEffect(()=>{b&&eS.current.focus()},[b]);let eL=s.useCallback(e=>{null==N||N(e),e||null==D||D()},[D,N]),{buttonActive:ex,buttonFocusVisible:eN,contextValue:eD,disabled:eT,getButtonProps:eI,getListboxProps:eR,getOptionMetadata:eA,open:eO,value:eM}=H({buttonRef:eS,defaultOpen:y,defaultValue:C,disabled:em,listboxId:k,multiple:!1,onChange:x,onOpenChange:eL,open:L,value:I}),eP=(0,o.Z)({},f,{active:ex,defaultListboxOpen:y,disabled:eT,focusVisible:eN,open:eO,renderValue:ev,value:eM,size:ef,variant:A,color:eb}),eF=es(eP),eB=(0,o.Z)({},eg,{slots:X,slotProps:J}),eH=s.useMemo(()=>{var e;return null!=(e=eA(eM))?e:null},[eA,eM]),[eW,eV]=(0,Q.Z)("root",{ref:ek,className:eF.root,elementType:ea,externalForwardedProps:eB,ownerState:eP}),[ez,eU]=(0,Q.Z)("button",{additionalProps:{"aria-describedby":null!=B?B:null==ep?void 0:ep["aria-describedby"],"aria-label":W,"aria-labelledby":null!=U?U:null==ep?void 0:ep.labelId,id:null!=$?$:null==ep?void 0:ep.htmlFor,name:q},className:eF.button,elementType:el,externalForwardedProps:eB,getSlotProps:eI,ownerState:eP}),[e$,eK]=(0,Q.Z)("listbox",{additionalProps:{ref:eE,anchorEl:eC,open:eO,placement:"bottom",keepMounted:!0},className:eF.listbox,elementType:ed,externalForwardedProps:eB,getSlotProps:eR,ownerState:(0,o.Z)({},eP,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||ef,variant:e.variant||"outlined",color:e.color||"neutral",disableColorInversion:!e.disablePortal})}),[ej,eG]=(0,Q.Z)("startDecorator",{className:eF.startDecorator,elementType:eu,externalForwardedProps:eB,ownerState:eP}),[eq,eZ]=(0,Q.Z)("endDecorator",{className:eF.endDecorator,elementType:eh,externalForwardedProps:eB,ownerState:eP}),[eY,eQ]=(0,Q.Z)("indicator",{className:eF.indicator,elementType:ec,externalForwardedProps:eB,ownerState:eP}),eX=s.useMemo(()=>(0,o.Z)({},eD,{color:eb}),[eb,eD]),eJ=s.useMemo(()=>[...eo,...eK.modifiers||[]],[eK.modifiers]),e0=null;return eC&&(e0=(0,V.jsx)(e$,(0,o.Z)({},eK,{className:(0,a.Z)(eK.className,(null==(p=eK.ownerState)?void 0:p.color)==="context"&&ee.colorContext),modifiers:eJ},!(null!=(m=f.slots)&&m.listbox)&&{as:u.Z,slots:{root:eK.as||"ul"}},{children:(0,V.jsx)(z,{value:eX,children:(0,V.jsx)(j.Z.Provider,{value:"select",children:(0,V.jsx)(K.Z,{nested:!0,children:v})})})})),eK.disablePortal||(e0=(0,V.jsx)(Y.ZP.Provider,{value:void 0,children:e0}))),(0,V.jsxs)(s.Fragment,{children:[(0,V.jsxs)(eW,(0,o.Z)({},eV,{children:[M&&(0,V.jsx)(ej,(0,o.Z)({},eG,{children:M})),(0,V.jsx)(ez,(0,o.Z)({},eU,{children:eH?ev(eH):E})),P&&(0,V.jsx)(eq,(0,o.Z)({},eZ,{children:P})),F&&(0,V.jsx)(eY,(0,o.Z)({},eQ,{children:F}))]})),e0,q&&(0,V.jsx)("input",{type:"hidden",name:q,value:S(eH)})]})});var ep=eg},69962:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(72120),d=i(47562),u=i(88930),h=i(50645),c=i(18587);function g(e){return(0,c.d6)("MuiSkeleton",e)}(0,c.sI)("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","h5","h6","body1","body2","body3"]);var p=i(326),m=i(9268);let f=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"],_=e=>e,b,v,C,y,w,S=e=>{let{variant:t,level:i}=e,n={root:["root",t&&`variant${(0,a.Z)(t)}`,i&&`level${(0,a.Z)(i)}`]};return(0,d.Z)(n,g,{})},E=(0,l.F4)(b||(b=_` 0% { opacity: 1; } @@ -24,7 +24,7 @@ 100% { transform: translateX(100%); } -`)),L=(0,c.Z)("span",{name:"JoySkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>"pulse"===e.animation&&"inline"!==e.variant&&(0,l.iv)(C||(C=_` +`)),L=(0,h.Z)("span",{name:"JoySkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>"pulse"===e.animation&&"inline"!==e.variant&&(0,l.iv)(C||(C=_` &::before { animation: ${0} 1.5s ease-in-out 0.5s infinite; background: ${0}; @@ -56,7 +56,7 @@ ); transform: translateX(-100%); /* Avoid flash during server-side hydration */ } - `),t.vars.palette.background.level2,k),({ownerState:e,theme:t})=>{var i,n,o,s;let a=(null==(i=t.components)||null==(i=i.JoyTypography)||null==(i=i.defaultProps)?void 0:i.level)||"body1";return[{display:"block",position:"relative","--unstable_pseudo-zIndex":9,"--unstable_pulse-bg":t.vars.palette.background.level1,overflow:"hidden",cursor:"default","& *":{visibility:"hidden"},"&::before":{display:"block",content:'" "',top:0,bottom:0,left:0,right:0,zIndex:"var(--unstable_pseudo-zIndex)",borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"--unstable_wave-bg":"rgba(255 255 255 / 0.1)"}},"rectangular"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",height:"auto",width:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"circular"===e.variant&&(0,r.Z)({borderRadius:"50%",width:"100%",height:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"text"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",background:"transparent",width:"100%"},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level||a],{paddingBlockStart:`calc((${(null==(n=t.typography[e.level||a])?void 0:n.lineHeight)||1} - 1) * 0.56em)`,paddingBlockEnd:`calc((${(null==(o=t.typography[e.level||a])?void 0:o.lineHeight)||1} - 1) * 0.44em)`,"&::before":(0,r.Z)({height:"1em"},t.typography[e.level||a],"wave"===e.animation&&{backgroundColor:t.vars.palette.background.level2},!e.animation&&{backgroundColor:t.vars.palette.background.level2}),"&::after":(0,r.Z)({height:"1em",top:`calc((${(null==(s=t.typography[e.level||a])?void 0:s.lineHeight)||1} - 1) * 0.56em)`},t.typography[e.level||a])})),"inline"===e.variant&&(0,r.Z)({display:"inline",position:"initial",borderRadius:"min(0.15em, 6px)"},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"-webkit-mask-image":"-webkit-radial-gradient(white, black)","&::before":{position:"absolute",zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}},"pulse"===e.animation&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}}),"overlay"===e.variant&&(0,r.Z)({borderRadius:t.vars.radius.xs,position:"absolute",width:"100%",height:"100%",zIndex:"var(--unstable_pseudo-zIndex)"},"pulse"===e.animation&&{backgroundColor:t.vars.palette.background.surface},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"&::before":{position:"absolute"}})]}),x=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoySkeleton"}),{className:a,component:l="span",children:d,animation:c="pulse",overlay:h=!1,loading:g=!0,variant:_="overlay",level:b="text"===_?"body1":"inherit",height:v,width:C,sx:y,slots:w={},slotProps:E={}}=i,k=(0,n.Z)(i,m),x=(0,r.Z)({},k,{component:l,slots:w,slotProps:E,sx:[{width:C,height:v},...Array.isArray(y)?y:[y]]}),N=(0,r.Z)({},i,{animation:c,component:l,level:b,loading:g,overlay:h,variant:_,width:C,height:v}),D=S(N),[T,I]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:L,externalForwardedProps:x,ownerState:N});return g?(0,f.jsx)(T,(0,r.Z)({},I,{children:d})):(0,f.jsx)(o.Fragment,{children:o.Children.map(d,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)})});x.muiName="Skeleton";var N=x},35891:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(24263),d=i(49657),u=i(66519),c=i(21454),h=i(99179),g=i(47562),p=i(67222),f=i(50645),m=i(88930),_=i(326),b=i(47093),v=i(18587);function C(e){return(0,v.d6)("MuiTooltip",e)}(0,v.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorInfo","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var y=i(9268);let w=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],S=e=>{let{arrow:t,variant:i,color:n,size:r,placement:o,touch:s}=e,l={root:["root",t&&"tooltipArrow",s&&"touch",r&&`size${(0,a.Z)(r)}`,n&&`color${(0,a.Z)(n)}`,i&&`variant${(0,a.Z)(i)}`,`tooltipPlacement${(0,a.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,g.Z)(l,C,{})},E=(0,f.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var i,n,o;let s=null==(i=t.variants[e.variant])?void 0:i[e.color];return(0,r.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1rem","--Tooltip-arrowSize":"8px",padding:t.spacing(.5,.625),fontSize:t.vars.fontSize.xs},"md"===e.size&&{"--Icon-fontSize":"1.125rem","--Tooltip-arrowSize":"10px",padding:t.spacing(.625,.75),fontSize:t.vars.fontSize.sm},"lg"===e.size&&{"--Icon-fontSize":"1.25rem","--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1),fontSize:t.vars.fontSize.md},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.xs,boxShadow:t.shadow.sm,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,lineHeight:t.vars.lineHeight.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},s,!s.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(n=e.placement)&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(o=e.placement)&&o.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,f.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var i,n,r;let o=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(n=null==o?void 0:o.backgroundColor)?n:e.vars.palette.background.surface,borderRightColor:null!=(r=null==o?void 0:o.backgroundColor)?r:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${o.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),L=!1,x=null,N={x:0,y:0};function D(e,t){return i=>{t&&t(i),e(i)}}function T(e,t){return i=>{t&&t(i),e(i)}}let I=o.forwardRef(function(e,t){var i;let a=(0,m.Z)({props:e,name:"JoyTooltip"}),{children:g,className:f,component:v,arrow:C=!1,describeChild:I=!1,disableFocusListener:R=!1,disableHoverListener:A=!1,disableInteractive:O=!1,disableTouchListener:M=!1,enterDelay:P=100,enterNextDelay:F=0,enterTouchDelay:B=700,followCursor:W=!1,id:H,leaveDelay:V=0,leaveTouchDelay:z=1500,onClose:U,onOpen:$,open:K,disablePortal:j,direction:G,keepMounted:q,modifiers:Z,placement:Y="bottom",title:Q,color:X="neutral",variant:J="solid",size:ee="md",slots:et={},slotProps:ei={}}=a,en=(0,n.Z)(a,w),{getColor:er}=(0,b.VT)(J),eo=j?er(e.color,X):X,[es,ea]=o.useState(),[el,ed]=o.useState(null),eu=o.useRef(!1),ec=O||W,eh=o.useRef(),eg=o.useRef(),ep=o.useRef(),ef=o.useRef(),[em,e_]=(0,l.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"}),eb=em,ev=(0,d.Z)(H),eC=o.useRef(),ey=o.useCallback(()=>{void 0!==eC.current&&(document.body.style.WebkitUserSelect=eC.current,eC.current=void 0),clearTimeout(ef.current)},[]);o.useEffect(()=>()=>{clearTimeout(eh.current),clearTimeout(eg.current),clearTimeout(ep.current),ey()},[ey]);let ew=e=>{x&&clearTimeout(x),L=!0,e_(!0),$&&!eb&&$(e)},eS=(0,u.Z)(e=>{x&&clearTimeout(x),x=setTimeout(()=>{L=!1},800+V),e_(!1),U&&eb&&U(e),clearTimeout(eh.current),eh.current=setTimeout(()=>{eu.current=!1},150)}),eE=e=>{eu.current&&"touchstart"!==e.type||(es&&es.removeAttribute("title"),clearTimeout(eg.current),clearTimeout(ep.current),P||L&&F?eg.current=setTimeout(()=>{ew(e)},L?F:P):ew(e))},ek=e=>{clearTimeout(eg.current),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},V)},{isFocusVisibleRef:eL,onBlur:ex,onFocus:eN,ref:eD}=(0,c.Z)(),[,eT]=o.useState(!1),eI=e=>{ex(e),!1===eL.current&&(eT(!1),ek(e))},eR=e=>{es||ea(e.currentTarget),eN(e),!0===eL.current&&(eT(!0),eE(e))},eA=e=>{eu.current=!0;let t=g.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eb)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,eb]);let eO=(0,h.Z)(ea,t),eM=(0,h.Z)(eD,eO),eP=(0,h.Z)(g.ref,eM);"number"==typeof Q||Q||(eb=!1);let eF=o.useRef(null),eB={},eW="string"==typeof Q;I?(eB.title=eb||!eW||A?null:Q,eB["aria-describedby"]=eb?ev:null):(eB["aria-label"]=eW?Q:null,eB["aria-labelledby"]=eb&&!eW?ev:null);let eH=(0,r.Z)({},eB,en,{component:v},g.props,{className:(0,s.Z)(f,g.props.className),onTouchStart:eA,ref:eP},W?{onMouseMove:e=>{let t=g.props;t.onMouseMove&&t.onMouseMove(e),N={x:e.clientX,y:e.clientY},eF.current&&eF.current.update()}}:{}),eV={};M||(eH.onTouchStart=e=>{eA(e),clearTimeout(ep.current),clearTimeout(eh.current),ey(),eC.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ef.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eC.current,eE(e)},B)},eH.onTouchEnd=e=>{g.props.onTouchEnd&&g.props.onTouchEnd(e),ey(),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},z)}),A||(eH.onMouseOver=D(eE,eH.onMouseOver),eH.onMouseLeave=D(ek,eH.onMouseLeave),ec||(eV.onMouseOver=eE,eV.onMouseLeave=ek)),R||(eH.onFocus=T(eR,eH.onFocus),eH.onBlur=T(eI,eH.onBlur),ec||(eV.onFocus=eR,eV.onBlur=eI));let ez=(0,r.Z)({},a,{arrow:C,disableInteractive:ec,placement:Y,touch:eu.current,color:eo,variant:J,size:ee}),eU=S(ez),e$=(0,r.Z)({},en,{component:v,slots:et,slotProps:ei}),eK=o.useMemo(()=>[{name:"arrow",enabled:!!el,options:{element:el,padding:6}},{name:"offset",options:{offset:[0,10]}},...Z||[]],[el,Z]),[ej,eG]=(0,_.Z)("root",{additionalProps:(0,r.Z)({id:ev,popperRef:eF,placement:Y,anchorEl:W?{getBoundingClientRect:()=>({top:N.y,left:N.x,right:N.x,bottom:N.y,width:0,height:0})}:es,open:!!es&&eb,disablePortal:j,keepMounted:q,direction:G,modifiers:eK},eV),ref:null,className:eU.root,elementType:E,externalForwardedProps:e$,ownerState:ez}),[eq,eZ]=(0,_.Z)("arrow",{ref:ed,className:eU.arrow,elementType:k,externalForwardedProps:e$,ownerState:ez}),eY=(0,y.jsxs)(ej,(0,r.Z)({},eG,!(null!=(i=a.slots)&&i.root)&&{as:p.Z,slots:{root:v||"div"}},{children:[Q,C?(0,y.jsx)(eq,(0,r.Z)({},eZ)):null]}));return(0,y.jsxs)(o.Fragment,{children:[o.isValidElement(g)&&o.cloneElement(g,eH),j?eY:(0,y.jsx)(b.ZP.Provider,{value:void 0,children:eY})]})});var R=I},82372:function(e,t,i){e=i.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,i){"use strict";var n=e("./lib/dom"),r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,d=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,c=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,i){var n=e.session.getTextRange();return i?n.replace(/\n\r?([ \t]*\S)/g,"\n"+i+"$1"):n},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return c.getText&&c.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};function g(e){var t=new Date().toLocaleString("en-us",e);return 1==t.length?"0"+t:t}h.SELECTED_TEXT=h.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=h}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return(e=e.substr(1),/^\d+$/.test(e))?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function i(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+i("/")+"+)/",onMatch:function(e,t,i){var n=i[0];return n.fmtString=!0,n.guard=e.slice(1,-1),n.flag="",""},next:"formatString"};return e.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)&&(e=n),[e]}},{regex:/}/,onMatch:function(e,t,i){return[i.length?i.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1));return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+i("\\|")+"*\\|",onMatch:function(e,t,i){var n=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\x00"}).split("\x00").map(function(e){return{value:e}});return i[0].choices=n,[n[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,i){return i.length&&i[0].expectElse?(i[0].expectElse=!1,i[0].ifEnd={elseEnd:i[0]},[i[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)?e=n:"n"==n?e="\n":"t"==n?e=" ":-1!="ulULE".indexOf(n)&&(e={changeCase:n,local:n>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,i){var n=i.shift();return n&&(n.flag=e.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,i){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,i){var n={text:e.slice(2)};return i.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,i){var n=i.shift();return this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,i){return i[0].formatFunction=e.slice(2,-1),[i.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,i){"+"==e[1]&&(i[0].ifEnd=i[0]),"?"==e[1]&&(i[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},e.prototype.getVariableValue=function(e,t,i){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var n=this.variables[t];return"function"==typeof n&&(n=this.variables[t](e,t,i)),null==n?"":n},e.prototype.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var n=t.flag||"",r=t.guard;r=new RegExp(r,n.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(r,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(o,i),n="E",r=0;r=0&&o.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{n=JSON.parse(t[1]),i.push(n)}catch(e){}if(t[4])n.content=t[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=a.exec(s)[1],n.trigger=a.exec(s)[1],n.endTrigger=a.exec(s)[1],n.endGuard=a.exec(s)[1]}else"snippet"==o?(n.tabTrigger=s.match(/^\S*/)[0],n.name||(n.name=s)):o&&(n[o]=s)}}return i},e.prototype.getSnippetByName=function(e,t){var i,n=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var r=n[t];return r&&(i=r[e]),!!i},this),i},e}();r.implement(p.prototype,o);var f=function(e,t,i){void 0===i&&(i={});var n=e.getCursorPosition(),r=e.session.getLine(n.row),o=e.session.getTabString(),s=r.match(/^\s*/)[0];n.column1?(_=t[t.length-1].length,m+=t.length-1):_+=e.length,b+=e}else e&&(e.start?e.end={row:m,column:_}:e.start={row:m,column:_})}),{text:b,tabstops:l,tokens:a}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],i=this.selectedTabstop||{},n=i.parents||{},r=this.tabstops.slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new d,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var _=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},b=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};n.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new p,(function(){this.insertSnippet=function(e,i){return t.snippetManager.insertSnippet(this,e,i)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(e("./editor").Editor.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(e,t,i){"use strict";var n=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),d=e("../config").nls,u=function(e){return"suggest-aria-id:".concat(e)},c=function(e){var t=new n(e);t.$maxLines=4;var i=new r(t);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusTimeout=0,i.$highlightTagPending=!0,i};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n","autocompletion.css",!1),t.AcePopup=function(e){var t,i=l.createElement("div"),n=new c(i);e&&e.appendChild(i),i.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role","listbox"),n.renderer.$textLayer.element.setAttribute("aria-label",d("Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),g.start.row=g.end.row=t.row,e.stop()});var h=new o(-1,0,-1,1/0),g=new o(-1,0,-1,1/0);g.id=n.session.addMarker(g,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?h.id&&(n.session.removeMarker(h.id),h.id=null):h.id=n.session.addMarker(h,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",function(e){if(!t){t=e;return}if(t.x!=e.x||t.y!=e.y){(t=e).scrollTop=n.renderer.scrollTop;var i=t.getDocumentPosition().row;h.start.row!=i&&(h.id||n.setRow(i),f(i))}}),n.renderer.on("beforeRender",function(){if(t&&-1!=h.start.row){t.$pos=null;var e=t.getDocumentPosition().row;h.id||n.setRow(e),f(e,!0)}}),n.renderer.on("afterRender",function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow],r=document.activeElement;if(i!==t.selectedNode&&t.selectedNode&&(l.removeCssClass(t.selectedNode,"ace_selected"),r.removeAttribute("aria-activedescendant"),t.selectedNode.removeAttribute("id")),t.selectedNode=i,i){l.addCssClass(i,"ace_selected");var o=u(e);i.id=o,t.element.setAttribute("aria-activedescendant",o),r.setAttribute("aria-activedescendant",o),i.setAttribute("role","option"),i.setAttribute("aria-label",n.getData(e).value),i.setAttribute("aria-setsize",n.data.length),i.setAttribute("aria-posinset",e+1),i.setAttribute("aria-describedby","doc-tooltip")}});var p=function(){f(-1)},f=function(e,t){e!==h.start.row&&(h.start.row=h.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return h.start.row},s.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var m=n.session.bgTokenizer;return m.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var r=t.caption||t.value||t.name;function o(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,d=0,u=0;u<=a.length;u++)if(u!=d&&(t.matchMask&1<=u?"bottom":"top"),"top"===r?(c.bottom=e.top-this.$borderSize,c.top=c.bottom-u):"bottom"===r&&(c.top=e.top+i+this.$borderSize,c.bottom=c.top+u);var p=c.top>=0&&c.bottom<=a;if(!o&&!p)return!1;p?d.$maxPixelHeight=null:"top"===r?d.$maxPixelHeight=g:d.$maxPixelHeight=h,"top"===r?(s.style.top="",s.style.bottom=a-c.bottom+"px",n.isTopdown=!1):(s.style.top=c.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var f=e.left;return f+s.offsetWidth>l&&(f=l-s.offsetWidth),s.style.left=f+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),t=null),n.anchorPos=e,n.anchor=r,!0},n.show=function(e,t,i){this.tryShow(e,t,i?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),i=this.session.getLength()-1;switch(e){case"up":t=t<=0?i:t-1;break;case"down":t=t>=i?-1:t+1;break;case"start":t=0;break;case"end":t=i}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c,t.getAriaId=u}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(e,t,i){"use strict";var n=e("../snippets").snippetManager,r=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,i){if(i=i||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null),!e||!t)return!1;var r=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!!(r&&r.startsWith(i))&&(this.editor=e,""===(r=r.slice(i.length))?e.removeGhostText():e.setGhostText(r),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();t.AceInline=r}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,i){"use strict";t.parForEach=function(e,t,i){var n=0,r=e.length;0===r&&i();for(var o=0;o=0&&i.test(e[o]);o--)r.push(e[o]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var r=[],o=t;othis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e;var i=null;t=(t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)})).filter(function(e){var t=e.snippet||e.caption||e.value;return t!==i&&(i=t,!0)}),this.filtered=t},e.prototype.filterCompletions=function(e,t){var i=[],n=t.toUpperCase(),r=t.toLowerCase();e:for(var o,s=0;o=e[s];s++){var a,l,d=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(d){var u=-1,c=0,h=0;if(this.exactMatch){if(t!==d.substr(0,t.length))continue}else{var g=d.toLowerCase().indexOf(r);if(g>-1)h=g;else for(var p=0;p=0&&(m<0||f0&&(-1===u&&(h+=10),h+=l,c|=1<",a.escapeHTML(e.caption),"","
",a.escapeHTML(c(e.snippet))].join(""))},id:"snippetCompleter"},g=[h,d,u];t.setCompleters=function(e){g.length=0,e&&g.push.apply(g,e)},t.addCompleter=function(e){g.push(e)},t.textCompleter=d,t.keyWordCompleter=u,t.snippetCompleter=h;var p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){m(t.session.$mode)},m=function(e){"string"==typeof e&&(e=s.$modes[e]),e&&(r.files||(r.files={}),_(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(m))},_=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},s.loadModule(t,function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){m("ace/mode/"+e)})))}))},b=function(e){var t=e.editor,i=t.completer&&t.completer.activated;if("backspace"===e.command.name)i&&!l.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!i){n=e;var r=e.editor.$liveAutocompletionDelay;r?v.delay(r):C(e)}},v=a.delayedCall(function(){C(n)},0),C=function(e){var t=e.editor,i=l.getCompletionPrefix(t),n=l.triggerAutocomplete(t);if((i||n)&&i.length>=t.$liveAutocompletionThreshold){var r=o.for(t);r.autoShown=!0,r.showPopup(t)}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.on("afterExec",b)):this.commands.off("afterExec",b)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",f),f(null,this)):(this.commands.removeCommand(p),this.off("changeMode",f))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},7527:function(e,t,i){e=i.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,i){"use strict";var n=e("./lib/oop");e("./lib/lang");var r=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(e){this.$cEditor=e}).bind(this))};(function(){n.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new s(e,this.$theme));return t.on("focus",(function(){this._emit("focus",t)}).bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,r=0;rd)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(n==d)break}a=t}}return new r(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),o=e.getLength(),s=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++is)return new r(s,n,u,t.length)}}).call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,i){"use strict";var n=e("../lib/oop"),r=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a};n.inherits(d,r),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(n+=i),n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}).call(d.prototype),t.Mode=d}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},1777:function(e,t,i){"use strict";i.d(t,{default:function(){return ea}});var n,r=i(8683),o=i.n(r),s=i(86006),a=i(79746),l=i(67518),d=i(40399),u=i(56222),c=i(40431),h=i(88684),g=i(65877),p=i(965);function f(e){return!!(e.addonBefore||e.addonAfter)}function m(e){return!!(e.prefix||e.suffix||e.allowClear)}function _(e,t,i,n){if(i){var r=t;if("click"===t.type){var o=e.cloneNode(!0);r=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",i(r);return}if(void 0!==n){r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,i(r);return}i(r)}}function b(e){return null==e?"":String(e)}var v=function(e){var t=e.inputElement,i=e.prefixCls,n=e.prefix,r=e.suffix,a=e.addonBefore,l=e.addonAfter,d=e.className,u=e.style,_=e.disabled,b=e.readOnly,v=e.focused,C=e.triggerFocus,y=e.allowClear,w=e.value,S=e.handleReset,E=e.hidden,k=e.classes,L=e.classNames,x=e.dataAttrs,N=e.styles,D=e.components,T=(null==D?void 0:D.affixWrapper)||"span",I=(null==D?void 0:D.groupWrapper)||"span",R=(null==D?void 0:D.wrapper)||"span",A=(null==D?void 0:D.groupAddon)||"span",O=(0,s.useRef)(null),M=(0,s.cloneElement)(t,{value:w,hidden:E,className:o()(null===(P=t.props)||void 0===P?void 0:P.className,!m(e)&&!f(e)&&d)||null,style:(0,h.Z)((0,h.Z)({},null===(F=t.props)||void 0===F?void 0:F.style),m(e)||f(e)?{}:u)});if(m(e)){var P,F,B,W="".concat(i,"-affix-wrapper"),H=o()(W,(B={},(0,g.Z)(B,"".concat(W,"-disabled"),_),(0,g.Z)(B,"".concat(W,"-focused"),v),(0,g.Z)(B,"".concat(W,"-readonly"),b),(0,g.Z)(B,"".concat(W,"-input-with-clear-btn"),r&&y&&w),B),!f(e)&&d,null==k?void 0:k.affixWrapper,null==L?void 0:L.affixWrapper),V=(r||y)&&s.createElement("span",{className:o()("".concat(i,"-suffix"),null==L?void 0:L.suffix),style:null==N?void 0:N.suffix},function(){if(!y)return null;var e,t=!_&&!b&&w,n="".concat(i,"-clear-icon"),a="object"===(0,p.Z)(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";return s.createElement("span",{onClick:S,onMouseDown:function(e){return e.preventDefault()},className:o()(n,(e={},(0,g.Z)(e,"".concat(n,"-hidden"),!t),(0,g.Z)(e,"".concat(n,"-has-suffix"),!!r),e)),role:"button",tabIndex:-1},a)}(),r);M=s.createElement(T,(0,c.Z)({className:H,style:(0,h.Z)((0,h.Z)({},f(e)?void 0:u),null==N?void 0:N.affixWrapper),hidden:!f(e)&&E,onClick:function(e){var t;null!==(t=O.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==x?void 0:x.affixWrapper,{ref:O}),n&&s.createElement("span",{className:o()("".concat(i,"-prefix"),null==L?void 0:L.prefix),style:null==N?void 0:N.prefix},n),(0,s.cloneElement)(t,{value:w,hidden:null}),V)}if(f(e)){var z="".concat(i,"-group"),U="".concat(z,"-addon"),$=o()("".concat(i,"-wrapper"),z,null==k?void 0:k.wrapper),K=o()("".concat(i,"-group-wrapper"),d,null==k?void 0:k.group);return s.createElement(I,{className:K,style:u,hidden:E},s.createElement(R,{className:$},a&&s.createElement(A,{className:U},a),(0,s.cloneElement)(M,{hidden:null}),l&&s.createElement(A,{className:U},l)))}return M},C=i(90151),y=i(60456),w=i(89301),S=i(63940),E=i(73234),k=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],L=(0,s.forwardRef)(function(e,t){var i,n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,d=e.onPressEnter,u=e.onKeyDown,f=e.prefixCls,m=void 0===f?"rc-input":f,L=e.disabled,x=e.htmlSize,N=e.className,D=e.maxLength,T=e.suffix,I=e.showCount,R=e.type,A=e.classes,O=e.classNames,M=e.styles,P=(0,w.Z)(e,k),F=(0,S.Z)(e.defaultValue,{value:e.value}),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=(0,s.useState)(!1),z=(0,y.Z)(V,2),U=z[0],$=z[1],K=(0,s.useRef)(null),j=function(e){K.current&&function(e,t){if(e){e.focus(t);var i=(t||{}).cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}(K.current,e)};return(0,s.useImperativeHandle)(t,function(){return{focus:j,blur:function(){var e;null===(e=K.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,i){var n;null===(n=K.current)||void 0===n||n.setSelectionRange(e,t,i)},select:function(){var e;null===(e=K.current)||void 0===e||e.select()},input:K.current}}),(0,s.useEffect)(function(){$(function(e){return(!e||!L)&&e})},[L]),s.createElement(v,(0,c.Z)({},P,{prefixCls:m,className:N,inputElement:(i=(0,E.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),s.createElement("input",(0,c.Z)({autoComplete:n},i,{onChange:function(t){void 0===e.value&&H(t.target.value),K.current&&_(K.current,t,r)},onFocus:function(e){$(!0),null==a||a(e)},onBlur:function(e){$(!1),null==l||l(e)},onKeyDown:function(e){d&&"Enter"===e.key&&d(e),null==u||u(e)},className:o()(m,(0,g.Z)({},"".concat(m,"-disabled"),L),null==O?void 0:O.input),style:null==M?void 0:M.input,ref:K,size:x,type:void 0===R?"text":R}))),handleReset:function(e){H(""),j(),K.current&&_(K.current,e,r)},value:b(W),focused:U,triggerFocus:j,suffix:function(){var e=Number(D)>0;if(T||I){var t=b(W),i=(0,C.Z)(t).length,n="object"===(0,p.Z)(I)?I.formatter({value:t,count:i,maxLength:D}):"".concat(i).concat(e?" / ".concat(D):"");return s.createElement(s.Fragment,null,!!I&&s.createElement("span",{className:o()("".concat(m,"-show-count-suffix"),(0,g.Z)({},"".concat(m,"-show-count-has-suffix"),!!T),null==O?void 0:O.count),style:(0,h.Z)({},null==M?void 0:M.count)},n),T)}return null}(),disabled:L,classes:A,classNames:O,styles:M}))}),x=i(92510),N=i(24338),D=i(20538),T=i(30069),I=i(12381);function R(e,t){let i=(0,s.useRef)([]),n=()=>{i.current.push(setTimeout(()=>{var t,i,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(i=e.current)||void 0===i?void 0:i.input.getAttribute("type"))==="password"&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(t&&n(),()=>i.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}var A=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let O=(0,s.forwardRef)((e,t)=>{var i;let n;let{prefixCls:r,bordered:c=!0,status:h,size:g,disabled:p,onBlur:f,onFocus:m,suffix:_,allowClear:b,addonAfter:v,addonBefore:C,className:y,style:w,styles:S,rootClassName:E,onChange:k,classNames:O}=e,M=A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:P,direction:F,input:B}=s.useContext(a.E_),W=P("input",r),H=(0,s.useRef)(null),[V,z]=(0,d.ZP)(W),{compactSize:U,compactItemClassnames:$}=(0,I.ri)(W,F),K=(0,T.Z)(e=>{var t;return null!==(t=null!=g?g:U)&&void 0!==t?t:e}),j=s.useContext(D.Z),G=null!=p?p:j,{status:q,hasFeedback:Z,feedbackIcon:Y}=(0,s.useContext)(l.aM),Q=(0,N.F)(q,h),X=!!(e.prefix||e.suffix||e.allowClear)||!!Z,J=(0,s.useRef)(X);(0,s.useEffect)(()=>{X&&J.current,J.current=X},[X]);let ee=R(H,!0),et=(Z||_)&&s.createElement(s.Fragment,null,_,Z&&Y);return"object"==typeof b&&(null==b?void 0:b.clearIcon)?n=b:b&&(n={clearIcon:s.createElement(u.Z,null)}),V(s.createElement(L,Object.assign({ref:(0,x.sQ)(t,H),prefixCls:W,autoComplete:null==B?void 0:B.autoComplete},M,{disabled:G,onBlur:e=>{ee(),null==f||f(e)},onFocus:e=>{ee(),null==m||m(e)},style:Object.assign(Object.assign({},null==B?void 0:B.style),w),styles:Object.assign(Object.assign({},null==B?void 0:B.styles),S),suffix:et,allowClear:n,className:o()(y,E,$,null==B?void 0:B.className),onChange:e=>{ee(),null==k||k(e)},addonAfter:v&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},v)),addonBefore:C&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},C)),classNames:Object.assign(Object.assign(Object.assign({},O),null==B?void 0:B.classNames),{input:o()({[`${W}-sm`]:"small"===K,[`${W}-lg`]:"large"===K,[`${W}-rtl`]:"rtl"===F,[`${W}-borderless`]:!c},!X&&(0,N.Z)(W,Q),null==O?void 0:O.input,null===(i=null==B?void 0:B.classNames)||void 0===i?void 0:i.input,z)}),classes:{affixWrapper:o()({[`${W}-affix-wrapper-sm`]:"small"===K,[`${W}-affix-wrapper-lg`]:"large"===K,[`${W}-affix-wrapper-rtl`]:"rtl"===F,[`${W}-affix-wrapper-borderless`]:!c},(0,N.Z)(`${W}-affix-wrapper`,Q,Z),z),wrapper:o()({[`${W}-group-rtl`]:"rtl"===F},z),group:o()({[`${W}-group-wrapper-sm`]:"small"===K,[`${W}-group-wrapper-lg`]:"large"===K,[`${W}-group-wrapper-rtl`]:"rtl"===F,[`${W}-group-wrapper-disabled`]:G},(0,N.Z)(`${W}-group-wrapper`,Q,Z),z)}})))});var M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=i(1240),F=s.forwardRef(function(e,t){return s.createElement(P.Z,(0,c.Z)({},e,{ref:t,icon:M}))}),B=i(31515),W=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let H=e=>e?s.createElement(B.Z,null):s.createElement(F,null),V={click:"onClick",hover:"onMouseOver"},z=s.forwardRef((e,t)=>{let{visibilityToggle:i=!0}=e,n="object"==typeof i&&void 0!==i.visible,[r,l]=(0,s.useState)(()=>!!n&&i.visible),d=(0,s.useRef)(null);s.useEffect(()=>{n&&l(i.visible)},[n,i]);let u=R(d),c=()=>{let{disabled:t}=e;t||(r&&u(),l(e=>{var t;let n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n}))},{className:h,prefixCls:g,inputPrefixCls:p,size:f}=e,m=W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=s.useContext(a.E_),b=_("input",p),v=_("input-password",g),C=i&&(t=>{let{action:i="click",iconRender:n=H}=e,o=V[i]||"",a=n(r),l={[o]:c,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return s.cloneElement(s.isValidElement(a)?a:s.createElement("span",null,a),l)})(v),y=o()(v,h,{[`${v}-${f}`]:!!f}),w=Object.assign(Object.assign({},(0,E.Z)(m,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:y,prefixCls:b,suffix:C});return f&&(w.size=f),s.createElement(O,Object.assign({ref:(0,x.sQ)(t,d)},w))});var U=i(63362),$=i(52593),K=i(50946),j=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let G=s.forwardRef((e,t)=>{let i;let{prefixCls:n,inputPrefixCls:r,className:l,size:d,suffix:u,enterButton:c=!1,addonAfter:h,loading:g,disabled:p,onSearch:f,onChange:m,onCompositionStart:_,onCompositionEnd:b}=e,v=j(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:y}=s.useContext(a.E_),w=s.useRef(!1),S=C("input-search",n),E=C("input",r),{compactSize:k}=(0,I.ri)(S,y),L=(0,T.Z)(e=>{var t;return null!==(t=null!=d?d:k)&&void 0!==t?t:e}),N=s.useRef(null),D=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},R=e=>{var t,i;f&&f(null===(i=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===i?void 0:i.value,e)},A="boolean"==typeof c?s.createElement(U.Z,null):null,M=`${S}-button`,P=c||{},F=P.type&&!0===P.type.__ANT_BUTTON;i=F||"button"===P.type?(0,$.Tm)(P,Object.assign({onMouseDown:D,onClick:e=>{var t,i;null===(i=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===i||i.call(t,e),R(e)},key:"enterButton"},F?{className:M,size:L}:{})):s.createElement(K.ZP,{className:M,type:c?"primary":void 0,size:L,disabled:p,key:"enterButton",onMouseDown:D,onClick:R,loading:g,icon:A},c),h&&(i=[i,(0,$.Tm)(h,{key:"addonAfter"})]);let B=o()(S,{[`${S}-rtl`]:"rtl"===y,[`${S}-${L}`]:!!L,[`${S}-with-button`]:!!c},l);return s.createElement(O,Object.assign({ref:(0,x.sQ)(N,t),onPressEnter:e=>{w.current||g||R(e)}},v,{size:L,onCompositionStart:e=>{w.current=!0,null==_||_(e)},onCompositionEnd:e=>{w.current=!1,null==b||b(e)},prefixCls:E,addonAfter:i,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e),m&&m(e)},className:B,disabled:p}))});var q=i(29333),Z=i(38358),Y=i(66643),Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X={},J=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ee=s.forwardRef(function(e,t){var i=e.prefixCls,r=(e.onPressEnter,e.defaultValue),a=e.value,l=e.autoSize,d=e.onResize,u=e.className,f=e.style,m=e.disabled,_=e.onChange,b=(e.onInternalAutoSize,(0,w.Z)(e,J)),v=(0,S.Z)(r,{value:a,postState:function(e){return null!=e?e:""}}),C=(0,y.Z)(v,2),E=C[0],k=C[1],L=s.useRef();s.useImperativeHandle(t,function(){return{textArea:L.current}});var x=s.useMemo(function(){return l&&"object"===(0,p.Z)(l)?[l.minRows,l.maxRows]:[]},[l]),N=(0,y.Z)(x,2),D=N[0],T=N[1],I=!!l,R=function(){try{if(document.activeElement===L.current){var e=L.current,t=e.selectionStart,i=e.selectionEnd,n=e.scrollTop;L.current.setSelectionRange(t,i),L.current.scrollTop=n}}catch(e){}},A=s.useState(2),O=(0,y.Z)(A,2),M=O[0],P=O[1],F=s.useState(),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=function(){P(0)};(0,Z.Z)(function(){I&&V()},[a,D,T,I]),(0,Z.Z)(function(){if(0===M)P(1);else if(1===M){var e=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X[i])return X[i];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:Q.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:s,boxSizing:r};return t&&i&&(X[i]=a),a}(e,i),a=s.paddingSize,l=s.borderSize,d=s.boxSizing,u=s.sizingStyle;n.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),n.value=e.value||e.placeholder||"";var c=void 0,h=void 0,g=n.scrollHeight;if("border-box"===d?g+=l:"content-box"===d&&(g-=a),null!==r||null!==o){n.value=" ";var p=n.scrollHeight-a;null!==r&&(c=p*r,"border-box"===d&&(c=c+a+l),g=Math.max(c,g)),null!==o&&(h=p*o,"border-box"===d&&(h=h+a+l),t=g>h?"":"hidden",g=Math.min(h,g))}var f={height:g,overflowY:t,resize:"none"};return c&&(f.minHeight=c),h&&(f.maxHeight=h),f}(L.current,!1,D,T);P(2),H(e)}else R()},[M]);var z=s.useRef(),U=function(){Y.Z.cancel(z.current)};s.useEffect(function(){return U},[]);var $=I?W:null,K=(0,h.Z)((0,h.Z)({},f),$);return(0===M||1===M)&&(K.overflowY="hidden",K.overflowX="hidden"),s.createElement(q.Z,{onResize:function(e){2===M&&(null==d||d(e),l&&(U(),z.current=(0,Y.Z)(function(){V()})))},disabled:!(l||d)},s.createElement("textarea",(0,c.Z)({},b,{ref:L,style:K,className:o()(i,u,(0,g.Z)({},"".concat(i,"-disabled"),m)),disabled:m,value:E,onChange:function(e){k(e.target.value),null==_||_(e)}})))}),et=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ei(e,t){return(0,C.Z)(e||"").slice(0,t).join("")}function en(e,t,i,n){var r=i;return e?r=ei(i,n):(0,C.Z)(t||"").lengthn&&(r=t),r}var er=s.forwardRef(function(e,t){var i,n,r=e.defaultValue,a=e.value,l=e.onFocus,d=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,E=e.onCompositionStart,k=e.onCompositionEnd,L=e.suffix,x=e.prefixCls,N=void 0===x?"rc-textarea":x,D=e.classes,T=e.showCount,I=e.className,R=e.style,A=e.disabled,O=e.hidden,M=e.classNames,P=e.styles,F=e.onResize,B=(0,w.Z)(e,et),W=(0,S.Z)(r,{value:a,defaultValue:r}),H=(0,y.Z)(W,2),V=H[0],z=H[1],U=(0,s.useRef)(null),$=s.useState(!1),K=(0,y.Z)($,2),j=K[0],G=K[1],q=s.useState(!1),Z=(0,y.Z)(q,2),Y=Z[0],Q=Z[1],X=s.useRef(),J=s.useRef(0),er=s.useState(null),eo=(0,y.Z)(er,2),es=eo[0],ea=eo[1],el=function(){var e;null===(e=U.current)||void 0===e||e.textArea.focus()};(0,s.useImperativeHandle)(t,function(){return{resizableTextArea:U.current,focus:el,blur:function(){var e;null===(e=U.current)||void 0===e||e.textArea.blur()}}}),(0,s.useEffect)(function(){G(function(e){return!A&&e})},[A]);var ed=Number(m)>0,eu=b(V);!Y&&ed&&null==a&&(eu=ei(eu,m));var ec=L;if(T){var eh=(0,C.Z)(eu).length;n="object"===(0,p.Z)(T)?T.formatter({value:eu,count:eh,maxLength:m}):"".concat(eh).concat(ed?" / ".concat(m):""),ec=s.createElement(s.Fragment,null,ec,s.createElement("span",{className:o()("".concat(N,"-data-count"),null==M?void 0:M.count),style:null==P?void 0:P.count},n))}var eg=!B.autoSize&&!T&&!f;return s.createElement(v,{value:eu,allowClear:f,handleReset:function(e){var t;z(""),el(),_(null===(t=U.current)||void 0===t?void 0:t.textArea,e,u)},suffix:ec,prefixCls:N,classes:{affixWrapper:o()(null==D?void 0:D.affixWrapper,(i={},(0,g.Z)(i,"".concat(N,"-show-count"),T),(0,g.Z)(i,"".concat(N,"-textarea-allow-clear"),f),i))},disabled:A,focused:j,className:I,style:(0,h.Z)((0,h.Z)({},R),es&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:O,inputElement:s.createElement(ee,(0,c.Z)({},B,{onKeyDown:function(e){var t=B.onPressEnter,i=B.onKeyDown;"Enter"===e.key&&t&&t(e),null==i||i(e)},onChange:function(e){var t=e.target.value;!Y&&ed&&(t=en(e.target.selectionStart>=m+1||e.target.selectionStart===t.length||!e.target.selectionStart,V,t,m)),z(t),_(e.currentTarget,e,u,t)},onFocus:function(e){G(!0),null==l||l(e)},onBlur:function(e){G(!1),null==d||d(e)},onCompositionStart:function(e){Q(!0),X.current=V,J.current=e.currentTarget.selectionStart,null==E||E(e)},onCompositionEnd:function(e){Q(!1);var t,i=e.currentTarget.value;ed&&(i=en(J.current>=m+1||J.current===(null===(t=X.current)||void 0===t?void 0:t.length),X.current,i,m)),i!==V&&(z(i),_(e.currentTarget,e,u,i)),null==k||k(e)},className:null==M?void 0:M.textarea,style:(0,h.Z)((0,h.Z)({},null==P?void 0:P.textarea),{},{resize:null==R?void 0:R.resize}),disabled:A,prefixCls:N,onResize:function(e){var t;null==F||F(e),null!==(t=U.current)&&void 0!==t&&t.textArea.style.height&&ea(!0)},ref:U}))})}),eo=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let es=(0,s.forwardRef)((e,t)=>{let i;let{prefixCls:n,bordered:r=!0,size:c,disabled:h,status:g,allowClear:p,showCount:f,classNames:m}=e,_=eo(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:b,direction:v}=s.useContext(a.E_),C=(0,T.Z)(c),y=s.useContext(D.Z),{status:w,hasFeedback:S,feedbackIcon:E}=s.useContext(l.aM),k=(0,N.F)(w,g),L=s.useRef(null);s.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=L.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,i;!function(e,t){if(!e)return;e.focus(t);let{cursor:i}=t||{};if(i){let t=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(i=null===(t=L.current)||void 0===t?void 0:t.resizableTextArea)||void 0===i?void 0:i.textArea,e)},blur:()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.blur()}}});let x=b("input",n);"object"==typeof p&&(null==p?void 0:p.clearIcon)?i=p:p&&(i={clearIcon:s.createElement(u.Z,null)});let[I,R]=(0,d.ZP)(x);return I(s.createElement(er,Object.assign({},_,{disabled:null!=h?h:y,allowClear:i,classes:{affixWrapper:o()(`${x}-textarea-affix-wrapper`,{[`${x}-affix-wrapper-rtl`]:"rtl"===v,[`${x}-affix-wrapper-borderless`]:!r,[`${x}-affix-wrapper-sm`]:"small"===C,[`${x}-affix-wrapper-lg`]:"large"===C,[`${x}-textarea-show-count`]:f},(0,N.Z)(`${x}-affix-wrapper`,k),R)},classNames:Object.assign(Object.assign({},m),{textarea:o()({[`${x}-borderless`]:!r,[`${x}-sm`]:"small"===C,[`${x}-lg`]:"large"===C},(0,N.Z)(x,k),R,null==m?void 0:m.textarea)}),prefixCls:x,suffix:S&&s.createElement("span",{className:`${x}-textarea-suffix`},E),showCount:f,ref:L})))});O.Group=e=>{let{getPrefixCls:t,direction:i}=(0,s.useContext)(a.E_),{prefixCls:n,className:r}=e,u=t("input-group",n),c=t("input"),[h,g]=(0,d.ZP)(c),p=o()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===i},g,r),f=(0,s.useContext)(l.aM),m=(0,s.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return h(s.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(l.aM.Provider,{value:m},e.children)))},O.Search=G,O.TextArea=es,O.Password=z;var ea=O},61469:function(e,t,i){"use strict";i.d(t,{Z:function(){return e5}});var n,r,o=i(40431),s=i(65877),a=i(965),l=i(88684),d=i(90151),u=i(18050),c=i(49449),h=i(70184),g=i(43663),p=i(38340),f=i(86006),m=i(48580),_=i(5004),b=i(42442),v=i(8683),C=i.n(v),y=f.createContext(null),w=i(89301),S=f.memo(function(e){for(var t,i=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(i,"-indent-unit"),l=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return i.map(function(c,h){for(var g,p=x(n?n.pos:"0",h),f=N(c[o],p),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},p=g.initWrapper,f=g.processEntity,m=g.onProcessFinished,_=g.externalGetKey,b=g.childrenPropName,v=g.fieldNames,C=arguments.length>2?arguments[2]:void 0,y={},w={},S={posEntities:y,keyEntities:w};return p&&(S=p(S)||S),t=function(e){var t=e.node,i=e.index,n=e.pos,r=e.key,o=e.parentPos,s=e.level,a={node:t,nodes:e.nodes,index:i,key:r,pos:n,level:s},l=N(r,n);y[n]=a,w[l]=a,a.parent=y[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a)),f&&f(a,S)},i={externalGetKey:_||C,childrenPropName:b,fieldNames:v},o=(r=("object"===(0,a.Z)(i)?i:{externalGetKey:i})||{}).childrenPropName,s=r.externalGetKey,u=(l=D(r.fieldNames)).key,c=l.children,h=o||c,s?"string"==typeof s?n=function(e){return e[s]}:"function"==typeof s&&(n=function(e){return s(e)}):n=function(e,t){return N(e[u],t)},function i(r,o,s,a){var l=r?r[h]:e,u=r?x(s.pos,o):"0",c=r?[].concat((0,d.Z)(a),[r]):[];if(r){var g=n(r,u);t({node:r,index:o,pos:u,key:g,parentPos:s.node?s.pos:null,level:s.level+1,nodes:c})}l&&l.forEach(function(e,t){i(e,t,{node:r,pos:u,level:s?s.level+1:-1},c)})}(null),m&&m(S),S}function A(e,t){var i=t.expandedKeys,n=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,d=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==i.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===d,dragOverGapTop:l===e&&-1===d,dragOverGapBottom:l===e&&1===d}}function O(e){var t=e.data,i=e.expanded,n=e.selected,r=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,d=e.dragOver,u=e.dragOverGapTop,c=e.dragOverGapBottom,h=e.pos,g=e.active,p=e.eventKey,f=(0,l.Z)((0,l.Z)({},t),{},{expanded:i,selected:n,checked:r,loaded:o,loading:s,halfChecked:a,dragOver:d,dragOverGapTop:u,dragOverGapBottom:c,pos:h,active:g,key:p});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,_.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}var M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],P="open",F="close",B=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o=0&&i.splice(n,1),i}function V(e,t){var i=(e||[]).slice();return -1===i.indexOf(t)&&i.push(t),i}function z(e){return e.split("-")}function U(e,t,i,n,r,o,s,a,l,d){var u,c,h=e.clientX,g=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,m=p.height,_=(("rtl"===d?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/n,b=a[i.props.eventKey];if(g-1.5?o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:0})?S=0:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(c=b.parent)||void 0===c?void 0:c.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function K(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,a.Z)(e))return(0,_.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function j(e,t){var i=new Set;return(e||[]).forEach(function(e){!function e(n){if(!i.has(n)){var r=t[n];if(r){i.add(n);var o=r.parent;!r.node.disabled&&o&&e(o.key)}}}(e)}),(0,d.Z)(i)}function G(e){if(null==e)throw TypeError("Cannot destructure "+e)}W.displayName="TreeNode",W.isTreeNode=1;var q=i(60456),Z=i(38358),Y=i(43783),Q=i(78641),X=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],J=function(e,t){var i,n,r,s,a,l=e.className,d=e.style,u=e.motion,c=e.motionNodes,h=e.motionType,g=e.onMotionStart,p=e.onMotionEnd,m=e.active,_=e.treeNodeRequiredProps,b=(0,w.Z)(e,X),v=f.useState(!0),S=(0,q.Z)(v,2),E=S[0],k=S[1],L=f.useContext(y).prefixCls,x=c&&"hide"!==h;(0,Z.Z)(function(){c&&x!==E&&k(x)},[c]);var N=f.useRef(!1),D=function(){c&&!N.current&&(N.current=!0,p())};return(i=function(){c&&g()},n=f.useState(!1),s=(r=(0,q.Z)(n,2))[0],a=r[1],f.useLayoutEffect(function(){if(s)return i(),function(){D()}},[s]),f.useLayoutEffect(function(){return a(!0),function(){a(!1)}},[]),c)?f.createElement(Q.ZP,(0,o.Z)({ref:t,visible:E},u,{motionAppear:"show"===h,onVisibleChanged:function(e){x===e&&D()}}),function(e,t){var i=e.className,n=e.style;return f.createElement("div",{ref:t,className:C()("".concat(L,"-treenode-motion"),i),style:n},c.map(function(e){var t=(0,o.Z)({},(G(e.data),e.data)),i=e.title,n=e.key,r=e.isStart,s=e.isEnd;delete t.children;var a=A(n,_);return f.createElement(W,(0,o.Z)({},t,a,{title:i,active:m,data:e.data,key:n,isStart:r,isEnd:s}))}))}):f.createElement(W,(0,o.Z)({domRef:t,className:l,style:d},b,{active:m}))};J.displayName="MotionTreeNode";var ee=f.forwardRef(J);function et(e,t,i){var n=e.findIndex(function(e){return e.key===i}),r=e[n+1],o=t.findIndex(function(e){return e.key===i});if(r){var s=t.findIndex(function(e){return e.key===r.key});return t.slice(o+1,s)}return t.slice(o+1)}var ei=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},er=function(){},eo="RC_TREE_MOTION_".concat(Math.random()),es={key:eo},ea={key:eo,level:0,index:0,pos:"0",node:es,nodes:[es]},el={parent:null,children:[],pos:ea.pos,data:es,title:null,key:eo,isStart:[],isEnd:[]};function ed(e,t,i,n){return!1!==t&&i?e.slice(0,Math.ceil(i/n)+1):e}function eu(e){return N(e.key,e.pos)}var ec=f.forwardRef(function(e,t){var i=e.prefixCls,n=e.data,r=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,d=e.loadingKeys,u=e.halfCheckedKeys,c=e.keyEntities,h=e.disabled,g=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,_=e.motion,b=e.height,v=e.itemHeight,C=e.virtual,y=e.focusable,S=e.activeItem,E=e.focused,k=e.tabIndex,L=e.onKeyDown,x=e.onFocus,D=e.onBlur,T=e.onActiveChange,I=e.onListChangeStart,R=e.onListChangeEnd,O=(0,w.Z)(e,ei),M=f.useRef(null),P=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}});var F=f.useState(r),B=(0,q.Z)(F,2),W=B[0],H=B[1],V=f.useState(n),z=(0,q.Z)(V,2),U=z[0],$=z[1],K=f.useState(n),j=(0,q.Z)(K,2),Q=j[0],X=j[1],J=f.useState([]),es=(0,q.Z)(J,2),ea=es[0],ec=es[1],eh=f.useState(null),eg=(0,q.Z)(eh,2),ep=eg[0],ef=eg[1],em=f.useRef(n);function e_(){var e=em.current;$(e),X(e),ec([]),ef(null),R()}em.current=n,(0,Z.Z)(function(){H(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.length,n=t.length;if(1!==Math.abs(i-n))return{add:!1,key:null};function r(e,t){var i=new Map;e.forEach(function(e){i.set(e,!0)});var n=t.filter(function(e){return!i.has(e)});return 1===n.length?n[0]:null}return i ").concat(t);return t}(S)),f.createElement("div",null,f.createElement("input",{style:en,disabled:!1===y||h,tabIndex:!1!==y?k:null,onKeyDown:L,onFocus:x,onBlur:D,value:"",onChange:er,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(i,"-indent")},f.createElement("div",{ref:P,className:"".concat(i,"-indent-unit")}))),f.createElement(Y.Z,(0,o.Z)({},O,{data:eb,itemKey:eu,height:b,fullHeight:!1,virtual:C,itemHeight:v,prefixCls:"".concat(i,"-list"),ref:M,onVisibleChange:function(e,t){var i=new Set(e);t.filter(function(e){return!i.has(e)}).some(function(e){return eu(e)===eo})&&e_()}}),function(e){var t=e.pos,i=(0,o.Z)({},(G(e.data),e.data)),n=e.title,r=e.key,s=e.isStart,a=e.isEnd,l=N(r,t);delete i.key,delete i.children;var d=A(l,ev);return f.createElement(ee,(0,o.Z)({},i,d,{title:n,active:!!S&&r===S.key,pos:t,data:e.data,isStart:s,isEnd:a,motion:_,motionNodes:r===eo?ea:null,motionType:ep,onMotionStart:I,onMotionEnd:e_,treeNodeRequiredProps:ev,onMouseMove:function(){T(null)}}))}))});function eh(e,t){var i=new Set;return e.forEach(function(e){t.has(e)||i.add(e)}),i}function eg(e){var t=e||{},i=t.disabled,n=t.disableCheckbox,r=t.checkable;return!!(i||n)||!1===r}function ep(e,t,i,n){var r,o=[];r=n||eg;var s=new Set(e.filter(function(e){var t=!!i[e];return t||o.push(e),t})),a=new Map,l=0;return Object.keys(i).forEach(function(e){var t=i[e],n=t.level,r=a.get(n);r||(r=new Set,a.set(n,r)),r.add(t),l=Math.max(l,n)}),(0,_.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,i,n){for(var r=new Set(e),o=new Set,s=0;s<=i;s+=1)(t.get(s)||new Set).forEach(function(e){var t=e.key,i=e.node,o=e.children,s=void 0===o?[]:o;r.has(t)&&!n(i)&&s.filter(function(e){return!n(e.node)}).forEach(function(e){r.add(e.key)})});for(var a=new Set,l=i;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent;if(!(n(e.node)||!e.parent||a.has(e.parent.key))){if(n(e.parent.node)){a.add(t.key);return}var i=!0,s=!1;(t.children||[]).filter(function(e){return!n(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);i&&!n&&(i=!1),!s&&(n||o.has(t))&&(s=!0)}),i&&r.add(t.key),s&&o.add(t.key),a.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(eh(o,r))}}(s,a,l,r):function(e,t,i,n,r){for(var o=new Set(e),s=new Set(t),a=0;a<=n;a+=1)(i.get(a)||new Set).forEach(function(e){var t=e.key,i=e.node,n=e.children,a=void 0===n?[]:n;o.has(t)||s.has(t)||r(i)||a.filter(function(e){return!r(e.node)}).forEach(function(e){o.delete(e.key)})});s=new Set;for(var l=new Set,d=n;d>=0;d-=1)(i.get(d)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(t.key);return}var i=!0,n=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=o.has(t);i&&!r&&(i=!1),!n&&(r||s.has(t))&&(n=!0)}),i||o.delete(t.key),n&&s.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(eh(s,o))}}(s,t.halfCheckedKeys,a,l,r)}ec.displayName="NodeList";var ef=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var i=t.key,r=t.children;n.push(i),e(r)})}(s[l].children),n),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:O(i.props)})},e.onNodeDragEnter=function(t,i){var n=e.state,r=n.expandedKeys,o=n.keyEntities,s=n.dragChildrenKeys,a=n.flattenNodes,l=n.indent,u=e.props,c=u.onDragEnter,g=u.onExpand,p=u.allowDrop,f=u.direction,m=i.props,_=m.pos,b=m.eventKey,v=(0,h.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==b&&(e.currentMouseOverDroppableNodeKey=b),!v){e.resetDragState();return}var C=U(t,v,i,l,e.dragStartMousePosition,p,a,o,r,f),y=C.dropPosition,w=C.dropLevelOffset,S=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,L=C.dropAllowed,x=C.dragOverNodeKey;if(-1!==s.indexOf(S)||!L||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),v.props.eventKey!==i.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[_]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var n=(0,d.Z)(r),s=o[i.props.eventKey];s&&(s.children||[]).length&&(n=V(r,i.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(n),null==g||g(n,{node:O(i.props),expanded:!0,nativeEvent:t.nativeEvent})}},800)),v.props.eventKey===S&&0===w)){e.resetDragState();return}e.setState({dragOverNodeKey:x,dropPosition:y,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:L}),null==c||c({event:t,node:O(i.props),expandedKeys:r})},e.onNodeDragOver=function(t,i){var n=e.state,r=n.dragChildrenKeys,o=n.flattenNodes,s=n.keyEntities,a=n.expandedKeys,l=n.indent,d=e.props,u=d.onDragOver,c=d.allowDrop,g=d.direction,p=(0,h.Z)(e).dragNode;if(p){var f=U(t,p,i,l,e.dragStartMousePosition,c,o,s,a,g),m=f.dropPosition,_=f.dropLevelOffset,b=f.dropTargetKey,v=f.dropContainerKey,C=f.dropAllowed,y=f.dropTargetPos,w=f.dragOverNodeKey;-1===r.indexOf(b)&&C&&(p.props.eventKey===b&&0===_?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&_===e.state.dropLevelOffset&&b===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&C===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:v,dropTargetPos:y,dropAllowed:C,dragOverNodeKey:w}),null==u||u({event:t,node:O(i.props)}))}},e.onNodeDragLeave=function(t,i){e.currentMouseOverDroppableNodeKey!==i.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var n=e.props.onDragLeave;null==n||n({event:t,node:O(i.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,i){var n=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==n||n({event:t,node:O(i.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.state,s=o.dragChildrenKeys,a=o.dropPosition,d=o.dropTargetKey,u=o.dropTargetPos;if(o.dropAllowed){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==d){var h=(0,l.Z)((0,l.Z)({},A(d,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.key)===d,data:e.state.keyEntities[d].node}),g=-1!==s.indexOf(d);(0,_.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=z(u),f={event:t,node:O(h),dragNode:e.dragNode?O(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==a,dropPosition:a+Number(p[p.length-1])};r||null==c||c(f),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,i){var n=e.state,r=n.expandedKeys,o=n.flattenNodes,s=i.expanded,a=i.key;if(!i.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var d=o.filter(function(e){return e.key===a})[0],u=O((0,l.Z)((0,l.Z)({},A(a,e.getTreeNodeRequiredProps())),{},{data:d.data}));e.setExpandedKeys(s?H(r,a):V(r,a)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,i){var n=e.props,r=n.onClick;"click"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeDoubleClick=function(t,i){var n=e.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeSelect=function(t,i){var n=e.state.selectedKeys,r=e.state,o=r.keyEntities,s=r.fieldNames,a=e.props,l=a.onSelect,d=a.multiple,u=i.selected,c=i[s.key],h=!u,g=(n=h?d?V(n,c):[c]:H(n,c)).map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:h,node:i,selectedNodes:g,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,i,n){var r,o=e.state,s=o.keyEntities,a=o.checkedKeys,l=o.halfCheckedKeys,u=e.props,c=u.checkStrictly,h=u.onCheck,g=i.key,p={event:"check",node:i,checked:n,nativeEvent:t.nativeEvent};if(c){var f=n?V(a,g):H(a,g);r={checked:f,halfChecked:H(l,g)},p.checkedNodes=f.map(function(e){return s[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:f})}else{var m=ep([].concat((0,d.Z)(a),[g]),!0,s),_=m.checkedKeys,b=m.halfCheckedKeys;if(!n){var v=new Set(_);v.delete(g);var C=ep(Array.from(v),{checked:!1,halfCheckedKeys:b},s);_=C.checkedKeys,b=C.halfCheckedKeys}r=_,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=b,_.forEach(function(e){var t=s[e];if(t){var i=t.node,n=t.pos;p.checkedNodes.push(i),p.checkedNodesPositions.push({node:i,pos:n})}}),e.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:b})}null==h||h(r,p)},e.onNodeLoad=function(t){var i=t.key,n=new Promise(function(n,r){e.setState(function(o){var s=o.loadedKeys,a=o.loadingKeys,l=void 0===a?[]:a,d=e.props,u=d.loadData,c=d.onLoad;return u&&-1===(void 0===s?[]:s).indexOf(i)&&-1===l.indexOf(i)?(u(t).then(function(){var r=V(e.state.loadedKeys,i);null==c||c(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,_.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:V(o,i)}),n()}r(t)}),{loadingKeys:V(l,i)}):null})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,i){var n=e.props.onMouseEnter;null==n||n({event:t,node:i})},e.onNodeMouseLeave=function(t,i){var n=e.props.onMouseLeave;null==n||n({event:t,node:i})},e.onNodeContextMenu=function(t,i){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:i}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var i=arguments.length,n=Array(i),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,s={};Object.keys(t).forEach(function(i){if(i in e.props){o=!1;return}r=!0,s[i]=t[i]}),r&&(!i||o)&&e.setState((0,l.Z)((0,l.Z)({},s),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,c.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,i=this.state,n=i.focused,r=i.flattenNodes,l=i.keyEntities,d=i.draggingNodeKey,u=i.activeKey,c=i.dropLevelOffset,h=i.dropContainerKey,g=i.dropTargetKey,p=i.dropPosition,m=i.dragOverNodeKey,_=i.indent,v=this.props,w=v.prefixCls,S=v.className,E=v.style,k=v.showLine,L=v.focusable,x=v.tabIndex,N=v.selectable,D=v.showIcon,T=v.icon,I=v.switcherIcon,R=v.draggable,A=v.checkable,O=v.checkStrictly,M=v.disabled,P=v.motion,F=v.loadData,B=v.filterTreeNode,W=v.height,H=v.itemHeight,V=v.virtual,z=v.titleRender,U=v.dropIndicatorRender,$=v.onContextMenu,K=v.onScroll,j=v.direction,G=v.rootClassName,q=v.rootStyle,Z=(0,b.Z)(this.props,{aria:!0,data:!0});return R&&(t="object"===(0,a.Z)(R)?R:"function"==typeof R?{nodeDraggable:R}:{}),f.createElement(y.Provider,{value:{prefixCls:w,selectable:N,showIcon:D,icon:T,switcherIcon:I,draggable:t,draggingNodeKey:d,checkable:A,checkStrictly:O,disabled:M,keyEntities:l,dropLevelOffset:c,dropContainerKey:h,dropTargetKey:g,dropPosition:p,dragOverNodeKey:m,indent:_,direction:j,dropIndicatorRender:U,loadData:F,filterTreeNode:B,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},f.createElement("div",{role:"tree",className:C()(w,S,G,(e={},(0,s.Z)(e,"".concat(w,"-show-line"),k),(0,s.Z)(e,"".concat(w,"-focused"),n),(0,s.Z)(e,"".concat(w,"-active-focused"),null!==u),e)),style:q},f.createElement(ec,(0,o.Z)({ref:this.listRef,prefixCls:w,style:E,data:r,disabled:M,selectable:N,checkable:!!A,motion:P,dragging:null!==d,height:W,itemHeight:H,virtual:V,focusable:L,focused:n,tabIndex:void 0===x?0:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$,onScroll:K},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i,n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var d=t.fieldNames;if(a("fieldNames")&&(d=D(e.fieldNames),o.fieldNames=d),a("treeData")?i=e.treeData:a("children")&&((0,_.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=T(e.children)),i){o.treeData=i;var u=R(i,{fieldNames:d});o.keyEntities=(0,l.Z)((0,s.Z)({},eo,ea),u.keyEntities)}var c=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?j(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var h=(0,l.Z)({},c);delete h[eo],o.expandedKeys=Object.keys(h).map(function(e){return h[e].key})}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?j(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,i||o.expandedKeys){var g=I(i||t.treeData,o.expandedKeys||t.expandedKeys,d);o.flattenNodes=g}if(e.selectable&&(a("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable&&(a("checkedKeys")?n=K(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?n=K(e.defaultCheckedKeys)||{}:i&&(n=K(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),n)){var p=n,f=p.checkedKeys,m=void 0===f?[]:f,b=p.halfCheckedKeys,v=void 0===b?[]:b;if(!e.checkStrictly){var C=ep(m,!0,c);m=C.checkedKeys,v=C.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=v}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),i}(f.Component);ef.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,i=e.dropLevelOffset,n=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-i*n;break;case 1:r.bottom=0,r.left=-i*n;break;case 0:r.bottom=0,r.left=n}return f.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},ef.TreeNode=W;var em={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},e_=i(1240),eb=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:em}))}),ev={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},eC=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ev}))}),ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ew=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ey}))}),eS=i(79746),eE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ek=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eE}))}),eL=i(80716),ex=i(84596),eN=i(98663),eD=i(70721),eT=i(40650);let eI=e=>{let{checkboxCls:t}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,eN.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `),t.vars.palette.background.level2,k),({ownerState:e,theme:t})=>{var i,n,o,s;let a=(null==(i=t.components)||null==(i=i.JoyTypography)||null==(i=i.defaultProps)?void 0:i.level)||"body1";return[{display:"block",position:"relative","--unstable_pseudo-zIndex":9,"--unstable_pulse-bg":t.vars.palette.background.level1,overflow:"hidden",cursor:"default","& *":{visibility:"hidden"},"&::before":{display:"block",content:'" "',top:0,bottom:0,left:0,right:0,zIndex:"var(--unstable_pseudo-zIndex)",borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"--unstable_wave-bg":"rgba(255 255 255 / 0.1)"}},"rectangular"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",height:"auto",width:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"circular"===e.variant&&(0,r.Z)({borderRadius:"50%",width:"100%",height:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"text"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",background:"transparent",width:"100%"},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level||a],{paddingBlockStart:`calc((${(null==(n=t.typography[e.level||a])?void 0:n.lineHeight)||1} - 1) * 0.56em)`,paddingBlockEnd:`calc((${(null==(o=t.typography[e.level||a])?void 0:o.lineHeight)||1} - 1) * 0.44em)`,"&::before":(0,r.Z)({height:"1em"},t.typography[e.level||a],"wave"===e.animation&&{backgroundColor:t.vars.palette.background.level2},!e.animation&&{backgroundColor:t.vars.palette.background.level2}),"&::after":(0,r.Z)({height:"1em",top:`calc((${(null==(s=t.typography[e.level||a])?void 0:s.lineHeight)||1} - 1) * 0.56em)`},t.typography[e.level||a])})),"inline"===e.variant&&(0,r.Z)({display:"inline",position:"initial",borderRadius:"min(0.15em, 6px)"},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"-webkit-mask-image":"-webkit-radial-gradient(white, black)","&::before":{position:"absolute",zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}},"pulse"===e.animation&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}}),"overlay"===e.variant&&(0,r.Z)({borderRadius:t.vars.radius.xs,position:"absolute",width:"100%",height:"100%",zIndex:"var(--unstable_pseudo-zIndex)"},"pulse"===e.animation&&{backgroundColor:t.vars.palette.background.surface},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"&::before":{position:"absolute"}})]}),x=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoySkeleton"}),{className:a,component:l="span",children:d,animation:h="pulse",overlay:c=!1,loading:g=!0,variant:_="overlay",level:b="text"===_?"body1":"inherit",height:v,width:C,sx:y,slots:w={},slotProps:E={}}=i,k=(0,n.Z)(i,f),x=(0,r.Z)({},k,{component:l,slots:w,slotProps:E,sx:[{width:C,height:v},...Array.isArray(y)?y:[y]]}),N=(0,r.Z)({},i,{animation:h,component:l,level:b,loading:g,overlay:c,variant:_,width:C,height:v}),D=S(N),[T,I]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:L,externalForwardedProps:x,ownerState:N});return g?(0,m.jsx)(T,(0,r.Z)({},I,{children:d})):(0,m.jsx)(o.Fragment,{children:o.Children.map(d,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)})});x.muiName="Skeleton";var N=x},82372:function(e,t,i){e=i.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,i){"use strict";var n=e("./lib/dom"),r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,d=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,h=e("./clipboard"),c={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,i){var n=e.session.getTextRange();return i?n.replace(/\n\r?([ \t]*\S)/g,"\n"+i+"$1"):n},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return h.getText&&h.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};function g(e){var t=new Date().toLocaleString("en-us",e);return 1==t.length?"0"+t:t}c.SELECTED_TEXT=c.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=c}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return(e=e.substr(1),/^\d+$/.test(e))?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function i(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+i("/")+"+)/",onMatch:function(e,t,i){var n=i[0];return n.fmtString=!0,n.guard=e.slice(1,-1),n.flag="",""},next:"formatString"};return e.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)&&(e=n),[e]}},{regex:/}/,onMatch:function(e,t,i){return[i.length?i.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1));return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+i("\\|")+"*\\|",onMatch:function(e,t,i){var n=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\x00"}).split("\x00").map(function(e){return{value:e}});return i[0].choices=n,[n[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,i){return i.length&&i[0].expectElse?(i[0].expectElse=!1,i[0].ifEnd={elseEnd:i[0]},[i[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)?e=n:"n"==n?e="\n":"t"==n?e=" ":-1!="ulULE".indexOf(n)&&(e={changeCase:n,local:n>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,i){var n=i.shift();return n&&(n.flag=e.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,i){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,i){var n={text:e.slice(2)};return i.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,i){var n=i.shift();return this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,i){return i[0].formatFunction=e.slice(2,-1),[i.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,i){"+"==e[1]&&(i[0].ifEnd=i[0]),"?"==e[1]&&(i[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},e.prototype.getVariableValue=function(e,t,i){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var n=this.variables[t];return"function"==typeof n&&(n=this.variables[t](e,t,i)),null==n?"":n},e.prototype.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var n=t.flag||"",r=t.guard;r=new RegExp(r,n.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(r,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(o,i),n="E",r=0;r=0&&o.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{n=JSON.parse(t[1]),i.push(n)}catch(e){}if(t[4])n.content=t[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=a.exec(s)[1],n.trigger=a.exec(s)[1],n.endTrigger=a.exec(s)[1],n.endGuard=a.exec(s)[1]}else"snippet"==o?(n.tabTrigger=s.match(/^\S*/)[0],n.name||(n.name=s)):o&&(n[o]=s)}}return i},e.prototype.getSnippetByName=function(e,t){var i,n=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var r=n[t];return r&&(i=r[e]),!!i},this),i},e}();r.implement(p.prototype,o);var m=function(e,t,i){void 0===i&&(i={});var n=e.getCursorPosition(),r=e.session.getLine(n.row),o=e.session.getTabString(),s=r.match(/^\s*/)[0];n.column1?(_=t[t.length-1].length,f+=t.length-1):_+=e.length,b+=e}else e&&(e.start?e.end={row:f,column:_}:e.start={row:f,column:_})}),{text:b,tabstops:l,tokens:a}},f=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],i=this.selectedTabstop||{},n=i.parents||{},r=this.tabstops.slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();f.prototype.keyboardHandler=new d,f.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var _=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},b=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};n.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new p,(function(){this.insertSnippet=function(e,i){return t.snippetManager.insertSnippet(this,e,i)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(e("./editor").Editor.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(e,t,i){"use strict";var n=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),d=e("../config").nls,u=function(e){return"suggest-aria-id:".concat(e)},h=function(e){var t=new n(e);t.$maxLines=4;var i=new r(t);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusTimeout=0,i.$highlightTagPending=!0,i};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n","autocompletion.css",!1),t.AcePopup=function(e){var t,i=l.createElement("div"),n=new h(i);e&&e.appendChild(i),i.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role","listbox"),n.renderer.$textLayer.element.setAttribute("aria-label",d("Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),g.start.row=g.end.row=t.row,e.stop()});var c=new o(-1,0,-1,1/0),g=new o(-1,0,-1,1/0);g.id=n.session.addMarker(g,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?c.id&&(n.session.removeMarker(c.id),c.id=null):c.id=n.session.addMarker(c,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",function(e){if(!t){t=e;return}if(t.x!=e.x||t.y!=e.y){(t=e).scrollTop=n.renderer.scrollTop;var i=t.getDocumentPosition().row;c.start.row!=i&&(c.id||n.setRow(i),m(i))}}),n.renderer.on("beforeRender",function(){if(t&&-1!=c.start.row){t.$pos=null;var e=t.getDocumentPosition().row;c.id||n.setRow(e),m(e,!0)}}),n.renderer.on("afterRender",function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow],r=document.activeElement;if(i!==t.selectedNode&&t.selectedNode&&(l.removeCssClass(t.selectedNode,"ace_selected"),r.removeAttribute("aria-activedescendant"),t.selectedNode.removeAttribute("id")),t.selectedNode=i,i){l.addCssClass(i,"ace_selected");var o=u(e);i.id=o,t.element.setAttribute("aria-activedescendant",o),r.setAttribute("aria-activedescendant",o),i.setAttribute("role","option"),i.setAttribute("aria-label",n.getData(e).value),i.setAttribute("aria-setsize",n.data.length),i.setAttribute("aria-posinset",e+1),i.setAttribute("aria-describedby","doc-tooltip")}});var p=function(){m(-1)},m=function(e,t){e!==c.start.row&&(c.start.row=c.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return c.start.row},s.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var r=t.caption||t.value||t.name;function o(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,d=0,u=0;u<=a.length;u++)if(u!=d&&(t.matchMask&1<=u?"bottom":"top"),"top"===r?(h.bottom=e.top-this.$borderSize,h.top=h.bottom-u):"bottom"===r&&(h.top=e.top+i+this.$borderSize,h.bottom=h.top+u);var p=h.top>=0&&h.bottom<=a;if(!o&&!p)return!1;p?d.$maxPixelHeight=null:"top"===r?d.$maxPixelHeight=g:d.$maxPixelHeight=c,"top"===r?(s.style.top="",s.style.bottom=a-h.bottom+"px",n.isTopdown=!1):(s.style.top=h.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var m=e.left;return m+s.offsetWidth>l&&(m=l-s.offsetWidth),s.style.left=m+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),t=null),n.anchorPos=e,n.anchor=r,!0},n.show=function(e,t,i){this.tryShow(e,t,i?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),i=this.session.getLength()-1;switch(e){case"up":t=t<=0?i:t-1;break;case"down":t=t>=i?-1:t+1;break;case"start":t=0;break;case"end":t=i}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=h,t.getAriaId=u}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(e,t,i){"use strict";var n=e("../snippets").snippetManager,r=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,i){if(i=i||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null),!e||!t)return!1;var r=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!!(r&&r.startsWith(i))&&(this.editor=e,""===(r=r.slice(i.length))?e.removeGhostText():e.setGhostText(r),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();t.AceInline=r}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,i){"use strict";t.parForEach=function(e,t,i){var n=0,r=e.length;0===r&&i();for(var o=0;o=0&&i.test(e[o]);o--)r.push(e[o]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var r=[],o=t;othis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e;var i=null;t=(t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)})).filter(function(e){var t=e.snippet||e.caption||e.value;return t!==i&&(i=t,!0)}),this.filtered=t},e.prototype.filterCompletions=function(e,t){var i=[],n=t.toUpperCase(),r=t.toLowerCase();e:for(var o,s=0;o=e[s];s++){var a,l,d=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(d){var u=-1,h=0,c=0;if(this.exactMatch){if(t!==d.substr(0,t.length))continue}else{var g=d.toLowerCase().indexOf(r);if(g>-1)c=g;else for(var p=0;p=0&&(f<0||m0&&(-1===u&&(c+=10),c+=l,h|=1<",a.escapeHTML(e.caption),"","
",a.escapeHTML(h(e.snippet))].join(""))},id:"snippetCompleter"},g=[c,d,u];t.setCompleters=function(e){g.length=0,e&&g.push.apply(g,e)},t.addCompleter=function(e){g.push(e)},t.textCompleter=d,t.keyWordCompleter=u,t.snippetCompleter=c;var p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},m=function(e,t){f(t.session.$mode)},f=function(e){"string"==typeof e&&(e=s.$modes[e]),e&&(r.files||(r.files={}),_(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(f))},_=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},s.loadModule(t,function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){f("ace/mode/"+e)})))}))},b=function(e){var t=e.editor,i=t.completer&&t.completer.activated;if("backspace"===e.command.name)i&&!l.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!i){n=e;var r=e.editor.$liveAutocompletionDelay;r?v.delay(r):C(e)}},v=a.delayedCall(function(){C(n)},0),C=function(e){var t=e.editor,i=l.getCompletionPrefix(t),n=l.triggerAutocomplete(t);if((i||n)&&i.length>=t.$liveAutocompletionThreshold){var r=o.for(t);r.autoShown=!0,r.showPopup(t)}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.on("afterExec",b)):this.commands.off("afterExec",b)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(p),this.off("changeMode",m))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},7527:function(e,t,i){e=i.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,i){"use strict";var n=e("./lib/oop");e("./lib/lang");var r=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(e){this.$cEditor=e}).bind(this))};(function(){n.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new s(e,this.$theme));return t.on("focus",(function(){this._emit("focus",t)}).bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,r=0;rd)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(n==d)break}a=t}}return new r(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),o=e.getLength(),s=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++is)return new r(s,n,u,t.length)}}).call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,i){"use strict";var n=e("../lib/oop"),r=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a};n.inherits(d,r),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(n+=i),n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}).call(d.prototype),t.Mode=d}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},61469:function(e,t,i){"use strict";i.d(t,{Z:function(){return e5}});var n,r,o=i(40431),s=i(65877),a=i(965),l=i(88684),d=i(90151),u=i(18050),h=i(49449),c=i(70184),g=i(43663),p=i(38340),m=i(86006),f=i(48580),_=i(5004),b=i(42442),v=i(8683),C=i.n(v),y=m.createContext(null),w=i(89301),S=m.memo(function(e){for(var t,i=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(i,"-indent-unit"),l=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return i.map(function(h,c){for(var g,p=x(n?n.pos:"0",c),m=N(h[o],p),f=0;f1&&void 0!==arguments[1]?arguments[1]:{},p=g.initWrapper,m=g.processEntity,f=g.onProcessFinished,_=g.externalGetKey,b=g.childrenPropName,v=g.fieldNames,C=arguments.length>2?arguments[2]:void 0,y={},w={},S={posEntities:y,keyEntities:w};return p&&(S=p(S)||S),t=function(e){var t=e.node,i=e.index,n=e.pos,r=e.key,o=e.parentPos,s=e.level,a={node:t,nodes:e.nodes,index:i,key:r,pos:n,level:s},l=N(r,n);y[n]=a,w[l]=a,a.parent=y[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a)),m&&m(a,S)},i={externalGetKey:_||C,childrenPropName:b,fieldNames:v},o=(r=("object"===(0,a.Z)(i)?i:{externalGetKey:i})||{}).childrenPropName,s=r.externalGetKey,u=(l=D(r.fieldNames)).key,h=l.children,c=o||h,s?"string"==typeof s?n=function(e){return e[s]}:"function"==typeof s&&(n=function(e){return s(e)}):n=function(e,t){return N(e[u],t)},function i(r,o,s,a){var l=r?r[c]:e,u=r?x(s.pos,o):"0",h=r?[].concat((0,d.Z)(a),[r]):[];if(r){var g=n(r,u);t({node:r,index:o,pos:u,key:g,parentPos:s.node?s.pos:null,level:s.level+1,nodes:h})}l&&l.forEach(function(e,t){i(e,t,{node:r,pos:u,level:s?s.level+1:-1},h)})}(null),f&&f(S),S}function A(e,t){var i=t.expandedKeys,n=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,d=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==i.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===d,dragOverGapTop:l===e&&-1===d,dragOverGapBottom:l===e&&1===d}}function O(e){var t=e.data,i=e.expanded,n=e.selected,r=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,d=e.dragOver,u=e.dragOverGapTop,h=e.dragOverGapBottom,c=e.pos,g=e.active,p=e.eventKey,m=(0,l.Z)((0,l.Z)({},t),{},{expanded:i,selected:n,checked:r,loaded:o,loading:s,halfChecked:a,dragOver:d,dragOverGapTop:u,dragOverGapBottom:h,pos:c,active:g,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,_.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],P="open",F="close",B=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o=0&&i.splice(n,1),i}function V(e,t){var i=(e||[]).slice();return -1===i.indexOf(t)&&i.push(t),i}function z(e){return e.split("-")}function U(e,t,i,n,r,o,s,a,l,d){var u,h,c=e.clientX,g=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,f=p.height,_=(("rtl"===d?-1:1)*(((null==r?void 0:r.x)||0)-c)-12)/n,b=a[i.props.eventKey];if(g-1.5?o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:0})?S=0:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(h=b.parent)||void 0===h?void 0:h.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function K(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,a.Z)(e))return(0,_.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function j(e,t){var i=new Set;return(e||[]).forEach(function(e){!function e(n){if(!i.has(n)){var r=t[n];if(r){i.add(n);var o=r.parent;!r.node.disabled&&o&&e(o.key)}}}(e)}),(0,d.Z)(i)}function G(e){if(null==e)throw TypeError("Cannot destructure "+e)}H.displayName="TreeNode",H.isTreeNode=1;var q=i(60456),Z=i(38358),Y=i(43783),Q=i(78641),X=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],J=function(e,t){var i,n,r,s,a,l=e.className,d=e.style,u=e.motion,h=e.motionNodes,c=e.motionType,g=e.onMotionStart,p=e.onMotionEnd,f=e.active,_=e.treeNodeRequiredProps,b=(0,w.Z)(e,X),v=m.useState(!0),S=(0,q.Z)(v,2),E=S[0],k=S[1],L=m.useContext(y).prefixCls,x=h&&"hide"!==c;(0,Z.Z)(function(){h&&x!==E&&k(x)},[h]);var N=m.useRef(!1),D=function(){h&&!N.current&&(N.current=!0,p())};return(i=function(){h&&g()},n=m.useState(!1),s=(r=(0,q.Z)(n,2))[0],a=r[1],m.useLayoutEffect(function(){if(s)return i(),function(){D()}},[s]),m.useLayoutEffect(function(){return a(!0),function(){a(!1)}},[]),h)?m.createElement(Q.ZP,(0,o.Z)({ref:t,visible:E},u,{motionAppear:"show"===c,onVisibleChanged:function(e){x===e&&D()}}),function(e,t){var i=e.className,n=e.style;return m.createElement("div",{ref:t,className:C()("".concat(L,"-treenode-motion"),i),style:n},h.map(function(e){var t=(0,o.Z)({},(G(e.data),e.data)),i=e.title,n=e.key,r=e.isStart,s=e.isEnd;delete t.children;var a=A(n,_);return m.createElement(H,(0,o.Z)({},t,a,{title:i,active:f,data:e.data,key:n,isStart:r,isEnd:s}))}))}):m.createElement(H,(0,o.Z)({domRef:t,className:l,style:d},b,{active:f}))};J.displayName="MotionTreeNode";var ee=m.forwardRef(J);function et(e,t,i){var n=e.findIndex(function(e){return e.key===i}),r=e[n+1],o=t.findIndex(function(e){return e.key===i});if(r){var s=t.findIndex(function(e){return e.key===r.key});return t.slice(o+1,s)}return t.slice(o+1)}var ei=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},er=function(){},eo="RC_TREE_MOTION_".concat(Math.random()),es={key:eo},ea={key:eo,level:0,index:0,pos:"0",node:es,nodes:[es]},el={parent:null,children:[],pos:ea.pos,data:es,title:null,key:eo,isStart:[],isEnd:[]};function ed(e,t,i,n){return!1!==t&&i?e.slice(0,Math.ceil(i/n)+1):e}function eu(e){return N(e.key,e.pos)}var eh=m.forwardRef(function(e,t){var i=e.prefixCls,n=e.data,r=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,d=e.loadingKeys,u=e.halfCheckedKeys,h=e.keyEntities,c=e.disabled,g=e.dragging,p=e.dragOverNodeKey,f=e.dropPosition,_=e.motion,b=e.height,v=e.itemHeight,C=e.virtual,y=e.focusable,S=e.activeItem,E=e.focused,k=e.tabIndex,L=e.onKeyDown,x=e.onFocus,D=e.onBlur,T=e.onActiveChange,I=e.onListChangeStart,R=e.onListChangeEnd,O=(0,w.Z)(e,ei),M=m.useRef(null),P=m.useRef(null);m.useImperativeHandle(t,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}});var F=m.useState(r),B=(0,q.Z)(F,2),H=B[0],W=B[1],V=m.useState(n),z=(0,q.Z)(V,2),U=z[0],$=z[1],K=m.useState(n),j=(0,q.Z)(K,2),Q=j[0],X=j[1],J=m.useState([]),es=(0,q.Z)(J,2),ea=es[0],eh=es[1],ec=m.useState(null),eg=(0,q.Z)(ec,2),ep=eg[0],em=eg[1],ef=m.useRef(n);function e_(){var e=ef.current;$(e),X(e),eh([]),em(null),R()}ef.current=n,(0,Z.Z)(function(){W(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.length,n=t.length;if(1!==Math.abs(i-n))return{add:!1,key:null};function r(e,t){var i=new Map;e.forEach(function(e){i.set(e,!0)});var n=t.filter(function(e){return!i.has(e)});return 1===n.length?n[0]:null}return i ").concat(t);return t}(S)),m.createElement("div",null,m.createElement("input",{style:en,disabled:!1===y||c,tabIndex:!1!==y?k:null,onKeyDown:L,onFocus:x,onBlur:D,value:"",onChange:er,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(i,"-indent")},m.createElement("div",{ref:P,className:"".concat(i,"-indent-unit")}))),m.createElement(Y.Z,(0,o.Z)({},O,{data:eb,itemKey:eu,height:b,fullHeight:!1,virtual:C,itemHeight:v,prefixCls:"".concat(i,"-list"),ref:M,onVisibleChange:function(e,t){var i=new Set(e);t.filter(function(e){return!i.has(e)}).some(function(e){return eu(e)===eo})&&e_()}}),function(e){var t=e.pos,i=(0,o.Z)({},(G(e.data),e.data)),n=e.title,r=e.key,s=e.isStart,a=e.isEnd,l=N(r,t);delete i.key,delete i.children;var d=A(l,ev);return m.createElement(ee,(0,o.Z)({},i,d,{title:n,active:!!S&&r===S.key,pos:t,data:e.data,isStart:s,isEnd:a,motion:_,motionNodes:r===eo?ea:null,motionType:ep,onMotionStart:I,onMotionEnd:e_,treeNodeRequiredProps:ev,onMouseMove:function(){T(null)}}))}))});function ec(e,t){var i=new Set;return e.forEach(function(e){t.has(e)||i.add(e)}),i}function eg(e){var t=e||{},i=t.disabled,n=t.disableCheckbox,r=t.checkable;return!!(i||n)||!1===r}function ep(e,t,i,n){var r,o=[];r=n||eg;var s=new Set(e.filter(function(e){var t=!!i[e];return t||o.push(e),t})),a=new Map,l=0;return Object.keys(i).forEach(function(e){var t=i[e],n=t.level,r=a.get(n);r||(r=new Set,a.set(n,r)),r.add(t),l=Math.max(l,n)}),(0,_.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,i,n){for(var r=new Set(e),o=new Set,s=0;s<=i;s+=1)(t.get(s)||new Set).forEach(function(e){var t=e.key,i=e.node,o=e.children,s=void 0===o?[]:o;r.has(t)&&!n(i)&&s.filter(function(e){return!n(e.node)}).forEach(function(e){r.add(e.key)})});for(var a=new Set,l=i;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent;if(!(n(e.node)||!e.parent||a.has(e.parent.key))){if(n(e.parent.node)){a.add(t.key);return}var i=!0,s=!1;(t.children||[]).filter(function(e){return!n(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);i&&!n&&(i=!1),!s&&(n||o.has(t))&&(s=!0)}),i&&r.add(t.key),s&&o.add(t.key),a.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(ec(o,r))}}(s,a,l,r):function(e,t,i,n,r){for(var o=new Set(e),s=new Set(t),a=0;a<=n;a+=1)(i.get(a)||new Set).forEach(function(e){var t=e.key,i=e.node,n=e.children,a=void 0===n?[]:n;o.has(t)||s.has(t)||r(i)||a.filter(function(e){return!r(e.node)}).forEach(function(e){o.delete(e.key)})});s=new Set;for(var l=new Set,d=n;d>=0;d-=1)(i.get(d)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(t.key);return}var i=!0,n=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=o.has(t);i&&!r&&(i=!1),!n&&(r||s.has(t))&&(n=!0)}),i||o.delete(t.key),n&&s.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ec(s,o))}}(s,t.halfCheckedKeys,a,l,r)}eh.displayName="NodeList";var em=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var i=t.key,r=t.children;n.push(i),e(r)})}(s[l].children),n),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:O(i.props)})},e.onNodeDragEnter=function(t,i){var n=e.state,r=n.expandedKeys,o=n.keyEntities,s=n.dragChildrenKeys,a=n.flattenNodes,l=n.indent,u=e.props,h=u.onDragEnter,g=u.onExpand,p=u.allowDrop,m=u.direction,f=i.props,_=f.pos,b=f.eventKey,v=(0,c.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==b&&(e.currentMouseOverDroppableNodeKey=b),!v){e.resetDragState();return}var C=U(t,v,i,l,e.dragStartMousePosition,p,a,o,r,m),y=C.dropPosition,w=C.dropLevelOffset,S=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,L=C.dropAllowed,x=C.dragOverNodeKey;if(-1!==s.indexOf(S)||!L||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),v.props.eventKey!==i.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[_]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var n=(0,d.Z)(r),s=o[i.props.eventKey];s&&(s.children||[]).length&&(n=V(r,i.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(n),null==g||g(n,{node:O(i.props),expanded:!0,nativeEvent:t.nativeEvent})}},800)),v.props.eventKey===S&&0===w)){e.resetDragState();return}e.setState({dragOverNodeKey:x,dropPosition:y,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:L}),null==h||h({event:t,node:O(i.props),expandedKeys:r})},e.onNodeDragOver=function(t,i){var n=e.state,r=n.dragChildrenKeys,o=n.flattenNodes,s=n.keyEntities,a=n.expandedKeys,l=n.indent,d=e.props,u=d.onDragOver,h=d.allowDrop,g=d.direction,p=(0,c.Z)(e).dragNode;if(p){var m=U(t,p,i,l,e.dragStartMousePosition,h,o,s,a,g),f=m.dropPosition,_=m.dropLevelOffset,b=m.dropTargetKey,v=m.dropContainerKey,C=m.dropAllowed,y=m.dropTargetPos,w=m.dragOverNodeKey;-1===r.indexOf(b)&&C&&(p.props.eventKey===b&&0===_?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():f===e.state.dropPosition&&_===e.state.dropLevelOffset&&b===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&C===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:f,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:v,dropTargetPos:y,dropAllowed:C,dragOverNodeKey:w}),null==u||u({event:t,node:O(i.props)}))}},e.onNodeDragLeave=function(t,i){e.currentMouseOverDroppableNodeKey!==i.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var n=e.props.onDragLeave;null==n||n({event:t,node:O(i.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,i){var n=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==n||n({event:t,node:O(i.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.state,s=o.dragChildrenKeys,a=o.dropPosition,d=o.dropTargetKey,u=o.dropTargetPos;if(o.dropAllowed){var h=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==d){var c=(0,l.Z)((0,l.Z)({},A(d,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.key)===d,data:e.state.keyEntities[d].node}),g=-1!==s.indexOf(d);(0,_.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=z(u),m={event:t,node:O(c),dragNode:e.dragNode?O(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==a,dropPosition:a+Number(p[p.length-1])};r||null==h||h(m),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,i){var n=e.state,r=n.expandedKeys,o=n.flattenNodes,s=i.expanded,a=i.key;if(!i.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var d=o.filter(function(e){return e.key===a})[0],u=O((0,l.Z)((0,l.Z)({},A(a,e.getTreeNodeRequiredProps())),{},{data:d.data}));e.setExpandedKeys(s?W(r,a):V(r,a)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,i){var n=e.props,r=n.onClick;"click"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeDoubleClick=function(t,i){var n=e.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeSelect=function(t,i){var n=e.state.selectedKeys,r=e.state,o=r.keyEntities,s=r.fieldNames,a=e.props,l=a.onSelect,d=a.multiple,u=i.selected,h=i[s.key],c=!u,g=(n=c?d?V(n,h):[h]:W(n,h)).map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:c,node:i,selectedNodes:g,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,i,n){var r,o=e.state,s=o.keyEntities,a=o.checkedKeys,l=o.halfCheckedKeys,u=e.props,h=u.checkStrictly,c=u.onCheck,g=i.key,p={event:"check",node:i,checked:n,nativeEvent:t.nativeEvent};if(h){var m=n?V(a,g):W(a,g);r={checked:m,halfChecked:W(l,g)},p.checkedNodes=m.map(function(e){return s[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:m})}else{var f=ep([].concat((0,d.Z)(a),[g]),!0,s),_=f.checkedKeys,b=f.halfCheckedKeys;if(!n){var v=new Set(_);v.delete(g);var C=ep(Array.from(v),{checked:!1,halfCheckedKeys:b},s);_=C.checkedKeys,b=C.halfCheckedKeys}r=_,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=b,_.forEach(function(e){var t=s[e];if(t){var i=t.node,n=t.pos;p.checkedNodes.push(i),p.checkedNodesPositions.push({node:i,pos:n})}}),e.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:b})}null==c||c(r,p)},e.onNodeLoad=function(t){var i=t.key,n=new Promise(function(n,r){e.setState(function(o){var s=o.loadedKeys,a=o.loadingKeys,l=void 0===a?[]:a,d=e.props,u=d.loadData,h=d.onLoad;return u&&-1===(void 0===s?[]:s).indexOf(i)&&-1===l.indexOf(i)?(u(t).then(function(){var r=V(e.state.loadedKeys,i);null==h||h(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:W(e.loadingKeys,i)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:W(e.loadingKeys,i)}}),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,_.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:V(o,i)}),n()}r(t)}),{loadingKeys:V(l,i)}):null})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,i){var n=e.props.onMouseEnter;null==n||n({event:t,node:i})},e.onNodeMouseLeave=function(t,i){var n=e.props.onMouseLeave;null==n||n({event:t,node:i})},e.onNodeContextMenu=function(t,i){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:i}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var i=arguments.length,n=Array(i),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,s={};Object.keys(t).forEach(function(i){if(i in e.props){o=!1;return}r=!0,s[i]=t[i]}),r&&(!i||o)&&e.setState((0,l.Z)((0,l.Z)({},s),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,h.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,i=this.state,n=i.focused,r=i.flattenNodes,l=i.keyEntities,d=i.draggingNodeKey,u=i.activeKey,h=i.dropLevelOffset,c=i.dropContainerKey,g=i.dropTargetKey,p=i.dropPosition,f=i.dragOverNodeKey,_=i.indent,v=this.props,w=v.prefixCls,S=v.className,E=v.style,k=v.showLine,L=v.focusable,x=v.tabIndex,N=v.selectable,D=v.showIcon,T=v.icon,I=v.switcherIcon,R=v.draggable,A=v.checkable,O=v.checkStrictly,M=v.disabled,P=v.motion,F=v.loadData,B=v.filterTreeNode,H=v.height,W=v.itemHeight,V=v.virtual,z=v.titleRender,U=v.dropIndicatorRender,$=v.onContextMenu,K=v.onScroll,j=v.direction,G=v.rootClassName,q=v.rootStyle,Z=(0,b.Z)(this.props,{aria:!0,data:!0});return R&&(t="object"===(0,a.Z)(R)?R:"function"==typeof R?{nodeDraggable:R}:{}),m.createElement(y.Provider,{value:{prefixCls:w,selectable:N,showIcon:D,icon:T,switcherIcon:I,draggable:t,draggingNodeKey:d,checkable:A,checkStrictly:O,disabled:M,keyEntities:l,dropLevelOffset:h,dropContainerKey:c,dropTargetKey:g,dropPosition:p,dragOverNodeKey:f,indent:_,direction:j,dropIndicatorRender:U,loadData:F,filterTreeNode:B,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{role:"tree",className:C()(w,S,G,(e={},(0,s.Z)(e,"".concat(w,"-show-line"),k),(0,s.Z)(e,"".concat(w,"-focused"),n),(0,s.Z)(e,"".concat(w,"-active-focused"),null!==u),e)),style:q},m.createElement(eh,(0,o.Z)({ref:this.listRef,prefixCls:w,style:E,data:r,disabled:M,selectable:N,checkable:!!A,motion:P,dragging:null!==d,height:H,itemHeight:W,virtual:V,focusable:L,focused:n,tabIndex:void 0===x?0:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$,onScroll:K},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i,n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var d=t.fieldNames;if(a("fieldNames")&&(d=D(e.fieldNames),o.fieldNames=d),a("treeData")?i=e.treeData:a("children")&&((0,_.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=T(e.children)),i){o.treeData=i;var u=R(i,{fieldNames:d});o.keyEntities=(0,l.Z)((0,s.Z)({},eo,ea),u.keyEntities)}var h=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?j(e.expandedKeys,h):e.expandedKeys;else if(!r&&e.defaultExpandAll){var c=(0,l.Z)({},h);delete c[eo],o.expandedKeys=Object.keys(c).map(function(e){return c[e].key})}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?j(e.defaultExpandedKeys,h):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,i||o.expandedKeys){var g=I(i||t.treeData,o.expandedKeys||t.expandedKeys,d);o.flattenNodes=g}if(e.selectable&&(a("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable&&(a("checkedKeys")?n=K(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?n=K(e.defaultCheckedKeys)||{}:i&&(n=K(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),n)){var p=n,m=p.checkedKeys,f=void 0===m?[]:m,b=p.halfCheckedKeys,v=void 0===b?[]:b;if(!e.checkStrictly){var C=ep(f,!0,h);f=C.checkedKeys,v=C.halfCheckedKeys}o.checkedKeys=f,o.halfCheckedKeys=v}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),i}(m.Component);em.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,i=e.dropLevelOffset,n=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-i*n;break;case 1:r.bottom=0,r.left=-i*n;break;case 0:r.bottom=0,r.left=n}return m.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},em.TreeNode=H;var ef={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},e_=i(1240),eb=m.forwardRef(function(e,t){return m.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ef}))}),ev={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},eC=m.forwardRef(function(e,t){return m.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ev}))}),ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ew=m.forwardRef(function(e,t){return m.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ey}))}),eS=i(79746),eE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ek=m.forwardRef(function(e,t){return m.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eE}))}),eL=i(80716),ex=i(84596),eN=i(98663),eD=i(70721),eT=i(40650);let eI=e=>{let{checkboxCls:t}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,eN.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${i}:not(${i}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` @@ -65,8 +65,8 @@ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${i}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function eR(e,t){let i=(0,eD.TS)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[eI(i)]}(0,eT.Z)("Checkbox",(e,t)=>{let{prefixCls:i}=t;return[eR(i,e)]});var eA=i(57406);let eO=new ex.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),eM=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),eP=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),eF=(e,t)=>{let{treeCls:i,treeNodeCls:n,treeNodePadding:r,treeTitleHeight:o}=t,s=t.paddingXS;return{[i]:Object.assign(Object.assign({},(0,eN.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${i}-rtl`]:{[`${i}-switcher`]:{"&_close":{[`${i}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${i}-active-focused)`]:Object.assign({},(0,eN.oN)(t)),[`${i}-list-holder-inner`]:{alignItems:"flex-start"},[`&${i}-block-node`]:{[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:eO,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${n}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${i}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${i}-node-content-wrapper`]:Object.assign({},(0,eN.oN)(t)),[`&:not(${n}-disabled).filter-node ${i}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${i}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:`${o}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${i}-draggable-icon`]:{visibility:"hidden"}}}},[`${i}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${i}-draggable-icon`]:{visibility:"hidden"},[`${i}-switcher`]:Object.assign(Object.assign({},eM(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:`${o}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${i}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:o/2*.8,height:o/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${i}-checkbox`]:{top:"initial",marginInlineEnd:s},[`${i}-node-content-wrapper, ${i}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${o}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${i}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${i}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:`${o}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${i}-unselectable ${i}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${i}-node-content-wrapper`]:Object.assign({lineHeight:`${o}px`,userSelect:"none"},eP(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${i}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${i}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${i}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${o/2}px !important`}}}}})}},eB=e=>{let{treeCls:t,treeNodeCls:i,treeNodePadding:n}=e;return{[`${t}${t}-directory`]:{[i]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},eW=(e,t)=>{let i=`.${e}`,n=`${i}-treenode`,r=t.paddingXS/2,o=t.controlHeightSM,s=(0,eD.TS)(t,{treeCls:i,treeNodeCls:n,treeNodePadding:r,treeTitleHeight:o});return[eF(e,s),eB(s)]};var eH=(0,eT.Z)("Tree",(e,t)=>{let{prefixCls:i}=t;return[{[e.componentCls]:eR(`${i}-checkbox`,e)},eW(i,e),(0,eA.Z)(e)]});function eV(e){let{dropPosition:t,dropLevelOffset:i,prefixCls:n,indent:r,direction:o="ltr"}=e,s="ltr"===o?"left":"right",a={[s]:-i*r+4,["ltr"===o?"right":"left"]:0};switch(t){case -1:a.top=-3;break;case 1:a.bottom=-3;break;default:a.bottom=-3,a[s]=r+4}return f.createElement("div",{style:a,className:`${n}-drop-indicator`})}var ez={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:"filled"},eU=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ez}))}),e$=i(75710),eK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 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:"minus-square",theme:"outlined"},ej=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eK}))}),eG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 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:"plus-square",theme:"outlined"},eq=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eG}))}),eZ=i(52593),eY=e=>{let t;let{prefixCls:i,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:s,expanded:a,loading:l}=r;if(l)return f.createElement(e$.Z,{className:`${i}-switcher-loading-icon`});if(o&&"object"==typeof o&&(t=o.showLeafIcon),s){if(!o)return null;if("boolean"!=typeof t&&t){let e="function"==typeof t?t(r):t,n=`${i}-switcher-line-custom-icon`;return(0,eZ.l$)(e)?(0,eZ.Tm)(e,{className:C()(e.props.className||"",n)}):e}return t?f.createElement(eb,{className:`${i}-switcher-line-icon`}):f.createElement("span",{className:`${i}-switcher-leaf-line`})}let d=`${i}-switcher-icon`,u="function"==typeof n?n(r):n;return(0,eZ.l$)(u)?(0,eZ.Tm)(u,{className:C()(u.props.className||"",d)}):void 0!==u?u:o?a?f.createElement(ej,{className:`${i}-switcher-line-icon`}):f.createElement(eq,{className:`${i}-switcher-line-icon`}):f.createElement(eU,{className:d})};let eQ=f.forwardRef((e,t)=>{let{getPrefixCls:i,direction:n,virtual:r,tree:o}=f.useContext(eS.E_),{prefixCls:s,className:a,showIcon:l=!1,showLine:d,switcherIcon:u,blockNode:c=!1,children:h,checkable:g=!1,selectable:p=!0,draggable:m,motion:_,style:b}=e,v=i("tree",s),y=i(),w=null!=_?_:Object.assign(Object.assign({},(0,eL.Z)(y)),{motionAppear:!1}),S=Object.assign(Object.assign({},e),{checkable:g,selectable:p,showIcon:l,motion:w,blockNode:c,showLine:!!d,dropIndicatorRender:eV}),[E,k]=eH(v),L=f.useMemo(()=>{if(!m)return!1;let e={};switch(typeof m){case"function":e.nodeDraggable=m;break;case"object":e=Object.assign({},m)}return!1!==e.icon&&(e.icon=e.icon||f.createElement(ek,null)),e},[m]);return E(f.createElement(ef,Object.assign({itemHeight:20,ref:t,virtual:r},S,{style:Object.assign(Object.assign({},null==o?void 0:o.style),b),prefixCls:v,className:C()({[`${v}-icon-hide`]:!l,[`${v}-block-node`]:c,[`${v}-unselectable`]:!p,[`${v}-rtl`]:"rtl"===n},null==o?void 0:o.className,a,k),direction:n,checkable:g?f.createElement("span",{className:`${v}-checkbox-inner`}):g,selectable:p,switcherIcon:e=>f.createElement(eY,{prefixCls:v,switcherIcon:u,treeNodeProps:e,showLine:d}),draggable:L}),h))});function eX(e,t){e.forEach(function(e){let{key:i,children:n}=e;!1!==t(i,e)&&eX(n||[],t)})}function eJ(e,t){let i=(0,d.Z)(t),n=[];return eX(e,(e,t)=>{let r=i.indexOf(e);return -1!==r&&(n.push(t),i.splice(r,1)),!!i.length}),n}(n=r||(r={}))[n.None=0]="None",n[n.Start=1]="Start",n[n.End=2]="End";var e0=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};function e1(e){let{isLeaf:t,expanded:i}=e;return t?f.createElement(eb,null):i?f.createElement(eC,null):f.createElement(ew,null)}function e2(e){let{treeData:t,children:i}=e;return t||T(i)}let e4=f.forwardRef((e,t)=>{var{defaultExpandAll:i,defaultExpandParent:n,defaultExpandedKeys:o}=e,s=e0(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);let a=f.useRef(),l=f.useRef(),u=()=>{let{keyEntities:e}=R(e2(s));return i?Object.keys(e):n?j(s.expandedKeys||o||[],e):s.expandedKeys||o},[c,h]=f.useState(s.selectedKeys||s.defaultSelectedKeys||[]),[g,p]=f.useState(()=>u());f.useEffect(()=>{"selectedKeys"in s&&h(s.selectedKeys)},[s.selectedKeys]),f.useEffect(()=>{"expandedKeys"in s&&p(s.expandedKeys)},[s.expandedKeys]);let{getPrefixCls:m,direction:_}=f.useContext(eS.E_),{prefixCls:b,className:v,showIcon:y=!0,expandAction:w="click"}=s,S=e0(s,["prefixCls","className","showIcon","expandAction"]),E=m("tree",b),k=C()(`${E}-directory`,{[`${E}-directory-rtl`]:"rtl"===_},v);return f.createElement(eQ,Object.assign({icon:e1,ref:t,blockNode:!0},S,{showIcon:y,expandAction:w,prefixCls:E,className:k,expandedKeys:g,selectedKeys:c,onSelect:(e,t)=>{var i;let n;let{multiple:o}=s,{node:u,nativeEvent:c}=t,{key:p=""}=u,f=e2(s),m=Object.assign(Object.assign({},t),{selected:!0}),_=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),b=null==c?void 0:c.shiftKey;o&&_?(n=e,a.current=p,l.current=n,m.selectedNodes=eJ(f,n)):o&&b?(n=Array.from(new Set([].concat((0,d.Z)(l.current||[]),(0,d.Z)(function(e){let{treeData:t,expandedKeys:i,startKey:n,endKey:o}=e,s=[],a=r.None;return n&&n===o?[n]:n&&o?(eX(t,e=>{if(a===r.End)return!1;if(e===n||e===o){if(s.push(e),a===r.None)a=r.Start;else if(a===r.Start)return a=r.End,!1}else a===r.Start&&s.push(e);return i.includes(e)}),s):[]}({treeData:f,expandedKeys:g,startKey:p,endKey:a.current}))))),m.selectedNodes=eJ(f,n)):(n=[p],a.current=p,l.current=n,m.selectedNodes=eJ(f,n)),null===(i=s.onSelect)||void 0===i||i.call(s,n,m),"selectedKeys"in s||h(n)},onExpand:(e,t)=>{var i;return"expandedKeys"in s||p(e),null===(i=s.onExpand)||void 0===i?void 0:i.call(s,e,t)}}))});eQ.DirectoryTree=e4,eQ.TreeNode=W;var e5=eQ},19045:function(e,t){"use strict";t.Q=function(e){for(var t,i=[],n=String(e||""),r=n.indexOf(","),o=0,s=!1;!s;)-1===r&&(r=n.length,s=!0),((t=n.slice(o,r).trim())||!s)&&i.push(t),o=r+1,r=n.indexOf(",",o);return i}},21299:function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,i,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=r;if(null==e||null==i)throw Error("Null input. (diff_main)");if(e==i)return e?[new t.Diff(0,e)]:[];void 0===n&&(n=!0);var s=n,a=this.diff_commonPrefix(e,i),l=e.substring(0,a);e=e.substring(a),i=i.substring(a),a=this.diff_commonSuffix(e,i);var d=e.substring(e.length-a);e=e.substring(0,e.length-a),i=i.substring(0,i.length-a);var u=this.diff_compute_(e,i,s,o);return l&&u.unshift(new t.Diff(0,l)),d&&u.push(new t.Diff(0,d)),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,i,n,r){if(!e)return[new t.Diff(1,i)];if(!i)return[new t.Diff(-1,e)];var o,s=e.length>i.length?e:i,a=e.length>i.length?i:e,l=s.indexOf(a);if(-1!=l)return o=[new t.Diff(1,s.substring(0,l)),new t.Diff(0,a),new t.Diff(1,s.substring(l+a.length))],e.length>i.length&&(o[0][0]=o[2][0]=-1),o;if(1==a.length)return[new t.Diff(-1,e),new t.Diff(1,i)];var d=this.diff_halfMatch_(e,i);if(d){var u=d[0],c=d[1],h=d[2],g=d[3],p=d[4],f=this.diff_main(u,h,n,r),m=this.diff_main(c,g,n,r);return f.concat([new t.Diff(0,p)],m)}return n&&e.length>100&&i.length>100?this.diff_lineMode_(e,i,r):this.diff_bisect_(e,i,r)},t.prototype.diff_lineMode_=function(e,i,n){var r=this.diff_linesToChars_(e,i);e=r.chars1,i=r.chars2;var o=r.lineArray,s=this.diff_main(e,i,!1,n);this.diff_charsToLines_(s,o),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var a=0,l=0,d=0,u="",c="";a=1&&d>=1){s.splice(a-l-d,l+d),a=a-l-d;for(var h=this.diff_main(u,c,!1,n),g=h.length-1;g>=0;g--)s.splice(a,0,h[g]);a+=h.length}d=0,l=0,u="",c=""}a++}return s.pop(),s},t.prototype.diff_bisect_=function(e,i,n){for(var r=e.length,o=i.length,s=Math.ceil((r+o)/2),a=2*s,l=Array(a),d=Array(a),u=0;un);_++){for(var b=-_+g;b<=_-p;b+=2){for(var v,C=s+b,y=(v=b==-_||b!=_&&l[C-1]r)p+=2;else if(y>o)g+=2;else if(h){var w=s+c-b;if(w>=0&&w=S)return this.diff_bisectSplit_(e,i,v,y,n)}}}for(var E=-_+f;E<=_-m;E+=2){for(var S,w=s+E,k=(S=E==-_||E!=_&&d[w-1]r)m+=2;else if(k>o)f+=2;else if(!h){var C=s+c-E;if(C>=0&&C=(S=r-S))return this.diff_bisectSplit_(e,i,v,y,n)}}}}return[new t.Diff(-1,e),new t.Diff(1,i)]},t.prototype.diff_bisectSplit_=function(e,t,i,n,r){var o=e.substring(0,i),s=t.substring(0,n),a=e.substring(i),l=t.substring(n),d=this.diff_main(o,s,!1,r),u=this.diff_main(a,l,!1,r);return d.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var i=[],n={};function r(e){for(var t="",r=0,s=-1,a=i.length;sn?e=e.substring(i-n):it.length?e:t,l=e.length>t.length?t:e;if(a.length<4||2*l.length=e.length?[n,r,o,s,u]:null}var c=u(a,l,Math.ceil(a.length/4)),h=u(a,l,Math.ceil(a.length/2));return c||h?(i=h?c&&c[4].length>h[4].length?c:h:c,e.length>t.length?(n=i[0],r=i[1],o=i[2],s=i[3]):(o=i[0],s=i[1],n=i[2],r=i[3]),[n,r,o,s,i[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var i=!1,n=[],r=0,o=null,s=0,a=0,l=0,d=0,u=0;s0?n[r-1]:-1,a=0,l=0,d=0,u=0,o=null,i=!0)),s++;for(i&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s=p?(g>=c.length/2||g>=h.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,g))),e[s-1][1]=c.substring(0,c.length-g),e[s+1][1]=h.substring(g),s++):(p>=c.length/2||p>=h.length/2)&&(e.splice(s,0,new t.Diff(0,c.substring(0,p))),e[s-1][0]=1,e[s-1][1]=h.substring(0,h.length-p),e[s+1][0]=-1,e[s+1][1]=c.substring(p),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function i(e,i){if(!e||!i)return 6;var n=e.charAt(e.length-1),r=i.charAt(0),o=n.match(t.nonAlphaNumericRegex_),s=r.match(t.nonAlphaNumericRegex_),a=o&&n.match(t.whitespaceRegex_),l=s&&r.match(t.whitespaceRegex_),d=a&&n.match(t.linebreakRegex_),u=l&&r.match(t.linebreakRegex_),c=d&&e.match(t.blanklineEndRegex_),h=u&&i.match(t.blanklineStartRegex_);return c||h?5:d||u?4:o&&!a&&l?3:a||l?2:o||s?1:0}for(var n=1;n=h&&(h=g,d=r,u=o,c=s)}e[n-1][1]!=d&&(d?e[n-1][1]=d:(e.splice(n-1,1),n--),e[n][1]=u,c?e[n+1][1]=c:(e.splice(n+1,1),n--))}n++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var i=!1,n=[],r=0,o=null,s=0,a=!1,l=!1,d=!1,u=!1;s0?n[r-1]:-1,d=u=!1),i=!0)),s++;i&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var i,n=0,r=0,o=0,s="",a="";n1?(0!==r&&0!==o&&(0!==(i=this.diff_commonPrefix(a,s))&&(n-r-o>0&&0==e[n-r-o-1][0]?e[n-r-o-1][1]+=a.substring(0,i):(e.splice(0,0,new t.Diff(0,a.substring(0,i))),n++),a=a.substring(i),s=s.substring(i)),0!==(i=this.diff_commonSuffix(a,s))&&(e[n][1]=a.substring(a.length-i)+e[n][1],a=a.substring(0,a.length-i),s=s.substring(0,s.length-i))),n-=r+o,e.splice(n,r+o),s.length&&(e.splice(n,0,new t.Diff(-1,s)),n++),a.length&&(e.splice(n,0,new t.Diff(1,a)),n++),n++):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,s="",a=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(n=1;nt));i++)o=n,s=r;return e.length!=i&&-1===e[i][0]?s:s+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],i=/&/g,n=//g,o=/\n/g,s=0;s");switch(a){case 1:t[s]=''+l+"";break;case -1:t[s]=''+l+"";break;case 0:t[s]=""+l+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],i=0;ithis.Match_MaxBits)throw Error("Pattern too long for this browser.");var n,r,o,s=this.match_alphabet_(t),a=this;function l(e,n){var r=e/t.length,o=Math.abs(i-n);return a.Match_Distance?r+o/a.Match_Distance:o?1:r}var d=this.Match_Threshold,u=e.indexOf(t,i);-1!=u&&(d=Math.min(l(0,u),d),-1!=(u=e.lastIndexOf(t,i+t.length))&&(d=Math.min(l(0,u),d)));var c=1<=p;_--){var b=s[e.charAt(_-1)];if(0===g?m[_]=(m[_+1]<<1|1)&b:m[_]=(m[_+1]<<1|1)&b|((o[_+1]|o[_])<<1|1)|o[_+1],m[_]&c){var v=l(g,_-1);if(v<=d){if(d=v,(u=_-1)>i)p=Math.max(1,2*i-u);else break}}}if(l(g+1,i)>d)break;o=m}return u},t.prototype.match_alphabet_=function(e){for(var t={},i=0;i2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===i&&void 0===n)o=e,r=this.diff_text1(o);else if("string"==typeof e&&i&&"object"==typeof i&&void 0===n)r=e,o=i;else if("string"==typeof e&&"string"==typeof i&&n&&"object"==typeof n)r=e,o=n;else throw Error("Unknown call format to patch_make.");if(0===o.length)return[];for(var r,o,s=[],a=new t.patch_obj,l=0,d=0,u=0,c=r,h=r,g=0;g=2*this.Patch_Margin&&l&&(this.patch_addContext_(a,c),s.push(a),a=new t.patch_obj,l=0,c=h,d=u)}1!==p&&(d+=f.length),-1!==p&&(u+=f.length)}return l&&(this.patch_addContext_(a,c),s.push(a)),s},t.prototype.patch_deepCopy=function(e){for(var i=[],n=0;nthis.Match_MaxBits?-1!=(u=this.match_main(t,a.substring(0,this.Match_MaxBits),s))&&(-1==(l=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits))||u>=l)&&(u=-1):u=this.match_main(t,a,s),-1==u)r[o]=!1,n-=e[o].length2-e[o].length1;else if(r[o]=!0,n=u-s,c=-1==l?t.substring(u,u+a.length):t.substring(u,l+this.Match_MaxBits),a==c)t=t.substring(0,u)+this.diff_text2(e[o].diffs)+t.substring(u+a.length);else{var d=this.diff_main(a,c,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(d)/a.length>this.Patch_DeleteThreshold)r[o]=!1;else{this.diff_cleanupSemanticLossless(d);for(var u,c,h,g=0,p=0;ps[0][1].length){var a=i-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}if(0==(s=(o=e[e.length-1]).diffs).length||0!=s[s.length-1][0])s.push(new t.Diff(0,n)),o.length1+=i,o.length2+=i;else if(i>s[s.length-1][1].length){var a=i-s[s.length-1][1].length;s[s.length-1][1]+=n.substring(0,a),o.length1+=a,o.length2+=a}return n},t.prototype.patch_splitMax=function(e){for(var i=this.Match_MaxBits,n=0;n2*i?(l.length1+=c.length,o+=c.length,d=!1,l.diffs.push(new t.Diff(u,c)),r.diffs.shift()):(c=c.substring(0,i-l.length1-this.Patch_Margin),l.length1+=c.length,o+=c.length,0===u?(l.length2+=c.length,s+=c.length):d=!1,l.diffs.push(new t.Diff(u,c)),c==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(c.length))}a=(a=this.diff_text2(l.diffs)).substring(a.length-this.Patch_Margin);var h=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==h&&(l.length1+=h.length,l.length2+=h.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=h:l.diffs.push(new t.Diff(0,h))),d||e.splice(++n,0,l)}}},t.prototype.patch_toText=function(e){for(var t=[],i=0;i=97&&t<=122||t>=65&&t<=90}},47661:function(e,t,i){"use strict";var n=i(82596),r=i(54329);e.exports=function(e){return n(e)||r(e)}},54329:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},50692: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}},70776:function(e,t,i){var n,r="__lodash_hash_undefined__",o=1/0,s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,l=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,h="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,g="object"==typeof self&&self&&self.Object===Object&&self,p=h||g||Function("return this")(),f=Array.prototype,m=Function.prototype,_=Object.prototype,b=p["__core-js_shared__"],v=(n=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",C=m.toString,y=_.hasOwnProperty,w=_.toString,S=RegExp("^"+C.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=p.Symbol,k=f.splice,L=M(p,"Map"),x=M(Object,"create"),N=E?E.prototype:void 0,D=N?N.toString:void 0;function T(e){var t=-1,i=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var i=this.__data__,n=A(i,e);return n<0?i.push([e,t]):i[n][1]=t,this},R.prototype.clear=function(){this.__data__={hash:new T,map:new(L||I),string:new T}},R.prototype.delete=function(e){return O(this,e).delete(e)},R.prototype.get=function(e){return O(this,e).get(e)},R.prototype.has=function(e){return O(this,e).has(e)},R.prototype.set=function(e,t){return O(this,e).set(e,t),this};var P=F(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(H(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(t);var t,i=[];return l.test(e)&&i.push(""),e.replace(d,function(e,t,n,r){i.push(n?r.replace(u,"$1"):t||e)}),i});function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s),s};return i.cache=new(F.Cache||R),i}F.Cache=R;var B=Array.isArray;function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,i){var n=null==e?void 0:function(e,t){var i;t=!function(e,t){if(B(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||H(e))||a.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?B(i=t)?i:P(i):[t];for(var n=0,r=t.length;null!=e&&na))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var u=-1,c=!0,h=2&i?new e_:void 0;for(o.set(e,t),o.set(t,e);++u-1&&u%1==0&&u-1},ef.prototype.set=function(e,t){var i=this.__data__,n=ev(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(ei||ef),string:new ep}},em.prototype.delete=function(e){var t=eE(this,e).delete(e);return this.size-=t?1:0,t},em.prototype.get=function(e){return eE(this,e).get(e)},em.prototype.has=function(e){return eE(this,e).has(e)},em.prototype.set=function(e,t){var i=eE(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},e_.prototype.add=e_.prototype.push=function(e){return this.__data__.set(e,s),this},e_.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new ef,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ef){var n=i.__data__;if(!ei||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new em(n)}return i.set(e,t),this.size=i.size,this};var eL=X?function(e){return null==e?[]:function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i-1&&e%1==0&&e<=9007199254740991}function eM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eP(e){return null!=e&&"object"==typeof e}var eF=O?function(e){return O(e)}:function(e){return eP(e)&&eO(e.length)&&!!k[eC(e)]};e.exports=function(e,t){return function e(t,i,n,r,o){return t===i||(null!=t&&null!=i&&(eP(t)||eP(i))?function(e,t,i,n,r,o){var s=eI(e),h=eI(t),m=s?l:ex(e),C=h?l:ex(t);m=m==a?f:m,C=C==a?f:C;var S=m==f,E=C==f,k=m==C;if(k&&eR(e)){if(!eR(t))return!1;s=!0,S=!1}if(k&&!S)return o||(o=new eb),s||eF(e)?ew(e,t,i,n,r,o):function(e,t,i,n,r,o,s){switch(i){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case y:if(e.byteLength!=t.byteLength||!o(new q(e),new q(t)))break;return!0;case d:case u:case p:return eD(+e,+t);case c:return e.name==t.name&&e.message==t.message;case _:case v:return e==t+"";case g:var a=M;case b:var l=1&n;if(a||(a=P),e.size!=t.size&&!l)break;var h=s.get(e);if(h)return h==t;n|=2,s.set(e,t);var f=ew(a(e),a(t),n,r,o,s);return s.delete(e),f;case"[object Symbol]":if(eg)return eg.call(e)==eg.call(t)}return!1}(e,t,m,i,n,r,o);if(!(1&i)){var L=S&&z.call(e,"__wrapped__"),x=E&&z.call(t,"__wrapped__");if(L||x){var N=L?e.value():e,D=x?t.value():t;return o||(o=new eb),r(N,D,i,n,o)}}return!!k&&(o||(o=new eb),function(e,t,i,n,r,o){var s=1&i,a=eS(e),l=a.length;if(l!=eS(t).length&&!s)return!1;for(var d=l;d--;){var u=a[d];if(!(s?u in t:z.call(t,u)))return!1}var c=o.get(e);if(c&&o.get(t))return c==t;var h=!0;o.set(e,t),o.set(t,e);for(var g=s;++dthis._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 a extends r.JT{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new s);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 l(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let d=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=(0,r.dk)(new a)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}};function u(){return o.INSTANCE.getZoomFactor()}let c=navigator.userAgent,h=c.indexOf("Firefox")>=0,g=c.indexOf("AppleWebKit")>=0,p=c.indexOf("Chrome")>=0,f=!p&&c.indexOf("Safari")>=0,m=!p&&!f&&g;c.indexOf("Electron/");let _=c.indexOf("Android")>=0,b=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");b=e.matches,l(e,({matches:e})=>{b&&t.matches||(b=e)})}function v(){return b}},82903:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i(54499),r=i(93683);let o={clipboard:{writeText:r.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:r.tY||n.$W()?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},83782:function(e,t,i){"use strict";i.d(t,{g:function(){return r}});var n=i(95822);let r={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:n.v.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},69274:function(e,t,i){"use strict";let n,r;i.d(t,{$:function(){return el},$Z:function(){return eu},Ay:function(){return z},Ce:function(){return er},Cp:function(){return ec},D6:function(){return L},Dx:function(){return k},FK:function(){return O},Fx:function(){return B},GQ:function(){return S},I8:function(){return R},If:function(){return M},OO:function(){return V},PO:function(){return _},R3:function(){return en},Re:function(){return Z},Ro:function(){return N},Uh:function(){return eh},Uw:function(){return b},V3:function(){return eg},XT:function(){return function e(t,i){if(void 0!==t){let n=t.match(/^\s*var\((.+)\)$/);if(n){let t=n[1].split(",",2);return 2===t.length&&(i=e(t[1].trim(),i)),`var(${t[0]}, ${i})`}return t}return i}},_0:function(){return ee},_F:function(){return e_},_h:function(){return em},_q:function(){return ev},cl:function(){return Q},dS:function(){return $},dp:function(){return T},eg:function(){return eC},fk:function(){return G},go:function(){return ei},h:function(){return ew},i:function(){return I},iJ:function(){return ed},jL:function(){return r},jg:function(){return F},jt:function(){return ep},lI:function(){return n},mc:function(){return eo},mu:function(){return w},nm:function(){return C},sQ:function(){return eb},tw:function(){return Y},uN:function(){return q},uU:function(){return W},vL:function(){return J},vY:function(){return U},w:function(){return A},wY:function(){return ef},wn:function(){return P},xQ:function(){return D},zB:function(){return X}});var o,s,a=i(54499),l=i(82903),d=i(40407),u=i(26860),c=i(36632),h=i(29004),g=i(40784),p=i(29653),f=i(9715),m=i(93683);function _(e){for(;e.firstChild;)e.firstChild.remove()}function b(e){var t;return null!==(t=null==e?void 0:e.isConnected)&&void 0!==t&&t}class v{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function C(e,t,i,n){return new v(e,t,i,n)}function y(e){return function(t){return e(new u.n(t))}}let w=function(e,t,i,n){let r=i;return"click"===t||"mousedown"===t?r=y(i):("keydown"===t||"keypress"===t||"keyup"===t)&&(r=function(e){return i(new d.y(e))}),C(e,t,r,n)},S=function(e,t,i){let n=y(t);return C(e,m.gn&&l.D.pointerEvents?Y.POINTER_DOWN:Y.MOUSE_DOWN,n,i)};class E{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,c.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function k(e){return document.defaultView.getComputedStyle(e,null)}function L(e){if(e!==document.body)return new N(e.clientWidth,e.clientHeight);if(m.gn&&window.visualViewport)return new N(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new N(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new N(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new N(document.documentElement.clientWidth,document.documentElement.clientHeight);throw Error("Unable to figure out browser width and height")}!function(){let e=[],t=null,i=!1,o=!1,s=()=>{for(i=!1,t=e,e=[],o=!0;t.length>0;){t.sort(E.sort);let e=t.shift();e.execute()}o=!1};r=(t,n=0)=>{let r=new E(t,n);return e.push(r),i||(i=!0,requestAnimationFrame(s)),r},n=(e,i)=>{if(!o)return r(e,i);{let n=new E(e,i);return t.push(n),n}}}();class x{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=k(e),r=n?n.getPropertyValue(t):"0";return x.convertToPixels(e,r)}static getBorderLeftWidth(e){return x.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return x.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return x.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return x.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return x.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return x.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return x.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return x.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return x.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return x.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return x.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return x.getDimension(e,"margin-bottom","marginBottom")}}class N{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new N(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof N?e:new N(e.width,e.height)}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height}}function D(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;let r=H(e)?null:k(e);r&&(n-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=x.getBorderLeftWidth(e),i+=x.getBorderTopWidth(e)+e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function T(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function I(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,width:t.width,height:t.height}}function R(e){let t=e,i=1;do{let e=k(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==document.documentElement);return i}function A(e){let t=x.getMarginLeft(e)+x.getMarginRight(e);return e.offsetWidth+t}function O(e){let t=x.getBorderLeftWidth(e)+x.getBorderRightWidth(e),i=x.getPaddingLeft(e)+x.getPaddingRight(e);return e.offsetWidth-t-i}function M(e){let t=x.getBorderTopWidth(e)+x.getBorderBottomWidth(e),i=x.getPaddingTop(e)+x.getPaddingBottom(e);return e.offsetHeight-t-i}function P(e){let t=x.getMarginTop(e)+x.getMarginBottom(e);return e.offsetHeight+t}function F(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break}else if(e===i)break}e=e.parentNode}return null}function W(e,t,i){return!!B(e,t,i)}function H(e){return e&&!!e.host&&!!e.mode}function V(e){return!!z(e)}function z(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return H(e)?e:null}function U(){let e=document.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function $(e=document.getElementsByTagName("head")[0],t){let i=document.createElement("style");return i.type="text/css",i.media="screen",null==t||t(i),e.appendChild(i),i}N.None=new N(0,0);let K=null;function j(){return K||(K=$()),K}function G(e,t,i=j()){i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)}function q(e,t=j()){var i,n;if(!t)return;let r=(null===(i=null==t?void 0:t.sheet)||void 0===i?void 0:i.rules)?t.sheet.rules:(null===(n=null==t?void 0:t.sheet)||void 0===n?void 0:n.cssRules)?t.sheet.cssRules:[],o=[];for(let t=0;t=0;e--)t.sheet.deleteRule(o[e])}function Z(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}let Y={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:a.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:a.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:a.Pf?"webkitAnimationIteration":"animationiteration"};function Q(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation)}let X={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function J(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function ee(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class et extends p.JT{static hasFocusWithin(e){let t=z(e),i=t?t.activeElement:document.activeElement;return F(i,e)}constructor(e){super(),this._onDidFocus=this._register(new h.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new h.Q5),this.onDidBlur=this._onDidBlur.event;let t=et.hasFocusWithin(e),i=!1,n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{let i=et.hasFocusWithin(e);i!==t&&(t?r():n())},this._register(C(e,Y.FOCUS,n,!0)),this._register(C(e,Y.BLUR,r,!0)),this._register(C(e,Y.FOCUS_IN,()=>this._refreshStateHandler())),this._register(C(e,Y.FOCUS_OUT,()=>this._refreshStateHandler()))}}function ei(e){return new et(e)}function en(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function er(e,t){return e.insertBefore(t,e.firstChild),t}function eo(e,...t){e.innerText="",en(e,...t)}let es=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function ea(e,t,i,...n){let r;let o=es.exec(t);if(!o)throw Error("Bad use of emmet");let a=o[1]||"div";return r=e!==s.HTML?document.createElementNS(e,a):document.createElement(a),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))}),r.append(...n),r}function el(e,t,...i){return ea(s.HTML,e,t,...i)}function ed(e,...t){e?eu(...t):ec(...t)}function eu(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function ec(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function eh(e){let t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function eg(e){window.open(e,"_blank","noopener")}function ep(e){let t=()=>{e(),i=r(t)},i=r(t);return(0,p.OF)(()=>i.dispose())}function ef(e){return e?`url('${f.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function em(e){return`'${e.replace(/'/g,"%27")}'`}function e_(e,t=!1){let i=document.createElement("a");return g.v5("afterSanitizeAttributes",n=>{for(let r of["href","src"])if(n.hasAttribute(r)){let o=n.getAttribute(r);if("href"===r&&o.startsWith("#"))continue;if(i.href=o,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===r&&i.href.startsWith("data:"))continue;n.removeAttribute(r)}}}),(0,p.OF)(()=>{g.ok("afterSanitizeAttributes")})}(o=s||(s={})).HTML="http://www.w3.org/1999/xhtml",o.SVG="http://www.w3.org/2000/svg",el.SVG=function(e,t,...i){return ea(s.SVG,e,t,...i)},f.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");let eb=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class ev extends h.Q5{constructor(){super(),this._subscriptions=new p.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(C(window,"keydown",e=>{if(e.defaultPrevented)return;let t=new d.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(C(window,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(C(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(C(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(C(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(C(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ev.instance||(ev.instance=new ev),ev.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class eC extends p.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this._register(C(this.element,Y.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter(e)})),this._register(C(this.element,Y.DRAG_OVER,e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(C(this.element,Y.DRAG_LEAVE,e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave(e))})),this._register(C(this.element,Y.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd(e)})),this._register(C(this.element,Y.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop(e)}))}}let ey=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function ew(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);let r=ey.exec(e);if(!r||!r.groups)throw Error("Bad use of h");let o=r.groups.tag||"div",s=document.createElement(o);r.groups.id&&(s.id=r.groups.id);let a=[];if(r.groups.class)for(let e of r.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(s.className=a.join(" "));let l={};if(r.groups.name&&(l[r.groups.name]=s),n)for(let e of n)e instanceof HTMLElement?s.appendChild(e):"string"==typeof e?s.append(e):"root"in e&&(Object.assign(l,e),s.appendChild(e.root));for(let[e,t]of Object.entries(i))if("className"!==e){if("style"===e)for(let[e,i]of Object.entries(t))s.style.setProperty(eS(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?s.tabIndex=t:s.setAttribute(eS(e),t.toString())}return l.root=s,l}function eS(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},40784:function(e,t,i){"use strict";i.d(t,{Nw:function(){return Q},ok:function(){return J},v5:function(){return X}});var n,r=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,a=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,d=Object.freeze,u=Object.seal,c=Object.create,h="undefined"!=typeof Reflect&&Reflect,g=h.apply,p=h.construct;g||(g=function(e,t,i){return e.apply(t,i)}),d||(d=function(e){return e}),u||(u=function(e){return e}),p||(p=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,i=Array(e.length);t1?i-1:0),r=1;r/gm),z=u(/^data-[\-\w.\u00B7-\uFFFF]/),U=u(/^aria-[\-\w]+$/),$=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),j=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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 q(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,u=t.NodeFilter,c=t.NamedNodeMap,h=void 0===c?t.NamedNodeMap||t.MozNamedAttrMap:c,g=t.Text,p=t.Comment,k=t.DOMParser,Y=t.trustedTypes,Q=l.prototype,X=N(Q,"cloneNode"),J=N(Q,"nextSibling"),ee=N(Q,"childNodes"),et=N(Q,"parentNode");if("function"==typeof s){var ei=r.createElement("template");ei.content&&ei.content.ownerDocument&&(r=ei.content.ownerDocument)}var en=Z(Y,n),er=en&&eT?en.createHTML(""):"",eo=r,es=eo.implementation,ea=eo.createNodeIterator,el=eo.createDocumentFragment,ed=eo.getElementsByTagName,eu=n.importNode,ec={};try{ec=x(r).documentMode?r.documentMode:{}}catch(e){}var eh={};i.isSupported="function"==typeof et&&es&&void 0!==es.createHTMLDocument&&9!==ec;var eg=$,ep=null,ef=L({},[].concat(q(D),q(T),q(I),q(A),q(M))),em=null,e_=L({},[].concat(q(P),q(F),q(B),q(W))),eb=null,ev=null,eC=!0,ey=!0,ew=!1,eS=!1,eE=!1,ek=!1,eL=!1,ex=!1,eN=!1,eD=!0,eT=!1,eI=!0,eR=!0,eA=!1,eO={},eM=null,eP=L({},["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"]),eF=null,eB=L({},["audio","video","img","source","image","track"]),eW=null,eH=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eV="http://www.w3.org/1998/Math/MathML",ez="http://www.w3.org/2000/svg",eU="http://www.w3.org/1999/xhtml",e$=eU,eK=!1,ej=null,eG=r.createElement("form"),eq=function(e){ej&&ej===e||(e&&(void 0===e?"undefined":G(e))==="object"||(e={}),ep="ALLOWED_TAGS"in(e=x(e))?L({},e.ALLOWED_TAGS):ef,em="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR):e_,eW="ADD_URI_SAFE_ATTR"in e?L(x(eH),e.ADD_URI_SAFE_ATTR):eH,eF="ADD_DATA_URI_TAGS"in e?L(x(eB),e.ADD_DATA_URI_TAGS):eB,eM="FORBID_CONTENTS"in e?L({},e.FORBID_CONTENTS):eP,eb="FORBID_TAGS"in e?L({},e.FORBID_TAGS):{},ev="FORBID_ATTR"in e?L({},e.FORBID_ATTR):{},eO="USE_PROFILES"in e&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,ey=!1!==e.ALLOW_DATA_ATTR,ew=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eS=e.SAFE_FOR_TEMPLATES||!1,eE=e.WHOLE_DOCUMENT||!1,ex=e.RETURN_DOM||!1,eN=e.RETURN_DOM_FRAGMENT||!1,eD=!1!==e.RETURN_DOM_IMPORT,eT=e.RETURN_TRUSTED_TYPE||!1,eL=e.FORCE_BODY||!1,eI=!1!==e.SANITIZE_DOM,eR=!1!==e.KEEP_CONTENT,eA=e.IN_PLACE||!1,eg=e.ALLOWED_URI_REGEXP||eg,e$=e.NAMESPACE||eU,eS&&(ey=!1),eN&&(ex=!0),eO&&(ep=L({},[].concat(q(M))),em=[],!0===eO.html&&(L(ep,D),L(em,P)),!0===eO.svg&&(L(ep,T),L(em,F),L(em,W)),!0===eO.svgFilters&&(L(ep,I),L(em,F),L(em,W)),!0===eO.mathMl&&(L(ep,A),L(em,B),L(em,W))),e.ADD_TAGS&&(ep===ef&&(ep=x(ep)),L(ep,e.ADD_TAGS)),e.ADD_ATTR&&(em===e_&&(em=x(em)),L(em,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&L(eW,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(eM===eP&&(eM=x(eM)),L(eM,e.FORBID_CONTENTS)),eR&&(ep["#text"]=!0),eE&&L(ep,["html","head","body"]),ep.table&&(L(ep,["tbody"]),delete eb.tbody),d&&d(e),ej=e)},eZ=L({},["mi","mo","mn","ms","mtext"]),eY=L({},["foreignobject","desc","title","annotation-xml"]),eQ=L({},T);L(eQ,I),L(eQ,R);var eX=L({},A);L(eX,O);var eJ=function(e){var t=et(e);t&&t.tagName||(t={namespaceURI:eU,tagName:"template"});var i=b(e.tagName),n=b(t.tagName);if(e.namespaceURI===ez)return t.namespaceURI===eU?"svg"===i:t.namespaceURI===eV?"svg"===i&&("annotation-xml"===n||eZ[n]):!!eQ[i];if(e.namespaceURI===eV)return t.namespaceURI===eU?"math"===i:t.namespaceURI===ez?"math"===i&&eY[n]:!!eX[i];if(e.namespaceURI===eU){if(t.namespaceURI===ez&&!eY[n]||t.namespaceURI===eV&&!eZ[n])return!1;var r=L({},["title","style","font","a","script"]);return!eX[i]&&(r[i]||!eQ[i])}return!1},e0=function(e){_(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=er}catch(t){e.remove()}}},e1=function(e,t){try{_(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!em[e]){if(ex||eN)try{e0(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},e2=function(e){var t=void 0,i=void 0;if(eL)e=""+e;else{var n=v(e,/^[\r\n\t ]+/);i=n&&n[0]}var o=en?en.createHTML(e):e;if(e$===eU)try{t=new k().parseFromString(o,"text/html")}catch(e){}if(!t||!t.documentElement){t=es.createDocument(e$,"template",null);try{t.documentElement.innerHTML=eK?"":o}catch(e){}}var s=t.body||t.documentElement;return(e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),e$===eU)?ed.call(t,eE?"html":"body")[0]:eE?t.documentElement:s},e4=function(e){return ea.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},e5=function(e){return(void 0===a?"undefined":G(a))==="object"?e instanceof a:e&&(void 0===e?"undefined":G(e))==="object"&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e3=function(e,t,n){eh[e]&&f(eh[e],function(e){e.call(i,t,n,ej)})},e6=function(e){var t=void 0;if(e3("beforeSanitizeElements",e,null),!(e instanceof g)&&!(e instanceof p)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)||v(e.nodeName,/[\u0080-\uFFFF]/))return e0(e),!0;var n=b(e.nodeName);if(e3("uponSanitizeElement",e,{tagName:n,allowedTags:ep}),!e5(e.firstElementChild)&&(!e5(e.content)||!e5(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent)||"select"===n&&S(/