@cube-dev/ui-kit 0.2.15 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.2.
|
|
4
|
+
* @cube-dev/ui-kit v0.2.19
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
import*as e from"react";import t,{createContext as n,useContext as r,useEffect as i,useState as o,useRef as a,useCallback as l,useMemo as s,useLayoutEffect as u,useImperativeHandle as c,Children as d,isValidElement as p,cloneElement as f,forwardRef as h,Fragment as g,createElement as v}from"react";import m,{createGlobalStyle as b}from"styled-components";import y,{createPortal as x}from"react-dom";
|
|
@@ -29,7 +29,7 @@ object-assign
|
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
31
|
*/
|
|
32
|
-
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)t.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function q(e){return(q="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})(e)}function J(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function H(e){return e<=1?100*Number(e)+"%":e}function $(e){return 1===e.length?"0"+e:String(e)}function X(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Y(e){return Z(e)/255}function Z(e){return parseInt(e,16)}var Q={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ee(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,l=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Q[e])e=Q[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ie.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ie.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ie.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=ie.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ie.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=ie.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ie.hex8.exec(e))return{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),a:Y(n[4]),format:t?"name":"hex8"};if(n=ie.hex6.exec(e))return{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),format:t?"name":"hex"};if(n=ie.hex4.exec(e))return{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),a:Y(n[4]+n[4]),format:t?"name":"hex8"};if(n=ie.hex3.exec(e))return{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*J(t,255),g:255*J(n,255),b:255*J(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(a=H(e.s),l=H(e.v),i=function(e,t,n){e=6*J(e,360),t=J(t,100),n=J(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,o,o,l,n][s],g:255*[l,n,n,a,o,o][s],b:255*[o,o,l,n,n,a][s]}}(e.h,a,l),u=!0,c="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(a=H(e.s),s=H(e.l),i=function(e,t,n){var r,i,o;if(e=J(e,360),t=J(t,100),n=J(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=X(l,a,e+1/3),i=X(l,a,e),o=X(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var te="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ne="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",re="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",ie={CSS_UNIT:new RegExp(te),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+re),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+re),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+re),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oe(e){return Boolean(ie.CSS_UNIT.exec(String(e)))}var ae=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function le(e){var t=function(e,t,n){e=J(e,255),t=J(t,255),n=J(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=0===r?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:s,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function se(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[$(Math.round(e).toString(16)),$(Math.round(t).toString(16)),$(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function ue(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function ce(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function de(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function pe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function fe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ee(e),i=5;i>0;i-=1){var o=le(r),a=se(ee({h:ce(o,i,!0),s:de(o,i,!0),v:pe(o,i,!0)}));n.push(a)}n.push(se(r));for(var l=1;l<=4;l+=1){var s=le(r),u=se(ee({h:ce(s,l),s:de(s,l),v:pe(s,l)}));n.push(u)}return"dark"===t.theme?ae.map((function(e){var r=e.index,i=e.opacity;return se(ue(ee(t.backgroundColor||"#141414"),ee(n[r]),100*i))})):n}var he={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ge={},ve={};Object.keys(he).forEach((function(e){ge[e]=fe(he[e]),ge[e].primary=ge[e][5],ve[e]=fe(he[e],{theme:"dark",backgroundColor:"#141414"}),ve[e].primary=ve[e][5]})),ge.red,ge.volcano,ge.gold,ge.orange,ge.yellow,ge.lime,ge.green,ge.cyan,ge.blue,ge.geekblue,ge.purple,ge.magenta,ge.grey;var me={};function be(e,t){}function ye(e,t){!function(e,t,n){t||me[n]||(e(!1,n),me[n]=!0)}(be,e,t)}function xe(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function we(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!xe())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=we(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var Ee=new Map;function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=we(n);if(!Ee.has(r)){var i=Se("",n),o=i.parentNode;Ee.set(r,o),o.removeChild(i)}var a=Array.from(Ee.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(a){var l,s,u;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&a.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=Se(e,n);return c["rc-util-key"]=t,c}function Pe(e){return"object"===q(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===q(e.icon)||"function"==typeof e.icon)}function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function Ce(e,n,r){return r?t.createElement(e.tag,K(K({key:n},Te(e.attrs)),r),(e.children||[]).map((function(t,r){return Ce(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,K({key:n},Te(e.attrs)),(e.children||[]).map((function(t,r){return Ce(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Oe(e){return fe(e)[0]}function Ne(e){return e?Array.isArray(e)?e:[e]:[]}var je="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ae=["icon","className","onClick","style","primaryColor","secondaryColor"],Le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Fe=function(e){var t,n,o=e.icon,a=e.className,l=e.onClick,s=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Ae),p=Le;if(u&&(p={primaryColor:u,secondaryColor:c||Oe(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je,t=r(M).csp;i((function(){ke(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=Pe(o),n="icon should be icon definiton, but got ".concat(o),ye(t,"[@ant-design/icons] ".concat(n)),!Pe(o))return null;var f=o;return f&&"function"==typeof f.icon&&(f=K(K({},f),{},{icon:f.icon(p.primaryColor,p.secondaryColor)})),Ce(f.icon,"svg-".concat(f.name),K({className:a,onClick:l,style:s,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};Fe.displayName="IconReact",Fe.getTwoToneColors=function(){return K({},Le)},Fe.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Le.primaryColor=t,Le.secondaryColor=n||Oe(t),Le.calculated=!!n};var De=Fe;function Re(e){var t=U(Ne(e),2),n=t[0],r=t[1];return De.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ie=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Re("#1890ff");var Me=e.forwardRef((function(t,n){var r,i=t.className,o=t.icon,a=t.spin,l=t.rotate,s=t.tabIndex,u=t.onClick,c=t.twoToneColor,d=W(t,Ie),p=e.useContext(M).prefixCls,f=void 0===p?"anticon":p,h=G(f,(_(r={},"".concat(f,"-").concat(o.name),!!o.name),_(r,"".concat(f,"-spin"),!!a||"loading"===o.name),r),i),g=s;void 0===g&&u&&(g=-1);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=U(Ne(c),2),b=m[0],y=m[1];return e.createElement("span",K(K({role:"img","aria-label":o.name},d),{},{ref:n,tabIndex:g,onClick:u,className:h}),e.createElement(De,{icon:o,primaryColor:b,secondaryColor:y,style:v}))}));Me.displayName="AntdIcon",Me.getTwoToneColor=function(){var e=De.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Me.setTwoToneColor=Re;var _e=Me,ze={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ke=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:ze}))};Ke.displayName="CaretDownOutlined";var Ve=e.forwardRef(Ke),Ue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Be=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ue}))};Be.displayName="CaretUpOutlined";var We=e.forwardRef(Be),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},qe=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ge}))};qe.displayName="CheckOutlined";var Je=e.forwardRef(qe),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},$e=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:He}))};$e.displayName="CloseOutlined";var Xe=e.forwardRef($e),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Ze=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ye}))};Ze.displayName="CopyOutlined";var Qe=e.forwardRef(Ze),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 804a64 64 0 10128 0 64 64 0 10-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"exclamation",theme:"outlined"},tt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:et}))};tt.displayName="ExclamationOutlined";var nt=e.forwardRef(tt),rt={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"},it=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:rt}))};it.displayName="EyeInvisibleOutlined";var ot=e.forwardRef(it),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},lt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:at}))};lt.displayName="EyeOutlined";var st=e.forwardRef(lt),ut={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"},ct=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:ut}))};ct.displayName="FileOutlined";var dt=e.forwardRef(ct),pt={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-32z"}}]},name:"folder",theme:"filled"},ft=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:pt}))};ft.displayName="FolderFilled";var ht=e.forwardRef(ft),gt={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-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"}}]},name:"folder-open",theme:"filled"},vt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:gt}))};vt.displayName="FolderOpenFilled";var mt=e.forwardRef(vt),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 224a64 64 0 10128 0 64 64 0 10-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"}}]},name:"info",theme:"outlined"},yt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:bt}))};yt.displayName="InfoOutlined";var xt=e.forwardRef(yt),wt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},St=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:wt}))};St.displayName="LoadingOutlined";var Et=e.forwardRef(St),kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Pt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:kt}))};Pt.displayName="SearchOutlined";var Tt=e.forwardRef(Pt),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Ot=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ct}))};Ot.displayName="WarningOutlined";var Nt=e.forwardRef(Ot);function jt(e,t,n){let[r,i]=o(e||t),s=a(void 0!==e),u=s.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),s.current=c;let p=l((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let a=function(e){if(n&&!Object.is(d.current,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,...r)}c||(d.current=e)};if("function"==typeof e){i((function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let l=e(c?d.current:t,...i);return a(l,...r),c?t:l}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function At(e,t,n,r){let i=(e-(isNaN(t)?0:t))%r,o=2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i;isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(n/r)*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor((n-t)/r)*r);let a=r.toString(),l=a.indexOf("."),s=l>=0?a.length-l:0;if(s>0){let e=Math.pow(10,s);o=Math.round(o*e)/e}return o}function Lt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Lt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ft(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Lt(e))&&(r&&(r+=" "),r+=t);return r}function Dt(){return(Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Rt={prefix:String(Math.round(1e10*Math.random())),current:0},It=t.createContext(Rt);let Mt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function _t(){let e=r(It)!==Rt,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const zt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Kt=new Map;function Vt(e){let t=a(!0);t.current=!0;let[n,l]=o(e),u=a(null),c=function(e){let t=r(It);return t!==Rt||Mt||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),s((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}(n),d=e=>{t.current?u.current=e:l(e)};return Kt.set(c,d),zt((()=>{t.current=!1}),[d]),zt((()=>{let e=c;return()=>{Kt.delete(e)}}),[c]),i((()=>{let e=u.current;e&&(l(e),u.current=null)}),[l,d]),c}function Ut(e,t){if(e===t)return e;let n=Kt.get(e);if(n)return n(t),t;let r=Kt.get(t);return r?(r(e),e):t}function Bt(){let e=Vt(),[t,n]=o(e);return zt((()=>{Kt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(let e of t)"function"==typeof e&&e(...arguments)}}function Gt(){let e=Dt({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){let n=t<0||arguments.length<=t?void 0:arguments[t];for(let t in n){let r=e[t],i=n[t];"function"==typeof r&&"function"==typeof i&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Wt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=Ut(r,i):e[t]=void 0!==i?i:r:e[t]=Ft(r,i)}}return e}const qt=new Set(["id"]),Jt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ht=/^(data-.*)$/;function $t(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(qt.has(t)||n&&Jt.has(t)||null!=r&&r.has(t)||Ht.test(t))&&(i[t]=e[t]);return i}function Xt(e){if(function(){if(null==Yt){Yt=!1;try{document.createElement("div").focus({get preventScroll(){return Yt=!0,!0}})}catch(e){}}return Yt}())e.focus({preventScroll:!0});else{let t=function(e){var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let Yt=null;let Zt=new Map,Qt=new Set;function en(){if("undefined"==typeof window)return;let e=t=>{let n=Zt.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Zt.delete(t.target)),0===Zt.size)){for(let e of Qt)e();Qt.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Zt.get(t.target);n||(n=new Set,Zt.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function tn(e){requestAnimationFrame((()=>{0===Zt.size?e():Qt.add(e)}))}function nn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Vt(n),i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function rn(e,t){zt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function on(e){for(;e&&!an(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function an(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?en():document.addEventListener("DOMContentLoaded",en));let ln="undefined"!=typeof window&&window.visualViewport;function sn(){let[e,t]=o((()=>un()));return i((()=>{let e=()=>{t((e=>{let t=un();return t.width===e.width&&t.height===e.height?e:t}))};return ln?ln.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ln?ln.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function un(){return{width:(null==ln?void 0:ln.width)||window.innerWidth,height:(null==ln?void 0:ln.height)||window.innerHeight}}function cn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function dn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function pn(){return dn(/^Mac/)}function fn(){return dn(/^iPhone/)}function hn(){return fn()||dn(/^iPad/)||pn()&&navigator.maxTouchPoints>1}function gn(){return pn()||hn()}function vn(){return cn(/AppleWebKit/)&&!cn(/Chrome/)}function mn(e,t,n,r){let o=a(n);o.current=n;let l=null==n;i((()=>{if(l)return;let n=e.current,i=e=>o.current.call(this,e);return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,l])}let bn=new Map,yn=!1;try{yn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let xn=!1;try{xn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const wn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Sn{constructor(e,t){void 0===t&&(t={}),this.numberFormatter=void 0,this.options=void 0,this.numberFormatter=function(e,t){void 0===t&&(t={});let{numberingSystem:n}=t;n&&-1===e.indexOf("-u-nu-")&&(e=e+"-u-nu-"+n);if("unit"===t.style&&!xn){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(null==(r=wn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=Dt({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(bn.has(i))return bn.get(i);let o=new Intl.NumberFormat(e,t);return bn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=yn||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!xn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=wn[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return yn||null==this.options.signDisplay||(e=Dt({},e,{signDisplay:this.options.signDisplay})),xn||"unit"!==this.options.style||(e=Dt({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const En=new RegExp("^.*\\(.*\\).*$"),kn=["latn","arab","hanidec"];class Pn{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return Cn(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Cn(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Cn(this.locale,this.options,e).options.numberingSystem}}const Tn=new Map;function Cn(e,t,n){let r=On(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of kn)if(i!==r.options.numberingSystem){let r=On(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function On(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Tn.get(n);return r||(r=new Nn(e,t),Tn.set(n,r)),r}class Nn{constructor(e,t){void 0===t&&(t={}),this.formatter=void 0,this.options=void 0,this.symbols=void 0,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n){var r,i,o,a,l;let s=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=s.find((e=>"minusSign"===e.type)))?void 0:i.value)?r:"-",p=null==(o=u.find((e=>"plusSign"===e.type)))?void 0:o.value;p||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(p="+");let f=null==(a=s.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(l=s.find((e=>"group"===e.type)))?void 0:l.value,g=s.filter((e=>!jn.has(e.type))).map((e=>Ln(e.value))),v=c.filter((e=>!jn.has(e.type))).map((e=>Ln(e.value))),m=[...new Set([...v,...g])].sort(((e,t)=>t.length-e.length)),b=new RegExp(m.join("|")+"|[\\p{White_Space}]","gu"),y=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),x=new Map(y.map(((e,t)=>[e,t]))),w=new RegExp("["+y.join("")+"]","g");return{minusSign:d,plusSign:p,decimal:f,group:h,literals:b,numeral:w,index:e=>String(x.get(e))}}(this.formatter,this.options,t)}parse(e){let t=this.sanitize(e);t=An(t,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=t?+t:NaN;if(isNaN(n))return NaN;var r;("accounting"===this.options.currencySign&&En.test(e)&&(n*=-1),"percent"===this.options.style)&&(n/=100,n=+n.toFixed((null!=(r=this.options.maximumFractionDigits)?r:0)+2));return n}sanitize(e){return e=(e=e.replace(this.symbols.literals,"")).replace("-",this.symbols.minusSign),"arab"===this.options.numberingSystem&&(e=An(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=An(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),(e=this.sanitize(e)).startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!e.startsWith(this.symbols.group)&&0===(e=An(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const jn=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function An(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ln(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Fn,Dn,Rn;function In(e){return e.type===Dn.literal}function Mn(e){return e.type===Dn.argument}function _n(e){return e.type===Dn.number}function zn(e){return e.type===Dn.date}function Kn(e){return e.type===Dn.time}function Vn(e){return e.type===Dn.select}function Un(e){return e.type===Dn.plural}function Bn(e){return e.type===Dn.pound}function Wn(e){return e.type===Dn.tag}function Gn(e){return!(!e||"object"!=typeof e||e.type!==Rn.number)}function qn(e){return!(!e||"object"!=typeof e||e.type!==Rn.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Fn||(Fn={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Dn||(Dn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Rn||(Rn={}));var Jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $n(e){var t={};return e.replace(Hn,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Xn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Yn,Zn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qn=/^(@+)?(\+|#+)?$/g,er=/(\*)(0+)|(#+)(0+)|(0+)/g,tr=/^(0+)$/;function nr(e){var t={};return e.replace(Qn,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function rr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ir(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!tr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function or(e){var t=rr(e);return t||{}}function ar(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=E(E(E({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return E(E({},e),or(t))}),{}));continue;case"engineering":t=E(E(E({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return E(E({},e),or(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(er,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(tr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Zn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Zn,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=E(E({},t),nr(i.options[0])))}else if(Qn.test(i.stem))t=E(E({},t),nr(i.stem));else{var o=rr(i.stem);o&&(t=E(E({},t),o));var a=ir(i.stem);a&&(t=E(E({},t),a))}}return t}var lr=new RegExp("^"+Jn.source+"*"),sr=new RegExp(Jn.source+"*$");function ur(e,t){return{start:e,end:t}}var cr=!!String.prototype.startsWith,dr=!!String.fromCodePoint,pr=!!Object.fromEntries,fr=!!String.prototype.codePointAt,hr=!!String.prototype.trimStart,gr=!!String.prototype.trimEnd,vr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mr=!0;try{mr="a"===(null===(Yn=Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yn?void 0:Yn[0])}catch(e){mr=!1}var br,yr=cr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},xr=dr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},wr=pr?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Sr=fr?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Er=hr?function(e){return e.trimStart()}:function(e){return e.replace(lr,"")},kr=gr?function(e){return e.trimEnd()}:function(e){return e.replace(sr,"")};function Pr(e,t){return new RegExp(e,t)}if(mr){var Tr=Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");br=function(e,t){var n;return Tr.lastIndex=t,null!==(n=Tr.exec(e)[1])&&void 0!==n?n:""}}else br=function(e,t){for(var n=[];;){var r=Sr(e,t);if(void 0===r||Nr(r)||jr(r))break;n.push(r),t+=r>=65536?2:1}return xr.apply(void 0,n)};var Cr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Fn.UNMATCHED_CLOSING_TAG,ur(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Or(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Dn.pound,location:ur(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Dn.literal,value:"<"+r+"/>",location:ur(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Or(this.char()))return this.error(Fn.INVALID_TAG,ur(a,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(Fn.UNMATCHED_CLOSING_TAG,ur(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Dn.tag,value:r,children:o,location:ur(n,this.clonePosition())},err:null}:this.error(Fn.INVALID_TAG,ur(a,this.clonePosition())))}return this.error(Fn.UNCLOSED_TAG,ur(n,this.clonePosition()))}return this.error(Fn.INVALID_TAG,ur(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var l=ur(n,this.clonePosition());return{val:{type:Dn.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Or(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return xr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),xr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Fn.EMPTY_ARGUMENT,ur(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Fn.MALFORMED_ARGUMENT,ur(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Dn.argument,value:r,location:ur(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Fn.MALFORMED_ARGUMENT,ur(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=br(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ur(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(Fn.EXPECT_ARGUMENT_TYPE,ur(o,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(p=kr(v.val)).length)return this.error(Fn.EXPECT_ARGUMENT_STYLE,ur(this.clonePosition(),this.clonePosition()));s={style:p,styleLocation:ur(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=ur(r,this.clonePosition());if(s&&yr(null==s?void 0:s.style,"::",0)){var d=Er(s.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,s.styleLocation)).err?v:{val:{type:Dn.number,value:n,location:c,style:v.val},err:null};if(0===d.length)return this.error(Fn.EXPECT_DATE_TIME_SKELETON,c);var p={type:Rn.dateTime,pattern:d,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(d):{}};return{val:{type:"date"===a?Dn.date:Dn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Dn.number:"date"===a?Dn.date:Dn.time,value:n,location:c,style:null!==(i=null==s?void 0:s.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Fn.EXPECT_SELECT_ARGUMENT_OPTIONS,ur(f,E({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Fn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ur(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(Fn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),h=this.parseIdentifierIfPossible(),g=v.val}var m,b=this.tryParsePluralOrSelectOptions(e,a,t,h);if(b.err)return b;if((m=this.tryParseArgumentClose(r)).err)return m;var y=ur(r,this.clonePosition());return"select"===a?{val:{type:Dn.select,value:n,options:wr(b.val),location:y},err:null}:{val:{type:Dn.plural,value:n,options:wr(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(Fn.INVALID_ARGUMENT_TYPE,ur(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Fn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ur(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Xn).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),l=0,s=a;l<s.length;l++)if(0===s[l].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Fn.INVALID_NUMBER_SKELETON,t)}return{val:{type:Rn.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ar(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],l=new Set,s=r.value,u=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=ur(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(l.has(s))return this.error("select"===t?Fn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Fn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Fn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ur(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;a.push([s,{value:f.val,location:ur(p,this.clonePosition())}]),l.add(s),this.bumpSpace(),s=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?Fn.EXPECT_SELECT_ARGUMENT_SELECTOR:Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR,ur(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Fn.MISSING_OTHER_CLAUSE,ur(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var l=ur(r,this.clonePosition());return i?vr(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Sr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(yr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Or(e){return e>=97&&e<=122||e>=65&&e<=90}function Nr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function jr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ar(e){e.forEach((function(e){if(delete e.location,Vn(e)||Un(e))for(var t in e.options)delete e.options[t].location,Ar(e.options[t].value);else _n(e)&&Gn(e.style)||(zn(e)||Kn(e))&&qn(e.style)?delete e.style.location:Wn(e)&&Ar(e.children)}))}function Lr(e,t){void 0===t&&(t={}),t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Cr(e,t).parse();if(n.err){var r=SyntaxError(Fn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Ar(n.val),n.val}function Fr(e,t){var n=t&&t.cache?t.cache:Vr,r=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:Mr)(e,{cache:n,serializer:r})}function Dr(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function Rr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function Ir(e,t,n,r,i){return n.bind(t,e,r,i)}function Mr(e,t){return Ir(e,this,1===e.length?Dr:Rr,t.cache.create(),t.serializer)}var _r=function(){return JSON.stringify(arguments)};function zr(){this.cache=Object.create(null)}zr.prototype.get=function(e){return this.cache[e]},zr.prototype.set=function(e,t){this.cache[e]=t};var Kr,Vr={create:function(){return new zr}},Ur={variadic:function(e,t){return Ir(e,this,Rr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ir(e,this,Dr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Kr||(Kr={}));var Br,Wr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return S(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Gr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Kr.INVALID_VALUE,i)||this}return S(t,e),t}(Wr),qr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Kr.INVALID_VALUE,r)||this}return S(t,e),t}(Wr),Jr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Kr.MISSING_VALUE,n)||this}return S(t,e),t}(Wr);function Hr(e){return"function"==typeof e}function $r(e,t,n,r,i,o,a){if(1===e.length&&In(e[0]))return[{type:Br.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(In(c))l.push({type:Br.literal,value:c.value});else if(Bn(c))"number"==typeof o&&l.push({type:Br.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Jr(d,a);var p=i[d];if(Mn(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?Br.literal:Br.object,value:p});else if(zn(c)){var f="string"==typeof c.style?r.date[c.style]:qn(c.style)?c.style.parsedOptions:void 0;l.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Kn(c)){f="string"==typeof c.style?r.time[c.style]:qn(c.style)?c.style.parsedOptions:void 0;l.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(_n(c)){(f="string"==typeof c.style?r.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),l.push({type:Br.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Wn(c)){var h=c.children,g=c.value,v=i[g];if(!Hr(v))throw new qr(g,"function",a);var m=v($r(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),l.push.apply(l,m.map((function(e){return{type:"string"==typeof e?Br.literal:Br.object,value:e}})))}if(Vn(c)){if(!(b=c.options[p]||c.options.other))throw new Gr(c.value,p,Object.keys(c.options),a);l.push.apply(l,$r(b.value,t,n,r,i))}else if(Un(c)){var b;if(!(b=c.options["="+p])){if(!Intl.PluralRules)throw new Wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Kr.MISSING_INTL_API,a);var y=n.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[y]||c.options.other}if(!b)throw new Gr(c.value,p,Object.keys(c.options),a);l.push.apply(l,$r(b.value,t,n,r,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Br.literal&&t.type===Br.literal?n.value+=t.value:e.push(t),e}),[])}(l)}function Xr(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?E(E(E({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=E(E({},i[t]),o[t]||{}),e}),{})):i),n}),E({},e)):e}function Yr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Br||(Br={}));var Zr=function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Br.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return $r(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.number),strategy:Ur.variadic}),getDateTimeFormat:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.dateTime),strategy:Ur.variadic}),getPluralRules:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.pluralRules),strategy:Ur.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=Lr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class Qr{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=Dt({},e),this.defaultLocale=t}getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n){void 0===n&&(n="en-US");if(t[e])return t[e];let r=function(e){if(Intl.Locale)return new Intl.Locale(e).language;return e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error("Could not find intl message "+e+" in "+t+" locale");return r}}class ei{constructor(e,t){this.locale=void 0,this.messages=void 0,this.cache=void 0,this.locale=e,this.messages=t,this.cache={}}format(e,t){let n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error("Could not find intl message "+e+" in "+this.locale+" locale");n=new Zr(t,this.locale),this.cache[e]=n}return n.format(t)}}const ti=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ni=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ri(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return ti.has(t)}let t=e.split("-")[0];return ni.has(t)}function ii(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ri(e)?"rtl":"ltr"}}let oi=ii(),ai=new Set;function li(){oi=ii();for(let e of ai)e(oi)}const si=t.createContext(null);function ui(){let e=function(){let e=_t(),[t,n]=o(oi);return i((()=>(0===ai.size&&window.addEventListener("languagechange",li),ai.add(n),()=>{ai.delete(n),0===ai.size&&window.removeEventListener("languagechange",li)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(si)||e}const ci=new WeakMap;function di(e){let{locale:t}=ui(),n=s((()=>function(e){let t=ci.get(e);return t||(t=new Qr(e),ci.set(e,t)),t}(e)),[e]),r=s((()=>new ei(t,n)),[t,n]);return l(((e,t)=>r.format(e,t)),[r])}let pi=new Map;function fi(e){let{locale:t}=ui(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(pi.has(n))return pi.get(n);let r=new Intl.Collator(t,e);return pi.set(n,r),r}function hi(e){return{UNSAFE_getDOMNode:()=>e.current}}function gi(e,t){return void 0===t&&(t=e),Dt({},hi(e),{focus(){t.current&&t.current.focus()}})}function vi(e){let t=a(null);return c(e,(()=>hi(t))),t}function mi(e,t){let n=a(null);return c(e,(()=>gi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function bi(e,t){return n=>"rtl"===n?t:e}Dt({},{margin:["margin",Si],marginStart:[bi("marginLeft","marginRight"),Si],marginEnd:[bi("marginRight","marginLeft"),Si],marginTop:["marginTop",Si],marginBottom:["marginBottom",Si],marginX:[["marginLeft","marginRight"],Si],marginY:[["marginTop","marginBottom"],Si],width:["width",Si],height:["height",Si],minWidth:["minWidth",Si],minHeight:["minHeight",Si],maxWidth:["maxWidth",Si],maxHeight:["maxHeight",Si],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Oi],justifySelf:["justifySelf",Oi],position:["position",Ci],zIndex:["zIndex",Ci],top:["top",Si],bottom:["bottom",Si],start:[bi("left","right"),Si],end:[bi("right","left"),Si],left:["left",Si],right:["right",Si],order:["order",Ci],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Oi],flexShrink:["flexShrink",Oi],flexBasis:["flexBasis",Oi],gridArea:["gridArea",Oi],gridColumn:["gridColumn",Oi],gridColumnEnd:["gridColumnEnd",Oi],gridColumnStart:["gridColumnStart",Oi],gridRow:["gridRow",Oi],gridRowEnd:["gridRowEnd",Oi],gridRowStart:["gridRowStart",Oi]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+Ei(e,"background")+")"}],borderWidth:["borderWidth",Pi],borderStartWidth:[bi("borderLeftWidth","borderRightWidth"),Pi],borderEndWidth:[bi("borderRightWidth","borderLeftWidth"),Pi],borderLeftWidth:["borderLeftWidth",Pi],borderRightWidth:["borderRightWidth",Pi],borderTopWidth:["borderTopWidth",Pi],borderBottomWidth:["borderBottomWidth",Pi],borderXWidth:[["borderLeftWidth","borderRightWidth"],Pi],borderYWidth:[["borderTopWidth","borderBottomWidth"],Pi],borderColor:["borderColor",ki],borderStartColor:[bi("borderLeftColor","borderRightColor"),ki],borderEndColor:[bi("borderRightColor","borderLeftColor"),ki],borderLeftColor:["borderLeftColor",ki],borderRightColor:["borderRightColor",ki],borderTopColor:["borderTopColor",ki],borderBottomColor:["borderBottomColor",ki],borderXColor:[["borderLeftColor","borderRightColor"],ki],borderYColor:[["borderTopColor","borderBottomColor"],ki],borderRadius:["borderRadius",Ti],borderTopStartRadius:[bi("borderTopLeftRadius","borderTopRightRadius"),Ti],borderTopEndRadius:[bi("borderTopRightRadius","borderTopLeftRadius"),Ti],borderBottomStartRadius:[bi("borderBottomLeftRadius","borderBottomRightRadius"),Ti],borderBottomEndRadius:[bi("borderBottomRightRadius","borderBottomLeftRadius"),Ti],borderTopLeftRadius:["borderTopLeftRadius",Ti],borderTopRightRadius:["borderTopRightRadius",Ti],borderBottomLeftRadius:["borderBottomLeftRadius",Ti],borderBottomRightRadius:["borderBottomRightRadius",Ti],padding:["padding",Si],paddingStart:[bi("paddingLeft","paddingRight"),Si],paddingEnd:[bi("paddingRight","paddingLeft"),Si],paddingLeft:["paddingLeft",Si],paddingRight:["paddingRight",Si],paddingTop:["paddingTop",Si],paddingBottom:["paddingBottom",Si],paddingX:[["paddingLeft","paddingRight"],Si],paddingY:[["paddingTop","paddingBottom"],Si],overflow:["overflow",Oi]});const yi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,xi=/^\s*\w+\(/,wi=/(static-)?size-\d+|single-line-(height|width)/g;function Si(e){return"number"==typeof e?e+"px":yi.test(e)?e:xi.test(e)?e.replace(wi,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function Ei(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function ki(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+Ei(e,"border")+")"}function Pi(e){return"var(--spectrum-alias-border-size-"+e+")"}function Ti(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Ci(e){return e}function Oi(e){return e}var Ni=n({});function ji(e){var t=e.children,n=k(e,["children"]),i=Object.assign({},r(Ni));return Object.keys(n).forEach((function(e){i[e]?i[e]=N(N([],O(i[e]),!1),[n[e]],!1):i[e]=[n[e]]})),I.jsx(Ni.Provider,E({value:i},{children:t}),void 0)}function Ai(e,t){var n=r(Ni),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var Li=n([980]);function Fi(e){var t=e.value,n=e.children;return I.jsx(Li.Provider,E({value:t},{children:n}),void 0)}var Di=n({breakpoints:[980]});function Ri(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,l=e.isRequired,s=e.validationState,u=e.router,c=e.styles,d=e.ref;c&&(n=I.jsx(ji,E({},c,{children:n}),void 0)),t&&(n=I.jsx(Fi,E({value:t},{children:n}),void 0));var p=r(Di),f={ref:d,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:l,validationState:s,router:u},h=Object.assign({},p);return Object.keys(f).forEach((function(e){null!=f[e]&&(h[e]=f[e])})),I.jsx(Di.Provider,E({value:h},{children:n}),void 0)}function Ii(e){return E(E({},r(Di)),e)}var Mi={};var _i=[!1,"n","no","false"],zi={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",wh:"var(--window-height)",sp:function(e){return"(("+e+" * var(--column-width)) + ("+(e-1)+" * var(--column-gap)))"}},Ki=["top","right","bottom","left"],Vi=["rgb","rgba"],Ui=["auto","max-content","min-content","none","subgrid","initial"],Bi=/("[^"]*")|('[^']*')|([a-z]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,Wi=new Map,Gi=new Map,qi=new Map,Ji=[Gi,Wi,qi],Hi=/calc\((\d*)\)/gi;function $i(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function Xi(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Ji[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,l="",s=-1,u=0,c="",d="",p="",f="",h=void 0;for(Bi.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=Bi.exec(e);){var g=O(h,13),v=g[1],m=g[2],b=g[3],y=g[4],x=g[5],w=g[6],S=g[7],E=g[8],k=g[9],P=g[10],T=g[11],C=g[12];if(m||v)l+=(m||v)+" ";else if(b)p=b.slice(0,-1),l+=b,u++;else if(y)d=2===t?y:Yi(y,!1).color;else if(w)u||Ui.includes(w)?l+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~s||(s=u,l+="calc"),u++),")"===T&&u&&(l=l.trim(),u>0&&u--,u===s&&(s=-1)),")"!==T||u||(f=p,p=""),l+=T+(")"===T?" ":"");else if(P){if(!~s&&a)if(l){if(l.includes("(")){var N=l.lastIndexOf("(");l=l.slice(0,N)+"(calc("+l.slice(N+1),s=u,u++}}else if(o.length){c=c.slice(0,c.length-o[o.length-1].length-1);var j=o.splice(o.length-1,1)[0];i.splice(o.length-1,1),j&&(j.startsWith("calc(")&&(j=j.slice(4)),s=u,u++,l="calc(("+j+") ")}l+=P+" "}else if(S)if(k&&zi[k]){var A=ro(E,k);!~s&&A.startsWith("(")&&(l+="calc"),l+=A+" "}else l+=S+" ";else x?(x=x.replace("@","--"),l+="var"!==p?"var("+x+") ":x+" "):C&&(~s?(s=-1,u--,l=l.trim()+"), "):l=l.trim()+", ");if(l&&!u){var L=to(l);Vi.includes(f)?d=L:L.startsWith("color(")?d=Yi(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L+" "),l=""}}if(u)(L=to(""+l.trim()+")".repeat(u))).startsWith("color(")?d=Yi(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function Yi(e,t){if(void 0===t&&(t=!1),!(e=e.trim()))return{};if(e.startsWith("#")){var n=(e=e.slice(1)).split("."),r=100;n.length>1&&(r=1===n[1].length?10*Number(n[1]):Number(n[1]),Number.isNaN(r)&&(r=100));var i=n[0];return"current"===i?"currentColor":r>100?r=100:r<0&&(r=0),{color:100!==r?Zi(i,Math.round(r)/100):(o=i,a=null,l=Qi("#"+i),s=l?", "+l:"","var(--"+o+"-color"+(a?", var(--"+a+s+")":s)+")"),name:i,opacity:null!=r?r:100}}var o,a,l,s,u,c,d=Xi(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:Qi(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:Qi(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:Zi(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function Zi(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function Qi(e,t){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return"#"+t+t+n+n+r+r})).substring(1).match(/.{2}/g).map((function(e,t){return parseInt(e,16)*(3===t?1/255:1)}));if(3===t.length)return"rgb("+t.join(", ")+")";if(4===t.length)return"rgba("+t.join(", ")+")";return null}(e):null}function eo(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function to(e){return e.trim().replace(Hi,(function(e,t){return t}))}function no(e,t){return e.filter((function(e){return t.includes(e)}))}function ro(e,t){var n=zi[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function io(e){return!e&&0!==e}function oo(e,t,n,r,i){void 0===t&&(t=[]),void 0===i&&(i=[]);var o=E(E({},n),e.styles);return Object.keys(e).forEach((function(n){var a=r&&r[n]||n,l=e[n];i&&i.includes(n)||t.includes(a)&&(null!=l&&!1!==l?o[a]=l:a in o&&delete o[a])}),{}),o}function ao(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+ao(n,t)}),"");var n=e.$,r=e.css,i=k(e,["$","css"]),o=Object.keys(i).reduce((function(e,t){var n=i[t];return Array.isArray(n)?e+n.reduce((function(e,n){return n?e+(t+":")+n+";\n":e}),""):n?""+e+t+":"+n+";\n":e}),"");return r&&(o=r+"\n"+o),o?Array.isArray(n)?(t?t+"{\n":"")+n.reduce((function(e,t){return e+(t?"&"+t+"{\n":"")+o+(t?"}\n":"")}),"")+(t?"}\n":""):(t?t+"{\n":"")+(n?"&"+n+"{\n":"")+o+(n?"}\n":"")+(t?"}\n":""):""}function lo(e,t){void 0===t&&(t=1e3);var n=go((function(t){return ao(e(t))}),t),r=go((function(e){if(null==e||!1===e)return null;var t,r,i,o=function(e,t){var n=t||Object.keys(e);if(!n.length)return[];var r={},i=new Set;n.forEach((function(t){r[t]=function(e){if("object"!=typeof e||!e)return{states:[{model:null,mods:[],value:e}],mods:[]};var t,n=[];Object.keys(e).forEach((function(t){var r=po(t);r.value=e[t],n.push(r)})),n.reverse();var r=n.reduce((function(e,n){return n.mods.length?n.mods.forEach((function(t){e.includes(t)||e.push(t)})):t=n,e}),[]);t||n.push({mods:[],notMods:r,value:!0});return{states:n,mods:r}}(e[t]),r[t].mods.forEach(i.add,i)}));var o=Array.from(i),a=[];return function(e,t){var n=t?[[]]:[];if(e.length<2)return n.concat([e]);var r=function(e,t){void 0===e&&(e=[]);for(var i=0;i<t.length;i++)n.push(N(N([],O(e),!1),[t[i]],!1)),r(N(N([],O(e),!1),[t[i]],!1),t.slice(i+1))};return r([],e),n.filter((function(e){var t=[];return!e.find((function(e){var n=e.match(/\[(.+?)[=\]]/);return!(!n||!t.includes(n[1])&&(t.push(n[1]),1))}))}))}(o,!0).forEach((function(e){a.push({mods:e,notMods:o.filter((function(t){return!e.includes(t)})),value:n.reduce((function(t,n){return t[n]=r[n].states.find((function(t){return ho(t.model,(function(t){return e.includes(t)}))})).value,t}),{})})})),a}(e);return t=o,r=n,i=new Map,t.forEach((function(e){i.get(e.value)||i.set(e.value,r(e.value)),e.value=i.get(e.value)})),function(e,t){return t.reduce((function(t,n){if(!n.value)return"";var r=""+(n.mods||[]).map($i).join("")+(n.notMods||[]).map((function(e){return":not("+$i(e)+")"})).join("");return""+t+e+r+"{\n"+n.value+"}\n"}),"")}("&&",o)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var so=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,uo=["!","&","|","^"];function co(e){return 1===e.length?e[0]:(uo.forEach((function(t){for(var n;-1!==(n=e.indexOf(t));){var r=e[n];"!"===r?e[n+1]&&1!==e[n+1].length?e.splice(n,2,["!",e[n+1]]):e.splice(n,1):e[n-1]&&e[n+1]&&1!==e[n-1].length&&1!==e[n+1].length?e.splice(n-1,3,[r,e[n-1],e[n+1]]):e.splice(n,1)}})),1===e.length?e[0]:e)}var po=go((function(e,t){var n=e.replace(/,/g,"|").match(so);if(!n||!n.length)return{model:null,mods:[],tokens:n,value:t};if(1===n.length)return{model:n[0],mods:n.slice(0),tokens:n,value:t};var r=[],i=[[]],o=i[0],a=0;for(n.forEach((function(e){switch(e){case"(":a++,o=i[a]=[];break;case")":a--,i[a].push(co(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(co(o)),o=i[a];return{tokens:n,mods:r,model:co(i[0]),value:t}}));var fo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function ho(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=fo[e[0]];n||console.warn("nusc: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!ho(r,t):"function"==typeof t?!!t(r):!!t[r],2===e.length)return n(r);var i=e[2];return!!n(r,i="object"==typeof i?!!ho(i,t):"function"==typeof t?!!t(i):!!t[i])}function go(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i){var o="string"==typeof i?i:JSON.stringify(i);return n[o]||(r>t&&(n={},r=0),r++,n[o]=e(i)),n[o]}}function vo(e){var t,n=e.display,r=e.flow,i=e.gap;if(!i)return"";var o=n.includes("grid"),a=n.includes("flex"),l=!!r&&(r.includes("wrap")&&!r.includes("nowrap"));if(o||null!=r||(r=a?"row":"column"),"number"==typeof i&&(i+="px"),i){!0===i&&(i="1.5x");var s=Xi(i).values,u=(i=s.join(" "))&&!o?r.includes("row")?"right":"bottom":"";return i?o?{gap:i}:l?[{"margin-right":"calc(-1 * "+(s[1]||s[0])+")","margin-bottom":"calc(-1 * "+s[0]+")"},{$:"& > *","margin-right":s[1]||s[0],"margin-bottom":s[0]}]:((t={$:"& > *:not(:last-child)"})["margin-"+u]=i,t):""}}function mo(e){var t,n,r=e.display,i=e.flow;return r.includes("grid")?n="grid-auto-flow":r.includes("flex")&&(n="flex-flow"),n?((t={})[n]=i,t):null}vo.__lookupStyles=["display","flow","gap"],mo.__lookupStyles=["display","flow"];var bo={input:[{css:"\n-webkit-appearance: none;\nfont-family: inherit;\nfont-weight: inherit;\nword-spacing: initial;\n-webkit-text-fill-color: currentColor;\nbox-sizing: border-box;\nuser-select: auto;\nresize: none;\ntransition: opacity var(--transition) linear;\n"},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:"\ncaret-color: var(--special-color);\n-webkit-text-fill-color: var(--special-color);\n-webkit-box-shadow: 0 0 0px 9999rem var(--input-color) inset;\nbox-shadow: 0 0 0px 9999rem var(--input-color) inset;\nfont-family: inherit;\nfont-size: inherit;\nline-height: inherit;\n"},{$:"[disabled]",css:"\ncolor: inherit;\nbackground: transparent;\n-webkit-opacity: 1;\n"},{$:"::placeholder",css:"\n-webkit-text-fill-color: var(--local-placeholder-color);\ncolor: var(--local-placeholder-color);\nfilter: saturate(.33);\n"},{$:"::-webkit-search-cancel-button",css:"\ndisplay: none;\n-webkit-appearance: none;\n"},{$:":not([disabled])::placeholder",css:"--local-placeholder-color: var(--placeholder-color, rgba(var(--text-color-rgb), .5));\n"}],button:[{css:"\ntransition: all var(--transition) linear;\nbackground: transparent;\nborder: none;\noutline: none;\nappearance: none;\nposition: relative;\ntouch-action: manipulation;\n-webkit-tap-highlight-color: var(--mark-color);\ntext-decoration: none;\n"}]};function yo(e){var t=e.reset;if(t)return Xi(t,1).mods.reduce((function(e,t){return bo[t]&&e.push.apply(e,N([],O(bo[t]),!1)),e}),[])}function xo(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=Yi(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{color:t}];return r&&i.push([{"--current-color":"var(--"+r+"-color)","--current-color-rgb":"var(--"+r+"-color-rgb)"}]),i}function wo(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=Xi(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{"background-color":t}];return r&&i.push([{$:">*","--context-fill-color":"var(--"+r+"-color)","--context-fill-color-rgb":"var(--"+r+"-color-rgb)"}]),i}yo.__lookupStyles=["reset"],xo.__lookupStyles=["color"],wo.__lookupStyles=["fill"];function So(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var Eo=So("stretch")?"stretch":So("fill-available")?"fill-available":So("-webkit-fill-available")?"-webkit-fill-available":So("-moz-fill-available")?"-moz-fill-available":null,ko=["max-content","min-content","fit-content","stretch"];function Po(e){var t="min-"+e,n="max-"+e;return function(r){var i,o,a;if(!r)return"";"number"==typeof r&&(r+="px"),r=String(r);var l=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),s=Xi(r),u=s.mods,c=s.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(ko,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=Eo||("height"===e?"100vh":"100vw"))}));var d=!1;try{for(var p=C(u),f=p.next();!f.done;f=p.next()){switch(f.value){case"min":l[t]=c[0]||"var(--gap)",d=!0;break;case"max":l[n]=c[0]||"100%",d=!0}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return d&&u.length||(2===c.length?(l[t]=c[0],l[n]=c[1]):3===c.length?(l[t]=c[0],l[e]=c[1],l[n]=c[2]):l[e]=c[0]||"auto"),l}}var To=Po("width");function Co(e){var t=e.width;return To(t)}Co.__lookupStyles=["width"];var Oo=Po("height");function No(e){var t=e.height;return Oo(t)}No.__lookupStyles=["height"];var jo="var(--radius)",Ao="var(--leaf-sharp-radius)";function Lo(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=Xi(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[jo]),r.includes("leaf"))i=[i[1]||Ao,i[0]||jo,i[1]||Ao,i[0]||jo];else if(r.includes("backleaf"))i=[i[0]||jo,i[1]||Ao,i[0]||jo,i[1]||Ao];else if(r.length){var o=["0","0","0","0"],a=!1;Ki.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||jo,o[(t+1)%4]=i[0]||jo)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}Lo.__lookupStyles=["radius"];var Fo=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Do(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=Xi(String(t)),r=n.values,i=n.mods,o=n.color,a=no(i,Ki),l=no(i,Fo),s=[r[0]||"var(--border-width)",l[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=s,e}),{}):{border:s}}}function Ro(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=Xi(t),r=n.values,i=n.mods,o=n.color||"var(--shadow-color)";return{"--local-shadow-box-shadow":N(N([i[0]||""],O(r),!1),[o],!1).join(" ")}}function Io(e){var t=e.padding;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Xi(t),r=n.values,i=no(n.mods,Ki);return r.length||(r=["var(--gap)"]),i.length?i.reduce((function(e,t){var n=Ki.indexOf(t);return e["padding-"+t]=r[n]||r[n%2]||r[0],e}),{}):{padding:r.join(" ")}}function Mo(e){var t=e.size;if(!t)return"";var n,r,i,o=Xi(t),a=o.values,l=o.mods;return l.length?(n="var(--"+(l[0]||"default")+"-font-size, inherit)",r="var(--"+(l[1]||l[0]||"default")+"-line-height, inherit)",i="var(--"+(l[2]||l[1]||l[0]||"default")+"-letter-spacing, 0)"):(n=a[0]||"var(--default-font-size, inherit)",r=a[1]||"var(--default-line-height, inherit)",i=a[2]||"var(--default-letter-spacing, 0)"),{"font-size":n,"line-height":r,"letter-spacing":i,"--font-size":n,"--line-height":r,"--letter-spacing":i}}function _o(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,l=e.font;if(!t)return"";!0===t&&(t="");var s=Xi(t).mods[0]||"default",u={};return n||(u["font-size"]=u["--font-size"]="var(--"+s+"-font-size, var(--initial-font-size, inherit))"),r||(u["line-height"]=u["--line-height"]="var(--"+s+"-line-height, var(--initial-line-height, 1.5))"),o||(u["letter-spacing"]=u["--letter-spacing"]="var(--"+s+"-letter-spacing, var(--initial-letter-spacing, 0))"),a||(u["font-weight"]=u["--font-weight"]="var(--"+s+"-font-weight, var(--initial-font-weight, 400))"),i||(u["text-transform"]=u["--text-transform"]="var(--"+s+"-text-transform, var(--initial-text-transform, none))"),l||(u["font-family"]=u["--font-family"]="var(--"+s+"-font-family, var(--font))"),u}function zo(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function Ko(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Xi(t),r=n.values,i=no(n.mods,Ki);return i.length?i.reduce((function(e,t){var n=Ki.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function Vo(e){var t=e.font;if(null==t||!1===t)return null;var n="monospace"===t?"var(--monospace-font)":!0===t?"var(--font)":t+", var(--font)";return{"font-family":n,"--font-family":n}}function Uo(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1bw");var n=Xi(String(t)),r=n.values,i=n.color;return{"--local-outline-box-shadow":(n.mods.includes("inset")?"inset ":"")+"0 0 0 "+(r[0]||"var(--outline-width)")+" "+(i||"var(--outline-color)")}}Do.__lookupStyles=["border"],Ro.__lookupStyles=["shadow"],Io.__lookupStyles=["padding"],Mo.__lookupStyles=["size"],_o.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","font"],zo.__lookupStyles=["fontStyle"],Ko.__lookupStyles=["margin"],Vo.__lookupStyles=["font"],Uo.__lookupStyles=["outline"];var Bo={},Wo=0;function Go(e,t,n){void 0===n&&(n={});var r,i=t,o=Array.from(Array(i.length)).map((function(){return""})),a=JSON.stringify({s:e,r:t}),l="",s=[];return Bo[a]||(++Wo>1e3&&(Wo=0,Bo={}),Object.keys(e).forEach((function(t){var r=n[t];r||(r=[Jo(t)]),r.forEach((function(t){if(!s.find((function(e){return e.handler===t}))){var n=!1,r=t.__lookupStyles.reduce((function(t,r){return t[r]=e[r],Array.isArray(e[r])&&(n=!0),t}),{});s.push({handler:t,styleMap:r,isResponsive:n})}}))})),s.forEach((function(e){var t=e.handler,n=e.styleMap,r=e.isResponsive,a=t.__lookupStyles;if(r){var s=a.reduce((function(e,t){return e[t]=function(e,t){if(null==e)return e;var n=Array.from(Array(t));if("string"==typeof e)return n.map((function(){return e}));if(Array.isArray(e)){for(var r=null,i=0;i<n.length;i++)n[i]=null==e[i]?r:e[i],r=n[i];return n}return[]}(n[t],i.length),e}),{});i.map((function(e,t){var n={};return a.forEach((function(e){null!=s&&null!=s[e]&&(n[e]=s[e][t])})),n})).map(t).forEach((function(e,t){o[t]+=e||""}))}else l+=t(n)||""})),Bo[a]=""+l+(t?(r=o,i.filter((function(e){return e.mediaQuery})).map((function(e,t){return"@media "+e.mediaQuery+" {"+r[t]+"}"})).join("\n")):"")),"outline: none;\n"+Bo[a]}var qo={};function Jo(e,t,n){return qo[e]||(qo[e]=lo((function(r){var i,o,a,l,s,u=r[e];if(null!=u&&!1!==u){var c,d=t||(c=e,c.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))).replace(/^@/,"--");if(!n||"string"==typeof u||(u=n(u))){if("string"==typeof u&&d.startsWith("--")&&d.endsWith("-color")){var p=Qi(u=u.trim()),f=Yi(u),h=f.color,g=f.name;return g&&p?((i={})[d]="var(--"+g+"-color, "+p+")",i[d+"-rgb"]="var(--"+g+"-color-rgb, "+eo(p).join(", ")+")",i):g?((o={})[d]="var(--"+g+"-color)",o[d+"-rgb"]="var(--"+g+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=eo(p).join(", "),a):((l={})[d]=h,l)}var v=Xi(u,1).value;return(s={})[d]=v,s}}})),qo[e].__lookupStyles=[e]),qo[e]}var Ho={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],size:["font-size","line-height"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]};var $o=/([.0-9ms]+)|([a-z0-9-]+\(.+?\))|([a-z0-9-]+)|(,)/gi;function Xo(e){var t=e.transition;if(null!=t&&!io(t)){var n=t.match($o);if(n){var r="",i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=""):r+=" "+e})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e.match($o);if(t){var n=t[0],r=t[1],i=t[2],a=t[3];(Ho[n]||[n]).forEach((function(e){o[e]=[n,i,r,a]}))}})),{transition:Object.entries(o).map((function(e){var t=O(e,2),n=t[0],r=O(t[1],4),i=r[0],o=r[1],a=r[2],l=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(l||"0s")})).join(", ")}}}}Xo.__lookupStyles=["transition"];var Yo={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function Zo(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=Xi(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),l=i[0];(function(e){return null!=e&&!!_i.find((function(t){return e.includes(t)}))})(o)&&(l="0"),l||(l=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var s=Yo[n][a?1:0].replace(/\*/g,l),u=Yo[n][a?0:1].replace(/\*/g,l);return[{$:">:first-child:not(:last-child)","border-radius":s,"--local-radius":s},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":l,"--local-radius":l},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function Qo(e){var t=Qo.__lookupStyles.reduce((function(t,n){return io(e[n])||t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function ea(e){var t=e.styledScrollbar;return null==t?null:t?[{"--local-scrollbar-thumb-color":"var(--scrollbar-thumb-color, rgba(var(--text-color-rgb), .5))","--local-scrollbar-border-color":"var(--scrollbar-border-color, var(--border-width))","--local-scrollbar-bg-color":"var(--scrollbar-bg-color, var(--grey-light-color))"},{$:"::-webkit-scrollbar",width:"calc(var(--gap) * 1.5)",height:"calc(var(--gap) * 1.5)"},{$:"::-webkit-scrollbar-track","background-color":"var(--local-scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--local-scrollbar-thumb-color)","border-radius":"calc(var(--radius) * 1.5)",border:"var(--outline-width) solid transparent","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"transparent"},{"scrollbar-width":"thin","scrollbar-color":"var(--local-scrollbar-bg-color) var(--local-scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}function ta(e){var t=e.display;return{display:e.hide?"none":t}}Zo.__lookupStyles=["groupRadius","flow"],Qo.__lookupStyles=["outline","shadow"],ea.__lookupStyles=["styledScrollbar"],ta.__lookupStyles=["display","hide"];var na=function(e){return"number"==typeof e?"minmax(1px, 1fr) ".repeat(e).trim():null},ra=function(e){return"number"==typeof e?"auto ".repeat(e).trim():null},ia=[Jo("fontSize"),Jo("lineHeight"),Jo("fontWeight"),Jo("letterSpacing"),Jo("textTransform"),Jo("gridAreas","grid-template-areas"),Jo("gridColumns","grid-template-columns",na),Jo("gridRows","grid-template-rows",ra),Jo("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?na:ra)(e)})).join("/")}))].concat([ta,Xo,yo,wo,Co,Ko,vo,mo,xo,No,Lo,Do,Ro,Io,Mo,_o,Qo,Uo,Vo,zo,Zo,ea].map(lo)).reduce((function(e,t){var n=t.__lookupStyles;return n?(n.forEach((function(n){e[n]||(e[n]=[]),e[n].includes(t)||e[n].push(t)})),e):(console.warn("style lookup not found for the handler",t),e)}),{});function oa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{for(var o=C(e),a=o.next();!a.done;a=o.next()){var l=a.value;"function"==typeof l&&l.apply(void 0,N([],O(r),!1))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}function aa(e){return d.toArray(e).every((function(e){return!p(e)}))}function la(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=C(n),a=o.next();!a.done;a=o.next()){var l=a.value;for(var s in i)/^on[A-Z]/.test(s)&&"function"==typeof i[s]&&l&&"function"==typeof l[s]?i[s]=Wt(i[s],l[s]):"className"===s&&"string"==typeof i.className&&l&&"string"==typeof l.className?i[s]=Ft(i.className,l.className):"styles"===s&&"object"==typeof i.styles&&l&&"object"==typeof l.styles?i[s]=E(E({},i.styles),l.styles):"id"===s&&i.id&&(null==l?void 0:l.id)?i.id=Ut(i.id,null==l?void 0:l.id):i[s]=l&&void 0!==l[s]?l[s]:i[s];for(var s in l)void 0===i[s]&&(i[s]=l[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}function sa(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var ua=n({});function ca(e,t){var n=e.slot||t;return Gt((r(ua)||{})[n],e)}function da(e){var t=r(ua)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=s((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return E(E({},e),((r={})[n]=Gt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return I.jsx(ua.Provider,E({value:a},{children:o}),void 0)}function pa(e){var t=e.children,n=k(e,["children"]),r=t;return d.toArray(t).length<=1&&"function"==typeof t&&(r=f(d.only(t),n)),I.jsx(ua.Provider,E({value:{}},{children:r}),void 0)}var fa="undefined"!=typeof window?e.useLayoutEffect:function(){};function ha(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a();return i((function(){e.forEach((function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)}))}),[e]),n}var ga={block:"inline",grid:"inline-grid",flex:"inline-flex"},va={display:"inline-block"},ma=m.div((function(e){return e.css})),ba=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,l=e.mods,s=e.inline,u=e.isHidden,c=e.isDisabled,d=e.qa,p=e.qaVal,f=e.css,h=k(e,["as","styles","breakpoints","block","mods","inline","isHidden","isDisabled","qa","qaVal","css"]),g=E(E({},va),i);a&&(g.display="block"),s&&(g.display="string"==typeof g.display?ga[g.display||"block"]:"block");var v=r(Li);return f=""+(f||"")+Go(g,function(e){var t=e.join("|");if(!Mi[t]){var n=[];e.forEach((function(t,r){var i={};r&&(i.max=e[r-1]-1),i.min=t,n.push(i)})),n.push({max:e[e.length-1]-1}),n.forEach((function(e){var t=[];e.min&&t.push("(min-width: "+e.min+"px)"),e.max&&t.push("(max-width: "+e.max+"px)"),e.mediaQuery=t.join(" and ")})),Mi[t]=n}return Mi[t]}(o||v),ia),null==h.hidden&&u&&(h.hidden=u),null==h.disabled&&c&&(h.disabled=c),l&&Object.assign(h,sa(l)),I.jsx(ma,E({as:n,"data-qa":d,"data-qaval":p},h,{ref:t,css:f}),void 0)})),ya=["display","size","font","preset"],xa=["gridArea","flexGrow","flexShrink","order","gridColumn","gridRow","placeSelf","zIndex","margin"],wa=["reset","padding","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Sa=["color","fill"],Ea=["textTransform","fontWeight","fontStyle"],ka=["width","height","flexBasis"],Pa=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","gridColumns","gridRows","gridTemplate","gridAreas"],Ta=N(N(N(N(N(N([],O(ya),!1),O(Sa),!1),O(ka),!1),O(xa),!1),O(wa),!1),O(Pa),!1),Ca=N(N([],O(xa),!1),O(ka),!1),Oa=new Set(["id"]),Na=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ja=new Set(["as","css","qa","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),Aa=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),La=/^((data-).*)$/,Fa=/^on[A-Z].+$/;function Da(e,t){void 0===t&&(t={});var n=t.labelable,r=t.propNames,i=t.eventProps,o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Oa.has(a)||ja.has(a)||n&&Na.has(a)||i&&Fa.test(a)&&!Aa.has(a)||(null==r?void 0:r.has(a))||La.test(a))&&(o[a]=e[a]);return o}var Ra=F((function(e){!function(e){e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,l="",s="";if(l=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],l&&l.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(l.toLowerCase()))return s+=l+":",r&&r.length&&(s+="//"+r),s+=i,o&&o.length&&(s+="?"+o),a&&a.length&&(s+="#"+a),s}}}function r(e,r){if(n(e)){var i,o,a,l,s="",u="",c="",d="";if(s=(i=t(e))[1],u=i[2],o=i[3],a=i[4],l=i[5],s){if(r){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=s+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),l&&l.length&&(d+="#"+l),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),Ia=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,Ma={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e},boolean:function(e){return"boolean"==typeof e},method:function(e){return"function"==typeof e},regexp:function(e){return e instanceof RegExp},integer:function(e){return"number"==typeof e&&e===parseInt(String(e),10)},array:function(e){return Array.isArray(e)},object:function(e){return"object"==typeof e&&!Array.isArray(e)},date:function(e){return e instanceof Date},url:function(e){return"string"==typeof e&&Ra.isUri(e)},hex:function(e){return"string"==typeof e&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email:function(e){return function(e){if(!e)return!1;if(e.length>254)return!1;if(!Ia.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e)},any:function(e){return!0}},_a=Object.keys(Ma),za={required:function(e){return P(this,void 0,void 0,(function(){return T(this,(function(t){return Array.isArray(e)?[2,e.length?Promise.resolve():Promise.reject()]:[2,e||0===e?Promise.resolve():Promise.reject()]}))}))},whitespace:function(e){return P(this,void 0,void 0,(function(){return T(this,(function(t){return"string"!=typeof e||e.trim()?[2,Promise.resolve()]:[2,Promise.reject()]}))}))},pattern:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.pattern,"string"!=typeof e?[2,Promise.resolve()]:[2,e.match(n)?Promise.resolve():Promise.reject()]}))}))},enum:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.enum||[],e||0===e?[2,n.includes(e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},len:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.len,"number"==typeof e?[2,e===n?Promise.resolve():Promise.reject()]:e&&"length"in e?[2,e.length===n?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},max:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.max,"number"==typeof e?[2,e<=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length<=n?Promise.resolve():Promise.reject()]}))}))},min:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.min,"number"==typeof e?[2,e>=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length>=n?Promise.resolve():Promise.reject()]}))}))},validator:function(e,t){return P(this,void 0,void 0,(function(){return T(this,(function(n){return[2,t.validator(t,e)]}))}))},type:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.type,_a.includes(n)?[2,Ma[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},Ka=Object.keys(za);function Va(e,t,n){return P(this,void 0,void 0,(function(){var r,i,o,a,l,s;return T(this,(function(u){switch(u.label){case 0:"function"==typeof t&&(t=t(n)),"function"==typeof t.transform&&(e=t.transform(e)),u.label=1;case 1:u.trys.push([1,6,7,8]),r=C(Ka),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,za[o])(e,t)]:[3,4];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a=u.sent(),l={error:a},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function Ua(e,t,n){return P(this,void 0,void 0,(function(){var r,i,o,a,l,s,u;return T(this,(function(c){switch(c.label){case 0:if(!t||!t.length)return[2];r=function(t){return T(this,(function(r){switch(r.label){case 0:return[4,Va(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=t.message),e}))];case 1:return r.sent(),[2]}}))},c.label=1;case 1:c.trys.push([1,6,7,8]),i=C(t),o=i.next(),c.label=2;case 2:return o.done?[3,5]:(a=o.value,[5,r(a)]);case 3:c.sent(),c.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return l=c.sent(),s={error:l},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function Ba(e,t){return JSON.stringify(e)===JSON.stringify(t)}var Wa=function(){function e(e){this.forceReRender=function(){},this.initialFields={},this.fields={},this.ref={},this.onValuesChange=function(){},this.onSubmit=function(){},this.forceReRender=e||function(){},this.initialFields={},this.fields={},this.setFieldValues=this.setFieldValues.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldValues=this.setInitialFieldValues.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}return e.prototype.submit=function(){return P(this,void 0,void 0,(function(){return T(this,(function(e){return this.onSubmit?[2,this.onSubmit(this.getFieldsValue())]:[2]}))}))},e.prototype.setFieldValues=function(e,t){var n=this;void 0===t&&(t=!1);var r=!1;Object.keys(e).forEach((function(i){var o=n.fields[i];o&&!Ba(o.value,e[i])&&(r=!0,o.value=e[i],t&&(o.touched=t))})),r&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldValue=function(e){return this.fields[e]&&this.fields[e].value},e.prototype.getFieldsValue=function(){return Object.values(this.fields).reduce((function(e,t){return e[t.name]=t.value,e}),{})},e.prototype.setFieldValue=function(e,t,n){void 0===n&&(n=!1);var r=this.fields[e];r&&!Ba(t,r.value)&&(r.value=t,n&&(r.touched=n),this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldValues=function(e){this.initialFields=e||{}},e.prototype.resetFields=function(){this.setFieldValues(this.initialFields)},e.prototype.validateField=function(e){return P(this,void 0,void 0,(function(){var t,n=this;return T(this,(function(r){return(t=this.getFieldInstance(e))&&t.rules?[2,Ua(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&Ba(t.errors,[e])||(t.errors=[e],n.forceReRender()),Promise.reject([e])}))]:[2,Promise.resolve()]}))}))},e.prototype.validateFields=function(e){var t=this,n=e||Object.keys(this.fields),r={};return Promise.all(n.map((function(e){return t.validateField(e).catch((function(t){return r[e]=t,Promise.reject()}))}))).catch((function(){return Promise.reject(r)}))},e.prototype.isFieldValid=function(e){var t=this.getFieldInstance(e);return!t||!t.errors.length},e.prototype.isFieldInvalid=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.errors.length},e.prototype.isFieldTouched=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.touched},e.prototype.getFieldError=function(e){var t=this.getFieldInstance(e);return t&&t.errors||[]},e.prototype.createField=function(e){this.fields[e]||(this.fields[e]=this._createField(e)),this.forceReRender()},e.prototype.setFields=function(e){var t=this;e.forEach((function(e){var n=e.name,r=e.value,i=e.errors;t.fields[n]=t._createField(n,{value:r,errors:i})})),this.forceReRender()},e.prototype._createField=function(e,t){return E({name:e,value:void 0,validating:!1,touched:!1,errors:[]},t)},e}();function Ga(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,l=a(),s=O(o({}),2)[1];if(!l.current){if(e)l.current=e;else{e=l.current=new Wa((function(){s({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[l.current]}function qa(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var Ja=n({});function Ha(e){var t=r(Ja);return E(E({},t),e)}var $a=new Set(["action","autoComplete","encType","method","target"]),Xa={display:"block",flow:"column",gap:"2x"};var Ya=Object.assign(h((function(e,t){var n,r=this;(e=Ii(e)).qa;var o,a,l=e.name,s=e.children,u=e.labelPosition,c=void 0===u?"top":u,d=e.isRequired,p=e.necessityIndicator,f=e.isDisabled,h=e.isReadOnly,g=e.validationState,v=e.labelStyles,m=e.validateTrigger,b=e.defaultValues,y=e.onValuesChange,x=e.requiredMark,w=void 0===x||x,S=e.form,C=e.onSubmit,N=e.onSubmitFailed,j=k(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]);t=ha(t),!C&&!N||j.action||(a=function(e){if(e&&(null==e?void 0:e.preventDefault)&&(e&&(null==e?void 0:e.preventDefault)&&(null==e||e.preventDefault()),e&&(null==e?void 0:e.stopPropagation)&&(null==e||e.stopPropagation()),e.nativeEvent)){var t=e.nativeEvent;if(t.submitter&&"submit"!==t.submitter.getAttribute("type"))return}return null==S?void 0:S.validateFields().then((function(){return P(r,void 0,void 0,(function(){return T(this,(function(e){switch(e.label){case 0:return[4,qa()];case 1:return e.sent(),S&&C&&C(S.getFieldsValue()),[2]}}))}))}),(function(e){return P(r,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:return[4,qa()];case 1:if(t.sent(),e instanceof Error)throw e;return N&&N(e),[2]}}))}))}))}),n=O(Ga(S,t&&t.current,{onSubmit:a,onValuesChange:y}),1),S=n[0],o=oo(j,Ta,Xa);var A=vi(t),L={labelPosition:c,labelStyles:v,necessityIndicator:p,validateTrigger:m,requiredMark:w,form:S,idPrefix:l};return i((function(){S&&b&&(S.setInitialFieldValues(b),S.resetFields())}),[]),I.jsx(ba,E({as:"form",qa:"Form"},Da(j,{propNames:$a}),{onSubmit:a,noValidate:!0,styles:o,ref:A,mods:{"has-sider":"side"===c}},{children:I.jsx(Ja.Provider,E({value:L},{children:I.jsx(Ri,E({insideForm:!0,isDisabled:f,isReadOnly:h,isRequired:d,validationState:g},{children:s}),void 0)}),void 0)}),void 0)})),{useForm:Ga});let Za="default",Qa="";function el(){"default"===Za&&(Qa=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Za="disabled"}function tl(){"disabled"===Za&&(Za="restoring",setTimeout((()=>{tn((()=>{"restoring"===Za&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Qa||""),Qa="",Za="default")}))}),300))}function nl(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const rl=t.createContext(null);function il(e){let t=function(e){let t=r(rl);if(t){let{register:n}=t;e=Gt(B(t,["register"]),e),n()}return rn(t,e.ref),e}(e),{onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,isPressed:h,preventFocusOnPress:g,shouldCancelOnPointerExit:v}=t,m=B(t,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","ref"]),b=a(null);b.current={onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,shouldCancelOnPointerExit:v};let[y,x]=o(!1),w=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:S,removeAllGlobalListeners:E}=function(){let e=a(new Map),t=l(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=l(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=l((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),k=s((()=>{let e=w.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:o}=b.current;o||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!0),e.didFirePressStart=!0,x(!0))},n=function(t,n,r){void 0===r&&(r=!0);let{onPressEnd:i,onPressChange:o,onPress:a,isDisabled:l}=b.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!1),x(!1),a&&r&&!l&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=b.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},i=t=>{e.isPressed&&(e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),tl())},o={onKeyDown(n){al(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),S(document,"keyup",a,!1)))},onKeyUp(t){al(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(sl(e.target,t),"keyboard")},onClick(i){i&&!i.currentTarget.contains(i.target)||i&&0===i.button&&(i.stopPropagation(),f&&i.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||!nl(i.nativeEvent)||(f||g||Xt(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&al(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(sl(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&ol(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click())};if("undefined"!=typeof PointerEvent){o.onPointerDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(cl(n.target)&&n.preventDefault(),e.pointerType=dl(n.nativeEvent)?"virtual":n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,f||g||Xt(n.currentTarget),el(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",l,!1),S(document,"pointercancel",s,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(cl(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&ul(t,t.currentTarget)&&r(t,e.pointerType||(dl(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(ul(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(sl(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(sl(e.target,r),e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r)))},l=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(ul(t,e.target)?n(sl(e.target,t),e.pointerType):e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),tl())},s=e=>{i(e)};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}else{o.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(cl(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=nl(n.nativeEvent)?"virtual":"mouse",f||g||Xt(n.currentTarget),t(n,e.pointerType),S(document,"mouseup",a,!1)))},o.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},o.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(t)))},o.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(ul(t,e.target)?n(sl(e.target,t),e.pointerType):e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};o.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",f||g||Xt(n.currentTarget),el(),t(n,e.pointerType),S(window,"scroll",l,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=ll(r.nativeEvent,e.activePointerId);o&&ul(o,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r))},o.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let i=ll(t.nativeEvent,e.activePointerId);i&&ul(i,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,tl(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let l=t=>{e.isPressed&&t.target.contains(e.target)&&i({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}return o}),[S,f,g,E]);return i((()=>()=>tl()),[]),{isPressed:h||y,pressProps:Gt(m,k)}}function ol(e){return"A"===e.tagName&&e.hasAttribute("href")}function al(e){const{key:t,target:n}=e,r=n,{tagName:i,isContentEditable:o}=r,a=r.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t||"INPUT"===i||"TEXTAREA"===i||!0===o||ol(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function ll(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function sl(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ul(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return o=r,!((i=n).left>o.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}function cl(e){return!e.closest('[draggable="true"]')}function dl(e){return 0===e.width&&0===e.height}rl.displayName="PressResponderContext";const pl=t.forwardRef(((e,n)=>{let{children:o}=e,l=B(e,["children"]),s=a(!1),u=r(rl),c=Gt(u||{},Dt({},l,{ref:n||(null==u?void 0:u.ref),register(){s.current=!0,u&&u.register()}}));return rn(u,n),i((()=>{s.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),t.createElement(rl.Provider,{value:c},o)}));function fl(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}let hl=null,gl=new Set,vl=!1,ml=!1,bl=!1;const yl={Tab:!0,Escape:!0};function xl(e,t){for(let n of gl)n(e,t)}function wl(e){ml=!0,function(e){return!(e.metaKey||!pn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(hl="keyboard",xl("keyboard",e))}function Sl(e){hl="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ml=!0,xl("pointer",e))}function El(e){nl(e)&&(ml=!0,hl="virtual")}function kl(e){e.target!==window&&e.target!==document&&(ml||bl||(hl="virtual",xl("virtual",e)),ml=!1,bl=!1)}function Pl(){ml=!1,bl=!0}function Tl(){if("undefined"==typeof window||vl)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ml=!0,e.apply(this,arguments)},document.addEventListener("keydown",wl,!0),document.addEventListener("keyup",wl,!0),document.addEventListener("click",El,!0),window.addEventListener("focus",kl,!0),window.addEventListener("blur",Pl,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Sl,!0),document.addEventListener("pointermove",Sl,!0),document.addEventListener("pointerup",Sl,!0)):(document.addEventListener("mousedown",Sl,!0),document.addEventListener("mousemove",Sl,!0),document.addEventListener("mouseup",Sl,!0)),vl=!0}function Cl(){return"pointer"!==hl}function Ol(){return hl}function Nl(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Cl());var l,s,u;return l=e=>{a(e)},s=[t],u={isTextInput:t},Tl(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!yl[n.key])})(null==u?void 0:u.isTextInput,e,t)&&l(Cl())};return gl.add(e),()=>gl.delete(e)}),s),{isFocusVisible:r}}function jl(e){let t=a({isFocusWithin:!1}).current;if(e.isDisabled)return{focusWithinProps:{}};return{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?Tl():document.addEventListener("DOMContentLoaded",Tl));let Al=!1,Ll=0;function Fl(){Al=!0,setTimeout((()=>{Al=!1}),50)}function Dl(e){"touch"===e.pointerType&&Fl()}function Rl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Dl):document.addEventListener("touchend",Fl),Ll++,()=>{Ll--,Ll>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Dl):document.removeEventListener("touchend",Fl))}}function Il(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:l}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(Rl,[]);let{hoverProps:p,triggerHoverEnd:f}=s((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let i=e.target;d.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),c(!0)},i=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let i=e.target;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{Al&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Al||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,l,d]);return i((()=>{l&&f({target:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:u}}function Ml(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function _l(e){if(!e)return;let t=!0;return n=>{let r=Dt({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r),t&&n.stopPropagation()}}function zl(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){l(!1)}),[n]);var r=O(o(!1),2),a=r[0],l=r[1],s=Nl({}).isFocusVisible;return{focusProps:fl({onFocusChange:l}).focusProps,isFocused:a&&(!t||s)}}var Kl={display:"grid",position:"absolute",placeItems:"center",gap:0,left:"@prefix-gap",top:"@prefix-gap",bottom:"@prefix-gap",color:"#dark.75",height:"(100% - (2 * @prefix-gap))"},Vl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=k(e,["onWidthChange","outerGap","children"]),s=oo(l,Ta,Kl),u=ha(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),I.jsx(ba,E({},Da(l,{eventProps:!0}),{styles:s,ref:u,style:{"--prefix-gap":Xi(o).value}},{children:a}),void 0)})),Ul={display:"grid",placeContent:"stretch",placeItems:"center",flow:"column",gap:0,position:"absolute",right:"@suffix-gap",top:"@suffix-gap",bottom:"@suffix-gap",color:"#dark.75",height:"(100% - (2 * @suffix-gap))"},Bl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=k(e,["onWidthChange","outerGap","children"]),s=oo(l,Ta,Ul),u=ha(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),I.jsx(ba,E({},Da(l,{eventProps:!0}),{styles:s,ref:u,style:{"--suffix-gap":Xi(o).value}},{children:a}),void 0)})),Wl=I.jsx("svg",E({xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"}},{children:I.jsx("switch",{children:I.jsx("g",{children:I.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"},void 0)},void 0)},void 0)}),void 0),Gl={"(required)":"(required)","(optional)":"(optional)"},ql={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},Jl={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var Hl=h((function(e,t){var n=(e=Ii(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,l=e.isRequired,s=e.necessityIndicator,u=void 0===s?null!=l?"icon":null:s,c=e.includeNecessityIndicatorInAccessibilityName,d=void 0!==c&&c,p=e.htmlFor,f=e.isDisabled,h=e.validationState,g=e.for,v=e.onClick,m=k(e,["as","qa","children","labelPosition","isRequired","necessityIndicator","includeNecessityIndicatorInAccessibilityName","htmlFor","isDisabled","validationState","for","onClick"]),b=vi(t),y=Ai("Label",m),x=oo(m,Ta,E(E({},Jl),y)),w=function(e){return Gl[e]},S=w(l?"(required)":"(optional)"),P=I.jsx("span",E({"aria-label":d?w("(required)"):void 0},{children:Wl}),void 0);return I.jsx(ba,E({as:n||"label",qa:r||"Label"},Da(m),{onClick:v,ref:b,styles:x,htmlFor:g||p,mods:{side:"side"===a,disabled:f,invalid:"invalid"===h,valid:"valid"===h}},{children:"string"!=typeof i?i:I.jsxs(I.Fragment,{children:[i,("label"===u||"icon"===u&&l)&&" ","label"===u&&I.jsx("span",E({"aria-hidden":d?void 0:l},{children:S}),void 0),"icon"===u&&l&&P]},void 0)}),void 0)})),$l={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},Xl={preset:"default",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},fontWeight:400,textAlign:"left",column:{"":1,"has-sider":2},userSelect:"none"};var Yl=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.insideForm,a=e.styles,l=e.isRequired,s=e.isDisabled,u=e.labelStyles,c=e.necessityIndicator,d=e.labelProps,p=e.fieldProps,f=e.message,h=e.messageStyles,g=e.Component,v=e.validationState,m=e.requiredMark,b=void 0===m||m,y={"has-sider":"side"===r&&i,"inside-form":o,invalid:"invalid"===v,valid:"valid"===v};return I.jsxs(ba,E({as:n||"div",qa:"Field",ref:t,mods:y,styles:E(E({},$l),a)},p,{children:[i&&I.jsx(Hl,E({as:"label"===n?"div":"label",styles:u,labelPosition:r,isRequired:!!b&&l,isDisabled:s,necessityIndicator:c,validationState:v},d,{children:i}),void 0),g,f&&!s&&I.jsx(ba,E({mods:y,styles:E(E({},Xl),h),role:"invalid"===v?"alert":void 0},{children:f}),void 0)]}),void 0)})),Zl={display:"flex",gap:!0},Ql={align:"alignItems",justify:"justifyItems"},es=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=oo(e,Ta,E(E({},Zl),{flow:n,alignItems:"row"===n?"center":"stretch"}),Ql);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),ts={display:"block"},ns=h((function(e,t){var n=oo(e,Ta,ts);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),rs={display:"grid",position:"relative"},is=N(N([],O(wa),!1),["resize"],!1),os={display:"block",width:"initial 100% initial",height:"initial initial initial",color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#white",disabled:"#dark.04"},border:{"":!0,focused:!0,valid:"#success-text.50",invalid:"#danger-text.50",disabled:!0},outline:{"":"#purple-03.0",focused:"#purple-03","invalid & focused":"#danger.50","valid & focused":"#success.50"},radius:!0,padding:"(1.25x - 1bw) (1.5x - 1bw)",fontWeight:400,textAlign:"left",reset:"input",preset:"default",flexGrow:1,margin:0,resize:"none"};var as=h((function(e,t){var n=(e=Ha(e=Ii(e))).qa,r=e.label,i=e.labelPosition,l=void 0===i?"top":i,s=e.labelStyles,u=e.isRequired,d=e.necessityIndicator,p=e.validationState,h=e.message,g=e.prefix,v=e.isDisabled,m=e.multiLine;e.autoFocus;var b=e.labelProps,y=e.inputProps,x=e.wrapperProps,w=e.inputRef,S=e.isLoading,P=e.loadingIndicator,T=e.insideForm;e.value;var C=e.inputStyles,N=void 0===C?{}:C,j=e.wrapperStyles,A=void 0===j?{}:j,L=e.suffix,F=e.suffixPosition,D=void 0===F?"before":F,R=e.wrapperRef,M=e.requiredMark,_=void 0===M||M,z=e.rows,K=void 0===z?1:z,V=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","insideForm","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","rows"]),U=O(o(0),2),B=U[0],W=U[1],G=O(o(0),2),q=G[0],J=G[1],H=oo(V,xa),$=Ai("Input",V);N=oo(V,is,E(E(E({},os),$),N)),A=E(E({},rs),A),g&&(N.paddingLeft=q+"px"),(p||S||L)&&(N.paddingRight=B+"px");var X=m?"textarea":"input",Y=zl({isDisabled:v}),Z=Y.isFocused,Q=Y.focusProps,ee=Il({isDisabled:v}),te=ee.hoverProps,ne=ee.isHovered,re=a(null),ie=a(null);w=w||ie,c(t,(function(){return E(E({},gi(re,w)),{select:function(){(null==w?void 0:w.current)&&w.current.select()},getInputElement:function(){return null==w?void 0:w.current}})}));var oe="invalid"===p,ae=oe?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),le=f(ae);L="string"==typeof L?I.jsx(ns,E({padding:"1x right"},{children:L}),void 0):L;var se=I.jsxs(ba,E({ref:R,qa:(n||"TextInput")+"Wrapper","data-is-invalid":oe?"":null,"data-is-valid":"valid"===p?"":null,"data-is-loadable":P?"":null,"data-is-multiline":m?"":null,styles:A},x,{children:[I.jsx(ba,E({qa:n||"TextInput",as:X},la(y,Q,te),{ref:w,rows:m?K:void 0,mods:{invalid:oe,valid:"valid"===p,disabled:v,hovered:ne,focused:Z},styles:N}),void 0),I.jsx(Vl,E({padding:"0 1x 0 1.5x",onWidthChange:J,opacity:!!v&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?I.jsx(ns,E({padding:"1x left"},{children:g}),void 0):g}),void 0),I.jsxs(Bl,E({padding:"1x left",onWidthChange:W,opacity:!!v&&"@disabled-opacity"},{children:["before"===D?L:null,I.jsxs(es,E({gap:!1,padding:"0 1.5x 0 0"},{children:[p&&!S?le:null,S&&I.jsx(Et,{},void 0)]}),void 0),"after"===D?L:null]}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:r,insideForm:T,styles:H,isRequired:u,labelStyles:s,necessityIndicator:d,labelProps:b,isDisabled:v,validationState:p,message:h,requiredMark:_,Component:se,ref:re}),void 0)}));function ls(e){if("virtual"===Ol()){let t=document.activeElement;tn((()=>{document.activeElement===t&&document.contains(e)&&Xt(e)}))}else Xt(e)}function ss(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ss(e.parentElement,e))}const us=t.createContext(null);let cs=null,ds=new Map;function ps(e){let{children:n,contain:o,restoreFocus:l,autoFocus:s}=e,u=a(),c=a(),d=a([]),p=r(us),f=null==p?void 0:p.scopeRef;zt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),zt((()=>(ds.set(d,f),()=>{d!==cs&&!ys(d,cs)||f&&!ds.has(f)||(cs=f),ds.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);zt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==cs)return;let n=document.activeElement,r=e.current;if(!ms(n,r))return;let i=Ss(vs(r),{tabbable:!0},r);i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&xs(o,!0)},a=t=>{!cs||ys(cs,e)?(cs=e,n.current=t.target):e!==cs||bs(t.target,e)?e===cs&&(n.current=t.target):n.current?n.current.focus():cs&&ws(cs.current)},l=t=>{r.current=requestAnimationFrame((()=>{e!==cs||bs(document.activeElement,e)||(cs=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",a,!1),i.forEach((e=>e.addEventListener("focusin",a,!1))),i.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",a,!1),i.forEach((e=>e.removeEventListener("focusin",a,!1))),i.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){zt((()=>{if(!t)return;let r=e.current,i=document.activeElement,o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey)return;let t=document.activeElement;if(!ms(t,r))return;let n=Ss(document.body,{tabbable:!0});n.currentNode=t;let o=e.shiftKey?n.previousNode():n.nextNode();if(document.body.contains(i)&&i!==document.body||(i=null),(!o||!ms(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(ms(o,r));e.preventDefault(),e.stopPropagation(),o?xs(o,!0):!function(e){for(let t of ds.keys())if(ms(e,t.current))return!0;return!1}(i)?t.blur():xs(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&ms(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&xs(i)}))}}),[e,t,n])}(d,l,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(cs=e,ms(document.activeElement,cs.current)||ws(e.current)),r.current=!1}),[])}(d,s);let h=function(e){return{focusNext(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[0].previousElementSibling,s=Ss(vs(n),{tabbable:i},n);s.currentNode=ms(a,n)?a:l;let u=s.nextNode();return!u&&o&&(s.currentNode=l,u=s.nextNode()),u&&xs(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,s=Ss(vs(n),{tabbable:i},n);s.currentNode=ms(a,n)?a:l;let u=s.previousNode();return!u&&o&&(s.currentNode=l,u=s.previousNode()),u&&xs(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Ss(vs(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&xs(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Ss(vs(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&xs(o,!0),o}}}(d);return t.createElement(us.Provider,{value:{scopeRef:d,focusManager:h}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}const fs=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],hs=fs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const gs=fs.join(':not([hidden]):not([tabindex="-1"]),');function vs(e){return e[0].parentElement}function ms(e,t){return t.some((t=>t.contains(e)))}function bs(e,t){for(let n of ds.keys())if((n===t||ys(t,n))&&ms(e,n.current))return!0;return!1}function ys(e,t){let n=ds.get(t);return!!n&&(n===e||ys(e,n))}function xs(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{ls(e)}catch(e){}}function ws(e){let t=e[0].previousElementSibling,n=Ss(vs(e),{tabbable:!0},e);n.currentNode=t,xs(n.nextNode())}function Ss(e,t,n){let r=null!=t&&t.tabbable?gs:hs,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return null!=t&&null!=(i=t.from)&&i.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&ss(e)&&(!n||ms(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let Es=t.createContext(null);function ks(e,n){let{children:r}=e,i=Dt({},B(e,["children"]),{ref:n});return t.createElement(Es.Provider,{value:i},r)}let Ps=t.forwardRef(ks);function Ts(e,t){let{focusProps:n}=fl(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:_l(e.onKeyDown),onKeyUp:_l(e.onKeyUp)}}}(e),l=Gt(n,o),s=function(e){let t=r(Es)||{};return rn(t,e),B(t,["ref"])}(t),u=e.isDisabled?{}:s,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Gt(Dt({},l,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}function Cs(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Vt(t);let a=Vt(),l={};return n?(r=r?r+" "+a:a,l={id:a,htmlFor:"label"===o?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:nn({id:t,"aria-label":i,"aria-labelledby":r})}}function Os(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Cs(e),o=Bt(),a=Bt();i=Gt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let l={},s={};return t&&(l.id=o),n&&(s.id=a),{labelProps:r,fieldProps:i,descriptionProps:l,errorMessageProps:s}}function Ns(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:l="text",onChange:s=(()=>{})}=e,{focusableProps:u}=Ts(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Os(e),h=$t(e,{labelable:!0});const g={type:l,pattern:e.pattern};return{labelProps:c,inputProps:Gt(h,"input"===n&&g,Dt({disabled:r,readOnly:o,"aria-required":i||void 0,"aria-invalid":"invalid"===a||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>s(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput},u,d)),descriptionProps:p,errorMessageProps:f}}function js(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var As=h((function(e,t){e=Ii(e);var n=a(null),r=Ns(e,n),i=r.labelProps,o=r.inputProps;return I.jsx(as,E({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)}));function Ls(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressChange:s,preventFocusOnPress:u,onClick:c,href:d,target:p,rel:f,type:h="button"}=e;n="button"===r?{type:h,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:d,target:"a"===r?p:void 0,type:"input"===r?h:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?f:void 0};let{pressProps:g,isPressed:v}=il({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Ts(e,t),b=Gt(m,g);return b=Gt(b,$t(e,{labelable:!0})),{isPressed:v,buttonProps:Gt(n,b,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{c&&(c(e),console.warn("onClick is deprecated, please use onPress"))}})}}var Fs={disabled:"isDisabled",loading:"isLoading",selected:"isSelected",onClick:"onPress"};function Ds(e,t,n){n.forEach((function(n){if(n in t){var r=Fs[n];console.warn('UI Kit: "'+n+'" property of "'+e+'" component is deprecated.'+(r?' Use "'+r+'" property instead.':""))}}))}function Rs(e,t){var n=document.createElement("a");n.href=e,t&&(n.target=!0===t?"_blank":t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Is(e){var t=e&&"string"==typeof e&&e.startsWith("!"),n=e&&"string"==typeof e&&e.startsWith("@");return{newTab:t,nativeRoute:n,href:e&&"string"==typeof e?t||n?e.slice(1):e:void 0}}var Ms={reset:"button",position:"relative",opacity:{"":1,disabled:.4},margin:0,fontFamily:"var(--font)",fontWeight:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},_s=["disabled","onClick"],zs=N(N([],O(Ta),!1),O(Ea),!1),Ks=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,l=e.skipWarnings,s=e.preventDefault,u=k(e,["to","as","htmlType","label","skipWarnings","preventDefault"]);l||Ds("Action",u,_s),i=n?"a":i||"button";var c=r(Di).router,d=u.isDisabled,p=Is(n),f=p.newTab,h=p.href,g=f?"_blank":void 0,v=function(e,t,n,r){var i=Is(t),o=i.newTab,a=i.nativeRoute,l=i.href;return function(i){r||(n?n():t&&(i.shiftKey||i.metaKey||o?Rs(l,!0):a?Rs(l||window.location.href):e?e.push(l):l&&(window.location.href=l)))}}(c,n,u.onPress||u.onClick,d),m=mi(t),b=oo(u,zs,Ms),y=Ls(u,m),x=y.buttonProps,w=y.isPressed,S=Il({isDisabled:d}),P=S.hoverProps,T=S.isHovered,C=zl({isDisabled:d},!0),O=C.focusProps,N=C.isFocused,j={};return n&&(j.onClick=function(e){e.preventDefault(),d||v(e)}),s&&(j.onClick=function(e){return e.preventDefault()}),I.jsx(ba,E({"data-is-hovered":T&&!d?"":null,"data-is-pressed":w&&!d?"":null,"data-is-focused":N&&!d?"":null,"data-is-disabled":d||null,"aria-label":a},Gt(x,P,O,j,Da(u,{eventProps:!0})),{type:o||"button",rel:"a"===i&&f?'rel="noopener noreferrer"':void 0,ref:m,as:i,isDisabled:d,styles:b,target:g,href:h}),void 0)}));var Vs={default:{border:{"":"#clear",pressed:"#purple.30"},fill:{"":"#purple.10",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple"},link:{fontWeight:500,padding:"0",radius:{"":"0",focused:"1r"},fill:"#clear",color:{"":"#purple-text",hovered:"#purple"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03"}},primary:{border:{"":"#clear",pressed:"#purple-text"},fill:{hovered:"#purple-text","pressed | !hovered":"#purple"},color:"#white"},clear:{border:{"":"#clear",pressed:"#purple-text.10"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple-text"},outline:{border:{"":"#purple.30",pressed:"#purple-text.10",disabled:"#dark.12"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple-text"},danger:{border:{"":"#clear",pressed:"#danger-text"},fill:{"":"#danger",pressed:"#danger",hovered:"#danger-text"},color:"#white"},item:{border:"0",fill:{"":"#purple.0",hovered:"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#purple"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)",cursor:"default"},tab:{color:{"":"#dark","selected, hovered":"#purple-text",disabled:"#dark.50"},fill:"#purple.0",textAlign:"center",fontWeight:600,padding:"(1x - 1px) (1x - 1px)",radius:"1r 1r 0 0",border:0},disabled:{fill:"#dark.08",color:"#dark.60"}},Us={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},Bs={tab:"\n&::before {\n --outline-size: 0px;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 calc(-1 * var(--outline-size)) 0 var(--purple-color);\n pointer-events: none;\n transition: opacity linear .2s, box-shadow linear .2s;\n}\n&[data-is-selected]::before {\n --outline-size: 2px;\n}\n&:not([data-is-selected]):not([disabled])[data-is-hovered]::before {\n --outline-size: 1px;\n}\n "},Ws={display:"inline-block",placeItems:"center stretch",radius:!0,opacity:{"":1,disabled:.5,selected:1},cursor:"pointer",fontWeight:500,preset:"default"},Gs=["disabled","loading","onClick"],qs=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.ghost,l=e.children,s=e.css,u=e.icon,c=e.skipWarnings,d=k(e,["type","size","label","styles","ghost","children","css","icon","skipWarnings"]);c||Ds("Action",d,Gs);var p=d.isDisabled,f=d.isLoading,h=d.isSelected,g=E(E({},d),{isLoading:f,isDisabled:p,size:r,type:n,ghost:a,icon:u,children:l}),v=Ai("Button",g);return l=l||i,o=E(E(E({},function(e){var t=e.size,n=e.type,r=e.isDisabled,i=e.ghost,o=e.isLoading,a=e.icon,l=e.children;return E(E(E(E(E(E({},Us[t||"default"]),Ws),Vs[n||"default"]),r?E({},"tab"!==n?Vs.disabled:{}):{}),i?{fill:"#clear"}:null),!o&&!a||l?null:{padding:"0",width:"(2.5x + 1lh)",height:"(2.5x + 1lh)",display:"grid",placeItems:"center"})}(g)),v),o),f&&!l&&o&&(o.size="1em 1em"),I.jsxs(Ks,E({as:d.to?"a":void 0,css:"\n \n white-space: nowrap;\n\n & > .anticon.anticon-loading {\n transition: display .2s steps(1, start), margin .2s linear, opacity .2s linear;\n margin-top: -7px;\n margin-bottom: -7px;\n line-height: 0;\n }\n"+(n?Bs[n]:"")+(s||"")+"\n "},d,{ref:t,isDisabled:f||p,"data-type":n,"data-theme":n&&["success","danger","primary"].includes(n)?"special":void 0,"data-is-loading":f?"":void 0,"data-is-selected":h?"":void 0,styles:o,skipWarnings:c},{children:[f?I.jsx(ns,E({display:"inline-block",margin:l?"1x right":void 0},{children:I.jsx(Et,{},void 0)}),void 0):null,u&&!f?I.jsxs(es,E({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?null:u,l?I.jsx("div",{children:l},void 0):null]}),void 0):l]}),void 0)}));var Js=Object.assign(h((function(e,t){var n=Ii(E({},e)),r=n.suffix,i=k(n,["suffix"]),s=O(o("password"),2),u=s[0],c=s[1],d=a(null),p=Ns(E(E({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,g=l((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),v=I.jsxs(I.Fragment,{children:[r,I.jsx(qs,{type:"item",htmlType:"button",onPress:g,preventDefault:!0,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x","aria-label":"Toggle masking",excludeFromTabOrder:!0,icon:"password"===u?I.jsx(ot,{},void 0):I.jsx(st,{},void 0)},void 0)]},void 0);return I.jsx(as,E({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:v},i),void 0)})),{cubeInputType:"Text"});function Hs(e){let{minValue:t,maxValue:n,step:r,formatOptions:u,value:c,defaultValue:d,onChange:p,locale:f,isDisabled:h,isReadOnly:g}=e,[v,m]=jt(c,isNaN(d)?NaN:d,p),[b,y]=o((()=>isNaN(v)?"":new Sn(f,u).format(v))),x=s((()=>new Pn(f,u)),[f,u]),w=s((()=>x.getNumberingSystem(b)),[x,b]),S=s((()=>new Sn(f,Dt({},u,{numberingSystem:w}))),[f,u,w]),E=s((()=>S.resolvedOptions()),[S]),k=l((e=>isNaN(e)?"":S.format(e)),[S]),P=isNaN(r)?1:r;"percent"===E.style&&isNaN(r)&&(P=.01),i((()=>{y(k(v))}),[v,f,u]);let T=s((()=>x.parse(b)),[x,b]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return At(isNaN(r)?0:r,t,n,P)}{let r=At(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:At($s(e,i,P),t,n,P)}};return{validate:e=>x.isValidPartialNumber(e,t,n),increment:()=>{m((e=>{let n=O("+",t);return n===e&&y(k(n)),n}))},incrementToMax:()=>{null!=n&&m(At(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&y(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:s((()=>!h&&!g&&(isNaN(T)||isNaN(n)||At(T,t,n,P)>T||$s("+",T,P)<=n)),[h,g,t,n,P,T]),canDecrement:s((()=>!h&&!g&&(isNaN(T)||isNaN(t)||At(T,t,n,P)<T||$s("-",T,P)>=t)),[h,g,t,n,P,T]),minValue:t,maxValue:n,numberValue:T,setInputValue:y,inputValue:b,commit:()=>{if(!b.length)return m(NaN),void y(void 0===c?"":k(v));if(isNaN(C.current))return void y(k(v));let e;e=isNaN(r)?function(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),Math.min(Math.max(e,t),n)}(C.current,t,n):At(C.current,t,n,r),e=x.parse(k(e)),m(e),y(k(void 0===c?e:v))}}}function $s(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const i=t.toString().split("."),o=n.toString().split("."),a=i[1]&&i[1].length||0,l=o[1]&&o[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}const Xs={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ys(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=fl({isDisabled:!n,onFocusChange:i}),l=s((()=>r?t:t?Dt({},Xs,t):Xs),[r]);return{visuallyHiddenProps:Dt({},a,{style:l})}}function Zs(e){let{children:n,elementType:r="div"}=e,i=B(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=Ys(e);return t.createElement(r,Gt(i,o),n)}let Qs=t.createRef(),eu=null,tu=0;function nu(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),Qs.current?i(Qs.current):(eu=document.createElement("div"),eu.dataset.liveAnnouncer="true",document.body.prepend(eu),y.render(t.createElement(ru,{ref:Qs}),eu,(()=>i(Qs.current))))}const ru=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,l]=o([]),s=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||l([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=tu++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):l((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):l((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:s}))),t.createElement(g,null,t.createElement(iu,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(iu,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function iu(e){let{children:n,"aria-live":r}=e;return t.createElement(Zs,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}function ou(e){return e&&e.__esModule?e:{default:e}}var au;au=JSON.parse('{"Empty":"فارغ"}');var lu;lu=JSON.parse('{"Empty":"Изпразни"}');var su;su=JSON.parse('{"Empty":"Prázdné"}');var uu;uu=JSON.parse('{"Empty":"Tom"}');var cu;cu=JSON.parse('{"Empty":"Leer"}');var du;du=JSON.parse('{"Empty":"Άδειο"}');var pu;pu=JSON.parse('{"Empty":"Empty"}');var fu;fu=JSON.parse('{"Empty":"Vacío"}');var hu;hu=JSON.parse('{"Empty":"Tühjenda"}');var gu;gu=JSON.parse('{"Empty":"Tyhjä"}');var vu;vu=JSON.parse('{"Empty":"Vide"}');var mu;mu=JSON.parse('{"Empty":"ריק"}');var bu;bu=JSON.parse('{"Empty":"Prazno"}');var yu;yu=JSON.parse('{"Empty":"Üres"}');var xu;xu=JSON.parse('{"Empty":"Vuoto"}');var wu;wu=JSON.parse('{"Empty":"空"}');var Su;Su=JSON.parse('{"Empty":"비어 있음"}');var Eu;Eu=JSON.parse('{"Empty":"Tuščias"}');var ku;ku=JSON.parse('{"Empty":"Tukšs"}');var Pu;Pu=JSON.parse('{"Empty":"Tom"}');var Tu;Tu=JSON.parse('{"Empty":"Leeg"}');var Cu;Cu=JSON.parse('{"Empty":"Pusty"}');var Ou;Ou=JSON.parse('{"Empty":"Vazio"}');var Nu;Nu=JSON.parse('{"Empty":"Vazio"}');var ju;ju=JSON.parse('{"Empty":"Gol"}');var Au;Au=JSON.parse('{"Empty":"Не заполнено"}');var Lu;Lu=JSON.parse('{"Empty":"Prázdne"}');var Fu;Fu=JSON.parse('{"Empty":"Prazen"}');var Du;Du=JSON.parse('{"Empty":"Prazno"}');var Ru;Ru=JSON.parse('{"Empty":"Tomt"}');var Iu;Iu=JSON.parse('{"Empty":"Boş"}');var Mu;Mu=JSON.parse('{"Empty":"Пусто"}');var _u;_u=JSON.parse('{"Empty":"空"}');var zu;zu=JSON.parse('{"Empty":"空白"}');const Ku={"ar-AE":ou(au).default,"bg-BG":ou(lu).default,"cs-CZ":ou(su).default,"da-DK":ou(uu).default,"de-DE":ou(cu).default,"el-GR":ou(du).default,"en-US":ou(pu).default,"es-ES":ou(fu).default,"et-EE":ou(hu).default,"fi-FI":ou(gu).default,"fr-FR":ou(vu).default,"he-IL":ou(mu).default,"hr-HR":ou(bu).default,"hu-HU":ou(yu).default,"it-IT":ou(xu).default,"ja-JP":ou(wu).default,"ko-KR":ou(Su).default,"lt-LT":ou(Eu).default,"lv-LV":ou(ku).default,"nb-NO":ou(Pu).default,"nl-NL":ou(Tu).default,"pl-PL":ou(Cu).default,"pt-BR":ou(Ou).default,"pt-PT":ou(Nu).default,"ro-RO":ou(ju).default,"ru-RU":ou(Au).default,"sk-SK":ou(Lu).default,"sl-SI":ou(Fu).default,"sr-SP":ou(Du).default,"sv-SE":ou(Ru).default,"tr-TR":ou(Iu).default,"uk-UA":ou(Mu).default,"zh-CN":ou(_u).default,"zh-TW":ou(zu).default};var Vu;Vu=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var Uu;Uu=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var Bu;Bu=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var Wu;Wu=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var Gu;Gu=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var qu;qu=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var Ju;Ju=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var Hu;Hu=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var $u;$u=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var Xu;Xu=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var Yu;Yu=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var Zu;Zu=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var Qu;Qu=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var ec;ec=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var tc;tc=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var nc;nc=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var rc;rc=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var ic;ic=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var oc;oc=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var ac;ac=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var lc;lc=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var sc;sc=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var uc;uc=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var cc;cc=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var dc;dc=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var pc;pc=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var fc;fc=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var hc;hc=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var gc;gc=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var vc;vc=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var mc;mc=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var bc;bc=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var yc;yc=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var xc;xc=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const wc={"ar-AE":ou(Vu).default,"bg-BG":ou(Uu).default,"cs-CZ":ou(Bu).default,"da-DK":ou(Wu).default,"de-DE":ou(Gu).default,"el-GR":ou(qu).default,"en-US":ou(Ju).default,"es-ES":ou(Hu).default,"et-EE":ou($u).default,"fi-FI":ou(Xu).default,"fr-FR":ou(Yu).default,"he-IL":ou(Zu).default,"hr-HR":ou(Qu).default,"hu-HU":ou(ec).default,"it-IT":ou(tc).default,"ja-JP":ou(nc).default,"ko-KR":ou(rc).default,"lt-LT":ou(ic).default,"lv-LV":ou(oc).default,"nb-NO":ou(ac).default,"nl-NL":ou(lc).default,"pl-PL":ou(sc).default,"pt-BR":ou(uc).default,"pt-PT":ou(cc).default,"ro-RO":ou(dc).default,"ru-RU":ou(pc).default,"sk-SK":ou(fc).default,"sl-SI":ou(hc).default,"sr-SP":ou(gc).default,"sv-SE":ou(vc).default,"tr-TR":ou(mc).default,"uk-UA":ou(bc).default,"zh-CN":ou(yc).default,"zh-TW":ou(xc).default};function Sc(e,t,n){let{id:r,decrementAriaLabel:u,incrementAriaLabel:c,isDisabled:d,isReadOnly:p,isRequired:f,minValue:h,maxValue:g,autoFocus:v,validationState:m,label:b,formatOptions:y,onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T}=e,{increment:C,incrementToMax:O,decrement:N,decrementToMin:j,numberValue:A,commit:L}=t;const F=di(wc);let D=Vt(r),{focusProps:R}=fl({onBlur:()=>{L()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:s,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:g,onDecrementToMin:v,onIncrementToMax:m}=e;const b=di(Ku),y=()=>clearTimeout(t.current);i((()=>()=>y()),[]);let x=a(!1),w=()=>{x.current=!0},S=()=>{x.current=!1};r=""===r?b("Empty"):(r||""+n).replace("-","−"),i((()=>{x.current&&nu(r,"assertive")}),[r]);const E=l((e=>{y(),p(),t.current=window.setTimeout((()=>{(isNaN(s)||isNaN(n)||n<s)&&E(60)}),e)}),[p,s,n]),k=l((e=>{y(),h(),t.current=window.setTimeout((()=>{(isNaN(o)||isNaN(n)||n>o)&&k(60)}),e)}),[h,o,n]);return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":r,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":u||null,"aria-readonly":c||null,"aria-required":d||null,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c))switch(e.key){case"PageUp":if(f){e.preventDefault(),f();break}case"ArrowUp":case"Up":p&&(e.preventDefault(),p());break;case"PageDown":if(g){e.preventDefault(),g();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h());break;case"Home":v&&(e.preventDefault(),v());break;case"End":m&&(e.preventDefault(),m())}},onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>E(400),onPressEnd:y,onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>k(400),onPressEnd:y,onFocus:w,onBlur:S}}}({isDisabled:d,isReadOnly:p,isRequired:f,maxValue:g,minValue:h,onIncrement:C,onIncrementToMax:O,onDecrement:N,onDecrementToMin:j,value:A,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=jl({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=l((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);mn(t,"wheel",r?null:i)}({onScroll:l((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?C():e.deltaY<0&&N())}),[N,C]),isDisabled:d||p||!z},n);let U=function(e){void 0===e&&(e={});let{locale:t}=ui();return s((()=>new Sn(t,e)),[t,e])}(y),B=s((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,W=isNaN(t.minValue)||t.minValue<0,G="numeric";fn()?W?G="text":B&&(G="decimal"):cn(/Android/)&&(W?G="numeric":B&&(G="decimal"));let q,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!js())return;let e=n.current,t=t=>{let n,i=r.current;switch(t.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentForward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd+1):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentBackward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart-1)+e.value.slice(e.selectionStart):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=e.value.slice(e.selectionStart);break;default:null!=t.data&&(n=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd))}null!=n&&i.validate(n)||t.preventDefault()};return e.addEventListener("beforeinput",t,!1),()=>{e.removeEventListener("beforeinput",t,!1)}}),[n,r]);let o=js()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:l,inputProps:s,descriptionProps:u,errorMessageProps:c}=Ns(e,n),d=a(null);return{inputProps:Gt(s,{onBeforeInput:o,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;d.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=d.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:l,descriptionProps:u,errorMessageProps:c}}({label:b,autoFocus:v,isDisabled:d,isReadOnly:p,isRequired:f,validationState:m,value:t.inputValue,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:D,type:"text",inputMode:G,onChange:e=>{t.setInputValue(e)},onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T},t,n),Y=Gt(I,H,R,{role:null,"aria-roledescription":hn()?null:F("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Z=e=>{document.activeElement!==n.current&&("mouse"===e.pointerType?n.current.focus():e.target.focus())},Q=e["aria-label"]||("string"==typeof e.label?e.label:"");Q||(q=null!=e.label?J.id:e["aria-labelledby"]);let ee=Vt(),te=Vt(),ne=Gt(M,{"aria-label":c||F("increase",{fieldLabel:Q}).trim(),id:q&&!c?ee:null,"aria-labelledby":q&&!c?ee+" "+q:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canIncrement,onPressStart:Z}),re=Gt(_,{"aria-label":u||F("decrease",{fieldLabel:Q}).trim(),id:q&&!u?te:null,"aria-labelledby":q&&!u?te+" "+q:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canDecrement,onPressStart:Z});return{groupProps:Dt({role:"group","aria-disabled":d,"aria-invalid":"invalid"===m?"true":void 0},V),labelProps:J,inputProps:Y,incrementButtonProps:ne,decrementButtonProps:re,errorMessageProps:X,descriptionProps:$}}var Ec={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};var kc=h((function(e){return I.jsx(qs,E({type:"item",styles:Ec,preventDefault:!0,icon:"up"===e.direction?I.jsx(We,{},void 0):I.jsx(Ve,{},void 0),mods:{up:"up"===e.direction,down:"down"===e.direction}},e),void 0)}));var Pc=Object.assign(h((function(e,t){var n=!(e=Ha(e=Ii(e))).hideStepper,r=ui().locale,i=Hs(E(E({},e),{locale:r})),o=a(null),l=Sc(e,i,o),s=l.groupProps,u=l.labelProps,c=l.inputProps,d=l.incrementButtonProps,p=l.decrementButtonProps;return I.jsx(as,E({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:s,suffixPosition:"after",suffix:n?I.jsxs(ba,E({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[I.jsx(kc,E({direction:"up"},d),void 0),I.jsx(kc,E({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),Tc={};function Cc(e,t,n){return"Number"===(e=e||"")?{value:null!=t?t:null,onChange:n}:"Text"===e?{value:"string"==typeof t||"number"==typeof t?String(t):"",onChange:n}:"Checkbox"===e?{isSelected:null!=t&&t,isIndeterminate:!1,onChange:n}:"CheckboxGroup"===e?{value:null!=t?t:[],onChange:n}:"ComboBox"===e?{inputValue:null!=t?t:"",onInputChange:n}:"Select"===e?{selectedKey:null!=t?t:null,onSelectionChange:n}:{value:null!=t?t:null,onChange:n}}function Oc(e){var t=Ha(e),n=t.type,r=t.id,a=t.idPrefix,l=t.children,s=t.name,u=t.form,c=t.rules,p=t.label,h=t.validateTrigger,g=t.validationState,v=t.message,m=O(o((function(){return r||function(e){Tc[e]||(Tc[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(Tc[e].includes(t));return Tc[e].push(t),t}(a?a+"_"+s:s)})),1)[0];i((function(){return function(){r||function(e,t){Tc[e]=Tc[e].filter((function(e){return e!==t}))}(a?a+"_"+s:s,m)}}),[]);var b=null==u?void 0:u.getFieldInstance(s),y=c&&c.find((function(e){return e.required}));if(i((function(){b?(b.rules=c,u.forceReRender()):u.createField(s)}),[b]),!s)return console.error("invalid form name:",s),null;if(!u)return console.error("form field requires declared form instance"),null;if("function"==typeof l&&(l=l(u)),!l)return null;var x=d.only(l);n=n||x.type.cubeInputType||"Text";var w,S="NumberInput"===(w=(w=n)||"")||w.includes("Input")||(w.includes("TextArea")?"onBlur":"onChange");if(!b)return f(x,la(x.props,E(E({},Cc(n)),{name:s,id:m})));h||(h=S);var P={id:m,name:s,onBlur:function(){"onBlur"===h&&setTimeout((function(){u.validateField(s).catch((function(){}))}))}};g&&(P.validationState=g),y&&(P.isRequired=!0),p&&(P.label=p),v&&(P.message=v),b&&b.errors&&b.errors.length&&(g||(P.validationState="invalid"),v||(P.message=b.errors[0])),Object.assign(P,Cc(n,null==b?void 0:b.value,(function(e){u.setFieldValue(s,e,!0);var t=u.getFieldInstance(s);("onChange"===h||t&&t.errors&&t.errors.length)&&u.validateField(s).catch((function(){}))})));var T=x.props,C=T.onChange,N=T.onSelectionChange,j=k(T,["onChange","onSelectionChange"]);return f(x,la(j,P,C?{onChange:C}:{},N?{onSelectionChange:N}:{}))}var Nc=N(N(N([],O(ya),!1),O(Ea),!1),O(Sa),!1),jc={display:"inline",margin:"0"},Ac={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},Lc=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.ellipsis,a=e.css,l=e.nowrap,s=k(e,["as","qa","block","ellipsis","css","nowrap"]),u=oo(s,Nc,E(E(E({},jc),{whiteSpace:l?"nowrap":"initial"}),o?{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:"max 100%"}:null),Ac);return a=a||"",I.jsx(ba,E({as:n||"span",qa:r||"Text",block:!(!i&&!o),css:a},Da(s,{eventProps:!0}),{styles:u,ref:t}),void 0)})),Fc=Object.assign(Lc,{Minor:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#dark",weight:600},e),void 0)})),Selection:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Dc={gridArea:"heading",display:"block",color:"#dark"},Rc=N(N(N(N(N([],O(ya),!1),O(Ea),!1),O(wa),!1),O(Sa),!1),O(xa),!1),Ic={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},Mc=h((function(e,t){var n=e.qa,r=e.as,i=e.level,o=k(e,["qa","as","level"]),a="h"+(i||1),l=oo(o=ca(o,"heading"),Rc,E(E({},Dc),{preset:a}),Ic);return I.jsx(Fc,E({qa:n||"Title",as:r||a},Da(o,{eventProps:!0}),{styles:l,ref:t}),void 0)})),_c=Object.assign(Mc,{Danger:h((function(e,t){return I.jsx(_c,E({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return I.jsx(_c,E({ref:t,color:"#success-text"},e),void 0)}))}),zc={preset:"p3",color:"#dark.75",display:"block"},Kc=N(N([],O(Ta),!1),O(Ea),!1),Vc=h((function(e,t){var n=oo(e,Kc,zc);return I.jsx(Fc,E({},e,{as:"p",styles:n,ref:t}),void 0)}));var Uc=Object.assign(h((function(e,t){var n=(e=Ii(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,s=e.isReadOnly,c=void 0!==s&&s,d=e.isRequired,p=void 0!==d&&d,f=e.onChange,h=e.rows,g=k(e,["autoSize","isDisabled","isReadOnly","isRequired","onChange","rows"]);h=h||3;var v=O(jt(e.value,e.defaultValue,(function(){})),2),m=v[0],b=v[1],y=a(null),x=l((function(){if(r&&y.current){var e=y.current,t=e.style.alignSelf,n=getComputedStyle(e);e.style.alignSelf="start",e.style.height="auto",e.style.height=e.scrollHeight?"calc("+e.scrollHeight+"px + (2 * var(--border-width)))":parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.lineHeight)*(h||3)+2+"px",e.style.alignSelf=t}}),[y]);u((function(){y.current&&x()}),[x,m,y]);var w=Ns(E(E({},e),{onChange:Wt(f,b),inputElementType:"textarea"}),y),S=w.labelProps,P=w.inputProps;return I.jsx(as,E({},g,{ref:t,inputRef:y,labelProps:S,inputProps:P,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),Bc=h((function(e,t){return e=ca(e,"buttonGroup"),I.jsx(es,E({gridArea:"buttonGroup",ref:t},e),void 0)}));function Wc(e){return null}function Gc(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}Wc.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||null!=n&&n.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:Gc(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(i){let e=[];t.Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let qc=Wc;class Jc{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,Hc((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:r}=e;if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];t.Children.forEach(n,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return""+r+t.key;let i=t.value;if(null!=i){var o;let e=null!=(o=i.key)?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?r+"."+t.index:"$."+t.index}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,n,r,i){let o=e.element;if(!o&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=i?i.key:null,void(yield t);o=n.renderer(e.value)}if(t.isValidElement(o)){let t=o.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error("Unknown element <"+e+"> in collection.")}let a=t.getCollectionNode(o.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let t=s.value;e.index=l;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(Dt({},t,{key:u,index:l,wrapper:$c(e.wrapper,t.wrapper)}),this.getChildState(n,t),r?""+r+o.key:o.key,i)];for(let n of c){if(n.value=t.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error("Unsupported type <"+Xc(n.type)+"> in <"+Xc(i.type)+">. Only <"+Xc(e.type)+"> is supported.");l++,yield n}s=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Hc((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+l.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}}function Hc(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function $c(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Xc(e){return e[0].toUpperCase()+e.slice(1)}const Yc=new WeakMap;function Zc(e){let t=Yc.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Zc(n.childNodes):t++;return Yc.set(e,t),t}var Qc={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},ed=N(N([],O(Ta),!1),O(Ea),!1),td=h((function(e,t){var n=e.as,r=e.label,i=k(e,["as","label"]),o=i.isDisabled,a=oo(i,ed,Qc),l=mi(t),s=Il({isDisabled:o}),u=s.hoverProps,c=s.isHovered,d=zl({isDisabled:o}),p=d.focusProps,f=d.isFocused,h=Ts(i,l).focusableProps;return I.jsx(ba,E({"data-is-hovered":c&&!o?"":null,"data-is-focused":f&&!o?"":null,"data-is-disabled":o||null,"aria-label":r},Gt(u,p,h,Da(i,{eventProps:!0})),{tabIndex:i.excludeFromTabOrder||o?-1:0,as:n,styles:a,ref:l}),void 0)})),nd={display:"grid",flow:"row",gap:"@(column-gap, 0)"},rd={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},id=h((function(e,t){var n=oo(e,Ta,nd,rd);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),od={display:"flex",flow:"row",gap:"@(column-gap, 0)"},ad={align:"alignItems",justify:"justifyItems"},ld=h((function(e,t){var n=oo(e,Ta,od,ad);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),sd={display:"inline",cursor:"pointer",fontWeight:500,padding:"0",radius:{"":"0",focused:"1r"},color:{"":"#purple-text",hovered:"#purple"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03"}},ud=N(N(N(N([],O(ya),!1),O(Sa),!1),O(xa),!1),O(Ea),!1),cd=h((function(e,t){var n=E(E(E({},sd),Ai("Link",e)),oo(e,ud));return I.jsx(Ks,E({as:"a",css:"\n white-space: nowrap;\n transition: color var(--transition) linear,\n background var(--transition) linear, box-shadow var(--transition) linear,\n border-radius var(--transition) linear;\n text-decoration: none;\n"},Da(e,{eventProps:!0}),{to:e.to,styles:n,ref:t}),void 0)})),dd={display:"block",flow:"column"},pd=Ta,fd=h((function(e,t){var n=oo(e,pd,dd);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),hd={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"239, 64, 74",danger:"255, 100, 109","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5"};function gd(e,t){return void 0===t&&(t=1),"rgba("+hd[e]+", "+t+")"}var vd={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px",transition:"120ms","clear-color":"transparent","border-color":gd("dark",.1),"shadow-color":gd("dark-03",.1),"draft-color":gd("dark",.2),"minor-color":gd("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":gd("note",.1),"note-text-color":gd("dark",.65),"danger-bg-color":gd("danger",.05),"danger-bg-hover-color":gd("danger",.1),"primary-1":gd("purple",.9),"primary-2":gd("purple",.8),"primary-3":gd("purple",.7),"primary-4":gd("purple",.6),"primary-5":gd("purple",.5),"primary-6":gd("purple",.4),"primary-7":gd("purple",.3),"primary-8":gd("purple",.2),"primary-9":gd("purple",.1),"primary-10":gd("purple",0),"dark-75-color":gd("dark",.75),"primary-color":gd("purple"),"pink-8-color":gd("pink",.2),"pink-9-color":gd("pink",.1),"disabled-color":gd("dark-01",.25),"disabled-text-color":gd("dark-01",.25),"disabled-bg":gd("dark-05",.2),"disabled-bg-color":gd("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"22px","text-letter-spacing":"0.02em","small-font-size":"12px","small-line-height":"18px","small-letter-spacing":"0.04em","sm-font-size":"var(--small-font-size)","sm-line-height":"var(--small-line-height)","sm-letter-spacing":"var(--small-letter-spacing)","medium-font-size":"14px","medium-line-height":"20px","medium-letter-spacing":"0.02em","md-font-size":"var(--medium-font-size)","md-line-height":"var(--medium-line-height)","md-letter-spacing":"var(--medium-letter-spacing)","large-font-size":"16px","large-line-height":"22px","lg-font-size":"var(--large-font-size)","lg-line-height":"var(--large-line-height)","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0.01em","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0.02em","h5-font-weight":"700","h5s-font-size":"16px","h5s-line-height":"22px","h5s-letter-spacing":"0.02em","h5s-font-weight":"600","h5m-font-size":"16px","h5m-line-height":"22px","h5m-letter-spacing":"0.02em","h5m-font-weight":"500","h6-font-size":"14px","h6-line-height":"20px","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0.01em","t2-font-weight":"400","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0.02em","t3-font-weight":"400","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0.025em","t4-font-weight":"400","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0.02em","t4m-font-weight":"500","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0.01em","p2-font-weight":"400","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0.02em","p3-font-weight":"400","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0.025em","p4-font-weight":"400","tag-font-size":"12px","tag-line-height":"12px","tag-letter-spacing":"0.02em","tag-font-weight":"500","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)"};Object.keys(hd).forEach((function(e){vd[e+"-color"]=gd(e),vd[e+"-color-rgb"]=hd[e]}));var md,bd=b(md||(md=j(["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'],["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'])),(function(e){var t=e.tokens;return Object.entries(E(E({},vd),t)).map((function(e){var t=O(e,2);return"--"+t[0]+": "+t[1]+";"})).join("\n ")}),(function(e){return e.font||"Inter"}),(function(e){return e.monospaceFont+", "||""}),(function(e){var t=e.fonts,n=e.publicUrl;return!1===t?"":function(e){var t=e.publicUrl,n=void 0===t?"":t;return"\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Regular.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Regular.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Medium.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Medium.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url("+n+"/fonts/Inter-SemiBold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-SemiBold.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Bold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Bold.woff) format('woff');\n }\n @font-face {\n font-family: 'Source Code Pro';\n src: url('"+n+"/fonts/SourceCodePro-Regular.woff2') format('woff2'),\n url('"+n+"/fonts/SourceCodePro-Regular.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Regular.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Regular.woff) format('woff');\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Bold.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Bold.woff) format('woff');\n }\n"}({publicUrl:n})})),yd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),xd=L(yd),wd=F((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),Sd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default})),Ed=F((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=wd(Sd);e.exports=t.default})),kd=L(Ed),Pd=F((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=wd(Sd);e.exports=t.default})),Td=L(Pd),Cd=F((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Od=F((function(e,t){t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default})),Nd=F((function(e,t){t.__esModule=!0,t.default=void 0;var n=wd(Od).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r;function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default})),jd=F((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),o=(0,r.default)(t),a=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:l.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var n=wd(Nd),r=wd(Sd),i=wd(yd);e.exports=t.default})),Ad=L(jd),Ld=F((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default})),Fd=F((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=wd(Ld),r=/^-ms-/;e.exports=t.default})),Dd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default})),Rd=F((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=wd(Dd),r=/^ms-/;e.exports=t.default})),Id=F((function(e,t){t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var a=e.currentStyle[t]||null;if(null==a&&o&&o[t]&&(a=o[t]),i.test(a)&&!r.test(t)){var l=o.left,s=e.runtimeStyle,u=s&&s.left;u&&(s.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=l,u&&(s.left=u)}return a}}};var n=wd(Fd),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),Md=F((function(e,t){t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default})),_d=F((function(e,t){t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,r,i,o,a,l,s,u,c,d,p,f=wd(Od),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=a,t.transitionProperty=o,t.animationDelay=p,t.animationTiming=d,t.animationDuration=c,t.animationName=u,f.default){var g=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var l=i[a];if(l+"TransitionProperty"in n){o="-"+l.toLowerCase(),e=r[l]("TransitionEnd"),t=r[l]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();n=g.prefix,t.transitionEnd=r=g.transitionEnd,t.animationEnd=i=g.animationEnd,t.transform=h=n+"-"+h,t.transitionProperty=o=n+"-transition-property",t.transitionDuration=a=n+"-transition-duration",t.transitionDelay=s=n+"-transition-delay",t.transitionTiming=l=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=c=n+"-animation-duration",t.animationTiming=d=n+"-animation-delay",t.animationDelay=p=n+"-animation-timing-function"}var v={transform:h,end:r,property:o,timing:l,delay:s,duration:a};t.default=v})),zd=F((function(e,t){t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default})),Kd=F((function(e,t){t.__esModule=!0,t.default=function(e,t,l){var s="",u="",c=t;if("string"==typeof t){if(void 0===l)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=l}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":s+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(s+=_d.transform+": "+u+";");e.style.cssText+=";"+s};var n=wd(Fd),r=wd(Rd),i=wd(Id),o=wd(Md),a=wd(zd);e.exports=t.default})),Vd=L(Kd),Ud=F((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,n.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==i(e)&&"static"===(0,r.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var n=wd(yd),r=wd(Kd);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),Bd=L(F((function(e,t){t.__esModule=!0,t.default=function(e,t){var s,u={top:0,left:0};"fixed"===(0,l.default)(e,"position")?s=e.getBoundingClientRect():(t=t||(0,i.default)(e),s=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},s,{top:s.top-u.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:s.left-u.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var n=wd(Cd),r=wd(jd),i=wd(Ud),o=wd(Ed),a=wd(Pd),l=wd(Kd);e.exports=t.default})));const Wd={top:"top",bottom:"top",left:"left",right:"left"},Gd={top:"bottom",bottom:"top",left:"right",right:"left"},qd={top:"left",left:"top"},Jd={top:"height",left:"width"},Hd={};let $d="undefined"!=typeof window&&window.visualViewport;function Xd(e,t,n,r,i){let o=r.scroll[e],a=r[Jd[e]],l=t-i-o,s=t+i-o+n;return l<0?-l:s>a?Math.max(a-s,-l):0}function Yd(e){if(Hd[e])return Hd[e];let[t,n]=e.split(" "),r=Wd[t]||"right",i=qd[r];Wd[n]||(n="center");let o=Jd[r],a=Jd[i];return Hd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},Hd[e]}function Zd(e,t,n,r,i,o,a,l){let{placement:s,crossPlacement:u,axis:c,crossAxis:d,size:p,crossSize:f}=r,h={};h[d]=e[d],"center"===u?h[d]+=(e[f]-n[f])/2:u!==d&&(h[d]+=e[f]-n[f]),h[d]+=o;let g=e[d]+e[f]/2-n[f],v=e[d]+e[f]/2;if(h[d]=Math.min(Math.max(g,h[d]),v),s===c){const n=l?a[p]:t[p];h[Gd[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Qd(e,t,n,r,i,o){let{placement:a,axis:l,size:s}=o;return a===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[Gd[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[Gd[l]]-i)}function ep(e,t,n,r,i,o,a,l,s,u,c,d){let p=Yd(e),{size:f,crossAxis:h,crossSize:g,placement:v,crossPlacement:m}=p,b=Zd(t,l,n,p,u,c,s,d),y=u,x=Qd(l,s,t,i,o+u,p);if(a&&r[f]>x){let e=Yd(Gd[v]+" "+m),r=Zd(t,l,n,e,u,c,s,d);Qd(l,s,t,i,o+u,e)>x&&(p=e,b=r,y=u)}let w=Xd(h,b[h],n[g],l,o);b[h]+=w;let S=function(e,t,n,r,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}(b,l,s,t,i,o);n.height=Math.min(n.height,S),b=Zd(t,l,n,p,y,c,s,d),w=Xd(h,b[h],n[g],l,o),b[h]+=w;let E={};return E[h]=t[h]-b[h]+t[g]/2,{position:b,maxHeight:S,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:p.placement}}function tp(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u}=e,c=r.offsetParent||document.body,d="BODY"===c.tagName;const p=window.getComputedStyle(c).position;let f=!!p&&"static"!==p,h=d?Ad(n):Bd(n,c);d||(h.top+=parseInt(Vd(n,"marginTop"),10)||0,h.left+=parseInt(Vd(n,"marginLeft"),10)||0);let g=Ad(r),v=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var m;return g.width+=v.left+v.right,g.height+=v.top+v.bottom,ep(t,h,g,{top:(m=i).scrollTop,left:m.scrollLeft,width:m.scrollWidth,height:m.scrollHeight},v,o,a,function(e){let t=0,n=0,r=0,i=0,o={};var a,l;return"BODY"===e.tagName?(t=null!=(a=null==$d?void 0:$d.width)?a:document.documentElement.clientWidth,n=null!=(l=null==$d?void 0:$d.height)?l:document.documentElement.clientHeight,o.top=kd(xd(e).documentElement)||kd(e),o.left=Td(xd(e).documentElement)||Td(e)):(({width:t,height:n,top:r,left:i}=Ad(e)),o.top=kd(e),o.left=Td(e)),{width:t,height:n,scroll:o,top:r,left:i}}(l),"BODY"===l.tagName?Ad(c):Bd(c,l),s,u,f)}const np=new WeakMap;let rp="undefined"!=typeof window&&window.visualViewport;function ip(e){let{direction:t}=ui(),{targetRef:n,overlayRef:r,scrollRef:s=r,placement:u="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:p=("undefined"!=typeof document?document.body:null),offset:f=0,crossOffset:h=0,shouldUpdatePosition:g=!0,isOpen:v=!0,onClose:m}=e,[b,y]=o({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[g,u,r.current,n.current,s.current,c,d,p,f,h,v,t],w=l((()=>{!1!==g&&v&&r.current&&n.current&&s.current&&p&&y(tp({placement:op(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:s.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;zt(w,x),zt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);zt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==rp||rp.addEventListener("resize",t),()=>{null==rp||rp.removeEventListener("resize",t)}}),[w]);let k=l((()=>{E.current||m()}),[m,E]);return function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;i((()=>{if(!n)return;let e=e=>{let n=e.target;if(!t.current||!n.contains(t.current))return;let i=r||np.get(t.current);i&&i()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}({triggerRef:n,isOpen:v,onClose:m?k:void 0}),{overlayProps:{style:Dt({position:"absolute",zIndex:1e5},b.position,{maxHeight:b.maxHeight})},placement:b.placement,arrowProps:{style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:w}}function op(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ap=[];function lp(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&ap.push(t),()=>{let e=ap.indexOf(t);e>=0&&ap.splice(e,1)})),[o,t]);let c=()=>{ap[ap.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,l=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;l.onInteractOutside=n,l.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{Ml(e,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(e),l.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{l.isPointerDown&&l.onInteractOutside&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))},r=e=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,l,r])}({ref:t,onInteractOutside:l?e=>{u&&!u(e.target)||(ap[ap.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||ap[ap.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=jl({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:Dt({onKeyDown:e=>{"Escape"!==e.key||s||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function sp(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&np.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let l=Vt();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?l:null},overlayProps:{id:l}}}const up="undefined"!=typeof window&&window.visualViewport,cp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dp(e){void 0===e&&(e={});let{isDisabled:t}=e;zt((()=>{if(!t)return hn()?function(){let e,t=0,n=n=>{e=on(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},r=n=>{if(e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;(i<=0&&r>t||i>=o&&r<t)&&n.preventDefault(),t=r},i=e=>{let t=e.target;t instanceof HTMLInputElement&&!cp.has(t.type)&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))},o=e=>{let t=e.target;t instanceof HTMLInputElement&&!cp.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",up&&(up.height<window.innerHeight?requestAnimationFrame((()=>{hp(t)})):up.addEventListener("resize",(()=>hp(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,s=window.pageYOffset,u=Wt(pp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),pp(document.documentElement,"overflow","hidden"),pp(document.body,"marginTop","-"+s+"px"));window.scrollTo(0,0);let c=Wt(fp(document,"touchstart",n,{passive:!1,capture:!0}),fp(document,"touchmove",r,{passive:!1,capture:!0}),fp(document,"touchend",i,{passive:!1,capture:!0}),fp(document,"focus",o,!0),fp(window,"scroll",a));return()=>{u(),c(),window.scrollTo(l,s)}}():Wt(pp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),pp(document.documentElement,"overflow","hidden"))}),[t])}function pp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function fp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function hp(e){let t=on(e);if(t!==document.documentElement&&t!==document.body){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}}const gp=t.createContext(null);function vp(e){let{children:n}=e,i=r(gp),[a,l]=o(0),u=s((()=>({parent:i,modalCount:a,addModal(){l((e=>e+1)),i&&i.addModal()},removeModal(){l((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(gp.Provider,{value:u},n)}function mp(e){let t=r(gp);if(!t)throw new Error("Modal is not contained within a provider");return i((()=>{if((null==e||!e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null!=e&&e.isDisabled)}}}var bp;bp=JSON.parse('{"dismiss":"تجاهل"}');var yp;yp=JSON.parse('{"dismiss":"Отхвърляне"}');var xp;xp=JSON.parse('{"dismiss":"Odstranit"}');var wp;wp=JSON.parse('{"dismiss":"Luk"}');var Sp;Sp=JSON.parse('{"dismiss":"Schließen"}');var Ep;Ep=JSON.parse('{"dismiss":"Απόρριψη"}');var kp;kp=JSON.parse('{"dismiss":"Dismiss"}');var Pp;Pp=JSON.parse('{"dismiss":"Descartar"}');var Tp;Tp=JSON.parse('{"dismiss":"Lõpeta"}');var Cp;Cp=JSON.parse('{"dismiss":"Hylkää"}');var Op;Op=JSON.parse('{"dismiss":"Rejeter"}');var Np;Np=JSON.parse('{"dismiss":"התעלם"}');var jp;jp=JSON.parse('{"dismiss":"Odbaci"}');var Ap;Ap=JSON.parse('{"dismiss":"Elutasítás"}');var Lp;Lp=JSON.parse('{"dismiss":"Ignora"}');var Fp;Fp=JSON.parse('{"dismiss":"閉じる"}');var Dp;Dp=JSON.parse('{"dismiss":"무시"}');var Rp;Rp=JSON.parse('{"dismiss":"Atmesti"}');var Ip;Ip=JSON.parse('{"dismiss":"Nerādīt"}');var Mp;Mp=JSON.parse('{"dismiss":"Lukk"}');var _p;_p=JSON.parse('{"dismiss":"Negeren"}');var zp;zp=JSON.parse('{"dismiss":"Zignoruj"}');var Kp;Kp=JSON.parse('{"dismiss":"Descartar"}');var Vp;Vp=JSON.parse('{"dismiss":"Dispensar"}');var Up;Up=JSON.parse('{"dismiss":"Revocare"}');var Bp;Bp=JSON.parse('{"dismiss":"Пропустить"}');var Wp;Wp=JSON.parse('{"dismiss":"Zrušiť"}');var Gp;Gp=JSON.parse('{"dismiss":"Opusti"}');var qp;qp=JSON.parse('{"dismiss":"Odbaci"}');var Jp;Jp=JSON.parse('{"dismiss":"Avvisa"}');var Hp;Hp=JSON.parse('{"dismiss":"Kapat"}');var $p;$p=JSON.parse('{"dismiss":"Скасувати"}');var Xp;Xp=JSON.parse('{"dismiss":"取消"}');var Yp;Yp=JSON.parse('{"dismiss":"關閉"}');const Zp={"ar-AE":ou(bp).default,"bg-BG":ou(yp).default,"cs-CZ":ou(xp).default,"da-DK":ou(wp).default,"de-DE":ou(Sp).default,"el-GR":ou(Ep).default,"en-US":ou(kp).default,"es-ES":ou(Pp).default,"et-EE":ou(Tp).default,"fi-FI":ou(Cp).default,"fr-FR":ou(Op).default,"he-IL":ou(Np).default,"hr-HR":ou(jp).default,"hu-HU":ou(Ap).default,"it-IT":ou(Lp).default,"ja-JP":ou(Fp).default,"ko-KR":ou(Dp).default,"lt-LT":ou(Rp).default,"lv-LV":ou(Ip).default,"nb-NO":ou(Mp).default,"nl-NL":ou(_p).default,"pl-PL":ou(zp).default,"pt-BR":ou(Kp).default,"pt-PT":ou(Vp).default,"ro-RO":ou(Up).default,"ru-RU":ou(Bp).default,"sk-SK":ou(Wp).default,"sl-SI":ou(Gp).default,"sr-SP":ou(qp).default,"sv-SE":ou(Jp).default,"tr-TR":ou(Hp).default,"uk-UA":ou($p).default,"zh-CN":ou(Xp).default,"zh-TW":ou(Yp).default};function Qp(e){let{onDismiss:n}=e,r=di(Zp);return t.createElement(Zs,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let ef=new WeakMap;var tf={display:"block"},nf=N(N([],O(ya),!1),O(wa),!1),rf=h((function(e,t){var n=e.children,r=e.tokens,i=e.fonts,o=e.publicUrl,a=e.router,l=e.font,s=e.monospaceFont,u=k(e,["children","tokens","fonts","publicUrl","router","font","monospaceFont"]),c=oo(u,nf,tf),d=I.jsxs(ba,E({ref:t,className:"root"},Da(u,{eventProps:!0}),{styles:c},{children:[I.jsx(bd,{tokens:r,publicUrl:o,fonts:i,font:l,monospaceFont:s},void 0),I.jsx(vp,{children:n},void 0)]}),void 0);return a?I.jsx(Ri,E({router:a},{children:d}),void 0):d})),of=F((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=o[l])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=i.util.type(s);"Object"!==u||o[a(s)]?"Array"!==u||o[a(s)]||(o[a(s)]=!0,e(s,n,l,o)):(o[a(s)]=!0,e(s,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),l=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:l,code:n.textContent};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return u(i,i.head,e),l(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function l(e,t,n,r,s,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],v=g.inside,m=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var x=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,x+"g")}for(var w=g.pattern||g,S=r.next,E=s;S!==t.tail&&!(d&&E>=d.reach);E+=S.value.length,S=S.next){var k=S.value;if(t.length>e.length)return;if(!(k instanceof o)){var P,T=1;if(b){if(!(P=a(w,E,e,m)))break;var C=P.index,O=P.index+P[0].length,N=E;for(N+=S.value.length;C>=N;)N+=(S=S.next).value.length;if(E=N-=S.value.length,S.value instanceof o)continue;for(var j=S;j!==t.tail&&(N<O||"string"==typeof j.value);j=j.next)T++,N+=j.value.length;T--,k=e.slice(E,N),P.index-=E}else if(!(P=a(w,0,k,m)))continue;C=P.index;var A=P[0],L=k.slice(0,C),F=k.slice(C+A.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(L&&(R=u(t,R,L),E+=L.length),c(t,R,T),S=u(t,R,new o(p,v?i.tokenize(A,v):A,y,A)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};l(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var l="";for(var s in o.attributes)l+=" "+s+'="'+(o.attributes[s]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
32
|
+
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)t.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function q(e){return(q="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})(e)}function J(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function H(e){return e<=1?100*Number(e)+"%":e}function $(e){return 1===e.length?"0"+e:String(e)}function X(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Y(e){return Z(e)/255}function Z(e){return parseInt(e,16)}var Q={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ee(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,l=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Q[e])e=Q[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ie.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ie.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ie.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=ie.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ie.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=ie.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ie.hex8.exec(e))return{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),a:Y(n[4]),format:t?"name":"hex8"};if(n=ie.hex6.exec(e))return{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),format:t?"name":"hex"};if(n=ie.hex4.exec(e))return{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),a:Y(n[4]+n[4]),format:t?"name":"hex8"};if(n=ie.hex3.exec(e))return{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*J(t,255),g:255*J(n,255),b:255*J(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(a=H(e.s),l=H(e.v),i=function(e,t,n){e=6*J(e,360),t=J(t,100),n=J(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,o,o,l,n][s],g:255*[l,n,n,a,o,o][s],b:255*[o,o,l,n,n,a][s]}}(e.h,a,l),u=!0,c="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(a=H(e.s),s=H(e.l),i=function(e,t,n){var r,i,o;if(e=J(e,360),t=J(t,100),n=J(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=X(l,a,e+1/3),i=X(l,a,e),o=X(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var te="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ne="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",re="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",ie={CSS_UNIT:new RegExp(te),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+re),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+re),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+re),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oe(e){return Boolean(ie.CSS_UNIT.exec(String(e)))}var ae=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function le(e){var t=function(e,t,n){e=J(e,255),t=J(t,255),n=J(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=0===r?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4}o/=6}return{h:o,s:s,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function se(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[$(Math.round(e).toString(16)),$(Math.round(t).toString(16)),$(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function ue(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function ce(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function de(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function pe(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function fe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ee(e),i=5;i>0;i-=1){var o=le(r),a=se(ee({h:ce(o,i,!0),s:de(o,i,!0),v:pe(o,i,!0)}));n.push(a)}n.push(se(r));for(var l=1;l<=4;l+=1){var s=le(r),u=se(ee({h:ce(s,l),s:de(s,l),v:pe(s,l)}));n.push(u)}return"dark"===t.theme?ae.map((function(e){var r=e.index,i=e.opacity;return se(ue(ee(t.backgroundColor||"#141414"),ee(n[r]),100*i))})):n}var he={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ge={},ve={};Object.keys(he).forEach((function(e){ge[e]=fe(he[e]),ge[e].primary=ge[e][5],ve[e]=fe(he[e],{theme:"dark",backgroundColor:"#141414"}),ve[e].primary=ve[e][5]})),ge.red,ge.volcano,ge.gold,ge.orange,ge.yellow,ge.lime,ge.green,ge.cyan,ge.blue,ge.geekblue,ge.purple,ge.magenta,ge.grey;var me={};function be(e,t){}function ye(e,t){!function(e,t,n){t||me[n]||(e(!1,n),me[n]=!0)}(be,e,t)}function xe(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function we(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!xe())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=we(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var Ee=new Map;function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=we(n);if(!Ee.has(r)){var i=Se("",n),o=i.parentNode;Ee.set(r,o),o.removeChild(i)}var a=Array.from(Ee.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(a){var l,s,u;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&a.nonce!==(null===(s=n.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=Se(e,n);return c["rc-util-key"]=t,c}function Pe(e){return"object"===q(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===q(e.icon)||"function"==typeof e.icon)}function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function Ce(e,n,r){return r?t.createElement(e.tag,K(K({key:n},Te(e.attrs)),r),(e.children||[]).map((function(t,r){return Ce(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,K({key:n},Te(e.attrs)),(e.children||[]).map((function(t,r){return Ce(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Oe(e){return fe(e)[0]}function Ne(e){return e?Array.isArray(e)?e:[e]:[]}var je="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ae=["icon","className","onClick","style","primaryColor","secondaryColor"],Le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Fe=function(e){var t,n,o=e.icon,a=e.className,l=e.onClick,s=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Ae),p=Le;if(u&&(p={primaryColor:u,secondaryColor:c||Oe(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je,t=r(M).csp;i((function(){ke(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=Pe(o),n="icon should be icon definiton, but got ".concat(o),ye(t,"[@ant-design/icons] ".concat(n)),!Pe(o))return null;var f=o;return f&&"function"==typeof f.icon&&(f=K(K({},f),{},{icon:f.icon(p.primaryColor,p.secondaryColor)})),Ce(f.icon,"svg-".concat(f.name),K({className:a,onClick:l,style:s,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};Fe.displayName="IconReact",Fe.getTwoToneColors=function(){return K({},Le)},Fe.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Le.primaryColor=t,Le.secondaryColor=n||Oe(t),Le.calculated=!!n};var De=Fe;function Re(e){var t=U(Ne(e),2),n=t[0],r=t[1];return De.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ie=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Re("#1890ff");var Me=e.forwardRef((function(t,n){var r,i=t.className,o=t.icon,a=t.spin,l=t.rotate,s=t.tabIndex,u=t.onClick,c=t.twoToneColor,d=W(t,Ie),p=e.useContext(M).prefixCls,f=void 0===p?"anticon":p,h=G(f,(_(r={},"".concat(f,"-").concat(o.name),!!o.name),_(r,"".concat(f,"-spin"),!!a||"loading"===o.name),r),i),g=s;void 0===g&&u&&(g=-1);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=U(Ne(c),2),b=m[0],y=m[1];return e.createElement("span",K(K({role:"img","aria-label":o.name},d),{},{ref:n,tabIndex:g,onClick:u,className:h}),e.createElement(De,{icon:o,primaryColor:b,secondaryColor:y,style:v}))}));Me.displayName="AntdIcon",Me.getTwoToneColor=function(){var e=De.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Me.setTwoToneColor=Re;var _e=Me,ze={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ke=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:ze}))};Ke.displayName="CaretDownOutlined";var Ve=e.forwardRef(Ke),Ue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Be=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ue}))};Be.displayName="CaretUpOutlined";var We=e.forwardRef(Be),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},qe=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ge}))};qe.displayName="CheckOutlined";var Je=e.forwardRef(qe),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},$e=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:He}))};$e.displayName="CloseOutlined";var Xe=e.forwardRef($e),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Ze=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ye}))};Ze.displayName="CopyOutlined";var Qe=e.forwardRef(Ze),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 804a64 64 0 10128 0 64 64 0 10-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"exclamation",theme:"outlined"},tt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:et}))};tt.displayName="ExclamationOutlined";var nt=e.forwardRef(tt),rt={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"},it=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:rt}))};it.displayName="EyeInvisibleOutlined";var ot=e.forwardRef(it),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},lt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:at}))};lt.displayName="EyeOutlined";var st=e.forwardRef(lt),ut={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"},ct=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:ut}))};ct.displayName="FileOutlined";var dt=e.forwardRef(ct),pt={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-32z"}}]},name:"folder",theme:"filled"},ft=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:pt}))};ft.displayName="FolderFilled";var ht=e.forwardRef(ft),gt={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-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"}}]},name:"folder-open",theme:"filled"},vt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:gt}))};vt.displayName="FolderOpenFilled";var mt=e.forwardRef(vt),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 224a64 64 0 10128 0 64 64 0 10-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"}}]},name:"info",theme:"outlined"},yt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:bt}))};yt.displayName="InfoOutlined";var xt=e.forwardRef(yt),wt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},St=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:wt}))};St.displayName="LoadingOutlined";var Et=e.forwardRef(St),kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Pt=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:kt}))};Pt.displayName="SearchOutlined";var Tt=e.forwardRef(Pt),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},Ot=function(t,n){return e.createElement(_e,K(K({},t),{},{ref:n,icon:Ct}))};Ot.displayName="WarningOutlined";var Nt=e.forwardRef(Ot);function jt(e,t,n){let[r,i]=o(e||t),s=a(void 0!==e),u=s.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),s.current=c;let p=l((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let a=function(e){if(n&&!Object.is(d.current,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,...r)}c||(d.current=e)};if("function"==typeof e){i((function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let l=e(c?d.current:t,...i);return a(l,...r),c?t:l}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function At(e,t,n,r){let i=(e-(isNaN(t)?0:t))%r,o=2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i;isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(n/r)*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor((n-t)/r)*r);let a=r.toString(),l=a.indexOf("."),s=l>=0?a.length-l:0;if(s>0){let e=Math.pow(10,s);o=Math.round(o*e)/e}return o}function Lt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Lt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ft(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Lt(e))&&(r&&(r+=" "),r+=t);return r}function Dt(){return(Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Rt={prefix:String(Math.round(1e10*Math.random())),current:0},It=t.createContext(Rt);let Mt=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function _t(){let e=r(It)!==Rt,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const zt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Kt=new Map;function Vt(e){let t=a(!0);t.current=!0;let[n,l]=o(e),u=a(null),c=function(e){let t=r(It);return t!==Rt||Mt||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),s((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}(n),d=e=>{t.current?u.current=e:l(e)};return Kt.set(c,d),zt((()=>{t.current=!1}),[d]),zt((()=>{let e=c;return()=>{Kt.delete(e)}}),[c]),i((()=>{let e=u.current;e&&(l(e),u.current=null)}),[l,d]),c}function Ut(e,t){if(e===t)return e;let n=Kt.get(e);if(n)return n(t),t;let r=Kt.get(t);return r?(r(e),e):t}function Bt(){let e=Vt(),[t,n]=o(e);return zt((()=>{Kt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(let e of t)"function"==typeof e&&e(...arguments)}}function Gt(){let e=Dt({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){let n=t<0||arguments.length<=t?void 0:arguments[t];for(let t in n){let r=e[t],i=n[t];"function"==typeof r&&"function"==typeof i&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90?e[t]=Wt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=Ut(r,i):e[t]=void 0!==i?i:r:e[t]=Ft(r,i)}}return e}const qt=new Set(["id"]),Jt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ht=/^(data-.*)$/;function $t(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(qt.has(t)||n&&Jt.has(t)||null!=r&&r.has(t)||Ht.test(t))&&(i[t]=e[t]);return i}function Xt(e){if(function(){if(null==Yt){Yt=!1;try{document.createElement("div").focus({get preventScroll(){return Yt=!0,!0}})}catch(e){}}return Yt}())e.focus({preventScroll:!0});else{let t=function(e){var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let Yt=null;let Zt=new Map,Qt=new Set;function en(){if("undefined"==typeof window)return;let e=t=>{let n=Zt.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Zt.delete(t.target)),0===Zt.size)){for(let e of Qt)e();Qt.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Zt.get(t.target);n||(n=new Set,Zt.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function tn(e){requestAnimationFrame((()=>{0===Zt.size?e():Qt.add(e)}))}function nn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Vt(n),i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function rn(e,t){zt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function on(e){for(;e&&!an(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function an(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?en():document.addEventListener("DOMContentLoaded",en));let ln="undefined"!=typeof window&&window.visualViewport;function sn(){let[e,t]=o((()=>un()));return i((()=>{let e=()=>{t((e=>{let t=un();return t.width===e.width&&t.height===e.height?e:t}))};return ln?ln.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ln?ln.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function un(){return{width:(null==ln?void 0:ln.width)||window.innerWidth,height:(null==ln?void 0:ln.height)||window.innerHeight}}function cn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function dn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function pn(){return dn(/^Mac/)}function fn(){return dn(/^iPhone/)}function hn(){return fn()||dn(/^iPad/)||pn()&&navigator.maxTouchPoints>1}function gn(){return pn()||hn()}function vn(){return cn(/AppleWebKit/)&&!cn(/Chrome/)}function mn(e,t,n,r){let o=a(n);o.current=n;let l=null==n;i((()=>{if(l)return;let n=e.current,i=e=>o.current.call(this,e);return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,l])}let bn=new Map,yn=!1;try{yn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let xn=!1;try{xn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const wn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Sn{constructor(e,t){void 0===t&&(t={}),this.numberFormatter=void 0,this.options=void 0,this.numberFormatter=function(e,t){void 0===t&&(t={});let{numberingSystem:n}=t;n&&-1===e.indexOf("-u-nu-")&&(e=e+"-u-nu-"+n);if("unit"===t.style&&!xn){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(null==(r=wn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=Dt({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(bn.has(i))return bn.get(i);let o=new Intl.NumberFormat(e,t);return bn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=yn||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!xn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=wn[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return yn||null==this.options.signDisplay||(e=Dt({},e,{signDisplay:this.options.signDisplay})),xn||"unit"!==this.options.style||(e=Dt({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const En=new RegExp("^.*\\(.*\\).*$"),kn=["latn","arab","hanidec"];class Pn{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return Cn(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Cn(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Cn(this.locale,this.options,e).options.numberingSystem}}const Tn=new Map;function Cn(e,t,n){let r=On(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of kn)if(i!==r.options.numberingSystem){let r=On(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function On(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Tn.get(n);return r||(r=new Nn(e,t),Tn.set(n,r)),r}class Nn{constructor(e,t){void 0===t&&(t={}),this.formatter=void 0,this.options=void 0,this.symbols=void 0,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n){var r,i,o,a,l;let s=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=s.find((e=>"minusSign"===e.type)))?void 0:i.value)?r:"-",p=null==(o=u.find((e=>"plusSign"===e.type)))?void 0:o.value;p||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(p="+");let f=null==(a=s.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(l=s.find((e=>"group"===e.type)))?void 0:l.value,g=s.filter((e=>!jn.has(e.type))).map((e=>Ln(e.value))),v=c.filter((e=>!jn.has(e.type))).map((e=>Ln(e.value))),m=[...new Set([...v,...g])].sort(((e,t)=>t.length-e.length)),b=new RegExp(m.join("|")+"|[\\p{White_Space}]","gu"),y=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),x=new Map(y.map(((e,t)=>[e,t]))),w=new RegExp("["+y.join("")+"]","g");return{minusSign:d,plusSign:p,decimal:f,group:h,literals:b,numeral:w,index:e=>String(x.get(e))}}(this.formatter,this.options,t)}parse(e){let t=this.sanitize(e);t=An(t,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=t?+t:NaN;if(isNaN(n))return NaN;var r;("accounting"===this.options.currencySign&&En.test(e)&&(n*=-1),"percent"===this.options.style)&&(n/=100,n=+n.toFixed((null!=(r=this.options.maximumFractionDigits)?r:0)+2));return n}sanitize(e){return e=(e=e.replace(this.symbols.literals,"")).replace("-",this.symbols.minusSign),"arab"===this.options.numberingSystem&&(e=An(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=An(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),(e=this.sanitize(e)).startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!e.startsWith(this.symbols.group)&&0===(e=An(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const jn=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function An(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Ln(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Fn,Dn,Rn;function In(e){return e.type===Dn.literal}function Mn(e){return e.type===Dn.argument}function _n(e){return e.type===Dn.number}function zn(e){return e.type===Dn.date}function Kn(e){return e.type===Dn.time}function Vn(e){return e.type===Dn.select}function Un(e){return e.type===Dn.plural}function Bn(e){return e.type===Dn.pound}function Wn(e){return e.type===Dn.tag}function Gn(e){return!(!e||"object"!=typeof e||e.type!==Rn.number)}function qn(e){return!(!e||"object"!=typeof e||e.type!==Rn.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Fn||(Fn={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Dn||(Dn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Rn||(Rn={}));var Jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $n(e){var t={};return e.replace(Hn,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Xn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Yn,Zn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qn=/^(@+)?(\+|#+)?$/g,er=/(\*)(0+)|(#+)(0+)|(0+)/g,tr=/^(0+)$/;function nr(e){var t={};return e.replace(Qn,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function rr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ir(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!tr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function or(e){var t=rr(e);return t||{}}function ar(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=E(E(E({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return E(E({},e),or(t))}),{}));continue;case"engineering":t=E(E(E({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return E(E({},e),or(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(er,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(tr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Zn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Zn,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=E(E({},t),nr(i.options[0])))}else if(Qn.test(i.stem))t=E(E({},t),nr(i.stem));else{var o=rr(i.stem);o&&(t=E(E({},t),o));var a=ir(i.stem);a&&(t=E(E({},t),a))}}return t}var lr=new RegExp("^"+Jn.source+"*"),sr=new RegExp(Jn.source+"*$");function ur(e,t){return{start:e,end:t}}var cr=!!String.prototype.startsWith,dr=!!String.fromCodePoint,pr=!!Object.fromEntries,fr=!!String.prototype.codePointAt,hr=!!String.prototype.trimStart,gr=!!String.prototype.trimEnd,vr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mr=!0;try{mr="a"===(null===(Yn=Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yn?void 0:Yn[0])}catch(e){mr=!1}var br,yr=cr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},xr=dr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},wr=pr?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Sr=fr?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Er=hr?function(e){return e.trimStart()}:function(e){return e.replace(lr,"")},kr=gr?function(e){return e.trimEnd()}:function(e){return e.replace(sr,"")};function Pr(e,t){return new RegExp(e,t)}if(mr){var Tr=Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");br=function(e,t){var n;return Tr.lastIndex=t,null!==(n=Tr.exec(e)[1])&&void 0!==n?n:""}}else br=function(e,t){for(var n=[];;){var r=Sr(e,t);if(void 0===r||Nr(r)||jr(r))break;n.push(r),t+=r>=65536?2:1}return xr.apply(void 0,n)};var Cr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Fn.UNMATCHED_CLOSING_TAG,ur(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Or(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Dn.pound,location:ur(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Dn.literal,value:"<"+r+"/>",location:ur(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Or(this.char()))return this.error(Fn.INVALID_TAG,ur(a,this.clonePosition()));var l=this.clonePosition();return r!==this.parseTagName()?this.error(Fn.UNMATCHED_CLOSING_TAG,ur(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Dn.tag,value:r,children:o,location:ur(n,this.clonePosition())},err:null}:this.error(Fn.INVALID_TAG,ur(a,this.clonePosition())))}return this.error(Fn.UNCLOSED_TAG,ur(n,this.clonePosition()))}return this.error(Fn.INVALID_TAG,ur(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var l=ur(n,this.clonePosition());return{val:{type:Dn.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Or(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return xr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),xr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Fn.EMPTY_ARGUMENT,ur(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Fn.MALFORMED_ARGUMENT,ur(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Dn.argument,value:r,location:ur(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Fn.MALFORMED_ARGUMENT,ur(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=br(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ur(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(Fn.EXPECT_ARGUMENT_TYPE,ur(o,l));case"number":case"date":case"time":this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(p=kr(v.val)).length)return this.error(Fn.EXPECT_ARGUMENT_STYLE,ur(this.clonePosition(),this.clonePosition()));s={style:p,styleLocation:ur(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=ur(r,this.clonePosition());if(s&&yr(null==s?void 0:s.style,"::",0)){var d=Er(s.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,s.styleLocation)).err?v:{val:{type:Dn.number,value:n,location:c,style:v.val},err:null};if(0===d.length)return this.error(Fn.EXPECT_DATE_TIME_SKELETON,c);var p={type:Rn.dateTime,pattern:d,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?$n(d):{}};return{val:{type:"date"===a?Dn.date:Dn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Dn.number:"date"===a?Dn.date:Dn.time,value:n,location:c,style:null!==(i=null==s?void 0:s.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Fn.EXPECT_SELECT_ARGUMENT_OPTIONS,ur(f,E({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Fn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ur(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(Fn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),h=this.parseIdentifierIfPossible(),g=v.val}var m,b=this.tryParsePluralOrSelectOptions(e,a,t,h);if(b.err)return b;if((m=this.tryParseArgumentClose(r)).err)return m;var y=ur(r,this.clonePosition());return"select"===a?{val:{type:Dn.select,value:n,options:wr(b.val),location:y},err:null}:{val:{type:Dn.plural,value:n,options:wr(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(Fn.INVALID_ARGUMENT_TYPE,ur(o,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Fn.EXPECT_ARGUMENT_CLOSING_BRACE,ur(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Fn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ur(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Xn).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),l=0,s=a;l<s.length;l++)if(0===s[l].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Fn.INVALID_NUMBER_SKELETON,t)}return{val:{type:Rn.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ar(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],l=new Set,s=r.value,u=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=ur(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(l.has(s))return this.error("select"===t?Fn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Fn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===s&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Fn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ur(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;a.push([s,{value:f.val,location:ur(p,this.clonePosition())}]),l.add(s),this.bumpSpace(),s=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?Fn.EXPECT_SELECT_ARGUMENT_SELECTOR:Fn.EXPECT_PLURAL_ARGUMENT_SELECTOR,ur(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Fn.MISSING_OTHER_CLAUSE,ur(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var l=ur(r,this.clonePosition());return i?vr(o*=n)?{val:o,err:null}:this.error(t,l):this.error(e,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Sr(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(yr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Or(e){return e>=97&&e<=122||e>=65&&e<=90}function Nr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function jr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Ar(e){e.forEach((function(e){if(delete e.location,Vn(e)||Un(e))for(var t in e.options)delete e.options[t].location,Ar(e.options[t].value);else _n(e)&&Gn(e.style)||(zn(e)||Kn(e))&&qn(e.style)?delete e.style.location:Wn(e)&&Ar(e.children)}))}function Lr(e,t){void 0===t&&(t={}),t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Cr(e,t).parse();if(n.err){var r=SyntaxError(Fn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Ar(n.val),n.val}function Fr(e,t){var n=t&&t.cache?t.cache:Vr,r=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:Mr)(e,{cache:n,serializer:r})}function Dr(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function Rr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function Ir(e,t,n,r,i){return n.bind(t,e,r,i)}function Mr(e,t){return Ir(e,this,1===e.length?Dr:Rr,t.cache.create(),t.serializer)}var _r=function(){return JSON.stringify(arguments)};function zr(){this.cache=Object.create(null)}zr.prototype.get=function(e){return this.cache[e]},zr.prototype.set=function(e,t){this.cache[e]=t};var Kr,Vr={create:function(){return new zr}},Ur={variadic:function(e,t){return Ir(e,this,Rr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ir(e,this,Dr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Kr||(Kr={}));var Br,Wr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return S(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Gr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Kr.INVALID_VALUE,i)||this}return S(t,e),t}(Wr),qr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Kr.INVALID_VALUE,r)||this}return S(t,e),t}(Wr),Jr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Kr.MISSING_VALUE,n)||this}return S(t,e),t}(Wr);function Hr(e){return"function"==typeof e}function $r(e,t,n,r,i,o,a){if(1===e.length&&In(e[0]))return[{type:Br.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(In(c))l.push({type:Br.literal,value:c.value});else if(Bn(c))"number"==typeof o&&l.push({type:Br.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Jr(d,a);var p=i[d];if(Mn(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?Br.literal:Br.object,value:p});else if(zn(c)){var f="string"==typeof c.style?r.date[c.style]:qn(c.style)?c.style.parsedOptions:void 0;l.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Kn(c)){f="string"==typeof c.style?r.time[c.style]:qn(c.style)?c.style.parsedOptions:void 0;l.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(_n(c)){(f="string"==typeof c.style?r.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),l.push({type:Br.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Wn(c)){var h=c.children,g=c.value,v=i[g];if(!Hr(v))throw new qr(g,"function",a);var m=v($r(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),l.push.apply(l,m.map((function(e){return{type:"string"==typeof e?Br.literal:Br.object,value:e}})))}if(Vn(c)){if(!(b=c.options[p]||c.options.other))throw new Gr(c.value,p,Object.keys(c.options),a);l.push.apply(l,$r(b.value,t,n,r,i))}else if(Un(c)){var b;if(!(b=c.options["="+p])){if(!Intl.PluralRules)throw new Wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Kr.MISSING_INTL_API,a);var y=n.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[y]||c.options.other}if(!b)throw new Gr(c.value,p,Object.keys(c.options),a);l.push.apply(l,$r(b.value,t,n,r,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Br.literal&&t.type===Br.literal?n.value+=t.value:e.push(t),e}),[])}(l)}function Xr(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?E(E(E({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=E(E({},i[t]),o[t]||{}),e}),{})):i),n}),E({},e)):e}function Yr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Br||(Br={}));var Zr=function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Br.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return $r(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Xr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.number),strategy:Ur.variadic}),getDateTimeFormat:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.dateTime),strategy:Ur.variadic}),getPluralRules:Fr((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,N([void 0],t)))}),{cache:Yr(o.pluralRules),strategy:Ur.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=Lr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class Qr{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=Dt({},e),this.defaultLocale=t}getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n){void 0===n&&(n="en-US");if(t[e])return t[e];let r=function(e){if(Intl.Locale)return new Intl.Locale(e).language;return e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error("Could not find intl message "+e+" in "+t+" locale");return r}}class ei{constructor(e,t){this.locale=void 0,this.messages=void 0,this.cache=void 0,this.locale=e,this.messages=t,this.cache={}}format(e,t){let n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error("Could not find intl message "+e+" in "+this.locale+" locale");n=new Zr(t,this.locale),this.cache[e]=n}return n.format(t)}}const ti=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ni=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ri(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return ti.has(t)}let t=e.split("-")[0];return ni.has(t)}function ii(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ri(e)?"rtl":"ltr"}}let oi=ii(),ai=new Set;function li(){oi=ii();for(let e of ai)e(oi)}const si=t.createContext(null);function ui(){let e=function(){let e=_t(),[t,n]=o(oi);return i((()=>(0===ai.size&&window.addEventListener("languagechange",li),ai.add(n),()=>{ai.delete(n),0===ai.size&&window.removeEventListener("languagechange",li)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(si)||e}const ci=new WeakMap;function di(e){let{locale:t}=ui(),n=s((()=>function(e){let t=ci.get(e);return t||(t=new Qr(e),ci.set(e,t)),t}(e)),[e]),r=s((()=>new ei(t,n)),[t,n]);return l(((e,t)=>r.format(e,t)),[r])}let pi=new Map;function fi(e){let{locale:t}=ui(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(pi.has(n))return pi.get(n);let r=new Intl.Collator(t,e);return pi.set(n,r),r}function hi(e){return{UNSAFE_getDOMNode:()=>e.current}}function gi(e,t){return void 0===t&&(t=e),Dt({},hi(e),{focus(){t.current&&t.current.focus()}})}function vi(e){let t=a(null);return c(e,(()=>hi(t))),t}function mi(e,t){let n=a(null);return c(e,(()=>gi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function bi(e,t){return n=>"rtl"===n?t:e}Dt({},{margin:["margin",Si],marginStart:[bi("marginLeft","marginRight"),Si],marginEnd:[bi("marginRight","marginLeft"),Si],marginTop:["marginTop",Si],marginBottom:["marginBottom",Si],marginX:[["marginLeft","marginRight"],Si],marginY:[["marginTop","marginBottom"],Si],width:["width",Si],height:["height",Si],minWidth:["minWidth",Si],minHeight:["minHeight",Si],maxWidth:["maxWidth",Si],maxHeight:["maxHeight",Si],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Oi],justifySelf:["justifySelf",Oi],position:["position",Ci],zIndex:["zIndex",Ci],top:["top",Si],bottom:["bottom",Si],start:[bi("left","right"),Si],end:[bi("right","left"),Si],left:["left",Si],right:["right",Si],order:["order",Ci],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Oi],flexShrink:["flexShrink",Oi],flexBasis:["flexBasis",Oi],gridArea:["gridArea",Oi],gridColumn:["gridColumn",Oi],gridColumnEnd:["gridColumnEnd",Oi],gridColumnStart:["gridColumnStart",Oi],gridRow:["gridRow",Oi],gridRowEnd:["gridRowEnd",Oi],gridRowStart:["gridRowStart",Oi]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+Ei(e,"background")+")"}],borderWidth:["borderWidth",Pi],borderStartWidth:[bi("borderLeftWidth","borderRightWidth"),Pi],borderEndWidth:[bi("borderRightWidth","borderLeftWidth"),Pi],borderLeftWidth:["borderLeftWidth",Pi],borderRightWidth:["borderRightWidth",Pi],borderTopWidth:["borderTopWidth",Pi],borderBottomWidth:["borderBottomWidth",Pi],borderXWidth:[["borderLeftWidth","borderRightWidth"],Pi],borderYWidth:[["borderTopWidth","borderBottomWidth"],Pi],borderColor:["borderColor",ki],borderStartColor:[bi("borderLeftColor","borderRightColor"),ki],borderEndColor:[bi("borderRightColor","borderLeftColor"),ki],borderLeftColor:["borderLeftColor",ki],borderRightColor:["borderRightColor",ki],borderTopColor:["borderTopColor",ki],borderBottomColor:["borderBottomColor",ki],borderXColor:[["borderLeftColor","borderRightColor"],ki],borderYColor:[["borderTopColor","borderBottomColor"],ki],borderRadius:["borderRadius",Ti],borderTopStartRadius:[bi("borderTopLeftRadius","borderTopRightRadius"),Ti],borderTopEndRadius:[bi("borderTopRightRadius","borderTopLeftRadius"),Ti],borderBottomStartRadius:[bi("borderBottomLeftRadius","borderBottomRightRadius"),Ti],borderBottomEndRadius:[bi("borderBottomRightRadius","borderBottomLeftRadius"),Ti],borderTopLeftRadius:["borderTopLeftRadius",Ti],borderTopRightRadius:["borderTopRightRadius",Ti],borderBottomLeftRadius:["borderBottomLeftRadius",Ti],borderBottomRightRadius:["borderBottomRightRadius",Ti],padding:["padding",Si],paddingStart:[bi("paddingLeft","paddingRight"),Si],paddingEnd:[bi("paddingRight","paddingLeft"),Si],paddingLeft:["paddingLeft",Si],paddingRight:["paddingRight",Si],paddingTop:["paddingTop",Si],paddingBottom:["paddingBottom",Si],paddingX:[["paddingLeft","paddingRight"],Si],paddingY:[["paddingTop","paddingBottom"],Si],overflow:["overflow",Oi]});const yi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,xi=/^\s*\w+\(/,wi=/(static-)?size-\d+|single-line-(height|width)/g;function Si(e){return"number"==typeof e?e+"px":yi.test(e)?e:xi.test(e)?e.replace(wi,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function Ei(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function ki(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+Ei(e,"border")+")"}function Pi(e){return"var(--spectrum-alias-border-size-"+e+")"}function Ti(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Ci(e){return e}function Oi(e){return e}var Ni=n({});function ji(e){var t=e.children,n=k(e,["children"]),i=Object.assign({},r(Ni));return Object.keys(n).forEach((function(e){i[e]?i[e]=N(N([],O(i[e]),!1),[n[e]],!1):i[e]=[n[e]]})),I.jsx(Ni.Provider,E({value:i},{children:t}),void 0)}function Ai(e,t){var n=r(Ni),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var Li=n([980]);function Fi(e){var t=e.value,n=e.children;return I.jsx(Li.Provider,E({value:t},{children:n}),void 0)}var Di=n({breakpoints:[980]});function Ri(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,l=e.isRequired,s=e.validationState,u=e.router,c=e.styles,d=e.ref;c&&(n=I.jsx(ji,E({},c,{children:n}),void 0)),t&&(n=I.jsx(Fi,E({value:t},{children:n}),void 0));var p=r(Di),f={ref:d,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:l,validationState:s,router:u},h=Object.assign({},p);return Object.keys(f).forEach((function(e){null!=f[e]&&(h[e]=f[e])})),I.jsx(Di.Provider,E({value:h},{children:n}),void 0)}function Ii(e){return E(E({},r(Di)),e)}var Mi={};var _i=[!1,"n","no","false"],zi={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",wh:"var(--window-height)",sp:function(e){return"(("+e+" * var(--column-width)) + ("+(e-1)+" * var(--column-gap)))"}},Ki=["top","right","bottom","left"],Vi=["rgb","rgba"],Ui=["auto","max-content","min-content","none","subgrid","initial"],Bi=/("[^"]*")|('[^']*')|([a-z]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,Wi=new Map,Gi=new Map,qi=new Map,Ji=[Gi,Wi,qi],Hi=/calc\((\d*)\)/gi;function $i(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function Xi(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Ji[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,l="",s=-1,u=0,c="",d="",p="",f="",h=void 0;for(Bi.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=Bi.exec(e);){var g=O(h,13),v=g[1],m=g[2],b=g[3],y=g[4],x=g[5],w=g[6],S=g[7],E=g[8],k=g[9],P=g[10],T=g[11],C=g[12];if(m||v)l+=(m||v)+" ";else if(b)p=b.slice(0,-1),l+=b,u++;else if(y)d=2===t?y:Yi(y,!1).color;else if(w)u||Ui.includes(w)?l+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~s||(s=u,l+="calc"),u++),")"===T&&u&&(l=l.trim(),u>0&&u--,u===s&&(s=-1)),")"!==T||u||(f=p,p=""),l+=T+(")"===T?" ":"");else if(P){if(!~s&&a)if(l){if(l.includes("(")){var N=l.lastIndexOf("(");l=l.slice(0,N)+"(calc("+l.slice(N+1),s=u,u++}}else if(o.length){c=c.slice(0,c.length-o[o.length-1].length-1);var j=o.splice(o.length-1,1)[0];i.splice(o.length-1,1),j&&(j.startsWith("calc(")&&(j=j.slice(4)),s=u,u++,l="calc(("+j+") ")}l+=P+" "}else if(S)if(k&&zi[k]){var A=ro(E,k);!~s&&A.startsWith("(")&&(l+="calc"),l+=A+" "}else l+=S+" ";else x?(x=x.replace("@","--"),l+="var"!==p?"var("+x+") ":x+" "):C&&(~s?(s=-1,u--,l=l.trim()+"), "):l=l.trim()+", ");if(l&&!u){var L=to(l);Vi.includes(f)?d=L:L.startsWith("color(")?d=Yi(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L+" "),l=""}}if(u)(L=to(""+l.trim()+")".repeat(u))).startsWith("color(")?d=Yi(L=L.slice(6,-1)).color:(","!==L&&(o.push(L),i.push(L)),c+=L);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function Yi(e,t){if(void 0===t&&(t=!1),!(e=e.trim()))return{};if(e.startsWith("#")){var n=(e=e.slice(1)).split("."),r=100;n.length>1&&(r=1===n[1].length?10*Number(n[1]):Number(n[1]),Number.isNaN(r)&&(r=100));var i=n[0];return"current"===i?"currentColor":r>100?r=100:r<0&&(r=0),{color:100!==r?Zi(i,Math.round(r)/100):(o=i,a=null,l=Qi("#"+i),s=l?", "+l:"","var(--"+o+"-color"+(a?", var(--"+a+s+")":s)+")"),name:i,opacity:null!=r?r:100}}var o,a,l,s,u,c,d=Xi(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:Qi(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:Qi(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:Zi(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function Zi(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function Qi(e,t){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return"#"+t+t+n+n+r+r})).substring(1).match(/.{2}/g).map((function(e,t){return parseInt(e,16)*(3===t?1/255:1)}));if(3===t.length)return"rgb("+t.join(", ")+")";if(4===t.length)return"rgba("+t.join(", ")+")";return null}(e):null}function eo(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function to(e){return e.trim().replace(Hi,(function(e,t){return t}))}function no(e,t){return e.filter((function(e){return t.includes(e)}))}function ro(e,t){var n=zi[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function io(e){return!e&&0!==e}function oo(e,t,n,r,i){void 0===t&&(t=[]),void 0===i&&(i=[]);var o=E(E({},n),e.styles);return Object.keys(e).forEach((function(n){var a=r&&r[n]||n,l=e[n];i&&i.includes(n)||t.includes(a)&&(null!=l&&!1!==l?o[a]=l:a in o&&delete o[a])}),{}),o}function ao(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+ao(n,t)}),"");var n=e.$,r=e.css,i=k(e,["$","css"]),o=Object.keys(i).reduce((function(e,t){var n=i[t];return Array.isArray(n)?e+n.reduce((function(e,n){return n?e+(t+":")+n+";\n":e}),""):n?""+e+t+":"+n+";\n":e}),"");return r&&(o=r+"\n"+o),o?Array.isArray(n)?(t?t+"{\n":"")+n.reduce((function(e,t){return e+(t?"&"+t+"{\n":"")+o+(t?"}\n":"")}),"")+(t?"}\n":""):(t?t+"{\n":"")+(n?"&"+n+"{\n":"")+o+(n?"}\n":"")+(t?"}\n":""):""}function lo(e,t){void 0===t&&(t=1e3);var n=go((function(t){return ao(e(t))}),t),r=go((function(e){if(null==e||!1===e)return null;var t,r,i,o=function(e,t){var n=t||Object.keys(e);if(!n.length)return[];var r={},i=new Set;n.forEach((function(t){r[t]=function(e){if("object"!=typeof e||!e)return{states:[{model:null,mods:[],value:e}],mods:[]};var t,n=[];Object.keys(e).forEach((function(t){var r=po(t);r.value=e[t],n.push(r)})),n.reverse();var r=n.reduce((function(e,n){return n.mods.length?n.mods.forEach((function(t){e.includes(t)||e.push(t)})):t=n,e}),[]);t||n.push({mods:[],notMods:r,value:!0});return{states:n,mods:r}}(e[t]),r[t].mods.forEach(i.add,i)}));var o=Array.from(i),a=[];return function(e,t){var n=t?[[]]:[];if(e.length<2)return n.concat([e]);var r=function(e,t){void 0===e&&(e=[]);for(var i=0;i<t.length;i++)n.push(N(N([],O(e),!1),[t[i]],!1)),r(N(N([],O(e),!1),[t[i]],!1),t.slice(i+1))};return r([],e),n.filter((function(e){var t=[];return!e.find((function(e){var n=e.match(/\[(.+?)[=\]]/);return!(!n||!t.includes(n[1])&&(t.push(n[1]),1))}))}))}(o,!0).forEach((function(e){a.push({mods:e,notMods:o.filter((function(t){return!e.includes(t)})),value:n.reduce((function(t,n){return t[n]=r[n].states.find((function(t){return ho(t.model,(function(t){return e.includes(t)}))})).value,t}),{})})})),a}(e);return t=o,r=n,i=new Map,t.forEach((function(e){i.get(e.value)||i.set(e.value,r(e.value)),e.value=i.get(e.value)})),function(e,t){return t.reduce((function(t,n){if(!n.value)return"";var r=""+(n.mods||[]).map($i).join("")+(n.notMods||[]).map((function(e){return":not("+$i(e)+")"})).join("");return""+t+e+r+"{\n"+n.value+"}\n"}),"")}("&&",o)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var so=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,uo=["!","&","|","^"];function co(e){return 1===e.length?e[0]:(uo.forEach((function(t){for(var n;-1!==(n=e.indexOf(t));){var r=e[n];"!"===r?e[n+1]&&1!==e[n+1].length?e.splice(n,2,["!",e[n+1]]):e.splice(n,1):e[n-1]&&e[n+1]&&1!==e[n-1].length&&1!==e[n+1].length?e.splice(n-1,3,[r,e[n-1],e[n+1]]):e.splice(n,1)}})),1===e.length?e[0]:e)}var po=go((function(e,t){var n=e.replace(/,/g,"|").match(so);if(!n||!n.length)return{model:null,mods:[],tokens:n,value:t};if(1===n.length)return{model:n[0],mods:n.slice(0),tokens:n,value:t};var r=[],i=[[]],o=i[0],a=0;for(n.forEach((function(e){switch(e){case"(":a++,o=i[a]=[];break;case")":a--,i[a].push(co(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(co(o)),o=i[a];return{tokens:n,mods:r,model:co(i[0]),value:t}}));var fo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function ho(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=fo[e[0]];n||console.warn("nusc: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!ho(r,t):"function"==typeof t?!!t(r):!!t[r],2===e.length)return n(r);var i=e[2];return!!n(r,i="object"==typeof i?!!ho(i,t):"function"==typeof t?!!t(i):!!t[i])}function go(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i){var o="string"==typeof i?i:JSON.stringify(i);return n[o]||(r>t&&(n={},r=0),r++,n[o]=e(i)),n[o]}}function vo(e){var t,n=e.display,r=e.flow,i=e.gap;if(!i)return"";var o=n.includes("grid"),a=n.includes("flex"),l=!!r&&(r.includes("wrap")&&!r.includes("nowrap"));if(o||null!=r||(r=a?"row":"column"),"number"==typeof i&&(i+="px"),i){!0===i&&(i="1.5x");var s=Xi(i).values,u=(i=s.join(" "))&&!o?r.includes("row")?"right":"bottom":"";return i?o?{gap:i}:l?[{"margin-right":"calc(-1 * "+(s[1]||s[0])+")","margin-bottom":"calc(-1 * "+s[0]+")"},{$:"& > *","margin-right":s[1]||s[0],"margin-bottom":s[0]}]:((t={$:"& > *:not(:last-child)"})["margin-"+u]=i,t):""}}function mo(e){var t,n,r=e.display,i=e.flow;return r.includes("grid")?n="grid-auto-flow":r.includes("flex")&&(n="flex-flow"),n?((t={})[n]=i,t):null}vo.__lookupStyles=["display","flow","gap"],mo.__lookupStyles=["display","flow"];var bo={input:[{css:"\n-webkit-appearance: none;\nfont-family: inherit;\nfont-weight: inherit;\nword-spacing: initial;\n-webkit-text-fill-color: currentColor;\nbox-sizing: border-box;\nuser-select: auto;\nresize: none;\ntransition: opacity var(--transition) linear;\n"},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:"\ncaret-color: var(--special-color);\n-webkit-text-fill-color: var(--special-color);\n-webkit-box-shadow: 0 0 0px 9999rem var(--input-color) inset;\nbox-shadow: 0 0 0px 9999rem var(--input-color) inset;\nfont-family: inherit;\nfont-size: inherit;\nline-height: inherit;\n"},{$:"[disabled]",css:"\ncolor: inherit;\nbackground: transparent;\n-webkit-opacity: 1;\n"},{$:"::placeholder",css:"\n-webkit-text-fill-color: var(--local-placeholder-color);\ncolor: var(--local-placeholder-color);\nfilter: saturate(.33);\n"},{$:"::-webkit-search-cancel-button",css:"\ndisplay: none;\n-webkit-appearance: none;\n"},{$:":not([disabled])::placeholder",css:"--local-placeholder-color: var(--placeholder-color, rgba(var(--text-color-rgb), .5));\n"}],button:[{css:"\ntransition: all var(--transition) linear;\nbackground: transparent;\nborder: none;\noutline: none;\nappearance: none;\nposition: relative;\ntouch-action: manipulation;\n-webkit-tap-highlight-color: var(--mark-color);\ntext-decoration: none;\n"}]};function yo(e){var t=e.reset;if(t)return Xi(t,1).mods.reduce((function(e,t){return bo[t]&&e.push.apply(e,N([],O(bo[t]),!1)),e}),[])}function xo(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=Yi(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{color:t}];return r&&i.push([{"--current-color":"var(--"+r+"-color)","--current-color-rgb":"var(--"+r+"-color-rgb)"}]),i}function wo(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=Xi(t).color||t);var n=t.match(/var\(--(.+?)-color/),r="";n&&(r=n[1]);var i=[{"background-color":t}];return r&&i.push([{$:">*","--context-fill-color":"var(--"+r+"-color)","--context-fill-color-rgb":"var(--"+r+"-color-rgb)"}]),i}yo.__lookupStyles=["reset"],xo.__lookupStyles=["color"],wo.__lookupStyles=["fill"];function So(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var Eo=So("stretch")?"stretch":So("fill-available")?"fill-available":So("-webkit-fill-available")?"-webkit-fill-available":So("-moz-fill-available")?"-moz-fill-available":null,ko=["max-content","min-content","fit-content","stretch"];function Po(e){var t="min-"+e,n="max-"+e;return function(r){var i,o,a;if(!r)return"";"number"==typeof r&&(r+="px"),r=String(r);var l=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),s=Xi(r),u=s.mods,c=s.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(ko,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=Eo||("height"===e?"100vh":"100vw"))}));var d=!1;try{for(var p=C(u),f=p.next();!f.done;f=p.next()){switch(f.value){case"min":l[t]=c[0]||"var(--gap)",d=!0;break;case"max":l[n]=c[0]||"100%",d=!0}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return d&&u.length||(2===c.length?(l[t]=c[0],l[n]=c[1]):3===c.length?(l[t]=c[0],l[e]=c[1],l[n]=c[2]):l[e]=c[0]||"auto"),l}}var To=Po("width");function Co(e){var t=e.width;return To(t)}Co.__lookupStyles=["width"];var Oo=Po("height");function No(e){var t=e.height;return Oo(t)}No.__lookupStyles=["height"];var jo="var(--radius)",Ao="var(--leaf-sharp-radius)";function Lo(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=Xi(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[jo]),r.includes("leaf"))i=[i[1]||Ao,i[0]||jo,i[1]||Ao,i[0]||jo];else if(r.includes("backleaf"))i=[i[0]||jo,i[1]||Ao,i[0]||jo,i[1]||Ao];else if(r.length){var o=["0","0","0","0"],a=!1;Ki.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||jo,o[(t+1)%4]=i[0]||jo)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}Lo.__lookupStyles=["radius"];var Fo=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Do(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=Xi(String(t)),r=n.values,i=n.mods,o=n.color,a=no(i,Ki),l=no(i,Fo),s=[r[0]||"var(--border-width)",l[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=s,e}),{}):{border:s}}}function Ro(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=Xi(t),r=n.values,i=n.mods,o=n.color||"var(--shadow-color)";return{"--local-shadow-box-shadow":N(N([i[0]||""],O(r),!1),[o],!1).join(" ")}}function Io(e){var t=e.padding;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Xi(t),r=n.values,i=no(n.mods,Ki);return r.length||(r=["var(--gap)"]),i.length?i.reduce((function(e,t){var n=Ki.indexOf(t);return e["padding-"+t]=r[n]||r[n%2]||r[0],e}),{}):{padding:r.join(" ")}}function Mo(e){var t=e.size;if(!t)return"";var n,r,i,o=Xi(t),a=o.values,l=o.mods;return l.length?(n="var(--"+(l[0]||"default")+"-font-size, inherit)",r="var(--"+(l[1]||l[0]||"default")+"-line-height, inherit)",i="var(--"+(l[2]||l[1]||l[0]||"default")+"-letter-spacing, 0)"):(n=a[0]||"var(--default-font-size, inherit)",r=a[1]||"var(--default-line-height, inherit)",i=a[2]||"var(--default-letter-spacing, 0)"),{"font-size":n,"line-height":r,"letter-spacing":i,"--font-size":n,"--line-height":r,"--letter-spacing":i}}function _o(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,l=e.font;if(!t)return"";!0===t&&(t="");var s=Xi(t).mods[0]||"default",u={};return n||(u["font-size"]=u["--font-size"]="var(--"+s+"-font-size, var(--initial-font-size, inherit))"),r||(u["line-height"]=u["--line-height"]="var(--"+s+"-line-height, var(--initial-line-height, 1.5))"),o||(u["letter-spacing"]=u["--letter-spacing"]="var(--"+s+"-letter-spacing, var(--initial-letter-spacing, 0))"),a||(u["font-weight"]=u["--font-weight"]="var(--"+s+"-font-weight, var(--initial-font-weight, 400))"),i||(u["text-transform"]=u["--text-transform"]="var(--"+s+"-text-transform, var(--initial-text-transform, none))"),l||(u["font-family"]=u["--font-family"]="var(--"+s+"-font-family, var(--font))"),u}function zo(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function Ko(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Xi(t),r=n.values,i=no(n.mods,Ki);return i.length?i.reduce((function(e,t){var n=Ki.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function Vo(e){var t=e.font;if(null==t||!1===t)return null;var n="monospace"===t?"var(--monospace-font)":!0===t?"var(--font)":t+", var(--font)";return{"font-family":n,"--font-family":n}}function Uo(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1bw");var n=Xi(String(t)),r=n.values,i=n.color;return{"--local-outline-box-shadow":(n.mods.includes("inset")?"inset ":"")+"0 0 0 "+(r[0]||"var(--outline-width)")+" "+(i||"var(--outline-color)")}}Do.__lookupStyles=["border"],Ro.__lookupStyles=["shadow"],Io.__lookupStyles=["padding"],Mo.__lookupStyles=["size"],_o.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","font"],zo.__lookupStyles=["fontStyle"],Ko.__lookupStyles=["margin"],Vo.__lookupStyles=["font"],Uo.__lookupStyles=["outline"];var Bo={},Wo=0;function Go(e,t,n){void 0===n&&(n={});var r,i=t,o=Array.from(Array(i.length)).map((function(){return""})),a=JSON.stringify({s:e,r:t}),l="",s=[];return Bo[a]||(++Wo>1e3&&(Wo=0,Bo={}),Object.keys(e).forEach((function(t){var r=n[t];r||(r=[Jo(t)]),r.forEach((function(t){if(!s.find((function(e){return e.handler===t}))){var n=!1,r=t.__lookupStyles.reduce((function(t,r){return t[r]=e[r],Array.isArray(e[r])&&(n=!0),t}),{});s.push({handler:t,styleMap:r,isResponsive:n})}}))})),s.forEach((function(e){var t=e.handler,n=e.styleMap,r=e.isResponsive,a=t.__lookupStyles;if(r){var s=a.reduce((function(e,t){return e[t]=function(e,t){if(null==e)return e;var n=Array.from(Array(t));if("string"==typeof e)return n.map((function(){return e}));if(Array.isArray(e)){for(var r=null,i=0;i<n.length;i++)n[i]=null==e[i]?r:e[i],r=n[i];return n}return[]}(n[t],i.length),e}),{});i.map((function(e,t){var n={};return a.forEach((function(e){null!=s&&null!=s[e]&&(n[e]=s[e][t])})),n})).map(t).forEach((function(e,t){o[t]+=e||""}))}else l+=t(n)||""})),Bo[a]=""+l+(t?(r=o,i.filter((function(e){return e.mediaQuery})).map((function(e,t){return"@media "+e.mediaQuery+" {"+r[t]+"}"})).join("\n")):"")),"outline: none;\n"+Bo[a]}var qo={};function Jo(e,t,n){return qo[e]||(qo[e]=lo((function(r){var i,o,a,l,s,u=r[e];if(null!=u&&!1!==u){var c,d=t||(c=e,c.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))).replace(/^@/,"--");if(!n||"string"==typeof u||(u=n(u))){if("string"==typeof u&&d.startsWith("--")&&d.endsWith("-color")){var p=Qi(u=u.trim()),f=Yi(u),h=f.color,g=f.name;return g&&p?((i={})[d]="var(--"+g+"-color, "+p+")",i[d+"-rgb"]="var(--"+g+"-color-rgb, "+eo(p).join(", ")+")",i):g?((o={})[d]="var(--"+g+"-color)",o[d+"-rgb"]="var(--"+g+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=eo(p).join(", "),a):((l={})[d]=h,l)}var v=Xi(u,1).value;return(s={})[d]=v,s}}})),qo[e].__lookupStyles=[e]),qo[e]}var Ho={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],size:["font-size","line-height"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]};var $o=/([.0-9ms]+)|([a-z0-9-]+\(.+?\))|([a-z0-9-]+)|(,)/gi;function Xo(e){var t=e.transition;if(null!=t&&!io(t)){var n=t.match($o);if(n){var r="",i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=""):r+=" "+e})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e.match($o);if(t){var n=t[0],r=t[1],i=t[2],a=t[3];(Ho[n]||[n]).forEach((function(e){o[e]=[n,i,r,a]}))}})),{transition:Object.entries(o).map((function(e){var t=O(e,2),n=t[0],r=O(t[1],4),i=r[0],o=r[1],a=r[2],l=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(l||"0s")})).join(", ")}}}}Xo.__lookupStyles=["transition"];var Yo={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function Zo(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=Xi(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),l=i[0];(function(e){return null!=e&&!!_i.find((function(t){return e.includes(t)}))})(o)&&(l="0"),l||(l=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var s=Yo[n][a?1:0].replace(/\*/g,l),u=Yo[n][a?0:1].replace(/\*/g,l);return[{$:">:first-child:not(:last-child)","border-radius":s,"--local-radius":s},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":l,"--local-radius":l},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function Qo(e){var t=Qo.__lookupStyles.reduce((function(t,n){return io(e[n])||t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function ea(e){var t=e.styledScrollbar;return null==t?null:t?[{"--local-scrollbar-thumb-color":"var(--scrollbar-thumb-color, rgba(var(--text-color-rgb), .5))","--local-scrollbar-border-color":"var(--scrollbar-border-color, var(--border-width))","--local-scrollbar-bg-color":"var(--scrollbar-bg-color, var(--grey-light-color))"},{$:"::-webkit-scrollbar",width:"calc(var(--gap) * 1.5)",height:"calc(var(--gap) * 1.5)"},{$:"::-webkit-scrollbar-track","background-color":"var(--local-scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--local-scrollbar-thumb-color)","border-radius":"calc(var(--radius) * 1.5)",border:"var(--outline-width) solid transparent","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"transparent"},{"scrollbar-width":"thin","scrollbar-color":"var(--local-scrollbar-bg-color) var(--local-scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}function ta(e){var t=e.display;return{display:e.hide?"none":t}}Zo.__lookupStyles=["groupRadius","flow"],Qo.__lookupStyles=["outline","shadow"],ea.__lookupStyles=["styledScrollbar"],ta.__lookupStyles=["display","hide"];var na=function(e){return"number"==typeof e?"minmax(1px, 1fr) ".repeat(e).trim():null},ra=function(e){return"number"==typeof e?"auto ".repeat(e).trim():null},ia=[Jo("fontSize"),Jo("lineHeight"),Jo("fontWeight"),Jo("letterSpacing"),Jo("textTransform"),Jo("gridAreas","grid-template-areas"),Jo("gridColumns","grid-template-columns",na),Jo("gridRows","grid-template-rows",ra),Jo("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?na:ra)(e)})).join("/")}))].concat([ta,Xo,yo,wo,Co,Ko,vo,mo,xo,No,Lo,Do,Ro,Io,Mo,_o,Qo,Uo,Vo,zo,Zo,ea].map(lo)).reduce((function(e,t){var n=t.__lookupStyles;return n?(n.forEach((function(n){e[n]||(e[n]=[]),e[n].includes(t)||e[n].push(t)})),e):(console.warn("style lookup not found for the handler",t),e)}),{});function oa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{for(var o=C(e),a=o.next();!a.done;a=o.next()){var l=a.value;"function"==typeof l&&l.apply(void 0,N([],O(r),!1))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}}function aa(e){return d.toArray(e).every((function(e){return!p(e)}))}function la(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=C(n),a=o.next();!a.done;a=o.next()){var l=a.value;for(var s in i)/^on[A-Z]/.test(s)&&"function"==typeof i[s]&&l&&"function"==typeof l[s]?i[s]=Wt(i[s],l[s]):"className"===s&&"string"==typeof i.className&&l&&"string"==typeof l.className?i[s]=Ft(i.className,l.className):"styles"===s&&"object"==typeof i.styles&&l&&"object"==typeof l.styles?i[s]=E(E({},i.styles),l.styles):"id"===s&&i.id&&(null==l?void 0:l.id)?i.id=Ut(i.id,null==l?void 0:l.id):i[s]=l&&void 0!==l[s]?l[s]:i[s];for(var s in l)void 0===i[s]&&(i[s]=l[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}function sa(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var ua=n({});function ca(e,t){var n=e.slot||t;return Gt((r(ua)||{})[n],e)}function da(e){var t=r(ua)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=s((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return E(E({},e),((r={})[n]=Gt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return I.jsx(ua.Provider,E({value:a},{children:o}),void 0)}function pa(e){var t=e.children,n=k(e,["children"]),r=t;return d.toArray(t).length<=1&&"function"==typeof t&&(r=f(d.only(t),n)),I.jsx(ua.Provider,E({value:{}},{children:r}),void 0)}var fa="undefined"!=typeof window?e.useLayoutEffect:function(){};function ha(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a();return i((function(){e.forEach((function(e){e&&("function"==typeof e?e(n.current):e.current=n.current)}))}),[e]),n}var ga={block:"inline",grid:"inline-grid",flex:"inline-flex"},va={display:"inline-block"},ma=m.div((function(e){return e.css})),ba=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,l=e.mods,s=e.inline,u=e.isHidden,c=e.isDisabled,d=e.qa,p=e.qaVal,f=e.css,h=k(e,["as","styles","breakpoints","block","mods","inline","isHidden","isDisabled","qa","qaVal","css"]),g=E(E({},va),i);a&&(g.display="block"),s&&(g.display="string"==typeof g.display?ga[g.display||"block"]:"block");var v=r(Li);return f=""+(f||"")+Go(g,function(e){var t=e.join("|");if(!Mi[t]){var n=[];e.forEach((function(t,r){var i={};r&&(i.max=e[r-1]-1),i.min=t,n.push(i)})),n.push({max:e[e.length-1]-1}),n.forEach((function(e){var t=[];e.min&&t.push("(min-width: "+e.min+"px)"),e.max&&t.push("(max-width: "+e.max+"px)"),e.mediaQuery=t.join(" and ")})),Mi[t]=n}return Mi[t]}(o||v),ia),null==h.hidden&&u&&(h.hidden=u),null==h.disabled&&c&&(h.disabled=c),l&&Object.assign(h,sa(l)),I.jsx(ma,E({as:n,"data-qa":d,"data-qaval":p},h,{ref:t,css:f}),void 0)})),ya=["display","size","font","preset"],xa=["gridArea","flexGrow","flexShrink","order","gridColumn","gridRow","placeSelf","zIndex","margin"],wa=["reset","padding","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Sa=["color","fill"],Ea=["textTransform","fontWeight","fontStyle"],ka=["width","height","flexBasis"],Pa=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","gridColumns","gridRows","gridTemplate","gridAreas"],Ta=N(N(N(N(N(N([],O(ya),!1),O(Sa),!1),O(ka),!1),O(xa),!1),O(wa),!1),O(Pa),!1),Ca=N(N([],O(xa),!1),O(ka),!1),Oa=new Set(["id"]),Na=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ja=new Set(["as","css","qa","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),Aa=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),La=/^((data-).*)$/,Fa=/^on[A-Z].+$/;function Da(e,t){void 0===t&&(t={});var n=t.labelable,r=t.propNames,i=t.eventProps,o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Oa.has(a)||ja.has(a)||n&&Na.has(a)||i&&Fa.test(a)&&!Aa.has(a)||(null==r?void 0:r.has(a))||La.test(a))&&(o[a]=e[a]);return o}var Ra=F((function(e){!function(e){e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,o,a,l="",s="";if(l=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],l&&l.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(l.toLowerCase()))return s+=l+":",r&&r.length&&(s+="//"+r),s+=i,o&&o.length&&(s+="?"+o),a&&a.length&&(s+="#"+a),s}}}function r(e,r){if(n(e)){var i,o,a,l,s="",u="",c="",d="";if(s=(i=t(e))[1],u=i[2],o=i[3],a=i[4],l=i[5],s){if(r){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=s+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),l&&l.length&&(d+="#"+l),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),Ia=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,Ma={string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e},boolean:function(e){return"boolean"==typeof e},method:function(e){return"function"==typeof e},regexp:function(e){return e instanceof RegExp},integer:function(e){return"number"==typeof e&&e===parseInt(String(e),10)},array:function(e){return Array.isArray(e)},object:function(e){return"object"==typeof e&&!Array.isArray(e)},date:function(e){return e instanceof Date},url:function(e){return"string"==typeof e&&Ra.isUri(e)},hex:function(e){return"string"==typeof e&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email:function(e){return function(e){if(!e)return!1;if(e.length>254)return!1;if(!Ia.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e)},any:function(e){return!0}},_a=Object.keys(Ma),za={required:function(e){return P(this,void 0,void 0,(function(){return T(this,(function(t){return Array.isArray(e)?[2,e.length?Promise.resolve():Promise.reject()]:[2,e||0===e?Promise.resolve():Promise.reject()]}))}))},whitespace:function(e){return P(this,void 0,void 0,(function(){return T(this,(function(t){return"string"!=typeof e||e.trim()?[2,Promise.resolve()]:[2,Promise.reject()]}))}))},pattern:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.pattern,"string"!=typeof e?[2,Promise.resolve()]:[2,e.match(n)?Promise.resolve():Promise.reject()]}))}))},enum:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.enum||[],e||0===e?[2,n.includes(e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},len:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.len,"number"==typeof e?[2,e===n?Promise.resolve():Promise.reject()]:e&&"length"in e?[2,e.length===n?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))},max:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.max,"number"==typeof e?[2,e<=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length<=n?Promise.resolve():Promise.reject()]}))}))},min:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.min,"number"==typeof e?[2,e>=n?Promise.resolve():Promise.reject()]:!e||"string"!=typeof e&&!Array.isArray(e)?[2,Promise.resolve()]:[2,e.length>=n?Promise.resolve():Promise.reject()]}))}))},validator:function(e,t){return P(this,void 0,void 0,(function(){return T(this,(function(n){return[2,t.validator(t,e)]}))}))},type:function(e,t){return P(this,void 0,void 0,(function(){var n;return T(this,(function(r){return n=t.type,_a.includes(n)?[2,Ma[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},Ka=Object.keys(za);function Va(e,t,n){return P(this,void 0,void 0,(function(){var r,i,o,a,l,s;return T(this,(function(u){switch(u.label){case 0:"function"==typeof t&&(t=t(n)),"function"==typeof t.transform&&(e=t.transform(e)),u.label=1;case 1:u.trys.push([1,6,7,8]),r=C(Ka),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,za[o])(e,t)]:[3,4];case 3:u.sent(),u.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a=u.sent(),l={error:a},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function Ua(e,t,n){return P(this,void 0,void 0,(function(){var r,i,o,a,l,s,u;return T(this,(function(c){switch(c.label){case 0:if(!t||!t.length)return[2];r=function(t){return T(this,(function(r){switch(r.label){case 0:return[4,Va(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=t.message),e}))];case 1:return r.sent(),[2]}}))},c.label=1;case 1:c.trys.push([1,6,7,8]),i=C(t),o=i.next(),c.label=2;case 2:return o.done?[3,5]:(a=o.value,[5,r(a)]);case 3:c.sent(),c.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return l=c.sent(),s={error:l},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function Ba(e,t){return JSON.stringify(e)===JSON.stringify(t)}var Wa=function(){function e(e){this.forceReRender=function(){},this.initialFields={},this.fields={},this.ref={},this.onValuesChange=function(){},this.onSubmit=function(){},this.forceReRender=e||function(){},this.initialFields={},this.fields={},this.setFieldValues=this.setFieldValues.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldValues=this.setInitialFieldValues.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}return e.prototype.submit=function(){return P(this,void 0,void 0,(function(){return T(this,(function(e){return this.onSubmit?[2,this.onSubmit(this.getFieldsValue())]:[2]}))}))},e.prototype.setFieldValues=function(e,t){var n=this;void 0===t&&(t=!1);var r=!1;Object.keys(e).forEach((function(i){var o=n.fields[i];o&&!Ba(o.value,e[i])&&(r=!0,o.value=e[i],t&&(o.touched=t))})),r&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldValue=function(e){return this.fields[e]&&this.fields[e].value},e.prototype.getFieldsValue=function(){return Object.values(this.fields).reduce((function(e,t){return e[t.name]=t.value,e}),{})},e.prototype.setFieldValue=function(e,t,n){void 0===n&&(n=!1);var r=this.fields[e];r&&!Ba(t,r.value)&&(r.value=t,n&&(r.touched=n),this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldValues=function(e){this.initialFields=e||{}},e.prototype.resetFields=function(){this.setFieldValues(this.initialFields)},e.prototype.validateField=function(e){return P(this,void 0,void 0,(function(){var t,n=this;return T(this,(function(r){return(t=this.getFieldInstance(e))&&t.rules?[2,Ua(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&Ba(t.errors,[e])||(t.errors=[e],n.forceReRender()),Promise.reject([e])}))]:[2,Promise.resolve()]}))}))},e.prototype.validateFields=function(e){var t=this,n=e||Object.keys(this.fields),r={};return Promise.all(n.map((function(e){return t.validateField(e).catch((function(t){return r[e]=t,Promise.reject()}))}))).catch((function(){return Promise.reject(r)}))},e.prototype.isFieldValid=function(e){var t=this.getFieldInstance(e);return!t||!t.errors.length},e.prototype.isFieldInvalid=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.errors.length},e.prototype.isFieldTouched=function(e){var t=this.getFieldInstance(e);return!!t&&!!t.touched},e.prototype.getFieldError=function(e){var t=this.getFieldInstance(e);return t&&t.errors||[]},e.prototype.createField=function(e){this.fields[e]||(this.fields[e]=this._createField(e)),this.forceReRender()},e.prototype.setFields=function(e){var t=this;e.forEach((function(e){var n=e.name,r=e.value,i=e.errors;t.fields[n]=t._createField(n,{value:r,errors:i})})),this.forceReRender()},e.prototype._createField=function(e,t){return E({name:e,value:void 0,validating:!1,touched:!1,errors:[]},t)},e}();function Ga(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,l=a(),s=O(o({}),2)[1];if(!l.current){if(e)l.current=e;else{e=l.current=new Wa((function(){s({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[l.current]}function qa(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var Ja=n({});function Ha(e){var t=r(Ja);return E(E({},t),e)}var $a=new Set(["action","autoComplete","encType","method","target"]),Xa={display:"block",flow:"column",gap:"2x"};var Ya=Object.assign(h((function(e,t){var n,r=this;(e=Ii(e)).qa;var o,a,l=e.name,s=e.children,u=e.labelPosition,c=void 0===u?"top":u,d=e.isRequired,p=e.necessityIndicator,f=e.isDisabled,h=e.isReadOnly,g=e.validationState,v=e.labelStyles,m=e.validateTrigger,b=e.defaultValues,y=e.onValuesChange,x=e.requiredMark,w=void 0===x||x,S=e.form,C=e.onSubmit,N=e.onSubmitFailed,j=k(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]);t=ha(t),!C&&!N||j.action||(a=function(e){if(e&&(null==e?void 0:e.preventDefault)&&(e&&(null==e?void 0:e.preventDefault)&&(null==e||e.preventDefault()),e&&(null==e?void 0:e.stopPropagation)&&(null==e||e.stopPropagation()),e.nativeEvent)){var t=e.nativeEvent;if(t.submitter&&"submit"!==t.submitter.getAttribute("type"))return}return null==S?void 0:S.validateFields().then((function(){return P(r,void 0,void 0,(function(){return T(this,(function(e){switch(e.label){case 0:return[4,qa()];case 1:return e.sent(),S&&C&&C(S.getFieldsValue()),[2]}}))}))}),(function(e){return P(r,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:return[4,qa()];case 1:if(t.sent(),e instanceof Error)throw e;return N&&N(e),[2]}}))}))}))}),n=O(Ga(S,t&&t.current,{onSubmit:a,onValuesChange:y}),1),S=n[0],o=oo(j,Ta,Xa);var A=vi(t),L={labelPosition:c,labelStyles:v,necessityIndicator:p,validateTrigger:m,requiredMark:w,form:S,idPrefix:l};return i((function(){S&&b&&(S.setInitialFieldValues(b),S.resetFields())}),[]),I.jsx(ba,E({as:"form",qa:"Form"},Da(j,{propNames:$a}),{onSubmit:a,noValidate:!0,styles:o,ref:A,mods:{"has-sider":"side"===c}},{children:I.jsx(Ja.Provider,E({value:L},{children:I.jsx(Ri,E({insideForm:!0,isDisabled:f,isReadOnly:h,isRequired:d,validationState:g},{children:s}),void 0)}),void 0)}),void 0)})),{useForm:Ga});let Za="default",Qa="";function el(){"default"===Za&&(Qa=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Za="disabled"}function tl(){"disabled"===Za&&(Za="restoring",setTimeout((()=>{tn((()=>{"restoring"===Za&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Qa||""),Qa="",Za="default")}))}),300))}function nl(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const rl=t.createContext(null);function il(e){let t=function(e){let t=r(rl);if(t){let{register:n}=t;e=Gt(B(t,["register"]),e),n()}return rn(t,e.ref),e}(e),{onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,isPressed:h,preventFocusOnPress:g,shouldCancelOnPointerExit:v}=t,m=B(t,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","ref"]),b=a(null);b.current={onPress:n,onPressChange:u,onPressStart:c,onPressEnd:d,onPressUp:p,isDisabled:f,shouldCancelOnPointerExit:v};let[y,x]=o(!1),w=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:S,removeAllGlobalListeners:E}=function(){let e=a(new Map),t=l(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=l(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=l((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),k=s((()=>{let e=w.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:o}=b.current;o||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!0),e.didFirePressStart=!0,x(!0))},n=function(t,n,r){void 0===r&&(r=!0);let{onPressEnd:i,onPressChange:o,onPress:a,isDisabled:l}=b.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!1),x(!1),a&&r&&!l&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=b.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},i=t=>{e.isPressed&&(e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),tl())},o={onKeyDown(n){al(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),S(document,"keyup",a,!1)))},onKeyUp(t){al(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(sl(e.target,t),"keyboard")},onClick(i){i&&!i.currentTarget.contains(i.target)||i&&0===i.button&&(i.stopPropagation(),f&&i.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||!nl(i.nativeEvent)||(f||g||Xt(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&al(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(sl(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&ol(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click())};if("undefined"!=typeof PointerEvent){o.onPointerDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(cl(n.target)&&n.preventDefault(),e.pointerType=dl(n.nativeEvent)?"virtual":n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,f||g||Xt(n.currentTarget),el(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",l,!1),S(document,"pointercancel",s,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(cl(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&ul(t,t.currentTarget)&&r(t,e.pointerType||(dl(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(ul(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(sl(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(sl(e.target,r),e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r)))},l=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(ul(t,e.target)?n(sl(e.target,t),e.pointerType):e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),tl())},s=e=>{i(e)};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}else{o.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(cl(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=nl(n.nativeEvent)?"virtual":"mouse",f||g||Xt(n.currentTarget),t(n,e.pointerType),S(document,"mouseup",a,!1)))},o.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},o.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(t)))},o.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(ul(t,e.target)?n(sl(e.target,t),e.pointerType):e.isOverTarget&&n(sl(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};o.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",f||g||Xt(n.currentTarget),el(),t(n,e.pointerType),S(window,"scroll",l,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=ll(r.nativeEvent,e.activePointerId);o&&ul(o,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r))},o.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let i=ll(t.nativeEvent,e.activePointerId);i&&ul(i,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,tl(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let l=t=>{e.isPressed&&t.target.contains(e.target)&&i({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};o.onDragStart=e=>{e.currentTarget.contains(e.target)&&i(e)}}return o}),[S,f,g,E]);return i((()=>()=>tl()),[]),{isPressed:h||y,pressProps:Gt(m,k)}}function ol(e){return"A"===e.tagName&&e.hasAttribute("href")}function al(e){const{key:t,target:n}=e,r=n,{tagName:i,isContentEditable:o}=r,a=r.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t||"INPUT"===i||"TEXTAREA"===i||!0===o||ol(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function ll(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function sl(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ul(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return o=r,!((i=n).left>o.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}function cl(e){return!e.closest('[draggable="true"]')}function dl(e){return 0===e.width&&0===e.height}rl.displayName="PressResponderContext";const pl=t.forwardRef(((e,n)=>{let{children:o}=e,l=B(e,["children"]),s=a(!1),u=r(rl),c=Gt(u||{},Dt({},l,{ref:n||(null==u?void 0:u.ref),register(){s.current=!0,u&&u.register()}}));return rn(u,n),i((()=>{s.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),t.createElement(rl.Provider,{value:c},o)}));function fl(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}let hl=null,gl=new Set,vl=!1,ml=!1,bl=!1;const yl={Tab:!0,Escape:!0};function xl(e,t){for(let n of gl)n(e,t)}function wl(e){ml=!0,function(e){return!(e.metaKey||!pn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(hl="keyboard",xl("keyboard",e))}function Sl(e){hl="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ml=!0,xl("pointer",e))}function El(e){nl(e)&&(ml=!0,hl="virtual")}function kl(e){e.target!==window&&e.target!==document&&(ml||bl||(hl="virtual",xl("virtual",e)),ml=!1,bl=!1)}function Pl(){ml=!1,bl=!0}function Tl(){if("undefined"==typeof window||vl)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ml=!0,e.apply(this,arguments)},document.addEventListener("keydown",wl,!0),document.addEventListener("keyup",wl,!0),document.addEventListener("click",El,!0),window.addEventListener("focus",kl,!0),window.addEventListener("blur",Pl,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Sl,!0),document.addEventListener("pointermove",Sl,!0),document.addEventListener("pointerup",Sl,!0)):(document.addEventListener("mousedown",Sl,!0),document.addEventListener("mousemove",Sl,!0),document.addEventListener("mouseup",Sl,!0)),vl=!0}function Cl(){return"pointer"!==hl}function Ol(){return hl}function Nl(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Cl());var l,s,u;return l=e=>{a(e)},s=[t],u={isTextInput:t},Tl(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!yl[n.key])})(null==u?void 0:u.isTextInput,e,t)&&l(Cl())};return gl.add(e),()=>gl.delete(e)}),s),{isFocusVisible:r}}function jl(e){let t=a({isFocusWithin:!1}).current;if(e.isDisabled)return{focusWithinProps:{}};return{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?Tl():document.addEventListener("DOMContentLoaded",Tl));let Al=!1,Ll=0;function Fl(){Al=!0,setTimeout((()=>{Al=!1}),50)}function Dl(e){"touch"===e.pointerType&&Fl()}function Rl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Dl):document.addEventListener("touchend",Fl),Ll++,()=>{Ll--,Ll>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Dl):document.removeEventListener("touchend",Fl))}}function Il(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:l}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(Rl,[]);let{hoverProps:p,triggerHoverEnd:f}=s((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let i=e.target;d.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),c(!0)},i=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let i=e.target;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),c(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{Al&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Al||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,l,d]);return i((()=>{l&&f({target:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:u}}function Ml(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function _l(e){if(!e)return;let t=!0;return n=>{let r=Dt({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r),t&&n.stopPropagation()}}function zl(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){l(!1)}),[n]);var r=O(o(!1),2),a=r[0],l=r[1],s=Nl({}).isFocusVisible;return{focusProps:fl({onFocusChange:l}).focusProps,isFocused:a&&(!t||s)}}var Kl={display:"grid",position:"absolute",placeItems:"center",gap:0,left:"@prefix-gap",top:"@prefix-gap",bottom:"@prefix-gap",color:"#dark.75",height:"(100% - (2 * @prefix-gap))"},Vl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=k(e,["onWidthChange","outerGap","children"]),s=oo(l,Ta,Kl),u=ha(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),I.jsx(ba,E({},Da(l,{eventProps:!0}),{styles:s,ref:u,style:{"--prefix-gap":Xi(o).value}},{children:a}),void 0)})),Ul={display:"grid",placeContent:"stretch",placeItems:"center",flow:"column",gap:0,position:"absolute",right:"@suffix-gap",top:"@suffix-gap",bottom:"@suffix-gap",color:"#dark.75",height:"(100% - (2 * @suffix-gap))"},Bl=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,l=k(e,["onWidthChange","outerGap","children"]),s=oo(l,Ta,Ul),u=ha(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),I.jsx(ba,E({},Da(l,{eventProps:!0}),{styles:s,ref:u,style:{"--suffix-gap":Xi(o).value}},{children:a}),void 0)})),Wl=I.jsx("svg",E({xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"}},{children:I.jsx("switch",{children:I.jsx("g",{children:I.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"},void 0)},void 0)},void 0)}),void 0),Gl={"(required)":"(required)","(optional)":"(optional)"},ql={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},Jl={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var Hl=h((function(e,t){var n=(e=Ii(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,l=e.isRequired,s=e.necessityIndicator,u=void 0===s?null!=l?"icon":null:s,c=e.includeNecessityIndicatorInAccessibilityName,d=void 0!==c&&c,p=e.htmlFor,f=e.isDisabled,h=e.validationState,g=e.for,v=e.onClick,m=k(e,["as","qa","children","labelPosition","isRequired","necessityIndicator","includeNecessityIndicatorInAccessibilityName","htmlFor","isDisabled","validationState","for","onClick"]),b=vi(t),y=Ai("Label",m),x=oo(m,Ta,E(E({},Jl),y)),w=function(e){return Gl[e]},S=w(l?"(required)":"(optional)"),P=I.jsx("span",E({"aria-label":d?w("(required)"):void 0},{children:Wl}),void 0);return I.jsx(ba,E({as:n||"label",qa:r||"Label"},Da(m),{onClick:v,ref:b,styles:x,htmlFor:g||p,mods:{side:"side"===a,disabled:f,invalid:"invalid"===h,valid:"valid"===h}},{children:"string"!=typeof i?i:I.jsxs(I.Fragment,{children:[i,("label"===u||"icon"===u&&l)&&" ","label"===u&&I.jsx("span",E({"aria-hidden":d?void 0:l},{children:S}),void 0),"icon"===u&&l&&P]},void 0)}),void 0)})),$l={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},Xl={preset:"default",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},fontWeight:400,textAlign:"left",column:{"":1,"has-sider":2},userSelect:"none"};var Yl=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.insideForm,a=e.styles,l=e.isRequired,s=e.isDisabled,u=e.labelStyles,c=e.necessityIndicator,d=e.labelProps,p=e.fieldProps,f=e.message,h=e.messageStyles,g=e.Component,v=e.validationState,m=e.requiredMark,b=void 0===m||m,y={"has-sider":"side"===r&&i,"inside-form":o,invalid:"invalid"===v,valid:"valid"===v};return I.jsxs(ba,E({as:n||"div",qa:"Field",ref:t,mods:y,styles:E(E({},$l),a)},p,{children:[i&&I.jsx(Hl,E({as:"label"===n?"div":"label",styles:u,labelPosition:r,isRequired:!!b&&l,isDisabled:s,necessityIndicator:c,validationState:v},d,{children:i}),void 0),g,f&&!s&&I.jsx(ba,E({mods:y,styles:E(E({},Xl),h),role:"invalid"===v?"alert":void 0},{children:f}),void 0)]}),void 0)})),Zl={display:"flex",gap:!0},Ql={align:"alignItems",justify:"justifyItems"},es=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=oo(e,Ta,E(E({},Zl),{flow:n,alignItems:"row"===n?"center":"stretch"}),Ql);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),ts={display:"block"},ns=h((function(e,t){var n=oo(e,Ta,ts);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),rs={display:"grid",position:"relative"},is=N(N([],O(wa),!1),["resize"],!1),os={display:"block",width:"initial 100% initial",height:"initial initial initial",color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#white",disabled:"#dark.04"},border:{"":!0,focused:!0,valid:"#success-text.50",invalid:"#danger-text.50",disabled:!0},outline:{"":"#purple-03.0",focused:"#purple-03","invalid & focused":"#danger.50","valid & focused":"#success.50"},radius:!0,padding:"(1.25x - 1bw) (1.5x - 1bw)",fontWeight:400,textAlign:"left",reset:"input",preset:"default",flexGrow:1,margin:0,resize:"none"};var as=h((function(e,t){var n=(e=Ha(e=Ii(e))).qa,r=e.label,i=e.labelPosition,l=void 0===i?"top":i,s=e.labelStyles,u=e.isRequired,d=e.necessityIndicator,p=e.validationState,h=e.message,g=e.prefix,v=e.isDisabled,m=e.multiLine;e.autoFocus;var b=e.labelProps,y=e.inputProps,x=e.wrapperProps,w=e.inputRef,S=e.isLoading,P=e.loadingIndicator,T=e.insideForm;e.value;var C=e.inputStyles,N=void 0===C?{}:C,j=e.wrapperStyles,A=void 0===j?{}:j,L=e.suffix,F=e.suffixPosition,D=void 0===F?"before":F,R=e.wrapperRef,M=e.requiredMark,_=void 0===M||M,z=e.rows,K=void 0===z?1:z,V=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","insideForm","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","rows"]),U=O(o(0),2),B=U[0],W=U[1],G=O(o(0),2),q=G[0],J=G[1],H=oo(V,xa),$=Ai("Input",V);N=oo(V,is,E(E(E({},os),$),N)),A=E(E({},rs),A),g&&(N.paddingLeft=q+"px"),(p||S||L)&&(N.paddingRight=B+"px");var X=m?"textarea":"input",Y=zl({isDisabled:v}),Z=Y.isFocused,Q=Y.focusProps,ee=Il({isDisabled:v}),te=ee.hoverProps,ne=ee.isHovered,re=a(null),ie=a(null);w=w||ie,c(t,(function(){return E(E({},gi(re,w)),{select:function(){(null==w?void 0:w.current)&&w.current.select()},getInputElement:function(){return null==w?void 0:w.current}})}));var oe="invalid"===p,ae=oe?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),le=f(ae);L="string"==typeof L?I.jsx(ns,E({padding:"1x right"},{children:L}),void 0):L;var se=I.jsxs(ba,E({ref:R,qa:(n||"TextInput")+"Wrapper","data-is-invalid":oe?"":null,"data-is-valid":"valid"===p?"":null,"data-is-loadable":P?"":null,"data-is-multiline":m?"":null,styles:A},x,{children:[I.jsx(ba,E({qa:n||"TextInput",as:X},la(y,Q,te),{ref:w,rows:m?K:void 0,mods:{invalid:oe,valid:"valid"===p,disabled:v,hovered:ne,focused:Z},styles:N}),void 0),I.jsx(Vl,E({padding:"0 1x 0 1.5x",onWidthChange:J,opacity:!!v&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?I.jsx(ns,E({padding:"1x left"},{children:g}),void 0):g}),void 0),I.jsxs(Bl,E({padding:"1x left",onWidthChange:W,opacity:!!v&&"@disabled-opacity"},{children:["before"===D?L:null,I.jsxs(es,E({gap:!1,padding:"0 1.5x 0 0"},{children:[p&&!S?le:null,S&&I.jsx(Et,{},void 0)]}),void 0),"after"===D?L:null]}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:r,insideForm:T,styles:H,isRequired:u,labelStyles:s,necessityIndicator:d,labelProps:b,isDisabled:v,validationState:p,message:h,requiredMark:_,Component:se,ref:re}),void 0)}));function ls(e){if("virtual"===Ol()){let t=document.activeElement;tn((()=>{document.activeElement===t&&document.contains(e)&&Xt(e)}))}else Xt(e)}function ss(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ss(e.parentElement,e))}const us=t.createContext(null);let cs=null,ds=new Map;function ps(e){let{children:n,contain:o,restoreFocus:l,autoFocus:s}=e,u=a(),c=a(),d=a([]),p=r(us),f=null==p?void 0:p.scopeRef;zt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),zt((()=>(ds.set(d,f),()=>{d!==cs&&!ys(d,cs)||f&&!ds.has(f)||(cs=f),ds.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);zt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==cs)return;let n=document.activeElement,r=e.current;if(!ms(n,r))return;let i=Ss(vs(r),{tabbable:!0},r);i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&xs(o,!0)},a=t=>{!cs||ys(cs,e)?(cs=e,n.current=t.target):e!==cs||bs(t.target,e)?e===cs&&(n.current=t.target):n.current?n.current.focus():cs&&ws(cs.current)},l=t=>{r.current=requestAnimationFrame((()=>{e!==cs||bs(document.activeElement,e)||(cs=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",o,!1),document.addEventListener("focusin",a,!1),i.forEach((e=>e.addEventListener("focusin",a,!1))),i.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{document.removeEventListener("keydown",o,!1),document.removeEventListener("focusin",a,!1),i.forEach((e=>e.removeEventListener("focusin",a,!1))),i.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){zt((()=>{if(!t)return;let r=e.current,i=document.activeElement,o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey)return;let t=document.activeElement;if(!ms(t,r))return;let n=Ss(document.body,{tabbable:!0});n.currentNode=t;let o=e.shiftKey?n.previousNode():n.nextNode();if(document.body.contains(i)&&i!==document.body||(i=null),(!o||!ms(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(ms(o,r));e.preventDefault(),e.stopPropagation(),o?xs(o,!0):!function(e){for(let t of ds.keys())if(ms(e,t.current))return!0;return!1}(i)?t.blur():xs(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&ms(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&xs(i)}))}}),[e,t,n])}(d,l,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(cs=e,ms(document.activeElement,cs.current)||ws(e.current)),r.current=!1}),[])}(d,s);let h=function(e){return{focusNext(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[0].previousElementSibling,s=Ss(vs(n),{tabbable:i},n);s.currentNode=ms(a,n)?a:l;let u=s.nextNode();return!u&&o&&(s.currentNode=l,u=s.nextNode()),u&&xs(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,s=Ss(vs(n),{tabbable:i},n);s.currentNode=ms(a,n)?a:l;let u=s.previousNode();return!u&&o&&(s.currentNode=l,u=s.previousNode()),u&&xs(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Ss(vs(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&xs(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Ss(vs(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&xs(o,!0),o}}}(d);return t.createElement(us.Provider,{value:{scopeRef:d,focusManager:h}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:u}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}const fs=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],hs=fs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const gs=fs.join(':not([hidden]):not([tabindex="-1"]),');function vs(e){return e[0].parentElement}function ms(e,t){return t.some((t=>t.contains(e)))}function bs(e,t){for(let n of ds.keys())if((n===t||ys(t,n))&&ms(e,n.current))return!0;return!1}function ys(e,t){let n=ds.get(t);return!!n&&(n===e||ys(e,n))}function xs(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{ls(e)}catch(e){}}function ws(e){let t=e[0].previousElementSibling,n=Ss(vs(e),{tabbable:!0},e);n.currentNode=t,xs(n.nextNode())}function Ss(e,t,n){let r=null!=t&&t.tabbable?gs:hs,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return null!=t&&null!=(i=t.from)&&i.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&ss(e)&&(!n||ms(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let Es=t.createContext(null);function ks(e,n){let{children:r}=e,i=Dt({},B(e,["children"]),{ref:n});return t.createElement(Es.Provider,{value:i},r)}let Ps=t.forwardRef(ks);function Ts(e,t){let{focusProps:n}=fl(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:_l(e.onKeyDown),onKeyUp:_l(e.onKeyUp)}}}(e),l=Gt(n,o),s=function(e){let t=r(Es)||{};return rn(t,e),B(t,["ref"])}(t),u=e.isDisabled?{}:s,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Gt(Dt({},l,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}function Cs(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Vt(t);let a=Vt(),l={};return n?(r=r?r+" "+a:a,l={id:a,htmlFor:"label"===o?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:nn({id:t,"aria-label":i,"aria-labelledby":r})}}function Os(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Cs(e),o=Bt(),a=Bt();i=Gt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let l={},s={};return t&&(l.id=o),n&&(s.id=a),{labelProps:r,fieldProps:i,descriptionProps:l,errorMessageProps:s}}function Ns(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:l="text",onChange:s=(()=>{})}=e,{focusableProps:u}=Ts(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Os(e),h=$t(e,{labelable:!0});const g={type:l,pattern:e.pattern};return{labelProps:c,inputProps:Gt(h,"input"===n&&g,Dt({disabled:r,readOnly:o,"aria-required":i||void 0,"aria-invalid":"invalid"===a||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>s(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput},u,d)),descriptionProps:p,errorMessageProps:f}}function js(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var As=h((function(e,t){e=Ii(e);var n=a(null),r=Ns(e,n),i=r.labelProps,o=r.inputProps;return I.jsx(as,E({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)}));function Ls(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressChange:s,preventFocusOnPress:u,onClick:c,href:d,target:p,rel:f,type:h="button"}=e;n="button"===r?{type:h,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:d,target:"a"===r?p:void 0,type:"input"===r?h:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?f:void 0};let{pressProps:g,isPressed:v}=il({onPressStart:a,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Ts(e,t),b=Gt(m,g);return b=Gt(b,$t(e,{labelable:!0})),{isPressed:v,buttonProps:Gt(n,b,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{c&&(c(e),console.warn("onClick is deprecated, please use onPress"))}})}}var Fs={disabled:"isDisabled",loading:"isLoading",selected:"isSelected",onClick:"onPress"};function Ds(e,t,n){n.forEach((function(n){if(n in t){var r=Fs[n];console.warn('UI Kit: "'+n+'" property of "'+e+'" component is deprecated.'+(r?' Use "'+r+'" property instead.':""))}}))}function Rs(e,t){var n=document.createElement("a");n.href=e,t&&(n.target=!0===t?"_blank":t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Is(e){var t=e&&"string"==typeof e&&e.startsWith("!"),n=e&&"string"==typeof e&&e.startsWith("@");return{newTab:t,nativeRoute:n,href:e&&"string"==typeof e?t||n?e.slice(1):e:void 0}}var Ms={reset:"button",position:"relative",opacity:{"":1,disabled:.4},margin:0,fontFamily:"var(--font)",fontWeight:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"inherit"},_s=["disabled","onClick"],zs=N(N([],O(Ta),!1),O(Ea),!1),Ks=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,l=e.skipWarnings,s=e.preventDefault,u=k(e,["to","as","htmlType","label","skipWarnings","preventDefault"]);l||Ds("Action",u,_s),i=n?"a":i||"button";var c=r(Di).router,d=u.isDisabled,p=Is(n),f=p.newTab,h=p.href,g=f?"_blank":void 0,v=function(e,t,n,r){var i=Is(t),o=i.newTab,a=i.nativeRoute,l=i.href;return function(i){r||(n?n():t&&(i.shiftKey||i.metaKey||o?Rs(l,!0):a?Rs(l||window.location.href):e?e.push(l):l&&(window.location.href=l)))}}(c,n,u.onPress||u.onClick,d),m=mi(t),b=oo(u,zs,Ms),y=Ls(u,m),x=y.buttonProps,w=y.isPressed,S=Il({isDisabled:d}),P=S.hoverProps,T=S.isHovered,C=zl({isDisabled:d},!0),O=C.focusProps,N=C.isFocused,j={};return n&&(j.onClick=function(e){e.preventDefault(),d||v(e)}),s&&(j.onClick=function(e){return e.preventDefault()}),I.jsx(ba,E({"data-is-hovered":T&&!d?"":null,"data-is-pressed":w&&!d?"":null,"data-is-focused":N&&!d?"":null,"data-is-disabled":d||null,"aria-label":a},Gt(x,P,O,j,Da(u,{eventProps:!0})),{type:o||"button",rel:"a"===i&&f?'rel="noopener noreferrer"':void 0,ref:m,as:i,isDisabled:d,styles:b,target:g,href:h}),void 0)}));var Vs={default:{border:{"":"#clear",pressed:"#purple.30"},fill:{"":"#purple.10",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple"},link:{fontWeight:500,padding:"0",radius:{"":"0",focused:"1r"},fill:"#clear",color:{"":"#purple-text",hovered:"#purple"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03"}},primary:{border:{"":"#clear",pressed:"#purple-text"},fill:{hovered:"#purple-text","pressed | !hovered":"#purple"},color:"#white"},clear:{border:{"":"#clear",pressed:"#purple-text.10"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple-text"},outline:{border:{"":"#purple.30",pressed:"#purple-text.10",disabled:"#dark.12"},fill:{"":"#purple.0",hovered:"#purple.16",pressed:"#purple.10"},color:"#purple-text"},danger:{border:{"":"#clear",pressed:"#danger-text"},fill:{"":"#danger",pressed:"#danger",hovered:"#danger-text"},color:"#white"},item:{border:"0",fill:{"":"#purple.0",hovered:"#dark.04"},color:{"":"#dark.75",hovered:"#dark.75",pressed:"#purple"},textAlign:"left",padding:"(1x - 1px) (1.5x - 1px)",height:"min (2x + 1lh)",cursor:"default"},tab:{color:{"":"#dark","selected, hovered":"#purple-text",disabled:"#dark.50"},fill:"#purple.0",textAlign:"center",fontWeight:600,padding:"(1x - 1px) (1x - 1px)",radius:"1r 1r 0 0",border:0},disabled:{fill:"#dark.08",color:"#dark.60"}},Us={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},Bs={tab:"\n&::before {\n --outline-size: 0px;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 calc(-1 * var(--outline-size)) 0 var(--purple-color);\n pointer-events: none;\n transition: opacity linear .2s, box-shadow linear .2s;\n}\n&[data-is-selected]::before {\n --outline-size: 2px;\n}\n&:not([data-is-selected]):not([disabled])[data-is-hovered]::before {\n --outline-size: 1px;\n}\n "},Ws={display:"inline-block",placeItems:"center stretch",radius:!0,opacity:{"":1,disabled:.5,selected:1},cursor:"pointer",fontWeight:500,preset:"default"},Gs=["disabled","loading","onClick"],qs=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.ghost,l=e.children,s=e.css,u=e.icon,c=e.skipWarnings,d=k(e,["type","size","label","styles","ghost","children","css","icon","skipWarnings"]);c||Ds("Action",d,Gs);var p=d.isDisabled,f=d.isLoading,h=d.isSelected,g=E(E({},d),{isLoading:f,isDisabled:p,size:r,type:n,ghost:a,icon:u,children:l}),v=Ai("Button",g);return l=l||i,o=E(E(E({},function(e){var t=e.size,n=e.type,r=e.isDisabled,i=e.ghost,o=e.isLoading,a=e.icon,l=e.children;return E(E(E(E(E(E({},Us[t||"default"]),Ws),Vs[n||"default"]),r?E({},"tab"!==n?Vs.disabled:{}):{}),i?{fill:"#clear"}:null),!o&&!a||l?null:{padding:"0",width:"(2.5x + 1lh)",height:"(2.5x + 1lh)",display:"grid",placeItems:"center"})}(g)),v),o),f&&!l&&o&&(o.size="1em 1em"),I.jsxs(Ks,E({as:d.to?"a":void 0,css:"\n \n white-space: nowrap;\n\n & > .anticon.anticon-loading {\n transition: display .2s steps(1, start), margin .2s linear, opacity .2s linear;\n margin-top: -7px;\n margin-bottom: -7px;\n line-height: 0;\n }\n"+(n?Bs[n]:"")+(s||"")+"\n "},d,{ref:t,isDisabled:f||p,"data-type":n,"data-theme":n&&["success","danger","primary"].includes(n)?"special":void 0,"data-is-loading":f?"":void 0,"data-is-selected":h?"":void 0,styles:o,skipWarnings:c},{children:[f?I.jsx(ns,E({display:"inline-block",margin:l?"1x right":void 0},{children:I.jsx(Et,{},void 0)}),void 0):null,u&&!f?I.jsxs(es,E({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?null:u,l?I.jsx("div",{children:l},void 0):null]}),void 0):l]}),void 0)}));var Js=Object.assign(h((function(e,t){var n=Ii(E({},e)),r=n.suffix,i=k(n,["suffix"]),s=O(o("password"),2),u=s[0],c=s[1],d=a(null),p=Ns(E(E({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,g=l((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),v=I.jsxs(I.Fragment,{children:[r,I.jsx(qs,{type:"item",htmlType:"button",onPress:g,preventDefault:!0,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x","aria-label":"Toggle masking",excludeFromTabOrder:!0,icon:"password"===u?I.jsx(ot,{},void 0):I.jsx(st,{},void 0)},void 0)]},void 0);return I.jsx(as,E({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:v},i),void 0)})),{cubeInputType:"Text"});function Hs(e){let{minValue:t,maxValue:n,step:r,formatOptions:u,value:c,defaultValue:d,onChange:p,locale:f,isDisabled:h,isReadOnly:g}=e,[v,m]=jt(c,isNaN(d)?NaN:d,p),[b,y]=o((()=>isNaN(v)?"":new Sn(f,u).format(v))),x=s((()=>new Pn(f,u)),[f,u]),w=s((()=>x.getNumberingSystem(b)),[x,b]),S=s((()=>new Sn(f,Dt({},u,{numberingSystem:w}))),[f,u,w]),E=s((()=>S.resolvedOptions()),[S]),k=l((e=>isNaN(e)?"":S.format(e)),[S]),P=isNaN(r)?1:r;"percent"===E.style&&isNaN(r)&&(P=.01),i((()=>{y(k(v))}),[v,f,u]);let T=s((()=>x.parse(b)),[x,b]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return At(isNaN(r)?0:r,t,n,P)}{let r=At(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:At($s(e,i,P),t,n,P)}};return{validate:e=>x.isValidPartialNumber(e,t,n),increment:()=>{m((e=>{let n=O("+",t);return n===e&&y(k(n)),n}))},incrementToMax:()=>{null!=n&&m(At(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&y(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:s((()=>!h&&!g&&(isNaN(T)||isNaN(n)||At(T,t,n,P)>T||$s("+",T,P)<=n)),[h,g,t,n,P,T]),canDecrement:s((()=>!h&&!g&&(isNaN(T)||isNaN(t)||At(T,t,n,P)<T||$s("-",T,P)>=t)),[h,g,t,n,P,T]),minValue:t,maxValue:n,numberValue:T,setInputValue:y,inputValue:b,commit:()=>{if(!b.length)return m(NaN),void y(void 0===c?"":k(v));if(isNaN(C.current))return void y(k(v));let e;e=isNaN(r)?function(e,t,n){return void 0===t&&(t=-1/0),void 0===n&&(n=1/0),Math.min(Math.max(e,t),n)}(C.current,t,n):At(C.current,t,n,r),e=x.parse(k(e)),m(e),y(k(void 0===c?e:v))}}}function $s(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const i=t.toString().split("."),o=n.toString().split("."),a=i[1]&&i[1].length||0,l=o[1]&&o[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}const Xs={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ys(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=fl({isDisabled:!n,onFocusChange:i}),l=s((()=>r?t:t?Dt({},Xs,t):Xs),[r]);return{visuallyHiddenProps:Dt({},a,{style:l})}}function Zs(e){let{children:n,elementType:r="div"}=e,i=B(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=Ys(e);return t.createElement(r,Gt(i,o),n)}let Qs=t.createRef(),eu=null,tu=0;function nu(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),Qs.current?i(Qs.current):(eu=document.createElement("div"),eu.dataset.liveAnnouncer="true",document.body.prepend(eu),y.render(t.createElement(ru,{ref:Qs}),eu,(()=>i(Qs.current))))}const ru=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,l]=o([]),s=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||l([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=tu++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):l((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):l((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:s}))),t.createElement(g,null,t.createElement(iu,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(iu,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function iu(e){let{children:n,"aria-live":r}=e;return t.createElement(Zs,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}function ou(e){return e&&e.__esModule?e:{default:e}}var au;au=JSON.parse('{"Empty":"فارغ"}');var lu;lu=JSON.parse('{"Empty":"Изпразни"}');var su;su=JSON.parse('{"Empty":"Prázdné"}');var uu;uu=JSON.parse('{"Empty":"Tom"}');var cu;cu=JSON.parse('{"Empty":"Leer"}');var du;du=JSON.parse('{"Empty":"Άδειο"}');var pu;pu=JSON.parse('{"Empty":"Empty"}');var fu;fu=JSON.parse('{"Empty":"Vacío"}');var hu;hu=JSON.parse('{"Empty":"Tühjenda"}');var gu;gu=JSON.parse('{"Empty":"Tyhjä"}');var vu;vu=JSON.parse('{"Empty":"Vide"}');var mu;mu=JSON.parse('{"Empty":"ריק"}');var bu;bu=JSON.parse('{"Empty":"Prazno"}');var yu;yu=JSON.parse('{"Empty":"Üres"}');var xu;xu=JSON.parse('{"Empty":"Vuoto"}');var wu;wu=JSON.parse('{"Empty":"空"}');var Su;Su=JSON.parse('{"Empty":"비어 있음"}');var Eu;Eu=JSON.parse('{"Empty":"Tuščias"}');var ku;ku=JSON.parse('{"Empty":"Tukšs"}');var Pu;Pu=JSON.parse('{"Empty":"Tom"}');var Tu;Tu=JSON.parse('{"Empty":"Leeg"}');var Cu;Cu=JSON.parse('{"Empty":"Pusty"}');var Ou;Ou=JSON.parse('{"Empty":"Vazio"}');var Nu;Nu=JSON.parse('{"Empty":"Vazio"}');var ju;ju=JSON.parse('{"Empty":"Gol"}');var Au;Au=JSON.parse('{"Empty":"Не заполнено"}');var Lu;Lu=JSON.parse('{"Empty":"Prázdne"}');var Fu;Fu=JSON.parse('{"Empty":"Prazen"}');var Du;Du=JSON.parse('{"Empty":"Prazno"}');var Ru;Ru=JSON.parse('{"Empty":"Tomt"}');var Iu;Iu=JSON.parse('{"Empty":"Boş"}');var Mu;Mu=JSON.parse('{"Empty":"Пусто"}');var _u;_u=JSON.parse('{"Empty":"空"}');var zu;zu=JSON.parse('{"Empty":"空白"}');const Ku={"ar-AE":ou(au).default,"bg-BG":ou(lu).default,"cs-CZ":ou(su).default,"da-DK":ou(uu).default,"de-DE":ou(cu).default,"el-GR":ou(du).default,"en-US":ou(pu).default,"es-ES":ou(fu).default,"et-EE":ou(hu).default,"fi-FI":ou(gu).default,"fr-FR":ou(vu).default,"he-IL":ou(mu).default,"hr-HR":ou(bu).default,"hu-HU":ou(yu).default,"it-IT":ou(xu).default,"ja-JP":ou(wu).default,"ko-KR":ou(Su).default,"lt-LT":ou(Eu).default,"lv-LV":ou(ku).default,"nb-NO":ou(Pu).default,"nl-NL":ou(Tu).default,"pl-PL":ou(Cu).default,"pt-BR":ou(Ou).default,"pt-PT":ou(Nu).default,"ro-RO":ou(ju).default,"ru-RU":ou(Au).default,"sk-SK":ou(Lu).default,"sl-SI":ou(Fu).default,"sr-SP":ou(Du).default,"sv-SE":ou(Ru).default,"tr-TR":ou(Iu).default,"uk-UA":ou(Mu).default,"zh-CN":ou(_u).default,"zh-TW":ou(zu).default};var Vu;Vu=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var Uu;Uu=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var Bu;Bu=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var Wu;Wu=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var Gu;Gu=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var qu;qu=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var Ju;Ju=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var Hu;Hu=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var $u;$u=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var Xu;Xu=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var Yu;Yu=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var Zu;Zu=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var Qu;Qu=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var ec;ec=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var tc;tc=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var nc;nc=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var rc;rc=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var ic;ic=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var oc;oc=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var ac;ac=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var lc;lc=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var sc;sc=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var uc;uc=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var cc;cc=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var dc;dc=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var pc;pc=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var fc;fc=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var hc;hc=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var gc;gc=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var vc;vc=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var mc;mc=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var bc;bc=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var yc;yc=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var xc;xc=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const wc={"ar-AE":ou(Vu).default,"bg-BG":ou(Uu).default,"cs-CZ":ou(Bu).default,"da-DK":ou(Wu).default,"de-DE":ou(Gu).default,"el-GR":ou(qu).default,"en-US":ou(Ju).default,"es-ES":ou(Hu).default,"et-EE":ou($u).default,"fi-FI":ou(Xu).default,"fr-FR":ou(Yu).default,"he-IL":ou(Zu).default,"hr-HR":ou(Qu).default,"hu-HU":ou(ec).default,"it-IT":ou(tc).default,"ja-JP":ou(nc).default,"ko-KR":ou(rc).default,"lt-LT":ou(ic).default,"lv-LV":ou(oc).default,"nb-NO":ou(ac).default,"nl-NL":ou(lc).default,"pl-PL":ou(sc).default,"pt-BR":ou(uc).default,"pt-PT":ou(cc).default,"ro-RO":ou(dc).default,"ru-RU":ou(pc).default,"sk-SK":ou(fc).default,"sl-SI":ou(hc).default,"sr-SP":ou(gc).default,"sv-SE":ou(vc).default,"tr-TR":ou(mc).default,"uk-UA":ou(bc).default,"zh-CN":ou(yc).default,"zh-TW":ou(xc).default};function Sc(e,t,n){let{id:r,decrementAriaLabel:u,incrementAriaLabel:c,isDisabled:d,isReadOnly:p,isRequired:f,minValue:h,maxValue:g,autoFocus:v,validationState:m,label:b,formatOptions:y,onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T}=e,{increment:C,incrementToMax:O,decrement:N,decrementToMin:j,numberValue:A,commit:L}=t;const F=di(wc);let D=Vt(r),{focusProps:R}=fl({onBlur:()=>{L()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:s,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:g,onDecrementToMin:v,onIncrementToMax:m}=e;const b=di(Ku),y=()=>clearTimeout(t.current);i((()=>()=>y()),[]);let x=a(!1),w=()=>{x.current=!0},S=()=>{x.current=!1};r=""===r?b("Empty"):(r||""+n).replace("-","−"),i((()=>{x.current&&nu(r,"assertive")}),[r]);const E=l((e=>{y(),p(),t.current=window.setTimeout((()=>{(isNaN(s)||isNaN(n)||n<s)&&E(60)}),e)}),[p,s,n]),k=l((e=>{y(),h(),t.current=window.setTimeout((()=>{(isNaN(o)||isNaN(n)||n>o)&&k(60)}),e)}),[h,o,n]);return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":r,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":u||null,"aria-readonly":c||null,"aria-required":d||null,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c))switch(e.key){case"PageUp":if(f){e.preventDefault(),f();break}case"ArrowUp":case"Up":p&&(e.preventDefault(),p());break;case"PageDown":if(g){e.preventDefault(),g();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h());break;case"Home":v&&(e.preventDefault(),v());break;case"End":m&&(e.preventDefault(),m())}},onFocus:w,onBlur:S},incrementButtonProps:{onPressStart:()=>E(400),onPressEnd:y,onFocus:w,onBlur:S},decrementButtonProps:{onPressStart:()=>k(400),onPressEnd:y,onFocus:w,onBlur:S}}}({isDisabled:d,isReadOnly:p,isRequired:f,maxValue:g,minValue:h,onIncrement:C,onIncrementToMax:O,onDecrement:N,onDecrementToMin:j,value:A,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=jl({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=l((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);mn(t,"wheel",r?null:i)}({onScroll:l((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?C():e.deltaY<0&&N())}),[N,C]),isDisabled:d||p||!z},n);let U=function(e){void 0===e&&(e={});let{locale:t}=ui();return s((()=>new Sn(t,e)),[t,e])}(y),B=s((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,W=isNaN(t.minValue)||t.minValue<0,G="numeric";fn()?W?G="text":B&&(G="decimal"):cn(/Android/)&&(W?G="numeric":B&&(G="decimal"));let q,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!js())return;let e=n.current,t=t=>{let n,i=r.current;switch(t.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":n=e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentForward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd+1):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteContentBackward":n=e.selectionEnd===e.selectionStart?e.value.slice(0,e.selectionStart-1)+e.value.slice(e.selectionStart):e.value.slice(0,e.selectionStart)+e.value.slice(e.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":n=e.value.slice(e.selectionStart);break;default:null!=t.data&&(n=e.value.slice(0,e.selectionStart)+t.data+e.value.slice(e.selectionEnd))}null!=n&&i.validate(n)||t.preventDefault()};return e.addEventListener("beforeinput",t,!1),()=>{e.removeEventListener("beforeinput",t,!1)}}),[n,r]);let o=js()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:l,inputProps:s,descriptionProps:u,errorMessageProps:c}=Ns(e,n),d=a(null);return{inputProps:Gt(s,{onBeforeInput:o,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;d.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=d.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:l,descriptionProps:u,errorMessageProps:c}}({label:b,autoFocus:v,isDisabled:d,isReadOnly:p,isRequired:f,validationState:m,value:t.inputValue,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:D,type:"text",inputMode:G,onChange:e=>{t.setInputValue(e)},onBlur:x,onFocus:w,onFocusChange:S,onKeyDown:E,onKeyUp:k,description:P,errorMessage:T},t,n),Y=Gt(I,H,R,{role:null,"aria-roledescription":hn()?null:F("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Z=e=>{document.activeElement!==n.current&&("mouse"===e.pointerType?n.current.focus():e.target.focus())},Q=e["aria-label"]||("string"==typeof e.label?e.label:"");Q||(q=null!=e.label?J.id:e["aria-labelledby"]);let ee=Vt(),te=Vt(),ne=Gt(M,{"aria-label":c||F("increase",{fieldLabel:Q}).trim(),id:q&&!c?ee:null,"aria-labelledby":q&&!c?ee+" "+q:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canIncrement,onPressStart:Z}),re=Gt(_,{"aria-label":u||F("decrease",{fieldLabel:Q}).trim(),id:q&&!u?te:null,"aria-labelledby":q&&!u?te+" "+q:null,"aria-controls":D,excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:!t.canDecrement,onPressStart:Z});return{groupProps:Dt({role:"group","aria-disabled":d,"aria-invalid":"invalid"===m?"true":void 0},V),labelProps:J,inputProps:Y,incrementButtonProps:ne,decrementButtonProps:re,errorMessageProps:X,descriptionProps:$}}var Ec={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};var kc=h((function(e){return I.jsx(qs,E({type:"item",styles:Ec,preventDefault:!0,icon:"up"===e.direction?I.jsx(We,{},void 0):I.jsx(Ve,{},void 0),mods:{up:"up"===e.direction,down:"down"===e.direction}},e),void 0)}));var Pc=Object.assign(h((function(e,t){var n=!(e=Ha(e=Ii(e))).hideStepper,r=ui().locale,i=Hs(E(E({},e),{locale:r})),o=a(null),l=Sc(e,i,o),s=l.groupProps,u=l.labelProps,c=l.inputProps,d=l.incrementButtonProps,p=l.decrementButtonProps;return I.jsx(as,E({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:s,suffixPosition:"after",suffix:n?I.jsxs(ba,E({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[I.jsx(kc,E({direction:"up"},d),void 0),I.jsx(kc,E({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),Tc={};function Cc(e,t,n){return"Number"===(e=e||"")?{value:null!=t?t:null,onChange:n}:"Text"===e?{value:"string"==typeof t||"number"==typeof t?String(t):"",onChange:n}:"Checkbox"===e?{isSelected:null!=t&&t,isIndeterminate:!1,onChange:n}:"CheckboxGroup"===e?{value:null!=t?t:[],onChange:n}:"ComboBox"===e?{inputValue:null!=t?t:"",onInputChange:n}:"Select"===e?{selectedKey:null!=t?t:null,onSelectionChange:n}:{value:null!=t?t:null,onChange:n}}function Oc(e){var t=Ha(e),n=t.type,r=t.id,a=t.idPrefix,l=t.children,s=t.name,u=t.form,c=t.rules,p=t.label,h=t.validateTrigger,g=t.validationState,v=t.message,m=O(o((function(){return r||function(e){Tc[e]||(Tc[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(Tc[e].includes(t));return Tc[e].push(t),t}(a?a+"_"+s:s)})),1)[0];i((function(){return function(){r||function(e,t){Tc[e]=Tc[e].filter((function(e){return e!==t}))}(a?a+"_"+s:s,m)}}),[]);var b=null==u?void 0:u.getFieldInstance(s),y=c&&c.find((function(e){return e.required}));if(i((function(){b?(b.rules=c,u.forceReRender()):u.createField(s)}),[b]),!s)return console.error("invalid form name:",s),null;if(!u)return console.error("form field requires declared form instance"),null;if("function"==typeof l&&(l=l(u)),!l)return null;var x=d.only(l);n=n||x.type.cubeInputType||"Text";var w,S="NumberInput"===(w=(w=n)||"")||w.includes("Input")||(w.includes("TextArea")?"onBlur":"onChange");if(!b)return f(x,la(x.props,E(E({},Cc(n)),{name:s,id:m})));h||(h=S);var P={id:m,name:s,onBlur:function(){"onBlur"===h&&setTimeout((function(){u.validateField(s).catch((function(){}))}))}};g&&(P.validationState=g),y&&(P.isRequired=!0),p&&(P.label=p),v&&(P.message=v),b&&b.errors&&b.errors.length&&(g||(P.validationState="invalid"),v||(P.message=b.errors[0])),Object.assign(P,Cc(n,null==b?void 0:b.value,(function(e){u.setFieldValue(s,e,!0);var t=u.getFieldInstance(s);("onChange"===h||t&&t.errors&&t.errors.length)&&u.validateField(s).catch((function(){}))})));var T=x.props,C=T.onChange,N=T.onSelectionChange,j=k(T,["onChange","onSelectionChange"]);return f(x,la(j,P,C?{onChange:C}:{},N?{onSelectionChange:N}:{}))}var Nc=N(N(N([],O(ya),!1),O(Ea),!1),O(Sa),!1),jc={display:"inline",margin:"0"},Ac={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},Lc=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.ellipsis,a=e.css,l=e.nowrap,s=k(e,["as","qa","block","ellipsis","css","nowrap"]),u=oo(s,Nc,E(E(E({},jc),{whiteSpace:l?"nowrap":"initial"}),o?{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:"max 100%"}:null),Ac);return a=a||"",I.jsx(ba,E({as:n||"span",qa:r||"Text",block:!(!i&&!o),css:a},Da(s,{eventProps:!0}),{styles:u,ref:t}),void 0)})),Fc=Object.assign(Lc,{Minor:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#dark",weight:600},e),void 0)})),Selection:h((function(e,t){return I.jsx(Fc,E({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Dc={gridArea:"heading",display:"block",color:"#dark"},Rc=N(N(N(N(N([],O(ya),!1),O(Ea),!1),O(wa),!1),O(Sa),!1),O(xa),!1),Ic={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},Mc=h((function(e,t){var n=e.qa,r=e.as,i=e.level,o=k(e,["qa","as","level"]),a="h"+(i||1),l=oo(o=ca(o,"heading"),Rc,E(E({},Dc),{preset:a}),Ic);return I.jsx(Fc,E({qa:n||"Title",as:r||a},Da(o,{eventProps:!0}),{styles:l,ref:t}),void 0)})),_c=Object.assign(Mc,{Danger:h((function(e,t){return I.jsx(_c,E({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return I.jsx(_c,E({ref:t,color:"#success-text"},e),void 0)}))}),zc={preset:"p3",color:"#dark.75",display:"block"},Kc=N(N([],O(Ta),!1),O(Ea),!1),Vc=h((function(e,t){var n=oo(e,Kc,zc);return I.jsx(Fc,E({},e,{as:"p",styles:n,ref:t}),void 0)}));var Uc=Object.assign(h((function(e,t){var n=(e=Ii(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,s=e.isReadOnly,c=void 0!==s&&s,d=e.isRequired,p=void 0!==d&&d,f=e.onChange,h=e.rows,g=k(e,["autoSize","isDisabled","isReadOnly","isRequired","onChange","rows"]);h=h||3;var v=O(jt(e.value,e.defaultValue,(function(){})),2),m=v[0],b=v[1],y=a(null),x=l((function(){if(r&&y.current){var e=y.current,t=e.style.alignSelf,n=getComputedStyle(e);e.style.alignSelf="start",e.style.height="auto",e.style.height=e.scrollHeight?"calc("+e.scrollHeight+"px + (2 * var(--border-width)))":parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.lineHeight)*(h||3)+2+"px",e.style.alignSelf=t}}),[y]);u((function(){y.current&&x()}),[x,m,y]);var w=Ns(E(E({},e),{onChange:Wt(f,b),inputElementType:"textarea"}),y),S=w.labelProps,P=w.inputProps;return I.jsx(as,E({},g,{ref:t,inputRef:y,labelProps:S,inputProps:P,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),Bc=h((function(e,t){return e=ca(e,"buttonGroup"),I.jsx(es,E({gridArea:"buttonGroup",ref:t},e),void 0)}));function Wc(e){return null}function Gc(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}Wc.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||null!=n&&n.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:Gc(e),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(i){let e=[];t.Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let qc=Wc;class Jc{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,Hc((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:r}=e;if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];t.Children.forEach(n,(t=>{e.push(t)}));let r=0;for(let t of e){let e=this.getFullNode({element:t,index:r},{});for(let t of e)r++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return""+r+t.key;let i=t.value;if(null!=i){var o;let e=null!=(o=i.key)?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?r+"."+t.index:"$."+t.index}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,n,r,i){let o=e.element;if(!o&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=i?i.key:null,void(yield t);o=n.renderer(e.value)}if(t.isValidElement(o)){let t=o.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error("Unknown element <"+e+"> in collection.")}let a=t.getCollectionNode(o.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let t=s.value;e.index=l;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(Dt({},t,{key:u,index:l,wrapper:$c(e.wrapper,t.wrapper)}),this.getChildState(n,t),r?""+r+o.key:o.key,i)];for(let n of c){if(n.value=t.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error("Unsupported type <"+Xc(n.type)+"> in <"+Xc(i.type)+">. Only <"+Xc(e.type)+"> is supported.");l++,yield n}s=a.next(c)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Hc((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+l.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}}function Hc(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function $c(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Xc(e){return e[0].toUpperCase()+e.slice(1)}const Yc=new WeakMap;function Zc(e){let t=Yc.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Zc(n.childNodes):t++;return Yc.set(e,t),t}var Qc={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},ed=N(N([],O(Ta),!1),O(Ea),!1),td=h((function(e,t){var n=e.as,r=e.label,i=k(e,["as","label"]),o=i.isDisabled,a=oo(i,ed,Qc),l=mi(t),s=Il({isDisabled:o}),u=s.hoverProps,c=s.isHovered,d=zl({isDisabled:o}),p=d.focusProps,f=d.isFocused,h=Ts(i,l).focusableProps;return I.jsx(ba,E({"data-is-hovered":c&&!o?"":null,"data-is-focused":f&&!o?"":null,"data-is-disabled":o||null,"aria-label":r},Gt(u,p,h,Da(i,{eventProps:!0})),{tabIndex:i.excludeFromTabOrder||o?-1:0,as:n,styles:a,ref:l}),void 0)})),nd={display:"grid",flow:"row",gap:"@(column-gap, 0)"},rd={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},id=h((function(e,t){var n=oo(e,Ta,nd,rd);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),od={display:"flex",flow:"row",gap:"@(column-gap, 0)"},ad={align:"alignItems",justify:"justifyItems"},ld=h((function(e,t){var n=oo(e,Ta,od,ad);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),sd={display:"inline",cursor:"pointer",fontWeight:500,padding:"0",radius:{"":"0",focused:"1r"},color:{"":"#purple-text",hovered:"#purple"},shadow:{"":"0 @border-width 0 0 #purple-03.20",focused:"0 0 0 @outline-width #purple-03"}},ud=N(N(N(N([],O(ya),!1),O(Sa),!1),O(xa),!1),O(Ea),!1),cd=h((function(e,t){var n=E(E(E({},sd),Ai("Link",e)),oo(e,ud));return I.jsx(Ks,E({as:"a",css:"\n white-space: nowrap;\n transition: color var(--transition) linear,\n background var(--transition) linear, box-shadow var(--transition) linear,\n border-radius var(--transition) linear;\n text-decoration: none;\n"},Da(e,{eventProps:!0}),{to:e.to,styles:n,ref:t}),void 0)})),dd={display:"block",flow:"column"},pd=Ta,fd=h((function(e,t){var n=oo(e,pd,dd);return I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),hd={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"239, 64, 74",danger:"255, 100, 109","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5"};function gd(e,t){return void 0===t&&(t=1),"rgba("+hd[e]+", "+t+")"}var vd={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px",transition:"120ms","clear-color":"transparent","border-color":gd("dark",.1),"shadow-color":gd("dark-03",.1),"draft-color":gd("dark",.2),"minor-color":gd("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":gd("note",.1),"note-text-color":gd("dark",.65),"danger-bg-color":gd("danger",.05),"danger-bg-hover-color":gd("danger",.1),"primary-1":gd("purple",.9),"primary-2":gd("purple",.8),"primary-3":gd("purple",.7),"primary-4":gd("purple",.6),"primary-5":gd("purple",.5),"primary-6":gd("purple",.4),"primary-7":gd("purple",.3),"primary-8":gd("purple",.2),"primary-9":gd("purple",.1),"primary-10":gd("purple",0),"dark-75-color":gd("dark",.75),"primary-color":gd("purple"),"pink-8-color":gd("pink",.2),"pink-9-color":gd("pink",.1),"disabled-color":gd("dark-01",.25),"disabled-text-color":gd("dark-01",.25),"disabled-bg":gd("dark-05",.2),"disabled-bg-color":gd("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"22px","text-letter-spacing":"0.02em","small-font-size":"12px","small-line-height":"18px","small-letter-spacing":"0.04em","sm-font-size":"var(--small-font-size)","sm-line-height":"var(--small-line-height)","sm-letter-spacing":"var(--small-letter-spacing)","medium-font-size":"14px","medium-line-height":"20px","medium-letter-spacing":"0.02em","md-font-size":"var(--medium-font-size)","md-line-height":"var(--medium-line-height)","md-letter-spacing":"var(--medium-letter-spacing)","large-font-size":"16px","large-line-height":"22px","lg-font-size":"var(--large-font-size)","lg-line-height":"var(--large-line-height)","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0.01em","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0.02em","h5-font-weight":"700","h5s-font-size":"16px","h5s-line-height":"22px","h5s-letter-spacing":"0.02em","h5s-font-weight":"600","h5m-font-size":"16px","h5m-line-height":"22px","h5m-letter-spacing":"0.02em","h5m-font-weight":"500","h6-font-size":"14px","h6-line-height":"20px","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0.01em","t2-font-weight":"400","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0.02em","t3-font-weight":"400","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0.025em","t4-font-weight":"400","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0.02em","t4m-font-weight":"500","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0.01em","p2-font-weight":"400","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0.02em","p3-font-weight":"400","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0.025em","p4-font-weight":"400","tag-font-size":"12px","tag-line-height":"12px","tag-letter-spacing":"0.02em","tag-font-weight":"500","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)"};Object.keys(hd).forEach((function(e){vd[e+"-color"]=gd(e),vd[e+"-color-rgb"]=hd[e]}));var md,bd=b(md||(md=j(["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'],["\n body {\n ","\n }\n\n html {\n --font: ",', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n --monospace-font: ',"Menlo, Monaco, Consolas, 'Courier New', monospace;\n }\n\n body {\n background-color: white !important;\n font-family: var(--font);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0;\n padding: 0;\n color: var(--dark-75-color);\n font-size: var(--medium-font-size);\n line-height: var(--medium-line-height);\n letter-spacing: var(--medium-letter-spacing);\n font-weight: 400;\n }\n\n .cube-notification-container {\n min-width: 288px;\n max-width: 340px;\n width: calc(100vw - 32px);\n position: fixed;\n top: 32px;\n right: 16px;\n z-index: 999999;\n }\n\n .cube-notifications {\n display: grid;\n grid-auto-flow: row;\n grid-template-columns: 1fr;\n }\n\n .cube-notification-enter {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n }\n\n .cube-notification-enter-active {\n opacity: 1;\n max-height: 56px;\n margin-bottom: 8px;\n transform: translate(0, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n .cube-notification-exit {\n opacity: 1;\n margin-bottom: 8px;\n max-height: 56px;\n transform: translate(0, 0);\n }\n\n .cube-notification-exit-active {\n opacity: 0;\n max-height: 0px;\n margin-bottom: 0px;\n transform: translate(100%, 0);\n transition: all 300ms ease-in;\n\n & > * {\n margin-bottom: 0px;\n }\n }\n\n b {\n font-weight: 600;\n }\n\n [type=reset], [type=submit], button, html [type=button] {\n -webkit-appearance: none;\n }\n\n code {\n font-family: var(--monospace-font);\n }\n\n ",'\n\n // Prism Code\n code[class*="language-"],\n pre[class*="language-"] {\n color: var(--dark-color);\n background: none;\n font-family: "Source Code Pro", Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n border-radius: 4px;\n border: none;\n\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\n code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n pre[class*="language-"]::selection, pre[class*="language-"] ::selection,\n code[class*="language-"]::selection, code[class*="language-"] ::selection {\n text-shadow: none;\n /*background: #b3d4fc;*/\n }\n\n @media print {\n code[class*="language-"],\n pre[class*="language-"] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*="language-"] {\n overflow: auto;\n }\n\n :not(pre) > code[class*="language-"],\n pre[class*="language-"] {\n background: transparent;\n }\n\n /* Inline code */\n :not(pre) > code[class*="language-"] {\n border-radius: .3em;\n white-space: normal;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: var(--dark-04-color);\n }\n\n .token.keyword,\n .token.tag,\n .token.operator,\n .token.punctuation {\n color: #993388;\n }\n\n .namespace {\n opacity: .7;\n }\n\n .token.property,\n .token.boolean,\n .token.constant,\n .token.symbol,\n .token.deleted {\n color: var(--pink-color);\n }\n\n .token.entity,\n .token.number {\n color: #30A666;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: var(--purple-text-color);\n }\n\n .token.url,\n .language-css .token.string,\n .style .token.string {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.attr-value {\n color: var(--dark-color);\n }\n\n .token.atrule,\n .token.keyword {\n font-weight: 500;\n }\n\n .token.function,\n .token.class-name {\n color: var(--pink-color);\n }\n\n .token.regex,\n .token.important,\n .token.variable {\n color: var(--pink-color);\n }\n\n .token.important,\n .token.bold {\n font-weight: bold;\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.entity {\n cursor: help;\n }\n'])),(function(e){var t=e.tokens;return Object.entries(E(E({},vd),t)).map((function(e){var t=O(e,2);return"--"+t[0]+": "+t[1]+";"})).join("\n ")}),(function(e){return e.font||"Inter"}),(function(e){return e.monospaceFont+", "||""}),(function(e){var t=e.fonts,n=e.publicUrl;return!1===t?"":function(e){var t=e.publicUrl,n=void 0===t?"":t;return"\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Regular.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Regular.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Medium.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Medium.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url("+n+"/fonts/Inter-SemiBold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-SemiBold.woff) format('woff');\n }\n @font-face {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/Inter-Bold.woff2) format('woff2'),\n url("+n+"/fonts/Inter-Bold.woff) format('woff');\n }\n @font-face {\n font-family: 'Source Code Pro';\n src: url('"+n+"/fonts/SourceCodePro-Regular.woff2') format('woff2'),\n url('"+n+"/fonts/SourceCodePro-Regular.woff') format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Regular.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Regular.woff) format('woff');\n }\n\n @font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url("+n+"/fonts/JetBrainsMono-Bold.woff2) format('woff2'),\n url("+n+"/fonts/JetBrainsMono-Bold.woff) format('woff');\n }\n"}({publicUrl:n})})),yd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),xd=L(yd),wd=F((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),Sd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default})),Ed=F((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop:e.scrollTop;r?r.scrollTo("pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft,t):e.scrollTop=t};var n=wd(Sd);e.exports=t.default})),kd=L(Ed),Pd=F((function(e,t){t.__esModule=!0,t.default=function(e,t){var r=(0,n.default)(e);if(void 0===t)return r?"pageXOffset"in r?r.pageXOffset:r.document.documentElement.scrollLeft:e.scrollLeft;r?r.scrollTo(t,"pageYOffset"in r?r.pageYOffset:r.document.documentElement.scrollTop):e.scrollLeft=t};var n=wd(Sd);e.exports=t.default})),Td=L(Pd),Cd=F((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Od=F((function(e,t){t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default})),Nd=F((function(e,t){t.__esModule=!0,t.default=void 0;var n=wd(Od).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r;function r(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=n,e.exports=t.default})),jd=F((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e),o=(0,r.default)(t),a=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:l.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var n=wd(Nd),r=wd(Sd),i=wd(yd);e.exports=t.default})),Ad=L(jd),Ld=F((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default})),Fd=F((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=wd(Ld),r=/^-ms-/;e.exports=t.default})),Dd=F((function(e,t){t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default})),Rd=F((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=wd(Dd),r=/^ms-/;e.exports=t.default})),Id=F((function(e,t){t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,n.default)(t))&&(t="styleFloat");var a=e.currentStyle[t]||null;if(null==a&&o&&o[t]&&(a=o[t]),i.test(a)&&!r.test(t)){var l=o.left,s=e.runtimeStyle,u=s&&s.left;u&&(s.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=l,u&&(s.left=u)}return a}}};var n=wd(Fd),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),Md=F((function(e,t){t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default})),_d=F((function(e,t){t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var n,r,i,o,a,l,s,u,c,d,p,f=wd(Od),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=s,t.transitionTiming=l,t.transitionDuration=a,t.transitionProperty=o,t.animationDelay=p,t.animationTiming=d,t.animationDuration=c,t.animationName=u,f.default){var g=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var l=i[a];if(l+"TransitionProperty"in n){o="-"+l.toLowerCase(),e=r[l]("TransitionEnd"),t=r[l]("AnimationEnd");break}}!e&&"transitionProperty"in n&&(e="transitionend");!t&&"animationName"in n&&(t="animationend");return n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();n=g.prefix,t.transitionEnd=r=g.transitionEnd,t.animationEnd=i=g.animationEnd,t.transform=h=n+"-"+h,t.transitionProperty=o=n+"-transition-property",t.transitionDuration=a=n+"-transition-duration",t.transitionDelay=s=n+"-transition-delay",t.transitionTiming=l=n+"-transition-timing-function",t.animationName=u=n+"-animation-name",t.animationDuration=c=n+"-animation-duration",t.animationTiming=d=n+"-animation-delay",t.animationDelay=p=n+"-animation-timing-function"}var v={transform:h,end:r,property:o,timing:l,delay:s,duration:a};t.default=v})),zd=F((function(e,t){t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default})),Kd=F((function(e,t){t.__esModule=!0,t.default=function(e,t,l){var s="",u="",c=t;if("string"==typeof t){if(void 0===l)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=l}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":s+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(s+=_d.transform+": "+u+";");e.style.cssText+=";"+s};var n=wd(Fd),r=wd(Rd),i=wd(Id),o=wd(Md),a=wd(zd);e.exports=t.default})),Vd=L(Kd),Ud=F((function(e,t){t.__esModule=!0,t.default=function(e){var t=(0,n.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==i(e)&&"static"===(0,r.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var n=wd(yd),r=wd(Kd);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),Bd=L(F((function(e,t){t.__esModule=!0,t.default=function(e,t){var s,u={top:0,left:0};"fixed"===(0,l.default)(e,"position")?s=e.getBoundingClientRect():(t=t||(0,i.default)(e),s=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,l.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,l.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},s,{top:s.top-u.top-(parseInt((0,l.default)(e,"marginTop"),10)||0),left:s.left-u.left-(parseInt((0,l.default)(e,"marginLeft"),10)||0)})};var n=wd(Cd),r=wd(jd),i=wd(Ud),o=wd(Ed),a=wd(Pd),l=wd(Kd);e.exports=t.default})));const Wd={top:"top",bottom:"top",left:"left",right:"left"},Gd={top:"bottom",bottom:"top",left:"right",right:"left"},qd={top:"left",left:"top"},Jd={top:"height",left:"width"},Hd={};let $d="undefined"!=typeof window&&window.visualViewport;function Xd(e,t,n,r,i){let o=r.scroll[e],a=r[Jd[e]],l=t-i-o,s=t+i-o+n;return l<0?-l:s>a?Math.max(a-s,-l):0}function Yd(e){if(Hd[e])return Hd[e];let[t,n]=e.split(" "),r=Wd[t]||"right",i=qd[r];Wd[n]||(n="center");let o=Jd[r],a=Jd[i];return Hd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},Hd[e]}function Zd(e,t,n,r,i,o,a,l){let{placement:s,crossPlacement:u,axis:c,crossAxis:d,size:p,crossSize:f}=r,h={};h[d]=e[d],"center"===u?h[d]+=(e[f]-n[f])/2:u!==d&&(h[d]+=e[f]-n[f]),h[d]+=o;let g=e[d]+e[f]/2-n[f],v=e[d]+e[f]/2;if(h[d]=Math.min(Math.max(g,h[d]),v),s===c){const n=l?a[p]:t[p];h[Gd[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Qd(e,t,n,r,i,o){let{placement:a,axis:l,size:s}=o;return a===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[Gd[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[Gd[l]]-i)}function ep(e,t,n,r,i,o,a,l,s,u,c,d){let p=Yd(e),{size:f,crossAxis:h,crossSize:g,placement:v,crossPlacement:m}=p,b=Zd(t,l,n,p,u,c,s,d),y=u,x=Qd(l,s,t,i,o+u,p);if(a&&r[f]>x){let e=Yd(Gd[v]+" "+m),r=Zd(t,l,n,e,u,c,s,d);Qd(l,s,t,i,o+u,e)>x&&(p=e,b=r,y=u)}let w=Xd(h,b[h],n[g],l,o);b[h]+=w;let S=function(e,t,n,r,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(i.top+i.bottom+o)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}(b,l,s,t,i,o);n.height=Math.min(n.height,S),b=Zd(t,l,n,p,y,c,s,d),w=Xd(h,b[h],n[g],l,o),b[h]+=w;let E={};return E[h]=t[h]-b[h]+t[g]/2,{position:b,maxHeight:S,arrowOffsetLeft:E.left,arrowOffsetTop:E.top,placement:p.placement}}function tp(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u}=e,c=r.offsetParent||document.body,d="BODY"===c.tagName;const p=window.getComputedStyle(c).position;let f=!!p&&"static"!==p,h=d?Ad(n):Bd(n,c);d||(h.top+=parseInt(Vd(n,"marginTop"),10)||0,h.left+=parseInt(Vd(n,"marginLeft"),10)||0);let g=Ad(r),v=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);var m;return g.width+=v.left+v.right,g.height+=v.top+v.bottom,ep(t,h,g,{top:(m=i).scrollTop,left:m.scrollLeft,width:m.scrollWidth,height:m.scrollHeight},v,o,a,function(e){let t=0,n=0,r=0,i=0,o={};var a,l;return"BODY"===e.tagName?(t=null!=(a=null==$d?void 0:$d.width)?a:document.documentElement.clientWidth,n=null!=(l=null==$d?void 0:$d.height)?l:document.documentElement.clientHeight,o.top=kd(xd(e).documentElement)||kd(e),o.left=Td(xd(e).documentElement)||Td(e)):(({width:t,height:n,top:r,left:i}=Ad(e)),o.top=kd(e),o.left=Td(e)),{width:t,height:n,scroll:o,top:r,left:i}}(l),"BODY"===l.tagName?Ad(c):Bd(c,l),s,u,f)}const np=new WeakMap;let rp="undefined"!=typeof window&&window.visualViewport;function ip(e){let{direction:t}=ui(),{targetRef:n,overlayRef:r,scrollRef:s=r,placement:u="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:p=("undefined"!=typeof document?document.body:null),offset:f=0,crossOffset:h=0,shouldUpdatePosition:g=!0,isOpen:v=!0,onClose:m}=e,[b,y]=o({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[g,u,r.current,n.current,s.current,c,d,p,f,h,v,t],w=l((()=>{!1!==g&&v&&r.current&&n.current&&s.current&&p&&y(tp({placement:op(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:s.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;zt(w,x),zt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);zt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==rp||rp.addEventListener("resize",t),()=>{null==rp||rp.removeEventListener("resize",t)}}),[w]);let k=l((()=>{E.current||m()}),[m,E]);return function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;i((()=>{if(!n)return;let e=e=>{let n=e.target;if(!t.current||!n.contains(t.current))return;let i=r||np.get(t.current);i&&i()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}({triggerRef:n,isOpen:v,onClose:m?k:void 0}),{overlayProps:{style:Dt({position:"absolute",zIndex:1e5},b.position,{maxHeight:b.maxHeight})},placement:b.placement,arrowProps:{style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:w}}function op(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ap=[];function lp(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&ap.push(t),()=>{let e=ap.indexOf(t);e>=0&&ap.splice(e,1)})),[o,t]);let c=()=>{ap[ap.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,l=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;l.onInteractOutside=n,l.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{Ml(e,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(e),l.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{l.isPointerDown&&l.onInteractOutside&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))},r=e=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&Ml(e,t)&&(l.isPointerDown=!1,l.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,l,r])}({ref:t,onInteractOutside:l?e=>{u&&!u(e.target)||(ap[ap.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||ap[ap.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=jl({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:Dt({onKeyDown:e=>{"Escape"!==e.key||s||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function sp(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&np.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let l=Vt();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?l:null},overlayProps:{id:l}}}const up="undefined"!=typeof window&&window.visualViewport,cp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dp(e){void 0===e&&(e={});let{isDisabled:t}=e;zt((()=>{if(!t)return hn()?function(){let e,t=0,n=n=>{e=on(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},r=n=>{if(e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;(i<=0&&r>t||i>=o&&r<t)&&n.preventDefault(),t=r},i=e=>{let t=e.target;t instanceof HTMLInputElement&&!cp.has(t.type)&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))},o=e=>{let t=e.target;t instanceof HTMLInputElement&&!cp.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",up&&(up.height<window.innerHeight?requestAnimationFrame((()=>{hp(t)})):up.addEventListener("resize",(()=>hp(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},l=window.pageXOffset,s=window.pageYOffset,u=Wt(pp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),pp(document.documentElement,"overflow","hidden"),pp(document.body,"marginTop","-"+s+"px"));window.scrollTo(0,0);let c=Wt(fp(document,"touchstart",n,{passive:!1,capture:!0}),fp(document,"touchmove",r,{passive:!1,capture:!0}),fp(document,"touchend",i,{passive:!1,capture:!0}),fp(document,"focus",o,!0),fp(window,"scroll",a));return()=>{u(),c(),window.scrollTo(l,s)}}():Wt(pp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),pp(document.documentElement,"overflow","hidden"))}),[t])}function pp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function fp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function hp(e){let t=on(e);if(t!==document.documentElement&&t!==document.body){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}}const gp=t.createContext(null);function vp(e){let{children:n}=e,i=r(gp),[a,l]=o(0),u=s((()=>({parent:i,modalCount:a,addModal(){l((e=>e+1)),i&&i.addModal()},removeModal(){l((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(gp.Provider,{value:u},n)}function mp(e){let t=r(gp);if(!t)throw new Error("Modal is not contained within a provider");return i((()=>{if((null==e||!e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}}),[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null!=e&&e.isDisabled)}}}var bp;bp=JSON.parse('{"dismiss":"تجاهل"}');var yp;yp=JSON.parse('{"dismiss":"Отхвърляне"}');var xp;xp=JSON.parse('{"dismiss":"Odstranit"}');var wp;wp=JSON.parse('{"dismiss":"Luk"}');var Sp;Sp=JSON.parse('{"dismiss":"Schließen"}');var Ep;Ep=JSON.parse('{"dismiss":"Απόρριψη"}');var kp;kp=JSON.parse('{"dismiss":"Dismiss"}');var Pp;Pp=JSON.parse('{"dismiss":"Descartar"}');var Tp;Tp=JSON.parse('{"dismiss":"Lõpeta"}');var Cp;Cp=JSON.parse('{"dismiss":"Hylkää"}');var Op;Op=JSON.parse('{"dismiss":"Rejeter"}');var Np;Np=JSON.parse('{"dismiss":"התעלם"}');var jp;jp=JSON.parse('{"dismiss":"Odbaci"}');var Ap;Ap=JSON.parse('{"dismiss":"Elutasítás"}');var Lp;Lp=JSON.parse('{"dismiss":"Ignora"}');var Fp;Fp=JSON.parse('{"dismiss":"閉じる"}');var Dp;Dp=JSON.parse('{"dismiss":"무시"}');var Rp;Rp=JSON.parse('{"dismiss":"Atmesti"}');var Ip;Ip=JSON.parse('{"dismiss":"Nerādīt"}');var Mp;Mp=JSON.parse('{"dismiss":"Lukk"}');var _p;_p=JSON.parse('{"dismiss":"Negeren"}');var zp;zp=JSON.parse('{"dismiss":"Zignoruj"}');var Kp;Kp=JSON.parse('{"dismiss":"Descartar"}');var Vp;Vp=JSON.parse('{"dismiss":"Dispensar"}');var Up;Up=JSON.parse('{"dismiss":"Revocare"}');var Bp;Bp=JSON.parse('{"dismiss":"Пропустить"}');var Wp;Wp=JSON.parse('{"dismiss":"Zrušiť"}');var Gp;Gp=JSON.parse('{"dismiss":"Opusti"}');var qp;qp=JSON.parse('{"dismiss":"Odbaci"}');var Jp;Jp=JSON.parse('{"dismiss":"Avvisa"}');var Hp;Hp=JSON.parse('{"dismiss":"Kapat"}');var $p;$p=JSON.parse('{"dismiss":"Скасувати"}');var Xp;Xp=JSON.parse('{"dismiss":"取消"}');var Yp;Yp=JSON.parse('{"dismiss":"關閉"}');const Zp={"ar-AE":ou(bp).default,"bg-BG":ou(yp).default,"cs-CZ":ou(xp).default,"da-DK":ou(wp).default,"de-DE":ou(Sp).default,"el-GR":ou(Ep).default,"en-US":ou(kp).default,"es-ES":ou(Pp).default,"et-EE":ou(Tp).default,"fi-FI":ou(Cp).default,"fr-FR":ou(Op).default,"he-IL":ou(Np).default,"hr-HR":ou(jp).default,"hu-HU":ou(Ap).default,"it-IT":ou(Lp).default,"ja-JP":ou(Fp).default,"ko-KR":ou(Dp).default,"lt-LT":ou(Rp).default,"lv-LV":ou(Ip).default,"nb-NO":ou(Mp).default,"nl-NL":ou(_p).default,"pl-PL":ou(zp).default,"pt-BR":ou(Kp).default,"pt-PT":ou(Vp).default,"ro-RO":ou(Up).default,"ru-RU":ou(Bp).default,"sk-SK":ou(Wp).default,"sl-SI":ou(Gp).default,"sr-SP":ou(qp).default,"sv-SE":ou(Jp).default,"tr-TR":ou(Hp).default,"uk-UA":ou($p).default,"zh-CN":ou(Xp).default,"zh-TW":ou(Yp).default};function Qp(e){let{onDismiss:n}=e,r=di(Zp);return t.createElement(Zs,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let ef=new WeakMap;var tf={display:"block"},nf=N(N([],O(ya),!1),O(wa),!1),rf=h((function(e,t){var n=e.children,r=e.tokens,i=e.fonts,o=e.publicUrl,a=e.router,l=e.font,s=e.monospaceFont,u=k(e,["children","tokens","fonts","publicUrl","router","font","monospaceFont"]),c=oo(u,nf,tf),d=I.jsxs(ba,E({ref:t,className:"root"},Da(u,{eventProps:!0}),{styles:c},{children:[I.jsx(bd,{tokens:r,publicUrl:o,fonts:i,font:l,monospaceFont:s},void 0),I.jsx(vp,{children:n},void 0)]}),void 0);return a?I.jsx(Ri,E({router:a},{children:d}),void 0):d})),of=F((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=o[l])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var s=t[l],u=i.util.type(s);"Object"!==u||o[a(s)]?"Array"!==u||o[a(s)]||(o[a(s)]=!0,e(s,n,l,o)):(o[a(s)]=!0,e(s,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),l=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:l,code:n.textContent};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new s;return u(i,i.head,e),l(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function l(e,t,n,r,s,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],v=g.inside,m=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var x=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,x+"g")}for(var w=g.pattern||g,S=r.next,E=s;S!==t.tail&&!(d&&E>=d.reach);E+=S.value.length,S=S.next){var k=S.value;if(t.length>e.length)return;if(!(k instanceof o)){var P,T=1;if(b){if(!(P=a(w,E,e,m)))break;var C=P.index,O=P.index+P[0].length,N=E;for(N+=S.value.length;C>=N;)N+=(S=S.next).value.length;if(E=N-=S.value.length,S.value instanceof o)continue;for(var j=S;j!==t.tail&&(N<O||"string"==typeof j.value);j=j.next)T++,N+=j.value.length;T--,k=e.slice(E,N),P.index-=E}else if(!(P=a(w,0,k,m)))continue;C=P.index;var A=P[0],L=k.slice(0,C),F=k.slice(C+A.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(L&&(R=u(t,R,L),E+=L.length),c(t,R,T),S=u(t,R,new o(p,v?i.tokenize(A,v):A,y,A)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};l(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var l="";for(var s in o.attributes)l+=" "+s+'="'+(o.attributes[s]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var d=i.util.currentScript();function p(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
33
33
|
/**
|
|
34
34
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
35
35
|
*
|
|
@@ -37,7 +37,7 @@ object-assign
|
|
|
37
37
|
* @author Lea Verou <https://lea.verou.me>
|
|
38
38
|
* @namespace
|
|
39
39
|
* @public
|
|
40
|
-
*/e.exports&&(e.exports=t),void 0!==A&&(A.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(o)){a.code="",l.setAttribute(n,r);var u=l.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=l.getAttribute("data-src"),d=a.language;if("none"===d){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=e[p]||p}s(u,d),s(l,d);var f=t.plugins.autoloader;f&&f.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,i),u.textContent=h.responseText,t.highlightElement(u)):(l.setAttribute(n,"failed"),h.status>=400?u.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):u.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(o),i=0;n=r[i++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));var af=h((function(e){var t=e.style,n=e.code,r=e.language,o=void 0===r?"javascript":r;return i((function(){of.highlightAll()})),I.jsx("pre",E({className:"cube-prism-code",style:t},{children:I.jsx("code",E({className:"language-"+o},{children:n}),void 0)}),void 0)})),lf={gridArea:"divider",display:"block",height:"1bw 1bw",fill:"#border",border:"0",margin:"0"},sf=h((function(e,t){var n=oo(e=ca(e,"divider"),Ca,lf);return I.jsx(ba,E({as:"hr","data-id":"Divider"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),uf={display:"contents"},cf=h((function(e,t){var n=ha(t),r=e.children,a=e.columns,s=void 0===a?2:a,u=e.gap,c=void 0===u?"0":u,d=e.width,p=e.initialWidth,f=O(o(d||p||"100vw"),2),h=f[0],g=f[1],v=l((function(){var e,t=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.parentElement;if(t){var r=getComputedStyle(t),i=t.clientWidth-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight);g(i+"px")}}),[n,s,c]);return i((function(){if(!d){var e,t=n&&n.current&&n.current.parentNode;if(t)return Promise.resolve().then((function(){return qb})).then((function(e){return e.ResizeSensor})).then((function(n){e=new n(t,v)})),function(){e&&e.detach()}}}),[v]),i((function(){d||v()}),[v]),I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:E(E({},uf),{"--grid-width":h,"--columns-amount":s,"--column-gap":c,"--column-width":"((@grid-width - (@column-gap * (@columns-amount - 1))) / @columns-amount)"}),ref:n},{children:r}),void 0)})),df={gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x"},pf=N(N([],O(Ta),!1),O(Ea),!1),ff=h((function(e,t){var n=oo(e=ca(e,"content"),pf,df);return I.jsx(ba,E({as:"section"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),hf={gridArea:"header",display:"block",flow:"column"},gf=N(N([],O(Ta),!1),O(Ea),!1),vf=h((function(e,t){var n=ca(e,"header"),r=oo(n,gf,hf);return I.jsx(ba,E({"data-id":"Header",as:"header"},Da(n,{eventProps:!0}),{styles:r,ref:t}),void 0)})),mf={gridArea:"footer",display:"block",flow:"column"},bf=N(N([],O(Ta),!1),O(Ea),!1),yf=h((function(e,t){var n=oo(e=ca(e,"footer"),bf,mf);return I.jsx(ba,E({"data-id":"Footer"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),xf=[[49,.5],[0,25],[49,49],[98,25]];function wf(e){return"transform: translate("+xf[e][0]+"%, "+xf[e][1]+"%);"}var Sf=m.img((function(e){var t=e.index;return"\n display: block;\n position: absolute;\n width: 50%;\n height: 50%;\n\n "+(null!=t?"\n animation-name: dice"+t+";\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-timing-function: ease;\n z-index: 0;\n\n @keyframes dice"+t+" {\n "+(0===t?"\n from {\n "+wf(0)+"\n z-index: 0;\n }\n\n 25% {\n "+wf(0)+"\n z-index: 0;\n }\n\n 50% {\n "+wf(1)+"\n z-index: 0;\n }\n\n 51% {\n z-index: 1;\n }\n\n 75% {\n z-index: 1;\n }\n\n to {\n "+wf(1)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(1===t?"\n from {\n "+wf(1)+"\n z-index: 3;\n }\n\n 25% {\n "+wf(2)+"\n z-index: 3;\n }\n\n 75% {\n "+wf(2)+"\n z-index: 2;\n }\n\n to {\n "+wf(3)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(2===t?"\n from {\n "+wf(3)+"\n z-index: 1;\n }\n\n 50% {\n "+wf(3)+"\n z-index: 0;\n }\n\n 75% {\n "+wf(0)+"\n z-index: 0;\n }\n\n to {\n "+wf(0)+"\n z-index: 0;\n }\n ":"")+"\n }\n ":"")+"\n"})),Ef=function(e){return I.jsx(Sf,E({role:"presentation",src:"data:image/svg+xml,%3Csvg width='36' height='41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.899 10.351l-18 10.25L.1 10.25l18-10.25L35.9 10.351z' fill='%23FAFAFF'/%3E%3Cpath d='M18 41L0 30.75l.101-20.5L18 20.5' fill='%23E5E5F6'/%3E%3Cpath d='M36 30.75L18 41V20.6l17.899-10.25L36 30.75z' fill='%23C0C0EA'/%3E%3C/svg%3E",alt:""},e),void 0)},kf={small:32,medium:64,large:96};function Pf(e){var t=e.size,n=void 0===t?"medium":t,r=k(e,["size"]),i=kf[n]||n||kf.medium;return I.jsxs(ns,E({role:"img","aria-label":"Loading animation",width:i,height:1.1388888889*i,style:{position:"relative"}},r,{children:[I.jsx(Ef,{style:{transform:"translate(0%, 72.5%)"}},void 0),I.jsx(Ef,{style:{transform:"translate(98%, 72.5%)"}},void 0),I.jsx(Ef,{style:{transform:"translate(49%, 96.5%)"}},void 0),I.jsx(Ef,{index:0},void 0),I.jsx(Ef,{index:1},void 0),I.jsx(Ef,{index:2},void 0)]}),void 0)}var Tf,Cf={small:3,default:4,large:6},Of=h((function(e,t){var n=e.size,r=e.spinning,i=e.style,o=e.children,a=k(e,["size","spinning","style","children"]),l=n&&Cf[n]||n||Cf.default;return!1===r?I.jsx(I.Fragment,{children:o},void 0):I.jsx(ns,E({ref:t,role:"img","aria-label":"Loading animation",height:"1em",opacity:".8",style:E({fontSize:8*l,position:"relative"},i||{})},a,{children:I.jsxs("svg",E({xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"inline-block",width:"1em",height:"1em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},{children:[I.jsxs("rect",E({fill:"#7a77ff",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-2.083333333333333s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.5151515151515151s"},void 0)]}),void 0),I.jsxs("rect",E({fill:"#ff6492",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.325757575757576s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.7575757575757576s"},void 0)]}),void 0),I.jsxs("rect",E({fill:"#727290",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.5681818181818182s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"0s"},void 0)]}),void 0)]}),void 0)}),void 0)})),Nf={display:"inline-flex",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center",fill:"#white",border:!0,fontWeight:400},jf=m(h((function(e,t){var n=e.onInput,r=k(e,["onInput"]),i=oo(r,xa,Nf),a=O(o(),2),l=a[0],s=a[1],u=O(o(""),2),c=u[0],d=u[1];return I.jsxs(I.Fragment,{children:[I.jsxs(qs,E({},Da(r,{eventProps:!0}),{styles:i,ref:t},{children:[I.jsx(ns,E({radius:"round",fill:"#purple.10",color:"#dark-02",padding:".5x 1x"},{children:"Choose file"}),void 0),I.jsx(ns,E({color:"#dark-04"},{children:l||"No file selected"}),void 0),I.jsx("input",{type:"file",name:"base64",onInput:function(e){if(e.target){var t=e.target.files[0],r=new FileReader;if(d(""),t)if(t.name.endsWith(".json")){r.onload=function(){var e,i=String(r.result);try{JSON.parse(i),e=btoa(i)}catch(e){return d("Invalid JSON file"),void console.error(e)}n&&n({encoded:e,raw:JSON.parse(i)}),s(t.name)};try{r.readAsText(t)}catch(e){d("Invalid file")}}else d("Incorrect format. JSON file is required")}},accept:".json"},void 0)]}),void 0),c&&I.jsx(Fc.Danger,E({color:"danger"},{children:c}),void 0)]},void 0)})))(Tf||(Tf=j(["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"],["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"]))),Af={display:"block",flow:"column",radius:"1x",fill:"#white",border:!0,padding:"3x"},Lf=h((function(e,t){var n=oo(e,Ta,Af);return I.jsx(ba,E({role:"region"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Ff={display:"block",fill:"#dark.10",height:"2x",opacity:".35"},Df=h((function(e,t){var n=e.size,r=void 0===n?"2x":n,i=e.circle,o=k(e,["size","circle"]),a=oo(o,Ta,E(E({},Ff),{height:r,width:!!i&&r,radius:i?"9999rem":"1r"}));return I.jsx(ba,E({role:"region",css:"\n --placeholder-animation-time: 1.4s;\n --placeholder-animation-size: calc((180rem + 100vw) / 3);\n background-image: linear-gradient(135deg, rgba(var(--dark-color-rgb), .15) 0%, rgba(var(--dark-color-rgb), .15) 5%, rgba(var(--dark-color-rgb), 0) 35%, rgba(var(--dark-03-color-rgb), .2) 50%, rgba(var(--dark-03-color-rgb), 0) 65%, rgba(var(--dark-color-rgb), .15) 95%, rgba(var(--dark-color-rgb), .15) 100%);\n background-repeat: repeat;\n background-size: var(--placeholder-animation-size);\n animation: placeholder-animation var(--placeholder-animation-time) linear infinite;\n\n @keyframes placeholder-animation {\n 0% {\n background-position: 0 0;\n }\n 100% {\n background-position: var(--placeholder-animation-size) 0;\n }\n }\n"},Da(o,{eventProps:!0}),{styles:a,ref:t}),void 0)})),Rf={page:function(e){var t=e.lines,n=e.children,r=k(e,["lines","children"]);return I.jsxs(fd,E({gap:"4x"},r,{children:[I.jsxs(es,E({placeContent:"space-between"},{children:[I.jsx(Df,{width:"100px 25% 300px"},void 0),I.jsx(Df,{width:"50px 10% 150px"},void 0)]}),void 0),I.jsx(fd,E({gap:"2x"},{children:n||Array(t||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)]}),void 0)},content:function(e){var t=e.children,n=e.lines,r=k(e,["children","lines"]);return I.jsx(fd,E({gap:"2x"},r,{children:t||Array(n||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)},topbar:function(e){return I.jsxs(es,E({gap:"4x",placeContent:"space-between",height:"6x",padding:"1x",border:"bottom"},e,{children:[I.jsxs(es,{children:[I.jsx(Df,{circle:!0,size:"4x"},void 0),I.jsx(Df,{width:"20x"},void 0)]},void 0),I.jsxs(es,{children:[I.jsx(Df,{width:"10x"},void 0),I.jsx(Df,{circle:!0,size:"4x"},void 0)]},void 0)]}),void 0)},menu:function(e){var t=e.lines,n=k(e,["lines"]);return I.jsx(fd,E({gap:"3.25x"},n,{padding:"3x 1x"},{children:Array(t||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)},stats:function(e){var t=e.cards,n=k(e,["cards"]);return I.jsx(es,E({gap:"4x"},n,{children:Array(t||3).fill(0).map((function(e,t){return I.jsx(Df,{radius:"1x",width:"20x",height:"12x"},t)}))}),void 0)},tabs:function(e){var t=e.tabs,n=e.children,r=e.lines,i=k(e,["tabs","children","lines"]);return I.jsxs(fd,E({gap:"4x"},i,{children:[I.jsx(es,{children:Array(t||3).fill(0).map((function(e,t){return I.jsx(Df,{width:"15x"},t)}))},void 0),I.jsx(fd,E({gap:"2x"},{children:n||Array(r||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)]}),void 0)},table:function(e){var t=e.rows,n=e.columns,r=k(e,["rows","columns"]);return n=n||5,t=t||5,I.jsx(id,E({columns:"repeat("+n+", 1fr)",gap:"3x"},r,{padding:"1x 0"},{children:Array(t).fill(0).map((function(e,t){return Array(n).fill(0).map((function(e,n){return I.jsx(Df,{size:t?"2x":"3x"},t+"."+n)}))}))}),void 0)},chart:function(e){var t=e.columns,n=k(e,["columns"]);t=t||12;var r=[1,4,2,5,8,9,5,3,4,2,6,7,2];return I.jsx(id,E({columns:"repeat("+t+", 1fr)",gap:"3x",padding:"1x 0",placeItems:"end stretch",height:"40x"},n,{children:Array(t).fill(0).map((function(e,t){return I.jsx(Df,{height:10*r[t%12]+"%",width:"max 6x"},t)}))}),void 0)}};function If(e){var t=e.layout,n=k(e,["layout"]);return Rf[t=t||"page"]?Rf[t](E(E({},n),{qa:"Skeleton"})):I.jsx(Df,E({},n),void 0)}function Mf(e){var t=e.type,n=k(e,["type"]);return E(E({},n),{htmlType:t})}var _f=m.button((function(e){return"\n appearance: none;\n padding: 0;\n margin: 0;\n font-size: inherit;\n line-height: inherit;\n width: 159px;\n height: 26px;\n border: none;\n background: none;\n cursor: "+(e.isLink?"pointer":"default")+";\n outline: none;\n "}));var zf=h((function(e,t){var n=mi(t),r=Ls(function(e){var t=e.htmlType,n=k(e,["htmlType"]);return E(E({},n),{type:t})}(e),n).buttonProps;return I.jsx(_f,E({"data-qa":"HeaderCubeCloudLogo"},r,{isLink:!!e.onPress,ref:n},{children:I.jsxs("svg",E({width:"159",height:"26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M22.533 6.535L11.27 0v4.522l11.264 6.507V6.535z",fill:"#FF6492"},void 0),I.jsx("path",{d:"M22.533 11.029L19.154 13l-7.887-4.567-4.507 2.6-3.38-1.827 7.889-4.684 11.264 6.507z",fill:"#141446"},void 0),I.jsx("path",{d:"M6.76 11.033L3.38 9.206V13l3.38-1.967z",fill:"#A14474"},void 0),I.jsx("path",{d:"M0 19.465L11.267 13l11.266 6.465L11.267 26 0 19.465z",fill:"#141446"},void 0),I.jsx("path",{d:"M22.533 14.978L11.267 8.362V13l11.266 6.465v-4.487z",fill:"#FF6492"},void 0),I.jsx("path",{d:"M3.38 13V9.205l7.889-4.683V0L0 6.535v12.93L11.267 13V8.362L3.38 13z",fill:"#7A77FF"},void 0),I.jsx("path",{d:"M36.594 21.099c2.446 0 4.36-1.21 5.503-3.067l-1.967-1.534c-.878 1.21-1.967 1.991-3.509 1.991-2.392 0-4.093-1.856-4.093-4.305 0-2.394 1.7-4.278 4.093-4.278 1.568 0 2.658.807 3.509 2.018l1.967-1.56c-1.117-1.857-3.03-3.067-5.503-3.067-3.854 0-6.91 3.013-6.91 6.887 0 3.902 3.056 6.915 6.91 6.915zM50.224 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM66.42 7.297c-1.807 0-3.376.7-4.36 1.91V.624h-2.79v20.18h2.605v-1.83c.983 1.345 2.658 2.125 4.572 2.125 3.694 0 6.38-2.96 6.38-6.888S70.14 7.297 66.42 7.297zm-.452 11.22c-1.94 0-3.934-1.292-3.934-4.306 0-2.986 1.967-4.332 3.934-4.332 2.233 0 3.987 1.75 3.987 4.305 0 2.556-1.727 4.332-3.987 4.332zM87.469 13.35c0-3.47-2.552-6.053-6.034-6.053-3.801 0-6.752 3.04-6.752 6.914 0 3.902 2.977 6.888 7.018 6.888 2.073 0 3.827-.807 5.21-2.125l-1.33-1.938c-1.09.969-2.286 1.56-3.8 1.56-2.234 0-3.882-1.29-4.254-3.47h9.729c.08-.35.213-1.05.213-1.776zm-6.14-3.659c1.78 0 3.296 1.157 3.349 3.229H77.58c.425-1.964 1.913-3.229 3.747-3.229zM101.014 21.099c2.445 0 4.359-1.21 5.502-3.067l-1.967-1.534c-.877 1.21-1.967 1.991-3.508 1.991-2.393 0-4.094-1.856-4.094-4.305 0-2.394 1.701-4.278 4.094-4.278 1.568 0 2.658.807 3.508 2.018l1.967-1.56c-1.116-1.857-3.03-3.067-5.502-3.067-3.854 0-6.911 3.013-6.911 6.887 0 3.902 3.057 6.915 6.911 6.915zM109.062 20.803h2.791V.624h-2.791v20.18zM121.417 21.099c3.881 0 6.938-3.067 6.938-6.915 0-3.847-3.057-6.887-6.938-6.887-3.854 0-6.884 3.013-6.884 6.887 0 3.848 3.03 6.915 6.884 6.915zm0-2.61c-2.312 0-4.04-1.83-4.04-4.278 0-2.475 1.728-4.332 4.067-4.332 2.286 0 4.04 1.857 4.04 4.332 0 2.422-1.754 4.278-4.067 4.278zM136.605 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM155.566.624v8.583c-.984-1.21-2.552-1.91-4.36-1.91-3.694 0-6.379 2.986-6.379 6.914 0 3.928 2.658 6.888 6.379 6.888 1.941 0 3.615-.807 4.572-2.18v1.884h2.605V.624h-2.817zm-3.881 17.892c-2.286 0-4.014-1.776-4.014-4.332s1.754-4.305 4.014-4.305c1.94 0 3.934 1.346 3.934 4.332 0 3.014-1.994 4.305-3.934 4.305z",fill:"#141446"},void 0)]}),void 0)}),void 0)})),Kf={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}},Vf={display:"inline-flex",placeContent:"center",placeItems:"center",radius:"round",preset:"tag",width:"min 16px",height:"16px",textAlign:"center",fontWeight:600,color:"#white"},Uf=h((function(e,t){var n=e.type,r=e.children,i=k(e,["type","children"]),o=oo(i,Ta,E(E({},Vf),{padding:"string"==typeof r?r.length>2?"0 2px":r.length>1?"0 1px":0:0,fill:n&&Kf[n]?Kf[n].color:"#purple"}));return I.jsx(ba,E({role:"region"},Da(i,{eventProps:!0}),{styles:o,ref:t},{children:r}),void 0)})),Bf={position:"relative",display:"inline-flex",placeContent:"center start",placeItems:"center start",radius:"1r",preset:"t4m",width:"16px max-content max-content",height:"min-content",textAlign:"left",color:"#dark.65",border:"#border",fill:"#dark.04",whiteSpace:"nowrap",padding:{"":"0 (1x - 1bw)",closable:"0 (2.5x - 1bw) 0 (1x - 1bw)"}},Wf={width:"max 100%",textOverflow:"ellipsis",overflow:"hidden",pointerEvents:"none"},Gf={display:"grid",placeItems:"center",color:!0,placeSelf:"center",opacity:{"":.85,"pressed | hovered":1},transition:"opacity",padding:"0 .5x"},qf=h((function(e,t){var n=e.type,r=e.isClosable,i=e.onClose,o=e.children,a=k(e,["type","isClosable","onClose","children"]),l=oo(a,Ta,E(E({},Bf),n&&n in Kf?{fill:n&&Kf[n]?Kf[n].fill:"#white",color:n&&Kf[n]?Kf[n].color:"#purple",border:n&&Kf[n]?Kf[n].border:"#purple"}:{}));return I.jsxs(ba,E({role:"region"},Da(a,{eventProps:!0}),{styles:l,mods:{closable:r},ref:t},{children:[I.jsx(ns,E({mods:{closable:r},styles:Wf},{children:o}),void 0),r?I.jsx(Bl,E({outerGap:"0"},{children:I.jsx(Ks,E({onPress:i,styles:Gf},{children:I.jsx(Xe,{style:{fontSize:"calc(var(--font-size) - (var(--border-width) * 2))"}},void 0)}),void 0)}),void 0):void 0]}),void 0)}));function Jf(e){if(null!=e)return e.toString()}var Hf;Hf=JSON.parse('{"Clear search":"مسح البحث"}');var $f;$f=JSON.parse('{"Clear search":"Изчистване на търсене"}');var Xf;Xf=JSON.parse('{"Clear search":"Vymazat hledání"}');var Yf;Yf=JSON.parse('{"Clear search":"Ryd søgning"}');var Zf;Zf=JSON.parse('{"Clear search":"Suche zurücksetzen"}');var Qf;Qf=JSON.parse('{"Clear search":"Απαλοιφή αναζήτησης"}');var eh;eh=JSON.parse('{"Clear search":"Clear search"}');var th;th=JSON.parse('{"Clear search":"Borrar búsqueda"}');var nh;nh=JSON.parse('{"Clear search":"Tühjenda otsing"}');var rh;rh=JSON.parse('{"Clear search":"Tyhjennä haku"}');var ih;ih=JSON.parse('{"Clear search":"Effacer la recherche"}');var oh;oh=JSON.parse('{"Clear search":"נקה חיפוש"}');var ah;ah=JSON.parse('{"Clear search":"Obriši pretragu"}');var lh;lh=JSON.parse('{"Clear search":"Keresés törlése"}');var sh;sh=JSON.parse('{"Clear search":"Cancella ricerca"}');var uh;uh=JSON.parse('{"Clear search":"検索をクリア"}');var ch;ch=JSON.parse('{"Clear search":"검색 지우기"}');var dh;dh=JSON.parse('{"Clear search":"Išvalyti iešką"}');var ph;ph=JSON.parse('{"Clear search":"Notīrīt meklēšanu"}');var fh;fh=JSON.parse('{"Clear search":"Tøm søk"}');var hh;hh=JSON.parse('{"Clear search":"Zoekactie wissen"}');var gh;gh=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}');var vh;vh=JSON.parse('{"Clear search":"Limpar pesquisa"}');var mh;mh=JSON.parse('{"Clear search":"Limpar pesquisa"}');var bh;bh=JSON.parse('{"Clear search":"Ştergeţi căutarea"}');var yh;yh=JSON.parse('{"Clear search":"Очистить поиск"}');var xh;xh=JSON.parse('{"Clear search":"Vymazať vyhľadávanie"}');var wh;wh=JSON.parse('{"Clear search":"Počisti iskanje"}');var Sh;Sh=JSON.parse('{"Clear search":"Obriši pretragu"}');var Eh;Eh=JSON.parse('{"Clear search":"Rensa sökning"}');var kh;kh=JSON.parse('{"Clear search":"Aramayı temizle"}');var Ph;Ph=JSON.parse('{"Clear search":"Очистити пошук"}');var Th;Th=JSON.parse('{"Clear search":"清除搜索"}');var Ch;Ch=JSON.parse('{"Clear search":"清除搜尋條件"}');const Oh={"ar-AE":ou(Hf).default,"bg-BG":ou($f).default,"cs-CZ":ou(Xf).default,"da-DK":ou(Yf).default,"de-DE":ou(Zf).default,"el-GR":ou(Qf).default,"en-US":ou(eh).default,"es-ES":ou(th).default,"et-EE":ou(nh).default,"fi-FI":ou(rh).default,"fr-FR":ou(ih).default,"he-IL":ou(oh).default,"hr-HR":ou(ah).default,"hu-HU":ou(lh).default,"it-IT":ou(sh).default,"ja-JP":ou(uh).default,"ko-KR":ou(ch).default,"lt-LT":ou(dh).default,"lv-LV":ou(ph).default,"nb-NO":ou(fh).default,"nl-NL":ou(hh).default,"pl-PL":ou(gh).default,"pt-BR":ou(vh).default,"pt-PT":ou(mh).default,"ro-RO":ou(bh).default,"ru-RU":ou(yh).default,"sk-SK":ou(xh).default,"sl-SI":ou(wh).default,"sr-SP":ou(Sh).default,"sv-SE":ou(Eh).default,"tr-TR":ou(kh).default,"uk-UA":ou(Ph).default,"zh-CN":ou(Th).default,"zh-TW":ou(Ch).default};var Nh=h((function(e,t){var n=(e=Ii(e)).isClearable,r=e.value,o=ha(t,a(null)),l=a(null);i((function(){var e=o&&o.current;e&&null!=r&&e.value!==r&&(e.value=r)}),[o,r]);var s=function(e){let[t,n]=jt(Jf(e.value),Jf(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}(e),u=function(e,t,n){let r=di(Oh),{isDisabled:i,onSubmit:o=(()=>{}),onClear:a,type:l="search"}=e,{labelProps:s,inputProps:u,descriptionProps:c,errorMessageProps:d}=Ns(Dt({},e,{value:t.value,onChange:t.setValue,onKeyDown:e=>{const n=e.key;"Enter"!==n&&"Escape"!==n||e.preventDefault(),i||("Enter"===n&&o(t.value),"Escape"===n&&(t.setValue(""),a&&a()))},type:l}),n);return{labelProps:s,inputProps:Dt({},u,{defaultValue:void 0}),clearButtonProps:{"aria-label":r("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:()=>{t.setValue(""),a&&a()},onPressStart:()=>{n.current.focus()}},descriptionProps:c,errorMessageProps:d}}(e,s,l),c=u.inputProps,d=u.clearButtonProps;return I.jsx(as,E({inputProps:c,ref:t,inputRef:l,inputStyles:{paddingRight:"4x"},type:"search",prefix:I.jsx(Tt,{},void 0),suffixPosition:"after",suffix:n&&""!==s.value&&!e.isReadOnly&&I.jsx(qs,E({type:"clear"},Mf(d),{color:{"":"#dark.50","hovered | pressed":"#purple-text"},radius:"right (1r - 1bw)",padding:".5x 1x",placeSelf:"stretch",icon:I.jsx(Xe,{},void 0)}),void 0)},e),void 0)}));var jh=h((function(e){var t=(e=Ha(e=Ii(e))).form,n=k(e,["form"]),r=t.getFieldsValue(),i=!Object.keys(r).find((function(e){return t.isFieldInvalid(e)}));return I.jsx(qs,E({type:"primary",htmlType:"submit",width:"min-content"},n,{isDisabled:!i}),void 0)}));function Ah(e){void 0===e&&(e={});let{isReadOnly:t,onChange:n}=e,[r,i]=jt(e.isSelected,e.defaultSelected||!1,(()=>{}));return{isSelected:r,setSelected:function(e){t||(i(e),n&&n(e))},toggle:function(){t||i((e=>{let t=!e;return n&&n(t),t}))}}}function Lh(e,t,n){let{isDisabled:r=!1,isRequired:i,isReadOnly:o,value:a,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid"}=e;null!=s||(null!=u||null!=c)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=il({isDisabled:r}),{focusableProps:f}=Ts(e,n),h=Gt(p,f);return{inputProps:Gt($t(e,{labelable:!0}),Dt({"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,required:i,value:a,name:l,type:"checkbox"},h))}}function Fh(e,t,n){let{inputProps:r}=Lh(e,t,n),{isSelected:o}=t,{isIndeterminate:a}=e;return i((()=>{n.current&&(n.current.indeterminate=a)})),{inputProps:Dt({},r,{checked:o,"aria-checked":a?"mixed":o})}}const Dh=new WeakMap;var Rh,Ih=m.input(Rh||(Rh=j(["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n }\n"],["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n }\n"])),(function(e){return e.isButton?"pointer":"default"}));var Mh=n(null),_h={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},zh={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var Kh=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,o=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.validationState,u=e.children,c=e.insideForm,d=e.orientation,p=void 0===d?"vertical":d,f=e.message,h=e.labelStyles,g=e.requiredMark,v=void 0===g||g,m=k(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","insideForm","orientation","message","labelStyles","requiredMark"]),b=vi(t),y=Ai("CheckboxGroup_Wrapper",e),x=Ai("CheckboxGroup",e),w=Ai("CheckboxGroup_Label",e),S=oo(m,Ca,E(E({},_h),y)),P=oo(m,wa,E(E({},zh),x));h=E(E(E({},Jl),w),h);var T=function(e){void 0===e&&(e={});let[t,n]=jt(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e:e.concat(t)))},removeValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e))},toggleValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e.concat(t)))}}}(e),C=function(e,t){let{isDisabled:n,name:r}=e,{labelProps:i,fieldProps:o}=Cs(Dt({},e,{labelElementType:"span"})),a=$t(e,{labelable:!0});return Dh.set(t,r),{groupProps:Gt(a,Dt({role:"group","aria-disabled":n||void 0},o)),labelProps:i}}(e,T),O=C.groupProps,N=C.labelProps,j=I.jsx(ba,E({qa:"CheckboxGroup",styles:P,mods:{horizontal:"horizontal"===p}},{children:I.jsx(Ja.Provider,E({value:{isDisabled:n,validationState:s}},{children:I.jsx(Mh.Provider,E({value:T},{children:u}),void 0)}),void 0)}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:o,insideForm:c,styles:S,isRequired:r,labelStyles:h,necessityIndicator:i,labelProps:N,fieldProps:O,isDisabled:n,validationState:s,message:f,requiredMark:v,Component:j,ref:b}),void 0)})),{cubeInputType:"CheckboxGroup"}),Vh=function(){return I.jsx("svg",E({width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"},void 0)}),void 0)},Uh=function(){return I.jsx("svg",E({width:"9",height:"3",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"},void 0)}),void 0)},Bh={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"default"},Wh={display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"};var Gh=Object.assign(h((function(e,t){var n,i,o=e,l=(e=Ha(e=Ii(e))).qa,s=e.isIndeterminate,u=void 0!==s&&s,c=e.isDisabled,d=void 0!==c&&c,p=e.insideForm;e.autoFocus;var f=e.children,h=e.label,g=e.validationState,v=e.labelProps,m=e.labelStyles,b=e.labelPosition,y=e.message,x=e.requiredMark,w=void 0===x||x,S=k(e,["qa","isIndeterminate","isDisabled","insideForm","autoFocus","children","label","validationState","labelProps","labelStyles","labelPosition","message","requiredMark"]);h=h||f;var P=r(Mh),T=Ai("Checkbox_Wrapper",e),O=Ai("Checkbox",e),N=Ai("Checkbox_Label",e),j=oo(e,Ca,E(E({},p&&!P?{}:Bh),T)),A=oo(e,wa,E(E({},Wh),O));m=E(E(E({},p&&!P?Jl:ql),N),m),p||(m.fontWeight=400),p&&"side"===b&&(A.marginTop="1x");var L=zl({isDisabled:d},!0),F=L.isFocused,D=L.focusProps,R=Il({isDisabled:d}),M=R.hoverProps,_=R.isHovered,z=a(null),K=mi(t,z),V=(P?function(e,t,n){const r=Ah({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:i}=Fh(Dt({},e,{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Dh.get(t)}),r,n);return{inputProps:i}}(E(E({},e),{value:e.value||"",isRequired:o.isRequired,validationState:o.validationState}),P,z):Fh(e,Ah(e),z)).inputProps,U=u?I.jsx(Uh,{},void 0):I.jsx(Vh,{},void 0);if(P){try{for(var B=C(["isSelected","defaultSelected","isEmphasized"]),W=B.next();!W.done;W=B.next()){var G=W.value;null!=o[G]&&console.warn(G+" is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.")}}catch(e){n={error:e}}finally{try{W&&!W.done&&(i=B.return)&&i.call(B)}finally{if(n)throw n.error}}null==e.value&&console.warn("A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}var q=I.jsxs(ba,E({styles:{position:"relative"}},{children:[I.jsx(Ih,E({"data-qa":l||"Checkbox"},Gt(V,D),{ref:z}),void 0),I.jsx(ba,E({mods:{checked:V.checked,indeterminate:u,invalid:"invalid"===g,valid:"valid"===g,disabled:d,hovered:_,focused:F},styles:A},{children:U}),void 0)]}),void 0);return p&&!P?I.jsx(Yl,E({},{as:"label",labelPosition:b,label:h,insideForm:p,styles:j,labelStyles:m,labelProps:v,isDisabled:d,validationState:g,message:y,requiredMark:w,Component:q,ref:K}),void 0):I.jsxs(ba,E({as:"label",styles:j},M,Da(S),{ref:K},{children:[q,h&&I.jsx(ba,E({styles:m,mods:{invalid:"invalid"===g,valid:"valid"===g,disabled:d}},Da(v),{children:h}),void 0)]}),void 0)})),{cubeInputType:"Checkbox",Group:Kh});var qh={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"input",width:"min-content"},Jh={position:"relative",display:"grid",placeItems:"center",radius:"round",fill:{"":"#dark.50",checked:"#purple",disabled:"#dark.12"},color:"#white",border:!1,width:"5.25x 5.25x",height:"3x 3x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},Hh={position:"absolute",width:"2.5x",height:"2.5x",radius:"round",fill:"currentColor",shadow:"0px 2px 4px #dark.20;",top:".25x",left:{"":".25x",checked:"2.5x"},transition:"left"};var $h=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=void 0!==n&&n;e.autoFocus;var i=e.children,o=e.label,l=e.labelProps,s=e.labelStyles,u=e.thumbStyles,c=e.isLoading,d=e.insideForm,p=e.validationState,f=e.message,h=e.labelPosition,g=e.inputStyles,v=e.requiredMark,m=void 0===v||v,b=k(e,["isDisabled","autoFocus","children","label","labelProps","labelStyles","thumbStyles","isLoading","insideForm","validationState","message","labelPosition","inputStyles","requiredMark"]);o=o||i;var y=Ai("Switch_Wrapper",e),x=Ai("Switch",e),w=Ai("Switch_Label",e),S=Ai("Switch_Thumb",e),P=oo(e,Ca,E(E({},d?{}:qh),y));g=oo(e,wa,E(E(E(E({},Jh),x),d&&"side"===h?{marginTop:"-3px",placeSelf:"start"}:null),g)),u=E(E(E({},Hh),S),u),s=E(E(E({},d?Jl:ql),w),s);var T=zl({isDisabled:r},!0),C=T.isFocused,O=T.focusProps,N=Il({isDisabled:r}),j=N.hoverProps,A=N.isHovered,L=a(null),F=mi(t,L),D=function(e,t,n){let{inputProps:r}=Lh(e,t,n),{isSelected:i}=t;return{inputProps:Dt({},r,{role:"switch",checked:i,"aria-checked":i})}}(e,Ah(e),L).inputProps,R=I.jsxs(ba,E({styles:{position:"relative"}},{children:[I.jsx(Ih,E({"data-qa":"Switch"},Gt(D,O),{ref:L}),void 0),I.jsx(ba,E({mods:{checked:D.checked,disabled:r,hovered:A,focused:C},styles:g},{children:I.jsx(ba,{qa:"SwitchThumb",styles:u,"aria-hidden":"true",mods:{checked:D.checked}},void 0)}),void 0)]}),void 0);return d?I.jsx(Yl,E({},{as:"label",labelPosition:h,label:o,insideForm:d,styles:P,labelStyles:s,labelProps:l,isDisabled:r,validationState:p,message:f,requiredMark:m,Component:R,ref:F}),void 0):I.jsxs(ba,E({as:"label",styles:P},j,Da(b),{ref:F},{children:[R,o&&I.jsxs(ba,E({styles:s,mods:{disabled:r}},Da(l),{children:[o,c?I.jsxs(I.Fragment,{children:[o?I.jsx(I.Fragment,{children:" "},void 0):null,I.jsx(Et,{},void 0)]},void 0):null]}),void 0)]}),void 0)})),{cubeInputType:"Checkbox"});const Xh=new WeakMap;var Yh=n(null);let Zh=Math.round(1e10*Math.random()),Qh=0;var eg={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},tg={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var ng=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,a=e.label,l=e.labelPosition,u=void 0===l?"top":l,c=e.validationState,d=e.children,p=e.insideForm,f=e.orientation,h=void 0===f?"vertical":f,g=e.message,v=e.labelStyles,m=e.requiredMark,b=void 0===m||m,y=k(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","insideForm","orientation","message","labelStyles","requiredMark"]),x=vi(t),w=Ai("RadioGroup_Wrapper",e),S=Ai("RadioGroup",e),P=Ai("RadioGroup_Label",e),T=oo(y,Ca,E(E({},eg),w)),C=oo(y,wa,E(E({},tg),S));v=E(E(E({},Jl),P),v);var O=function(e){let t=s((()=>e.name||"radio-group-"+Zh+"-"+ ++Qh),[e.name]),[n,r]=jt(e.value,e.defaultValue,e.onChange),[i,a]=o(null);return{name:t,selectedValue:n,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||r(t)},lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}(e),N=function(e,t){let{name:n,validationState:r,isReadOnly:i,isRequired:o,isDisabled:a,orientation:l="vertical"}=e,{direction:s}=ui(),{labelProps:u,fieldProps:c}=Cs(Dt({},e,{labelElementType:"span"})),d=$t(e,{labelable:!0}),{focusWithinProps:p}=jl({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),f=Vt(n);return Xh.set(t,f),{radioGroupProps:Gt(d,Dt({role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===s&&"vertical"!==l?"prev":"next";break;case"ArrowLeft":n="rtl"===s&&"vertical"!==l?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,i=Ss(e.currentTarget,{from:e.target});"next"===n?(r=i.nextNode(),r||(i.currentNode=e.currentTarget,r=i.firstChild())):(r=i.previousNode(),r||(i.currentNode=e.currentTarget,r=i.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":"invalid"===r||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":l},c,p)),labelProps:u}}(e,O),j=N.radioGroupProps,A=N.labelProps,L=I.jsx(ba,E({qa:"RadioGroup",styles:C,mods:{horizontal:"horizontal"===h}},{children:I.jsx(Ja.Provider,E({value:{isRequired:r,validationState:c,isDisabled:n}},{children:I.jsx(Yh.Provider,E({value:O},{children:d}),void 0)}),void 0)}),void 0);return I.jsx(Yl,E({},{labelPosition:u,label:a,insideForm:p,styles:T,isRequired:r,labelStyles:v,necessityIndicator:i,labelProps:A,fieldProps:j,isDisabled:n,validationState:c,message:g,requiredMark:b,Component:L,ref:x}),void 0)})),{cubeInputType:"RadioGroup"}),rg={position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content"},ig={radius:!0,fill:{"":"#white",hovered:"#purple-text.04",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},fontWeight:500,preset:"default",border:{"":!0,checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#border"},padding:"(1x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"}},og={display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},ag={radius:"round",width:"1x",height:"1x",fill:"currentColor",transition:"theme"};var lg=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).qa,i=e.isDisabled,o=e.validationState,l=e.children,s=e.label;e.autoFocus;var u=e.labelStyles,c=e.labelProps,d=e.inputStyles,p=e.type,f=e["aria-label"],h=k(e,["qa","isDisabled","validationState","children","label","autoFocus","labelStyles","labelProps","inputStyles","type","aria-label"]),g="button"===p;s=s||l;var v=oo(h,Ca,E(E({},rg),Ai("Radio_Wrapper",e)));d=oo(h,wa,E(E(E({},g?ig:og),Ai(g?"RadioButton":"Radio",e)),d)),u=E(E(E(E({},ql),{fontWeight:400}),Ai("Radio_Label",e)),u);var m=r(Yh);if(!m)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");var b=zl({isDisabled:i},!0),y=b.isFocused,x=b.focusProps,w=Il({isDisabled:i}),S=w.hoverProps,P=w.isHovered,T=a(null),C=mi(t,T),O=function(e,t,n){let{value:r,isRequired:i,children:o,"aria-label":a,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled,u=t.isReadOnly;null!=o||null!=a||null!=l||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,{pressProps:d}=il({isDisabled:s}),{focusableProps:p}=Ts(Gt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),f=Gt(d,p),h=$t(e,{labelable:!0}),g=t.lastFocusedValue===r||null==t.lastFocusedValue?0:-1;return s&&(g=void 0),{inputProps:Gt(h,Dt({},f,{type:"radio",name:Xh.get(t),tabIndex:g,disabled:s,"aria-readonly":u||void 0,required:i,checked:c,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)}}))}}(E(E({},e),{isDisabled:i}),m,T).inputProps;return I.jsxs(ba,E({as:"label",styles:v},S,{ref:C,mods:{disabled:i,invalid:"invalid"===o,hovered:P,button:g}},{children:[I.jsx(Ih,E({"data-qa":n||"Radio","aria-label":f},Gt(O,x),{isButton:g,ref:T}),void 0),I.jsx(ba,E({mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o,disabled:i,hovered:P,focused:y},styles:d},{children:g?l:I.jsx(ba,{styles:ag,mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o}},void 0)}),void 0),s&&!g&&I.jsx(ba,E({qa:"RadioLabel",styles:u,mods:{invalid:"invalid"===o,valid:"valid"===o,disabled:i}},Da(c),{children:s}),void 0)]}),void 0)})),{Group:ng,Button:h((function(e,t){var n=lg;return I.jsx(n,E({},e,{type:"button",ref:t}),void 0)}))});function sg(e){let[t,n]=jt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,open(){n(!0)},close(){n(!1)},toggle(){n(!t)}}}function ug(e){let t=sg(e),[n,r]=o(null);return Dt({focusStrategy:n},t,{open(e){void 0===e&&(e=null),r(e),t.open()},toggle(e){void 0===e&&(e=null),r(e),t.toggle()}})}class cg extends Set{constructor(e,t,n){super(e),this.anchorKey=void 0,this.currentKey=void 0,e instanceof cg?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function dg(e,t){return e?"all"===e?"all":new cg(e):t}class pg{constructor(e,t,n){var r;this.collection=void 0,this.state=void 0,this.allowsCellSelection=void 0,this._isSelectAll=void 0,this.collection=e,this.state=t,this.allowsCellSelection=null!=(r=null==n?void 0:n.allowsCellSelection)&&r,this._isSelectAll=null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)<t.index)&&(t=n)}return null==(e=t)?void 0:e.key}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)>t.index)&&(t=n)}return null==(e=t)?void 0:e.key}extendSelection(e){let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new cg([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new cg(n,r,e);for(let i of this.getKeyRange(r,n.currentKey||e))t.delete(i);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if(null==(e=this.getKey(e)))return;let t=new cg("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new cg([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new cg;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new cg)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):t&&t.shiftKey?this.extendSelection(e):this.toggleSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}}let fg;fg=Symbol.iterator;class hg{constructor(e){var t;this.keyMap=new Map,this.iterable=void 0,this.firstKey=void 0,this.lastKey=void 0,this.iterable=e;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;this.lastKey=null==(t=n)?void 0:t.key}*[fg](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}function gg(e){let{filter:t}=e,n=function(e){let{selectionMode:t="none",disallowEmptySelection:n}=e,r=a(!1),[,i]=o(!1),l=a(null),u=a(null),[,c]=o(null),d=s((()=>dg(e.selectedKeys)),[e.selectedKeys]),p=s((()=>dg(e.defaultSelectedKeys,new cg)),[e.defaultSelectedKeys]),[f,h]=jt(d,p,e.onSelectionChange);return{selectionMode:t,disallowEmptySelection:n,get isFocused(){return r.current},setFocused(e){r.current=e,i(e)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t){void 0===t&&(t="first"),l.current=e,u.current=t,c(e)},selectedKeys:f,setSelectedKeys:h,disabledKeys:s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys])}}(e),r=s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=s((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=function(e,t,n,r){void 0===r&&(r=[]);let i=s((()=>new Jc),[]),o=a(null);return s((()=>{let r=i.build(e,n);return o.current=t(r,o.current),o.current}),[i,e.children,e.items,n,...r])}(e,(e=>new hg(t?t(e):e)),l,[t]);return i((()=>{null==n.focusedKey||u.getItem(n.focusedKey)||n.setFocusedKey(null)}),[u,n.focusedKey]),{collection:u,disabledKeys:r,selectionManager:new pg(u,n)}}function vg(e){var t;let[n,r]=jt(e.selectedKey,null!=(t=e.defaultSelectedKey)?t:null,e.onSelectionChange),i=s((()=>null!=n?[n]:[]),[n]),{collection:o,disabledKeys:a,selectionManager:l}=gg(Dt({},e,{selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i,onSelectionChange:t=>{let i=t.values().next().value;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}})),u=null!=n?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:u}}function mg(e){var t,n,r,l,u,c;let{defaultFilter:d,menuTrigger:p="input",allowsEmptyCollection:f=!1,allowsCustomValue:h,shouldCloseOnBlur:g=!0}=e,[v,m]=o(!1),[b,y]=o(!1),[x,w]=jt(e.inputValue,null!=(t=e.defaultInputValue)?t:"",e.onInputChange),{collection:S,selectionManager:E,selectedKey:k,setSelectedKey:P,selectedItem:T,disabledKeys:C}=vg(Dt({},e,{onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===k&&(D(),A.close())},items:null!=(n=e.items)?n:e.defaultItems})),O=S,N=s((()=>null==e.items&&d?function(e,t,n){return new hg(bg(e,t,n))}(S,x,d):S),[S,x,d,e.items]),j=a("focus"),A=ug(Dt({},e,{onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?j.current:void 0)},isOpen:void 0,defaultOpen:void 0})),L=(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),j.current=n,A.open(t))},F=a(x),D=()=>{var e,t;let n=null!=(e=null==(t=S.getItem(k))?void 0:t.textValue)?e:"";F.current=n,w(n)},R=a(!0),I=a(null!=(r=null!=(l=e.selectedKey)?l:e.defaultSelectedKey)?r:null),M=a(null!=(u=null==(c=S.getItem(k))?void 0:c.textValue)?u:"");i((()=>{var t,n;b&&(N.size>0||f)&&!A.isOpen&&x!==F.current&&"manual"!==p&&L(null,"input"),v||f||!A.isOpen||0!==N.size||A.close(),null!=k&&k!==I.current&&A.close(),x!==F.current&&(E.setFocusedKey(null),m(!1),""!==x||void 0!==e.inputValue&&void 0!==e.selectedKey||P(null)),R.current&&void 0===e.inputValue&&void 0===e.defaultInputValue&&D(),k===I.current||void 0!==e.inputValue&&void 0!==e.selectedKey?F.current=x:D();let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";b||null==k||void 0!==e.inputValue||k!==I.current||M.current!==r&&(F.current=r,w(r)),R.current=!1,I.current=k,M.current=r})),i((()=>{A.isOpen||E.setFocusedKey(null)}),[A.isOpen,E]);let _=()=>{I.current=null,P(null),A.close()},z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(k);let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";F.current=r,A.close()}else D(),A.close()};return Dt({},A,{toggle:(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items||A.isOpen)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),A.isOpen||(j.current=n),A.toggle(t))},open:L,selectionManager:E,selectedKey:k,setSelectedKey:P,disabledKeys:C,isFocused:b,setFocused:e=>{if(e)"focus"===p&&L(null,"focus");else if(g){var t,n;let e=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";h&&x!==e?_():z()}y(e)},selectedItem:T,collection:v?O:N,inputValue:x,setInputValue:w,commit:()=>{A.isOpen&&null!=E.focusedKey?k===E.focusedKey?z():P(E.focusedKey):h?_():z()},revert:()=>{h&&null==k?_():z()}})}function bg(e,t,n){let r=[];for(let i of e)if("section"===i.type&&i.hasChildNodes){let e=bg(i.childNodes,t,n);[...e].length>0&&r.push(Dt({},i,{childNodes:e}))}else"section"!==i.type&&n(i.textValue,t)&&r.push(Dt({},i));return r}function yg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=a({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=function(e){if(1===e.length||!/^[A-Z]/i.test(e))return e;return""}(e.key);if(!o||e.ctrlKey||e.metaKey)return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(i.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),500)}:null}}}function xg(e){return pn()?e.metaKey:e.ctrlKey}function wg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:c=!1,disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=r}=e,{direction:v}=ui(),m=a({top:0,left:0});mn(g,"scroll",h?null:()=>{m.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const b=a(o);i((()=>{if(b.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||p||ls(r.current)}b.current=!1}),[]),i((()=>{if(!h&&t.focusedKey&&null!=g&&g.current){let e=g.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&Sg(g.current,e)}}),[h,g,t.focusedKey]);let y,x={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),e.altKey||!r.current.contains(e.target))return;const i=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):c&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null==n.getFirstKey?void 0:n.getFirstKey();null==r&&l&&(r=null==n.getFirstKey?void 0:n.getFirstKey(t.focusedKey)),i(r)}break;case"ArrowUp":if(n.getKeyAbove){e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null==n.getLastKey?void 0:n.getLastKey();null==r&&l&&(r=null==n.getLastKey?void 0:n.getLastKey(t.focusedKey)),i(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){e.preventDefault(),i(n.getKeyLeftOf(t.focusedKey),"rtl"===v?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){e.preventDefault(),i(n.getKeyRightOf(t.focusedKey),"rtl"===v?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,xg(e));t.setFocusedKey(r),xg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,xg(e));t.setFocusedKey(r),xg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),i(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),i(n.getKeyPageAbove(t.focusedKey))}break;case"a":xg(e)&&"multiple"===t.selectionMode&&!0!==u&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,t,n=Ss(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Xt(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let o=e.relatedTarget;var r,i;if(o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)t.setFocusedKey(null!=(r=t.lastSelectedKey)?r:n.getLastKey());else t.setFocusedKey(null!=(i=t.firstSelectedKey)?i:n.getFirstKey())}else if(!h){g.current.scrollTop=m.current.top,g.current.scrollLeft=m.current.left;let e=g.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&(Xt(e),Sg(g.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:w}=yg({keyboardDelegate:n,selectionManager:t});return d||(x=Gt(w,x)),p||(y=null==t.focusedKey?0:-1),{collectionProps:Dt({},x,{tabIndex:y})}}function Sg(e,t){let n=Eg(e,t,"left"),r=Eg(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,s=a+e.offsetWidth,u=l+e.offsetHeight;n<=a?a=n:n+i>s&&(a+=n+i-s),r<=l?l=r:r+o>u&&(l+=r+o-u),e.scrollLeft=a,e.scrollTop=l}function Eg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}class kg{constructor(e,t,n,r){this.collection=void 0,this.disabledKeys=void 0,this.ref=void 0,this.collator=void 0,this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector('[data-key="'+e+'"]')}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}}function Pg(e,t,n){let{type:r="menu",isDisabled:i}=e,o=Vt(),{triggerProps:a,overlayProps:l}=sp({type:r},t,n);return{menuTriggerProps:Dt({},a,{id:o,onPressStart(e){"touch"!==e.pointerType&&"keyboard"!==e.pointerType&&t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"===e.pointerType&&t.toggle()},onKeyDown:e=>{if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented||i)&&n&&n.current)switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),e.stopPropagation(),t.toggle("first");break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.toggle("last")}}}),menuProps:Dt({},l,{"aria-labelledby":o})}}const Tg=new WeakMap;function Cg(e,t){let n=Tg.get(e);if(!n)throw new Error("Unknown list");return n.id+"-option-"+("string"==typeof(r=t)?r.replace(/\s*/g,""):""+r);var r}function Og(e,t,n){let r=$t(e,{labelable:!0}),{listProps:i}=function(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,autoFocus:a,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h}=e,g=fi({usage:"search",sensitivity:"base"}),v=s((()=>o||new kg(n,r,i,g)),[o,n,r,i,g]),{collectionProps:m}=wg({ref:i,selectionManager:t,keyboardDelegate:v,autoFocus:a,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h,isVirtualized:u,scrollRef:i});return{listProps:m}}(Dt({},e,{ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys})),{focusWithinProps:o}=jl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=Vt(e.id);Tg.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized});let{labelProps:l,fieldProps:u}=Cs(Dt({},e,{id:a,labelElementType:"span"}));return{labelProps:l,listBoxProps:Gt(r,o,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},Dt({role:"listbox"},Gt(u,i)))}}function Ng(e,t,n){var r,o,a,l,s,u;let{key:c}=e,d=Tg.get(t),p=null!=(r=e.isDisabled)?r:t.disabledKeys.has(c),f=null!=(o=e.isSelected)?o:t.selectionManager.isSelected(c),h=t.selectionManager.focusedKey===c,g=null!=(a=e.shouldSelectOnPressUp)?a:d.shouldSelectOnPressUp,v=null!=(l=e.shouldFocusOnHover)?l:d.shouldFocusOnHover,m=null!=(s=e.shouldUseVirtualFocus)?s:d.shouldUseVirtualFocus,b=null!=(u=e.isVirtualized)?u:d.isVirtualized,y=Bt(),x=Bt(),w={role:"option","aria-disabled":p,"aria-selected":"none"!==t.selectionManager.selectionMode?f:void 0};pn()&&vn()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=y,w["aria-describedby"]=x),b&&(w["aria-posinset"]=t.collection.getItem(c).index+1,w["aria-setsize"]=Zc(t.collection));let{itemProps:S}=function(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:l,focus:s}=e,u=e=>t.select(n,e),c=n===t.focusedKey;i((()=>{c&&t.isFocused&&!l&&document.activeElement!==r.current&&(s?s():ls(r.current))}),[r,c,t.focusedKey,t.childFocusStrategy,t.isFocused,l]);let d={};return l||(d={tabIndex:c?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}}),o?(d.onPressStart=e=>{"keyboard"===e.pointerType&&u(e)},d.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)}):(d.onPressStart=e=>{"touch"!==e.pointerType&&u(e)},d.onPress=e=>{"touch"===e.pointerType&&u(e)}),a||(d["data-key"]=n),{itemProps:d}}({selectionManager:t.selectionManager,key:c,ref:n,shouldSelectOnPressUp:g,isVirtualized:b,shouldUseVirtualFocus:m}),{pressProps:E,isPressed:k}=il(Dt({},S,{isDisabled:p,preventFocusOnPress:m})),{hoverProps:P}=Il({isDisabled:p||!v,onHoverStart(){Cl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}});return{optionProps:Dt({},w,Gt(E,P),{id:Cg(t,c)}),labelProps:{id:y},descriptionProps:{id:x},isFocused:h,isSelected:f,isDisabled:p,isPressed:k}}var jg;jg=JSON.parse('{"buttonLabel":"عرض المقترحات","countAnnouncement":"{optionCount, plural, one {# خيار} other {# خيارات}} متاحة.","focusAnnouncement":"{isGroupChange, select, true {المجموعة المدخلة {groupTitle}, مع {groupCount, plural, one {# خيار} other {# خيارات}}. } other {}}{optionText}{isSelected, select, true {, محدد} other {}}","listboxLabel":"مقترحات","selectedAnnouncement":"{optionText}، محدد"}');var Ag;Ag=JSON.parse('{"buttonLabel":"Покажи предложения","countAnnouncement":"{optionCount, plural, one {# опция} other {# опции}} на разположение.","focusAnnouncement":"{isGroupChange, select, true {Въведена група {groupTitle}, с {groupCount, plural, one {# опция} other {# опции}}. } other {}}{optionText}{isSelected, select, true {, избрани} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, избрани"}');var Lg;Lg=JSON.parse('{"buttonLabel":"Zobrazit doporučení","countAnnouncement":"K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } other {}}{optionText}{isSelected, select, true { (vybráno)} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybráno"}');var Fg;Fg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# mulighed tilgængelig} other {# muligheder tilgængelige}}.","focusAnnouncement":"{isGroupChange, select, true {Angivet gruppe {groupTitle}, med {groupCount, plural, one {# mulighed} other {# muligheder}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Dg;Dg=JSON.parse('{"buttonLabel":"Empfehlungen anzeigen","countAnnouncement":"{optionCount, plural, one {# Option} other {# Optionen}} verfügbar.","focusAnnouncement":"{isGroupChange, select, true {Eingetretene Gruppe {groupTitle}, mit {groupCount, plural, one {# Option} other {# Optionen}}. } other {}}{optionText}{isSelected, select, true {, ausgewählt} other {}}","listboxLabel":"Empfehlungen","selectedAnnouncement":"{optionText}, ausgewählt"}');var Rg;Rg=JSON.parse('{"buttonLabel":"Προβολή προτάσεων","countAnnouncement":"{optionCount, plural, one {# επιλογή} other {# επιλογές }} διαθέσιμες.","focusAnnouncement":"{isGroupChange, select, true {Εισαγμένη ομάδα {groupTitle}, με {groupCount, plural, one {# επιλογή} other {# επιλογές}}. } other {}}{optionText}{isSelected, select, true {, επιλεγμένο} other {}}","listboxLabel":"Προτάσεις","selectedAnnouncement":"{optionText}, επιλέχθηκε"}');var Ig;Ig=JSON.parse('{"focusAnnouncement":"{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} available.","selectedAnnouncement":"{optionText}, selected","buttonLabel":"Show suggestions","listboxLabel":"Suggestions"}');var Mg;Mg=JSON.parse('{"buttonLabel":"Mostrar sugerencias","countAnnouncement":"{optionCount, plural, one {# opción} other {# opciones}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Se ha unido al grupo {groupTitle}, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}","listboxLabel":"Sugerencias","selectedAnnouncement":"{optionText}, seleccionado"}');var _g;_g=JSON.parse('{"buttonLabel":"Kuva soovitused","countAnnouncement":"{optionCount, plural, one {# valik} other {# valikud}} saadaval.","focusAnnouncement":"{isGroupChange, select, true {Sisestatud rühm {groupTitle}, valikuga {groupCount, plural, one {# valik} other {# valikud}}. } other {}}{optionText}{isSelected, select, true {, valitud} other {}}","listboxLabel":"Soovitused","selectedAnnouncement":"{optionText}, valitud"}');var zg;zg=JSON.parse('{"buttonLabel":"Näytä ehdotukset","countAnnouncement":"{optionCount, plural, one {# vaihtoehto} other {# vaihtoehdot}} saatavilla.","focusAnnouncement":"{isGroupChange, select, true {Mentiin ryhmään {groupTitle}, {groupCount, plural, one {# vaihtoehdon} other {# vaihtoehdon}} kanssa.} other {}}{optionText}{isSelected, select, true {, valittu} other {}}","listboxLabel":"Ehdotukset","selectedAnnouncement":"{optionText}, valittu"}');var Kg;Kg=JSON.parse('{"buttonLabel":"Afficher les suggestions","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Groupe {groupTitle} saisi, avec {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, sélectionné(s)} other {}}","listboxLabel":"Suggestions","selectedAnnouncement":"{optionText}, sélectionné"}');var Vg;Vg=JSON.parse('{"buttonLabel":"הצג הצעות","countAnnouncement":"{optionCount, plural, one {אפשרות #} other {# אפשרויות}} במצב זמין.","focusAnnouncement":"{isGroupChange, select, true {נכנס לקבוצה {groupTitle}, עם {groupCount, plural, one {אפשרות #} other {# אפשרויות}}. } other {}}{optionText}{isSelected, select, true {, נבחר} other {}}","listboxLabel":"הצעות","selectedAnnouncement":"{optionText}, נבחר"}');var Ug;Ug=JSON.parse('{"buttonLabel":"Prikaži prijedloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena skupina {groupTitle}, s {groupCount, plural, one {# opcijom} other {# opcije/a}}. } other {}}{optionText}{isSelected, select, true {, odabranih} other {}}","listboxLabel":"Prijedlozi","selectedAnnouncement":"{optionText}, odabrano"}');var Bg;Bg=JSON.parse('{"buttonLabel":"Javaslatok megjelenítése","countAnnouncement":"{optionCount, plural, one {# lehetőség} other {# lehetőség}} áll rendelkezésre.","focusAnnouncement":"{isGroupChange, select, true {Belépett a(z) {groupTitle} csoportba, amely {groupCount, plural, one {# lehetőséget} other {# lehetőséget}} tartalmaz. } other {}}{optionText}{isSelected, select, true {, kijelölve} other {}}","listboxLabel":"Javaslatok","selectedAnnouncement":"{optionText}, kijelölve"}');var Wg;Wg=JSON.parse('{"buttonLabel":"Mostra suggerimenti","countAnnouncement":"{optionCount, plural, one {# opzione disponibile} other {# opzioni disponibili}}.","focusAnnouncement":"{isGroupChange, select, true {Ingresso nel gruppo {groupTitle}, con {groupCount, plural, one {# opzione} other {# opzioni}}. } other {}}{optionText}{isSelected, select, true {, selezionato} other {}}","listboxLabel":"Suggerimenti","selectedAnnouncement":"{optionText}, selezionato"}');var Gg;Gg=JSON.parse('{"buttonLabel":"候補を表示","countAnnouncement":"{optionCount, plural, one {# 個のオプション} other {# 個のオプション}}を利用できます。","focusAnnouncement":"{isGroupChange, select, true {入力されたグループ {groupTitle}、{groupCount, plural, one {# 個のオプション} other {# 個のオプション}}を含む。} other {}}{optionText}{isSelected, select, true {、選択済み} other {}}","listboxLabel":"候補","selectedAnnouncement":"{optionText}、選択済み"}');var qg;qg=JSON.parse('{"buttonLabel":"제안 사항 표시","countAnnouncement":"{optionCount, plural, one {#개 옵션} other {#개 옵션}}을 사용할 수 있습니다.","focusAnnouncement":"{isGroupChange, select, true {입력한 그룹 {groupTitle}, {groupCount, plural, one {#개 옵션} other {#개 옵션}}. } other {}}{optionText}{isSelected, select, true {, 선택됨} other {}}","listboxLabel":"제안","selectedAnnouncement":"{optionText}, 선택됨"}');var Jg;Jg=JSON.parse('{"buttonLabel":"Rodyti pasiūlymus","countAnnouncement":"Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.","focusAnnouncement":"{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} other {# parinktimis (-ių)}}. } other {}}{optionText}{isSelected, select, true {, pasirinkta} other {}}","listboxLabel":"Pasiūlymai","selectedAnnouncement":"{optionText}, pasirinkta"}');var Hg;Hg=JSON.parse('{"buttonLabel":"Rādīt ieteikumus","countAnnouncement":"Pieejamo opciju skaits: {optionCount, plural, one {# opcija} other {# opcijas}}.","focusAnnouncement":"{isGroupChange, select, true {Ievadīta grupa {groupTitle}, ar {groupCount, plural, one {# opciju} other {# opcijām}}. } other {}}{optionText}{isSelected, select, true {, atlasīta} other {}}","listboxLabel":"Ieteikumi","selectedAnnouncement":"{optionText}, atlasīta"}');var $g;$g=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativer}} finnes.","focusAnnouncement":"{isGroupChange, select, true {Angitt gruppe {groupTitle}, med {groupCount, plural, one {# alternativ} other {# alternativer}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Xg;Xg=JSON.parse('{"buttonLabel":"Suggesties weergeven","countAnnouncement":"{optionCount, plural, one {# optie} other {# opties}} beschikbaar.","focusAnnouncement":"{isGroupChange, select, true {Groep {groupTitle} ingevoerd met {groupCount, plural, one {# optie} other {# opties}}. } other {}}{optionText}{isSelected, select, true {, geselecteerd} other {}}","listboxLabel":"Suggesties","selectedAnnouncement":"{optionText}, geselecteerd"}');var Yg;Yg=JSON.parse('{"buttonLabel":"Wyświetlaj sugestie","countAnnouncement":"dostępna/dostępne(-nych) {optionCount, plural, one {# opcja} other {# opcje(-i)}}.","focusAnnouncement":"{isGroupChange, select, true {Dołączono do grupy {groupTitle}, z {groupCount, plural, one {# opcją} other {# opcjami}}. } other {}}{optionText}{isSelected, select, true {, wybrano} other {}}","listboxLabel":"Sugestie","selectedAnnouncement":"{optionText}, wybrano"}');var Zg;Zg=JSON.parse('{"buttonLabel":"Mostrar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo inserido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Qg;Qg=JSON.parse('{"buttonLabel":"Apresentar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo introduzido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var ev;ev=JSON.parse('{"buttonLabel":"Afișare sugestii","countAnnouncement":"{optionCount, plural, one {# opțiune} other {# opțiuni}} disponibile.","focusAnnouncement":"{isGroupChange, select, true {Grup {groupTitle} introdus, cu {groupCount, plural, one {# opțiune} other {# opțiuni}}. } other {}}{optionText}{isSelected, select, true {, selectat} other {}}","listboxLabel":"Sugestii","selectedAnnouncement":"{optionText}, selectat"}');var tv;tv=JSON.parse('{"buttonLabel":"Показать предложения","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметров}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введенная группа {groupTitle}, с {groupCount, plural, one {# параметром} other {# параметрами}}. } other {}}{optionText}{isSelected, select, true {, выбранными} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, выбрано"}');var nv;nv=JSON.parse('{"buttonLabel":"Zobraziť návrhy","countAnnouncement":"{optionCount, plural, one {# možnosť} other {# možnosti/-í}} k dispozícii.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina {groupTitle}, s {groupCount, plural, one {# možnosťou} other {# možnosťami}}. } other {}}{optionText}{isSelected, select, true {, vybraté} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybraté"}');var rv;rv=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Na voljo je {optionCount, plural, one {# opcija} other {# opcije}}.","focusAnnouncement":"{isGroupChange, select, true {Vnesena skupina {groupTitle}, z {groupCount, plural, one {# opcija} other {# opcije}}. } other {}}{optionText}{isSelected, select, true {, izbrano} other {}}","listboxLabel":"Predlogi","selectedAnnouncement":"{optionText}, izbrano"}');var iv;iv=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena grupa {groupTitle}, s {groupCount, plural, one {# opcijom} other {# optione/a}}. } other {}}{optionText}{isSelected, select, true {, izabranih} other {}}","listboxLabel":"Predlozi","selectedAnnouncement":"{optionText}, izabrano"}');var ov;ov=JSON.parse('{"buttonLabel":"Visa förslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativ}} tillgängliga.","focusAnnouncement":"{isGroupChange, select, true {Ingick i gruppen {groupTitle} med {groupCount, plural, one {# alternativ} other {# alternativ}}. } other {}}{optionText}{isSelected, select, true {, valda} other {}}","listboxLabel":"Förslag","selectedAnnouncement":"{optionText}, valda"}');var av;av=JSON.parse('{"buttonLabel":"Önerileri göster","countAnnouncement":"{optionCount, plural, one {# seçenek} other {# seçenekler}} kullanılabilir.","focusAnnouncement":"{isGroupChange, select, true {Girilen grup {groupTitle}, ile {groupCount, plural, one {# seçenek} other {# seçenekler}}. } other {}}{optionText}{isSelected, select, true {, seçildi} other {}}","listboxLabel":"Öneriler","selectedAnnouncement":"{optionText}, seçildi"}');var lv;lv=JSON.parse('{"buttonLabel":"Показати пропозиції","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметри(-ів)}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введена група {groupTitle}, з {groupCount, plural, one {# параметр} other {# параметри(-ів)}}. } other {}}{optionText}{isSelected, select, true {, вибрано} other {}}","listboxLabel":"Пропозиції","selectedAnnouncement":"{optionText}, вибрано"}');var sv;sv=JSON.parse('{"buttonLabel":"显示建议","countAnnouncement":"有 {optionCount, plural, one {# 个选项} other {# 个选项}}可用。","focusAnnouncement":"{isGroupChange, select, true {进入了 {groupTitle} 组,其中有 {groupCount, plural, one {# 个选项} other {# 个选项}}. } other {}}{optionText}{isSelected, select, true {, 已选择} other {}}","listboxLabel":"建议","selectedAnnouncement":"{optionText}, 已选择"}');var uv;uv=JSON.parse('{"buttonLabel":"顯示建議","countAnnouncement":"{optionCount, plural, one {# 選項} other {# 選項}} 可用。","focusAnnouncement":"{isGroupChange, select, true {輸入的群組 {groupTitle}, 有 {groupCount, plural, one {# 選項} other {# 選項}}. } other {}}{optionText}{isSelected, select, true {, 已選取} other {}}","listboxLabel":"建議","selectedAnnouncement":"{optionText}, 已選取"}');const cv={"ar-AE":ou(jg).default,"bg-BG":ou(Ag).default,"cs-CZ":ou(Lg).default,"da-DK":ou(Fg).default,"de-DE":ou(Dg).default,"el-GR":ou(Rg).default,"en-US":ou(Ig).default,"es-ES":ou(Mg).default,"et-EE":ou(_g).default,"fi-FI":ou(zg).default,"fr-FR":ou(Kg).default,"he-IL":ou(Vg).default,"hr-HR":ou(Ug).default,"hu-HU":ou(Bg).default,"it-IT":ou(Wg).default,"ja-JP":ou(Gg).default,"ko-KR":ou(qg).default,"lt-LT":ou(Jg).default,"lv-LV":ou(Hg).default,"nb-NO":ou($g).default,"nl-NL":ou(Xg).default,"pl-PL":ou(Yg).default,"pt-BR":ou(Zg).default,"pt-PT":ou(Qg).default,"ro-RO":ou(ev).default,"ru-RU":ou(tv).default,"sk-SK":ou(nv).default,"sl-SI":ou(rv).default,"sr-SP":ou(iv).default,"sv-SE":ou(ov).default,"tr-TR":ou(av).default,"uk-UA":ou(lv).default,"zh-CN":ou(sv).default,"zh-TW":ou(uv).default};function dv(e,t){var n,r;let{buttonRef:o,popoverRef:l,inputRef:u,listBoxRef:c,keyboardDelegate:d,isReadOnly:p,isDisabled:f}=e,h=di(cv),{menuTriggerProps:g,menuProps:v}=Pg({type:"listbox"},t,o);Tg.set(t,{id:v.id});let m=s((()=>d||new kg(t.collection,t.disabledKeys,c)),[d,t.collection,t.disabledKeys,c]),{collectionProps:b}=wg({selectionManager:t.selectionManager,keyboardDelegate:m,disallowTypeAhead:!0,disallowEmptySelection:!0,ref:u,isVirtualized:!0}),{labelProps:y,inputProps:x,descriptionProps:w,errorMessageProps:S}=Ns(Dt({},e,{onChange:t.setInputValue,onKeyDown:!p&&Wt(t.isOpen&&b.onKeyDown,(e=>{switch(e.key){case"Enter":case"Tab":t.isOpen&&"Enter"===e.key&&e.preventDefault(),t.commit();break;case"Escape":t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}})),onBlur:n=>{var r;n.relatedTarget===(null==o?void 0:o.current)||null!=(r=l.current)&&r.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off"}),u),E=nn({id:g.id,"aria-label":h("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),k=nn({id:v.id,"aria-label":h("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),P=a(0),T=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,C=null!=(n=null==T?void 0:T.parentKey)?n:null,O=null!=(r=t.selectionManager.focusedKey)?r:null,N=a(C),j=a(O);i((()=>{if(gn()&&null!=T&&O!==j.current){let e=t.selectionManager.isSelected(O),n=null!=C?t.collection.getItem(C):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"";nu(h("focusAnnouncement",{isGroupChange:n&&C!==N.current,groupTitle:r,groupCount:n?[...n.childNodes].length:0,optionText:T["aria-label"]||T.textValue||"",isSelected:e}))}N.current=C,j.current=O}));let A=Zc(t.collection),L=a(A),F=a(t.isOpen);i((()=>{let e=t.isOpen!==F.current&&(null==t.selectionManager.focusedKey||gn());if(t.isOpen&&(e||A!==L.current)){nu(h("countAnnouncement",{optionCount:A}))}L.current=A,F.current=t.isOpen}));let D=a(t.selectedKey);return i((()=>{if(gn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==D.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";nu(h("selectedAnnouncement",{optionText:e}))}D.current=t.selectedKey})),i((()=>{if(t.isOpen)return function(e,t){void 0===t&&(t=document.body);let n=new Set(e),r=new Set,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&n.add(t),n.has(t)||r.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),o=e=>{var t;let n=null!=(t=ef.get(e))?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),ef.set(e,n+1))},a=i.nextNode();for(;null!=a;)o(a),a=i.nextNode();let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?n.add(e):e instanceof Element&&o(e)}));return l.observe(t,{childList:!0,subtree:!0}),()=>{l.disconnect();for(let e of r){let t=ef.get(e);1===t?(e.removeAttribute("aria-hidden"),ef.delete(e)):ef.set(e,t-1)}}}([u.current,l.current])}),[t.isOpen,u,l]),{labelProps:y,buttonProps:Dt({},g,E,{excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(u.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(u.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))}}),inputProps:Gt(x,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":T?Cg(t,T.key):void 0,onTouchEnd:e=>{if(f||p)return;if(e.timeStamp-P.current<500)return e.preventDefault(),void u.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],i=Math.ceil(n.left+.5*n.width),o=Math.ceil(n.top+.5*n.height);r.clientX===i&&r.clientY===o&&(e.preventDefault(),u.current.focus(),t.toggle(null,"manual"),P.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Gt(v,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:w,errorMessageProps:S}}function pv(e,t,n){let{keyboardDelegate:r,isDisabled:i}=e,o=fi({usage:"search",sensitivity:"base"}),a=s((()=>r||new kg(t.collection,t.disabledKeys,null,o)),[r,t.collection,t.disabledKeys,o]),{menuTriggerProps:l,menuProps:u}=Pg({isDisabled:i,type:"listbox"},t,n),{typeSelectProps:c}=yg({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:h}=Os(Dt({},e,{labelElementType:"span"}));c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture;let g=$t(e,{labelable:!0}),v=Gt(c,l,p),m=Vt();return{labelProps:Dt({},d,{onClick:()=>{var t;e.isDisabled||(n.current.focus(),hl=t="keyboard",xl(t,null))}}),triggerProps:Gt(g,Dt({},v,{onKeyDown:Wt(v.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyAbove(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyBelow(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[v["aria-labelledby"],v["aria-label"]&&!v["aria-labelledby"]?v.id:null,m].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}})),valueProps:{id:m},menuProps:Dt({},u,{autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},"aria-labelledby":[p["aria-labelledby"],v["aria-label"]&&!p["aria-labelledby"]?v.id:null].filter(Boolean).join(" ")}),descriptionProps:f,errorMessageProps:h}}function fv(e,t,n){var r;let{name:a,isDisabled:l}=e,s=function(){Tl();let[e,t]=o(hl);return i((()=>{let e=()=>{t(hl)};return gl.add(e),()=>{gl.delete(e)}}),[]),e}(),{visuallyHiddenProps:u}=Ys();return{containerProps:Dt({},u,{"aria-hidden":!0}),inputProps:{type:"text",tabIndex:null==s||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,disabled:l,name:a,size:t.collection.size,value:null!=(r=t.selectedKey)?r:"",onChange:e=>t.setSelectedKey(e.target.value)}}}function hv(e){let{state:n,triggerRef:r,label:i,name:o,isDisabled:a}=e,{containerProps:l,inputProps:s,selectProps:u}=fv(e,n,r);return n.collection.size<=300?t.createElement("div",l,t.createElement("input",s),t.createElement("label",null,i,t.createElement("select",u,t.createElement("option",null),[...n.collection.getKeys()].map((e=>{let r=n.collection.getItem(e);if("item"===r.type)return t.createElement("option",{key:r.key,value:r.key},r.textValue)}))))):o?t.createElement("input",{type:"hidden",name:o,disabled:a,value:n.selectedKey}):null}var gv={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},vv={initial:"translate(0, calc(-1 * var(--overlay-offset)))",top:"translate(0, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0)",left:"translate(calc(1 * var(--overlay-offset)), 0)",bottom:"translate(0, calc(-1 * var(--overlay-offset)))"},mv=function(e){var t=void 0===e?{}:e,n=t.suffix,r=void 0===n?"":n,i=t.placement,o=void 0===i?"initial":i,a=t.minScale,l=void 0===a?.9:a,s=t.minOffset;return"\n &"+r+" {\n transform: var(--overlay-position);\n transform-origin: "+gv[o]+";\n --overlay-offset: "+(void 0===s?"0px":s)+";\n --overlay-hidden-x-scale: "+("top"===o||"bottom"===o||"initial"===o?"1":l)+";\n --overlay-hidden-y-scale: "+("left"===o||"right"===o?"1":l)+";\n --overlay-translate-visible: translate(0, 0);\n --overlay-translate-hidden: "+vv[o]+";\n --overlay-transition: 180ms;\n --overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));\n --overlay-normal-scale: scale(1, 1);\n }\n\n &.cube-overlay-transition-enter"+r+" {\n opacity: 0;\n transform: var(--overlay-hidden-scale) var(--overlay-translate-hidden);\n }\n\n &.cube-overlay-transition-enter-active"+r+" {\n opacity: 1;\n transform: var(--overlay-normal-scale) var(--overlay-translate-visible);\n transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);\n }\n\n &.cube-overlay-transition-exit"+r+" {\n opacity: 1;\n transform: var(--overlay-normal-scale) var(--overlay-translate-visible);\n }\n\n &.cube-overlay-transition-exit-active"+r+" {\n opacity: 0;\n transform: var(--overlay-hidden-scale) var(--overlay-translate-hidden);\n pointer-events: none;\n transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);\n }\n"};function bv(){}function yv(){}yv.resetWarningCache=bv;var xv=F((function(e){e.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yv,resetWarningCache:bv};return n.PropTypes=n,n}()}));var wv=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}});function Sv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ev=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Sv(e.className,t):e.setAttribute("class",Sv(e.className&&e.className.baseVal||"",t))}}),kv=F((function(e,t){t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default}));F((function(e,t){var n;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,!(n=xv)||n.__esModule;t.timeoutsShape=null;t.classNamesShape=null}));var Pv=F((function(e,n){var r;n.__esModule=!0,n.default=void 0;var i=((r=t)&&r.__esModule?r:{default:r}).default.createContext(null);n.default=i,e.exports=n.default})),Tv=F((function(e,n){n.__esModule=!0,n.default=n.EXITING=n.ENTERED=n.ENTERING=n.EXITED=n.UNMOUNTED=void 0,l(xv);var r=l(t),i=l(y),o=l(kv),a=l(Pv);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";n.UNMOUNTED=s;var u="exited";n.EXITED=u;var c="entering";n.ENTERING=c;var d="entered";n.ENTERED=d;var p="exiting";n.EXITING=p;var f=function(e){var t,n;function l(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=c):i=d:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null};var f=l.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=p)}this.updateStatus(!1,t)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},f.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===c?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},f.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[i.default.findDOMNode(this),r],l=a[0],s=a[1],u=this.getTimeouts(),p=r?u.appear:u.enter;!e&&!n||o.default.disabled?this.safeSetState({status:d},(function(){t.props.onEntered(l)})):(this.props.onEnter(l,s),this.safeSetState({status:c},(function(){t.props.onEntering(l,s),t.onTransitionEnd(p,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(l,s)}))}))})))},f.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!o.default.disabled?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},f.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},f.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},f.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,i):r.default.cloneElement(r.default.Children.only(n),i))},l}(r.default.Component);function h(){}f.contextType=a.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=s,f.EXITED=u,f.ENTERING=c,f.ENTERED=d,f.EXITING=p;var g=f;n.default=g})),Cv=L(Tv),Ov=D(wv),Nv=D(Ev),jv=F((function(e,n){n.__esModule=!0,n.default=void 0,l(xv);var r=l(Ov),i=l(Nv),o=l(t),a=l(Tv);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},c=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=i.prototype;return l.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))}(e,i))},l.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&u(e,r),i&&u(e,i),o&&u(e,o)},l.render=function(){var e=this.props;e.classNames;var t=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["classNames"]);return o.default.createElement(a.default,s({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(o.default.Component);c.defaultProps={classNames:""},c.propTypes={};var d=c;n.default=d,e.exports=n.default})),Av=F((function(e,n){function r(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}function o(e,t,n){return null!=n[t]?n[t]:e.props[t]}n.__esModule=!0,n.getChildMapping=r,n.mergeChildMappings=i,n.getInitialChildMapping=function(e,n){return r(e.children,(function(r){return(0,t.cloneElement)(r,{onExited:n.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})}))},n.getNextChildMapping=function(e,n,a){var l=r(e.children),s=i(n,l);return Object.keys(s).forEach((function(r){var i=s[r];if((0,t.isValidElement)(i)){var u=r in n,c=r in l,d=n[r],p=(0,t.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,t.isValidElement)(d)&&(s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:d.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):s[r]=(0,t.cloneElement)(i,{in:!1}):s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}})),s}})),Lv=F((function(e,n){n.__esModule=!0,n.default=void 0,o(xv);var r=o(t),i=o(Pv);function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s=function(e){var t,n;function o(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,Av.getInitialChildMapping)(e,r):(0,Av.getNextChildMapping)(e,n,r),firstRender:!1}},s.handleExited=function(e,t){var n=(0,Av.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},s.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),a=this.state.contextValue,s=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:a},s):r.default.createElement(i.default.Provider,{value:a},r.default.createElement(t,o,s))},o}(r.default.Component);s.propTypes={},s.defaultProps={component:"div",childFactory:function(e){return e}};var u=s;n.default=u,e.exports=n.default})),Fv=F((function(e,n){n.__esModule=!0,n.default=void 0,a(xv);var r=a(t),i=a(y),o=a(Lv);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.handleLifecycle=function(e,t,n){var o,a=this.props.children,l=r.default.Children.toArray(a)[t];if(l.props[e]&&(o=l.props)[e].apply(o,n),this.props[e]){var s=l.props.nodeRef?void 0:i.default.findDOMNode(this);this.props[e](s)}},l.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),l=a[0],s=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);l.propTypes={};var s=l;n.default=s,e.exports=n.default})),Dv=F((function(e,n){n.__esModule=!0,n.default=n.modes=void 0;var r=l(t);l(xv);var i,o,a=l(Pv);function l(e){return e&&e.__esModule?e:{default:e}}var s={out:"out-in",in:"in-out"};n.modes=s;var u=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},c=((i={})[s.out]=function(e){var t=e.current,n=e.changeState;return r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){n(Tv.ENTERING,null)}))})},i[s.in]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,r.default.cloneElement(i,{in:!0,onEntered:u(i,"onEntered",(function(){n(Tv.ENTERING)}))})]},i),d=((o={})[s.out]=function(e){var t=e.children,n=e.changeState;return r.default.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",(function(){n(Tv.ENTERED,r.default.cloneElement(t,{in:!0}))}))})},o[s.in]=function(e){var t=e.current,n=e.children,i=e.changeState;return[r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){i(Tv.ENTERED,r.default.cloneElement(n,{in:!0}))}))}),r.default.cloneElement(n,{in:!0})]},o),p=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Tv.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.appeared=!0},i.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Tv.ENTERING&&e.mode===s.in?{status:Tv.ENTERING}:!t.current||(n=t.current,i=e.children,n===i||r.default.isValidElement(n)&&r.default.isValidElement(i)&&null!=n.key&&n.key===i.key)?{current:r.default.cloneElement(e.children,{in:!0})}:{status:Tv.EXITING};var n,i},o.render=function(){var e,t=this.props,n=t.children,i=t.mode,o=this.state,l=o.status,s=o.current,u={children:n,current:s,changeState:this.changeState,status:l};switch(l){case Tv.ENTERING:e=d[i](u);break;case Tv.EXITING:e=c[i](u);break;case Tv.ENTERED:e=s}return r.default.createElement(a.default.Provider,{value:{isMounting:!this.appeared}},e)},i}(r.default.Component);p.propTypes={},p.defaultProps={mode:s.out};var f=p;n.default=f})),Rv=F((function(e,t){t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var n=s(jv);t.CSSTransition=n.default;var r=s(Fv);t.ReplaceTransition=r.default;var i=s(Dv);t.SwitchTransition=i.default;var o=s(Lv);t.TransitionGroup=o.default;var a=s(Tv);t.Transition=a.default;var l=s(kv);function s(e){return e&&e.__esModule?e:{default:e}}t.config=l.default})),Iv={position:"absolute",top:0,height:"100%",zIndex:999};function Mv(e){var t=e.isOpen,n=e.placement,r=e.minOffset,i=e.minScale,o=e.withoutTransition,a=e.children,l=e.childrenOnly,s=e.container,u={};"number"==typeof r&&(r+="px"),null!=n&&(u.placement=n),null!=i&&(u.minScale=i),null!=r&&(u.minOffset=r);var c=I.jsx(Rv.CSSTransition,E({in:t,unmountOnExit:!0,timeout:180,classNames:"cube-overlay-transition"},{children:l?a:I.jsx(ba,E({styles:Iv,css:o?"":mv(u)},{children:a}),void 0)}),void 0);return x(c,s||document.body)}var _v=function(){return I.jsx("svg",E({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},zv={display:"grid",position:"relative"},Kv={display:"grid",flow:"column",gridColumns:"1fr auto",placeItems:"center stretch",placeContent:"center stretch",gap:"1x",padding:"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)",border:{"":!0,invalid:"#danger-text.50",valid:"#success-text.50",focused:!0},radius:!0,reset:"input",preset:"default",outline:{"":"#purple-03.0",focused:"#purple-03"},color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#dark.04"},fontWeight:400,textAlign:"left"},Vv={position:"absolute",transform:{"":"translate(-1.5x, 0)",'[data-position="top"]':"translate(-1.5x, 0)"}},Uv={display:"flex",gap:".5x",flow:"column",margin:"0",padding:".5x",listStyle:"none",radius:!0,fill:"#white",shadow:"0px 4px 16px #shadow",height:"initial 30x",overflow:"hidden auto",styledScrollbar:!0},Bv={display:"block",padding:"(1x - 1px) (1.5x - 1px)",cursor:"pointer",radius:!0,fill:{"":"#white",focused:"#dark.04",selected:"#purple","focused & selected":"#purple-text",disabled:"#dark.04"},color:{"":"#dark.85",selected:"#white",disabled:"#dark.30"},fontWeight:500};function Wv(e){var t=e.state,n=e.popoverRef,r=e.listBoxRef,i=e.listBoxStyles,o=e.overlayStyles,a=e.optionStyles,l=e.overlayProps,s=e.disallowEmptySelection,u=e.shouldUseVirtualFocus,c=void 0!==u&&u,d=e.placement,p=e.minWidth,f=k(e,["state","popoverRef","listBoxRef","listBoxStyles","overlayStyles","optionStyles","overlayProps","disallowEmptySelection","shouldUseVirtualFocus","placement","minWidth"]),h=Og(E({autoFocus:t.focusStrategy||!0,disallowEmptySelection:s,shouldUseVirtualFocus:c},f),t,r).listBoxProps;i=E(E(E({},Uv),Ai("ListBoxPopup")),i);var g=lp({onClose:function(){return t.close()},shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},n).overlayProps;return I.jsx(ps,E({restoreFocus:!0},{children:I.jsxs(ba,E({styles:E(E({minWidth:p?p+"px":"initial"},Vv),{overlayStyles:o})},l,g,{"data-position":d,ref:n},{children:[I.jsx(Qp,{onDismiss:function(){return t.close()}},void 0),I.jsx(ba,E({as:"ul",styles:i},Gt(h,f),{ref:r},{children:Array.from(t.collection).map((function(e){return I.jsx(Gv,{item:e,state:t,styles:a,shouldUseVirtualFocus:c},e.key)}))}),void 0),I.jsx(Qp,{onDismiss:function(){return t.close()}},void 0)]}),void 0)}),void 0)}function Gv(e){var t=e.item,n=e.state,r=e.styles,i=e.shouldUseVirtualFocus,l=a(null),s=n.disabledKeys.has(t.key),u=n.selectionManager.isSelected(t.key),c=n.selectionManager.focusedKey===t.key;r=E(E(E({},Bv),Ai("Option")),r);var d=Ng({key:t.key,isDisabled:s,isSelected:u,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,shouldUseVirtualFocus:i},n,l).optionProps,p=O(o(!1),2),f=p[0],h=fl({onFocusChange:p[1]}).focusProps;return v(ba,E({as:"li"},Gt(d,h),{ref:l,mods:{selected:u,focused:i?c:f,disabled:s},styles:r,key:t.key}),t.rendered)}var qv=Object.assign(h((function(e,t){var n,r=(e=Ha(e=Ii(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.autoFocus,e.inputProps;var g=e.triggerRef,v=e.popoverRef,m=e.listBoxRef,b=e.isLoading;e.loadingIndicator;var y=e.insideForm,x=e.overlayOffset,w=void 0===x?8:x,S=e.inputStyles,P=e.optionStyles,T=e.suffix,C=e.disallowEmptySelection,O=e.listBoxStyles,N=e.overlayStyles,j=e.message,A=e.direction,L=void 0===A?"bottom":A,F=e.shouldFlip,D=void 0===F||F,R=e.requiredMark,M=void 0===R||R,_=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","autoFocus","inputProps","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","insideForm","overlayOffset","inputStyles","optionStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","message","direction","shouldFlip","requiredMark"]),z=function(e){let t=ug(e),n=vg(Dt({},e,{onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close()}})),[r,i]=o(!1);return Dt({},n,t,{open(){0!==n.collection.size&&t.open()},toggle(e){0!==n.collection.size&&t.toggle(e)},isFocused:r,setFocused:i})}(e),K=oo(_,Ca,E(E({},zv),Ai("Select_Wrapper",_)));S=oo(_,wa,E(E(E({},Kv),Ai("Select",_)),S)),t=ha(t),g=ha(g),v=ha(v),m=ha(m);var V=pv(e,z,g),U=V.labelProps,B=V.triggerProps,W=V.valueProps,G=V.menuProps,q=ip({targetRef:g,overlayRef:v,scrollRef:m,placement:L+" end",shouldFlip:D,isOpen:z.isOpen,onClose:z.close,offset:w}),J=q.overlayProps,H=q.placement,$=zl({isDisabled:h},!0),X=$.isFocused,Y=$.focusProps,Z=Il({isDisabled:h}),Q=Z.hoverProps,ee=Z.isHovered,te=Ls(B,g).buttonProps,ne="invalid"===d,re=ne?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),ie=f(re),oe=null===(n=null==g?void 0:g.current)||void 0===n?void 0:n.offsetWidth,ae=I.jsxs(ba,E({qa:"SelectWrapper",mods:{invalid:ne,valid:"valid"===d,disabled:h,hovered:ee,focused:X},styles:K},{children:[I.jsx(hv,{state:z,triggerRef:g,label:e.label,name:e.name},void 0),I.jsxs(ba,E({qa:r||"Select",as:"button"},Gt(te,Q,Y),{ref:g,styles:E(E({},Kv),S),mods:{invalid:ne,valid:"valid"===d,disabled:h,hovered:ee,focused:X}},{children:[p,I.jsx("span",E({},W,{children:z.selectedItem?z.selectedItem.rendered:"Select an option"}),void 0),(d||b||T)&&I.jsxs("div",{children:[d&&!b?ie:null,b&&I.jsx(Et,{},void 0),T]},void 0),I.jsx(_v,{},void 0)]}),void 0),I.jsx(Mv,E({isOpen:z.isOpen&&!h},{children:I.jsx(Wv,E({},G,{popoverRef:v,listBoxRef:m,overlayProps:J,placement:H,state:z,disallowEmptySelection:C,listBoxStyles:O,overlayStyles:N,optionStyles:P,minWidth:oe}),void 0)}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:i,insideForm:y,styles:K,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:U,isDisabled:h,validationState:d,message:j,requiredMark:M,Component:ae,ref:t}),void 0)})),{Item:qc});qv.cubeInputType="Select";var Jv=function(){return I.jsx("svg",E({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},Hv={position:"relative",display:"grid"},$v=E(E({},os),{width:"100%"}),Xv={display:"grid",placeItems:"center",placeContent:"center",radius:"right",padding:"1.5x 1x",color:"inherit",border:0,fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#clear"}};var Yv=Object.assign(h((function(e,t){var n,r=(e=Ha(e=Ii(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.multiLine,e.autoFocus;var g=e.inputRef,v=e.triggerRef,m=e.popoverRef,b=e.listBoxRef,y=e.isLoading;e.loadingIndicator;var x=e.insideForm,w=e.overlayOffset,S=void 0===w?8:w,P=e.inputStyles,T=e.optionStyles,C=e.triggerStyles,N=e.suffix,j=e.disallowEmptySelection,A=e.listBoxStyles,L=e.overlayStyles,F=e.hideTrigger,D=e.message,R=e.autoComplete,M=e.direction,_=void 0===M?"bottom":M,z=e.shouldFlip,K=void 0===z||z,V=e.requiredMark,U=void 0===V||V,B=e.menuTrigger,W=void 0===B?"input":B,G=e.loadingState,q=e.filter,J=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","multiLine","autoFocus","inputRef","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","insideForm","overlayOffset","inputStyles","optionStyles","triggerStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","hideTrigger","message","autoComplete","direction","shouldFlip","requiredMark","menuTrigger","loadingState","filter"]),H=null!=G,$=function(e){let t=fi(Dt({usage:"search"},e));return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,i=(n=n.normalize("NFC")).length;for(;r+i<=e.length;r++){let o=e.slice(r,r+i);if(0===t.compare(n,o))return!0}return!1}}}({sensitivity:"base"}).contains,X=O(o(0),2),Y=X[0],Z=X[1],Q=O(o(0),2),ee=Q[0],te=Q[1],ne=mg(E(E({},e),{defaultFilter:q||$,allowsEmptyCollection:H})),re=oo(J,Ca,E(E({},Hv),Ai("ComboBox_Wrapper",e)));P=oo(J,wa,E(E(E({},$v),Ai("ComboBox",e)),P)),C=E(E(E({},Xv),Ai("ComboBox_Trigger",e)),C),t=ha(t),g=ha(g),v=ha(v),m=ha(m),b=ha(b);var ie=dv(E(E({},e),{inputRef:g,buttonRef:v,listBoxRef:b,popoverRef:m,menuTrigger:W}),ne),oe=ie.labelProps,ae=ie.inputProps,le=ie.listBoxProps,se=ie.buttonProps,ue=ip({targetRef:v,overlayRef:m,scrollRef:b,placement:_+" end",shouldFlip:K,isOpen:ne.isOpen,onClose:ne.close,offset:S}),ce=ue.overlayProps,de=ue.placement;p&&(P.paddingLeft=ee+"px"),P.paddingRight=Y+"px";var pe=zl({isDisabled:h}),fe=pe.isFocused,he=pe.focusProps,ge=Il({isDisabled:h}),ve=ge.hoverProps,me=ge.isHovered,be=Ls(se,v),ye=be.buttonProps,xe=be.isPressed,we=Il({isDisabled:h}),Se=we.hoverProps,Ee=we.isHovered,ke=zl({isDisabled:h},!0),Pe=ke.focusProps,Te=ke.isFocused,Ce="invalid"===d,Oe=Ce?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),Ne=f(Oe),je=null===(n=null==t?void 0:t.current)||void 0===n?void 0:n.offsetWidth,Ae=I.jsxs(ba,E({ref:t,qa:"ComboBoxWrapper"},sa({invalid:Ce,valid:"valid"===d,disabled:h,hovered:me,focused:fe}),{styles:re,style:{zIndex:fe?1:"initial"}},{children:[I.jsx(ba,E({qa:r||"ComboBox",as:"input"},Gt(ae,ve,he),{ref:g,autoComplete:R,styles:P},sa({invalid:Ce,valid:"valid"===d,disabled:h,hovered:me,focused:fe})),void 0),p?I.jsx(Vl,E({onWidthChange:te,padding:"0 1x 0 1.5x",opacity:!!h&&"@disabled-opacity",placeItems:"center",outerGap:0},{children:p}),void 0):null,I.jsxs(Bl,E({onWidthChange:Z,padding:"1x left",opacity:!!h&&"@disabled-opacity"},{children:[I.jsxs(es,E({gap:!1,padding:"0 1x"},{children:[d&&!y?Ne:null,y&&I.jsx(Et,{},void 0)]}),void 0),N,F?null:I.jsx(ba,E({as:"button"},Gt(ye,Pe,Se),sa({pressed:xe,focused:Te,hovered:Ee,disabled:h}),{isDisabled:h,ref:v,styles:C},{children:I.jsx(Jv,{},void 0)}),void 0)]}),void 0),I.jsx(Mv,E({isOpen:ne.isOpen&&!h},{children:I.jsx(Wv,E({},le,{listBoxRef:b,popoverRef:m,overlayProps:ce,shouldUseVirtualFocus:!0,placement:de,state:ne,disallowEmptySelection:j,listBoxStyles:A,overlayStyles:L,optionStyles:T,minWidth:je}),void 0)}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:i,insideForm:x,styles:re,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:oe,isDisabled:h,validationState:d,message:D,requiredMark:U,Component:Ae,ref:t}),void 0)})),{cubeInputType:"ComboBox",Item:qc}),Zv={display:"grid",gap:"1x",flow:"row",fill:"#purple",color:"#white",radius:"round",placeContent:"center",width:"@avatar-size @avatar-size @avatar-size",height:"@avatar-size @avatar-size @avatar-size",fontSize:"calc(@avatar-size / 2)",lineHeight:"calc(@avatar-size / 2)",fontWeight:500},Qv=h((function(e,t){var n=e.size,r=void 0===n?"4x":n,i=e.icon,o=e.children,a=k(e,["size","icon","children"]),l=oo(a,Ta,E(E({},Zv),{"--avatar-size":r}));return I.jsxs(ba,E({},Da(a,{eventProps:!0}),{styles:l,ref:t,"data-theme":"special"},{children:[i,o]}),void 0)})),em=n({});var tm=N(N([],O(ka),!1),O(wa),!1),nm={pointerEvents:"auto",position:"relative",display:"grid",gridAreas:'"hero hero hero hero hero hero"\n ". . . . . ."\n ". heading header header header ."\n "divider divider divider divider divider divider"\n ". content content content content ."\n ". buttonGroup buttonGroup footer footer ."\n ". . . . . ."',gridColumns:"@dialog-padding-h auto auto auto auto @dialog-padding-h",gridRows:"auto @dialog-heading-padding-v auto auto 1fr auto @dialog-content-padding-v",placeItems:"baseline stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},transform:{"":!1,'[data-type="modal"]':"translate(0, ((50vh - 50%) / -3))"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-content-gap":"3x"},rm={position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",display:"flex",placeContent:"center"},im={},om={S:"small",M:"medium",L:"large"},am={small:360,medium:479,large:798},lm={"en-US":{dismiss:"Dismiss",alert:"Alert"}};var sm=h((function(e,t){var n=r(em)||{},o=n.type,a=void 0===o?"modal":o,l=k(n,["type"]),s=e.qa,u=e.children,c=e.size,d=void 0===c?"S":c,p=e.isDismissable,f=void 0===p?l.isDismissable:p,h=e.onDismiss,g=void 0===h?l.onClose:h,v=k(e,["qa","children","size","isDismissable","onDismiss"]);d=om[d.toUpperCase()]||d;var m,b=E(E(E(E({},nm),Ai("Dialog",e)),oo(v,tm)),{"@dialog-size":(am[d]||288)+"px"}),y=di(lm),x=vi(t),w=function(e,t){let{role:n="dialog"}=e,r=Bt();return r=e["aria-label"]?void 0:r,i((()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),ls(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:Dt({},$t(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r}),titleProps:{id:r}}}(la(l,e),x),S=w.dialogProps,P=w.titleProps;"popover"!==a&&"tray"!==a||(m=I.jsx(Qp,{onDismiss:g},void 0));var T={heading:E({level:2,preset:"h4",styles:im},P),divider:{styles:{margin:"@dialog-heading-padding-v 0 @dialog-content-gap 0"}},content:{styles:{flexGrow:1,margin:{"":"@dialog-content-gap bottom",":last-child":"0"},gap:"@dialog-content-gap"}},header:{styles:{display:"grid",flow:"column",gap:"1x",placeItems:"baseline stretch",padding:!!f&&"4x right",textAlign:"right"}},footer:{styles:{display:"grid",gap:"1x",flow:"column",placeItems:"baseline stretch",textAlign:"right"}}};return I.jsx(ps,E({contain:!0,restoreFocus:!0},{children:I.jsxs(ba,E({"data-id":"Dialog","data-qa":s||"Dialog",styles:b,as:"section"},S,{mods:{dismissable:f},"data-type":a,"data-size":d,ref:x},{children:[m,I.jsxs(da,E({slots:T},{children:[u,f&&I.jsx(qs,{qa:"ModalCloseButton",type:"item",styles:rm,icon:I.jsx(Xe,{},void 0),"aria-label":y("dismiss"),onPress:function(){return g&&g()}},void 0)]}),void 0)]}),void 0)}),void 0)})),um={entering:!1,entered:!0};function cm(e){return I.jsx(Cv,E({timeout:{enter:0,exit:350}},e,{children:function(t){return d.map(e.children,(function(e){return e&&f(e,{isOpen:!!um[t]})}))}}),void 0)}var dm=h((function(e,t){var n=e.children,r=e.isOpen,i=e.container,a=e.onEnter,s=e.onEntering,u=e.onEntered,c=e.onExit,d=e.onExiting,p=e.onExited,f=O(o(!r),2),h=f[0],g=f[1],v=l((function(){g(!1),u&&u()}),[u]),m=l((function(){g(!0),p&&p()}),[p]);if(!(r||!h))return null;var b=I.jsx(Ri,E({ref:t},{children:I.jsx(cm,E({in:r,appear:!0,onExit:c,onExiting:d,onExited:m,onEnter:a,onEntering:s,onEntered:v},{children:n}),void 0)}),void 0);return y.createPortal(b,i||document.body)})),pm={position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"},fm=h((function(e,t){var n=e.isOpen,r=k(e,["isOpen"]),i=E(E({},pm),Ai("Underlay"));return I.jsx(ba,E({ref:t,"data-qa":"Underlay",styles:i,mods:{open:n}},r),void 0)})),hm={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"@cube-visual-viewport-height",pointerEvents:"none",zIndex:2,transition:"visibility 0ms linear .13s"},gm={display:"grid",zIndex:2,height:{"":"max (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"@cube-visual-viewport-height @cube-visual-viewport-height",'[data-type="fullscreen"]':"(@cube-visual-viewport-height * .9) (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"]':"@cube-visual-viewport-height @cube-visual-viewport-height"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, visibility 0ms linear, transform .25s ease-in-out",transform:{"":"translate(0, 0) scale(1, 1)",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:".9999"}};var vm=h((function(e,t){var n=e.qa,r=e.children,i=e.isOpen,o=e.type,a=e.placement,l=e.styles,s=e.overlayProps,u=k(e,["qa","children","isOpen","type","placement","styles","overlayProps"]);l=E(E(E({},gm),Ai("Modal",e)),l),dp();var c=mp().modalProps,d={"--cube-visual-viewport-height":sn().height+"px"};return I.jsx(ba,E({qa:"ModalWrapper",mods:{open:i},"data-type":o,"data-placement":a,styles:hm,style:d},{children:I.jsx(ba,E({qa:n||"Modal",styles:l,mods:{open:i},"data-type":o,"data-placement":a},la(u,s,c),{ref:t},{children:r}),void 0)}),void 0)})),mm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.type,a=e.styles,l=k(e,["qa","children","onClose","type","styles"]),s=vi(t),u=lp(e,s),c=u.overlayProps,d=u.underlayProps;return I.jsxs(dm,E({},l,{children:["fullscreenTakeover"!==o&&I.jsx(fm,E({},d),void 0),I.jsx(vm,E({qa:n,onClose:i,type:o,ref:s,overlayProps:c,styles:a},{children:r}),void 0)]}),void 0)})),bm={zIndex:2,height:"max (@cube-visual-viewport-height * .9)",width:"288px 90vw",pointerEvents:"auto",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear",opacity:{"":0,open:".9999"}};var ym=h((function(e,t){var n=e.qa,r=e.children,l=e.isOpen,s=e.styles,u=e.isFixedHeight,c=e.isNonModal,d=e.overlayProps,p=k(e,["qa","children","isOpen","styles","isFixedHeight","isNonModal","overlayProps"]);dp();var f=mp({isDisabled:c}).modalProps;s=E(E(E({},bm),Ai("Tray",e)),s);var h=sn(),g=O(o(h.height),2),v=g[0],m=g[1],b=a();i((function(){b.current&&clearTimeout(b.current),h.height<v&&h.height<window.innerHeight?b.current=setTimeout((function(){m(h.height)}),500):m(h.height)}),[v,h.height]);var y={"--cube-visual-viewport-height":v+"px"},x=la(p,d);return I.jsx(ba,E({qa:"TrayWrapper",mods:{open:l},styles:E(E({},hm),{placeContent:"end center",placeItems:"end center"}),style:y},{children:I.jsx(ba,E({qa:n||"Tray",styles:s,mods:{open:l,"fixed-height":u}},x,f,{ref:t},{children:r}),void 0)}),void 0)})),xm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.isFixedHeight,a=e.isNonModal,l=e.styles,s=k(e,["qa","children","onClose","isFixedHeight","isNonModal","styles"]),u=vi(t),c=lp(E(E({},e),{isDismissable:!0}),u),d=c.overlayProps,p=c.underlayProps;return I.jsxs(dm,E({},s,{children:[I.jsx(fm,E({},p),void 0),I.jsx(ym,E({qa:n,onClose:i,ref:u,overlayProps:d,isFixedHeight:o,isNonModal:a,styles:l},{children:r}),void 0)]}),void 0)})),wm={pointerEvents:"auto",position:"absolute",transition:"opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out",transform:{"":"scale(1, .9)",open:"scale(1, 1)"},opacity:{"":0,open:".9999"},transformOrigin:{"":"top center",'[data-placement="top"]':"bottom center"}};var Sm=h((function(e,t){var n=e.qa,r=e.children,i=e.placement,o=void 0===i?"bottom":i;e.arrowProps;var a=e.isOpen,l=e.style,s=e.styles;e.shouldCloseOnBlur,e.isKeyboardDismissDisabled;var u=e.isNonModal,c=e.isDismissable,d=k(e,["qa","children","placement","arrowProps","isOpen","style","styles","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]),p=lp(E(E({},e),{isDismissable:c&&a}),t).overlayProps,f=mp({isDisabled:u}).modalProps;return s=E(E(E({},wm),Ai("Popover",e)),s),I.jsx(ba,E({qa:n||"Popover"},Gt(d,p,f),{styles:s,ref:t,mods:{open:a},"data-placement":o,role:"presentation",style:l},{children:r}),void 0)})),Em=h((function(e,t){var n=e.qa,r=e.style,i=e.styles,o=e.children,a=e.placement,l=e.arrowProps,s=e.onClose,u=e.shouldCloseOnBlur,c=e.isKeyboardDismissDisabled,d=e.isNonModal,p=e.isDismissable,f=void 0===p||p,h=k(e,["qa","style","styles","children","placement","arrowProps","onClose","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]);return I.jsx(dm,E({},h,{children:I.jsx(Sm,E({qa:n,ref:t,style:r,styles:i,placement:a,arrowProps:l,onClose:s,shouldCloseOnBlur:u,isKeyboardDismissDisabled:c,isNonModal:d,isDismissable:f},{children:o}),void 0)}),void 0)}));var km=function(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,l=e.mobileType,s=void 0===l?"popover"===r?"modal":r:l,u=e.hideArrow,c=e.targetRef,d=e.onDismiss,p=e.isDismissable,f=e.isKeyboardDismissDisabled,h=e.styles,g=e.mobileViewport,v=void 0===g?700:g,m=k(e,["children","type","mobileType","hideArrow","targetRef","onDismiss","isDismissable","isKeyboardDismissDisabled","styles","mobileViewport"]);if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");var b=O(t,2),y=b[0],x=b[1];(function(e){let t="undefined"!=typeof window&&"function"==typeof window.matchMedia,[n,r]=o((()=>!!t&&window.matchMedia(e).matches));return i((()=>{if(!t)return;let n=window.matchMedia(e),i=e=>{r(e.matches)};return n.addListener(i),()=>{n.removeListener(i)}}),[t,e]),!_t()&&n})("(max-width: "+v+"px)")&&("modal"!==r&&"modal"===s&&(p=!0),r=s);var w=sg(e),S=a(!1),P=a(!1),T=function(){return P.current=!0},C=function(){return P.current=!1};function N(){p&&(d&&d(),w.close())}return S.current=w.isOpen,i((function(){return function(){(S.current||P.current)&&"popover"!==r&&"tray"!==r&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")}}),[]),"popover"===r?I.jsx(Pm,E({},m,{state:w,targetRef:c,trigger:y,content:x,onClose:N,isKeyboardDismissDisabled:f,hideArrow:u}),void 0):I.jsx(Tm,{type:r,state:w,onClose:N,isDismissable:p,trigger:y,overlay:function(){switch(r){case"panel":case"fullscreen":case"fullscreenTakeover":case"modal":return I.jsx(mm,E({isOpen:w.isOpen,isDismissable:p,onClose:N,type:r,isKeyboardDismissDisabled:f,onExiting:T,onExited:C,styles:h},{children:"function"==typeof x?x(w.close):x}),void 0);case"tray":return I.jsx(xm,E({isOpen:w.isOpen,onClose:N,isKeyboardDismissDisabled:f,styles:h},{children:"function"==typeof x?x(w.close):x}),void 0)}}()},void 0)};function Pm(e){var t=e.state,n=e.targetRef,r=e.trigger,i=e.content,o=e.hideArrow,l=e.onClose,s=e.isKeyboardDismissDisabled,u=k(e,["state","targetRef","trigger","content","hideArrow","onClose","isKeyboardDismissDisabled"]),c=a(null),d=a(null),p=ip({targetRef:n||c,overlayRef:d,placement:u.placement,containerPadding:u.containerPadding,offset:u.offset||8,crossOffset:u.crossOffset,shouldFlip:u.shouldFlip,isOpen:t.isOpen}),f=p.overlayProps,h=p.placement,g=p.arrowProps,v=sp({type:"dialog"},t,c),m=v.triggerProps,b=v.overlayProps,y=E(E({},m),{ref:n?void 0:c}),x=I.jsx(Em,E({isOpen:t.isOpen,style:f.style,ref:d,onClose:l,placement:h,arrowProps:g,isKeyboardDismissDisabled:s,hideArrow:o},{children:"function"==typeof i?i(t.close):i}),void 0);return I.jsx(Tm,{type:"popover",state:t,triggerProps:y,dialogProps:b,trigger:r,overlay:x},void 0)}function Tm(e){var t=e.type,n=e.state,r=e.onClose,i=e.isDismissable,o=e.dialogProps,a=void 0===o?{}:o,l=e.triggerProps,s=void 0===l?{}:l,u=e.overlay,c=e.trigger,d=E({type:t,onClose:r,isDismissable:i},a);return I.jsxs(g,{children:[I.jsx(pl,E({},s,{onPress:n.toggle,isPressed:n.isOpen&&"modal"!==t&&"fullscreen"!==t&&"fullscreenTakeover"!==t},{children:c}),void 0),I.jsx(em.Provider,E({value:d},{children:u}),void 0)]},void 0)}var Cm=h((function(e,t){var n=(r(em)||{}).onClose,i=void 0===n?function(){}:n,o=e.danger,a=e.children,l=e.primaryProps,s=void 0===l?{}:l,u=e.secondaryProps,c=e.cancelProps,d=e.title,p=k(e,["danger","children","primaryProps","secondaryProps","cancelProps","title"]);s.label||(s.label="Ok");var f="primary";return o&&(f="danger"),I.jsxs(sm,E({role:"alertdialog",ref:t},p,{children:[I.jsx(_c,{children:d},void 0),I.jsx(sf,{},void 0),I.jsx(ff,{children:a},void 0),I.jsxs(Bc,E({align:"end"},{children:[I.jsx(qs,E({type:f},s,{onPress:function(e){return Wt(s.onPress&&s.onPress(e),i("primary"))}}),void 0),u&&I.jsx(qs,E({},u,{onPress:function(e){return Wt((null==u?void 0:u.onPress)&&(null==u?void 0:u.onPress(e)),i("secondary"))}}),void 0),c&&I.jsx(qs,E({},c,{onPress:function(e){return Wt((null==c?void 0:c.onPress)&&(null==c?void 0:c.onPress(e)),i("cancel"))}}),void 0)]}),void 0)]}),void 0)}));function Om(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,i=e.onDismiss,o=e.isDismissable,a=e.isKeyboardDismissDisabled,l=d.only(t),s={type:r,onClose:i,isDismissable:o};return I.jsx(mm,E({isOpen:!!l,onClose:o?i:void 0,type:r||"modal",isDismissable:o,isKeyboardDismissDisabled:a},{children:I.jsx(em.Provider,E({value:s},{children:l}),void 0)}),void 0)}var Nm=0,jm={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-dialog-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),y.render(I.jsx(vp,{children:e.map((function(e){var n=e.id,r=e.type;e.placement;var i=e.isDismissable,o=void 0===i||i,a=e.primaryProps,l=e.cancelProps;e.onDismiss;var s=e.content,u=k(e,["id","type","placement","isDismissable","primaryProps","cancelProps","onDismiss","content"]);return I.jsx(Om,E({isDismissable:o,type:r,onDismiss:function(){"info"===e.dialogType?t.resolve(e):t.reject(e)}},{children:e.isVisible?v(Cm,E({primaryProps:E(E({},a),{onPress:function(){t.resolve(e)}}),cancelProps:l?E(E({},l),{onPress:function(){t.reject(e)}}):void 0},u,{key:n}),s):null}),n)}))},void 0),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++Nm,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}},Am=Object.assign(sm,{confirm:function(e){return jm.open(E({dialogType:"confirm"},e))},info:function(e){return jm.open(E({dialogType:"info"},e))}}),Lm=t.createContext({});var Fm={display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)"},Dm={position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.375x, (-.375x - 1px)) rotate(270deg)",'[data-placement="right"]':"translate(.375x, (-.375x - 1px)) rotate(90deg)"}};var Rm=h((function(e,t){var n=r(Lm),i=n.ref,o=n.arrowProps,l=n.state,s=n.overlayProps,u=n.minOffset,d=n.minScale,p=k(n,["ref","arrowProps","state","overlayProps","minOffset","minScale"]),f=a(null);i=i||f;var h=(e=Gt(e,p)).placement,g=void 0===h?"top":h,v=e.isOpen,m=e.tipStyles;e.showIcon;var b=e.isMaterial,y=oo(k(e,["placement","isOpen","tipStyles","showIcon","isMaterial"]),Ta,E(E(E({},Fm),{pointerEvents:b?"auto":"none"}),Ai("Tooltip",e)));m=E(E(E({},Dm),Ai("Tooltip_Tip")),m);var x=function(e,t){let n=$t(e,{labelable:!0}),{hoverProps:r}=Il({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:Gt(n,r,{role:"tooltip"})}}(e,l).tooltipProps;return c(t,(function(){return i?hi(i):null})),"number"==typeof u&&(u+="px"),"number"==typeof d&&(d=String(d)),I.jsxs(ba,E({},x,s,{css:mv({placement:g,minOffset:u,minScale:d}),styles:y,mods:{open:v},"data-placement":g,ref:i},{children:[e.children,I.jsx(ba,E({"data-placement":g,styles:m},o),void 0)]}),void 0)}));const Im=1500;let Mm={},_m=0,zm=!1,Km=null,Vm=null;function Um(e){void 0===e&&(e={});let{delay:t=Im}=e,{isOpen:n,open:r,close:o}=sg(e),l=s((()=>""+ ++_m),[]),u=a(),c=()=>{Mm[l]=f},d=()=>{for(let e in Mm)e!==l&&(Mm[e](!0),delete Mm[e])},p=()=>{clearTimeout(u.current),u.current=null,d(),c(),zm=!0,r(),Km&&(clearTimeout(Km),Km=null),Vm&&(clearTimeout(Vm),Vm=null)},f=e=>{e?(clearTimeout(u.current),u.current=null,o()):u.current||(u.current=setTimeout((()=>{u.current=null,o()}),500)),Km&&(clearTimeout(Km),Km=null),zm&&(Vm&&clearTimeout(Vm),Vm=setTimeout((()=>{delete Mm[l],Vm=null,zm=!1}),500))};return i((()=>()=>{clearTimeout(u.current),Mm[l]&&delete Mm[l]}),[l]),{isOpen:n,open:e=>{!e&&t>0&&!u.current?(d(),c(),n||Km||zm?n||p():Km=setTimeout((()=>{Km=null,zm=!0,p()}),t)):p()},close:f}}var Bm=function(e){var t=e.children,n=e.activeWrap,r=e.crossOffset,o=void 0===r?0:r,l=e.isDisabled,s=e.isMaterial,u=e.offset,c=void 0===u?8:u,p=e.trigger,f=O(d.toArray(t),2),h=f[0],g=f[1],v=Um(E({delay:750},e)),m=a(null),b=a(null),y=function(e,t,n){let{isDisabled:r,trigger:o}=e,l=Vt(),s=a(!1),u=a(!1),c=()=>{(s.current||u.current)&&t.open(u.current)},d=e=>{s.current||u.current||t.close(e)};i((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&t.close(!0)};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let{hoverProps:p}=Il({isDisabled:r,onHoverStart:()=>{"focus"!==o&&("pointer"===Ol()?s.current=!0:s.current=!1,c())},onHoverEnd:()=>{"focus"!==o&&(u.current=!1,s.current=!1,d())}}),{pressProps:f}=il({onPressStart:()=>{u.current=!1,s.current=!1,d(!0)}}),{focusableProps:h}=Ts({isDisabled:r,onFocus:()=>{Cl()&&(u.current=!0,c())},onBlur:()=>{u.current=!1,s.current=!1,d(!0)}},n);return{triggerProps:Dt({"aria-describedby":t.isOpen?l:void 0},Gt(h,p,f)),tooltipProps:{id:l}}}({isDisabled:l,trigger:p},v,m),x=y.triggerProps,w=y.tooltipProps,S=ip({placement:e.placement||"top",targetRef:m,overlayRef:b,offset:c,crossOffset:o,isOpen:v.isOpen}),k=S.overlayProps,P=S.arrowProps,T=S.placement;return n||"string"!=typeof h?I.jsxs(Ps,E({},x,{ref:m},{children:[n?I.jsx(td,{children:h},void 0):h,I.jsx(Lm.Provider,E({value:E({state:v,placement:T,ref:b,overlayProps:k,arrowProps:P,minOffset:"var(--gap)",minScale:"1",isMaterial:s},w)},{children:I.jsx(Mv,E({isOpen:v.isOpen,childrenOnly:!0,placement:e.placement||"top",withoutTransition:!0},{children:g}),void 0)}),void 0)]}),void 0):(console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),I.jsx(ns,{children:h},void 0))};var Wm=function(e){var t=e.title,n=e.children,r=e.tooltipStyles,i=e.width,o=k(e,["title","children","tooltipStyles","width"]);return I.jsxs(Bm,E({},o,{children:[n,I.jsx(Rm,E({styles:r,width:i},{children:t}),void 0)]}),void 0)},Gm={display:"flex",flow:"row",gap:"1x",placeContent:"space-between",placeItems:"center",padding:"1x 1.5x",fill:"#white"};function qm(e){var t=e.children,n=e.onLogoPress,r=k(e,["children","onLogoPress"]),i=oo(r,Ta,Gm);return I.jsxs(ba,E({role:"banner",styles:i},Da(r),{children:[I.jsx(zf,{onPress:n},void 0),I.jsx(es,E({flexGrow:1,placeContent:"space-between"},{children:t}),void 0)]}),void 0)}var Jm={display:"block",flow:"column",radius:"1x",padding:"1.5x"},Hm=N(N([],O(Ta),!1),O(Ea),!1),$m=h((function(e,t){var n=e.type;e.label;var r=k(e,["type","label"]);n=n||"note";var i=oo(r,Hm,E(E({},Jm),{fill:Kf[n]?Kf[n].fill:"#clear",border:Kf[n]&&Kf[n].border?Kf[n].border:"#clear",color:"#dark"}));return I.jsx(ba,E({role:"region"},Da(r,{eventProps:!0}),{styles:i,ref:t}),void 0)})),Xm={created:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M4.714 8.572h2.714v2.715c0 .078.065.142.143.142h.857a.143.143 0 00.143-.143V8.572h2.715a.143.143 0 00.142-.143v-.857a.143.143 0 00-.142-.143H8.57V4.715a.143.143 0 00-.143-.143h-.857a.143.143 0 00-.143.143V7.43H4.714a.143.143 0 00-.143.143v.857c0 .079.065.143.143.143z",fill:"#67C082"},void 0),I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#67C082"},void 0)]}),void 0),deleted:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M4.714 8.57h6.572a.143.143 0 00.142-.142V7.57a.143.143 0 00-.142-.143H4.714a.143.143 0 00-.143.143v.857c0 .078.065.143.143.143z",fill:"#FF646D"},void 0),I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FF646D"},void 0)]}),void 0),modified:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FBBC05"},void 0),I.jsx("circle",{cx:"8",cy:"8",r:"2.222",fill:"#FBBC05"},void 0)]}),void 0)},Ym={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function Zm(e){return".75x .5x .75x "+(1.5*e+.5)+"x"}function Qm(e,t){return void 0===t&&(t=!1),e.reduce((function(e,n){return n.isLeaf?t||e.push(n.key):(e.push(n.key),e.push.apply(e,N([],O(Qm(n.children||[])),!1))),e}),[])}var eb={created:{"":"#success.10",hovered:"#success.15"},deleted:{"":"#danger.08",hovered:"#danger.13"}},tb={created:"#success",deleted:"#danger"};function nb(e){var t=e.isSelected,n=e.mode,r=e.indent;return{width:"max 100%",radius:!0,textAlign:"left",fill:t?"#purple.05":eb[n]||{"":"#clear",hovered:"#dark.04"},color:t?"#purple-text":tb[n]||"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:t?500:400,padding:Zm(r)}}function rb(e){var t=e.children,n=e.mode,r=e.indent,i=e.onPress,o=e.isSelected;return I.jsx(Ks,E({onPress:i,styles:nb({isSelected:o,mode:n,indent:r}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}function ib(e){return(e=e.map((function(e){return E(E({},e),{children:e.children?ib(e.children):void 0})}))).sort((function(e,t){return!e.isLeaf&&t.isLeaf?-1:!t.isLeaf&&e.isLeaf?1:e.title&&t.title?e.title.localeCompare(t.title,"en",{sensitivity:"base"}):0}))}var ob="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function ab(e){var t=e.onSelect,n=e.treeData,r=e.selectedKey,a=e.defaultExpandAll,l=e.rootTitle,s=e.actionsPanel,u=e.onlyDirs,c=k(e,["onSelect","treeData","selectedKey","defaultExpandAll","rootTitle","actionsPanel","onlyDirs"]);n=ib(n);var d=O(o(["/"]),2),p=d[0],f=d[1],h=O(o(r),2),g=h[0],v=h[1],m=[{key:"/",title:l||"/",children:n}];function b(e){t&&t(e.key),v(e.key)}return i((function(){v(r)}),[r]),i((function(){a&&f(Qm(m,!0))}),[]),I.jsx(ld,E({styles:{flow:"column",fontWeight:500,width:"100%",gap:"1bw"}},c,{children:function e(t,n){return void 0===n&&(n=0),t.reduce((function(t,r){return r.isLeaf?u||t.push(I.jsx(rb,E({indent:n+1.7,isSelected:g===r.key,onPress:function(){return b(r)},mode:r.mode},{children:I.jsxs(es,E({gap:"1x",css:ob,color:g===r.key?"#purple":"#dark.50"},{children:[I.jsx(dt,{},void 0),I.jsx(ns,E({style:Ym,flexGrow:1,color:g===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0),s&&s(r),r.mode&&I.jsx(ld,E({padding:"0 .5x",placeItems:"center"},{children:Xm[r.mode]}),void 0)]}),void 0)}),r.key)):(t.push(I.jsx(rb,E({indent:n,isSelected:g===r.key,onPress:function(){return b(r)}},{children:I.jsxs(es,E({gap:".5x",css:ob},{children:[I.jsx(qs,E({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return function(e){p.includes(e.key)?f(p.filter((function(t){return t!==e.key}))):f(N(N([],O(p),!1),[e.key],!1))}(r)}},{children:p.includes(r.key)?I.jsx(We,{},void 0):I.jsx(Ve,{},void 0)}),void 0),I.jsxs(es,E({gap:"1x",flexGrow:1,color:g===r.key?"#purple":"#dark.50"},{children:[p.includes(r.key)?I.jsx(mt,{},void 0):I.jsx(ht,{},void 0),I.jsx(ns,E({style:Ym,color:g===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0)]}),void 0),s&&s(r)]}),void 0)}),r.key)),p.includes(r.key)&&t.push.apply(t,N([],O(e(r.children||[],n+1)),!1))),t}),[])}(m)}),void 0)}var lb=n({addTab:function(){},removeTab:function(){},setTab:function(){},changeTab:function(){}}),sb=function(e){var t=e.isSelected,n=e.isHidden;e.onClose;var r=k(e,["isSelected","isHidden","onClose"]);return I.jsx(qs,E({type:"tab",isSelected:t,isHidden:n},r),void 0)};function ub(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick;e.onTabClose;var l=e.paneStyles,s=e.extra,c=e.children,d=k(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","extra","children"]),p=a(null),f=O(o([]),2),h=f[0],g=f[1],v=O(o(n||t),2),m=v[0],b=v[1],y=O(o(!1),2),x=y[0],w=y[1],S=O(o(!1),2),P=S[0],T=S[1];function C(){var e=p&&p.current;e&&(w(!!e.scrollLeft),T(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function j(e,t){return e.find((function(e){return e.id===t}))}function A(e){j(h,e)&&b(e)}return u(C,[h]),i((function(){function e(){C()}return p&&p.current&&(p.current.addEventListener("scroll",e),p.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){p&&p.current&&(p.current.removeEventListener("scroll",e),p.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[p]),i((function(){var e=p&&p.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[m]),i((function(){b(n)}),[n]),I.jsx(ld,E({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":x||null,"data-is-right-fade":P||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},d,{children:I.jsxs(lb.Provider,E({value:{addTab:function(e){g((function(t){return j(t,e.id)?t:N(N([],O(t),!1),[e],!1)}))},setTab:A,removeTab:function(e){g((function(t){var n=t.filter((function(t){return t.id!==e.id}));return b((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},changeTab:function(e){g((function(t){var n=t.find((function(t){return t.id===e.id}));return n&&Object.assign(n,e),N([],O(t),!1)}))},currentTab:m}},{children:[I.jsxs(es,E({gap:".5x",placeContent:"center space-between"},{children:[I.jsx(es,E({ref:p,gap:"1x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:h.map((function(e){return I.jsx(sb,E({"data-qa":e.qa,onPress:function(){return function(e){r&&r(e.id),A(e.id)}(e)},isSelected:e.id===m||!1,isDisabled:e.isDisabled,isHidden:e.isHidden},{children:e.title}),e.id)}))}),void 0),s]}),void 0),I.jsx(ld,E({flexGrow:1,border:"top rgb(227, 227, 233)"},l||{},{children:c}),void 0)]}),void 0)}),void 0)}ub.TabPane=function(e){var t=e.id,n=e.title,o=e.qa,a=e.isHidden,l=e.isDisabled,s=e.children,u=k(e,["id","title","qa","isHidden","isDisabled","children"]),c=r(lb),d=c.addTab,p=c.removeTab,f=c.changeTab,h=c.currentTab;i((function(){var e={id:t,qa:o,title:n,isDisabled:l,isHidden:a};return d(e),function(){p(e)}}),[t]),i((function(){f({id:t,qa:o,title:n,isDisabled:l,isHidden:a})}),[n,l,a]);var g=t===h;return I.jsx(ns,E({style:{display:g?"block":"none"},flexGrow:1},u,{children:s}),void 0)};var cb=n({addTab:function(){},removeTab:function(){},setTab:function(){},setDirtyTab:function(){}}),db={radius:"1r 1r 0 0",padding:"1x 1.5x",border:{"":"left top right #clear",disabled:"left top right rgb(227, 227, 233)"},fill:{"":"#dark.04",hovered:"#dark.08","disabled, disabled & hover":"#white"},color:{"":"#dark.75","disabled, hovered, hovered & disabled":"#dark"},cursor:{"":"pointer",disabled:"default"},fontWeight:500,opacity:1,preset:"default",outline:{"":"inset #purple-03.0","focused & focus-visible":"inset #purple-03"}},pb={color:{"":"#dark.50",hovered:"#dark"},padding:"0 .25x",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},radius:"1r"},fb=function(e){var t=e.isDirty,n=e.isDisabled,r=e.children,i=e.isClosable,o=e.onClose,a=k(e,["isDirty","isDisabled","children","isClosable","onClose"]);return I.jsx(Ks,E({className:t?"file-tab--dirty":"",css:"\n margin-bottom: var(--border-width);\n transform: translate(0, 0);\n transition: color .2s linear, background-color .2s linear;\n\n &[disabled] {\n transform: translate(0, var(--border-width));\n }\n\n &.file-tab--dirty {\n &:hover {\n & .file-tab-dirty-badge {\n opacity: 0;\n pointer-events: none;\n }\n\n & .file-tab-close {\n opacity: 1;\n }\n }\n\n &:not(:hover) {\n & .file-tab-dirty-badge {\n opacity: 1;\n }\n\n & .file-tab-close {\n opacity: 0;\n }\n }\n }\n",styles:db,isDisabled:n},a,{children:I.jsxs(es,E({gap:".75x"},{children:[I.jsx(ns,{children:r},void 0),(i||t)&&I.jsxs(ld,E({placeItems:"center",style:{position:"relative"}},{children:[i?I.jsx(Ks,E({onPress:o,className:"file-tab-close",styles:pb},{children:I.jsx(Xe,{},void 0)}),void 0):I.jsx("div",{},void 0),t?I.jsx(ns,{className:"file-tab-dirty-badge",css:"\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all .2s linear;\n",width:"1x",height:"1x",fill:"#dark.30",radius:"round"},void 0):null]}),void 0)]}),void 0)}),void 0)};function hb(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick,l=e.onTabClose,s=e.paneStyles,c=e.isClosable,d=void 0===c||c,p=e.children,f=k(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","isClosable","children"]),h=a(null),g=O(o([]),2),v=g[0],m=g[1],b=O(o(n||t),2),y=b[0],x=b[1],w=O(o(!1),2),S=w[0],P=w[1],T=O(o(!1),2),C=T[0],j=T[1];function A(){var e=h&&h.current;e&&(P(!!e.scrollLeft),j(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function L(e,t){return e.find((function(e){return e.id===t}))}function F(e){L(v,e)&&x(e)}return u(A,[v]),i((function(){function e(){A()}return h&&h.current&&(h.current.addEventListener("scroll",e),h.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){h&&h.current&&(h.current.removeEventListener("scroll",e),h.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[h]),i((function(){var e=h&&h.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[y]),i((function(){x(n)}),[n]),I.jsx(ld,E({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":S||null,"data-is-right-fade":C||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},f,{children:I.jsxs(cb.Provider,E({value:{addTab:function(e){m((function(t){return L(t,e.id)?t:N(N([],O(t),!1),[e],!1)}))},setTab:F,removeTab:function(e){m((function(t){var n=t.filter((function(t){return t.id!==e.id}));return x((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},setDirtyTab:function(e,t){m((function(n){var r=L(n,e);return r?(r.isDirty=t,N([],O(n),!1)):n}))},currentTab:y}},{children:[I.jsx(es,E({ref:h,gap:".5x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:v.map((function(e){return I.jsx(fb,E({onPress:function(){return function(e){F(e.id),r&&r(e.id)}(e)},onClose:function(){return d&&function(e){L(v,e.id)&&l&&l(e.id)}(e)},isClosable:d,isDisabled:e.id===y||!1,isDirty:e.isDirty},{children:e.title}),e.id)}))}),void 0),I.jsx(ld,E({flexGrow:1,border:"top rgb(227, 227, 233)"},s||{},{children:p}),void 0)]}),void 0)}),void 0)}hb.TabPane=function(e){var t=e.id,n=e.title,o=e.isDirty,a=e.children,l=k(e,["id","title","isDirty","children"]),s=r(cb),u=s.addTab,c=s.removeTab,d=s.currentTab,p=s.setDirtyTab;i((function(){var e={id:t,title:n,isDirty:o};return u(e),function(){c(e)}}),[t,n]),i((function(){p(t,o||!1)}),[o]);var f=t===d;return I.jsx(ns,E({style:{display:f?"block":"none"},flexGrow:1},l,{children:a}),void 0)};var gb=m.div(mb||(mb=j(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"],["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"])));function vb(e){var t=this,n=e.title,r=e.isVisible,a=e.type,s=e.okType,u=e.isClosable,c=e.isLoading,d=e.children,p=e.okText,f=e.cancelText,h=e.width,g=e.onOk,v=e.onCancel,m=e.onClose,b=e.qa,y=e.isDisabled,x=k(e,["title","isVisible","type","okType","isClosable","isLoading","children","okText","cancelText","width","onOk","onCancel","onClose","qa","isDisabled"]);u=!!u;var w=O(o(!1),2),S=w[0],C=w[1],N=O(o(!1),2),j=N[0],A=N[1];function L(){(m||v)&&(u?(m||v)():v&&v())}i((function(){C(r||!1)}),[r]);i((function(){function e(e){"Escape"!==e.key||c||L()}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[]);var F=l((function(e){A(!0),P(t,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:if(!g)return[3,5];t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,g(e)];case 2:return!1===t.sent()&&(m||v)&&(m||v)(),[3,5];case 3:return t.sent(),[3,5];case 4:return A(!1),[7];case 5:return[2]}}))}))}),[g]);return I.jsx(Rv.CSSTransition,E({in:S,timeout:250,classNames:"cube-modal-transition"},{children:I.jsx(gb,E({className:"cube-modal-overlay",onClick:function(e){e&&e.target&&e.target.classList.contains("cube-modal-overlay")&&!c&&L()}},{children:I.jsxs(Lf,E({"data-qa":b||"Modal",className:"cube-modal",display:"flex",role:"region",color:"#dark.85",padding:"0",shadow:!0,border:!1,radius:"1.5r",width:"288px (100% - 32px) "+("number"==typeof h?h+"px":h||"360px"),style:{textAlign:"left"}},x,{children:[I.jsxs(ld,E({placeContent:"space-between",padding:"2x 3x",border:"bottom"},{children:["object"==typeof n?n:I.jsx(_c,E({level:4,flexGrow:1},{children:n}),void 0),u?I.jsx(Ks,E({"data-qa":"ModalCloseButton",width:"3x",height:"3x",onPress:m||v,color:{"":"#dark.75",hovered:"#purple"},outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"}},{children:I.jsx(Xe,{style:{fontSize:16}},void 0)}),void 0):null]}),void 0),I.jsxs(fd,E({padding:"3x",gap:"3x",height:"max (100vh - 90px)",style:{overflow:"auto"}},{children:["string"==typeof d?I.jsx(ns,{children:d},void 0):d,"info"!==a&&(g||v)?I.jsxs(es,E({gap:"1.5x"},{children:[I.jsx(qs,E({"data-qa":"ConfirmButton",isDisabled:y,type:"danger"===s?"danger":"primary",isLoading:c||j,onPress:F},{children:p||"OK"}),void 0),I.jsx(qs,E({"data-qa":"CancelButton",onPress:function(){v?v():m&&m()},isDisabled:c},{children:f||("Yes"===p?"No":"Cancel")}),void 0)]}),void 0):null,"info"===a?I.jsx(es,{children:I.jsx(qs,E({"data-qa":"OkButton",isDisabled:y,type:"danger"===s?"danger":"primary",onPress:L},{children:p||"OK"}),void 0)},void 0):null]}),void 0)]}),void 0)}),void 0)}),void 0)}var mb,bb=0,yb={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-modal-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),y.render(e.map((function(e){var n=e.id,r=e.onOk,i=e.onCancel,o=e.onClose,a=e.content,l=k(e,["id","onOk","onCancel","onClose","content"]);return v(vb,E({},l,{onOk:function(n){return P(t,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:return r?[4,r(n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.resolve(e,n),[2]}}))}))},onCancel:function(){i&&i(),"info"===e.type?t.resolve(e):t.reject(e)},onClose:function(){o&&o(),"info"===e.type?t.resolve(e):t.reject(e)},key:n}),a)})),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++bb,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}};vb.confirm=function(e){return yb.open(E({type:"confirm"},e))},vb.info=function(e){return yb.open(E({type:"info"},e))};
|
|
40
|
+
*/e.exports&&(e.exports=t),void 0!==A&&(A.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(o)){a.code="",l.setAttribute(n,r);var u=l.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=l.getAttribute("data-src"),d=a.language;if("none"===d){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];d=e[p]||p}s(u,d),s(l,d);var f=t.plugins.autoloader;f&&f.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,i),u.textContent=h.responseText,t.highlightElement(u)):(l.setAttribute(n,"failed"),h.status>=400?u.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):u.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(o),i=0;n=r[i++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));var af=h((function(e){var t=e.style,n=e.code,r=e.language,o=void 0===r?"javascript":r;return i((function(){of.highlightAll()})),I.jsx("pre",E({className:"cube-prism-code",style:t},{children:I.jsx("code",E({className:"language-"+o},{children:n}),void 0)}),void 0)})),lf={gridArea:"divider",display:"block",height:"1bw 1bw",fill:"#border",border:"0",margin:"0"},sf=h((function(e,t){var n=oo(e=ca(e,"divider"),Ca,lf);return I.jsx(ba,E({as:"hr","data-id":"Divider"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),uf={display:"contents"},cf=h((function(e,t){var n=ha(t),r=e.children,a=e.columns,s=void 0===a?2:a,u=e.gap,c=void 0===u?"0":u,d=e.width,p=e.initialWidth,f=O(o(d||p||"100vw"),2),h=f[0],g=f[1],v=l((function(){var e,t=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.parentElement;if(t){var r=getComputedStyle(t),i=t.clientWidth-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight);g(i+"px")}}),[n,s,c]);return i((function(){if(!d){var e,t=n&&n.current&&n.current.parentNode;if(t)return Promise.resolve().then((function(){return qb})).then((function(e){return e.ResizeSensor})).then((function(n){e=new n(t,v)})),function(){e&&e.detach()}}}),[v]),i((function(){d||v()}),[v]),I.jsx(ba,E({},Da(e,{eventProps:!0}),{styles:E(E({},uf),{"--grid-width":h,"--columns-amount":s,"--column-gap":c,"--column-width":"((@grid-width - (@column-gap * (@columns-amount - 1))) / @columns-amount)"}),ref:n},{children:r}),void 0)})),df={gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x"},pf=N(N([],O(Ta),!1),O(Ea),!1),ff=h((function(e,t){var n=oo(e=ca(e,"content"),pf,df);return I.jsx(ba,E({as:"section"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),hf={gridArea:"header",display:"block",flow:"column"},gf=N(N([],O(Ta),!1),O(Ea),!1),vf=h((function(e,t){var n=ca(e,"header"),r=oo(n,gf,hf);return I.jsx(ba,E({"data-id":"Header",as:"header"},Da(n,{eventProps:!0}),{styles:r,ref:t}),void 0)})),mf={gridArea:"footer",display:"block",flow:"column"},bf=N(N([],O(Ta),!1),O(Ea),!1),yf=h((function(e,t){var n=oo(e=ca(e,"footer"),bf,mf);return I.jsx(ba,E({"data-id":"Footer"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),xf=[[49,.5],[0,25],[49,49],[98,25]];function wf(e){return"transform: translate("+xf[e][0]+"%, "+xf[e][1]+"%);"}var Sf=m.img((function(e){var t=e.index;return"\n display: block;\n position: absolute;\n width: 50%;\n height: 50%;\n\n "+(null!=t?"\n animation-name: dice"+t+";\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-timing-function: ease;\n z-index: 0;\n\n @keyframes dice"+t+" {\n "+(0===t?"\n from {\n "+wf(0)+"\n z-index: 0;\n }\n\n 25% {\n "+wf(0)+"\n z-index: 0;\n }\n\n 50% {\n "+wf(1)+"\n z-index: 0;\n }\n\n 51% {\n z-index: 1;\n }\n\n 75% {\n z-index: 1;\n }\n\n to {\n "+wf(1)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(1===t?"\n from {\n "+wf(1)+"\n z-index: 3;\n }\n\n 25% {\n "+wf(2)+"\n z-index: 3;\n }\n\n 75% {\n "+wf(2)+"\n z-index: 2;\n }\n\n to {\n "+wf(3)+"\n z-index: 1;\n }\n ":"")+"\n\n "+(2===t?"\n from {\n "+wf(3)+"\n z-index: 1;\n }\n\n 50% {\n "+wf(3)+"\n z-index: 0;\n }\n\n 75% {\n "+wf(0)+"\n z-index: 0;\n }\n\n to {\n "+wf(0)+"\n z-index: 0;\n }\n ":"")+"\n }\n ":"")+"\n"})),Ef=function(e){return I.jsx(Sf,E({role:"presentation",src:"data:image/svg+xml,%3Csvg width='36' height='41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.899 10.351l-18 10.25L.1 10.25l18-10.25L35.9 10.351z' fill='%23FAFAFF'/%3E%3Cpath d='M18 41L0 30.75l.101-20.5L18 20.5' fill='%23E5E5F6'/%3E%3Cpath d='M36 30.75L18 41V20.6l17.899-10.25L36 30.75z' fill='%23C0C0EA'/%3E%3C/svg%3E",alt:""},e),void 0)},kf={small:32,medium:64,large:96};function Pf(e){var t=e.size,n=void 0===t?"medium":t,r=k(e,["size"]),i=kf[n]||n||kf.medium;return I.jsxs(ns,E({role:"img","aria-label":"Loading animation",width:i,height:1.1388888889*i,style:{position:"relative"}},r,{children:[I.jsx(Ef,{style:{transform:"translate(0%, 72.5%)"}},void 0),I.jsx(Ef,{style:{transform:"translate(98%, 72.5%)"}},void 0),I.jsx(Ef,{style:{transform:"translate(49%, 96.5%)"}},void 0),I.jsx(Ef,{index:0},void 0),I.jsx(Ef,{index:1},void 0),I.jsx(Ef,{index:2},void 0)]}),void 0)}var Tf,Cf={small:3,default:4,large:6},Of=h((function(e,t){var n=e.size,r=e.spinning,i=e.style,o=e.children,a=k(e,["size","spinning","style","children"]),l=n&&Cf[n]||n||Cf.default;return!1===r?I.jsx(I.Fragment,{children:o},void 0):I.jsx(ns,E({ref:t,role:"img","aria-label":"Loading animation",height:"1em",opacity:".8",style:E({fontSize:8*l,position:"relative"},i||{})},a,{children:I.jsxs("svg",E({xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"inline-block",width:"1em",height:"1em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},{children:[I.jsxs("rect",E({fill:"#7a77ff",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-2.083333333333333s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.5151515151515151s"},void 0)]}),void 0),I.jsxs("rect",E({fill:"#ff6492",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-1.325757575757576s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.7575757575757576s"},void 0)]}),void 0),I.jsxs("rect",E({fill:"#727290",x:"14",y:"14",width:"32",height:"32",rx:"4",ry:"4"},{children:[I.jsx("animate",{attributeName:"x",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"-0.5681818181818182s"},void 0),I.jsx("animate",{attributeName:"y",dur:"2.272727272727273s",repeatCount:"indefinite",keyTimes:"0;0.083;0.25;0.333;0.5;0.583;0.75;0.833;1",values:"14;54;54;54;54;14;14;14;14",begin:"0s"},void 0)]}),void 0)]}),void 0)}),void 0)})),Nf={display:"inline-flex",padding:".75x 1x",gap:"1x",flow:"row",placeItems:"center",fill:"#white",border:!0,fontWeight:400},jf=m(h((function(e,t){var n=e.onInput,r=k(e,["onInput"]),i=oo(r,xa,Nf),a=O(o(),2),l=a[0],s=a[1],u=O(o(""),2),c=u[0],d=u[1];return I.jsxs(I.Fragment,{children:[I.jsxs(qs,E({},Da(r,{eventProps:!0}),{styles:i,ref:t},{children:[I.jsx(ns,E({radius:"round",fill:"#purple.10",color:"#dark-02",padding:".5x 1x"},{children:"Choose file"}),void 0),I.jsx(ns,E({color:"#dark-04"},{children:l||"No file selected"}),void 0),I.jsx("input",{type:"file",name:"base64",onInput:function(e){if(e.target){var t=e.target.files[0],r=new FileReader;if(d(""),t)if(t.name.endsWith(".json")){r.onload=function(){var e,i=String(r.result);try{JSON.parse(i),e=btoa(i)}catch(e){return d("Invalid JSON file"),void console.error(e)}n&&n({encoded:e,raw:JSON.parse(i)}),s(t.name)};try{r.readAsText(t)}catch(e){d("Invalid file")}}else d("Incorrect format. JSON file is required")}},accept:".json"},void 0)]}),void 0),c&&I.jsx(Fc.Danger,E({color:"danger"},{children:c}),void 0)]},void 0)})))(Tf||(Tf=j(["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"],["\n appearance: none;\n cursor: pointer;\n outline: none;\n\n & input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0;\n cursor: pointer;\n width: 100%;\n height: 100%;\n }\n\n && {\n border: var(--border-width) solid rgba(var(--dark-02-color-rgb), 0.1);\n }\n\n &&:not([data-is-hovered]) {\n background: rgba(var(--purple-color), 0);\n }\n\n &&[data-is-hovered] {\n background: rgba(var(--purple-color), 0.1);\n }\n"]))),Af={display:"block",flow:"column",radius:"1x",fill:"#white",border:!0,padding:"3x"},Lf=h((function(e,t){var n=oo(e,Ta,Af);return I.jsx(ba,E({role:"region"},Da(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Ff={display:"block",fill:"#dark.10",height:"2x",opacity:".35"},Df=h((function(e,t){var n=e.size,r=void 0===n?"2x":n,i=e.circle,o=k(e,["size","circle"]),a=oo(o,Ta,E(E({},Ff),{height:r,width:!!i&&r,radius:i?"9999rem":"1r"}));return I.jsx(ba,E({role:"region",css:"\n --placeholder-animation-time: 1.4s;\n --placeholder-animation-size: calc((180rem + 100vw) / 3);\n background-image: linear-gradient(135deg, rgba(var(--dark-color-rgb), .15) 0%, rgba(var(--dark-color-rgb), .15) 5%, rgba(var(--dark-color-rgb), 0) 35%, rgba(var(--dark-03-color-rgb), .2) 50%, rgba(var(--dark-03-color-rgb), 0) 65%, rgba(var(--dark-color-rgb), .15) 95%, rgba(var(--dark-color-rgb), .15) 100%);\n background-repeat: repeat;\n background-size: var(--placeholder-animation-size);\n animation: placeholder-animation var(--placeholder-animation-time) linear infinite;\n\n @keyframes placeholder-animation {\n 0% {\n background-position: 0 0;\n }\n 100% {\n background-position: var(--placeholder-animation-size) 0;\n }\n }\n"},Da(o,{eventProps:!0}),{styles:a,ref:t}),void 0)})),Rf={page:function(e){var t=e.lines,n=e.children,r=k(e,["lines","children"]);return I.jsxs(fd,E({gap:"4x"},r,{children:[I.jsxs(es,E({placeContent:"space-between"},{children:[I.jsx(Df,{width:"100px 25% 300px"},void 0),I.jsx(Df,{width:"50px 10% 150px"},void 0)]}),void 0),I.jsx(fd,E({gap:"2x"},{children:n||Array(t||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)]}),void 0)},content:function(e){var t=e.children,n=e.lines,r=k(e,["children","lines"]);return I.jsx(fd,E({gap:"2x"},r,{children:t||Array(n||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)},topbar:function(e){return I.jsxs(es,E({gap:"4x",placeContent:"space-between",height:"6x",padding:"1x",border:"bottom"},e,{children:[I.jsxs(es,{children:[I.jsx(Df,{circle:!0,size:"4x"},void 0),I.jsx(Df,{width:"20x"},void 0)]},void 0),I.jsxs(es,{children:[I.jsx(Df,{width:"10x"},void 0),I.jsx(Df,{circle:!0,size:"4x"},void 0)]},void 0)]}),void 0)},menu:function(e){var t=e.lines,n=k(e,["lines"]);return I.jsx(fd,E({gap:"3.25x"},n,{padding:"3x 1x"},{children:Array(t||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)},stats:function(e){var t=e.cards,n=k(e,["cards"]);return I.jsx(es,E({gap:"4x"},n,{children:Array(t||3).fill(0).map((function(e,t){return I.jsx(Df,{radius:"1x",width:"20x",height:"12x"},t)}))}),void 0)},tabs:function(e){var t=e.tabs,n=e.children,r=e.lines,i=k(e,["tabs","children","lines"]);return I.jsxs(fd,E({gap:"4x"},i,{children:[I.jsx(es,{children:Array(t||3).fill(0).map((function(e,t){return I.jsx(Df,{width:"15x"},t)}))},void 0),I.jsx(fd,E({gap:"2x"},{children:n||Array(r||5).fill(0).map((function(e,t){return I.jsx(Df,{},t)}))}),void 0)]}),void 0)},table:function(e){var t=e.rows,n=e.columns,r=k(e,["rows","columns"]);return n=n||5,t=t||5,I.jsx(id,E({columns:"repeat("+n+", 1fr)",gap:"3x"},r,{padding:"1x 0"},{children:Array(t).fill(0).map((function(e,t){return Array(n).fill(0).map((function(e,n){return I.jsx(Df,{size:t?"2x":"3x"},t+"."+n)}))}))}),void 0)},chart:function(e){var t=e.columns,n=k(e,["columns"]);t=t||12;var r=[1,4,2,5,8,9,5,3,4,2,6,7,2];return I.jsx(id,E({columns:"repeat("+t+", 1fr)",gap:"3x",padding:"1x 0",placeItems:"end stretch",height:"40x"},n,{children:Array(t).fill(0).map((function(e,t){return I.jsx(Df,{height:10*r[t%12]+"%",width:"max 6x"},t)}))}),void 0)}};function If(e){var t=e.layout,n=k(e,["layout"]);return Rf[t=t||"page"]?Rf[t](E(E({},n),{qa:"Skeleton"})):I.jsx(Df,E({},n),void 0)}function Mf(e){var t=e.type,n=k(e,["type"]);return E(E({},n),{htmlType:t})}var _f=m.button((function(e){return"\n appearance: none;\n padding: 0;\n margin: 0;\n font-size: inherit;\n line-height: inherit;\n width: 159px;\n height: 26px;\n border: none;\n background: none;\n cursor: "+(e.isLink?"pointer":"default")+";\n outline: none;\n "}));var zf=h((function(e,t){var n=mi(t),r=Ls(function(e){var t=e.htmlType,n=k(e,["htmlType"]);return E(E({},n),{type:t})}(e),n).buttonProps;return I.jsx(_f,E({"data-qa":"HeaderCubeCloudLogo"},r,{isLink:!!e.onPress,ref:n},{children:I.jsxs("svg",E({width:"159",height:"26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M22.533 6.535L11.27 0v4.522l11.264 6.507V6.535z",fill:"#FF6492"},void 0),I.jsx("path",{d:"M22.533 11.029L19.154 13l-7.887-4.567-4.507 2.6-3.38-1.827 7.889-4.684 11.264 6.507z",fill:"#141446"},void 0),I.jsx("path",{d:"M6.76 11.033L3.38 9.206V13l3.38-1.967z",fill:"#A14474"},void 0),I.jsx("path",{d:"M0 19.465L11.267 13l11.266 6.465L11.267 26 0 19.465z",fill:"#141446"},void 0),I.jsx("path",{d:"M22.533 14.978L11.267 8.362V13l11.266 6.465v-4.487z",fill:"#FF6492"},void 0),I.jsx("path",{d:"M3.38 13V9.205l7.889-4.683V0L0 6.535v12.93L11.267 13V8.362L3.38 13z",fill:"#7A77FF"},void 0),I.jsx("path",{d:"M36.594 21.099c2.446 0 4.36-1.21 5.503-3.067l-1.967-1.534c-.878 1.21-1.967 1.991-3.509 1.991-2.392 0-4.093-1.856-4.093-4.305 0-2.394 1.7-4.278 4.093-4.278 1.568 0 2.658.807 3.509 2.018l1.967-1.56c-1.117-1.857-3.03-3.067-5.503-3.067-3.854 0-6.91 3.013-6.91 6.887 0 3.902 3.056 6.915 6.91 6.915zM50.224 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM66.42 7.297c-1.807 0-3.376.7-4.36 1.91V.624h-2.79v20.18h2.605v-1.83c.983 1.345 2.658 2.125 4.572 2.125 3.694 0 6.38-2.96 6.38-6.888S70.14 7.297 66.42 7.297zm-.452 11.22c-1.94 0-3.934-1.292-3.934-4.306 0-2.986 1.967-4.332 3.934-4.332 2.233 0 3.987 1.75 3.987 4.305 0 2.556-1.727 4.332-3.987 4.332zM87.469 13.35c0-3.47-2.552-6.053-6.034-6.053-3.801 0-6.752 3.04-6.752 6.914 0 3.902 2.977 6.888 7.018 6.888 2.073 0 3.827-.807 5.21-2.125l-1.33-1.938c-1.09.969-2.286 1.56-3.8 1.56-2.234 0-3.882-1.29-4.254-3.47h9.729c.08-.35.213-1.05.213-1.776zm-6.14-3.659c1.78 0 3.296 1.157 3.349 3.229H77.58c.425-1.964 1.913-3.229 3.747-3.229zM101.014 21.099c2.445 0 4.359-1.21 5.502-3.067l-1.967-1.534c-.877 1.21-1.967 1.991-3.508 1.991-2.393 0-4.094-1.856-4.094-4.305 0-2.394 1.701-4.278 4.094-4.278 1.568 0 2.658.807 3.508 2.018l1.967-1.56c-1.116-1.857-3.03-3.067-5.502-3.067-3.854 0-6.911 3.013-6.911 6.887 0 3.902 3.057 6.915 6.911 6.915zM109.062 20.803h2.791V.624h-2.791v20.18zM121.417 21.099c3.881 0 6.938-3.067 6.938-6.915 0-3.847-3.057-6.887-6.938-6.887-3.854 0-6.884 3.013-6.884 6.887 0 3.848 3.03 6.915 6.884 6.915zm0-2.61c-2.312 0-4.04-1.83-4.04-4.278 0-2.475 1.728-4.332 4.067-4.332 2.286 0 4.04 1.857 4.04 4.332 0 2.422-1.754 4.278-4.067 4.278zM136.605 21.099c3.19 0 5.662-2.26 5.662-5.838V7.593h-2.791v7.883c0 1.856-1.276 3.013-2.871 3.013-1.648 0-2.95-1.157-2.95-3.013V7.593h-2.765v7.668c0 3.578 2.472 5.838 5.715 5.838zM155.566.624v8.583c-.984-1.21-2.552-1.91-4.36-1.91-3.694 0-6.379 2.986-6.379 6.914 0 3.928 2.658 6.888 6.379 6.888 1.941 0 3.615-.807 4.572-2.18v1.884h2.605V.624h-2.817zm-3.881 17.892c-2.286 0-4.014-1.776-4.014-4.332s1.754-4.305 4.014-4.305c1.94 0 3.934 1.346 3.934 4.332 0 3.014-1.994 4.305-3.934 4.305z",fill:"#141446"},void 0)]}),void 0)}),void 0)})),Kf={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}},Vf={display:"inline-flex",placeContent:"center",placeItems:"center",radius:"round",preset:"tag",width:"min 16px",height:"16px",textAlign:"center",fontWeight:600,color:"#white"},Uf=h((function(e,t){var n=e.type,r=e.children,i=k(e,["type","children"]),o=oo(i,Ta,E(E({},Vf),{padding:"string"==typeof r?r.length>2?"0 2px":r.length>1?"0 1px":0:0,fill:n&&Kf[n]?Kf[n].color:"#purple"}));return I.jsx(ba,E({role:"region"},Da(i,{eventProps:!0}),{styles:o,ref:t},{children:r}),void 0)})),Bf={position:"relative",display:"inline-flex",placeContent:"center start",placeItems:"center start",radius:"1r",preset:"t4m",width:"16px max-content max-content",height:"min-content",textAlign:"left",color:"#dark.65",border:"#border",fill:"#dark.04",whiteSpace:"nowrap",padding:{"":"0 (1x - 1bw)",closable:"0 (2.5x - 1bw) 0 (1x - 1bw)"}},Wf={width:"max 100%",textOverflow:"ellipsis",overflow:"hidden",pointerEvents:"none"},Gf={display:"grid",placeItems:"center",color:!0,placeSelf:"center",opacity:{"":.85,"pressed | hovered":1},transition:"opacity",padding:"0 .5x"},qf=h((function(e,t){var n=e.type,r=e.isClosable,i=e.onClose,o=e.children,a=k(e,["type","isClosable","onClose","children"]),l=oo(a,Ta,E(E({},Bf),n&&n in Kf?{fill:n&&Kf[n]?Kf[n].fill:"#white",color:n&&Kf[n]?Kf[n].color:"#purple",border:n&&Kf[n]?Kf[n].border:"#purple"}:{}));return I.jsxs(ba,E({role:"region"},Da(a,{eventProps:!0}),{styles:l,mods:{closable:r},ref:t},{children:[I.jsx(ns,E({mods:{closable:r},styles:Wf},{children:o}),void 0),r?I.jsx(Bl,E({outerGap:"0"},{children:I.jsx(Ks,E({onPress:i,styles:Gf},{children:I.jsx(Xe,{style:{fontSize:"calc(var(--font-size) - (var(--border-width) * 2))"}},void 0)}),void 0)}),void 0):void 0]}),void 0)}));function Jf(e){if(null!=e)return e.toString()}var Hf;Hf=JSON.parse('{"Clear search":"مسح البحث"}');var $f;$f=JSON.parse('{"Clear search":"Изчистване на търсене"}');var Xf;Xf=JSON.parse('{"Clear search":"Vymazat hledání"}');var Yf;Yf=JSON.parse('{"Clear search":"Ryd søgning"}');var Zf;Zf=JSON.parse('{"Clear search":"Suche zurücksetzen"}');var Qf;Qf=JSON.parse('{"Clear search":"Απαλοιφή αναζήτησης"}');var eh;eh=JSON.parse('{"Clear search":"Clear search"}');var th;th=JSON.parse('{"Clear search":"Borrar búsqueda"}');var nh;nh=JSON.parse('{"Clear search":"Tühjenda otsing"}');var rh;rh=JSON.parse('{"Clear search":"Tyhjennä haku"}');var ih;ih=JSON.parse('{"Clear search":"Effacer la recherche"}');var oh;oh=JSON.parse('{"Clear search":"נקה חיפוש"}');var ah;ah=JSON.parse('{"Clear search":"Obriši pretragu"}');var lh;lh=JSON.parse('{"Clear search":"Keresés törlése"}');var sh;sh=JSON.parse('{"Clear search":"Cancella ricerca"}');var uh;uh=JSON.parse('{"Clear search":"検索をクリア"}');var ch;ch=JSON.parse('{"Clear search":"검색 지우기"}');var dh;dh=JSON.parse('{"Clear search":"Išvalyti iešką"}');var ph;ph=JSON.parse('{"Clear search":"Notīrīt meklēšanu"}');var fh;fh=JSON.parse('{"Clear search":"Tøm søk"}');var hh;hh=JSON.parse('{"Clear search":"Zoekactie wissen"}');var gh;gh=JSON.parse('{"Clear search":"Wyczyść zawartość wyszukiwania"}');var vh;vh=JSON.parse('{"Clear search":"Limpar pesquisa"}');var mh;mh=JSON.parse('{"Clear search":"Limpar pesquisa"}');var bh;bh=JSON.parse('{"Clear search":"Ştergeţi căutarea"}');var yh;yh=JSON.parse('{"Clear search":"Очистить поиск"}');var xh;xh=JSON.parse('{"Clear search":"Vymazať vyhľadávanie"}');var wh;wh=JSON.parse('{"Clear search":"Počisti iskanje"}');var Sh;Sh=JSON.parse('{"Clear search":"Obriši pretragu"}');var Eh;Eh=JSON.parse('{"Clear search":"Rensa sökning"}');var kh;kh=JSON.parse('{"Clear search":"Aramayı temizle"}');var Ph;Ph=JSON.parse('{"Clear search":"Очистити пошук"}');var Th;Th=JSON.parse('{"Clear search":"清除搜索"}');var Ch;Ch=JSON.parse('{"Clear search":"清除搜尋條件"}');const Oh={"ar-AE":ou(Hf).default,"bg-BG":ou($f).default,"cs-CZ":ou(Xf).default,"da-DK":ou(Yf).default,"de-DE":ou(Zf).default,"el-GR":ou(Qf).default,"en-US":ou(eh).default,"es-ES":ou(th).default,"et-EE":ou(nh).default,"fi-FI":ou(rh).default,"fr-FR":ou(ih).default,"he-IL":ou(oh).default,"hr-HR":ou(ah).default,"hu-HU":ou(lh).default,"it-IT":ou(sh).default,"ja-JP":ou(uh).default,"ko-KR":ou(ch).default,"lt-LT":ou(dh).default,"lv-LV":ou(ph).default,"nb-NO":ou(fh).default,"nl-NL":ou(hh).default,"pl-PL":ou(gh).default,"pt-BR":ou(vh).default,"pt-PT":ou(mh).default,"ro-RO":ou(bh).default,"ru-RU":ou(yh).default,"sk-SK":ou(xh).default,"sl-SI":ou(wh).default,"sr-SP":ou(Sh).default,"sv-SE":ou(Eh).default,"tr-TR":ou(kh).default,"uk-UA":ou(Ph).default,"zh-CN":ou(Th).default,"zh-TW":ou(Ch).default};var Nh=h((function(e,t){var n=(e=Ii(e)).isClearable,r=e.value,o=ha(t,a(null)),l=a(null);i((function(){var e=o&&o.current;e&&null!=r&&e.value!==r&&(e.value=r)}),[o,r]);var s=function(e){let[t,n]=jt(Jf(e.value),Jf(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}(e),u=function(e,t,n){let r=di(Oh),{isDisabled:i,onSubmit:o=(()=>{}),onClear:a,type:l="search"}=e,{labelProps:s,inputProps:u,descriptionProps:c,errorMessageProps:d}=Ns(Dt({},e,{value:t.value,onChange:t.setValue,onKeyDown:e=>{const n=e.key;"Enter"!==n&&"Escape"!==n||e.preventDefault(),i||("Enter"===n&&o(t.value),"Escape"===n&&(t.setValue(""),a&&a()))},type:l}),n);return{labelProps:s,inputProps:Dt({},u,{defaultValue:void 0}),clearButtonProps:{"aria-label":r("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:()=>{t.setValue(""),a&&a()},onPressStart:()=>{n.current.focus()}},descriptionProps:c,errorMessageProps:d}}(e,s,l),c=u.inputProps,d=u.clearButtonProps;return I.jsx(as,E({inputProps:c,ref:t,inputRef:l,inputStyles:{paddingRight:"4x"},type:"search",prefix:I.jsx(Tt,{},void 0),suffixPosition:"after",suffix:n&&""!==s.value&&!e.isReadOnly&&I.jsx(qs,E({type:"clear"},Mf(d),{color:{"":"#dark.50","hovered | pressed":"#purple-text"},radius:"right (1r - 1bw)",padding:".5x 1x",placeSelf:"stretch",icon:I.jsx(Xe,{},void 0)}),void 0)},e),void 0)}));var jh=h((function(e){var t=(e=Ha(e=Ii(e))).form,n=k(e,["form"]),r=t.getFieldsValue(),i=!Object.keys(r).find((function(e){return t.isFieldInvalid(e)}));return I.jsx(qs,E({type:"primary",htmlType:"submit",width:"min-content"},n,{isDisabled:!i}),void 0)}));function Ah(e){void 0===e&&(e={});let{isReadOnly:t,onChange:n}=e,[r,i]=jt(e.isSelected,e.defaultSelected||!1,(()=>{}));return{isSelected:r,setSelected:function(e){t||(i(e),n&&n(e))},toggle:function(){t||i((e=>{let t=!e;return n&&n(t),t}))}}}function Lh(e,t,n){let{isDisabled:r=!1,isRequired:i,isReadOnly:o,value:a,name:l,children:s,"aria-label":u,"aria-labelledby":c,validationState:d="valid"}=e;null!=s||(null!=u||null!=c)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=il({isDisabled:r}),{focusableProps:f}=Ts(e,n),h=Gt(p,f);return{inputProps:Gt($t(e,{labelable:!0}),Dt({"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,required:i,value:a,name:l,type:"checkbox"},h))}}function Fh(e,t,n){let{inputProps:r}=Lh(e,t,n),{isSelected:o}=t,{isIndeterminate:a}=e;return i((()=>{n.current&&(n.current.indeterminate=a)})),{inputProps:Dt({},r,{checked:o,"aria-checked":a?"mixed":o})}}const Dh=new WeakMap;var Rh,Ih=m.input(Rh||(Rh=j(["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n }\n"],["\n &&&&& {\n display: block;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n overflow: visible;\n box-sizing: border-box;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n opacity: 0.0001;\n z-index: 1;\n cursor: ",";\n width: 100%;\n height: 100%;\n }\n"])),(function(e){return e.isButton?"pointer":"default"}));var Mh=n(null),_h={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},zh={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var Kh=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,o=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.validationState,u=e.children,c=e.insideForm,d=e.orientation,p=void 0===d?"vertical":d,f=e.message,h=e.labelStyles,g=e.requiredMark,v=void 0===g||g,m=k(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","insideForm","orientation","message","labelStyles","requiredMark"]),b=vi(t),y=Ai("CheckboxGroup_Wrapper",e),x=Ai("CheckboxGroup",e),w=Ai("CheckboxGroup_Label",e),S=oo(m,Ca,E(E({},_h),y)),P=oo(m,wa,E(E({},zh),x));h=E(E(E({},Jl),w),h);var T=function(e){void 0===e&&(e={});let[t,n]=jt(e.value,e.defaultValue||[],e.onChange);return{value:t,setValue(t){e.isReadOnly||e.isDisabled||n(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected:e=>t.includes(e),addValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e:e.concat(t)))},removeValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e))},toggleValue(t){e.isReadOnly||e.isDisabled||n((e=>e.includes(t)?e.filter((e=>e!==t)):e.concat(t)))}}}(e),C=function(e,t){let{isDisabled:n,name:r}=e,{labelProps:i,fieldProps:o}=Cs(Dt({},e,{labelElementType:"span"})),a=$t(e,{labelable:!0});return Dh.set(t,r),{groupProps:Gt(a,Dt({role:"group","aria-disabled":n||void 0},o)),labelProps:i}}(e,T),O=C.groupProps,N=C.labelProps,j=I.jsx(ba,E({qa:"CheckboxGroup",styles:P,mods:{horizontal:"horizontal"===p}},{children:I.jsx(Ja.Provider,E({value:{isDisabled:n,validationState:s}},{children:I.jsx(Mh.Provider,E({value:T},{children:u}),void 0)}),void 0)}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:o,insideForm:c,styles:S,isRequired:r,labelStyles:h,necessityIndicator:i,labelProps:N,fieldProps:O,isDisabled:n,validationState:s,message:f,requiredMark:v,Component:j,ref:b}),void 0)})),{cubeInputType:"CheckboxGroup"}),Vh=function(){return I.jsx("svg",E({width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"},void 0)}),void 0)},Uh=function(){return I.jsx("svg",E({width:"9",height:"3",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"},void 0)}),void 0)},Bh={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"default"},Wh={display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"};var Gh=Object.assign(h((function(e,t){var n,i,o=e,l=(e=Ha(e=Ii(e))).qa,s=e.isIndeterminate,u=void 0!==s&&s,c=e.isDisabled,d=void 0!==c&&c,p=e.insideForm;e.autoFocus;var f=e.children,h=e.label,g=e.validationState,v=e.labelProps,m=e.labelStyles,b=e.labelPosition,y=e.message,x=e.requiredMark,w=void 0===x||x,S=k(e,["qa","isIndeterminate","isDisabled","insideForm","autoFocus","children","label","validationState","labelProps","labelStyles","labelPosition","message","requiredMark"]);h=h||f;var P=r(Mh),T=Ai("Checkbox_Wrapper",e),O=Ai("Checkbox",e),N=Ai("Checkbox_Label",e),j=oo(e,Ca,E(E({},p&&!P?{}:Bh),T)),A=oo(e,wa,E(E({},Wh),O));m=E(E(E({},p&&!P?Jl:ql),N),m),p||(m.fontWeight=400),p&&"side"===b&&(A.marginTop="1x");var L=zl({isDisabled:d},!0),F=L.isFocused,D=L.focusProps,R=Il({isDisabled:d}),M=R.hoverProps,_=R.isHovered,z=a(null),K=mi(t,z),V=(P?function(e,t,n){const r=Ah({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:i}=Fh(Dt({},e,{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Dh.get(t)}),r,n);return{inputProps:i}}(E(E({},e),{value:e.value||"",isRequired:o.isRequired,validationState:o.validationState}),P,z):Fh(e,Ah(e),z)).inputProps,U=u?I.jsx(Uh,{},void 0):I.jsx(Vh,{},void 0);if(P){try{for(var B=C(["isSelected","defaultSelected","isEmphasized"]),W=B.next();!W.done;W=B.next()){var G=W.value;null!=o[G]&&console.warn(G+" is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.")}}catch(e){n={error:e}}finally{try{W&&!W.done&&(i=B.return)&&i.call(B)}finally{if(n)throw n.error}}null==e.value&&console.warn("A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}var q=I.jsxs(ba,E({styles:{position:"relative"}},{children:[I.jsx(Ih,E({"data-qa":l||"Checkbox"},Gt(V,D),{ref:z}),void 0),I.jsx(ba,E({mods:{checked:V.checked,indeterminate:u,invalid:"invalid"===g,valid:"valid"===g,disabled:d,hovered:_,focused:F},styles:A},{children:U}),void 0)]}),void 0);return p&&!P?I.jsx(Yl,E({},{as:"label",labelPosition:b,label:h,insideForm:p,styles:j,labelStyles:m,labelProps:v,isDisabled:d,validationState:g,message:y,requiredMark:w,Component:q,ref:K}),void 0):I.jsxs(ba,E({as:"label",styles:j},M,Da(S),{ref:K},{children:[q,h&&I.jsx(ba,E({styles:m,mods:{invalid:"invalid"===g,valid:"valid"===g,disabled:d}},Da(v),{children:h}),void 0)]}),void 0)})),{cubeInputType:"Checkbox",Group:Kh});var qh={position:"relative",display:"flex",placeItems:"center start",gap:"1x",flow:"row",preset:"input",width:"min-content"},Jh={position:"relative",display:"grid",placeItems:"center",radius:"round",fill:{"":"#dark.50",checked:"#purple",disabled:"#dark.12"},color:"#white",border:!1,width:"5.25x 5.25x",height:"3x 3x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},Hh={position:"absolute",width:"2.5x",height:"2.5x",radius:"round",fill:"currentColor",shadow:"0px 2px 4px #dark.20;",top:".25x",left:{"":".25x",checked:"2.5x"},transition:"left"};var $h=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=void 0!==n&&n;e.autoFocus;var i=e.children,o=e.label,l=e.labelProps,s=e.labelStyles,u=e.thumbStyles,c=e.isLoading,d=e.insideForm,p=e.validationState,f=e.message,h=e.labelPosition,g=e.inputStyles,v=e.requiredMark,m=void 0===v||v,b=k(e,["isDisabled","autoFocus","children","label","labelProps","labelStyles","thumbStyles","isLoading","insideForm","validationState","message","labelPosition","inputStyles","requiredMark"]);o=o||i;var y=Ai("Switch_Wrapper",e),x=Ai("Switch",e),w=Ai("Switch_Label",e),S=Ai("Switch_Thumb",e),P=oo(e,Ca,E(E({},d?{}:qh),y));g=oo(e,wa,E(E(E(E({},Jh),x),d&&"side"===h?{marginTop:"-3px",placeSelf:"start"}:null),g)),u=E(E(E({},Hh),S),u),s=E(E(E({},d?Jl:ql),w),s);var T=zl({isDisabled:r},!0),C=T.isFocused,O=T.focusProps,N=Il({isDisabled:r}),j=N.hoverProps,A=N.isHovered,L=a(null),F=mi(t,L),D=function(e,t,n){let{inputProps:r}=Lh(e,t,n),{isSelected:i}=t;return{inputProps:Dt({},r,{role:"switch",checked:i,"aria-checked":i})}}(e,Ah(e),L).inputProps,R=I.jsxs(ba,E({styles:{position:"relative"}},{children:[I.jsx(Ih,E({"data-qa":"Switch"},Gt(D,O),{ref:L}),void 0),I.jsx(ba,E({mods:{checked:D.checked,disabled:r,hovered:A,focused:C},styles:g},{children:I.jsx(ba,{qa:"SwitchThumb",styles:u,"aria-hidden":"true",mods:{checked:D.checked}},void 0)}),void 0)]}),void 0);return d?I.jsx(Yl,E({},{as:"label",labelPosition:h,label:o,insideForm:d,styles:P,labelStyles:s,labelProps:l,isDisabled:r,validationState:p,message:f,requiredMark:m,Component:R,ref:F}),void 0):I.jsxs(ba,E({as:"label",styles:P},j,Da(b),{ref:F},{children:[R,o&&I.jsxs(ba,E({styles:s,mods:{disabled:r}},Da(l),{children:[o,c?I.jsxs(I.Fragment,{children:[o?I.jsx(I.Fragment,{children:" "},void 0):null,I.jsx(Et,{},void 0)]},void 0):null]}),void 0)]}),void 0)})),{cubeInputType:"Checkbox"});const Xh=new WeakMap;var Yh=n(null);let Zh=Math.round(1e10*Math.random()),Qh=0;var eg={display:"grid",gridColumns:{"":"1fr","has-sider":"max-content 1fr"},gap:{"":"0","has-sider":"1x"},placeItems:"baseline start"},tg={display:"grid",flow:{"":"row",horizontal:"column"},gap:{"":"1x",horizontal:"2x"},padding:"(1x - 1bw) 0"};var ng=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).isDisabled,r=e.isRequired,i=e.necessityIndicator,a=e.label,l=e.labelPosition,u=void 0===l?"top":l,c=e.validationState,d=e.children,p=e.insideForm,f=e.orientation,h=void 0===f?"vertical":f,g=e.message,v=e.labelStyles,m=e.requiredMark,b=void 0===m||m,y=k(e,["isDisabled","isRequired","necessityIndicator","label","labelPosition","validationState","children","insideForm","orientation","message","labelStyles","requiredMark"]),x=vi(t),w=Ai("RadioGroup_Wrapper",e),S=Ai("RadioGroup",e),P=Ai("RadioGroup_Label",e),T=oo(y,Ca,E(E({},eg),w)),C=oo(y,wa,E(E({},tg),S));v=E(E(E({},Jl),P),v);var O=function(e){let t=s((()=>e.name||"radio-group-"+Zh+"-"+ ++Qh),[e.name]),[n,r]=jt(e.value,e.defaultValue,e.onChange),[i,a]=o(null);return{name:t,selectedValue:n,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||r(t)},lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1}}(e),N=function(e,t){let{name:n,validationState:r,isReadOnly:i,isRequired:o,isDisabled:a,orientation:l="vertical"}=e,{direction:s}=ui(),{labelProps:u,fieldProps:c}=Cs(Dt({},e,{labelElementType:"span"})),d=$t(e,{labelable:!0}),{focusWithinProps:p}=jl({onBlurWithin(){t.selectedValue||t.setLastFocusedValue(null)}}),f=Vt(n);return Xh.set(t,f),{radioGroupProps:Gt(d,Dt({role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===s&&"vertical"!==l?"prev":"next";break;case"ArrowLeft":n="rtl"===s&&"vertical"!==l?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,i=Ss(e.currentTarget,{from:e.target});"next"===n?(r=i.nextNode(),r||(i.currentNode=e.currentTarget,r=i.firstChild())):(r=i.previousNode(),r||(i.currentNode=e.currentTarget,r=i.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":"invalid"===r||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":o||void 0,"aria-disabled":a||void 0,"aria-orientation":l},c,p)),labelProps:u}}(e,O),j=N.radioGroupProps,A=N.labelProps,L=I.jsx(ba,E({qa:"RadioGroup",styles:C,mods:{horizontal:"horizontal"===h}},{children:I.jsx(Ja.Provider,E({value:{isRequired:r,validationState:c,isDisabled:n}},{children:I.jsx(Yh.Provider,E({value:O},{children:d}),void 0)}),void 0)}),void 0);return I.jsx(Yl,E({},{labelPosition:u,label:a,insideForm:p,styles:T,isRequired:r,labelStyles:v,necessityIndicator:i,labelProps:A,fieldProps:j,isDisabled:n,validationState:c,message:g,requiredMark:b,Component:L,ref:x}),void 0)})),{cubeInputType:"RadioGroup"}),rg={position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content"},ig={radius:!0,fill:{"":"#white",hovered:"#purple-text.04",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},fontWeight:500,preset:"default",border:{"":!0,checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#border"},padding:"(1x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"}},og={display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},ag={radius:"round",width:"1x",height:"1x",fill:"currentColor",transition:"theme"};var lg=Object.assign(h((function(e,t){var n=(e=Ha(e=Ii(e))).qa,i=e.isDisabled,o=e.validationState,l=e.children,s=e.label;e.autoFocus;var u=e.labelStyles,c=e.labelProps,d=e.inputStyles,p=e.type,f=e["aria-label"],h=k(e,["qa","isDisabled","validationState","children","label","autoFocus","labelStyles","labelProps","inputStyles","type","aria-label"]),g="button"===p;s=s||l;var v=oo(h,Ca,E(E({},rg),Ai("Radio_Wrapper",e)));d=oo(h,wa,E(E(E({},g?ig:og),Ai(g?"RadioButton":"Radio",e)),d)),u=E(E(E(E({},ql),{fontWeight:400}),Ai("Radio_Label",e)),u);var m=r(Yh);if(!m)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");var b=zl({isDisabled:i},!0),y=b.isFocused,x=b.focusProps,w=Il({isDisabled:i}),S=w.hoverProps,P=w.isHovered,T=a(null),C=mi(t,T),O=function(e,t,n){let{value:r,isRequired:i,children:o,"aria-label":a,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled,u=t.isReadOnly;null!=o||null!=a||null!=l||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,{pressProps:d}=il({isDisabled:s}),{focusableProps:p}=Ts(Gt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),f=Gt(d,p),h=$t(e,{labelable:!0}),g=t.lastFocusedValue===r||null==t.lastFocusedValue?0:-1;return s&&(g=void 0),{inputProps:Gt(h,Dt({},f,{type:"radio",name:Xh.get(t),tabIndex:g,disabled:s,"aria-readonly":u||void 0,required:i,checked:c,value:r,onChange:e=>{e.stopPropagation(),t.setSelectedValue(r)}}))}}(E(E({},e),{isDisabled:i}),m,T).inputProps;return I.jsxs(ba,E({as:"label",styles:v},S,{ref:C,mods:{disabled:i,invalid:"invalid"===o,hovered:P,button:g}},{children:[I.jsx(Ih,E({"data-qa":n||"Radio","aria-label":f},Gt(O,x),{isButton:g,ref:T}),void 0),I.jsx(ba,E({mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o,disabled:i,hovered:P,focused:y},styles:d},{children:g?l:I.jsx(ba,{styles:ag,mods:{checked:O.checked,invalid:"invalid"===o,valid:"valid"===o}},void 0)}),void 0),s&&!g&&I.jsx(ba,E({qa:"RadioLabel",styles:u,mods:{invalid:"invalid"===o,valid:"valid"===o,disabled:i}},Da(c),{children:s}),void 0)]}),void 0)})),{Group:ng,Button:h((function(e,t){var n=lg;return I.jsx(n,E({},e,{type:"button",ref:t}),void 0)}))});function sg(e){let[t,n]=jt(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,open(){n(!0)},close(){n(!1)},toggle(){n(!t)}}}function ug(e){let t=sg(e),[n,r]=o(null);return Dt({focusStrategy:n},t,{open(e){void 0===e&&(e=null),r(e),t.open()},toggle(e){void 0===e&&(e=null),r(e),t.toggle()}})}class cg extends Set{constructor(e,t,n){super(e),this.anchorKey=void 0,this.currentKey=void 0,e instanceof cg?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function dg(e,t){return e?"all"===e?"all":new cg(e):t}class pg{constructor(e,t,n){var r;this.collection=void 0,this.state=void 0,this.allowsCellSelection=void 0,this._isSelectAll=void 0,this.collection=e,this.state=t,this.allowsCellSelection=null!=(r=null==n?void 0:n.allowsCellSelection)&&r,this._isSelectAll=null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)<t.index)&&(t=n)}return null==(e=t)?void 0:e.key}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||(null==n?void 0:n.index)>t.index)&&(t=n)}return null==(e=t)?void 0:e.key}extendSelection(e){let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new cg([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new cg(n,r,e);for(let i of this.getKeyRange(r,n.currentKey||e))t.delete(i);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if(null==(e=this.getKey(e)))return;let t=new cg("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new cg([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new cg;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new cg)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):t&&t.shiftKey?this.extendSelection(e):this.toggleSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}}let fg;fg=Symbol.iterator;class hg{constructor(e){var t;this.keyMap=new Map,this.iterable=void 0,this.firstKey=void 0,this.lastKey=void 0,this.iterable=e;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),n=t,n.nextKey=void 0;this.lastKey=null==(t=n)?void 0:t.key}*[fg](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}function gg(e){let{filter:t}=e,n=function(e){let{selectionMode:t="none",disallowEmptySelection:n}=e,r=a(!1),[,i]=o(!1),l=a(null),u=a(null),[,c]=o(null),d=s((()=>dg(e.selectedKeys)),[e.selectedKeys]),p=s((()=>dg(e.defaultSelectedKeys,new cg)),[e.defaultSelectedKeys]),[f,h]=jt(d,p,e.onSelectionChange);return{selectionMode:t,disallowEmptySelection:n,get isFocused(){return r.current},setFocused(e){r.current=e,i(e)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(e,t){void 0===t&&(t="first"),l.current=e,u.current=t,c(e)},selectedKeys:f,setSelectedKeys:h,disabledKeys:s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys])}}(e),r=s((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=s((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=function(e,t,n,r){void 0===r&&(r=[]);let i=s((()=>new Jc),[]),o=a(null);return s((()=>{let r=i.build(e,n);return o.current=t(r,o.current),o.current}),[i,e.children,e.items,n,...r])}(e,(e=>new hg(t?t(e):e)),l,[t]);return i((()=>{null==n.focusedKey||u.getItem(n.focusedKey)||n.setFocusedKey(null)}),[u,n.focusedKey]),{collection:u,disabledKeys:r,selectionManager:new pg(u,n)}}function vg(e){var t;let[n,r]=jt(e.selectedKey,null!=(t=e.defaultSelectedKey)?t:null,e.onSelectionChange),i=s((()=>null!=n?[n]:[]),[n]),{collection:o,disabledKeys:a,selectionManager:l}=gg(Dt({},e,{selectionMode:"single",disallowEmptySelection:!0,selectedKeys:i,onSelectionChange:t=>{let i=t.values().next().value;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}})),u=null!=n?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:u}}function mg(e){var t,n,r,l,u,c;let{defaultFilter:d,menuTrigger:p="input",allowsEmptyCollection:f=!1,allowsCustomValue:h,shouldCloseOnBlur:g=!0}=e,[v,m]=o(!1),[b,y]=o(!1),[x,w]=jt(e.inputValue,null!=(t=e.defaultInputValue)?t:"",e.onInputChange),{collection:S,selectionManager:E,selectedKey:k,setSelectedKey:P,selectedItem:T,disabledKeys:C}=vg(Dt({},e,{onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===k&&(D(),A.close())},items:null!=(n=e.items)?n:e.defaultItems})),O=S,N=s((()=>null==e.items&&d?function(e,t,n){return new hg(bg(e,t,n))}(S,x,d):S),[S,x,d,e.items]),j=a("focus"),A=ug(Dt({},e,{onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?j.current:void 0)},isOpen:void 0,defaultOpen:void 0})),L=(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),j.current=n,A.open(t))},F=a(x),D=()=>{var e,t;let n=null!=(e=null==(t=S.getItem(k))?void 0:t.textValue)?e:"";F.current=n,w(n)},R=a(!0),I=a(null!=(r=null!=(l=e.selectedKey)?l:e.defaultSelectedKey)?r:null),M=a(null!=(u=null==(c=S.getItem(k))?void 0:c.textValue)?u:"");i((()=>{var t,n;b&&(N.size>0||f)&&!A.isOpen&&x!==F.current&&"manual"!==p&&L(null,"input"),v||f||!A.isOpen||0!==N.size||A.close(),null!=k&&k!==I.current&&A.close(),x!==F.current&&(E.setFocusedKey(null),m(!1),""!==x||void 0!==e.inputValue&&void 0!==e.selectedKey||P(null)),R.current&&void 0===e.inputValue&&void 0===e.defaultInputValue&&D(),k===I.current||void 0!==e.inputValue&&void 0!==e.selectedKey?F.current=x:D();let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";b||null==k||void 0!==e.inputValue||k!==I.current||M.current!==r&&(F.current=r,w(r)),R.current=!1,I.current=k,M.current=r})),i((()=>{A.isOpen||E.setFocusedKey(null)}),[A.isOpen,E]);let _=()=>{I.current=null,P(null),A.close()},z=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(k);let r=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";F.current=r,A.close()}else D(),A.close()};return Dt({},A,{toggle:(t,n)=>{let r="manual"===n||"focus"===n&&"focus"===p;(f||N.size>0||r&&O.size>0||e.items||A.isOpen)&&(r&&!A.isOpen&&void 0===e.items&&m(!0),A.isOpen||(j.current=n),A.toggle(t))},open:L,selectionManager:E,selectedKey:k,setSelectedKey:P,disabledKeys:C,isFocused:b,setFocused:e=>{if(e)"focus"===p&&L(null,"focus");else if(g){var t,n;let e=null!=(t=null==(n=S.getItem(k))?void 0:n.textValue)?t:"";h&&x!==e?_():z()}y(e)},selectedItem:T,collection:v?O:N,inputValue:x,setInputValue:w,commit:()=>{A.isOpen&&null!=E.focusedKey?k===E.focusedKey?z():P(E.focusedKey):h?_():z()},revert:()=>{h&&null==k?_():z()}})}function bg(e,t,n){let r=[];for(let i of e)if("section"===i.type&&i.hasChildNodes){let e=bg(i.childNodes,t,n);[...e].length>0&&r.push(Dt({},i,{childNodes:e}))}else"section"!==i.type&&n(i.textValue,t)&&r.push(Dt({},i));return r}function yg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=a({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=function(e){if(1===e.length||!/^[A-Z]/i.test(e))return e;return""}(e.key);if(!o||e.ctrlKey||e.metaKey)return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(i.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),500)}:null}}}function xg(e){return pn()?e.metaKey:e.ctrlKey}function wg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:c=!1,disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:f=!1,isVirtualized:h,scrollRef:g=r}=e,{direction:v}=ui(),m=a({top:0,left:0});mn(g,"scroll",h?null:()=>{m.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const b=a(o);i((()=>{if(b.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||p||ls(r.current)}b.current=!1}),[]),i((()=>{if(!h&&t.focusedKey&&null!=g&&g.current){let e=g.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&Sg(g.current,e)}}),[h,g,t.focusedKey]);let y,x={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),e.altKey||!r.current.contains(e.target))return;const i=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):c&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null==n.getFirstKey?void 0:n.getFirstKey();null==r&&l&&(r=null==n.getFirstKey?void 0:n.getFirstKey(t.focusedKey)),i(r)}break;case"ArrowUp":if(n.getKeyAbove){e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null==n.getLastKey?void 0:n.getLastKey();null==r&&l&&(r=null==n.getLastKey?void 0:n.getLastKey(t.focusedKey)),i(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){e.preventDefault(),i(n.getKeyLeftOf(t.focusedKey),"rtl"===v?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){e.preventDefault(),i(n.getKeyRightOf(t.focusedKey),"rtl"===v?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,xg(e));t.setFocusedKey(r),xg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,xg(e));t.setFocusedKey(r),xg(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):c&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),i(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),i(n.getKeyPageAbove(t.focusedKey))}break;case"a":xg(e)&&"multiple"===t.selectionMode&&!0!==u&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),s||t.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,t,n=Ss(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Xt(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let o=e.relatedTarget;var r,i;if(o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)t.setFocusedKey(null!=(r=t.lastSelectedKey)?r:n.getLastKey());else t.setFocusedKey(null!=(i=t.firstSelectedKey)?i:n.getFirstKey())}else if(!h){g.current.scrollTop=m.current.top,g.current.scrollLeft=m.current.left;let e=g.current.querySelector('[data-key="'+t.focusedKey+'"]');e&&(Xt(e),Sg(g.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:w}=yg({keyboardDelegate:n,selectionManager:t});return d||(x=Gt(w,x)),p||(y=null==t.focusedKey?0:-1),{collectionProps:Dt({},x,{tabIndex:y})}}function Sg(e,t){let n=Eg(e,t,"left"),r=Eg(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,s=a+e.offsetWidth,u=l+e.offsetHeight;n<=a?a=n:n+i>s&&(a+=n+i-s),r<=l?l=r:r+o>u&&(l+=r+o-u),e.scrollLeft=a,e.scrollTop=l}function Eg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}class kg{constructor(e,t,n,r){this.collection=void 0,this.disabledKeys=void 0,this.ref=void 0,this.collator=void 0,this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector('[data-key="'+e+'"]')}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}}function Pg(e,t,n){let{type:r="menu",isDisabled:i}=e,o=Vt(),{triggerProps:a,overlayProps:l}=sp({type:r},t,n);return{menuTriggerProps:Dt({},a,{id:o,onPressStart(e){"touch"!==e.pointerType&&"keyboard"!==e.pointerType&&t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"===e.pointerType&&t.toggle()},onKeyDown:e=>{if(!("function"==typeof e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented||i)&&n&&n.current)switch(e.key){case"ArrowDown":case"Enter":case" ":e.preventDefault(),e.stopPropagation(),t.toggle("first");break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.toggle("last")}}}),menuProps:Dt({},l,{"aria-labelledby":o})}}const Tg=new WeakMap;function Cg(e,t){let n=Tg.get(e);if(!n)throw new Error("Unknown list");return n.id+"-option-"+("string"==typeof(r=t)?r.replace(/\s*/g,""):""+r);var r}function Og(e,t,n){let r=$t(e,{labelable:!0}),{listProps:i}=function(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,autoFocus:a,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:d=!1,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h}=e,g=fi({usage:"search",sensitivity:"base"}),v=s((()=>o||new kg(n,r,i,g)),[o,n,r,i,g]),{collectionProps:m}=wg({ref:i,selectionManager:t,keyboardDelegate:v,autoFocus:a,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:p,shouldUseVirtualFocus:f,allowsTabNavigation:h,isVirtualized:u,scrollRef:i});return{listProps:m}}(Dt({},e,{ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys})),{focusWithinProps:o}=jl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=Vt(e.id);Tg.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized});let{labelProps:l,fieldProps:u}=Cs(Dt({},e,{id:a,labelElementType:"span"}));return{labelProps:l,listBoxProps:Gt(r,o,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},Dt({role:"listbox"},Gt(u,i)))}}function Ng(e,t,n){var r,o,a,l,s,u;let{key:c}=e,d=Tg.get(t),p=null!=(r=e.isDisabled)?r:t.disabledKeys.has(c),f=null!=(o=e.isSelected)?o:t.selectionManager.isSelected(c),h=t.selectionManager.focusedKey===c,g=null!=(a=e.shouldSelectOnPressUp)?a:d.shouldSelectOnPressUp,v=null!=(l=e.shouldFocusOnHover)?l:d.shouldFocusOnHover,m=null!=(s=e.shouldUseVirtualFocus)?s:d.shouldUseVirtualFocus,b=null!=(u=e.isVirtualized)?u:d.isVirtualized,y=Bt(),x=Bt(),w={role:"option","aria-disabled":p,"aria-selected":"none"!==t.selectionManager.selectionMode?f:void 0};pn()&&vn()||(w["aria-label"]=e["aria-label"],w["aria-labelledby"]=y,w["aria-describedby"]=x),b&&(w["aria-posinset"]=t.collection.getItem(c).index+1,w["aria-setsize"]=Zc(t.collection));let{itemProps:S}=function(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:a,shouldUseVirtualFocus:l,focus:s}=e,u=e=>t.select(n,e),c=n===t.focusedKey;i((()=>{c&&t.isFocused&&!l&&document.activeElement!==r.current&&(s?s():ls(r.current))}),[r,c,t.focusedKey,t.childFocusStrategy,t.isFocused,l]);let d={};return l||(d={tabIndex:c?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}}),o?(d.onPressStart=e=>{"keyboard"===e.pointerType&&u(e)},d.onPressUp=e=>{"keyboard"!==e.pointerType&&u(e)}):(d.onPressStart=e=>{"touch"!==e.pointerType&&u(e)},d.onPress=e=>{"touch"===e.pointerType&&u(e)}),a||(d["data-key"]=n),{itemProps:d}}({selectionManager:t.selectionManager,key:c,ref:n,shouldSelectOnPressUp:g,isVirtualized:b,shouldUseVirtualFocus:m}),{pressProps:E,isPressed:k}=il(Dt({},S,{isDisabled:p,preventFocusOnPress:m})),{hoverProps:P}=Il({isDisabled:p||!v,onHoverStart(){Cl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}});return{optionProps:Dt({},w,Gt(E,P),{id:Cg(t,c)}),labelProps:{id:y},descriptionProps:{id:x},isFocused:h,isSelected:f,isDisabled:p,isPressed:k}}var jg;jg=JSON.parse('{"buttonLabel":"عرض المقترحات","countAnnouncement":"{optionCount, plural, one {# خيار} other {# خيارات}} متاحة.","focusAnnouncement":"{isGroupChange, select, true {المجموعة المدخلة {groupTitle}, مع {groupCount, plural, one {# خيار} other {# خيارات}}. } other {}}{optionText}{isSelected, select, true {, محدد} other {}}","listboxLabel":"مقترحات","selectedAnnouncement":"{optionText}، محدد"}');var Ag;Ag=JSON.parse('{"buttonLabel":"Покажи предложения","countAnnouncement":"{optionCount, plural, one {# опция} other {# опции}} на разположение.","focusAnnouncement":"{isGroupChange, select, true {Въведена група {groupTitle}, с {groupCount, plural, one {# опция} other {# опции}}. } other {}}{optionText}{isSelected, select, true {, избрани} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, избрани"}');var Lg;Lg=JSON.parse('{"buttonLabel":"Zobrazit doporučení","countAnnouncement":"K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } other {}}{optionText}{isSelected, select, true { (vybráno)} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybráno"}');var Fg;Fg=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# mulighed tilgængelig} other {# muligheder tilgængelige}}.","focusAnnouncement":"{isGroupChange, select, true {Angivet gruppe {groupTitle}, med {groupCount, plural, one {# mulighed} other {# muligheder}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Dg;Dg=JSON.parse('{"buttonLabel":"Empfehlungen anzeigen","countAnnouncement":"{optionCount, plural, one {# Option} other {# Optionen}} verfügbar.","focusAnnouncement":"{isGroupChange, select, true {Eingetretene Gruppe {groupTitle}, mit {groupCount, plural, one {# Option} other {# Optionen}}. } other {}}{optionText}{isSelected, select, true {, ausgewählt} other {}}","listboxLabel":"Empfehlungen","selectedAnnouncement":"{optionText}, ausgewählt"}');var Rg;Rg=JSON.parse('{"buttonLabel":"Προβολή προτάσεων","countAnnouncement":"{optionCount, plural, one {# επιλογή} other {# επιλογές }} διαθέσιμες.","focusAnnouncement":"{isGroupChange, select, true {Εισαγμένη ομάδα {groupTitle}, με {groupCount, plural, one {# επιλογή} other {# επιλογές}}. } other {}}{optionText}{isSelected, select, true {, επιλεγμένο} other {}}","listboxLabel":"Προτάσεις","selectedAnnouncement":"{optionText}, επιλέχθηκε"}');var Ig;Ig=JSON.parse('{"focusAnnouncement":"{isGroupChange, select, true {Entered group {groupTitle}, with {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, selected} other {}}","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} available.","selectedAnnouncement":"{optionText}, selected","buttonLabel":"Show suggestions","listboxLabel":"Suggestions"}');var Mg;Mg=JSON.parse('{"buttonLabel":"Mostrar sugerencias","countAnnouncement":"{optionCount, plural, one {# opción} other {# opciones}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Se ha unido al grupo {groupTitle}, con {groupCount, plural, one {# opción} other {# opciones}}. } other {}}{optionText}{isSelected, select, true {, seleccionado} other {}}","listboxLabel":"Sugerencias","selectedAnnouncement":"{optionText}, seleccionado"}');var _g;_g=JSON.parse('{"buttonLabel":"Kuva soovitused","countAnnouncement":"{optionCount, plural, one {# valik} other {# valikud}} saadaval.","focusAnnouncement":"{isGroupChange, select, true {Sisestatud rühm {groupTitle}, valikuga {groupCount, plural, one {# valik} other {# valikud}}. } other {}}{optionText}{isSelected, select, true {, valitud} other {}}","listboxLabel":"Soovitused","selectedAnnouncement":"{optionText}, valitud"}');var zg;zg=JSON.parse('{"buttonLabel":"Näytä ehdotukset","countAnnouncement":"{optionCount, plural, one {# vaihtoehto} other {# vaihtoehdot}} saatavilla.","focusAnnouncement":"{isGroupChange, select, true {Mentiin ryhmään {groupTitle}, {groupCount, plural, one {# vaihtoehdon} other {# vaihtoehdon}} kanssa.} other {}}{optionText}{isSelected, select, true {, valittu} other {}}","listboxLabel":"Ehdotukset","selectedAnnouncement":"{optionText}, valittu"}');var Kg;Kg=JSON.parse('{"buttonLabel":"Afficher les suggestions","countAnnouncement":"{optionCount, plural, one {# option} other {# options}} disponible(s).","focusAnnouncement":"{isGroupChange, select, true {Groupe {groupTitle} saisi, avec {groupCount, plural, one {# option} other {# options}}. } other {}}{optionText}{isSelected, select, true {, sélectionné(s)} other {}}","listboxLabel":"Suggestions","selectedAnnouncement":"{optionText}, sélectionné"}');var Vg;Vg=JSON.parse('{"buttonLabel":"הצג הצעות","countAnnouncement":"{optionCount, plural, one {אפשרות #} other {# אפשרויות}} במצב זמין.","focusAnnouncement":"{isGroupChange, select, true {נכנס לקבוצה {groupTitle}, עם {groupCount, plural, one {אפשרות #} other {# אפשרויות}}. } other {}}{optionText}{isSelected, select, true {, נבחר} other {}}","listboxLabel":"הצעות","selectedAnnouncement":"{optionText}, נבחר"}');var Ug;Ug=JSON.parse('{"buttonLabel":"Prikaži prijedloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena skupina {groupTitle}, s {groupCount, plural, one {# opcijom} other {# opcije/a}}. } other {}}{optionText}{isSelected, select, true {, odabranih} other {}}","listboxLabel":"Prijedlozi","selectedAnnouncement":"{optionText}, odabrano"}');var Bg;Bg=JSON.parse('{"buttonLabel":"Javaslatok megjelenítése","countAnnouncement":"{optionCount, plural, one {# lehetőség} other {# lehetőség}} áll rendelkezésre.","focusAnnouncement":"{isGroupChange, select, true {Belépett a(z) {groupTitle} csoportba, amely {groupCount, plural, one {# lehetőséget} other {# lehetőséget}} tartalmaz. } other {}}{optionText}{isSelected, select, true {, kijelölve} other {}}","listboxLabel":"Javaslatok","selectedAnnouncement":"{optionText}, kijelölve"}');var Wg;Wg=JSON.parse('{"buttonLabel":"Mostra suggerimenti","countAnnouncement":"{optionCount, plural, one {# opzione disponibile} other {# opzioni disponibili}}.","focusAnnouncement":"{isGroupChange, select, true {Ingresso nel gruppo {groupTitle}, con {groupCount, plural, one {# opzione} other {# opzioni}}. } other {}}{optionText}{isSelected, select, true {, selezionato} other {}}","listboxLabel":"Suggerimenti","selectedAnnouncement":"{optionText}, selezionato"}');var Gg;Gg=JSON.parse('{"buttonLabel":"候補を表示","countAnnouncement":"{optionCount, plural, one {# 個のオプション} other {# 個のオプション}}を利用できます。","focusAnnouncement":"{isGroupChange, select, true {入力されたグループ {groupTitle}、{groupCount, plural, one {# 個のオプション} other {# 個のオプション}}を含む。} other {}}{optionText}{isSelected, select, true {、選択済み} other {}}","listboxLabel":"候補","selectedAnnouncement":"{optionText}、選択済み"}');var qg;qg=JSON.parse('{"buttonLabel":"제안 사항 표시","countAnnouncement":"{optionCount, plural, one {#개 옵션} other {#개 옵션}}을 사용할 수 있습니다.","focusAnnouncement":"{isGroupChange, select, true {입력한 그룹 {groupTitle}, {groupCount, plural, one {#개 옵션} other {#개 옵션}}. } other {}}{optionText}{isSelected, select, true {, 선택됨} other {}}","listboxLabel":"제안","selectedAnnouncement":"{optionText}, 선택됨"}');var Jg;Jg=JSON.parse('{"buttonLabel":"Rodyti pasiūlymus","countAnnouncement":"Yra {optionCount, plural, one {# parinktis} other {# parinktys (-ių)}}.","focusAnnouncement":"{isGroupChange, select, true {Įvesta grupė {groupTitle}, su {groupCount, plural, one {# parinktimi} other {# parinktimis (-ių)}}. } other {}}{optionText}{isSelected, select, true {, pasirinkta} other {}}","listboxLabel":"Pasiūlymai","selectedAnnouncement":"{optionText}, pasirinkta"}');var Hg;Hg=JSON.parse('{"buttonLabel":"Rādīt ieteikumus","countAnnouncement":"Pieejamo opciju skaits: {optionCount, plural, one {# opcija} other {# opcijas}}.","focusAnnouncement":"{isGroupChange, select, true {Ievadīta grupa {groupTitle}, ar {groupCount, plural, one {# opciju} other {# opcijām}}. } other {}}{optionText}{isSelected, select, true {, atlasīta} other {}}","listboxLabel":"Ieteikumi","selectedAnnouncement":"{optionText}, atlasīta"}');var $g;$g=JSON.parse('{"buttonLabel":"Vis forslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativer}} finnes.","focusAnnouncement":"{isGroupChange, select, true {Angitt gruppe {groupTitle}, med {groupCount, plural, one {# alternativ} other {# alternativer}}. } other {}}{optionText}{isSelected, select, true {, valgt} other {}}","listboxLabel":"Forslag","selectedAnnouncement":"{optionText}, valgt"}');var Xg;Xg=JSON.parse('{"buttonLabel":"Suggesties weergeven","countAnnouncement":"{optionCount, plural, one {# optie} other {# opties}} beschikbaar.","focusAnnouncement":"{isGroupChange, select, true {Groep {groupTitle} ingevoerd met {groupCount, plural, one {# optie} other {# opties}}. } other {}}{optionText}{isSelected, select, true {, geselecteerd} other {}}","listboxLabel":"Suggesties","selectedAnnouncement":"{optionText}, geselecteerd"}');var Yg;Yg=JSON.parse('{"buttonLabel":"Wyświetlaj sugestie","countAnnouncement":"dostępna/dostępne(-nych) {optionCount, plural, one {# opcja} other {# opcje(-i)}}.","focusAnnouncement":"{isGroupChange, select, true {Dołączono do grupy {groupTitle}, z {groupCount, plural, one {# opcją} other {# opcjami}}. } other {}}{optionText}{isSelected, select, true {, wybrano} other {}}","listboxLabel":"Sugestie","selectedAnnouncement":"{optionText}, wybrano"}');var Zg;Zg=JSON.parse('{"buttonLabel":"Mostrar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo inserido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var Qg;Qg=JSON.parse('{"buttonLabel":"Apresentar sugestões","countAnnouncement":"{optionCount, plural, one {# opção} other {# opções}} disponível.","focusAnnouncement":"{isGroupChange, select, true {Grupo introduzido {groupTitle}, com {groupCount, plural, one {# opção} other {# opções}}. } other {}}{optionText}{isSelected, select, true {, selecionado} other {}}","listboxLabel":"Sugestões","selectedAnnouncement":"{optionText}, selecionado"}');var ev;ev=JSON.parse('{"buttonLabel":"Afișare sugestii","countAnnouncement":"{optionCount, plural, one {# opțiune} other {# opțiuni}} disponibile.","focusAnnouncement":"{isGroupChange, select, true {Grup {groupTitle} introdus, cu {groupCount, plural, one {# opțiune} other {# opțiuni}}. } other {}}{optionText}{isSelected, select, true {, selectat} other {}}","listboxLabel":"Sugestii","selectedAnnouncement":"{optionText}, selectat"}');var tv;tv=JSON.parse('{"buttonLabel":"Показать предложения","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметров}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введенная группа {groupTitle}, с {groupCount, plural, one {# параметром} other {# параметрами}}. } other {}}{optionText}{isSelected, select, true {, выбранными} other {}}","listboxLabel":"Предложения","selectedAnnouncement":"{optionText}, выбрано"}');var nv;nv=JSON.parse('{"buttonLabel":"Zobraziť návrhy","countAnnouncement":"{optionCount, plural, one {# možnosť} other {# možnosti/-í}} k dispozícii.","focusAnnouncement":"{isGroupChange, select, true {Zadaná skupina {groupTitle}, s {groupCount, plural, one {# možnosťou} other {# možnosťami}}. } other {}}{optionText}{isSelected, select, true {, vybraté} other {}}","listboxLabel":"Návrhy","selectedAnnouncement":"{optionText}, vybraté"}');var rv;rv=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Na voljo je {optionCount, plural, one {# opcija} other {# opcije}}.","focusAnnouncement":"{isGroupChange, select, true {Vnesena skupina {groupTitle}, z {groupCount, plural, one {# opcija} other {# opcije}}. } other {}}{optionText}{isSelected, select, true {, izbrano} other {}}","listboxLabel":"Predlogi","selectedAnnouncement":"{optionText}, izbrano"}');var iv;iv=JSON.parse('{"buttonLabel":"Prikaži predloge","countAnnouncement":"Dostupno još: {optionCount, plural, one {# opcija} other {# opcije/a}}.","focusAnnouncement":"{isGroupChange, select, true {Unesena grupa {groupTitle}, s {groupCount, plural, one {# opcijom} other {# optione/a}}. } other {}}{optionText}{isSelected, select, true {, izabranih} other {}}","listboxLabel":"Predlozi","selectedAnnouncement":"{optionText}, izabrano"}');var ov;ov=JSON.parse('{"buttonLabel":"Visa förslag","countAnnouncement":"{optionCount, plural, one {# alternativ} other {# alternativ}} tillgängliga.","focusAnnouncement":"{isGroupChange, select, true {Ingick i gruppen {groupTitle} med {groupCount, plural, one {# alternativ} other {# alternativ}}. } other {}}{optionText}{isSelected, select, true {, valda} other {}}","listboxLabel":"Förslag","selectedAnnouncement":"{optionText}, valda"}');var av;av=JSON.parse('{"buttonLabel":"Önerileri göster","countAnnouncement":"{optionCount, plural, one {# seçenek} other {# seçenekler}} kullanılabilir.","focusAnnouncement":"{isGroupChange, select, true {Girilen grup {groupTitle}, ile {groupCount, plural, one {# seçenek} other {# seçenekler}}. } other {}}{optionText}{isSelected, select, true {, seçildi} other {}}","listboxLabel":"Öneriler","selectedAnnouncement":"{optionText}, seçildi"}');var lv;lv=JSON.parse('{"buttonLabel":"Показати пропозиції","countAnnouncement":"{optionCount, plural, one {# параметр} other {# параметри(-ів)}} доступно.","focusAnnouncement":"{isGroupChange, select, true {Введена група {groupTitle}, з {groupCount, plural, one {# параметр} other {# параметри(-ів)}}. } other {}}{optionText}{isSelected, select, true {, вибрано} other {}}","listboxLabel":"Пропозиції","selectedAnnouncement":"{optionText}, вибрано"}');var sv;sv=JSON.parse('{"buttonLabel":"显示建议","countAnnouncement":"有 {optionCount, plural, one {# 个选项} other {# 个选项}}可用。","focusAnnouncement":"{isGroupChange, select, true {进入了 {groupTitle} 组,其中有 {groupCount, plural, one {# 个选项} other {# 个选项}}. } other {}}{optionText}{isSelected, select, true {, 已选择} other {}}","listboxLabel":"建议","selectedAnnouncement":"{optionText}, 已选择"}');var uv;uv=JSON.parse('{"buttonLabel":"顯示建議","countAnnouncement":"{optionCount, plural, one {# 選項} other {# 選項}} 可用。","focusAnnouncement":"{isGroupChange, select, true {輸入的群組 {groupTitle}, 有 {groupCount, plural, one {# 選項} other {# 選項}}. } other {}}{optionText}{isSelected, select, true {, 已選取} other {}}","listboxLabel":"建議","selectedAnnouncement":"{optionText}, 已選取"}');const cv={"ar-AE":ou(jg).default,"bg-BG":ou(Ag).default,"cs-CZ":ou(Lg).default,"da-DK":ou(Fg).default,"de-DE":ou(Dg).default,"el-GR":ou(Rg).default,"en-US":ou(Ig).default,"es-ES":ou(Mg).default,"et-EE":ou(_g).default,"fi-FI":ou(zg).default,"fr-FR":ou(Kg).default,"he-IL":ou(Vg).default,"hr-HR":ou(Ug).default,"hu-HU":ou(Bg).default,"it-IT":ou(Wg).default,"ja-JP":ou(Gg).default,"ko-KR":ou(qg).default,"lt-LT":ou(Jg).default,"lv-LV":ou(Hg).default,"nb-NO":ou($g).default,"nl-NL":ou(Xg).default,"pl-PL":ou(Yg).default,"pt-BR":ou(Zg).default,"pt-PT":ou(Qg).default,"ro-RO":ou(ev).default,"ru-RU":ou(tv).default,"sk-SK":ou(nv).default,"sl-SI":ou(rv).default,"sr-SP":ou(iv).default,"sv-SE":ou(ov).default,"tr-TR":ou(av).default,"uk-UA":ou(lv).default,"zh-CN":ou(sv).default,"zh-TW":ou(uv).default};function dv(e,t){var n,r;let{buttonRef:o,popoverRef:l,inputRef:u,listBoxRef:c,keyboardDelegate:d,isReadOnly:p,isDisabled:f}=e,h=di(cv),{menuTriggerProps:g,menuProps:v}=Pg({type:"listbox"},t,o);Tg.set(t,{id:v.id});let m=s((()=>d||new kg(t.collection,t.disabledKeys,c)),[d,t.collection,t.disabledKeys,c]),{collectionProps:b}=wg({selectionManager:t.selectionManager,keyboardDelegate:m,disallowTypeAhead:!0,disallowEmptySelection:!0,ref:u,isVirtualized:!0}),{labelProps:y,inputProps:x,descriptionProps:w,errorMessageProps:S}=Ns(Dt({},e,{onChange:t.setInputValue,onKeyDown:!p&&Wt(t.isOpen&&b.onKeyDown,(e=>{switch(e.key){case"Enter":case"Tab":t.isOpen&&"Enter"===e.key&&e.preventDefault(),t.commit();break;case"Escape":t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}})),onBlur:n=>{var r;n.relatedTarget===(null==o?void 0:o.current)||null!=(r=l.current)&&r.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off"}),u),E=nn({id:g.id,"aria-label":h("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),k=nn({id:v.id,"aria-label":h("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||y.id}),P=a(0),T=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,C=null!=(n=null==T?void 0:T.parentKey)?n:null,O=null!=(r=t.selectionManager.focusedKey)?r:null,N=a(C),j=a(O);i((()=>{if(gn()&&null!=T&&O!==j.current){let e=t.selectionManager.isSelected(O),n=null!=C?t.collection.getItem(C):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"";nu(h("focusAnnouncement",{isGroupChange:n&&C!==N.current,groupTitle:r,groupCount:n?[...n.childNodes].length:0,optionText:T["aria-label"]||T.textValue||"",isSelected:e}))}N.current=C,j.current=O}));let A=Zc(t.collection),L=a(A),F=a(t.isOpen);i((()=>{let e=t.isOpen!==F.current&&(null==t.selectionManager.focusedKey||gn());if(t.isOpen&&(e||A!==L.current)){nu(h("countAnnouncement",{optionCount:A}))}L.current=A,F.current=t.isOpen}));let D=a(t.selectedKey);return i((()=>{if(gn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==D.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";nu(h("selectedAnnouncement",{optionText:e}))}D.current=t.selectedKey})),i((()=>{if(t.isOpen)return function(e,t){void 0===t&&(t=document.body);let n=new Set(e),r=new Set,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&n.add(t),n.has(t)||r.has(t.parentElement)?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some((e=>t.contains(e)))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT)}),o=e=>{var t;let n=null!=(t=ef.get(e))?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),ef.set(e,n+1))},a=i.nextNode();for(;null!=a;)o(a),a=i.nextNode();let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target))))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?n.add(e):e instanceof Element&&o(e)}));return l.observe(t,{childList:!0,subtree:!0}),()=>{l.disconnect();for(let e of r){let t=ef.get(e);1===t?(e.removeAttribute("aria-hidden"),ef.delete(e)):ef.set(e,t-1)}}}([u.current,l.current])}),[t.isOpen,u,l]),{labelProps:y,buttonProps:Dt({},g,E,{excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(u.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(u.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))}}),inputProps:Gt(x,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":T?Cg(t,T.key):void 0,onTouchEnd:e=>{if(f||p)return;if(e.timeStamp-P.current<500)return e.preventDefault(),void u.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],i=Math.ceil(n.left+.5*n.width),o=Math.ceil(n.top+.5*n.height);r.clientX===i&&r.clientY===o&&(e.preventDefault(),u.current.focus(),t.toggle(null,"manual"),P.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:Gt(v,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:w,errorMessageProps:S}}function pv(e,t,n){let{keyboardDelegate:r,isDisabled:i}=e,o=fi({usage:"search",sensitivity:"base"}),a=s((()=>r||new kg(t.collection,t.disabledKeys,null,o)),[r,t.collection,t.disabledKeys,o]),{menuTriggerProps:l,menuProps:u}=Pg({isDisabled:i,type:"listbox"},t,n),{typeSelectProps:c}=yg({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{labelProps:d,fieldProps:p,descriptionProps:f,errorMessageProps:h}=Os(Dt({},e,{labelElementType:"span"}));c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture;let g=$t(e,{labelable:!0}),v=Gt(c,l,p),m=Vt();return{labelProps:Dt({},d,{onClick:()=>{var t;e.isDisabled||(n.current.focus(),hl=t="keyboard",xl(t,null))}}),triggerProps:Gt(g,Dt({},v,{onKeyDown:Wt(v.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyAbove(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?a.getKeyBelow(t.selectedKey):a.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[v["aria-labelledby"],v["aria-label"]&&!v["aria-labelledby"]?v.id:null,m].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}})),valueProps:{id:m},menuProps:Dt({},u,{autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},"aria-labelledby":[p["aria-labelledby"],v["aria-label"]&&!p["aria-labelledby"]?v.id:null].filter(Boolean).join(" ")}),descriptionProps:f,errorMessageProps:h}}function fv(e,t,n){var r;let{name:a,isDisabled:l}=e,s=function(){Tl();let[e,t]=o(hl);return i((()=>{let e=()=>{t(hl)};return gl.add(e),()=>{gl.delete(e)}}),[]),e}(),{visuallyHiddenProps:u}=Ys();return{containerProps:Dt({},u,{"aria-hidden":!0}),inputProps:{type:"text",tabIndex:null==s||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,disabled:l,name:a,size:t.collection.size,value:null!=(r=t.selectedKey)?r:"",onChange:e=>t.setSelectedKey(e.target.value)}}}function hv(e){let{state:n,triggerRef:r,label:i,name:o,isDisabled:a}=e,{containerProps:l,inputProps:s,selectProps:u}=fv(e,n,r);return n.collection.size<=300?t.createElement("div",l,t.createElement("input",s),t.createElement("label",null,i,t.createElement("select",u,t.createElement("option",null),[...n.collection.getKeys()].map((e=>{let r=n.collection.getItem(e);if("item"===r.type)return t.createElement("option",{key:r.key,value:r.key},r.textValue)}))))):o?t.createElement("input",{type:"hidden",name:o,disabled:a,value:n.selectedKey}):null}var gv={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},vv={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},mv=function(e){var t=void 0===e?{}:e,n=t.suffix,r=void 0===n?"":n,i=t.placement,o=void 0===i?"initial":i,a=t.minScale,l=void 0===a?.95:a,s=t.minOffset;return"\n &"+r+" {\n transform: var(--overlay-position);\n transform-origin: "+gv[o]+";\n --overlay-offset: "+(void 0===s?"0px":s)+";\n --overlay-hidden-x-scale: "+("top"===o||"bottom"===o||"initial"===o?"1":l)+";\n --overlay-hidden-y-scale: "+("left"===o||"right"===o?"1":l)+";\n --overlay-translate-visible: translate(0px, 0px);\n --overlay-translate-hidden: "+vv[o]+";\n --overlay-transition: 180ms;\n --overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));\n --overlay-normal-scale: scale(1, 1);\n }\n\n &.cube-overlay-transition-enter"+r+" {\n opacity: 0;\n transform: var(--overlay-hidden-scale) var(--overlay-translate-hidden);\n }\n\n &.cube-overlay-transition-enter-active"+r+" {\n opacity: 1;\n transform: var(--overlay-normal-scale) var(--overlay-translate-visible);\n transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);\n pointer-events: none;\n }\n\n &.cube-overlay-transition-exit"+r+" {\n opacity: 1;\n transform: var(--overlay-normal-scale) var(--overlay-translate-visible);\n }\n\n &.cube-overlay-transition-exit-active"+r+" {\n opacity: 0;\n transform: var(--overlay-hidden-scale) var(--overlay-translate-hidden);\n pointer-events: none;\n transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);\n }\n"};function bv(){}function yv(){}yv.resetWarningCache=bv;var xv=F((function(e){e.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yv,resetWarningCache:bv};return n.PropTypes=n,n}()}));var wv=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}});function Sv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ev=Object.freeze({__proto__:null,default:function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Sv(e.className,t):e.setAttribute("class",Sv(e.className&&e.className.baseVal||"",t))}}),kv=F((function(e,t){t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default}));F((function(e,t){var n;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,!(n=xv)||n.__esModule;t.timeoutsShape=null;t.classNamesShape=null}));var Pv=F((function(e,n){var r;n.__esModule=!0,n.default=void 0;var i=((r=t)&&r.__esModule?r:{default:r}).default.createContext(null);n.default=i,e.exports=n.default})),Tv=F((function(e,n){n.__esModule=!0,n.default=n.EXITING=n.ENTERED=n.ENTERING=n.EXITED=n.UNMOUNTED=void 0,l(xv);var r=l(t),i=l(y),o=l(kv),a=l(Pv);function l(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";n.UNMOUNTED=s;var u="exited";n.EXITED=u;var c="entering";n.ENTERING=c;var d="entered";n.ENTERED=d;var p="exiting";n.EXITING=p;var f=function(e){var t,n;function l(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=c):i=d:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:u}:null};var f=l.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=p)}this.updateStatus(!1,t)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},f.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===c?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},f.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[i.default.findDOMNode(this),r],l=a[0],s=a[1],u=this.getTimeouts(),p=r?u.appear:u.enter;!e&&!n||o.default.disabled?this.safeSetState({status:d},(function(){t.props.onEntered(l)})):(this.props.onEnter(l,s),this.safeSetState({status:c},(function(){t.props.onEntering(l,s),t.onTransitionEnd(p,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(l,s)}))}))})))},f.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!o.default.disabled?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},f.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},f.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},f.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,i):r.default.cloneElement(r.default.Children.only(n),i))},l}(r.default.Component);function h(){}f.contextType=a.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=s,f.EXITED=u,f.ENTERING=c,f.ENTERED=d,f.EXITING=p;var g=f;n.default=g})),Cv=L(Tv),Ov=D(wv),Nv=D(Ev),jv=F((function(e,n){n.__esModule=!0,n.default=void 0,l(xv);var r=l(Ov),i=l(Nv),o=l(t),a=l(Tv);function l(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},c=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=i.prototype;return l.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(i+=" "+o),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))}(e,i))},l.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&u(e,r),i&&u(e,i),o&&u(e,o)},l.render=function(){var e=this.props;e.classNames;var t=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["classNames"]);return o.default.createElement(a.default,s({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(o.default.Component);c.defaultProps={classNames:""},c.propTypes={};var d=c;n.default=d,e.exports=n.default})),Av=F((function(e,n){function r(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var l={};for(var s in t){if(i[s])for(r=0;r<i[s].length;r++){var u=i[s][r];l[i[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}function o(e,t,n){return null!=n[t]?n[t]:e.props[t]}n.__esModule=!0,n.getChildMapping=r,n.mergeChildMappings=i,n.getInitialChildMapping=function(e,n){return r(e.children,(function(r){return(0,t.cloneElement)(r,{onExited:n.bind(null,r),in:!0,appear:o(r,"appear",e),enter:o(r,"enter",e),exit:o(r,"exit",e)})}))},n.getNextChildMapping=function(e,n,a){var l=r(e.children),s=i(n,l);return Object.keys(s).forEach((function(r){var i=s[r];if((0,t.isValidElement)(i)){var u=r in n,c=r in l,d=n[r],p=(0,t.isValidElement)(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,t.isValidElement)(d)&&(s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:d.props.in,exit:o(i,"exit",e),enter:o(i,"enter",e)})):s[r]=(0,t.cloneElement)(i,{in:!1}):s[r]=(0,t.cloneElement)(i,{onExited:a.bind(null,i),in:!0,exit:o(i,"exit",e),enter:o(i,"enter",e)})}})),s}})),Lv=F((function(e,n){n.__esModule=!0,n.default=void 0,o(xv);var r=o(t),i=o(Pv);function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s=function(e){var t,n;function o(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,Av.getInitialChildMapping)(e,r):(0,Av.getNextChildMapping)(e,n,r),firstRender:!1}},s.handleExited=function(e,t){var n=(0,Av.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},s.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),a=this.state.contextValue,s=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:a},s):r.default.createElement(i.default.Provider,{value:a},r.default.createElement(t,o,s))},o}(r.default.Component);s.propTypes={},s.defaultProps={component:"div",childFactory:function(e){return e}};var u=s;n.default=u,e.exports=n.default})),Fv=F((function(e,n){n.__esModule=!0,n.default=void 0,a(xv);var r=a(t),i=a(y),o=a(Lv);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.handleLifecycle=function(e,t,n){var o,a=this.props.children,l=r.default.Children.toArray(a)[t];if(l.props[e]&&(o=l.props)[e].apply(o,n),this.props[e]){var s=l.props.nodeRef?void 0:i.default.findDOMNode(this);this.props[e](s)}},l.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),l=a[0],s=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);l.propTypes={};var s=l;n.default=s,e.exports=n.default})),Dv=F((function(e,n){n.__esModule=!0,n.default=n.modes=void 0;var r=l(t);l(xv);var i,o,a=l(Pv);function l(e){return e&&e.__esModule?e:{default:e}}var s={out:"out-in",in:"in-out"};n.modes=s;var u=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},c=((i={})[s.out]=function(e){var t=e.current,n=e.changeState;return r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){n(Tv.ENTERING,null)}))})},i[s.in]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,r.default.cloneElement(i,{in:!0,onEntered:u(i,"onEntered",(function(){n(Tv.ENTERING)}))})]},i),d=((o={})[s.out]=function(e){var t=e.children,n=e.changeState;return r.default.cloneElement(t,{in:!0,onEntered:u(t,"onEntered",(function(){n(Tv.ENTERED,r.default.cloneElement(t,{in:!0}))}))})},o[s.in]=function(e){var t=e.current,n=e.children,i=e.changeState;return[r.default.cloneElement(t,{in:!1,onExited:u(t,"onExited",(function(){i(Tv.ENTERED,r.default.cloneElement(n,{in:!0}))}))}),r.default.cloneElement(n,{in:!0})]},o),p=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Tv.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.appeared=!0},i.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Tv.ENTERING&&e.mode===s.in?{status:Tv.ENTERING}:!t.current||(n=t.current,i=e.children,n===i||r.default.isValidElement(n)&&r.default.isValidElement(i)&&null!=n.key&&n.key===i.key)?{current:r.default.cloneElement(e.children,{in:!0})}:{status:Tv.EXITING};var n,i},o.render=function(){var e,t=this.props,n=t.children,i=t.mode,o=this.state,l=o.status,s=o.current,u={children:n,current:s,changeState:this.changeState,status:l};switch(l){case Tv.ENTERING:e=d[i](u);break;case Tv.EXITING:e=c[i](u);break;case Tv.ENTERED:e=s}return r.default.createElement(a.default.Provider,{value:{isMounting:!this.appeared}},e)},i}(r.default.Component);p.propTypes={},p.defaultProps={mode:s.out};var f=p;n.default=f})),Rv=F((function(e,t){t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var n=s(jv);t.CSSTransition=n.default;var r=s(Fv);t.ReplaceTransition=r.default;var i=s(Dv);t.SwitchTransition=i.default;var o=s(Lv);t.TransitionGroup=o.default;var a=s(Tv);t.Transition=a.default;var l=s(kv);function s(e){return e&&e.__esModule?e:{default:e}}t.config=l.default})),Iv={position:"absolute",top:0,height:"100%",zIndex:999};function Mv(e){var t=e.isOpen,n=e.placement,r=e.minOffset,i=e.minScale,o=e.withoutTransition,a=e.children,l=e.childrenOnly,s=e.container,u={};"number"==typeof r&&(r+="px"),null!=n&&(u.placement=n),null!=i&&(u.minScale=i),null!=r&&(u.minOffset=r);var c=I.jsx(Rv.CSSTransition,E({in:t,unmountOnExit:!0,timeout:180,classNames:"cube-overlay-transition"},{children:l?a:I.jsx(ba,E({styles:Iv,css:o?"":mv(u)},{children:a}),void 0)}),void 0);return x(c,s||document.body)}var _v=function(){return I.jsx("svg",E({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},zv={display:"grid",position:"relative"},Kv={display:"grid",flow:"column",gridColumns:{"":"1fr auto","with-prefix":"auto 1fr auto"},placeItems:"center stretch",placeContent:"center stretch",gap:"1x",padding:{'[data-size="small"]':"(.75x - 1px) (1.5x - 1px)",'[data-size="default"]':"(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)"},border:{"":!0,invalid:"#danger-text.50",valid:"#success-text.50",focused:!0},radius:!0,reset:"input",preset:"default",outline:{"":"#purple-03.0",focused:"#purple-03"},color:{"":"#dark.85",invalid:"#danger-text",focused:"#dark.85",disabled:"#dark.30"},fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#dark.04"},fontWeight:400,textAlign:"left"},Vv={position:"absolute"},Uv={display:"flex",gap:".5x",flow:"column",margin:"0",padding:".5x",listStyle:"none",radius:!0,fill:"#white",shadow:"0px 4px 16px #shadow",height:"initial 30x",overflow:"hidden auto",styledScrollbar:!0},Bv={display:"block",padding:"(1x - 1px) (1.5x - 1px)",cursor:"pointer",radius:!0,fill:{"":"#white",focused:"#dark.04",selected:"#purple","focused & selected":"#purple-text",disabled:"#dark.04"},color:{"":"#dark.85",selected:"#white",disabled:"#dark.30"},fontWeight:500};function Wv(e){var t=e.state,n=e.popoverRef,r=e.listBoxRef,i=e.listBoxStyles,o=e.overlayStyles,a=e.optionStyles,l=e.overlayProps,s=e.disallowEmptySelection,u=e.shouldUseVirtualFocus,c=void 0!==u&&u,d=e.placement,p=e.minWidth,f=k(e,["state","popoverRef","listBoxRef","listBoxStyles","overlayStyles","optionStyles","overlayProps","disallowEmptySelection","shouldUseVirtualFocus","placement","minWidth"]),h=Og(E({autoFocus:t.focusStrategy||!0,disallowEmptySelection:s,shouldUseVirtualFocus:c},f),t,r).listBoxProps;i=E(E(E({},Uv),Ai("ListBoxPopup")),i);var g=lp({onClose:function(){return t.close()},shouldCloseOnBlur:!0,isOpen:t.isOpen,isDismissable:!0},n).overlayProps;return I.jsx(ps,E({restoreFocus:!0},{children:I.jsxs(ba,E({styles:E(E({minWidth:p?p+"px":"initial"},Vv),{overlayStyles:o})},l,g,{"data-position":d,ref:n},{children:[I.jsx(Qp,{onDismiss:function(){return t.close()}},void 0),I.jsx(ba,E({as:"ul",styles:i},Gt(h,f),{ref:r},{children:Array.from(t.collection).map((function(e){return I.jsx(Gv,{item:e,state:t,styles:a,shouldUseVirtualFocus:c},e.key)}))}),void 0),I.jsx(Qp,{onDismiss:function(){return t.close()}},void 0)]}),void 0)}),void 0)}function Gv(e){var t=e.item,n=e.state,r=e.styles,i=e.shouldUseVirtualFocus,l=a(null),s=n.disabledKeys.has(t.key),u=n.selectionManager.isSelected(t.key),c=n.selectionManager.focusedKey===t.key;r=E(E(E({},Bv),Ai("Option")),r);var d=Ng({key:t.key,isDisabled:s,isSelected:u,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,shouldUseVirtualFocus:i},n,l).optionProps,p=O(o(!1),2),f=p[0],h=fl({onFocusChange:p[1]}).focusProps;return v(ba,E({as:"li"},Gt(d,h),{ref:l,mods:{selected:u,focused:i?c:f,disabled:s},styles:r,key:t.key}),t.rendered)}var qv=Object.assign(h((function(e,t){var n,r=(e=Ha(e=Ii(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.autoFocus,e.inputProps;var g=e.triggerRef,v=e.popoverRef,m=e.listBoxRef,b=e.isLoading;e.loadingIndicator;var y=e.insideForm,x=e.overlayOffset,w=void 0===x?8:x,S=e.inputStyles,P=e.optionStyles,T=e.suffix,C=e.disallowEmptySelection,O=e.listBoxStyles,N=e.overlayStyles,j=e.message,A=e.direction,L=void 0===A?"bottom":A,F=e.shouldFlip,D=void 0===F||F,R=e.requiredMark,M=void 0===R||R,_=e.placeholder,z=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","autoFocus","inputProps","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","insideForm","overlayOffset","inputStyles","optionStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","message","direction","shouldFlip","requiredMark","placeholder"]),K=function(e){let t=ug(e),n=vg(Dt({},e,{onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close()}})),[r,i]=o(!1);return Dt({},n,t,{open(){0!==n.collection.size&&t.open()},toggle(e){0!==n.collection.size&&t.toggle(e)},isFocused:r,setFocused:i})}(e),V=oo(z,Ca,E(E({},zv),Ai("Select_Wrapper",z)));S=oo(z,wa,E(E(E({},Kv),Ai("Select",z)),S)),t=ha(t),g=ha(g),v=ha(v),m=ha(m);var U=pv(e,K,g),B=U.labelProps,W=U.triggerProps,G=U.valueProps,q=U.menuProps,J=ip({targetRef:g,overlayRef:v,scrollRef:m,placement:L+" end",shouldFlip:D,isOpen:K.isOpen,onClose:K.close,offset:w}),H=J.overlayProps,$=J.placement,X=zl({isDisabled:h},!0),Y=X.isFocused,Z=X.focusProps,Q=Il({isDisabled:h}),ee=Q.hoverProps,te=Q.isHovered,ne=Ls(W,g).buttonProps,re="invalid"===d,ie=re?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),oe=f(ie),ae=null===(n=null==g?void 0:g.current)||void 0===n?void 0:n.offsetWidth,le=I.jsxs(ba,E({qa:"SelectWrapper",mods:{invalid:re,valid:"valid"===d,disabled:h,hovered:te,focused:Y},styles:V},{children:[I.jsx(hv,{state:K,triggerRef:g,label:e.label,name:e.name},void 0),I.jsxs(ba,E({qa:r||"Select",as:"button"},Gt(ne,ee,Z),{ref:g,styles:E(E({},Kv),S),"data-size":"small"===e.size?"small":"default",mods:{invalid:re,valid:"valid"===d,disabled:h,hovered:te,focused:Y,"with-prefix":!!p}},{children:[p,I.jsx("span",E({},G,{children:K.selectedItem?K.selectedItem.rendered:_}),void 0),(d||b||T)&&I.jsxs("div",{children:[d&&!b?oe:null,b&&I.jsx(Et,{},void 0),T]},void 0),I.jsx(_v,{},void 0)]}),void 0),I.jsx(Mv,E({isOpen:K.isOpen&&!h},{children:I.jsx(Wv,E({},q,{popoverRef:v,listBoxRef:m,overlayProps:H,placement:$,state:K,disallowEmptySelection:C,listBoxStyles:O,overlayStyles:N,optionStyles:P,minWidth:ae}),void 0)}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:i,insideForm:y,styles:V,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:B,isDisabled:h,validationState:d,message:j,requiredMark:M,Component:le,ref:t}),void 0)})),{Item:qc});qv.cubeInputType="Select";var Jv=function(){return I.jsx("svg",E({"aria-hidden":"true",width:"14",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:I.jsx("path",{d:"M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z",fill:"currentColor"},void 0)}),void 0)},Hv={position:"relative",display:"grid"},$v=E(E({},os),{width:"100%"}),Xv={display:"grid",placeItems:"center",placeContent:"center",radius:"right",padding:"1.5x 1x",color:"inherit",border:0,fill:{"":"#purple.0",hovered:"#dark.04",pressed:"#dark.08",disabled:"#clear"}};var Yv=Object.assign(h((function(e,t){var n,r=(e=Ha(e=Ii(e))).qa,i=e.label,a=e.labelPosition,l=void 0===a?"top":a,s=e.labelStyles,u=e.isRequired,c=e.necessityIndicator,d=e.validationState,p=e.prefix,h=e.isDisabled;e.multiLine,e.autoFocus;var g=e.inputRef,v=e.triggerRef,m=e.popoverRef,b=e.listBoxRef,y=e.isLoading;e.loadingIndicator;var x=e.insideForm,w=e.overlayOffset,S=void 0===w?8:w,P=e.inputStyles,T=e.optionStyles,C=e.triggerStyles,N=e.suffix,j=e.disallowEmptySelection,A=e.listBoxStyles,L=e.overlayStyles,F=e.hideTrigger,D=e.message,R=e.autoComplete,M=e.direction,_=void 0===M?"bottom":M,z=e.shouldFlip,K=void 0===z||z,V=e.requiredMark,U=void 0===V||V,B=e.menuTrigger,W=void 0===B?"input":B,G=e.loadingState,q=e.filter,J=k(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","validationState","prefix","isDisabled","multiLine","autoFocus","inputRef","triggerRef","popoverRef","listBoxRef","isLoading","loadingIndicator","insideForm","overlayOffset","inputStyles","optionStyles","triggerStyles","suffix","disallowEmptySelection","listBoxStyles","overlayStyles","hideTrigger","message","autoComplete","direction","shouldFlip","requiredMark","menuTrigger","loadingState","filter"]),H=null!=G,$=function(e){let t=fi(Dt({usage:"search"},e));return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,i=(n=n.normalize("NFC")).length;for(;r+i<=e.length;r++){let o=e.slice(r,r+i);if(0===t.compare(n,o))return!0}return!1}}}({sensitivity:"base"}).contains,X=O(o(0),2),Y=X[0],Z=X[1],Q=O(o(0),2),ee=Q[0],te=Q[1],ne=mg(E(E({},e),{defaultFilter:q||$,allowsEmptyCollection:H})),re=oo(J,Ca,E(E({},Hv),Ai("ComboBox_Wrapper",e)));P=oo(J,wa,E(E(E({},$v),Ai("ComboBox",e)),P)),C=E(E(E({},Xv),Ai("ComboBox_Trigger",e)),C),t=ha(t),g=ha(g),v=ha(v),m=ha(m),b=ha(b);var ie=dv(E(E({},e),{inputRef:g,buttonRef:v,listBoxRef:b,popoverRef:m,menuTrigger:W}),ne),oe=ie.labelProps,ae=ie.inputProps,le=ie.listBoxProps,se=ie.buttonProps,ue=ip({targetRef:v,overlayRef:m,scrollRef:b,placement:_+" end",shouldFlip:K,isOpen:ne.isOpen,onClose:ne.close,offset:S}),ce=ue.overlayProps,de=ue.placement;p&&(P.paddingLeft=ee+"px"),P.paddingRight=Y+"px";var pe=zl({isDisabled:h}),fe=pe.isFocused,he=pe.focusProps,ge=Il({isDisabled:h}),ve=ge.hoverProps,me=ge.isHovered,be=Ls(se,v),ye=be.buttonProps,xe=be.isPressed,we=Il({isDisabled:h}),Se=we.hoverProps,Ee=we.isHovered,ke=zl({isDisabled:h},!0),Pe=ke.focusProps,Te=ke.isFocused,Ce="invalid"===d,Oe=Ce?I.jsx(Nt,{style:{color:"var(--danger-color)"}},void 0):I.jsx(Je,{style:{color:"var(--success-color)"}},void 0),Ne=f(Oe),je=null===(n=null==t?void 0:t.current)||void 0===n?void 0:n.offsetWidth,Ae=I.jsxs(ba,E({ref:t,qa:"ComboBoxWrapper"},sa({invalid:Ce,valid:"valid"===d,disabled:h,hovered:me,focused:fe}),{styles:re,style:{zIndex:fe?1:"initial"}},{children:[I.jsx(ba,E({qa:r||"ComboBox",as:"input"},Gt(ae,ve,he),{ref:g,autoComplete:R,styles:P},sa({invalid:Ce,valid:"valid"===d,disabled:h,hovered:me,focused:fe})),void 0),p?I.jsx(Vl,E({onWidthChange:te,padding:"0 1x 0 1.5x",opacity:!!h&&"@disabled-opacity",placeItems:"center",outerGap:0},{children:p}),void 0):null,I.jsxs(Bl,E({onWidthChange:Z,padding:"1x left",opacity:!!h&&"@disabled-opacity"},{children:[I.jsxs(es,E({gap:!1,padding:"0 1x"},{children:[d&&!y?Ne:null,y&&I.jsx(Et,{},void 0)]}),void 0),N,F?null:I.jsx(ba,E({as:"button"},Gt(ye,Pe,Se),sa({pressed:xe,focused:Te,hovered:Ee,disabled:h}),{isDisabled:h,ref:v,styles:C},{children:I.jsx(Jv,{},void 0)}),void 0)]}),void 0),I.jsx(Mv,E({isOpen:ne.isOpen&&!h},{children:I.jsx(Wv,E({},le,{listBoxRef:b,popoverRef:m,overlayProps:ce,shouldUseVirtualFocus:!0,placement:de,state:ne,disallowEmptySelection:j,listBoxStyles:A,overlayStyles:L,optionStyles:T,minWidth:je}),void 0)}),void 0)]}),void 0);return I.jsx(Yl,E({},{labelPosition:l,label:i,insideForm:x,styles:re,isRequired:u,labelStyles:s,necessityIndicator:c,labelProps:oe,isDisabled:h,validationState:d,message:D,requiredMark:U,Component:Ae,ref:t}),void 0)})),{cubeInputType:"ComboBox",Item:qc}),Zv={display:"grid",gap:"1x",flow:"row",fill:"#purple",color:"#white",radius:"round",placeContent:"center",width:"@avatar-size @avatar-size @avatar-size",height:"@avatar-size @avatar-size @avatar-size",fontSize:"calc(@avatar-size / 2)",lineHeight:"calc(@avatar-size / 2)",fontWeight:500},Qv=h((function(e,t){var n=e.size,r=void 0===n?"4x":n,i=e.icon,o=e.children,a=k(e,["size","icon","children"]),l=oo(a,Ta,E(E({},Zv),{"--avatar-size":r}));return I.jsxs(ba,E({},Da(a,{eventProps:!0}),{styles:l,ref:t,"data-theme":"special"},{children:[i,o]}),void 0)})),em=n({});var tm=N(N([],O(ka),!1),O(wa),!1),nm={pointerEvents:"auto",position:"relative",display:"grid",gridAreas:'"hero hero hero hero hero hero"\n ". . . . . ."\n ". heading header header header ."\n "divider divider divider divider divider divider"\n ". content content content content ."\n ". buttonGroup buttonGroup footer footer ."\n ". . . . . ."',gridColumns:"@dialog-padding-h auto auto auto auto @dialog-padding-h",gridRows:"auto @dialog-heading-padding-v auto auto 1fr auto @dialog-content-padding-v",placeItems:"baseline stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},transform:{"":!1,'[data-type="modal"]':"translate(0, ((50vh - 50%) / -3))"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-content-gap":"3x"},rm={position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",display:"flex",placeContent:"center"},im={},om={S:"small",M:"medium",L:"large"},am={small:360,medium:479,large:798},lm={"en-US":{dismiss:"Dismiss",alert:"Alert"}};var sm=h((function(e,t){var n=r(em)||{},o=n.type,a=void 0===o?"modal":o,l=k(n,["type"]),s=e.qa,u=e.children,c=e.size,d=void 0===c?"S":c,p=e.isDismissable,f=void 0===p?l.isDismissable:p,h=e.onDismiss,g=void 0===h?l.onClose:h,v=k(e,["qa","children","size","isDismissable","onDismiss"]);d=om[d.toUpperCase()]||d;var m,b=E(E(E(E({},nm),Ai("Dialog",e)),oo(v,tm)),{"@dialog-size":(am[d]||288)+"px"}),y=di(lm),x=vi(t),w=function(e,t){let{role:n="dialog"}=e,r=Bt();return r=e["aria-label"]?void 0:r,i((()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(t.current.blur(),ls(t.current))}),500);return()=>{clearTimeout(e)}}}),[t]),{dialogProps:Dt({},$t(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r}),titleProps:{id:r}}}(la(l,e),x),S=w.dialogProps,P=w.titleProps;"popover"!==a&&"tray"!==a||(m=I.jsx(Qp,{onDismiss:g},void 0));var T={heading:E({level:2,preset:"h4",styles:im},P),divider:{styles:{margin:"@dialog-heading-padding-v 0 @dialog-content-gap 0"}},content:{styles:{flexGrow:1,margin:{"":"@dialog-content-gap bottom",":last-child":"0"},gap:"@dialog-content-gap"}},header:{styles:{display:"grid",flow:"column",gap:"1x",placeItems:"baseline stretch",padding:!!f&&"4x right",textAlign:"right"}},footer:{styles:{display:"grid",gap:"1x",flow:"column",placeItems:"baseline stretch",textAlign:"right"}}};return I.jsx(ps,E({contain:!0,restoreFocus:!0},{children:I.jsxs(ba,E({"data-id":"Dialog","data-qa":s||"Dialog",styles:b,as:"section"},S,{mods:{dismissable:f},"data-type":a,"data-size":d,ref:x},{children:[m,I.jsxs(da,E({slots:T},{children:[u,f&&I.jsx(qs,{qa:"ModalCloseButton",type:"item",styles:rm,icon:I.jsx(Xe,{},void 0),"aria-label":y("dismiss"),onPress:function(){return g&&g()}},void 0)]}),void 0)]}),void 0)}),void 0)})),um={entering:!1,entered:!0};function cm(e){return I.jsx(Cv,E({timeout:{enter:0,exit:350}},e,{children:function(t){return d.map(e.children,(function(e){return e&&f(e,{isOpen:!!um[t]})}))}}),void 0)}var dm=h((function(e,t){var n=e.children,r=e.isOpen,i=e.container,a=e.onEnter,s=e.onEntering,u=e.onEntered,c=e.onExit,d=e.onExiting,p=e.onExited,f=O(o(!r),2),h=f[0],g=f[1],v=l((function(){g(!1),u&&u()}),[u]),m=l((function(){g(!0),p&&p()}),[p]);if(!(r||!h))return null;var b=I.jsx(Ri,E({ref:t},{children:I.jsx(cm,E({in:r,appear:!0,onExit:c,onExiting:d,onExited:m,onEnter:a,onEntering:s,onEntered:v},{children:n}),void 0)}),void 0);return y.createPortal(b,i||document.body)})),pm={position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:1,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"},fm=h((function(e,t){var n=e.isOpen,r=k(e,["isOpen"]),i=E(E({},pm),Ai("Underlay"));return I.jsx(ba,E({ref:t,"data-qa":"Underlay",styles:i,mods:{open:n}},r),void 0)})),hm={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"@cube-visual-viewport-height",pointerEvents:"none",zIndex:2,transition:"visibility 0ms linear .13s"},gm={display:"grid",zIndex:2,height:{"":"max (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"@cube-visual-viewport-height @cube-visual-viewport-height",'[data-type="fullscreen"]':"(@cube-visual-viewport-height * .9) (@cube-visual-viewport-height * .9)",'[data-type="fullscreenTakeover"]':"@cube-visual-viewport-height @cube-visual-viewport-height"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, visibility 0ms linear, transform .25s ease-in-out",transform:{"":"translate(0, 0) scale(1, 1)",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:".9999"}};var vm=h((function(e,t){var n=e.qa,r=e.children,i=e.isOpen,o=e.type,a=e.placement,l=e.styles,s=e.overlayProps,u=k(e,["qa","children","isOpen","type","placement","styles","overlayProps"]);l=E(E(E({},gm),Ai("Modal",e)),l),dp();var c=mp().modalProps,d={"--cube-visual-viewport-height":sn().height+"px"};return I.jsx(ba,E({qa:"ModalWrapper",mods:{open:i},"data-type":o,"data-placement":a,styles:hm,style:d},{children:I.jsx(ba,E({qa:n||"Modal",styles:l,mods:{open:i},"data-type":o,"data-placement":a},la(u,s,c),{ref:t},{children:r}),void 0)}),void 0)})),mm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.type,a=e.styles,l=k(e,["qa","children","onClose","type","styles"]),s=vi(t),u=lp(e,s),c=u.overlayProps,d=u.underlayProps;return I.jsxs(dm,E({},l,{children:["fullscreenTakeover"!==o&&I.jsx(fm,E({},d),void 0),I.jsx(vm,E({qa:n,onClose:i,type:o,ref:s,overlayProps:c,styles:a},{children:r}),void 0)]}),void 0)})),bm={zIndex:2,height:"max (@cube-visual-viewport-height * .9)",width:"288px 90vw",pointerEvents:"auto",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear",opacity:{"":0,open:".9999"}};var ym=h((function(e,t){var n=e.qa,r=e.children,l=e.isOpen,s=e.styles,u=e.isFixedHeight,c=e.isNonModal,d=e.overlayProps,p=k(e,["qa","children","isOpen","styles","isFixedHeight","isNonModal","overlayProps"]);dp();var f=mp({isDisabled:c}).modalProps;s=E(E(E({},bm),Ai("Tray",e)),s);var h=sn(),g=O(o(h.height),2),v=g[0],m=g[1],b=a();i((function(){b.current&&clearTimeout(b.current),h.height<v&&h.height<window.innerHeight?b.current=setTimeout((function(){m(h.height)}),500):m(h.height)}),[v,h.height]);var y={"--cube-visual-viewport-height":v+"px"},x=la(p,d);return I.jsx(ba,E({qa:"TrayWrapper",mods:{open:l},styles:E(E({},hm),{placeContent:"end center",placeItems:"end center"}),style:y},{children:I.jsx(ba,E({qa:n||"Tray",styles:s,mods:{open:l,"fixed-height":u}},x,f,{ref:t},{children:r}),void 0)}),void 0)})),xm=h((function(e,t){var n=e.qa,r=e.children,i=e.onClose,o=e.isFixedHeight,a=e.isNonModal,l=e.styles,s=k(e,["qa","children","onClose","isFixedHeight","isNonModal","styles"]),u=vi(t),c=lp(E(E({},e),{isDismissable:!0}),u),d=c.overlayProps,p=c.underlayProps;return I.jsxs(dm,E({},s,{children:[I.jsx(fm,E({},p),void 0),I.jsx(ym,E({qa:n,onClose:i,ref:u,overlayProps:d,isFixedHeight:o,isNonModal:a,styles:l},{children:r}),void 0)]}),void 0)})),wm={pointerEvents:"auto",position:"absolute",transition:"opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out",transform:{"":"scale(1, .9)",open:"scale(1, 1)"},opacity:{"":0,open:".9999"},transformOrigin:{"":"top center",'[data-placement="top"]':"bottom center"}};var Sm=h((function(e,t){var n=e.qa,r=e.children,i=e.placement,o=void 0===i?"bottom":i;e.arrowProps;var a=e.isOpen,l=e.style,s=e.styles;e.shouldCloseOnBlur,e.isKeyboardDismissDisabled;var u=e.isNonModal,c=e.isDismissable,d=k(e,["qa","children","placement","arrowProps","isOpen","style","styles","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]),p=lp(E(E({},e),{isDismissable:c&&a}),t).overlayProps,f=mp({isDisabled:u}).modalProps;return s=E(E(E({},wm),Ai("Popover",e)),s),I.jsx(ba,E({qa:n||"Popover"},Gt(d,p,f),{styles:s,ref:t,mods:{open:a},"data-placement":o,role:"presentation",style:l},{children:r}),void 0)})),Em=h((function(e,t){var n=e.qa,r=e.style,i=e.styles,o=e.children,a=e.placement,l=e.arrowProps,s=e.onClose,u=e.shouldCloseOnBlur,c=e.isKeyboardDismissDisabled,d=e.isNonModal,p=e.isDismissable,f=void 0===p||p,h=k(e,["qa","style","styles","children","placement","arrowProps","onClose","shouldCloseOnBlur","isKeyboardDismissDisabled","isNonModal","isDismissable"]);return I.jsx(dm,E({},h,{children:I.jsx(Sm,E({qa:n,ref:t,style:r,styles:i,placement:a,arrowProps:l,onClose:s,shouldCloseOnBlur:u,isKeyboardDismissDisabled:c,isNonModal:d,isDismissable:f},{children:o}),void 0)}),void 0)}));var km=function(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,l=e.mobileType,s=void 0===l?"popover"===r?"modal":r:l,u=e.hideArrow,c=e.targetRef,d=e.onDismiss,p=e.isDismissable,f=e.isKeyboardDismissDisabled,h=e.styles,g=e.mobileViewport,v=void 0===g?700:g,m=k(e,["children","type","mobileType","hideArrow","targetRef","onDismiss","isDismissable","isKeyboardDismissDisabled","styles","mobileViewport"]);if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");var b=O(t,2),y=b[0],x=b[1];(function(e){let t="undefined"!=typeof window&&"function"==typeof window.matchMedia,[n,r]=o((()=>!!t&&window.matchMedia(e).matches));return i((()=>{if(!t)return;let n=window.matchMedia(e),i=e=>{r(e.matches)};return n.addListener(i),()=>{n.removeListener(i)}}),[t,e]),!_t()&&n})("(max-width: "+v+"px)")&&("modal"!==r&&"modal"===s&&(p=!0),r=s);var w=sg(e),S=a(!1),P=a(!1),T=function(){return P.current=!0},C=function(){return P.current=!1};function N(){p&&(d&&d(),w.close())}return S.current=w.isOpen,i((function(){return function(){(S.current||P.current)&&"popover"!==r&&"tray"!==r&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")}}),[]),"popover"===r?I.jsx(Pm,E({},m,{state:w,targetRef:c,trigger:y,content:x,onClose:N,isKeyboardDismissDisabled:f,hideArrow:u}),void 0):I.jsx(Tm,{type:r,state:w,onClose:N,isDismissable:p,trigger:y,overlay:function(){switch(r){case"panel":case"fullscreen":case"fullscreenTakeover":case"modal":return I.jsx(mm,E({isOpen:w.isOpen,isDismissable:p,onClose:N,type:r,isKeyboardDismissDisabled:f,onExiting:T,onExited:C,styles:h},{children:"function"==typeof x?x(w.close):x}),void 0);case"tray":return I.jsx(xm,E({isOpen:w.isOpen,onClose:N,isKeyboardDismissDisabled:f,styles:h},{children:"function"==typeof x?x(w.close):x}),void 0)}}()},void 0)};function Pm(e){var t=e.state,n=e.targetRef,r=e.trigger,i=e.content,o=e.hideArrow,l=e.onClose,s=e.isKeyboardDismissDisabled,u=k(e,["state","targetRef","trigger","content","hideArrow","onClose","isKeyboardDismissDisabled"]),c=a(null),d=a(null),p=ip({targetRef:n||c,overlayRef:d,placement:u.placement,containerPadding:u.containerPadding,offset:u.offset||8,crossOffset:u.crossOffset,shouldFlip:u.shouldFlip,isOpen:t.isOpen}),f=p.overlayProps,h=p.placement,g=p.arrowProps,v=sp({type:"dialog"},t,c),m=v.triggerProps,b=v.overlayProps,y=E(E({},m),{ref:n?void 0:c}),x=I.jsx(Em,E({isOpen:t.isOpen,style:f.style,ref:d,onClose:l,placement:h,arrowProps:g,isKeyboardDismissDisabled:s,hideArrow:o},{children:"function"==typeof i?i(t.close):i}),void 0);return I.jsx(Tm,{type:"popover",state:t,triggerProps:y,dialogProps:b,trigger:r,overlay:x},void 0)}function Tm(e){var t=e.type,n=e.state,r=e.onClose,i=e.isDismissable,o=e.dialogProps,a=void 0===o?{}:o,l=e.triggerProps,s=void 0===l?{}:l,u=e.overlay,c=e.trigger,d=E({type:t,onClose:r,isDismissable:i},a);return I.jsxs(g,{children:[I.jsx(pl,E({},s,{onPress:n.toggle,isPressed:n.isOpen&&"modal"!==t&&"fullscreen"!==t&&"fullscreenTakeover"!==t},{children:c}),void 0),I.jsx(em.Provider,E({value:d},{children:u}),void 0)]},void 0)}var Cm=h((function(e,t){var n=(r(em)||{}).onClose,i=void 0===n?function(){}:n,o=e.danger,a=e.children,l=e.primaryProps,s=void 0===l?{}:l,u=e.secondaryProps,c=e.cancelProps,d=e.title,p=k(e,["danger","children","primaryProps","secondaryProps","cancelProps","title"]);s.label||(s.label="Ok");var f="primary";return o&&(f="danger"),I.jsxs(sm,E({role:"alertdialog",ref:t},p,{children:[I.jsx(_c,{children:d},void 0),I.jsx(sf,{},void 0),I.jsx(ff,{children:a},void 0),I.jsxs(Bc,E({align:"end"},{children:[I.jsx(qs,E({type:f},s,{onPress:function(e){return Wt(s.onPress&&s.onPress(e),i("primary"))}}),void 0),u&&I.jsx(qs,E({},u,{onPress:function(e){return Wt((null==u?void 0:u.onPress)&&(null==u?void 0:u.onPress(e)),i("secondary"))}}),void 0),c&&I.jsx(qs,E({},c,{onPress:function(e){return Wt((null==c?void 0:c.onPress)&&(null==c?void 0:c.onPress(e)),i("cancel"))}}),void 0)]}),void 0)]}),void 0)}));function Om(e){var t=e.children,n=e.type,r=void 0===n?"modal":n,i=e.onDismiss,o=e.isDismissable,a=e.isKeyboardDismissDisabled,l=d.only(t),s={type:r,onClose:i,isDismissable:o};return I.jsx(mm,E({isOpen:!!l,onClose:o?i:void 0,type:r||"modal",isDismissable:o,isKeyboardDismissDisabled:a},{children:I.jsx(em.Provider,E({value:s},{children:l}),void 0)}),void 0)}var Nm=0,jm={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-dialog-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),y.render(I.jsx(vp,{children:e.map((function(e){var n=e.id,r=e.type;e.placement;var i=e.isDismissable,o=void 0===i||i,a=e.primaryProps,l=e.cancelProps;e.onDismiss;var s=e.content,u=k(e,["id","type","placement","isDismissable","primaryProps","cancelProps","onDismiss","content"]);return I.jsx(Om,E({isDismissable:o,type:r,onDismiss:function(){"info"===e.dialogType?t.resolve(e):t.reject(e)}},{children:e.isVisible?v(Cm,E({primaryProps:E(E({},a),{onPress:function(){t.resolve(e)}}),cancelProps:l?E(E({},l),{onPress:function(){t.reject(e)}}):void 0},u,{key:n}),s):null}),n)}))},void 0),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++Nm,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}},Am=Object.assign(sm,{confirm:function(e){return jm.open(E({dialogType:"confirm"},e))},info:function(e){return jm.open(E({dialogType:"info"},e))}}),Lm=t.createContext({});var Fm={display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)"},Dm={position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.375x, (-.375x - 1px)) rotate(270deg)",'[data-placement="right"]':"translate(.375x, (-.375x - 1px)) rotate(90deg)"}};var Rm=h((function(e,t){var n=r(Lm),i=n.ref,o=n.arrowProps,l=n.state,s=n.overlayProps,u=n.minOffset,d=n.minScale,p=k(n,["ref","arrowProps","state","overlayProps","minOffset","minScale"]),f=a(null);i=i||f;var h=(e=Gt(e,p)).placement,g=void 0===h?"top":h,v=e.isOpen,m=e.tipStyles;e.showIcon;var b=e.isMaterial,y=oo(k(e,["placement","isOpen","tipStyles","showIcon","isMaterial"]),Ta,E(E(E({},Fm),{pointerEvents:b?"auto":"none"}),Ai("Tooltip",e)));m=E(E(E({},Dm),Ai("Tooltip_Tip")),m);var x=function(e,t){let n=$t(e,{labelable:!0}),{hoverProps:r}=Il({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:Gt(n,r,{role:"tooltip"})}}(e,l).tooltipProps;return c(t,(function(){return i?hi(i):null})),"number"==typeof u&&(u+="px"),"number"==typeof d&&(d=String(d)),I.jsxs(ba,E({},x,s,{css:mv({placement:g,minOffset:u,minScale:d}),styles:y,mods:{open:v},"data-placement":g,ref:i},{children:[e.children,I.jsx(ba,E({"data-placement":g,styles:m},o),void 0)]}),void 0)}));const Im=1500;let Mm={},_m=0,zm=!1,Km=null,Vm=null;function Um(e){void 0===e&&(e={});let{delay:t=Im}=e,{isOpen:n,open:r,close:o}=sg(e),l=s((()=>""+ ++_m),[]),u=a(),c=()=>{Mm[l]=f},d=()=>{for(let e in Mm)e!==l&&(Mm[e](!0),delete Mm[e])},p=()=>{clearTimeout(u.current),u.current=null,d(),c(),zm=!0,r(),Km&&(clearTimeout(Km),Km=null),Vm&&(clearTimeout(Vm),Vm=null)},f=e=>{e?(clearTimeout(u.current),u.current=null,o()):u.current||(u.current=setTimeout((()=>{u.current=null,o()}),500)),Km&&(clearTimeout(Km),Km=null),zm&&(Vm&&clearTimeout(Vm),Vm=setTimeout((()=>{delete Mm[l],Vm=null,zm=!1}),500))};return i((()=>()=>{clearTimeout(u.current),Mm[l]&&delete Mm[l]}),[l]),{isOpen:n,open:e=>{!e&&t>0&&!u.current?(d(),c(),n||Km||zm?n||p():Km=setTimeout((()=>{Km=null,zm=!0,p()}),t)):p()},close:f}}var Bm=function(e){var t=e.children,n=e.activeWrap,r=e.crossOffset,o=void 0===r?0:r,l=e.isDisabled,s=e.isMaterial,u=e.offset,c=void 0===u?8:u,p=e.trigger,f=O(d.toArray(t),2),h=f[0],g=f[1],v=Um(E({delay:750},e)),m=a(null),b=a(null),y=function(e,t,n){let{isDisabled:r,trigger:o}=e,l=Vt(),s=a(!1),u=a(!1),c=()=>{(s.current||u.current)&&t.open(u.current)},d=e=>{s.current||u.current||t.close(e)};i((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&t.close(!0)};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let{hoverProps:p}=Il({isDisabled:r,onHoverStart:()=>{"focus"!==o&&("pointer"===Ol()?s.current=!0:s.current=!1,c())},onHoverEnd:()=>{"focus"!==o&&(u.current=!1,s.current=!1,d())}}),{pressProps:f}=il({onPressStart:()=>{u.current=!1,s.current=!1,d(!0)}}),{focusableProps:h}=Ts({isDisabled:r,onFocus:()=>{Cl()&&(u.current=!0,c())},onBlur:()=>{u.current=!1,s.current=!1,d(!0)}},n);return{triggerProps:Dt({"aria-describedby":t.isOpen?l:void 0},Gt(h,p,f)),tooltipProps:{id:l}}}({isDisabled:l,trigger:p},v,m),x=y.triggerProps,w=y.tooltipProps,S=ip({placement:e.placement||"top",targetRef:m,overlayRef:b,offset:c,crossOffset:o,isOpen:v.isOpen}),k=S.overlayProps,P=S.arrowProps,T=S.placement;return n||"string"!=typeof h?I.jsxs(Ps,E({},x,{ref:m},{children:[n?I.jsx(td,{children:h},void 0):h,I.jsx(Lm.Provider,E({value:E({state:v,placement:T,ref:b,overlayProps:k,arrowProps:P,minOffset:"var(--gap)",minScale:"1",isMaterial:s},w)},{children:I.jsx(Mv,E({isOpen:v.isOpen,childrenOnly:!0,placement:e.placement||"top",withoutTransition:!0},{children:g}),void 0)}),void 0)]}),void 0):(console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),I.jsx(ns,{children:h},void 0))};var Wm=function(e){var t=e.title,n=e.children,r=e.tooltipStyles,i=e.width,o=k(e,["title","children","tooltipStyles","width"]);return I.jsxs(Bm,E({},o,{children:[n,I.jsx(Rm,E({styles:r},i?{width:i}:null,{children:t}),void 0)]}),void 0)},Gm={display:"flex",flow:"row",gap:"1x",placeContent:"space-between",placeItems:"center",padding:"1x 1.5x",fill:"#white"};function qm(e){var t=e.children,n=e.onLogoPress,r=k(e,["children","onLogoPress"]),i=oo(r,Ta,Gm);return I.jsxs(ba,E({role:"banner",styles:i},Da(r),{children:[I.jsx(zf,{onPress:n},void 0),I.jsx(es,E({flexGrow:1,placeContent:"space-between"},{children:t}),void 0)]}),void 0)}var Jm={display:"block",flow:"column",radius:"1x",padding:"1.5x"},Hm=N(N([],O(Ta),!1),O(Ea),!1),$m=h((function(e,t){var n=e.type;e.label;var r=k(e,["type","label"]);n=n||"note";var i=oo(r,Hm,E(E({},Jm),{fill:Kf[n]?Kf[n].fill:"#clear",border:Kf[n]&&Kf[n].border?Kf[n].border:"#clear",color:"#dark"}));return I.jsx(ba,E({role:"region"},Da(r,{eventProps:!0}),{styles:i,ref:t}),void 0)})),Xm={created:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M4.714 8.572h2.714v2.715c0 .078.065.142.143.142h.857a.143.143 0 00.143-.143V8.572h2.715a.143.143 0 00.142-.143v-.857a.143.143 0 00-.142-.143H8.57V4.715a.143.143 0 00-.143-.143h-.857a.143.143 0 00-.143.143V7.43H4.714a.143.143 0 00-.143.143v.857c0 .079.065.143.143.143z",fill:"#67C082"},void 0),I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#67C082"},void 0)]}),void 0),deleted:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M4.714 8.57h6.572a.143.143 0 00.142-.142V7.57a.143.143 0 00-.142-.143H4.714a.143.143 0 00-.143.143v.857c0 .078.065.143.143.143z",fill:"#FF646D"},void 0),I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FF646D"},void 0)]}),void 0),modified:I.jsxs("svg",E({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[I.jsx("path",{d:"M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z",fill:"#FBBC05"},void 0),I.jsx("circle",{cx:"8",cy:"8",r:"2.222",fill:"#FBBC05"},void 0)]}),void 0)},Ym={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function Zm(e){return".75x .5x .75x "+(1.5*e+.5)+"x"}function Qm(e,t){return void 0===t&&(t=!1),e.reduce((function(e,n){return n.isLeaf?t||e.push(n.key):(e.push(n.key),e.push.apply(e,N([],O(Qm(n.children||[])),!1))),e}),[])}var eb={created:{"":"#success.10",hovered:"#success.15"},deleted:{"":"#danger.08",hovered:"#danger.13"}},tb={created:"#success",deleted:"#danger"};function nb(e){var t=e.isSelected,n=e.mode,r=e.indent;return{width:"max 100%",radius:!0,textAlign:"left",fill:t?"#purple.05":eb[n]||{"":"#clear",hovered:"#dark.04"},color:t?"#purple-text":tb[n]||"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:t?500:400,padding:Zm(r)}}function rb(e){var t=e.children,n=e.mode,r=e.indent,i=e.onPress,o=e.isSelected;return I.jsx(Ks,E({onPress:i,styles:nb({isSelected:o,mode:n,indent:r}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}function ib(e){return(e=e.map((function(e){return E(E({},e),{children:e.children?ib(e.children):void 0})}))).sort((function(e,t){return!e.isLeaf&&t.isLeaf?-1:!t.isLeaf&&e.isLeaf?1:e.title&&t.title?e.title.localeCompare(t.title,"en",{sensitivity:"base"}):0}))}var ob="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function ab(e){var t=e.onSelect,n=e.treeData,r=e.selectedKey,a=e.defaultExpandAll,l=e.rootTitle,s=e.actionsPanel,u=e.onlyDirs,c=k(e,["onSelect","treeData","selectedKey","defaultExpandAll","rootTitle","actionsPanel","onlyDirs"]);n=ib(n);var d=O(o(["/"]),2),p=d[0],f=d[1],h=O(o(r),2),g=h[0],v=h[1],m=[{key:"/",title:l||"/",children:n}];function b(e){t&&t(e.key),v(e.key)}return i((function(){v(r)}),[r]),i((function(){a&&f(Qm(m,!0))}),[]),I.jsx(ld,E({styles:{flow:"column",fontWeight:500,width:"100%",gap:"1bw"}},c,{children:function e(t,n){return void 0===n&&(n=0),t.reduce((function(t,r){return r.isLeaf?u||t.push(I.jsx(rb,E({indent:n+1.7,isSelected:g===r.key,onPress:function(){return b(r)},mode:r.mode},{children:I.jsxs(es,E({gap:"1x",css:ob,color:g===r.key?"#purple":"#dark.50"},{children:[I.jsx(dt,{},void 0),I.jsx(ns,E({style:Ym,flexGrow:1,color:g===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0),s&&s(r),r.mode&&I.jsx(ld,E({padding:"0 .5x",placeItems:"center"},{children:Xm[r.mode]}),void 0)]}),void 0)}),r.key)):(t.push(I.jsx(rb,E({indent:n,isSelected:g===r.key,onPress:function(){return b(r)}},{children:I.jsxs(es,E({gap:".5x",css:ob},{children:[I.jsx(qs,E({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return function(e){p.includes(e.key)?f(p.filter((function(t){return t!==e.key}))):f(N(N([],O(p),!1),[e.key],!1))}(r)}},{children:p.includes(r.key)?I.jsx(We,{},void 0):I.jsx(Ve,{},void 0)}),void 0),I.jsxs(es,E({gap:"1x",flexGrow:1,color:g===r.key?"#purple":"#dark.50"},{children:[p.includes(r.key)?I.jsx(mt,{},void 0):I.jsx(ht,{},void 0),I.jsx(ns,E({style:Ym,color:g===r.key?"#purple-text":"#dark.75"},{children:r.title}),void 0)]}),void 0),s&&s(r)]}),void 0)}),r.key)),p.includes(r.key)&&t.push.apply(t,N([],O(e(r.children||[],n+1)),!1))),t}),[])}(m)}),void 0)}var lb=n({addTab:function(){},removeTab:function(){},setTab:function(){},changeTab:function(){}}),sb=function(e){var t=e.isSelected,n=e.isHidden;e.onClose;var r=k(e,["isSelected","isHidden","onClose"]);return I.jsx(qs,E({type:"tab",isSelected:t,isHidden:n},r),void 0)};function ub(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick;e.onTabClose;var l=e.paneStyles,s=e.extra,c=e.children,d=k(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","extra","children"]),p=a(null),f=O(o([]),2),h=f[0],g=f[1],v=O(o(n||t),2),m=v[0],b=v[1],y=O(o(!1),2),x=y[0],w=y[1],S=O(o(!1),2),P=S[0],T=S[1];function C(){var e=p&&p.current;e&&(w(!!e.scrollLeft),T(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function j(e,t){return e.find((function(e){return e.id===t}))}function A(e){j(h,e)&&b(e)}return u(C,[h]),i((function(){function e(){C()}return p&&p.current&&(p.current.addEventListener("scroll",e),p.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){p&&p.current&&(p.current.removeEventListener("scroll",e),p.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[p]),i((function(){var e=p&&p.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[m]),i((function(){b(n)}),[n]),I.jsx(ld,E({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":x||null,"data-is-right-fade":P||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},d,{children:I.jsxs(lb.Provider,E({value:{addTab:function(e){g((function(t){return j(t,e.id)?t:N(N([],O(t),!1),[e],!1)}))},setTab:A,removeTab:function(e){g((function(t){var n=t.filter((function(t){return t.id!==e.id}));return b((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},changeTab:function(e){g((function(t){var n=t.find((function(t){return t.id===e.id}));return n&&Object.assign(n,e),N([],O(t),!1)}))},currentTab:m}},{children:[I.jsxs(es,E({gap:".5x",placeContent:"center space-between"},{children:[I.jsx(es,E({ref:p,gap:"1x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:h.map((function(e){return I.jsx(sb,E({"data-qa":e.qa,onPress:function(){return function(e){r&&r(e.id),A(e.id)}(e)},isSelected:e.id===m||!1,isDisabled:e.isDisabled,isHidden:e.isHidden},{children:e.title}),e.id)}))}),void 0),s]}),void 0),I.jsx(ld,E({flexGrow:1,border:"top rgb(227, 227, 233)"},l||{},{children:c}),void 0)]}),void 0)}),void 0)}ub.TabPane=function(e){var t=e.id,n=e.title,o=e.qa,a=e.isHidden,l=e.isDisabled,s=e.children,u=k(e,["id","title","qa","isHidden","isDisabled","children"]),c=r(lb),d=c.addTab,p=c.removeTab,f=c.changeTab,h=c.currentTab;i((function(){var e={id:t,qa:o,title:n,isDisabled:l,isHidden:a};return d(e),function(){p(e)}}),[t]),i((function(){f({id:t,qa:o,title:n,isDisabled:l,isHidden:a})}),[n,l,a]);var g=t===h;return I.jsx(ns,E({style:{display:g?"block":"none"},flexGrow:1},u,{children:s}),void 0)};var cb=n({addTab:function(){},removeTab:function(){},setTab:function(){},setDirtyTab:function(){}}),db={radius:"1r 1r 0 0",padding:"1x 1.5x",border:{"":"left top right #clear",disabled:"left top right rgb(227, 227, 233)"},fill:{"":"#dark.04",hovered:"#dark.08","disabled, disabled & hover":"#white"},color:{"":"#dark.75","disabled, hovered, hovered & disabled":"#dark"},cursor:{"":"pointer",disabled:"default"},fontWeight:500,opacity:1,preset:"default",outline:{"":"inset #purple-03.0","focused & focus-visible":"inset #purple-03"}},pb={color:{"":"#dark.50",hovered:"#dark"},padding:"0 .25x",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},radius:"1r"},fb=function(e){var t=e.isDirty,n=e.isDisabled,r=e.children,i=e.isClosable,o=e.onClose,a=k(e,["isDirty","isDisabled","children","isClosable","onClose"]);return I.jsx(Ks,E({className:t?"file-tab--dirty":"",css:"\n margin-bottom: var(--border-width);\n transform: translate(0, 0);\n transition: color .2s linear, background-color .2s linear;\n\n &[disabled] {\n transform: translate(0, var(--border-width));\n }\n\n &.file-tab--dirty {\n &:hover {\n & .file-tab-dirty-badge {\n opacity: 0;\n pointer-events: none;\n }\n\n & .file-tab-close {\n opacity: 1;\n }\n }\n\n &:not(:hover) {\n & .file-tab-dirty-badge {\n opacity: 1;\n }\n\n & .file-tab-close {\n opacity: 0;\n }\n }\n }\n",styles:db,isDisabled:n},a,{children:I.jsxs(es,E({gap:".75x"},{children:[I.jsx(ns,{children:r},void 0),(i||t)&&I.jsxs(ld,E({placeItems:"center",style:{position:"relative"}},{children:[i?I.jsx(Ks,E({onPress:o,className:"file-tab-close",styles:pb},{children:I.jsx(Xe,{},void 0)}),void 0):I.jsx("div",{},void 0),t?I.jsx(ns,{className:"file-tab-dirty-badge",css:"\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all .2s linear;\n",width:"1x",height:"1x",fill:"#dark.30",radius:"round"},void 0):null]}),void 0)]}),void 0)}),void 0)};function hb(e){var t=e.defaultActiveKey,n=e.activeKey,r=e.onTabClick,l=e.onTabClose,s=e.paneStyles,c=e.isClosable,d=void 0===c||c,p=e.children,f=k(e,["defaultActiveKey","activeKey","onTabClick","onTabClose","paneStyles","isClosable","children"]),h=a(null),g=O(o([]),2),v=g[0],m=g[1],b=O(o(n||t),2),y=b[0],x=b[1],w=O(o(!1),2),S=w[0],P=w[1],T=O(o(!1),2),C=T[0],j=T[1];function A(){var e=h&&h.current;e&&(P(!!e.scrollLeft),j(e.scrollWidth!==e.offsetWidth&&!!(e.scrollWidth-e.offsetWidth-e.scrollLeft)))}function L(e,t){return e.find((function(e){return e.id===t}))}function F(e){L(v,e)&&x(e)}return u(A,[v]),i((function(){function e(){A()}return h&&h.current&&(h.current.addEventListener("scroll",e),h.current.addEventListener("mousewheel",e),window.addEventListener("resize",e)),function(){h&&h.current&&(h.current.removeEventListener("scroll",e),h.current.removeEventListener("mousewheel",e)),window.removeEventListener("resize",e)}}),[h]),i((function(){var e=h&&h.current;if(e){var t=e.querySelector("button[disabled]");t&&t.scrollIntoView({behavior:"smooth",inline:"end",block:"end"})}}),[y]),i((function(){x(n)}),[n]),I.jsx(ld,E({flow:"column",height:"max 100%",width:"max 100%","data-is-left-fade":S||null,"data-is-right-fade":C||null,css:"\n position: relative;\n\n &::before {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n width: 32px;\n height: 37px;\n transition: all .15s linear;\n background-image: linear-gradient(\n to left,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &::after {\n content: '';\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 32px;\n height: 37px;\n pointer-events: none;\n transition: all .15s linear;\n background-image: linear-gradient(\n to right,\n rgba(255, 255, 255, 0),\n rgba(255, 255, 255, 1)\n );\n z-index: 10;\n }\n\n &[data-is-left-fade]::before, &[data-is-right-fade]::after {\n opacity: 1;\n }\n"},f,{children:I.jsxs(cb.Provider,E({value:{addTab:function(e){m((function(t){return L(t,e.id)?t:N(N([],O(t),!1),[e],!1)}))},setTab:F,removeTab:function(e){m((function(t){var n=t.filter((function(t){return t.id!==e.id}));return x((function(t){return t===e.id?n[0]&&n[0].id:t})),n}))},setDirtyTab:function(e,t){m((function(n){var r=L(n,e);return r?(r.isDirty=t,N([],O(n),!1)):n}))},currentTab:y}},{children:[I.jsx(es,E({ref:h,gap:".5x",flexShrink:0,css:"\n position: relative;\n overflow: auto hidden;\n top: 1px;\n white-space: nowrap;\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 1px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n"},{children:v.map((function(e){return I.jsx(fb,E({onPress:function(){return function(e){F(e.id),r&&r(e.id)}(e)},onClose:function(){return d&&function(e){L(v,e.id)&&l&&l(e.id)}(e)},isClosable:d,isDisabled:e.id===y||!1,isDirty:e.isDirty},{children:e.title}),e.id)}))}),void 0),I.jsx(ld,E({flexGrow:1,border:"top rgb(227, 227, 233)"},s||{},{children:p}),void 0)]}),void 0)}),void 0)}hb.TabPane=function(e){var t=e.id,n=e.title,o=e.isDirty,a=e.children,l=k(e,["id","title","isDirty","children"]),s=r(cb),u=s.addTab,c=s.removeTab,d=s.currentTab,p=s.setDirtyTab;i((function(){var e={id:t,title:n,isDirty:o};return u(e),function(){c(e)}}),[t,n]),i((function(){p(t,o||!1)}),[o]);var f=t===d;return I.jsx(ns,E({style:{display:f?"block":"none"},flexGrow:1},l,{children:a}),void 0)};var gb=m.div(mb||(mb=j(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"],["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.4);\n place-content: center;\n place-items: center;\n z-index: 1000;\n display: none;\n\n .cube-modal {\n --base-translate: ((50vh - 50%) / -3);\n transform: translate(0, calc(var(--base-translate)));\n }\n\n &.cube-modal-transition-enter {\n opacity: 0;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n }\n }\n\n &.cube-modal-transition-enter-active {\n opacity: 1;\n transition: all 250ms cubic-bezier(0, 0.5, 0, 1);\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n transition: all 250ms cubic-bezier(0.5, 0.5, 0, 1);\n }\n }\n\n &.cube-modal-transition-enter-done {\n display: flex;\n }\n\n &.cube-modal-transition-exit {\n opacity: 1;\n display: flex;\n\n & .cube-modal {\n transform: translate(0, calc(var(--base-translate))) scale(1);\n }\n }\n\n &.cube-modal-transition-exit-active {\n opacity: 0;\n transition: all 160ms ease-in;\n\n & .cube-modal {\n transform: translate(0, calc(-32px + var(--base-translate))) scale(0.5);\n transition: all 160ms ease-in;\n }\n }\n\n &.cube-modal-transition-exit-done {\n display: none;\n }\n"])));function vb(e){var t=this,n=e.title,r=e.isVisible,a=e.type,s=e.okType,u=e.isClosable,c=e.isLoading,d=e.children,p=e.okText,f=e.cancelText,h=e.width,g=e.onOk,v=e.onCancel,m=e.onClose,b=e.qa,y=e.isDisabled,x=k(e,["title","isVisible","type","okType","isClosable","isLoading","children","okText","cancelText","width","onOk","onCancel","onClose","qa","isDisabled"]);u=!!u;var w=O(o(!1),2),S=w[0],C=w[1],N=O(o(!1),2),j=N[0],A=N[1];function L(){(m||v)&&(u?(m||v)():v&&v())}i((function(){C(r||!1)}),[r]);i((function(){function e(e){"Escape"!==e.key||c||L()}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[]);var F=l((function(e){A(!0),P(t,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:if(!g)return[3,5];t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,g(e)];case 2:return!1===t.sent()&&(m||v)&&(m||v)(),[3,5];case 3:return t.sent(),[3,5];case 4:return A(!1),[7];case 5:return[2]}}))}))}),[g]);return I.jsx(Rv.CSSTransition,E({in:S,timeout:250,classNames:"cube-modal-transition"},{children:I.jsx(gb,E({className:"cube-modal-overlay",onClick:function(e){e&&e.target&&e.target.classList.contains("cube-modal-overlay")&&!c&&L()}},{children:I.jsxs(Lf,E({"data-qa":b||"Modal",className:"cube-modal",display:"flex",role:"region",color:"#dark.85",padding:"0",shadow:!0,border:!1,radius:"1.5r",width:"288px (100% - 32px) "+("number"==typeof h?h+"px":h||"360px"),style:{textAlign:"left"}},x,{children:[I.jsxs(ld,E({placeContent:"space-between",padding:"2x 3x",border:"bottom"},{children:["object"==typeof n?n:I.jsx(_c,E({level:4,flexGrow:1},{children:n}),void 0),u?I.jsx(Ks,E({"data-qa":"ModalCloseButton",width:"3x",height:"3x",onPress:m||v,color:{"":"#dark.75",hovered:"#purple"},outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"}},{children:I.jsx(Xe,{style:{fontSize:16}},void 0)}),void 0):null]}),void 0),I.jsxs(fd,E({padding:"3x",gap:"3x",height:"max (100vh - 90px)",style:{overflow:"auto"}},{children:["string"==typeof d?I.jsx(ns,{children:d},void 0):d,"info"!==a&&(g||v)?I.jsxs(es,E({gap:"1.5x"},{children:[I.jsx(qs,E({"data-qa":"ConfirmButton",isDisabled:y,type:"danger"===s?"danger":"primary",isLoading:c||j,onPress:F},{children:p||"OK"}),void 0),I.jsx(qs,E({"data-qa":"CancelButton",onPress:function(){v?v():m&&m()},isDisabled:c},{children:f||("Yes"===p?"No":"Cancel")}),void 0)]}),void 0):null,"info"===a?I.jsx(es,{children:I.jsx(qs,E({"data-qa":"OkButton",isDisabled:y,type:"danger"===s?"danger":"primary",onPress:L},{children:p||"OK"}),void 0)},void 0):null]}),void 0)]}),void 0)}),void 0)}),void 0)}var mb,bb=0,yb={root:null,items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-modal-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),y.render(e.map((function(e){var n=e.id,r=e.onOk,i=e.onCancel,o=e.onClose,a=e.content,l=k(e,["id","onOk","onCancel","onClose","content"]);return v(vb,E({},l,{onOk:function(n){return P(t,void 0,void 0,(function(){return T(this,(function(t){switch(t.label){case 0:return r?[4,r(n)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.resolve(e,n),[2]}}))}))},onCancel:function(){i&&i(),"info"===e.type?t.resolve(e):t.reject(e)},onClose:function(){o&&o(),"info"===e.type?t.resolve(e):t.reject(e)},key:n}),a)})),this.root)},open:function(e){var t=this;return e.isVisible=!1,e.id=++bb,this.items.push(e),this.render(),setTimeout((function(){e.isVisible=!0,t.render()})),new Promise((function(t,n){e.resolve=t,e.reject=n}))},close:function(e){var t=this;e.isVisible=!1,this.render(),setTimeout((function(){t.items=t.items.filter((function(t){return e.id!==t.id})),t.render()}),1e3)},resolve:function(e,t){e.resolve(t),this.close(e)},reject:function(e,t){e.reject(t),this.close(e)}};vb.confirm=function(e){return yb.open(E({type:"confirm"},e))},vb.info=function(e){return yb.open(E({type:"info"},e))};
|
|
41
41
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
42
42
|
var xb=async function(e){try{await async function(e){if(!navigator.clipboard)throw wb();return navigator.clipboard.writeText(e)}(e)}catch(t){try{await async function(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);let i=!1;try{i=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(t)}if(!i)throw wb()}(e)}catch(e){throw e||t||wb()}}};function wb(){return new DOMException("The request is not allowed","NotAllowedError")}function Sb(e){var t,n=e.type,r=e.children,i=e.onClose,o=k(e,["type","children","onClose"]);switch(n=n||"note"){case"success":t=Je;break;case"danger":t=nt;break;default:t=xt}return I.jsxs(Lf,E({display:"grid",role:"region",color:"#dark",padding:".5x",shadow:"0 5px 15px #dark.10",border:!1,margin:"1x bottom",radius:"1.5r",styles:{gridColumns:"auto 1fr auto",placeItems:"center start",gap:"2x"}},o,{children:[I.jsx(ld,E({radius:"1r",width:"5x",height:"5x",placeContent:"center",placeItems:"center",fill:Kf[n]?Kf[n].fill:"#clear",color:Kf[n]?Kf[n].color:"#dark.75"},{children:I.jsx(t,{style:{fontSize:16}},void 0)}),void 0),I.jsx(ns,{children:r},void 0),I.jsx(Ks,E({color:{"":"#dark.75",hovered:"#purple"},width:"5x",height:"5x",onPress:i},{children:I.jsx(Xe,{},void 0)}),void 0)]}),void 0)}var Eb,kb,Pb=0,Tb={root:null,defaultOptions:{duration:5e3},items:[],init:function(){this.root||(this.root=document.createElement("div"),this.root.classList.add("cube-notification-container"),document.body.appendChild(this.root),this._render([]))},render:function(){this.init(),this._render()},_render:function(e){var t=this;e||(e=this.items),y.render(I.jsx(Rv.TransitionGroup,E({className:"cube-notifications"},{children:e.map((function(e){return I.jsx(Rv.CSSTransition,E({timeout:400,classNames:"cube-notification"},{children:I.jsx(Sb,E({type:e.type,onClose:function(){return t.close(e.id)}},{children:e.message}),void 0)}),e.id)}))}),void 0),this.root)},show:function(e,t,n){var r=this;void 0===n&&(n={}),n=Object.assign({},this.defaultOptions,n);var i=++Pb;this.items.push({id:i,type:e,message:t}),this.render(),setTimeout((function(){r.close(i)}),n.duration)},close:function(e){this.items=this.items.filter((function(t){return t.id!==e})),this.render()},success:function(e,t){this.show("success",e,t)},danger:function(e,t){this.show("danger",e,t)},info:function(e,t){this.show("note",e,t)}},Cb={position:"absolute",right:0,top:0,zIndex:1},Ob=m(ns)(Eb||(Eb=j(["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"],["\n position: relative;\n overflow: ",";\n max-width: 100%;\n ","\n\n ","\n\n ::-webkit-scrollbar-track {\n background: var(--grey-light-color);\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: var(--dark-04-color);\n background-clip: padding-box;\n border: 3px solid transparent;\n }\n\n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n"])),(function(e){return e.showScroll?"auto hidden":"hidden"}),(function(e){return e.nowrap?"white-space: nowrap;":""}),(function(e){return e.serif?"&&& code { font-family: var(--font); }":""})),Nb=m(ns)(kb||(kb=j(["\n position: relative;\n\n ","\n"],["\n position: relative;\n\n ","\n"])),(function(e){return e.overlay?"::after {\n display: block;\n content: '';\n width: 16px;\n position: absolute;\n left: -16px;\n top: 0;\n bottom: 0;\n background-image: linear-gradient(to right, rgba(var(--context-fill-color-rgb), 0), rgba(var(--context-fill-color-rgb), 1));\n }":""}));function jb(e){var t=e.code,n=e.title,r=e.nowrap,i=e.prefix,o=e.language,a=e.showScroll,l=void 0===a||a,s=e.serif;e.children;var u=e.padding,c=e.showOverlay,d=void 0===c||c,p=e.showTooltip,f=void 0!==p&&p,h=e.styles,g=k(e,["code","title","nowrap","prefix","language","showScroll","serif","children","padding","showOverlay","showTooltip","styles"]);u=u||"1.125x 1.5x";var v=n||"Code example";var m=(t||"").includes("\n")&&!r,b=t.split(/\n/g).map((function(e){return""+(i||"")+e+" "})).join("\n");h=E({preset:"default"},h);var y=I.jsx(Lf,E({"data-qa":"CopySnippet",fill:"#grey-light",radius:"1r",border:0,padding:0,style:{position:"relative"},styles:h},g,{children:I.jsxs(id,E({columns:"minmax(0, 1fr) 5x",width:"min 20x",radius:"1r",style:{position:"relative",overflow:"hidden"}},{children:[I.jsx(Ob,E({nowrap:r,multiline:m,showScroll:l,serif:s,padding:u},{children:I.jsx(af,{style:{margin:0,overflow:"visible"},code:b,language:o||"javascript"},void 0)}),void 0),I.jsx(Nb,{padding:u,overlay:d},void 0),I.jsx(qs,E({"aria-label":"Copy "+v,type:"clear",styles:{padding:"1x 1.5x",fontWeight:500,radius:m||l?"0 1r":"0 1r 1r 0",border:"#clear",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03 inset"}},style:Cb,onPress:function(){return P(this,void 0,void 0,(function(){return T(this,(function(e){switch(e.label){case 0:return[4,xb(t)];case 1:return e.sent(),Tb.success(v+" is copied"),[2]}}))}))}},{children:I.jsx(Qe,{},void 0)}),void 0)]}),void 0)}),void 0);return f?I.jsxs(Bm,{children:[I.jsx(Ks,E({styles:{display:"block",cursor:"default",width:"100%"}},{children:y}),void 0),I.jsx(Rm,{children:b},void 0)]},void 0):y}function Ab(e){var t=e.title,n=e.value,r=e.suffix,i=k(e,["title","value","suffix"]);return I.jsxs(Lf,E({display:"flex",placeContent:"space-between",gap:"1x",border:!1,shadow:"0 2px 6px #dark.10",padding:"2.5x"},i,{children:[I.jsx(_c,E({level:4,color:"#minor",preset:"default",nowrap:!0},{children:t}),void 0),I.jsxs(Fc.Strong,E({preset:"h3"},{children:[n," ",r]}),void 0)]}),void 0)}var Lb={whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",overflow:"hidden"};function Fb(e){var t=e.indent,n=e.isSelected;return{width:"max 100%",radius:!0,textAlign:"left",fill:n?"#purple.05":{"":"#clear",hovered:"#dark.04"},color:n?"#purple-text":"#dark.75",outline:{"":"#purple-03.0","focused & focus-visible":"#purple-03"},fontWeight:400,padding:".75x .5x .75x "+(t||.5)+"x"}}function Db(e){var t=e.children,n=e.indent,r=e.onPress,i=e.isSelected;return I.jsx(Ks,E({onPress:r,styles:Fb({indent:n,isSelected:i}),style:{whiteSpace:"nowrap"}},{children:t}),void 0)}var Rb="\n &:hover .actions {\n opacity: 1;\n }\n &:not(:hover) .actions {\n opacity: 0;\n }\n";function Ib(e){var t=e.onSelect,n=e.files,r=e.selectedKey,a=e.defaultExpandAll,l=k(e,["onSelect","files","selectedKey","defaultExpandAll"]),s=O(o([]),2),u=s[0],c=s[1],d=O(o(r),2),p=d[0],f=d[1];function h(e,n){var r="string"==typeof e?e:e.key;t&&t(r.split("|")[0],n),f(r)}i((function(){f(r)}),[r]),i((function(){a&&c(n.map((function(e){return e.key})))}),[]),i((function(){a&&c(n.map((function(e){return e.key})))}),[n]);var v=n.reduce((function(e,t){return e+t.items.length}),0);return I.jsxs(ld,E({styles:{flow:"column",width:"100%",gap:"1bw",padding:"2x bottom"}},l,{children:[I.jsx(Vc,E({color:"#dark.50",padding:"1x 0"},{children:v?v+" result"+(v>1?"s":"")+" in "+n.length+" file"+(n.length>1?"s":""):"No results found"}),void 0),n.map((function(e){return I.jsxs(g,{children:[I.jsx(Db,E({isSelected:p===e.key,onPress:function(){return h(e)},indent:e.items.length?null:2.25},{children:I.jsxs(es,E({gap:".5x",css:Rb},{children:[I.jsx(qs,E({type:"clear",margin:"-.5x",padding:".25x",color:{"":"#dark.60",hovered:"#purple"},onPress:function(){return t=e,void(u.includes(t.key)?c(u.filter((function(e){return e!==t.key}))):c(N(N([],O(u),!1),[t.key],!1)));var t}},{children:e.items.length?u.includes(e.key)?I.jsx(We,{},void 0):I.jsx(Ve,{},void 0):null}),void 0),I.jsxs(es,E({gap:"1x",flexGrow:1,color:p===e.key?"#purple":"#dark.50"},{children:[(u.includes(e.key),I.jsx(dt,{},void 0)),I.jsx(ns,E({style:Lb,color:p===e.key?"#purple-text":"#dark.75"},{children:e.entry?I.jsxs(I.Fragment,{children:[e.before||"",I.jsx(Fc.Selection,{children:e.entry},void 0),e.after||""]},void 0):e.title}),void 0)]}),void 0)]}),void 0)}),e.key),(u.includes(e.key)&&e.items||[]).map((function(t,n){var r=e.key+"|"+n,i=p===r;return I.jsx(Db,E({indent:3.5,isSelected:i,onPress:function(){return h(r,[t.row,t.column])}},{children:I.jsx(es,E({gap:"1x",css:Rb,color:i?"#purple":"#dark.50"},{children:I.jsxs(ns,E({style:Lb,flexGrow:1,color:i?"#purple-text":"#dark.75"},{children:[t.before||"",I.jsx(Fc.Selection,{children:t.entry},void 0),t.after||""]}),void 0)}),void 0)}),r)}))]},e.key)}))]}),void 0)}var Mb=Object.assign(qs,{Group:Bc}),_b=Object.assign(Ya,{Item:Oc}),zb={Text:Fc,Title:_c,Paragraph:Vc},Kb=Object.assign(As,{Text:As,Password:Js,Number:Pc,TextArea:Uc});function Vb(e,t){var n=Object.prototype.toString.call(e),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,i=0,o=e.length;if(r)for(;i<o;i++)t(e[i]);else t(e)}function Ub(e){if(!e.getBoundingClientRect)return{width:e.offsetWidth,height:e.offsetHeight};var t=e.getBoundingClientRect();return{width:Math.round(t.width),height:Math.round(t.height)}}function Bb(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}var Wb=function(e,t){var n=window,r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(e){n.clearTimeout(e)},o=0;function a(){var e,t,n=[];this.add=function(e){n.push(e)},this.call=function(r){for(e=0,t=n.length;e<t;e++)n[e].call(this,r)},this.remove=function(r){var i=[];for(e=0,t=n.length;e<t;e++)n[e]!==r&&i.push(n[e]);n=i},this.length=function(){return n.length}}function l(e,t){if(e)if(e.resizedAttached)e.resizedAttached.add(t);else{e.resizedAttached=new a,e.resizedAttached.add(t),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var n={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},i={position:"absolute",left:"0px",top:"0px",transition:"0s"};Bb(e.resizeSensor,n);var l=document.createElement("div");l.className="resize-sensor-expand",Bb(l,n);var s=document.createElement("div");Bb(s,i),l.appendChild(s);var u=document.createElement("div");u.className="resize-sensor-shrink",Bb(u,n);var c=document.createElement("div");Bb(c,i),Bb(c,{width:"200%",height:"200%"}),u.appendChild(c),e.resizeSensor.appendChild(l),e.resizeSensor.appendChild(u),e.appendChild(e.resizeSensor);var d=window.getComputedStyle(e),p=d?d.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(e.style.position="relative");var f=!1,h=0,g=Ub(e),v=0,m=0,b=!0;o=0;var y=function(){if(b){if(0===e.offsetWidth&&0===e.offsetHeight)return void(o||(o=r((function(){o=0,y()}))));b=!1}var t,n;t=e.offsetWidth,n=e.offsetHeight,s.style.width=t+10+"px",s.style.height=n+10+"px",l.scrollLeft=t+10,l.scrollTop=n+10,u.scrollLeft=t+10,u.scrollTop=n+10};e.resizeSensor.resetSensor=y;var x=function(){h=0,f&&(v=g.width,m=g.height,e.resizedAttached&&e.resizedAttached.call(g))},w=function(){g=Ub(e),(f=g.width!==v||g.height!==m)&&!h&&(h=r(x)),y()},S=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};S(l,"scroll",w),S(u,"scroll",w),o=r((function(){o=0,y()}))}}Vb(e,(function(e){l(e,t)})),this.detach=function(t){o&&(i(o),o=0),Wb.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor&&e.resizeSensor.resetSensor()}};if(Wb.reset=function(e){Vb(e,(function(t){e.resizeSensor.resetSensor&&t.resizeSensor.resetSensor()}))},Wb.detach=function(e,t){Vb(e,(function(e){e&&(e.resizedAttached&&"function"==typeof t&&(e.resizedAttached.remove(t),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached))}))},"undefined"!=typeof MutationObserver){var Gb=new MutationObserver((function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t].addedNodes,r=0;r<n.length;r++)n[r].resizeSensor&&Wb.reset(n[r])}));document.addEventListener("DOMContentLoaded",(function(e){Gb.observe(document.body,{childList:!0,subtree:!0})}))}var qb=Object.freeze({__proto__:null,ResizeSensor:Wb});export{Ks as Action,td as ActiveZone,$m as Alert,Cm as AlertDialog,Qv as Avatar,ya as BASE_STYLES,wa as BLOCK_STYLES,Uf as Badge,ba as Base,jf as Base64Upload,ns as Block,Mb as Button,Bc as ButtonGroup,Sa as COLOR_STYLES,Ta as CONTAINER_STYLES,Lf as Card,Gh as Checkbox,Kh as CheckboxGroup,pa as ClearSlots,zf as CloudLogo,Yv as ComboBox,ff as Content,jb as CopySnippet,ka as DIMENSION_STYLES,Am as Dialog,Om as DialogContainer,km as DialogTrigger,ab as DirectoryTree,sf as Divider,Pa as FLOW_STYLES,Oc as Field,Yl as FieldWrapper,hb as FileTabs,ld as Flex,fd as Flow,yf as Footer,_b as Form,id as Grid,cf as GridProvider,vf as Header,Kb as Input,qc as Item,ub as LegacyTabs,cd as Link,Wv as ListBoxPopup,Pf as LoadingAnimation,vb as Modal,vp as ModalProvider,Pc as NumberInput,Ca as OUTER_STYLES,xa as POSITION_STYLES,Vc as Paragraph,Js as PasswordInput,Df as Placeholder,Vl as Prefix,af as PrismCode,Ri as Provider,lg as Radio,Li as ResponsiveContext,Fi as ResponsiveProvider,rf as Root,Nh as SearchInput,Ib as SearchResults,qv as Select,If as Skeleton,da as SlotProvider,es as Space,Of as Spin,Ab as StatsCard,ji as StyleProvider,jh as Submit,Bl as Suffix,$h as Switch,Ea as TEXT_STYLES,qf as Tag,Fc as Text,Uc as TextArea,As as TextInput,_c as Title,Rm as Tooltip,Wm as TooltipProvider,Bm as TooltipTrigger,qm as TopBar,zb as Typography,oa as chain,aa as isTextOnly,la as mergeProps,sa as modAttrs,Tb as notification,ha as useCombinedRefs,Ai as useContextStyles,Ha as useFormProps,fa as useLayoutEffect,ca as useSlotProps};
|
|
43
43
|
//# sourceMappingURL=index.js.map
|