@stlite/desktop 0.99.1 → 0.100.0
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/CHANGELOG.md +27 -0
- package/bin/dump_artifacts.js +37 -37
- package/build/assets/{ArrowVegaLiteChart-B-Kd_jPH-Biiko0Ef.js → ArrowVegaLiteChart-AuhdMhKC-SeC_gJ-J.js} +1 -1
- package/build/assets/{Audio-B5gtg70U-Bh9tGjUY.js → Audio-MPOURgx8-aU_D4eY9.js} +1 -1
- package/build/assets/{AudioInput-CgFzLi-y-C8cmY_cr.js → AudioInput-D-1IugfD-BGplNYfL.js} +1 -1
- package/build/assets/{Balloons-CqQICrNd-BGoQrXhe.js → Balloons-C0le0djA-Rl3P1-Qw.js} +1 -1
- package/build/assets/{BidiComponent-CkI6DfPr-CbrqDKKX.js → BidiComponent-BsO32qTF-CaRsffwV.js} +1 -1
- package/build/assets/{Button-BOmzB5Yb-Bpnf-WZl.js → Button-AgVrhiWW-CQ3htb45.js} +1 -1
- package/build/assets/{ButtonGroup-C5sVTynN-DPa0Tx1x.js → ButtonGroup-DhgjbbBB-UV1LCvdW.js} +1 -1
- package/build/assets/{CameraInput-C1f0GN0n-Bo12mEPo.js → CameraInput-CEJ0-YBv-CmSkei37.js} +1 -1
- package/build/assets/{ChatInput-ClqoaQw2-PqG4grVV.js → ChatInput-C2YGDsKa-C1FEQeOd.js} +1 -1
- package/build/assets/{Checkbox-ClzElazy-D-AYf8eH.js → Checkbox-DpcMXROE-DSO9dPZW.js} +1 -1
- package/build/assets/{ColorPicker-mCkrAGPa-CtUHNwYp.js → ColorPicker-DfcSCXdu-BA37Ck4e.js} +1 -1
- package/build/assets/{ComponentInstance-B_1vn-IY-BM9ElpU6.js → ComponentInstance-CZJj3rmu-NhIcYIOG.js} +1 -1
- package/build/assets/{DataFrame-CXPcdw96-Crfv7wfu.js → DataFrame-BARAH3XB-CnqwPbPm.js} +5 -5
- package/build/assets/{DateInput-DzaFFasw-CiMjvLKg.js → DateInput-dJ0HrH9I-DL8FHvR-.js} +1 -1
- package/build/assets/{DateTimeInput-WmD8vSCU-K1wv6LRy.js → DateTimeInput-Dc_pZKKa-C7OxzebL.js} +1 -1
- package/build/assets/{DeckGlJsonChart-CDmFrnUQ-CKLXTmyf.js → DeckGlJsonChart-dSij3LC8-z_q2cC3l.js} +1 -1
- package/build/assets/{DownloadButton-g54AS0W2-qOKvF9wp.js → DownloadButton-5Bz1-AC5-BKem2rXk.js} +1 -1
- package/build/assets/{ErrorOutline.esm-B1NqpuZN-D4cKYVYX.js → ErrorOutline.esm-BskdUBnE-7qRVaCY5.js} +1 -1
- package/build/assets/{Feedback-DTXGrEzp-Dd_SGEH7.js → Feedback-CQYxHKC--CSr7C1Wx.js} +1 -1
- package/build/assets/{FileDownload.esm-B_usFfyI-DvbGAuNe.js → FileDownload.esm-r6GccJGR-bDEy_L2M.js} +1 -1
- package/build/assets/{FileUploader-CzCdIxed-CWWB6xZB.js → FileUploader-CFj8fg_u-D1JfDby-.js} +1 -1
- package/build/assets/{FormSubmitContent-CstMuKlS-CwJlipqn.js → FormSubmitContent-RGGkQf1N-DmLXheJT.js} +1 -1
- package/build/assets/{GraphVizChart-nJ8rg3sZ-B_FsOCth.js → GraphVizChart-BKutiaGH-CUH7s5dq.js} +1 -1
- package/build/assets/{Html-CkFoh4ns-BXVZGZ2C.js → Html-D45ILBvq-DbWAwYlg.js} +1 -1
- package/build/assets/{IFrame-BklekJPV-_sg-kw0j.js → IFrame-DK-NJrL7-0m_xaaau.js} +1 -1
- package/build/assets/{ImageList-l3ue-eW1-CIwYKSdj.js → ImageList-I3kPNHfL-D4nqsHeP.js} +1 -1
- package/build/assets/{InputInstructions-C3LBp4_M-BIHPK8ho.js → InputInstructions-C-Zf4oQL-DB03cpCg.js} +1 -1
- package/build/assets/{Json-DmaVI2eK-CplwjZhb.js → Json-DSgvYeF6-CGGD4AZF.js} +1 -1
- package/build/assets/{LinkButton-D87rEwzB-C31w_f7c.js → LinkButton-DLHHsxjM-CI62E9Lm.js} +1 -1
- package/build/assets/{MenuButton-DCWYT9Sm-Cjs_mH64.js → MenuButton-Oq8rRct9-ZWaMUcpm.js} +1 -1
- package/build/assets/{Metric-B85kD6qx-D6Bt_A2_.js → Metric-B0YF468a-CFi-iNGW.js} +1 -1
- package/build/assets/{Multiselect-Dj9HMUjc-C1tpZV37.js → Multiselect-CVHVCj3g-BAkweYLb.js} +1 -1
- package/build/assets/{NumberInput-Bz1Z4Olo-HwfUQwvD.js → NumberInput-eLkJ0pTb-Bm92Kd3x.js} +1 -1
- package/build/assets/{PageLink-DxIPOlCu-CAX1QvMp.js → PageLink--V5rxSOF-BYF5Fo3G.js} +1 -1
- package/build/assets/{Particles-CgV8FzZe-CZFoM1Ot.js → Particles-DDLlrLpr-LgL3KDiE.js} +1 -1
- package/build/assets/{PlotlyChart-DApJXgoh-msWOSLU2.js → PlotlyChart-BVhQF5xf-Bvz7Dcax.js} +1 -1
- package/build/assets/{Progress-DXRywIcj-D00Siwwp.js → Progress-BokEk05X-Bv2QkIp3.js} +1 -1
- package/build/assets/{ProgressBar-By08lmvS-BN2oE7g_.js → ProgressBar-Buvlf_pb-DyD7N0tJ.js} +1 -1
- package/build/assets/{Radio-DZEQy4hT-Cx0uGU2K.js → Radio-CUrfrjvU-B2myln1A.js} +1 -1
- package/build/assets/{Selectbox-BywNaXj9-EovVNC_I.js → Selectbox-DwkeQO0S-BhQZidV7.js} +1 -1
- package/build/assets/{Slider-sLEYxDUG-Bby7yVsF.js → Slider--afJTFYr-thOxe-ly.js} +1 -1
- package/build/assets/{Snow-MxXLnUX_-CCUTgEUd.js → Snow-dqZuIKEv-DME-mG7b.js} +1 -1
- package/build/assets/{Spinner-D-YJYPV5-qoM-yuRL.js → Spinner-Bk-w9tKQ-Bwm_Vk6T.js} +1 -1
- package/build/assets/{StreamlitSyntaxHighlighter-y_BJ441X-Do55UoZC.js → StreamlitSyntaxHighlighter-U8o3ATK--CsLsQIfZ.js} +1 -1
- package/build/assets/{Table-ah-SFAz4-BuzfN8wv.js → Table-JcIvdLi_-D87CQj8k.js} +1 -1
- package/build/assets/{TableChart.esm-x67iDGlj-hZSJidLi.js → TableChart.esm-Dpji9oSF-DM4jytuW.js} +1 -1
- package/build/assets/{TextArea-COwbG28l-yfu63ssv.js → TextArea-DnpuYIA5-BF6b1Uz8.js} +1 -1
- package/build/assets/{TextInput-CPqz-18c-DPGxqoCs.js → TextInput-BOxdqnrF-BhQogAHg.js} +1 -1
- package/build/assets/{TimeInput-BQ-fP8Yi-FMCqKedu.js → TimeInput-CjU6O1Hm-BfH2ACHB.js} +1 -1
- package/build/assets/{Toast-CGUHIZQI-39x9j5Rs.js → Toast-Dxo0ZqMx-ZaDpGanl.js} +1 -1
- package/build/assets/{Video-CWomx7KF-nGUBPGaY.js → Video-CYwcC1JG-ulcwxNbn.js} +1 -1
- package/build/assets/{WidgetLabel-DUaobbKW-DD-xWyXR.js → WidgetLabel-DTUHhtk_-EPIQC9md.js} +1 -1
- package/build/assets/{WidgetLabelHelpIcon-Dk_Qm9_8-CtMOr4fX.js → WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js} +1 -1
- package/build/assets/{WidgetLabelHelpIconInline-CkTH9muE-i_BwkvTR.js → WidgetLabelHelpIconInline-D4j09uRD-MZxp3LdE.js} +1 -1
- package/build/assets/{_baseAssignValue-DbpQ8D1L-D2c_-zPN.js → _baseAssignValue-CBJGGLCx-DiCzbxPi.js} +1 -1
- package/build/assets/{base-input-CUlWnT-V-BhBQbzWk.js → base-input-YEUHRI4X-r3jc5z5D.js} +1 -1
- package/build/assets/{checkbox-CEu7IJmq-3LmskyhR.js → checkbox-iHgvbvtl-BQg_ZqeS.js} +1 -1
- package/build/assets/{constants-BFZIinC9-BhIl5GAK.js → constants-PqcOHKIA-Am2_uapM.js} +1 -1
- package/build/assets/{createDownloadLinkElement-CO9Q-pa0-BNUtAwjF.js → createDownloadLinkElement-CwAYcc1e-DbJb0I6l.js} +1 -1
- package/build/assets/{createSuper-CPupKoXU-C5x8b8jJ.js → createSuper-DwpxHxg4-FoILwayq.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-D7_bQukB-DqAp5wnt.js → data-grid-overlay-editor-CLo-w1F9-B0x2Sg0-.js} +1 -1
- package/build/assets/{downloader-CZ7qD7NY-DGAnDDXL.js → downloader-CZ7qD7NY-Df1O1edF.js} +1 -1
- package/build/assets/{embed-Dc8baQ26-DAsqJZrc.js → embed-Dq8jQdGh-CBVvTzpb.js} +1 -1
- package/build/assets/{es6-BxevHr5y-DDD2E1qH.js → es6-BxevHr5y-BuJv1L-s.js} +2 -2
- package/build/assets/{formatNumber-DxMjoq14-D-XVTuz9.js → formatNumber-DefaFHuv-BSZLG6Yx.js} +1 -1
- package/build/assets/{iconPosition-9UgvX_TD-BzkVt95G.js → iconPosition-BPGPKkjQ-DDZxDFyf.js} +1 -1
- package/build/assets/{iframeResizer.contentWindow-CCqu70r3-2dQhJjwY.js → iframeResizer.contentWindow-bVTYWYos-CjhKIaGT.js} +1 -1
- package/build/assets/{index-BV2WTlzI-BDu7x5w-.js → index-BxCkce84-CXTDYP74.js} +1 -1
- package/build/assets/{index-DJf52eor.js → index-CHE20_1-.js} +6 -6
- package/build/assets/{index-CDNzkMOW-Ci5P-rfD.js → index-CeKcUppy-CpcuvBWq.js} +1 -1
- package/build/assets/{index-Co96_X1M-Dl06Rnsd.js → index-D1kjTmWN-D-hzXEqP.js} +1 -1
- package/build/assets/{index-BoaYS_fk-BOYhDwkq.js → index-DJIbJyKa-D4FORpfO.js} +1 -1
- package/build/assets/{index-CJ4tMOMA-DwN410du.js → index-I7jKEriY-B-n9NbT_.js} +1 -1
- package/build/assets/{input-HUYzfsf9-BxmLV7Ek.js → input-YNBnpJ12-038QD4s4.js} +1 -1
- package/build/assets/{memory-C-LDMFc2-DmYLyk9H.js → memory-C-LDMFc2-CpCm65Br.js} +1 -1
- package/build/assets/{number-overlay-editor-BQXyYsVn-Dh7S4LVs.js → number-overlay-editor-Cdnv58wS-HWHegkI_.js} +1 -1
- package/build/assets/{pandasStylerUtils-BVB-ECxE-CDURxvwo.js → pandasStylerUtils-DjDsh9Sw-f2V2gA5b.js} +1 -1
- package/build/assets/{possibleConstructorReturn-YeRoNy63-B2FGD3ja.js → possibleConstructorReturn-p-fKXom_-BPFgGBwd.js} +1 -1
- package/build/assets/{reactJsonViewCompat-CeSrJm8p-le930912.js → reactJsonViewCompat-gGOZBlvq-BHD6wBsT.js} +1 -1
- package/build/assets/{sandbox-DbnteG5V-yqy_7sO8.js → sandbox-DbnteG5V-DKMo4DSb.js} +1 -1
- package/build/assets/{select-haj_e3M_-P2nevO2w.js → select-DbfjugKJ-C8EDw3eO.js} +1 -1
- package/build/assets/{sprintfjs-DwuHM96D-Dbm-A0ro.js → sprintfjs-D5kvUrjM--36qIaY-.js} +1 -1
- package/build/assets/{stateful-menu-DhWFcRsJ-hkmyKt6q.js → stateful-menu-DsDbGVB_-C8xJ2Uve.js} +1 -1
- package/build/assets/{styled-components-BwoIjXty-eQCTyKeV.js → styled-components-BsL0GiBO-C2azWTC8.js} +1 -1
- package/build/assets/{styled-components-CggDa8xh-DRn7YfuV.js → styled-components-CZ4GSHz4-BVEj2YLE.js} +1 -1
- package/build/assets/{styled-components-CRl5ROSi-CaifWlLZ.js → styled-components-aeDchaOw-CDmV3dyQ.js} +1 -1
- package/build/assets/{timepicker-t1TdfIJG-CM4-XB8w.js → timepicker-BIFo5a1u-DTWDwWXK.js} +1 -1
- package/build/assets/{toConsumableArray-DtFGUM3A-BLxO6YGd.js → toConsumableArray-BJ_-nsuo-BPUSYd8M.js} +1 -1
- package/build/assets/{useBasicWidgetState-Bd8NTj87-Cqs9ZQAV.js → useBasicWidgetState-oLSfk0mv-C-D-ncQp.js} +1 -1
- package/build/assets/{useIntlLocale-CXWYgGQX-B2q3sAu2.js → useIntlLocale-BELAEOpY-BzvvmoUT.js} +1 -1
- package/build/assets/{useSelectCommon-O2yZsfjb-6cuQoolB.js → useSelectCommon-_ffsRexw-DbdQDzQX.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-BTuNAk3V-5wcrsLsu.js → useTextInputAutoExpand-Coetw41P-BCx9E5Py.js} +1 -1
- package/build/assets/{useUpdateUiValue-B574r2my-B36XHNQq.js → useUpdateUiValue-CAsGHNl5-wS4IfynZ.js} +1 -1
- package/build/assets/{useWaveformController-EemjKAv5-CT3VAgB8.js → useWaveformController-B-n3rX5g-BppMHOmS.js} +1 -1
- package/build/assets/{utils-DNbZWtPr-BHo82ec1.js → utils-CzD7XIpv-COJ6XrrX.js} +1 -1
- package/build/assets/{withCalculatedWidth-CswVJ4Re-BeXEmgBt.js → withCalculatedWidth-nNNFed9I-Fzz_WpIw.js} +1 -1
- package/build/assets/{withFullScreenWrapper-CKo__VbV-B1HqecCF.js → withFullScreenWrapper-jebSlaHO-C2WriMN7.js} +1 -1
- package/build/electron/main.js +2 -2
- package/build/electron/manifest.js +1 -0
- package/build/index.html +1 -1
- package/package.json +34 -39
- package/wheels/streamlit-1.56.0-cp313-none-any.whl +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c_ as f,c$ as c,bJ as a}from"./index-
|
|
1
|
+
import{c_ as f,c$ as c,bJ as a}from"./index-CHE20_1-.js";import{i as p}from"./assertThisInitialized-C1dAyb4j-CzYfxWZp.js";function o(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function s(t,r){if(t){if(typeof t=="string")return o(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,r):void 0}}function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function i(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,f(n.key),n)}}function O(t,r,e){return r&&i(t.prototype,r),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&c(t,r)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u(t)}function d(t,r){if(r&&(a(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}export{d as O,O as _,u as a,b,m as d,o as n,s as y};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as fr,cv as ke,ad as hr}from"./index-DJf52eor.js";import{o as mr}from"./resolveDefaultExport-Cy5TTESD-D1yDGtVx.js";var Ke={exports:{}},gr=Ke.exports,Zt;function vr(){return Zt||(Zt=1,(function(ta,jr){(function(We,je){ta.exports=je(fr)})(gr,We=>(()=>{var je={165(D,I,V){const L=V(877),x={};for(const l of Object.keys(L))x[L[l]]=l;const y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};D.exports=y;for(const l of Object.keys(y)){if(!("channels"in y[l]))throw new Error("missing channels property: "+l);if(!("labels"in y[l]))throw new Error("missing channel labels property: "+l);if(y[l].labels.length!==y[l].channels)throw new Error("channel and label counts mismatch: "+l);const{channels:b,labels:f}=y[l];delete y[l].channels,delete y[l].labels,Object.defineProperty(y[l],"channels",{value:b}),Object.defineProperty(y[l],"labels",{value:f})}function W(l,b){return(l[0]-b[0])**2+(l[1]-b[1])**2+(l[2]-b[2])**2}y.rgb.hsl=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.min(b,f,d),v=Math.max(b,f,d),s=v-o;let m,r;v===o?m=0:b===v?m=(f-d)/s:f===v?m=2+(d-b)/s:d===v&&(m=4+(b-f)/s),m=Math.min(60*m,360),m<0&&(m+=360);const h=(o+v)/2;return r=v===o?0:h<=.5?s/(v+o):s/(2-v-o),[m,100*r,100*h]},y.rgb.hsv=function(l){let b,f,d,o,v;const s=l[0]/255,m=l[1]/255,r=l[2]/255,h=Math.max(s,m,r),k=h-Math.min(s,m,r),S=function(P){return(h-P)/6/k+.5};return k===0?(o=0,v=0):(v=k/h,b=S(s),f=S(m),d=S(r),s===h?o=d-f:m===h?o=.3333333333333333+b-d:r===h&&(o=.6666666666666666+f-b),o<0?o+=1:o>1&&(o-=1)),[360*o,100*v,100*h]},y.rgb.hwb=function(l){const b=l[0],f=l[1];let d=l[2];const o=y.rgb.hsl(l)[0],v=1/255*Math.min(b,Math.min(f,d));return d=1-.00392156862745098*Math.max(b,Math.max(f,d)),[o,100*v,100*d]},y.rgb.cmyk=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.min(1-b,1-f,1-d);return[100*((1-b-o)/(1-o)||0),100*((1-f-o)/(1-o)||0),100*((1-d-o)/(1-o)||0),100*o]},y.rgb.keyword=function(l){const b=x[l];if(b)return b;let f,d=1/0;for(const o of Object.keys(L)){const v=W(l,L[o]);v<d&&(d=v,f=o)}return f},y.keyword.rgb=function(l){return L[l]},y.rgb.xyz=function(l){let b=l[0]/255,f=l[1]/255,d=l[2]/255;return b=b>.04045?((b+.055)/1.055)**2.4:b/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92,d=d>.04045?((d+.055)/1.055)**2.4:d/12.92,[100*(.4124*b+.3576*f+.1805*d),100*(.2126*b+.7152*f+.0722*d),100*(.0193*b+.1192*f+.9505*d)]},y.rgb.lab=function(l){const b=y.rgb.xyz(l);let f=b[0],d=b[1],o=b[2];return f/=95.047,d/=100,o/=108.883,f=f>.008856?f**.3333333333333333:7.787*f+.13793103448275862,d=d>.008856?d**.3333333333333333:7.787*d+.13793103448275862,o=o>.008856?o**.3333333333333333:7.787*o+.13793103448275862,[116*d-16,500*(f-d),200*(d-o)]},y.hsl.rgb=function(l){const b=l[0]/360,f=l[1]/100,d=l[2]/100;let o,v,s;if(f===0)return s=255*d,[s,s,s];o=d<.5?d*(1+f):d+f-d*f;const m=2*d-o,r=[0,0,0];for(let h=0;h<3;h++)v=b+.3333333333333333*-(h-1),v<0&&v++,v>1&&v--,s=6*v<1?m+6*(o-m)*v:2*v<1?o:3*v<2?m+(o-m)*(.6666666666666666-v)*6:m,r[h]=255*s;return r},y.hsl.hsv=function(l){const b=l[0];let f=l[1]/100,d=l[2]/100,o=f;const v=Math.max(d,.01);return d*=2,f*=d<=1?d:2-d,o*=v<=1?v:2-v,[b,100*(d===0?2*o/(v+o):2*f/(d+f)),100*((d+f)/2)]},y.hsv.rgb=function(l){const b=l[0]/60,f=l[1]/100;let d=l[2]/100;const o=Math.floor(b)%6,v=b-Math.floor(b),s=255*d*(1-f),m=255*d*(1-f*v),r=255*d*(1-f*(1-v));switch(d*=255,o){case 0:return[d,r,s];case 1:return[m,d,s];case 2:return[s,d,r];case 3:return[s,m,d];case 4:return[r,s,d];case 5:return[d,s,m]}},y.hsv.hsl=function(l){const b=l[0],f=l[1]/100,d=l[2]/100,o=Math.max(d,.01);let v,s;s=(2-f)*d;const m=(2-f)*o;return v=f*o,v/=m<=1?m:2-m,v=v||0,s/=2,[b,100*v,100*s]},y.hwb.rgb=function(l){const b=l[0]/360;let f=l[1]/100,d=l[2]/100;const o=f+d;let v;o>1&&(f/=o,d/=o);const s=Math.floor(6*b),m=1-d;v=6*b-s,1&s&&(v=1-v);const r=f+v*(m-f);let h,k,S;switch(s){default:case 6:case 0:h=m,k=r,S=f;break;case 1:h=r,k=m,S=f;break;case 2:h=f,k=m,S=r;break;case 3:h=f,k=r,S=m;break;case 4:h=r,k=f,S=m;break;case 5:h=m,k=f,S=r}return[255*h,255*k,255*S]},y.cmyk.rgb=function(l){const b=l[0]/100,f=l[1]/100,d=l[2]/100,o=l[3]/100;return[255*(1-Math.min(1,b*(1-o)+o)),255*(1-Math.min(1,f*(1-o)+o)),255*(1-Math.min(1,d*(1-o)+o))]},y.xyz.rgb=function(l){const b=l[0]/100,f=l[1]/100,d=l[2]/100;let o,v,s;return o=3.2406*b+-1.5372*f+-.4986*d,v=-.9689*b+1.8758*f+.0415*d,s=.0557*b+-.204*f+1.057*d,o=o>.0031308?1.055*o**.4166666666666667-.055:12.92*o,v=v>.0031308?1.055*v**.4166666666666667-.055:12.92*v,s=s>.0031308?1.055*s**.4166666666666667-.055:12.92*s,o=Math.min(Math.max(0,o),1),v=Math.min(Math.max(0,v),1),s=Math.min(Math.max(0,s),1),[255*o,255*v,255*s]},y.xyz.lab=function(l){let b=l[0],f=l[1],d=l[2];return b/=95.047,f/=100,d/=108.883,b=b>.008856?b**.3333333333333333:7.787*b+.13793103448275862,f=f>.008856?f**.3333333333333333:7.787*f+.13793103448275862,d=d>.008856?d**.3333333333333333:7.787*d+.13793103448275862,[116*f-16,500*(b-f),200*(f-d)]},y.lab.xyz=function(l){let b,f,d;f=(l[0]+16)/116,b=l[1]/500+f,d=f-l[2]/200;const o=f**3,v=b**3,s=d**3;return f=o>.008856?o:(f-.13793103448275862)/7.787,b=v>.008856?v:(b-.13793103448275862)/7.787,d=s>.008856?s:(d-.13793103448275862)/7.787,b*=95.047,f*=100,d*=108.883,[b,f,d]},y.lab.lch=function(l){const b=l[0],f=l[1],d=l[2];let o;return o=360*Math.atan2(d,f)/2/Math.PI,o<0&&(o+=360),[b,Math.sqrt(f*f+d*d),o]},y.lch.lab=function(l){const b=l[0],f=l[1],d=l[2]/360*2*Math.PI;return[b,f*Math.cos(d),f*Math.sin(d)]},y.rgb.ansi16=function(l,b=null){const[f,d,o]=l;let v=b===null?y.rgb.hsv(l)[2]:b;if(v=Math.round(v/50),v===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(d/255)<<1|Math.round(f/255));return v===2&&(s+=60),s},y.hsv.ansi16=function(l){return y.rgb.ansi16(y.hsv.rgb(l),l[2])},y.rgb.ansi256=function(l){const b=l[0],f=l[1],d=l[2];return b===f&&f===d?b<8?16:b>248?231:Math.round((b-8)/247*24)+232:16+36*Math.round(b/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},y.ansi16.rgb=function(l){let b=l%10;if(b===0||b===7)return l>50&&(b+=3.5),b=b/10.5*255,[b,b,b];const f=.5*(1+~~(l>50));return[(1&b)*f*255,(b>>1&1)*f*255,(b>>2&1)*f*255]},y.ansi256.rgb=function(l){if(l>=232){const f=10*(l-232)+8;return[f,f,f]}let b;return l-=16,[Math.floor(l/36)/5*255,Math.floor((b=l%36)/6)/5*255,b%6/5*255]},y.rgb.hex=function(l){const b=(((255&Math.round(l[0]))<<16)+((255&Math.round(l[1]))<<8)+(255&Math.round(l[2]))).toString(16).toUpperCase();return"000000".substring(b.length)+b},y.hex.rgb=function(l){const b=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!b)return[0,0,0];let f=b[0];b[0].length===3&&(f=f.split("").map(o=>o+o).join(""));const d=parseInt(f,16);return[d>>16&255,d>>8&255,255&d]},y.rgb.hcg=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.max(Math.max(b,f),d),v=Math.min(Math.min(b,f),d),s=o-v;let m,r;return m=s<1?v/(1-s):0,r=s<=0?0:o===b?(f-d)/s%6:o===f?2+(d-b)/s:4+(b-f)/s,r/=6,r%=1,[360*r,100*s,100*m]},y.hsl.hcg=function(l){const b=l[1]/100,f=l[2]/100,d=f<.5?2*b*f:2*b*(1-f);let o=0;return d<1&&(o=(f-.5*d)/(1-d)),[l[0],100*d,100*o]},y.hsv.hcg=function(l){const b=l[1]/100,f=l[2]/100,d=b*f;let o=0;return d<1&&(o=(f-d)/(1-d)),[l[0],100*d,100*o]},y.hcg.rgb=function(l){const b=l[0]/360,f=l[1]/100,d=l[2]/100;if(f===0)return[255*d,255*d,255*d];const o=[0,0,0],v=b%1*6,s=v%1,m=1-s;let r=0;switch(Math.floor(v)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=m,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=m,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=m}return r=(1-f)*d,[255*(f*o[0]+r),255*(f*o[1]+r),255*(f*o[2]+r)]},y.hcg.hsv=function(l){const b=l[1]/100,f=b+l[2]/100*(1-b);let d=0;return f>0&&(d=b/f),[l[0],100*d,100*f]},y.hcg.hsl=function(l){const b=l[1]/100,f=l[2]/100*(1-b)+.5*b;let d=0;return f>0&&f<.5?d=b/(2*f):f>=.5&&f<1&&(d=b/(2*(1-f))),[l[0],100*d,100*f]},y.hcg.hwb=function(l){const b=l[1]/100,f=b+l[2]/100*(1-b);return[l[0],100*(f-b),100*(1-f)]},y.hwb.hcg=function(l){const b=l[1]/100,f=1-l[2]/100,d=f-b;let o=0;return d<1&&(o=(f-d)/(1-d)),[l[0],100*d,100*o]},y.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},y.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},y.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},y.gray.hsl=function(l){return[0,0,l[0]]},y.gray.hsv=y.gray.hsl,y.gray.hwb=function(l){return[0,100,l[0]]},y.gray.cmyk=function(l){return[0,0,0,l[0]]},y.gray.lab=function(l){return[l[0],0,0]},y.gray.hex=function(l){const b=255&Math.round(l[0]/100*255),f=((b<<16)+(b<<8)+b).toString(16).toUpperCase();return"000000".substring(f.length)+f},y.rgb.gray=function(l){return[(l[0]+l[1]+l[2])/3/255*100]}},880(D,I,V){const L=V(165),x=V(985),y={};Object.keys(L).forEach(W=>{y[W]={},Object.defineProperty(y[W],"channels",{value:L[W].channels}),Object.defineProperty(y[W],"labels",{value:L[W].labels});const l=x(W);Object.keys(l).forEach(b=>{const f=l[b];y[W][b]=(function(d){const o=function(...v){const s=v[0];if(s==null)return s;s.length>1&&(v=s);const m=d(v);if(typeof m=="object")for(let r=m.length,h=0;h<r;h++)m[h]=Math.round(m[h]);return m};return"conversion"in d&&(o.conversion=d.conversion),o})(f),y[W][b].raw=(function(d){const o=function(...v){const s=v[0];return s==null?s:(s.length>1&&(v=s),d(v))};return"conversion"in d&&(o.conversion=d.conversion),o})(f)})}),D.exports=y},985(D,I,V){const L=V(165);function x(l){const b=(function(){const d={},o=Object.keys(L);for(let v=o.length,s=0;s<v;s++)d[o[s]]={distance:-1,parent:null};return d})(),f=[l];for(b[l].distance=0;f.length;){const d=f.pop(),o=Object.keys(L[d]);for(let v=o.length,s=0;s<v;s++){const m=o[s],r=b[m];r.distance===-1&&(r.distance=b[d].distance+1,r.parent=d,f.unshift(m))}}return b}function y(l,b){return function(f){return b(l(f))}}function W(l,b){const f=[b[l].parent,l];let d=L[b[l].parent][l],o=b[l].parent;for(;b[o].parent;)f.unshift(b[o].parent),d=y(L[b[o].parent][o],d),o=b[o].parent;return d.conversion=f,d}D.exports=function(l){const b=x(l),f={},d=Object.keys(b);for(let o=d.length,v=0;v<o;v++){const s=d[v];b[s].parent!==null&&(f[s]=W(s,b))}return f}},877(D){D.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138(D,I,V){var L=V(877),x=V(403),y=Object.hasOwnProperty,W=Object.create(null);for(var l in L)y.call(L,l)&&(W[L[l]]=l);var b=D.exports={to:{},get:{}};function f(o,v,s){return Math.min(Math.max(v,o),s)}function d(o){var v=Math.round(o).toString(16).toUpperCase();return v.length<2?"0"+v:v}b.get=function(o){var v,s;switch(o.substring(0,3).toLowerCase()){case"hsl":v=b.get.hsl(o),s="hsl";break;case"hwb":v=b.get.hwb(o),s="hwb";break;default:v=b.get.rgb(o),s="rgb"}return v?{model:s,value:v}:null},b.get.rgb=function(o){if(!o)return null;var v,s,m,r=[0,0,0,1];if(v=o.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(m=v[2],v=v[1],s=0;s<3;s++){var h=2*s;r[s]=parseInt(v.slice(h,h+2),16)}m&&(r[3]=parseInt(m,16)/255)}else if(v=o.match(/^#([a-f0-9]{3,4})$/i)){for(m=(v=v[1])[3],s=0;s<3;s++)r[s]=parseInt(v[s]+v[s],16);m&&(r[3]=parseInt(m+m,16)/255)}else if(v=o.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)r[s]=parseInt(v[s+1],0);v[4]&&(v[5]?r[3]=.01*parseFloat(v[4]):r[3]=parseFloat(v[4]))}else{if(!(v=o.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(v=o.match(/^(\w+)$/))?v[1]==="transparent"?[0,0,0,0]:y.call(L,v[1])?((r=L[v[1]])[3]=1,r):null:null;for(s=0;s<3;s++)r[s]=Math.round(2.55*parseFloat(v[s+1]));v[4]&&(v[5]?r[3]=.01*parseFloat(v[4]):r[3]=parseFloat(v[4]))}for(s=0;s<3;s++)r[s]=f(r[s],0,255);return r[3]=f(r[3],0,1),r},b.get.hsl=function(o){if(!o)return null;var v=o.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(v){var s=parseFloat(v[4]);return[(parseFloat(v[1])%360+360)%360,f(parseFloat(v[2]),0,100),f(parseFloat(v[3]),0,100),f(isNaN(s)?1:s,0,1)]}return null},b.get.hwb=function(o){if(!o)return null;var v=o.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(v){var s=parseFloat(v[4]);return[(parseFloat(v[1])%360+360)%360,f(parseFloat(v[2]),0,100),f(parseFloat(v[3]),0,100),f(isNaN(s)?1:s,0,1)]}return null},b.to.hex=function(){var o=x(arguments);return"#"+d(o[0])+d(o[1])+d(o[2])+(o[3]<1?d(Math.round(255*o[3])):"")},b.to.rgb=function(){var o=x(arguments);return o.length<4||o[3]===1?"rgb("+Math.round(o[0])+", "+Math.round(o[1])+", "+Math.round(o[2])+")":"rgba("+Math.round(o[0])+", "+Math.round(o[1])+", "+Math.round(o[2])+", "+o[3]+")"},b.to.rgb.percent=function(){var o=x(arguments),v=Math.round(o[0]/255*100),s=Math.round(o[1]/255*100),m=Math.round(o[2]/255*100);return o.length<4||o[3]===1?"rgb("+v+"%, "+s+"%, "+m+"%)":"rgba("+v+"%, "+s+"%, "+m+"%, "+o[3]+")"},b.to.hsl=function(){var o=x(arguments);return o.length<4||o[3]===1?"hsl("+o[0]+", "+o[1]+"%, "+o[2]+"%)":"hsla("+o[0]+", "+o[1]+"%, "+o[2]+"%, "+o[3]+")"},b.to.hwb=function(){var o=x(arguments),v="";return o.length>=4&&o[3]!==1&&(v=", "+o[3]),"hwb("+o[0]+", "+o[1]+"%, "+o[2]+"%"+v+")"},b.to.keyword=function(o){return W[o.slice(0,3)]}},742(D,I,V){const L=V(138),x=V(880),y=["keyword","gray","hex"],W={};for(const s of Object.keys(x))W[[...x[s].labels].sort().join("")]=s;const l={};function b(s,m){if(!(this instanceof b))return new b(s,m);if(m&&m in y&&(m=null),m&&!(m in x))throw new Error("Unknown model: "+m);let r,h;if(s==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(s instanceof b)this.model=s.model,this.color=[...s.color],this.valpha=s.valpha;else if(typeof s=="string"){const k=L.get(s);if(k===null)throw new Error("Unable to parse color from string: "+s);this.model=k.model,h=x[this.model].channels,this.color=k.value.slice(0,h),this.valpha=typeof k.value[h]=="number"?k.value[h]:1}else if(s.length>0){this.model=m||"rgb",h=x[this.model].channels;const k=Array.prototype.slice.call(s,0,h);this.color=v(k,h),this.valpha=typeof s[h]=="number"?s[h]:1}else if(typeof s=="number")this.model="rgb",this.color=[s>>16&255,s>>8&255,255&s],this.valpha=1;else{this.valpha=1;const k=Object.keys(s);"alpha"in s&&(k.splice(k.indexOf("alpha"),1),this.valpha=typeof s.alpha=="number"?s.alpha:0);const S=k.sort().join("");if(!(S in W))throw new Error("Unable to parse color from object: "+JSON.stringify(s));this.model=W[S];const{labels:P}=x[this.model],R=[];for(r=0;r<P.length;r++)R.push(s[P[r]]);this.color=v(R)}if(l[this.model])for(h=x[this.model].channels,r=0;r<h;r++){const k=l[this.model][r];k&&(this.color[r]=k(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}b.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(s){let m=this.model in L.to?this:this.rgb();m=m.round(typeof s=="number"?s:1);const r=m.valpha===1?m.color:[...m.color,this.valpha];return L.to[m.model](r)},percentString(s){const m=this.rgb().round(typeof s=="number"?s:1),r=m.valpha===1?m.color:[...m.color,this.valpha];return L.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const s={},{channels:m}=x[this.model],{labels:r}=x[this.model];for(let h=0;h<m;h++)s[r[h]]=this.color[h];return this.valpha!==1&&(s.alpha=this.valpha),s},unitArray(){const s=this.rgb().color;return s[0]/=255,s[1]/=255,s[2]/=255,this.valpha!==1&&s.push(this.valpha),s},unitObject(){const s=this.rgb().object();return s.r/=255,s.g/=255,s.b/=255,this.valpha!==1&&(s.alpha=this.valpha),s},round(s){return s=Math.max(s||0,0),new b([...this.color.map(f(s)),this.valpha],this.model)},alpha(s){return s!==void 0?new b([...this.color,Math.max(0,Math.min(1,s))],this.model):this.valpha},red:d("rgb",0,o(255)),green:d("rgb",1,o(255)),blue:d("rgb",2,o(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,s=>(s%360+360)%360),saturationl:d("hsl",1,o(100)),lightness:d("hsl",2,o(100)),saturationv:d("hsv",1,o(100)),value:d("hsv",2,o(100)),chroma:d("hcg",1,o(100)),gray:d("hcg",2,o(100)),white:d("hwb",1,o(100)),wblack:d("hwb",2,o(100)),cyan:d("cmyk",0,o(100)),magenta:d("cmyk",1,o(100)),yellow:d("cmyk",2,o(100)),black:d("cmyk",3,o(100)),x:d("xyz",0,o(95.047)),y:d("xyz",1,o(100)),z:d("xyz",2,o(108.833)),l:d("lab",0,o(100)),a:d("lab",1),b:d("lab",2),keyword(s){return s!==void 0?new b(s):x[this.model].keyword(this.color)},hex(s){return s!==void 0?new b(s):L.to.hex(this.rgb().round().color)},hexa(s){if(s!==void 0)return new b(s);const m=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return r.length===1&&(r="0"+r),L.to.hex(m)+r},rgbNumber(){const s=this.rgb().color;return(255&s[0])<<16|(255&s[1])<<8|255&s[2]},luminosity(){const s=this.rgb().color,m=[];for(const[r,h]of s.entries()){const k=h/255;m[r]=k<=.04045?k/12.92:((k+.055)/1.055)**2.4}return .2126*m[0]+.7152*m[1]+.0722*m[2]},contrast(s){const m=this.luminosity(),r=s.luminosity();return m>r?(m+.05)/(r+.05):(r+.05)/(m+.05)},level(s){const m=this.contrast(s);return m>=7?"AAA":m>=4.5?"AA":""},isDark(){const s=this.rgb().color;return(2126*s[0]+7152*s[1]+722*s[2])/1e4<128},isLight(){return!this.isDark()},negate(){const s=this.rgb();for(let m=0;m<3;m++)s.color[m]=255-s.color[m];return s},lighten(s){const m=this.hsl();return m.color[2]+=m.color[2]*s,m},darken(s){const m=this.hsl();return m.color[2]-=m.color[2]*s,m},saturate(s){const m=this.hsl();return m.color[1]+=m.color[1]*s,m},desaturate(s){const m=this.hsl();return m.color[1]-=m.color[1]*s,m},whiten(s){const m=this.hwb();return m.color[1]+=m.color[1]*s,m},blacken(s){const m=this.hwb();return m.color[2]+=m.color[2]*s,m},grayscale(){const s=this.rgb().color,m=.3*s[0]+.59*s[1]+.11*s[2];return b.rgb(m,m,m)},fade(s){return this.alpha(this.valpha-this.valpha*s)},opaquer(s){return this.alpha(this.valpha+this.valpha*s)},rotate(s){const m=this.hsl();let r=m.color[0];return r=(r+s)%360,r=r<0?360+r:r,m.color[0]=r,m},mix(s,m){if(!s||!s.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof s);const r=s.rgb(),h=this.rgb(),k=m===void 0?.5:m,S=2*k-1,P=r.alpha()-h.alpha(),R=((S*P===-1?S:(S+P)/(1+S*P))+1)/2,M=1-R;return b.rgb(R*r.red()+M*h.red(),R*r.green()+M*h.green(),R*r.blue()+M*h.blue(),r.alpha()*k+h.alpha()*(1-k))}};for(const s of Object.keys(x)){if(y.includes(s))continue;const{channels:m}=x[s];b.prototype[s]=function(...r){return this.model===s?new b(this):r.length>0?new b(r,s):new b([...(h=x[this.model][s].raw(this.color),Array.isArray(h)?h:[h]),this.valpha],s);var h},b[s]=function(...r){let h=r[0];return typeof h=="number"&&(h=v(r,m)),new b(h,s)}}function f(s){return function(m){return(function(r,h){return Number(r.toFixed(h))})(m,s)}}function d(s,m,r){s=Array.isArray(s)?s:[s];for(const h of s)(l[h]||(l[h]=[]))[m]=r;return s=s[0],function(h){let k;return h!==void 0?(r&&(h=r(h)),k=this[s](),k.color[m]=h,k):(k=this[s]().color[m],r&&(k=r(k)),k)}}function o(s){return function(m){return Math.max(0,Math.min(s,m))}}function v(s,m){for(let r=0;r<m;r++)typeof s[r]!="number"&&(s[r]=0);return s}D.exports=b},784(D){var I,V=typeof Reflect=="object"?Reflect:null,L=V&&typeof V.apply=="function"?V.apply:function(h,k,S){return Function.prototype.apply.call(h,k,S)};I=V&&typeof V.ownKeys=="function"?V.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var x=Number.isNaN||function(h){return h!=h};function y(){y.init.call(this)}D.exports=y,D.exports.once=function(h,k){return new Promise(function(S,P){function R(q){h.removeListener(k,M),P(q)}function M(){typeof h.removeListener=="function"&&h.removeListener("error",R),S([].slice.call(arguments))}r(h,k,M,{once:!0}),k!=="error"&&(function(q,U,H){typeof q.on=="function"&&r(q,"error",U,H)})(h,R,{once:!0})})},y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var W=10;function l(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function b(h){return h._maxListeners===void 0?y.defaultMaxListeners:h._maxListeners}function f(h,k,S,P){var R,M,q,U;if(l(S),(M=h._events)===void 0?(M=h._events=Object.create(null),h._eventsCount=0):(M.newListener!==void 0&&(h.emit("newListener",k,S.listener?S.listener:S),M=h._events),q=M[k]),q===void 0)q=M[k]=S,++h._eventsCount;else if(typeof q=="function"?q=M[k]=P?[S,q]:[q,S]:P?q.unshift(S):q.push(S),(R=b(h))>0&&q.length>R&&!q.warned){q.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=h,H.type=k,H.count=q.length,U=H,console&&console.warn&&console.warn(U)}return h}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(h,k,S){var P={fired:!1,wrapFn:void 0,target:h,type:k,listener:S},R=d.bind(P);return R.listener=S,P.wrapFn=R,R}function v(h,k,S){var P=h._events;if(P===void 0)return[];var R=P[k];return R===void 0?[]:typeof R=="function"?S?[R.listener||R]:[R]:S?(function(M){for(var q=new Array(M.length),U=0;U<q.length;++U)q[U]=M[U].listener||M[U];return q})(R):m(R,R.length)}function s(h){var k=this._events;if(k!==void 0){var S=k[h];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function m(h,k){for(var S=new Array(k),P=0;P<k;++P)S[P]=h[P];return S}function r(h,k,S,P){if(typeof h.on=="function")P.once?h.once(k,S):h.on(k,S);else{if(typeof h.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof h);h.addEventListener(k,function R(M){P.once&&h.removeEventListener(k,R),S(M)})}}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return W},set:function(h){if(typeof h!="number"||h<0||x(h))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+h+".");W=h}}),y.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||x(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this},y.prototype.getMaxListeners=function(){return b(this)},y.prototype.emit=function(h){for(var k=[],S=1;S<arguments.length;S++)k.push(arguments[S]);var P=h==="error",R=this._events;if(R!==void 0)P=P&&R.error===void 0;else if(!P)return!1;if(P){var M;if(k.length>0&&(M=k[0]),M instanceof Error)throw M;var q=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw q.context=M,q}var U=R[h];if(U===void 0)return!1;if(typeof U=="function")L(U,this,k);else{var H=U.length,$=m(U,H);for(S=0;S<H;++S)L($[S],this,k)}return!0},y.prototype.addListener=function(h,k){return f(this,h,k,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(h,k){return f(this,h,k,!0)},y.prototype.once=function(h,k){return l(k),this.on(h,o(this,h,k)),this},y.prototype.prependOnceListener=function(h,k){return l(k),this.prependListener(h,o(this,h,k)),this},y.prototype.removeListener=function(h,k){var S,P,R,M,q;if(l(k),(P=this._events)===void 0)return this;if((S=P[h])===void 0)return this;if(S===k||S.listener===k)--this._eventsCount===0?this._events=Object.create(null):(delete P[h],P.removeListener&&this.emit("removeListener",h,S.listener||k));else if(typeof S!="function"){for(R=-1,M=S.length-1;M>=0;M--)if(S[M]===k||S[M].listener===k){q=S[M].listener,R=M;break}if(R<0)return this;R===0?S.shift():(function(U,H){for(;H+1<U.length;H++)U[H]=U[H+1];U.pop()})(S,R),S.length===1&&(P[h]=S[0]),P.removeListener!==void 0&&this.emit("removeListener",h,q||k)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(h){var k,S,P;if((S=this._events)===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[h]),this;if(arguments.length===0){var R,M=Object.keys(S);for(P=0;P<M.length;++P)(R=M[P])!=="removeListener"&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(k=S[h])=="function")this.removeListener(h,k);else if(k!==void 0)for(P=k.length-1;P>=0;P--)this.removeListener(h,k[P]);return this},y.prototype.listeners=function(h){return v(this,h,!0)},y.prototype.rawListeners=function(h){return v(this,h,!1)},y.listenerCount=function(h,k){return typeof h.listenerCount=="function"?h.listenerCount(k):s.call(h,k)},y.prototype.listenerCount=s,y.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]}},94(D){D.exports=function(I){return!(!I||typeof I=="string")&&(I instanceof Array||Array.isArray(I)||I.length>=0&&(I.splice instanceof Function||Object.getOwnPropertyDescriptor(I,I.length-1)&&I.constructor.name!=="String"))}},403(D,I,V){var L=V(94),x=Array.prototype.concat,y=Array.prototype.slice,W=D.exports=function(l){for(var b=[],f=0,d=l.length;f<d;f++){var o=l[f];L(o)?b=x.call(b,y.call(o)):b.push(o)}return b};W.wrap=function(l){return function(){return l(W(arguments))}}},119(D){D.exports=We}},Ue={};function J(D){var I=Ue[D];if(I!==void 0)return I.exports;var V=Ue[D]={exports:{}};return je[D](V,V.exports,J),V.exports}J.n=D=>{var I=D&&D.__esModule?()=>D.default:()=>D;return J.d(I,{a:I}),I},J.d=(D,I)=>{for(var V in I)J.o(I,V)&&!J.o(D,V)&&Object.defineProperty(D,V,{enumerable:!0,get:I[V]})},J.o=(D,I)=>Object.prototype.hasOwnProperty.call(D,I),J.r=D=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})};var we={};return(()=>{function D(t){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(t)}function I(t){var e=(function(a,n){if(D(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,n);if(D(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)})(t,"string");return D(e)=="symbol"?e:e+""}function V(t,e,a){return(e=I(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function L(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,n)}return a}function x(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?L(Object(a),!0).forEach(function(n){V(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):L(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function l(t,e,a){return e&&W(t.prototype,e),a&&W(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(t)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!t})()}function d(t,e){if(e&&(D(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(t)}function o(t,e,a){return e=b(e),d(t,f()?Reflect.construct(e,a||[],b(t).constructor):e.apply(t,a))}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},v(t,e)}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}J.r(we),J.d(we,{default:()=>dr});var m=J(119),r=J.n(m);function h(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function k(t){this.setState((function(e){var a=this.constructor.getDerivedStateFromProps(t,e);return a??null}).bind(this))}function S(t,e){try{var a=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,n)}finally{this.props=a,this.state=n}}function P(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var a=null,n=null,i=null;if(typeof e.componentWillMount=="function"?a="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||n!==null||i!==null){var u=t.displayName||t.name,p=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
1
|
+
import{Q as fr,cv as ke,ad as hr}from"./index-CHE20_1-.js";import{o as mr}from"./resolveDefaultExport-Cy5TTESD-D1yDGtVx.js";var Ke={exports:{}},gr=Ke.exports,Zt;function vr(){return Zt||(Zt=1,(function(ta,jr){(function(We,je){ta.exports=je(fr)})(gr,We=>(()=>{var je={165(D,I,V){const L=V(877),x={};for(const l of Object.keys(L))x[L[l]]=l;const y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};D.exports=y;for(const l of Object.keys(y)){if(!("channels"in y[l]))throw new Error("missing channels property: "+l);if(!("labels"in y[l]))throw new Error("missing channel labels property: "+l);if(y[l].labels.length!==y[l].channels)throw new Error("channel and label counts mismatch: "+l);const{channels:b,labels:f}=y[l];delete y[l].channels,delete y[l].labels,Object.defineProperty(y[l],"channels",{value:b}),Object.defineProperty(y[l],"labels",{value:f})}function W(l,b){return(l[0]-b[0])**2+(l[1]-b[1])**2+(l[2]-b[2])**2}y.rgb.hsl=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.min(b,f,d),v=Math.max(b,f,d),s=v-o;let m,r;v===o?m=0:b===v?m=(f-d)/s:f===v?m=2+(d-b)/s:d===v&&(m=4+(b-f)/s),m=Math.min(60*m,360),m<0&&(m+=360);const h=(o+v)/2;return r=v===o?0:h<=.5?s/(v+o):s/(2-v-o),[m,100*r,100*h]},y.rgb.hsv=function(l){let b,f,d,o,v;const s=l[0]/255,m=l[1]/255,r=l[2]/255,h=Math.max(s,m,r),k=h-Math.min(s,m,r),S=function(P){return(h-P)/6/k+.5};return k===0?(o=0,v=0):(v=k/h,b=S(s),f=S(m),d=S(r),s===h?o=d-f:m===h?o=.3333333333333333+b-d:r===h&&(o=.6666666666666666+f-b),o<0?o+=1:o>1&&(o-=1)),[360*o,100*v,100*h]},y.rgb.hwb=function(l){const b=l[0],f=l[1];let d=l[2];const o=y.rgb.hsl(l)[0],v=1/255*Math.min(b,Math.min(f,d));return d=1-.00392156862745098*Math.max(b,Math.max(f,d)),[o,100*v,100*d]},y.rgb.cmyk=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.min(1-b,1-f,1-d);return[100*((1-b-o)/(1-o)||0),100*((1-f-o)/(1-o)||0),100*((1-d-o)/(1-o)||0),100*o]},y.rgb.keyword=function(l){const b=x[l];if(b)return b;let f,d=1/0;for(const o of Object.keys(L)){const v=W(l,L[o]);v<d&&(d=v,f=o)}return f},y.keyword.rgb=function(l){return L[l]},y.rgb.xyz=function(l){let b=l[0]/255,f=l[1]/255,d=l[2]/255;return b=b>.04045?((b+.055)/1.055)**2.4:b/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92,d=d>.04045?((d+.055)/1.055)**2.4:d/12.92,[100*(.4124*b+.3576*f+.1805*d),100*(.2126*b+.7152*f+.0722*d),100*(.0193*b+.1192*f+.9505*d)]},y.rgb.lab=function(l){const b=y.rgb.xyz(l);let f=b[0],d=b[1],o=b[2];return f/=95.047,d/=100,o/=108.883,f=f>.008856?f**.3333333333333333:7.787*f+.13793103448275862,d=d>.008856?d**.3333333333333333:7.787*d+.13793103448275862,o=o>.008856?o**.3333333333333333:7.787*o+.13793103448275862,[116*d-16,500*(f-d),200*(d-o)]},y.hsl.rgb=function(l){const b=l[0]/360,f=l[1]/100,d=l[2]/100;let o,v,s;if(f===0)return s=255*d,[s,s,s];o=d<.5?d*(1+f):d+f-d*f;const m=2*d-o,r=[0,0,0];for(let h=0;h<3;h++)v=b+.3333333333333333*-(h-1),v<0&&v++,v>1&&v--,s=6*v<1?m+6*(o-m)*v:2*v<1?o:3*v<2?m+(o-m)*(.6666666666666666-v)*6:m,r[h]=255*s;return r},y.hsl.hsv=function(l){const b=l[0];let f=l[1]/100,d=l[2]/100,o=f;const v=Math.max(d,.01);return d*=2,f*=d<=1?d:2-d,o*=v<=1?v:2-v,[b,100*(d===0?2*o/(v+o):2*f/(d+f)),100*((d+f)/2)]},y.hsv.rgb=function(l){const b=l[0]/60,f=l[1]/100;let d=l[2]/100;const o=Math.floor(b)%6,v=b-Math.floor(b),s=255*d*(1-f),m=255*d*(1-f*v),r=255*d*(1-f*(1-v));switch(d*=255,o){case 0:return[d,r,s];case 1:return[m,d,s];case 2:return[s,d,r];case 3:return[s,m,d];case 4:return[r,s,d];case 5:return[d,s,m]}},y.hsv.hsl=function(l){const b=l[0],f=l[1]/100,d=l[2]/100,o=Math.max(d,.01);let v,s;s=(2-f)*d;const m=(2-f)*o;return v=f*o,v/=m<=1?m:2-m,v=v||0,s/=2,[b,100*v,100*s]},y.hwb.rgb=function(l){const b=l[0]/360;let f=l[1]/100,d=l[2]/100;const o=f+d;let v;o>1&&(f/=o,d/=o);const s=Math.floor(6*b),m=1-d;v=6*b-s,1&s&&(v=1-v);const r=f+v*(m-f);let h,k,S;switch(s){default:case 6:case 0:h=m,k=r,S=f;break;case 1:h=r,k=m,S=f;break;case 2:h=f,k=m,S=r;break;case 3:h=f,k=r,S=m;break;case 4:h=r,k=f,S=m;break;case 5:h=m,k=f,S=r}return[255*h,255*k,255*S]},y.cmyk.rgb=function(l){const b=l[0]/100,f=l[1]/100,d=l[2]/100,o=l[3]/100;return[255*(1-Math.min(1,b*(1-o)+o)),255*(1-Math.min(1,f*(1-o)+o)),255*(1-Math.min(1,d*(1-o)+o))]},y.xyz.rgb=function(l){const b=l[0]/100,f=l[1]/100,d=l[2]/100;let o,v,s;return o=3.2406*b+-1.5372*f+-.4986*d,v=-.9689*b+1.8758*f+.0415*d,s=.0557*b+-.204*f+1.057*d,o=o>.0031308?1.055*o**.4166666666666667-.055:12.92*o,v=v>.0031308?1.055*v**.4166666666666667-.055:12.92*v,s=s>.0031308?1.055*s**.4166666666666667-.055:12.92*s,o=Math.min(Math.max(0,o),1),v=Math.min(Math.max(0,v),1),s=Math.min(Math.max(0,s),1),[255*o,255*v,255*s]},y.xyz.lab=function(l){let b=l[0],f=l[1],d=l[2];return b/=95.047,f/=100,d/=108.883,b=b>.008856?b**.3333333333333333:7.787*b+.13793103448275862,f=f>.008856?f**.3333333333333333:7.787*f+.13793103448275862,d=d>.008856?d**.3333333333333333:7.787*d+.13793103448275862,[116*f-16,500*(b-f),200*(f-d)]},y.lab.xyz=function(l){let b,f,d;f=(l[0]+16)/116,b=l[1]/500+f,d=f-l[2]/200;const o=f**3,v=b**3,s=d**3;return f=o>.008856?o:(f-.13793103448275862)/7.787,b=v>.008856?v:(b-.13793103448275862)/7.787,d=s>.008856?s:(d-.13793103448275862)/7.787,b*=95.047,f*=100,d*=108.883,[b,f,d]},y.lab.lch=function(l){const b=l[0],f=l[1],d=l[2];let o;return o=360*Math.atan2(d,f)/2/Math.PI,o<0&&(o+=360),[b,Math.sqrt(f*f+d*d),o]},y.lch.lab=function(l){const b=l[0],f=l[1],d=l[2]/360*2*Math.PI;return[b,f*Math.cos(d),f*Math.sin(d)]},y.rgb.ansi16=function(l,b=null){const[f,d,o]=l;let v=b===null?y.rgb.hsv(l)[2]:b;if(v=Math.round(v/50),v===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(d/255)<<1|Math.round(f/255));return v===2&&(s+=60),s},y.hsv.ansi16=function(l){return y.rgb.ansi16(y.hsv.rgb(l),l[2])},y.rgb.ansi256=function(l){const b=l[0],f=l[1],d=l[2];return b===f&&f===d?b<8?16:b>248?231:Math.round((b-8)/247*24)+232:16+36*Math.round(b/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},y.ansi16.rgb=function(l){let b=l%10;if(b===0||b===7)return l>50&&(b+=3.5),b=b/10.5*255,[b,b,b];const f=.5*(1+~~(l>50));return[(1&b)*f*255,(b>>1&1)*f*255,(b>>2&1)*f*255]},y.ansi256.rgb=function(l){if(l>=232){const f=10*(l-232)+8;return[f,f,f]}let b;return l-=16,[Math.floor(l/36)/5*255,Math.floor((b=l%36)/6)/5*255,b%6/5*255]},y.rgb.hex=function(l){const b=(((255&Math.round(l[0]))<<16)+((255&Math.round(l[1]))<<8)+(255&Math.round(l[2]))).toString(16).toUpperCase();return"000000".substring(b.length)+b},y.hex.rgb=function(l){const b=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!b)return[0,0,0];let f=b[0];b[0].length===3&&(f=f.split("").map(o=>o+o).join(""));const d=parseInt(f,16);return[d>>16&255,d>>8&255,255&d]},y.rgb.hcg=function(l){const b=l[0]/255,f=l[1]/255,d=l[2]/255,o=Math.max(Math.max(b,f),d),v=Math.min(Math.min(b,f),d),s=o-v;let m,r;return m=s<1?v/(1-s):0,r=s<=0?0:o===b?(f-d)/s%6:o===f?2+(d-b)/s:4+(b-f)/s,r/=6,r%=1,[360*r,100*s,100*m]},y.hsl.hcg=function(l){const b=l[1]/100,f=l[2]/100,d=f<.5?2*b*f:2*b*(1-f);let o=0;return d<1&&(o=(f-.5*d)/(1-d)),[l[0],100*d,100*o]},y.hsv.hcg=function(l){const b=l[1]/100,f=l[2]/100,d=b*f;let o=0;return d<1&&(o=(f-d)/(1-d)),[l[0],100*d,100*o]},y.hcg.rgb=function(l){const b=l[0]/360,f=l[1]/100,d=l[2]/100;if(f===0)return[255*d,255*d,255*d];const o=[0,0,0],v=b%1*6,s=v%1,m=1-s;let r=0;switch(Math.floor(v)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=m,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=m,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=m}return r=(1-f)*d,[255*(f*o[0]+r),255*(f*o[1]+r),255*(f*o[2]+r)]},y.hcg.hsv=function(l){const b=l[1]/100,f=b+l[2]/100*(1-b);let d=0;return f>0&&(d=b/f),[l[0],100*d,100*f]},y.hcg.hsl=function(l){const b=l[1]/100,f=l[2]/100*(1-b)+.5*b;let d=0;return f>0&&f<.5?d=b/(2*f):f>=.5&&f<1&&(d=b/(2*(1-f))),[l[0],100*d,100*f]},y.hcg.hwb=function(l){const b=l[1]/100,f=b+l[2]/100*(1-b);return[l[0],100*(f-b),100*(1-f)]},y.hwb.hcg=function(l){const b=l[1]/100,f=1-l[2]/100,d=f-b;let o=0;return d<1&&(o=(f-d)/(1-d)),[l[0],100*d,100*o]},y.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},y.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},y.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},y.gray.hsl=function(l){return[0,0,l[0]]},y.gray.hsv=y.gray.hsl,y.gray.hwb=function(l){return[0,100,l[0]]},y.gray.cmyk=function(l){return[0,0,0,l[0]]},y.gray.lab=function(l){return[l[0],0,0]},y.gray.hex=function(l){const b=255&Math.round(l[0]/100*255),f=((b<<16)+(b<<8)+b).toString(16).toUpperCase();return"000000".substring(f.length)+f},y.rgb.gray=function(l){return[(l[0]+l[1]+l[2])/3/255*100]}},880(D,I,V){const L=V(165),x=V(985),y={};Object.keys(L).forEach(W=>{y[W]={},Object.defineProperty(y[W],"channels",{value:L[W].channels}),Object.defineProperty(y[W],"labels",{value:L[W].labels});const l=x(W);Object.keys(l).forEach(b=>{const f=l[b];y[W][b]=(function(d){const o=function(...v){const s=v[0];if(s==null)return s;s.length>1&&(v=s);const m=d(v);if(typeof m=="object")for(let r=m.length,h=0;h<r;h++)m[h]=Math.round(m[h]);return m};return"conversion"in d&&(o.conversion=d.conversion),o})(f),y[W][b].raw=(function(d){const o=function(...v){const s=v[0];return s==null?s:(s.length>1&&(v=s),d(v))};return"conversion"in d&&(o.conversion=d.conversion),o})(f)})}),D.exports=y},985(D,I,V){const L=V(165);function x(l){const b=(function(){const d={},o=Object.keys(L);for(let v=o.length,s=0;s<v;s++)d[o[s]]={distance:-1,parent:null};return d})(),f=[l];for(b[l].distance=0;f.length;){const d=f.pop(),o=Object.keys(L[d]);for(let v=o.length,s=0;s<v;s++){const m=o[s],r=b[m];r.distance===-1&&(r.distance=b[d].distance+1,r.parent=d,f.unshift(m))}}return b}function y(l,b){return function(f){return b(l(f))}}function W(l,b){const f=[b[l].parent,l];let d=L[b[l].parent][l],o=b[l].parent;for(;b[o].parent;)f.unshift(b[o].parent),d=y(L[b[o].parent][o],d),o=b[o].parent;return d.conversion=f,d}D.exports=function(l){const b=x(l),f={},d=Object.keys(b);for(let o=d.length,v=0;v<o;v++){const s=d[v];b[s].parent!==null&&(f[s]=W(s,b))}return f}},877(D){D.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138(D,I,V){var L=V(877),x=V(403),y=Object.hasOwnProperty,W=Object.create(null);for(var l in L)y.call(L,l)&&(W[L[l]]=l);var b=D.exports={to:{},get:{}};function f(o,v,s){return Math.min(Math.max(v,o),s)}function d(o){var v=Math.round(o).toString(16).toUpperCase();return v.length<2?"0"+v:v}b.get=function(o){var v,s;switch(o.substring(0,3).toLowerCase()){case"hsl":v=b.get.hsl(o),s="hsl";break;case"hwb":v=b.get.hwb(o),s="hwb";break;default:v=b.get.rgb(o),s="rgb"}return v?{model:s,value:v}:null},b.get.rgb=function(o){if(!o)return null;var v,s,m,r=[0,0,0,1];if(v=o.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(m=v[2],v=v[1],s=0;s<3;s++){var h=2*s;r[s]=parseInt(v.slice(h,h+2),16)}m&&(r[3]=parseInt(m,16)/255)}else if(v=o.match(/^#([a-f0-9]{3,4})$/i)){for(m=(v=v[1])[3],s=0;s<3;s++)r[s]=parseInt(v[s]+v[s],16);m&&(r[3]=parseInt(m+m,16)/255)}else if(v=o.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)r[s]=parseInt(v[s+1],0);v[4]&&(v[5]?r[3]=.01*parseFloat(v[4]):r[3]=parseFloat(v[4]))}else{if(!(v=o.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(v=o.match(/^(\w+)$/))?v[1]==="transparent"?[0,0,0,0]:y.call(L,v[1])?((r=L[v[1]])[3]=1,r):null:null;for(s=0;s<3;s++)r[s]=Math.round(2.55*parseFloat(v[s+1]));v[4]&&(v[5]?r[3]=.01*parseFloat(v[4]):r[3]=parseFloat(v[4]))}for(s=0;s<3;s++)r[s]=f(r[s],0,255);return r[3]=f(r[3],0,1),r},b.get.hsl=function(o){if(!o)return null;var v=o.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(v){var s=parseFloat(v[4]);return[(parseFloat(v[1])%360+360)%360,f(parseFloat(v[2]),0,100),f(parseFloat(v[3]),0,100),f(isNaN(s)?1:s,0,1)]}return null},b.get.hwb=function(o){if(!o)return null;var v=o.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(v){var s=parseFloat(v[4]);return[(parseFloat(v[1])%360+360)%360,f(parseFloat(v[2]),0,100),f(parseFloat(v[3]),0,100),f(isNaN(s)?1:s,0,1)]}return null},b.to.hex=function(){var o=x(arguments);return"#"+d(o[0])+d(o[1])+d(o[2])+(o[3]<1?d(Math.round(255*o[3])):"")},b.to.rgb=function(){var o=x(arguments);return o.length<4||o[3]===1?"rgb("+Math.round(o[0])+", "+Math.round(o[1])+", "+Math.round(o[2])+")":"rgba("+Math.round(o[0])+", "+Math.round(o[1])+", "+Math.round(o[2])+", "+o[3]+")"},b.to.rgb.percent=function(){var o=x(arguments),v=Math.round(o[0]/255*100),s=Math.round(o[1]/255*100),m=Math.round(o[2]/255*100);return o.length<4||o[3]===1?"rgb("+v+"%, "+s+"%, "+m+"%)":"rgba("+v+"%, "+s+"%, "+m+"%, "+o[3]+")"},b.to.hsl=function(){var o=x(arguments);return o.length<4||o[3]===1?"hsl("+o[0]+", "+o[1]+"%, "+o[2]+"%)":"hsla("+o[0]+", "+o[1]+"%, "+o[2]+"%, "+o[3]+")"},b.to.hwb=function(){var o=x(arguments),v="";return o.length>=4&&o[3]!==1&&(v=", "+o[3]),"hwb("+o[0]+", "+o[1]+"%, "+o[2]+"%"+v+")"},b.to.keyword=function(o){return W[o.slice(0,3)]}},742(D,I,V){const L=V(138),x=V(880),y=["keyword","gray","hex"],W={};for(const s of Object.keys(x))W[[...x[s].labels].sort().join("")]=s;const l={};function b(s,m){if(!(this instanceof b))return new b(s,m);if(m&&m in y&&(m=null),m&&!(m in x))throw new Error("Unknown model: "+m);let r,h;if(s==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(s instanceof b)this.model=s.model,this.color=[...s.color],this.valpha=s.valpha;else if(typeof s=="string"){const k=L.get(s);if(k===null)throw new Error("Unable to parse color from string: "+s);this.model=k.model,h=x[this.model].channels,this.color=k.value.slice(0,h),this.valpha=typeof k.value[h]=="number"?k.value[h]:1}else if(s.length>0){this.model=m||"rgb",h=x[this.model].channels;const k=Array.prototype.slice.call(s,0,h);this.color=v(k,h),this.valpha=typeof s[h]=="number"?s[h]:1}else if(typeof s=="number")this.model="rgb",this.color=[s>>16&255,s>>8&255,255&s],this.valpha=1;else{this.valpha=1;const k=Object.keys(s);"alpha"in s&&(k.splice(k.indexOf("alpha"),1),this.valpha=typeof s.alpha=="number"?s.alpha:0);const S=k.sort().join("");if(!(S in W))throw new Error("Unable to parse color from object: "+JSON.stringify(s));this.model=W[S];const{labels:P}=x[this.model],R=[];for(r=0;r<P.length;r++)R.push(s[P[r]]);this.color=v(R)}if(l[this.model])for(h=x[this.model].channels,r=0;r<h;r++){const k=l[this.model][r];k&&(this.color[r]=k(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}b.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(s){let m=this.model in L.to?this:this.rgb();m=m.round(typeof s=="number"?s:1);const r=m.valpha===1?m.color:[...m.color,this.valpha];return L.to[m.model](r)},percentString(s){const m=this.rgb().round(typeof s=="number"?s:1),r=m.valpha===1?m.color:[...m.color,this.valpha];return L.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const s={},{channels:m}=x[this.model],{labels:r}=x[this.model];for(let h=0;h<m;h++)s[r[h]]=this.color[h];return this.valpha!==1&&(s.alpha=this.valpha),s},unitArray(){const s=this.rgb().color;return s[0]/=255,s[1]/=255,s[2]/=255,this.valpha!==1&&s.push(this.valpha),s},unitObject(){const s=this.rgb().object();return s.r/=255,s.g/=255,s.b/=255,this.valpha!==1&&(s.alpha=this.valpha),s},round(s){return s=Math.max(s||0,0),new b([...this.color.map(f(s)),this.valpha],this.model)},alpha(s){return s!==void 0?new b([...this.color,Math.max(0,Math.min(1,s))],this.model):this.valpha},red:d("rgb",0,o(255)),green:d("rgb",1,o(255)),blue:d("rgb",2,o(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,s=>(s%360+360)%360),saturationl:d("hsl",1,o(100)),lightness:d("hsl",2,o(100)),saturationv:d("hsv",1,o(100)),value:d("hsv",2,o(100)),chroma:d("hcg",1,o(100)),gray:d("hcg",2,o(100)),white:d("hwb",1,o(100)),wblack:d("hwb",2,o(100)),cyan:d("cmyk",0,o(100)),magenta:d("cmyk",1,o(100)),yellow:d("cmyk",2,o(100)),black:d("cmyk",3,o(100)),x:d("xyz",0,o(95.047)),y:d("xyz",1,o(100)),z:d("xyz",2,o(108.833)),l:d("lab",0,o(100)),a:d("lab",1),b:d("lab",2),keyword(s){return s!==void 0?new b(s):x[this.model].keyword(this.color)},hex(s){return s!==void 0?new b(s):L.to.hex(this.rgb().round().color)},hexa(s){if(s!==void 0)return new b(s);const m=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return r.length===1&&(r="0"+r),L.to.hex(m)+r},rgbNumber(){const s=this.rgb().color;return(255&s[0])<<16|(255&s[1])<<8|255&s[2]},luminosity(){const s=this.rgb().color,m=[];for(const[r,h]of s.entries()){const k=h/255;m[r]=k<=.04045?k/12.92:((k+.055)/1.055)**2.4}return .2126*m[0]+.7152*m[1]+.0722*m[2]},contrast(s){const m=this.luminosity(),r=s.luminosity();return m>r?(m+.05)/(r+.05):(r+.05)/(m+.05)},level(s){const m=this.contrast(s);return m>=7?"AAA":m>=4.5?"AA":""},isDark(){const s=this.rgb().color;return(2126*s[0]+7152*s[1]+722*s[2])/1e4<128},isLight(){return!this.isDark()},negate(){const s=this.rgb();for(let m=0;m<3;m++)s.color[m]=255-s.color[m];return s},lighten(s){const m=this.hsl();return m.color[2]+=m.color[2]*s,m},darken(s){const m=this.hsl();return m.color[2]-=m.color[2]*s,m},saturate(s){const m=this.hsl();return m.color[1]+=m.color[1]*s,m},desaturate(s){const m=this.hsl();return m.color[1]-=m.color[1]*s,m},whiten(s){const m=this.hwb();return m.color[1]+=m.color[1]*s,m},blacken(s){const m=this.hwb();return m.color[2]+=m.color[2]*s,m},grayscale(){const s=this.rgb().color,m=.3*s[0]+.59*s[1]+.11*s[2];return b.rgb(m,m,m)},fade(s){return this.alpha(this.valpha-this.valpha*s)},opaquer(s){return this.alpha(this.valpha+this.valpha*s)},rotate(s){const m=this.hsl();let r=m.color[0];return r=(r+s)%360,r=r<0?360+r:r,m.color[0]=r,m},mix(s,m){if(!s||!s.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof s);const r=s.rgb(),h=this.rgb(),k=m===void 0?.5:m,S=2*k-1,P=r.alpha()-h.alpha(),R=((S*P===-1?S:(S+P)/(1+S*P))+1)/2,M=1-R;return b.rgb(R*r.red()+M*h.red(),R*r.green()+M*h.green(),R*r.blue()+M*h.blue(),r.alpha()*k+h.alpha()*(1-k))}};for(const s of Object.keys(x)){if(y.includes(s))continue;const{channels:m}=x[s];b.prototype[s]=function(...r){return this.model===s?new b(this):r.length>0?new b(r,s):new b([...(h=x[this.model][s].raw(this.color),Array.isArray(h)?h:[h]),this.valpha],s);var h},b[s]=function(...r){let h=r[0];return typeof h=="number"&&(h=v(r,m)),new b(h,s)}}function f(s){return function(m){return(function(r,h){return Number(r.toFixed(h))})(m,s)}}function d(s,m,r){s=Array.isArray(s)?s:[s];for(const h of s)(l[h]||(l[h]=[]))[m]=r;return s=s[0],function(h){let k;return h!==void 0?(r&&(h=r(h)),k=this[s](),k.color[m]=h,k):(k=this[s]().color[m],r&&(k=r(k)),k)}}function o(s){return function(m){return Math.max(0,Math.min(s,m))}}function v(s,m){for(let r=0;r<m;r++)typeof s[r]!="number"&&(s[r]=0);return s}D.exports=b},784(D){var I,V=typeof Reflect=="object"?Reflect:null,L=V&&typeof V.apply=="function"?V.apply:function(h,k,S){return Function.prototype.apply.call(h,k,S)};I=V&&typeof V.ownKeys=="function"?V.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var x=Number.isNaN||function(h){return h!=h};function y(){y.init.call(this)}D.exports=y,D.exports.once=function(h,k){return new Promise(function(S,P){function R(q){h.removeListener(k,M),P(q)}function M(){typeof h.removeListener=="function"&&h.removeListener("error",R),S([].slice.call(arguments))}r(h,k,M,{once:!0}),k!=="error"&&(function(q,U,H){typeof q.on=="function"&&r(q,"error",U,H)})(h,R,{once:!0})})},y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var W=10;function l(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function b(h){return h._maxListeners===void 0?y.defaultMaxListeners:h._maxListeners}function f(h,k,S,P){var R,M,q,U;if(l(S),(M=h._events)===void 0?(M=h._events=Object.create(null),h._eventsCount=0):(M.newListener!==void 0&&(h.emit("newListener",k,S.listener?S.listener:S),M=h._events),q=M[k]),q===void 0)q=M[k]=S,++h._eventsCount;else if(typeof q=="function"?q=M[k]=P?[S,q]:[q,S]:P?q.unshift(S):q.push(S),(R=b(h))>0&&q.length>R&&!q.warned){q.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=h,H.type=k,H.count=q.length,U=H,console&&console.warn&&console.warn(U)}return h}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(h,k,S){var P={fired:!1,wrapFn:void 0,target:h,type:k,listener:S},R=d.bind(P);return R.listener=S,P.wrapFn=R,R}function v(h,k,S){var P=h._events;if(P===void 0)return[];var R=P[k];return R===void 0?[]:typeof R=="function"?S?[R.listener||R]:[R]:S?(function(M){for(var q=new Array(M.length),U=0;U<q.length;++U)q[U]=M[U].listener||M[U];return q})(R):m(R,R.length)}function s(h){var k=this._events;if(k!==void 0){var S=k[h];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function m(h,k){for(var S=new Array(k),P=0;P<k;++P)S[P]=h[P];return S}function r(h,k,S,P){if(typeof h.on=="function")P.once?h.once(k,S):h.on(k,S);else{if(typeof h.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof h);h.addEventListener(k,function R(M){P.once&&h.removeEventListener(k,R),S(M)})}}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return W},set:function(h){if(typeof h!="number"||h<0||x(h))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+h+".");W=h}}),y.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||x(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this},y.prototype.getMaxListeners=function(){return b(this)},y.prototype.emit=function(h){for(var k=[],S=1;S<arguments.length;S++)k.push(arguments[S]);var P=h==="error",R=this._events;if(R!==void 0)P=P&&R.error===void 0;else if(!P)return!1;if(P){var M;if(k.length>0&&(M=k[0]),M instanceof Error)throw M;var q=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw q.context=M,q}var U=R[h];if(U===void 0)return!1;if(typeof U=="function")L(U,this,k);else{var H=U.length,$=m(U,H);for(S=0;S<H;++S)L($[S],this,k)}return!0},y.prototype.addListener=function(h,k){return f(this,h,k,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(h,k){return f(this,h,k,!0)},y.prototype.once=function(h,k){return l(k),this.on(h,o(this,h,k)),this},y.prototype.prependOnceListener=function(h,k){return l(k),this.prependListener(h,o(this,h,k)),this},y.prototype.removeListener=function(h,k){var S,P,R,M,q;if(l(k),(P=this._events)===void 0)return this;if((S=P[h])===void 0)return this;if(S===k||S.listener===k)--this._eventsCount===0?this._events=Object.create(null):(delete P[h],P.removeListener&&this.emit("removeListener",h,S.listener||k));else if(typeof S!="function"){for(R=-1,M=S.length-1;M>=0;M--)if(S[M]===k||S[M].listener===k){q=S[M].listener,R=M;break}if(R<0)return this;R===0?S.shift():(function(U,H){for(;H+1<U.length;H++)U[H]=U[H+1];U.pop()})(S,R),S.length===1&&(P[h]=S[0]),P.removeListener!==void 0&&this.emit("removeListener",h,q||k)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(h){var k,S,P;if((S=this._events)===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[h]),this;if(arguments.length===0){var R,M=Object.keys(S);for(P=0;P<M.length;++P)(R=M[P])!=="removeListener"&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(k=S[h])=="function")this.removeListener(h,k);else if(k!==void 0)for(P=k.length-1;P>=0;P--)this.removeListener(h,k[P]);return this},y.prototype.listeners=function(h){return v(this,h,!0)},y.prototype.rawListeners=function(h){return v(this,h,!1)},y.listenerCount=function(h,k){return typeof h.listenerCount=="function"?h.listenerCount(k):s.call(h,k)},y.prototype.listenerCount=s,y.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]}},94(D){D.exports=function(I){return!(!I||typeof I=="string")&&(I instanceof Array||Array.isArray(I)||I.length>=0&&(I.splice instanceof Function||Object.getOwnPropertyDescriptor(I,I.length-1)&&I.constructor.name!=="String"))}},403(D,I,V){var L=V(94),x=Array.prototype.concat,y=Array.prototype.slice,W=D.exports=function(l){for(var b=[],f=0,d=l.length;f<d;f++){var o=l[f];L(o)?b=x.call(b,y.call(o)):b.push(o)}return b};W.wrap=function(l){return function(){return l(W(arguments))}}},119(D){D.exports=We}},Ue={};function J(D){var I=Ue[D];if(I!==void 0)return I.exports;var V=Ue[D]={exports:{}};return je[D](V,V.exports,J),V.exports}J.n=D=>{var I=D&&D.__esModule?()=>D.default:()=>D;return J.d(I,{a:I}),I},J.d=(D,I)=>{for(var V in I)J.o(I,V)&&!J.o(D,V)&&Object.defineProperty(D,V,{enumerable:!0,get:I[V]})},J.o=(D,I)=>Object.prototype.hasOwnProperty.call(D,I),J.r=D=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})};var we={};return(()=>{function D(t){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(t)}function I(t){var e=(function(a,n){if(D(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,n);if(D(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)})(t,"string");return D(e)=="symbol"?e:e+""}function V(t,e,a){return(e=I(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function L(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,n)}return a}function x(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?L(Object(a),!0).forEach(function(n){V(t,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):L(Object(a)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))})}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function l(t,e,a){return e&&W(t.prototype,e),a&&W(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(t)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!t})()}function d(t,e){if(e&&(D(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(t)}function o(t,e,a){return e=b(e),d(t,f()?Reflect.construct(e,a||[],b(t).constructor):e.apply(t,a))}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},v(t,e)}function s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}J.r(we),J.d(we,{default:()=>dr});var m=J(119),r=J.n(m);function h(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function k(t){this.setState((function(e){var a=this.constructor.getDerivedStateFromProps(t,e);return a??null}).bind(this))}function S(t,e){try{var a=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,n)}finally{this.props=a,this.state=n}}function P(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var a=null,n=null,i=null;if(typeof e.componentWillMount=="function"?a="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||n!==null||i!==null){var u=t.displayName||t.name,p=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
2
2
|
|
|
3
3
|
`+u+" uses "+p+" but also contains the following legacy lifecycles:"+(a!==null?`
|
|
4
4
|
`+a:"")+(n!==null?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as w}from"./es6-BxevHr5y-
|
|
1
|
+
import{e as w}from"./es6-BxevHr5y-BuJv1L-s.js";import"./index-CHE20_1-.js";const{DISALLOWED:h}=w;class a{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.writer.seek(e.position),this.writer.position!==e.position&&(await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.truncate(e.position)}),this.writer.seek(e.position))),!("data"in e))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.writer.seek(e.position),this.writer.position!==e.position)throw new DOMException("seeking position failed","InvalidStateError");return}else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");else if(e.type==="truncate")return new Promise(t=>{if(Number.isInteger(e.size)&&e.size>=0)this.writer.onwriteend=i=>t(),this.writer.truncate(e.size);else throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError")})}await new Promise((t,i)=>{this.writer.onwriteend=t,this.writer.onerror=i,this.writer.write(new Blob([e]))})}close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}class l{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this.readable=!0}get name(){return this.file.name}isSameEntry(e){return this.file.toURL()===e.file.toURL()}getFile(){return new Promise(this.file.file.bind(this.file))}createWritable(e){if(!this.writable)throw new DOMException(...h);return new Promise((t,i)=>this.file.createWriter(r=>{e.keepExistingData===!1?(r.onwriteend=s=>t(new a(r,this.file)),r.truncate(0)):t(new a(r,this.file))},i))}}class n{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.kind="directory",this.name=e.name}isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}async*entries(){const e=this.dir.createReader(),t=await new Promise(e.readEntries.bind(e));for(const i of t)yield[i.name,i.isFile?new l(i,this.writable):new n(i,this.writable)]}getDirectoryHandle(e,t){return new Promise((i,r)=>{this.dir.getDirectory(e,t,s=>{i(new n(s))},r)})}getFileHandle(e,t){return new Promise((i,r)=>this.dir.getFile(e,t,s=>i(new l(s)),r))}async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create:!1}).catch(r=>r.name==="TypeMismatchError"?this.getFileHandle(e,{create:!1}):r);if(i instanceof Error)throw i;return new Promise((r,s)=>{i instanceof n?t.recursive?i.dir.removeRecursively(()=>r(),s):i.dir.remove(()=>r(),s):i.file&&i.file.remove(()=>r(),s)})}}const u=(o={})=>new Promise((e,t)=>window.webkitRequestFileSystem(o._persistent,0,i=>e(new n(i.root)),t));export{l as FileHandle,n as FolderHandle,u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cC as D,r as y,cD as I,d8 as gt,d9 as yt,da as mt,db as vt,di as rn,dj as nn,dk as S,ad as Ar,dl as on,dm as an,cP as Er,aj as ln,dg as un,cE as sn,d6 as cn,d7 as pn,cX as dn,al as fn,ak as bn}from"./index-
|
|
1
|
+
import{cC as D,r as y,cD as I,d8 as gt,d9 as yt,da as mt,db as vt,di as rn,dj as nn,dk as S,ad as Ar,dl as on,dm as an,cP as Er,aj as ln,dg as un,cE as sn,d6 as cn,d7 as pn,cX as dn,al as fn,ak as bn}from"./index-CHE20_1-.js";import{D as j,P as hn}from"./constants-PqcOHKIA-Am2_uapM.js";import{S as gn,b as yn,u as mn}from"./stateful-menu-DsDbGVB_-C8xJ2Uve.js";var vn=["title","size","color","overrides"];function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(this,arguments)}function On(e,t){if(e==null)return{};var r=wn(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wn(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Sn(e,t){return xn(e)||kn(e,t)||jn(e,t)||Cn()}function Cn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jn(e,t){if(e){if(typeof e=="string")return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ht(e,t)}}function Ht(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,l,i;try{for(r=r.call(e);!(o=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(u){a=!0,i=u}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw i}}return n}}function xn(e){if(Array.isArray(e))return e}function Pn(e,t){var r=gt(),n=Sn(r,2),o=n[1],a=e.title,l=a===void 0?"Down":a,i=e.size,u=e.color,d=e.overrides,c=d===void 0?{}:d,s=On(e,vn),p=yt({component:o.icons&&o.icons.ChevronDown?o.icons.ChevronDown:null},c&&c.Svg?mt(c.Svg):{});return y.createElement(vt,et({viewBox:"0 0 24 24",ref:t,title:l,size:i,color:u,overrides:{Svg:p}},s),y.createElement("path",{transform:"rotate(270, 12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const Za=y.forwardRef(Pn);var In=["title","size","color","overrides"];function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}function $n(e,t){if(e==null)return{};var r=Rn(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rn(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function An(e,t){return Ln(e)||Dn(e,t)||Fn(e,t)||En()}function En(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fn(e,t){if(e){if(typeof e=="string")return Ut(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ut(e,t)}}function Ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,l,i;try{for(r=r.call(e);!(o=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(u){a=!0,i=u}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw i}}return n}}function Ln(e){if(Array.isArray(e))return e}function Tn(e,t){var r=gt(),n=An(r,2),o=n[1],a=e.title,l=a===void 0?"Search":a,i=e.size,u=e.color,d=e.overrides,c=d===void 0?{}:d,s=$n(e,In),p=yt({component:o.icons&&o.icons.Search?o.icons.Search:null},c&&c.Svg?mt(c.Svg):{});return y.createElement(vt,tt({viewBox:"0 0 24 24",ref:t,title:l,size:i,color:u,overrides:{Svg:p}},s),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6C8.79086 6 7 7.79086 7 10C7 12.2091 8.79086 14 11 14C13.2091 14 15 12.2091 15 10C15 7.79086 13.2091 6 11 6ZM5 10C5 6.68629 7.68629 4 11 4C14.3137 4 17 6.68629 17 10C17 11.2958 16.5892 12.4957 15.8907 13.4765L19.7071 17.2929C20.0976 17.6834 20.0976 18.3166 19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L14.4765 14.8907C13.4957 15.5892 12.2958 16 11 16C7.68629 16 5 13.3137 5 10Z"}))}const _n=y.forwardRef(Tn);var Bn=["title","size","color","overrides"];function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rt.apply(this,arguments)}function zn(e,t){if(e==null)return{};var r=Vn(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vn(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Mn(e,t){return qn(e)||Wn(e,t)||Kn(e,t)||Nn()}function Nn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(e,t){if(e){if(typeof e=="string")return Zt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zt(e,t)}}function Zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,l,i;try{for(r=r.call(e);!(o=(l=r.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(u){a=!0,i=u}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw i}}return n}}function qn(e){if(Array.isArray(e))return e}function Hn(e,t){var r=gt(),n=Mn(r,2),o=n[1],a=e.title,l=a===void 0?"Triangle Down":a,i=e.size,u=e.color,d=e.overrides,c=d===void 0?{}:d,s=zn(e,Bn),p=yt({component:o.icons&&o.icons.TriangleDown?o.icons.TriangleDown:null},c&&c.Svg?mt(c.Svg):{});return y.createElement(vt,rt({viewBox:"0 0 24 24",ref:t,title:l,size:i,color:u,overrides:{Svg:p}},s),y.createElement("path",{d:"M12.7071 15.2929L17.1464 10.8536C17.4614 10.5386 17.2383 10 16.7929 10L7.20711 10C6.76165 10 6.53857 10.5386 6.85355 10.8536L11.2929 15.2929C11.6834 15.6834 12.3166 15.6834 12.7071 15.2929Z"}))}const Un=y.forwardRef(Hn);var X={select:"select",search:"search"},se=Object.freeze({select:"select",remove:"remove",clear:"clear"});function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yt(Object(r),!0).forEach(function(n){O(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j.default,r=arguments.length>1?arguments[1]:void 0;return(e={},O(e,j.mini,r.font100),O(e,j.compact,r.font200),O(e,j.default,r.font300),O(e,j.large,r.font400),e)[t]}function Zn(e,t){var r=t.inputBorderRadius;return e===j.mini&&(r=t.inputBorderRadiusMini),{borderTopLeftRadius:r,borderBottomLeftRadius:r,borderTopRightRadius:r,borderBottomRightRadius:r}}function Yn(e){var t,r,n,o,a,l=e.$theme,i=e.$theme.sizing,u=e.$size,d=u===void 0?j.default:u,c=e.$type,s=e.$multi,p=e.$isEmpty,f=c===X.search,g=f?"calc(".concat(i.scale1000," - ").concat(i.scale0,")"):i.scale400,m=l.direction==="rtl"?"paddingRight":"paddingLeft",b=l.direction==="rtl"?"paddingLeft":"paddingRight";return(a={},O(a,j.mini,(t={paddingTop:s&&!p?0:i.scale100,paddingBottom:s&&!p?0:i.scale100},O(t,m,s&&!p?"calc(".concat(g," - ").concat(i.scale0,")"):g),O(t,b,"0"),t)),O(a,j.compact,(r={paddingTop:s&&!p?"calc(".concat(i.scale100," - ").concat(i.scale0,")"):i.scale200,paddingBottom:s&&!p?"calc(".concat(i.scale100," - ").concat(i.scale0,")"):i.scale200},O(r,m,s&&!p?"calc(".concat(g," - ").concat(i.scale0,")"):g),O(r,b,"0"),r)),O(a,j.default,(n={paddingTop:s&&!p?"calc(".concat(i.scale400," - ").concat(i.scale0,")"):i.scale400,paddingBottom:s&&!p?"calc(".concat(i.scale400," - ").concat(i.scale0,")"):i.scale400},O(n,m,s&&!p?"calc(".concat(g," + ").concat(i.scale0,")"):g),O(n,b,0),n)),O(a,j.large,(o={paddingTop:s&&!p?"calc(".concat(i.scale600," - ").concat(i.scale0,")"):i.scale550,paddingBottom:s&&!p?"calc(".concat(i.scale600," - ").concat(i.scale0,")"):i.scale550},O(o,m,s&&!p?"calc(".concat(g," - ").concat(i.scale0,")"):g),O(o,b,0),o)),a)[d]}var Ot=D("div",function(e){return{width:"".concat(String(e.$width),"px")}});Ot.displayName="StyledDropdownContainer";Ot.displayName="StyledDropdownContainer";var Gn=mn,Jn=gn,wt=D("div",function(e){var t=e.$isHighlighted,r=e.$selected,n=e.$disabled,o=e.$theme;return{cursor:n?"not-allowed":"pointer",color:r&&!t?o.colors.menuFontSelected:null,fontWeight:r?"bold":"normal"}});wt.displayName="StyledOptionContent";wt.displayName="StyledOptionContent";var St=D("div",function(e){var t=e.$theme.typography,r=e.$size;return _(_({},Se(r,t)),{},{boxSizing:"border-box",position:"relative",width:"100%"})});St.displayName="StyledRoot";St.displayName="StyledRoot";function Qn(e,t,r,n,o,a){return e?{color:a.inputTextDisabled,borderLeftColor:a.inputFillDisabled,borderRightColor:a.inputFillDisabled,borderTopColor:a.inputFillDisabled,borderBottomColor:a.inputFillDisabled,backgroundColor:a.inputFillDisabled}:t||r?{color:a.contentPrimary,borderLeftColor:a.borderSelected,borderRightColor:a.borderSelected,borderTopColor:a.borderSelected,borderBottomColor:a.borderSelected,backgroundColor:a.inputFillActive}:o?{color:a.contentPrimary,borderLeftColor:a.inputBorderError,borderRightColor:a.inputBorderError,borderTopColor:a.inputBorderError,borderBottomColor:a.inputBorderError,backgroundColor:a.inputFillError}:n?{color:a.contentPrimary,borderLeftColor:a.inputBorderPositive,borderRightColor:a.inputBorderPositive,borderTopColor:a.inputBorderPositive,borderBottomColor:a.inputBorderPositive,backgroundColor:a.inputFillPositive}:{color:a.contentPrimary,borderLeftColor:a.inputBorder,borderRightColor:a.inputBorder,borderTopColor:a.inputBorder,borderBottomColor:a.inputBorder,backgroundColor:a.inputFill}}var Ct=D("div",function(e){var t=e.$disabled,r=e.$error,n=e.$positive,o=e.$isFocused,a=e.$isPseudoFocused,l=e.$type,i=e.$searchable,u=e.$size,d=e.$theme,c=d.borders,s=d.colors,p=d.animation;return _(_({},Zn(u,c)),{},{boxSizing:"border-box",overflow:"hidden",width:"100%",display:"flex",justifyContent:"space-between",cursor:t?"not-allowed":i||l===X.search?"text":"pointer",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border, box-shadow, background-color",transitionDuration:p.timing200,transitionTimingFunction:p.easeOutCurve},Qn(t,o,a,n,r,s))});Ct.displayName="StyledControlContainer";Ct.displayName="StyledControlContainer";var jt=D("div",function(e){var t=Yn(e);return _({boxSizing:"border-box",position:"relative",flexGrow:1,flexShrink:1,flexBasis:"0%",display:"flex",alignItems:"center",flexWrap:e.$multi?"wrap":"nowrap",overflow:"hidden"},t)});jt.displayName="StyledValueContainer";jt.displayName="StyledValueContainer";var kt=D("div",function(e){var t=e.$disabled,r=e.$theme.colors;return{color:t?r.inputPlaceholderDisabled:r.inputPlaceholder,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});kt.displayName="StyledPlaceholder";kt.displayName="StyledPlaceholder";var xt=D("div",function(e){var t,r=e.$searchable,n=e.$size,o=e.$theme,a=e.$theme.typography,l=Se(n,a),i=o.direction==="rtl"?"marginRight":"marginLeft";return _((t={lineHeight:r?"inherit":l.lineHeight,boxSizing:"border-box"},O(t,i,o.sizing.scale0),O(t,"height","100%"),O(t,"maxWidth","100%"),t),rn)});xt.displayName="StyledSingleValue";xt.displayName="StyledSingleValue";var Pt=D("div",function(e){var t=e.$size,r=e.$searchable,n=e.$theme,o=n.typography,a=n.sizing,l=e.$isEmpty,i=Se(t,o);return{position:"relative",display:"inline-block",maxWidth:"100%",backgroundColor:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",boxSizing:"border-box",outline:"none",marginTop:0,marginBottom:0,marginLeft:l?0:a.scale0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,height:String(r?"auto":i.lineHeight),maxHeight:String(i.lineHeight)}});Pt.displayName="StyledInputContainer";Pt.displayName="StyledInputContainer";var It=D("input",function(e){var t=e.$theme,r=t.colors,n=t.typography,o=e.$size,a=e.$searchable,l=e.$width;return _(_({},Se(o,n)),{},{color:r.contentPrimary,boxSizing:"content-box",width:a?l||"100%":"1px",maxWidth:"100%",background:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",display:"inline-block",outline:"none",marginTop:"0",marginBottom:"0",marginLeft:"0",marginRight:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"})});It.displayName="StyledInput";It.displayName="StyledInput";var $t=D("div",function(e){var t,r=e.$size,n=e.$theme,o=e.$theme.typography,a=n.direction==="rtl"?"right":"left";return _(_({},Se(r,o)),{},(t={position:"absolute",top:0},O(t,a,0),O(t,"visibility","hidden"),O(t,"height",0),O(t,"overflow","scroll"),O(t,"whiteSpace","pre"),t))});$t.displayName="StyledInputSizer";$t.displayName="StyledInputSizer";var Rt=D("div",function(e){var t=e.$theme,r=e.$theme.sizing,n=t.direction==="rtl"?"paddingLeft":"paddingRight";return O({boxSizing:"border-box",position:"relative",display:"flex",flexShrink:0,alignItems:"center",alignSelf:"stretch"},n,r.scale500)});Rt.displayName="StyledIconsContainer";Rt.displayName="StyledIconsContainer";function At(e){var t=e.$theme;return{display:"inline-block",fill:"currentColor",color:"currentColor",height:t.sizing.scale600,width:t.sizing.scale600}}var Fr=D("svg",function(e){var t,r=e.$theme,n=e.$disabled,o=e.$size,a=r.colors,l=(t={},O(t,j.mini,16),O(t,j.compact,16),O(t,j.default,20),O(t,j.large,24),t),i=l[j.default];return o&&(i=l[o]),_(_({},At({$theme:r})),{},{color:n?a.inputTextDisabled:a.contentPrimary,cursor:n?"not-allowed":"pointer",height:"".concat(i,"px"),width:"".concat(i,"px")})});Fr.displayName="StyledSelectArrow";Fr.displayName="StyledSelectArrow";var Dr=D("svg",function(e){var t,r=e.$theme,n=e.$size,o=r.colors,a=(t={},O(t,j.mini,15),O(t,j.compact,15),O(t,j.default,18),O(t,j.large,22),t),l=a[j.default];return n&&(l=a[n]),_(_({},At({$theme:r})),{},{color:o.contentPrimary,cursor:"pointer",height:"".concat(l,"px"),width:"".concat(l,"px")})});Dr.displayName="StyledClearIcon";Dr.displayName="StyledClearIcon";var Et=on(an,function(e){var t=e.$theme;return{borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"2px",borderRightColor:t.colors.borderOpaque,borderBottomColor:t.colors.borderOpaque,borderLeftColor:t.colors.borderOpaque,width:"16px",height:"16px"}});Et.displayName="StyledLoadingIndicator";Et.displayName="StyledLoadingIndicator";var Ft=D("div",function(e){var t,r=e.$disabled,n=e.$theme,o=n.colors,a=n.sizing,l=n.direction==="rtl"?"right":"left";return _(_({},At(e)),{},(t={color:r?o.inputTextDisabled:o.contentPrimary,cursor:r?"not-allowed":"pointer",position:"absolute",top:0},O(t,l,a.scale500),O(t,"display","flex"),O(t,"alignItems","center"),O(t,"height","100%"),t))});Ft.displayName="StyledSearchIconContainer";Ft.displayName="StyledSearchIconContainer";function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}var Xn=["overrides","inputRef"];function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ot.apply(this,arguments)}function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gt(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eo(e,t){return oo(e)||no(e,t)||ro(e,t)||to()}function to(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as _}from"./index-
|
|
1
|
+
import{i as _}from"./index-CHE20_1-.js";const a={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,decimal_number:/[diefgu]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(,|_)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/},h=Object.create(null);function m(o,i=","){let n="",s=o;(s.startsWith("-")||s.startsWith("+"))&&(n=s[0],s=s.slice(1));const p=s.indexOf(".");let c,l;p!==-1?(c=s.slice(0,p),l=s.slice(p)):c=s;const e=c.replace(/\B(?=(\d{3})+(?!\d))/g,i);return n+e+(l??"")}function k(o,i){let n=1;const s=o.length;let p="";for(let c=0;c<s;c++){const l=o[c];if(typeof l=="string"){p+=l;continue}const e=l;let r;if(e.keys){r=i[n];for(let u=0;u<e.keys.length;u++){if(_(r))throw new Error(`[sprintf] Cannot access property "${e.keys[u]}" of undefined value "${e.keys[u-1]}"`);r=r[e.keys[u]]}}else e.param_no?r=i[parseInt(e.param_no,10)]:r=i[n++];if(a.not_type.test(e.type)&&a.not_primitive.test(e.type)&&typeof r=="function"&&(r=r()),a.numeric_arg.test(e.type)&&typeof r!="number"&&isNaN(r))throw new TypeError(`[sprintf] expecting number but found ${Object.prototype.toString.call(r)}`);let d=!0;a.number.test(e.type)&&(d=r>=0);let t;switch(e.type){case"b":t=parseInt(String(r),10).toString(2);break;case"c":t=String.fromCharCode(parseInt(String(r),10));break;case"d":case"i":t=String(parseInt(String(r),10));break;case"j":t=JSON.stringify(r,null,e.width?parseInt(e.width):0);break;case"e":t=e.precision?parseFloat(String(r)).toExponential(parseInt(e.precision,10)):parseFloat(String(r)).toExponential();break;case"f":t=e.precision?parseFloat(String(r)).toFixed(parseInt(e.precision,10)):String(parseFloat(String(r)));break;case"g":t=e.precision?String(Number(r.toPrecision(parseInt(e.precision,10)))):String(parseFloat(String(r)));break;case"o":t=(parseInt(String(r),10)>>>0).toString(8);break;case"s":t=String(r),t=e.precision?t.substring(0,parseInt(e.precision,10)):t;break;case"t":t=String(!!r),t=e.precision?t.substring(0,parseInt(e.precision,10)):t;break;case"T":t=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),t=e.precision?t.substring(0,parseInt(e.precision,10)):t;break;case"u":t=String(parseInt(String(r),10)>>>0);break;case"v":t=String(r.valueOf()),t=e.precision?t.substring(0,parseInt(e.precision,10)):t;break;case"x":t=(parseInt(String(r),10)>>>0).toString(16);break;case"X":t=(parseInt(String(r),10)>>>0).toString(16).toUpperCase();break;default:t=String(r)}if(a.json.test(e.type))p+=t;else{let u="";if(a.number.test(e.type)&&(!d||e.sign)&&(u=d?"+":"-",t=t.replace(a.sign,"")),e.thousand_sep&&a.decimal_number.test(e.type)){let g;e.thousand_sep==="_"?g="_":e.pad_char?.startsWith("'")?g=e.pad_char.charAt(1):g=",",t=m(t,g)}const b=e.pad_char?e.pad_char==="0"?"0":e.pad_char.charAt(1):" ",y=e.width?parseInt(e.width,10):0,S=y-(u+t).length,f=y&&S>0?b.repeat(S):"";p+=e.align?u+t+f:b==="0"?u+f+t:f+u+t}}return p}function x(o){if(h[o])return h[o];let i=o,n;const s=[];let p=0;for(;i;){if((n=a.text.exec(i))!==null)s.push(n[0]);else if((n=a.modulo.exec(i))!==null)s.push("%");else if((n=a.placeholder.exec(i))!==null){if(n[2]){p|=1;const c=[];let l=n[2],e;if((e=a.key.exec(l))!==null)for(c.push(e[1]);(l=l.substring(e[0].length))!=="";)if((e=a.key_access.exec(l))!==null)c.push(e[1]);else if((e=a.index_access.exec(l))!==null)c.push(e[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");n[2]=c.join(".")}else p|=2;if(p===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:n[0],param_no:n[1],keys:n[2]?n[2].split("."):void 0,sign:n[3],pad_char:n[4],align:n[5],thousand_sep:n[6],width:n[7],precision:n[8],type:n[9]})}else throw new SyntaxError("[sprintf] unexpected placeholder");i=i.substring(n[0].length)}return h[o]=s,s}function I(o,...i){return k(x(o),[o,...i])}export{I};
|
package/build/assets/{stateful-menu-DhWFcRsJ-hkmyKt6q.js → stateful-menu-DsDbGVB_-C8xJ2Uve.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cC as v,cR as lt,r as c,dn as ct,cD as R,cE as Ee,d6 as dt,d7 as ft,cX as pt,aj as ht,cP as gt}from"./index-
|
|
1
|
+
import{cC as v,cR as lt,r as c,dn as ct,cD as R,cE as Ee,d6 as dt,d7 as ft,cX as pt,aj as ht,cP as gt}from"./index-CHE20_1-.js";var y={click:"click",moveUp:"moveUp",moveDown:"moveDown",mouseEnter:"mouseEnter",focus:"focus",reset:"reset",character:"character",enter:"enter"},m={ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Enter:"Enter",Home:"Home",End:"End"},C={default:"default",compact:"compact"},yt=["item"];function mt(e,t){if(e==null)return{};var n=bt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ie(Object(n),!0).forEach(function(r){vt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=v("ul",function(e){var t=e.$theme,n=e.$isFocusVisible;return{backgroundColor:t.colors.menuFill,position:"relative",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,paddingTop:t.sizing.scale300,paddingBottom:t.sizing.scale300,paddingLeft:0,paddingRight:0,borderTopLeftRadius:t.borders.popoverBorderRadius,borderTopRightRadius:t.borders.popoverBorderRadius,borderBottomRightRadius:t.borders.popoverBorderRadius,borderBottomLeftRadius:t.borders.popoverBorderRadius,boxShadow:t.lighting.shadow600,overflow:"auto",":focus":{outline:n?"3px solid ".concat(t.colors.accent):"none"}}});ae.displayName="StyledList";ae.displayName="StyledList";function Le(e){return e.$disabled?e.$theme.colors.menuFontDisabled:e.$isHighlighted&&e.$isFocused?e.$theme.colors.menuFontHighlighted:e.$isHighlighted&&!e.$isFocused?e.$theme.colors.menuFontSelected:e.$theme.colors.menuFontDefault}function Ot(e){return e.$disabled?"transparent":e.$isHighlighted?e.$theme.colors.menuFillHover:"transparent"}var se=v("li",function(e){var t=e.$theme,n=e.$size;return b(b({},n===C.compact?t.typography.font100:t.typography.font200),{},{position:"relative",display:"block",color:t.colors.menuFontDisabled,textAlign:"center",cursor:"not-allowed",backgroundColor:"transparent",marginBottom:0,paddingTop:t.sizing.scale800,paddingBottom:t.sizing.scale800,paddingRight:t.sizing.scale800,paddingLeft:t.sizing.scale800})});se.displayName="StyledEmptyState";se.displayName="StyledEmptyState";var ue=v("li",function(e){var t=e.$theme.sizing.scale300,n=e.$theme.sizing.scale200;return b(b({},e.$theme.typography.font250),{},{color:e.$theme.colors.contentPrimary,paddingTop:n,paddingBottom:n,paddingRight:t,paddingLeft:t})});ue.displayName="StyledOptgroupHeader";ue.displayName="StyledOptgroupHeader";var le=v("a",function(e){return{display:"block",color:Le(e)}});le.displayName="StyledListItemAnchor";le.displayName="StyledListItemAnchor";var ce=v("li",function(e){var t=e.$disabled,n=e.$theme,r=e.$size;return b(b({},r===C.compact?n.typography.font100:n.typography.font200),{},{boxSizing:"border-box",position:"relative",display:"block",color:Le(e),cursor:t?"not-allowed":"pointer",backgroundColor:Ot(e),transitionProperty:"color, background-color",transitionDuration:n.animation.timing200,transitionTimingFunction:n.animation.easeOutCurve,marginBottom:0,paddingTop:r===C.compact?n.sizing.scale100:n.sizing.scale300,paddingBottom:r===C.compact?n.sizing.scale100:n.sizing.scale300,paddingRight:r===C.compact?n.sizing.scale900:n.sizing.scale600,paddingLeft:r===C.compact?n.sizing.scale900:n.sizing.scale600,":focus":{outline:"none"}})});ce.displayName="StyledListItemElement";ce.displayName="StyledListItemElement";var St=lt(ce,function(e){return(function(t){t.item;var n=mt(t,yt);return c.createElement(e,n)})}),De=v("li",function(e){var t=e.$theme;return{position:"relative",display:"flex",alignItems:"center",cursor:"pointer",paddingTop:t.sizing.scale300,paddingBottom:t.sizing.scale300,paddingRight:t.sizing.scale800,paddingLeft:t.sizing.scale800,transitionProperty:"color, background-color",transitionDuration:t.animation.timing200,transitionTimingFunction:t.animation.easeOutCurve,":hover":{backgroundColor:t.colors.menuFillHover}}});De.displayName="StyledListItemProfile";De.displayName="StyledListItemProfile";var Ne=v("div",{width:"60px",height:"60px",display:"flex",justifyContent:"center",alignItems:"center"});Ne.displayName="StyledProfileImgContainer";Ne.displayName="StyledProfileImgContainer";var Fe=v("img",{width:"100%",height:"100%",borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%"});Fe.displayName="StyledProfileImg";Fe.displayName="StyledProfileImg";var Te=v("div",function(e){var t=e.$theme,n=t.direction,r=t.sizing;return b({alignSelf:n==="rtl"?"flex-end":"flex-start",display:"flex",flexDirection:"column"},n==="rtl"?{marginRight:r.scale600}:{marginLeft:r.scale600})});Te.displayName="StyledProfileLabelsContainer";Te.displayName="StyledProfileLabelsContainer";var $e=v("h6",function(e){var t=e.$theme;return b(b({},t.typography.font350),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});$e.displayName="StyledProfileTitle";$e.displayName="StyledProfileTitle";var Be=v("p",function(e){var t=e.$theme;return b(b({},t.typography.font200),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});Be.displayName="StyledProfileSubtitle";Be.displayName="StyledProfileSubtitle";var de=v("p",function(e){var t=e.$theme;return b(b({},t.typography.font100),{},{color:t.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});de.displayName="StyledProfileBody";de.displayName="StyledProfileBody";var He=v("li",function(e){var t=e.$theme;return{color:t.colors.contentPrimary,borderBottomWidth:t.borders.border300.borderWidth,borderBottomStyle:t.borders.border300.borderStyle,borderBottomColor:t.borders.border300.borderColor,marginTop:t.sizing.scale100,marginBottom:t.sizing.scale100,marginLeft:t.sizing.scale500,marginRight:t.sizing.scale500,listStyle:"none",height:0}});He.displayName="StyledMenuDivider";de.displayName="StyledMenuDivider";var ze=c.createContext({addMenuToNesting:function(){},removeMenuFromNesting:function(){},getParentMenu:function(){},getChildMenu:function(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function(){return!1},mountRef:{current:null}});function ee(){return ee=Object.assign?Object.assign.bind():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},ee.apply(this,arguments)}function wt(e,t){return Mt(e)||Pt(e,t)||jt(e,t)||It()}function It(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(e,t){if(e){if(typeof e=="string")return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}}function je(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,u,a;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(r.push(u.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,a=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Mt(e){if(Array.isArray(e))return e}var Rt=function(e){if(!e.getChildMenu)return e.children;var t=e.getChildMenu(e.item);if(!t)return e.children;var n=e.overrides,r=n===void 0?{}:n,o=R(r.ChildMenuPopover,ht),i=wt(o,2),u=i[0],a=i[1];return c.createElement(ze.Consumer,null,function(s){return c.createElement(u,ee({focusLock:!1,autoFocus:!1,isOpen:e.isOpen,renderAll:e.renderAll,content:t,ignoreBoundary:!0,mountNode:s.mountRef.current?s.mountRef.current:void 0,onClick:e.onClick,onMouseEnterDelay:30,onMouseLeaveDelay:30,onEsc:e.resetParentMenu,placement:"rightTop"},a,{overrides:gt({Body:{props:{onKeyDown:function(d){d.keyCode===9&&d.preventDefault()}}}},a.overrides)}),e.children)})},Ct=["getChildMenu","getItemLabel","item","onClick","onMouseEnter","overrides","renderHrefAsAnchor","resetMenu","size","$isHighlighted","renderAll"];function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(r){xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(){return z=Object.assign?Object.assign.bind():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},z.apply(this,arguments)}function Me(e,t){return Dt(e)||Lt(e,t)||Et(e,t)||At()}function At(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Et(e,t){if(e){if(typeof e=="string")return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}}function Re(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,u,a;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(r.push(u.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,a=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Dt(e){if(Array.isArray(e))return e}function Nt(e,t){if(e==null)return{};var n=Ft(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Tt(e,t){var n=e.getChildMenu,r=e.getItemLabel,o=r===void 0?function(S){return S?S.label:""}:r,i=e.item,u=e.onClick,a=u===void 0?function(){}:u,s=e.onMouseEnter,d=s===void 0?function(){}:s,l=e.overrides,f=l===void 0?{}:l,g=e.renderHrefAsAnchor,O=g===void 0?!0:g,j=e.resetMenu,w=j===void 0?function(){}:j,P=e.size,V=P===void 0?C.default:P,k=e.$isHighlighted,N=e.renderAll,F=Nt(e,Ct),q=R(f.ListItem,St),T=Me(q,2),W=T[0],$=T[1],X=R(f.ListItemAnchor,le),B=Me(X,2),G=B[0],H=B[1],J=function(S){return S.href&&O?c.createElement(G,z({$item:S,href:S.href},H),o(S)):c.createElement(c.Fragment,null,o(S))};return c.createElement(Ee.Consumer,null,function(S){return c.createElement(Rt,{getChildMenu:n,isOpen:!!k,item:i,resetParentMenu:w,renderAll:N,onClick:a,overrides:f},c.createElement(W,z({ref:t,"aria-label":n&&n(i)?S.menu.parentMenuItemAriaLabel:null,item:i,onClick:a,onMouseEnter:d,$size:V,$isHighlighted:k},F,$),J(kt({isHighlighted:k},i))))})}function Ce(e,t){if(!e||!t)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function $t(e,t){return e.$isHighlighted===t.$isHighlighted&&e.$isFocused===t.$isFocused&&Ce(e.item,t.item)&&Ce(e.overrides,t.overrides)&&e.size===t.size&&e.getItemLabel===t.getItemLabel&&e.getChildMenu===t.getChildMenu&&e.resetMenu===t.resetMenu}var Ue=c.forwardRef(Tt);Ue.displayName="OptionList";const Bt=c.memo(Ue,$t);var Ht=["disabled","isFocused","isHighlighted","resetMenu"];function zt(e,t){if(e==null)return{};var n=Ut(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ut(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function E(){return E=Object.assign?Object.assign.bind():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.apply(this,arguments)}function M(e,t){return qt(e)||Vt(e,t)||Kt(e,t)||_t()}function _t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kt(e,t){if(e){if(typeof e=="string")return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}}function ke(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,u,a;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(r.push(u.value),!(t&&r.length===t));o=!0);}catch(s){i=!0,a=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function qt(e){if(Array.isArray(e))return e}function Wt(e){var t=e.overrides,n=t===void 0?{}:t,r=e["aria-label"],o=r===void 0?"Menu":r,i=e.rootRef,u=i===void 0?c.createRef():i,a=e.focusMenu,s=a===void 0?function(){}:a,d=e.unfocusMenu,l=d===void 0?function(){}:d,f=e.handleMouseLeave,g=f===void 0?function(){}:f,O=e.handleKeyDown,j=O===void 0?function(I){}:O,w=e.renderAll,P=w===void 0?!1:w,V=c.useState(!1),k=M(V,2),N=k[0],F=k[1],q=function(I){pt(I)&&F(!0)},T=function(I){N!==!1&&F(!1)},W=R(n.List,ae),$=M(W,2),X=$[0],B=$[1],G=R(n.Option,Bt),H=M(G,2),J=H[0],S=H[1],qe=R(n.EmptyState,se),fe=M(qe,2),We=fe[0],Xe=fe[1],Ge=R(n.OptgroupHeader,ue),pe=M(Ge,2),Je=pe[0],Ye=pe[1],Ze=R(n.MenuDivider,He),he=M(Ze,2),Qe=he[0],et=he[1],Y=Array.isArray(e.items)?{__ungrouped:e.items}:e.items,ge=Object.keys(Y),tt=ge.reduce(function(I,x){var ye=M(I,2),me=ye[0],L=ye[1];x!=="__ungrouped"&&me.push(c.createElement(Je,E({key:x},Ye),x));var it=Y[x].map(function(Z,gr){L=L+1;var be=e.getRequiredItemProps,at=be===void 0?function(yr,mr){return{}}:be;if(Z.divider===!0)return c.createElement(Qe,et);var D=at(Z,L),ve=D.disabled,Oe=D.isFocused,Se=D.isHighlighted,we=D.resetMenu,st=we===void 0?function(){}:we,ut=zt(D,Ht);return c.createElement(J,E({renderAll:P,key:L,item:Z,overrides:e.overrides,resetMenu:st,role:"option",$disabled:ve,$isFocused:Oe,$isHighlighted:Se,"aria-disabled":ve,"aria-selected":Se&&Oe},ut,S))});return[me.concat(it),L]},[[],-1]),rt=M(tt,1),nt=rt[0],ot=ge.every(function(I){return!Y[I].length});return c.createElement(Ee.Consumer,null,function(I){return c.createElement(X,E({"aria-activedescendant":e.activedescendantId||null,role:"listbox","aria-label":o,ref:u,onMouseEnter:s,onMouseLeave:g,onMouseOver:s,onFocus:ft({onFocus:s},q),onBlur:dt({onBlur:l},T),onKeyDown:function(x){e.isFocused&&j(x)},tabIndex:0,"data-baseweb":"menu",$isFocusVisible:N},B),ot?c.createElement(We,E({"aria-live":"polite","aria-atomic":!0},Xe),e.noResultsMsg||I.menu.noResultsMsg):nt)})}function Q(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"auto";if(e){var i=e.getBoundingClientRect(),u=t.getBoundingClientRect();if(i.bottom>u.bottom)if(r)t.scrollTop=t.scrollHeight-u.height;else{var a=e.offsetTop+i.height;t.scrollTop=a-(o==="center"?Math.round((u.height+i.height)/2):u.height)}else i.top<u.top&&(n?t.scrollTop=0:t.scrollTop=e.offsetTop-(o==="center"?Math.round((u.height-i.height)/2):0))}}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}var Xt=["disabled"],Gt=["initialState","stateReducer","children","onItemSelect","addMenuToNesting","removeMenuFromNesting","getParentMenu","getChildMenu","forceHighlight"];function re(){return re=Object.assign?Object.assign.bind():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},re.apply(this,arguments)}function xe(e,t){if(e==null)return{};var n=Jt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(r){h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e,t,n){return t&&Zt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ne(e,t)}function tr(e){var t=nr();return function(){var n=U(e),r;if(t){var o=U(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return rr(this,r)}}function rr(e,t){if(t&&(te(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e={initialState:{highlightedIndex:-1,isFocused:!1},typeAhead:!0,keyboardControlNode:{current:null},stateReducer:function(e,t){return t},onItemSelect:function(){},getRequiredItemProps:function(){return{}},children:function(){return null},addMenuToNesting:function(){},removeMenuFromNesting:function(){},getParentMenu:function(){},getChildMenu:function(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function(){return!1},forceHighlight:!1},Ke=(function(e){er(n,e);var t=tr(n);function n(){var r;Yt(this,n);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return r=t.call.apply(t,[this].concat(i)),h(p(r),"state",A(A({},r.constructor.defaultProps.initialState),r.props.initialState)),h(p(r),"rootRef",c.createRef()),h(p(r),"keyboardControlNode",r.props.keyboardControlNode.current),h(p(r),"refList",[]),h(p(r),"optionIds",[]),h(p(r),"typeAheadChars",""),h(p(r),"typeAheadTimeOut",null),h(p(r),"onKeyDown",function(a){switch(a.key){case m.ArrowUp:case m.ArrowDown:case m.ArrowLeft:case m.ArrowRight:case m.Home:case m.End:r.handleArrowKey(a);break;case m.Enter:if(a.keyCode===229)break;r.handleEnterKey(a);break;default:r.props.typeAhead&&(clearTimeout(r.typeAheadTimeOut),r.handleAlphaDown(a));break}}),h(p(r),"handleAlphaDown",function(a){var s=r.props.rootRef?r.props.rootRef:r.rootRef,d=r.state.highlightedIndex;r.typeAheadChars+=a.key,r.typeAheadTimeOut=setTimeout(function(){r.typeAheadChars=""},500);var l=d,f=r.getItems();if(!(f.length===0||!("label"in f[0]))){for(var g=!0,O=0;O<f.length;O++){var j=f[O].label;if(j&&j.toUpperCase&&j.toUpperCase().indexOf(r.typeAheadChars.toUpperCase())===0){l=O,g=!1;break}}if(g)for(var w=0;w<f.length;w++){var P=f[w].label;if(P&&P.toUpperCase&&P.toUpperCase().indexOf(r.typeAheadChars.toUpperCase())>0){l=w;break}}r.internalSetState(y.character,{highlightedIndex:l}),r.refList[l]&&Q(r.refList[l].current,s.current,l===0,l===f.length-1)}}),h(p(r),"handleArrowKey",function(a){var s=r.props.rootRef?r.props.rootRef:r.rootRef,d=r.state.highlightedIndex,l=d;if(a.key===m.ArrowUp)a.preventDefault(),l=Math.max(0,d-1),r.internalSetState(y.moveUp,{highlightedIndex:l});else if(a.key===m.ArrowDown)a.preventDefault(),l=Math.min(d+1,r.getItems().length-1),r.internalSetState(y.moveDown,{highlightedIndex:l});else if(a.key===m.Home)a.preventDefault(),l=0,r.internalSetState(y.moveUp,{highlightedIndex:l});else if(a.key===m.End)a.preventDefault(),l=r.getItems().length-1,r.internalSetState(y.moveDown,{highlightedIndex:l});else if(a.key===m.ArrowLeft){if(r.props.getParentMenu){var f=r.props.getParentMenu(s);f&&f.current&&f.current.focus()}}else if(a.key===m.ArrowRight&&r.props.getChildMenu){var g=r.props.getChildMenu(s);g&&g.current&&g.current.focus()}r.refList[l]&&Q(r.refList[l].current,s.current,l===0,l===r.getItems().length-1)}),h(p(r),"handleEnterKey",function(a){var s=r.props.onItemSelect,d=r.state.highlightedIndex,l=r.getItems();l[d]&&s&&!l[d].disabled&&(a.preventDefault(),s({item:l[d],event:a}))}),h(p(r),"handleItemClick",function(a,s,d){r.props.onItemSelect&&!s.disabled&&(r.props.onItemSelect({item:s,event:d}),r.internalSetState(y.click,{highlightedIndex:a,activedescendantId:r.optionIds[a]}))}),h(p(r),"handleMouseEnter",function(a){r.internalSetState(y.mouseEnter,{highlightedIndex:a,activedescendantId:r.optionIds[a]})}),h(p(r),"handleMouseLeave",function(a){}),h(p(r),"getRequiredItemProps",function(a,s){var d=r.refList[s];d||(d=c.createRef(),r.refList[s]=d,r.optionIds[s]=r.props.uidSeed(s));var l=r.props.getRequiredItemProps(a,s),f=l.disabled,g=xe(l,Xt),O=typeof f=="boolean"?f:!!a.disabled;return A(A({id:g.id||r.optionIds[s],disabled:O,ref:d,isFocused:r.state.isFocused,isHighlighted:r.state.highlightedIndex===s,resetMenu:r.resetMenu},O?{}:{onClick:r.handleItemClick.bind(p(r),s,a),onMouseEnter:r.handleMouseEnter.bind(p(r),s)}),g)}),h(p(r),"focusMenu",function(a){var s=r.props.rootRef?r.props.rootRef:r.rootRef;!r.state.isFocused&&s.current&&s.current.contains(a.target)&&(r.state.highlightedIndex<0?r.internalSetState(y.focus,{isFocused:!0,highlightedIndex:0}):r.internalSetState(y.focus,{isFocused:!0}),s.current.focus())}),h(p(r),"unfocusMenu",function(){r.internalSetState(y.focus,{isFocused:!1})}),h(p(r),"resetMenu",function(){r.internalSetState(y.reset,{isFocused:!1,highlightedIndex:-1,activedescendantId:null})}),r}return Qt(n,[{key:"getItems",value:function(){var r=this;if(Array.isArray(this.props.items))return this.props.items;var o=Object.keys(this.props.items);return o.reduce(function(i,u){return i.concat(r.props.items[u])},[])}},{key:"componentDidMount",value:function(){var r=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&(r.current&&this.state.highlightedIndex>-1&&this.refList[this.state.highlightedIndex]&&Q(this.refList[this.state.highlightedIndex].current,r.current,this.state.highlightedIndex===0,this.state.highlightedIndex===this.getItems().length-1,"center"),this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown)),this.props.addMenuToNesting&&this.props.addMenuToNesting(r)}},{key:"componentWillUnmount",value:function(){var r=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown),this.props.removeMenuFromNesting&&this.props.removeMenuFromNesting(r)}},{key:"componentDidUpdate",value:function(r,o){typeof document<"u"&&(!o.isFocused&&this.state.isFocused?this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown):o.isFocused&&!this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown));var i=this.getItems().length;this.props.forceHighlight&&this.state.highlightedIndex===-1&&i>0&&this.internalSetState(y.enter,{highlightedIndex:0}),i===0&&this.state.highlightedIndex!==-1?this.internalSetState(y.enter,{highlightedIndex:-1}):this.state.highlightedIndex>=i&&this.internalSetState(y.enter,{highlightedIndex:0}),this.props.isNestedMenuVisible&&this.props.nestedMenuHoverIndex!==r.nestedMenuHoverIndex&&!this.props.isNestedMenuVisible(this.rootRef)&&!this.props.forceHighlight&&this.setState({highlightedIndex:-1})}},{key:"internalSetState",value:function(r,o){var i=this.props.stateReducer;this.props.onActiveDescendantChange&&typeof o.highlightedIndex=="number"&&this.state.highlightedIndex!==o.highlightedIndex&&this.props.onActiveDescendantChange(this.optionIds[o.highlightedIndex]),this.setState(i(r,o,this.state))}},{key:"render",value:function(){var r=this,o=this.props;o.initialState,o.stateReducer,o.children,o.onItemSelect,o.addMenuToNesting,o.removeMenuFromNesting,o.getParentMenu,o.getChildMenu,o.forceHighlight;var i=xe(o,Gt);return this.props.children(A(A({},i),{},{rootRef:this.props.rootRef?this.props.rootRef:this.rootRef,activedescendantId:this.optionIds[this.state.highlightedIndex],getRequiredItemProps:function(u,a){return r.getRequiredItemProps(u,a)},handleMouseLeave:this.handleMouseLeave,highlightedIndex:this.state.highlightedIndex,isFocused:this.state.isFocused,handleKeyDown:this.props.keyboardControlNode.current?function(u){}:this.onKeyDown,focusMenu:this.focusMenu,unfocusMenu:this.unfocusMenu}))}}]),n})(c.Component);h(Ke,"defaultProps",_e);var Ve=function(e){return c.createElement(Ke,re({uidSeed:ct()},e))};Ve.defaultProps=_e;function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(e)}var or=["overrides"];function _(){return _=Object.assign?Object.assign.bind():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)}function ir(e,t){if(e==null)return{};var n=ar(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ar(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t,n){return t&&ur(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ie(e,t)}function dr(e){var t=hr();return function(){var n=K(e),r;if(t){var o=K(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fr(this,r)}}function fr(e,t){if(t&&(oe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pr(e)}function pr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(e)}var vr=(function(e){cr(n,e);var t=dr(n);function n(){return sr(this,n),t.apply(this,arguments)}return lr(n,[{key:"render",value:function(){var r=this.props,o=r.overrides,i=ir(r,or);return c.createElement(ze.Consumer,null,function(u){return c.createElement(Ve,_({},u,i),function(a){return c.createElement(Wt,_({},a,{overrides:o}))})})}}]),n})(c.PureComponent);export{St as S,vr as b,se as l,ae as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as t,az as n}from"./index-
|
|
1
|
+
import{x as t,az as n}from"./index-CHE20_1-.js";const s=t("label",{target:"e1y5xkzn3"})(({disabled:e,labelVisibility:o,theme:i})=>({fontSize:i.fontSizes.sm,color:e?i.colors.fadedText40:i.colors.bodyText,display:o===n.Collapsed?"none":"flex",visibility:o===n.Hidden?"hidden":"visible",marginBottom:i.spacing.twoXS,height:"auto",minHeight:i.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"}),""),a=t("div",{target:"e1y5xkzn2"})({name:"1h97c9v",styles:"display:flex;flex-direction:row;justify-content:flex-end;flex:1"}),r=t("div",{target:"e1y5xkzn1"})(({theme:e})=>({fontSize:e.fontSizes.twoSm,color:e.colors.fadedText60,margin:e.spacing.none,textAlign:"right",position:"absolute",bottom:e.spacing.threeXS,right:`calc(${e.fontSizes.mdLg} * 0.5)`}),""),d=t("span",{target:"e1y5xkzn0"})(({theme:e})=>({marginLeft:e.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}),"");export{d as B,s as W,r as g,a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as d}from"./index-
|
|
1
|
+
import{x as d}from"./index-CHE20_1-.js";const t=d("div",{target:"e15ll4qa0"})(({theme:i,$isHighlighted:e})=>({flexGrow:1,display:"flex",alignItems:"center",paddingLeft:i.spacing.sm,paddingRight:i.spacing.sm,height:i.sizes.elementHighlightHeight,borderTopLeftRadius:i.radii.md2,borderTopRightRadius:i.radii.md2,borderBottomRightRadius:i.radii.md2,borderBottomLeftRadius:i.radii.md2,background:e?i.colors.darkenedBgMix15:"transparent",transition:"background 50ms ease","&:hover, &:active, &:focus-visible":{background:i.colors.darkenedBgMix15}}),"");export{t as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as r,r as g,j as t,a_ as m}from"./index-
|
|
1
|
+
import{x as r,r as g,j as t,a_ as m}from"./index-CHE20_1-.js";import{I as p}from"./styled-components-CZ4GSHz4-BVEj2YLE.js";import{J as d}from"./select-DbfjugKJ-C8EDw3eO.js";function x(e){const i=g.forwardRef(({children:a,$isHighlighted:n,...s},o)=>t.jsx(e,{ref:o,...s,children:t.jsx(p,{$isHighlighted:n,children:a})}));return i.displayName=`HighlightListItem(${e.displayName||e.name||"Component"})`,i}const c=r("div",{target:"e1ipygm11"})({name:"1ucqwki",styles:"position:absolute;top:50%;right:2.05em"}),u=r(d,{shouldForwardProp:m,target:"e1ipygm10"})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",padding:e.spacing.none,margin:e.spacing.none,height:e.sizes.dropdownItemHeight,marginLeft:e.sizes.tagMarginInsideBorder,marginRight:`max(0px, calc(${e.sizes.tagMarginInsideBorder} - var(--scrollbar-gutter-size, 0px)))`,background:"transparent",fontWeight:e.fontWeights.normal}),"");export{x as B,u as m,c as n};
|