@stlite/desktop 0.99.2 → 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.
Files changed (104) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/bin/dump_artifacts.js +37 -37
  3. package/build/assets/{ArrowVegaLiteChart-B-Kd_jPH-Biiko0Ef.js → ArrowVegaLiteChart-AuhdMhKC-SeC_gJ-J.js} +1 -1
  4. package/build/assets/{Audio-B5gtg70U-Bh9tGjUY.js → Audio-MPOURgx8-aU_D4eY9.js} +1 -1
  5. package/build/assets/{AudioInput-CgFzLi-y-C8cmY_cr.js → AudioInput-D-1IugfD-BGplNYfL.js} +1 -1
  6. package/build/assets/{Balloons-CqQICrNd-BGoQrXhe.js → Balloons-C0le0djA-Rl3P1-Qw.js} +1 -1
  7. package/build/assets/{BidiComponent-CkI6DfPr-CbrqDKKX.js → BidiComponent-BsO32qTF-CaRsffwV.js} +1 -1
  8. package/build/assets/{Button-BOmzB5Yb-Bpnf-WZl.js → Button-AgVrhiWW-CQ3htb45.js} +1 -1
  9. package/build/assets/{ButtonGroup-C5sVTynN-DPa0Tx1x.js → ButtonGroup-DhgjbbBB-UV1LCvdW.js} +1 -1
  10. package/build/assets/{CameraInput-C1f0GN0n-Bo12mEPo.js → CameraInput-CEJ0-YBv-CmSkei37.js} +1 -1
  11. package/build/assets/{ChatInput-ClqoaQw2-PqG4grVV.js → ChatInput-C2YGDsKa-C1FEQeOd.js} +1 -1
  12. package/build/assets/{Checkbox-ClzElazy-D-AYf8eH.js → Checkbox-DpcMXROE-DSO9dPZW.js} +1 -1
  13. package/build/assets/{ColorPicker-mCkrAGPa-CtUHNwYp.js → ColorPicker-DfcSCXdu-BA37Ck4e.js} +1 -1
  14. package/build/assets/{ComponentInstance-B_1vn-IY-BM9ElpU6.js → ComponentInstance-CZJj3rmu-NhIcYIOG.js} +1 -1
  15. package/build/assets/{DataFrame-CXPcdw96-Crfv7wfu.js → DataFrame-BARAH3XB-CnqwPbPm.js} +5 -5
  16. package/build/assets/{DateInput-DzaFFasw-CiMjvLKg.js → DateInput-dJ0HrH9I-DL8FHvR-.js} +1 -1
  17. package/build/assets/{DateTimeInput-WmD8vSCU-K1wv6LRy.js → DateTimeInput-Dc_pZKKa-C7OxzebL.js} +1 -1
  18. package/build/assets/{DeckGlJsonChart-CDmFrnUQ-CKLXTmyf.js → DeckGlJsonChart-dSij3LC8-z_q2cC3l.js} +1 -1
  19. package/build/assets/{DownloadButton-g54AS0W2-qOKvF9wp.js → DownloadButton-5Bz1-AC5-BKem2rXk.js} +1 -1
  20. package/build/assets/{ErrorOutline.esm-B1NqpuZN-D4cKYVYX.js → ErrorOutline.esm-BskdUBnE-7qRVaCY5.js} +1 -1
  21. package/build/assets/{Feedback-DTXGrEzp-Dd_SGEH7.js → Feedback-CQYxHKC--CSr7C1Wx.js} +1 -1
  22. package/build/assets/{FileDownload.esm-B_usFfyI-DvbGAuNe.js → FileDownload.esm-r6GccJGR-bDEy_L2M.js} +1 -1
  23. package/build/assets/{FileUploader-CzCdIxed-CWWB6xZB.js → FileUploader-CFj8fg_u-D1JfDby-.js} +1 -1
  24. package/build/assets/{FormSubmitContent-CstMuKlS-CwJlipqn.js → FormSubmitContent-RGGkQf1N-DmLXheJT.js} +1 -1
  25. package/build/assets/{GraphVizChart-nJ8rg3sZ-B_FsOCth.js → GraphVizChart-BKutiaGH-CUH7s5dq.js} +1 -1
  26. package/build/assets/{Html-CkFoh4ns-BXVZGZ2C.js → Html-D45ILBvq-DbWAwYlg.js} +1 -1
  27. package/build/assets/{IFrame-BklekJPV-_sg-kw0j.js → IFrame-DK-NJrL7-0m_xaaau.js} +1 -1
  28. package/build/assets/{ImageList-l3ue-eW1-CIwYKSdj.js → ImageList-I3kPNHfL-D4nqsHeP.js} +1 -1
  29. package/build/assets/{InputInstructions-C3LBp4_M-BIHPK8ho.js → InputInstructions-C-Zf4oQL-DB03cpCg.js} +1 -1
  30. package/build/assets/{Json-DmaVI2eK-CplwjZhb.js → Json-DSgvYeF6-CGGD4AZF.js} +1 -1
  31. package/build/assets/{LinkButton-D87rEwzB-C31w_f7c.js → LinkButton-DLHHsxjM-CI62E9Lm.js} +1 -1
  32. package/build/assets/{MenuButton-DCWYT9Sm-Cjs_mH64.js → MenuButton-Oq8rRct9-ZWaMUcpm.js} +1 -1
  33. package/build/assets/{Metric-B85kD6qx-D6Bt_A2_.js → Metric-B0YF468a-CFi-iNGW.js} +1 -1
  34. package/build/assets/{Multiselect-Dj9HMUjc-C1tpZV37.js → Multiselect-CVHVCj3g-BAkweYLb.js} +1 -1
  35. package/build/assets/{NumberInput-Bz1Z4Olo-HwfUQwvD.js → NumberInput-eLkJ0pTb-Bm92Kd3x.js} +1 -1
  36. package/build/assets/{PageLink-DxIPOlCu-CAX1QvMp.js → PageLink--V5rxSOF-BYF5Fo3G.js} +1 -1
  37. package/build/assets/{Particles-CgV8FzZe-CZFoM1Ot.js → Particles-DDLlrLpr-LgL3KDiE.js} +1 -1
  38. package/build/assets/{PlotlyChart-DApJXgoh-msWOSLU2.js → PlotlyChart-BVhQF5xf-Bvz7Dcax.js} +1 -1
  39. package/build/assets/{Progress-DXRywIcj-D00Siwwp.js → Progress-BokEk05X-Bv2QkIp3.js} +1 -1
  40. package/build/assets/{ProgressBar-By08lmvS-BN2oE7g_.js → ProgressBar-Buvlf_pb-DyD7N0tJ.js} +1 -1
  41. package/build/assets/{Radio-DZEQy4hT-Cx0uGU2K.js → Radio-CUrfrjvU-B2myln1A.js} +1 -1
  42. package/build/assets/{Selectbox-BywNaXj9-EovVNC_I.js → Selectbox-DwkeQO0S-BhQZidV7.js} +1 -1
  43. package/build/assets/{Slider-sLEYxDUG-Bby7yVsF.js → Slider--afJTFYr-thOxe-ly.js} +1 -1
  44. package/build/assets/{Snow-MxXLnUX_-CCUTgEUd.js → Snow-dqZuIKEv-DME-mG7b.js} +1 -1
  45. package/build/assets/{Spinner-D-YJYPV5-qoM-yuRL.js → Spinner-Bk-w9tKQ-Bwm_Vk6T.js} +1 -1
  46. package/build/assets/{StreamlitSyntaxHighlighter-y_BJ441X-Do55UoZC.js → StreamlitSyntaxHighlighter-U8o3ATK--CsLsQIfZ.js} +1 -1
  47. package/build/assets/{Table-ah-SFAz4-BuzfN8wv.js → Table-JcIvdLi_-D87CQj8k.js} +1 -1
  48. package/build/assets/{TableChart.esm-x67iDGlj-hZSJidLi.js → TableChart.esm-Dpji9oSF-DM4jytuW.js} +1 -1
  49. package/build/assets/{TextArea-COwbG28l-yfu63ssv.js → TextArea-DnpuYIA5-BF6b1Uz8.js} +1 -1
  50. package/build/assets/{TextInput-CPqz-18c-DPGxqoCs.js → TextInput-BOxdqnrF-BhQogAHg.js} +1 -1
  51. package/build/assets/{TimeInput-BQ-fP8Yi-FMCqKedu.js → TimeInput-CjU6O1Hm-BfH2ACHB.js} +1 -1
  52. package/build/assets/{Toast-CGUHIZQI-39x9j5Rs.js → Toast-Dxo0ZqMx-ZaDpGanl.js} +1 -1
  53. package/build/assets/{Video-CWomx7KF-nGUBPGaY.js → Video-CYwcC1JG-ulcwxNbn.js} +1 -1
  54. package/build/assets/{WidgetLabel-DUaobbKW-DD-xWyXR.js → WidgetLabel-DTUHhtk_-EPIQC9md.js} +1 -1
  55. package/build/assets/{WidgetLabelHelpIcon-Dk_Qm9_8-CtMOr4fX.js → WidgetLabelHelpIcon-CfpOYjLN-CUGwBOM8.js} +1 -1
  56. package/build/assets/{WidgetLabelHelpIconInline-CkTH9muE-i_BwkvTR.js → WidgetLabelHelpIconInline-D4j09uRD-MZxp3LdE.js} +1 -1
  57. package/build/assets/{_baseAssignValue-DbpQ8D1L-D2c_-zPN.js → _baseAssignValue-CBJGGLCx-DiCzbxPi.js} +1 -1
  58. package/build/assets/{base-input-CUlWnT-V-BhBQbzWk.js → base-input-YEUHRI4X-r3jc5z5D.js} +1 -1
  59. package/build/assets/{checkbox-CEu7IJmq-3LmskyhR.js → checkbox-iHgvbvtl-BQg_ZqeS.js} +1 -1
  60. package/build/assets/{constants-BFZIinC9-BhIl5GAK.js → constants-PqcOHKIA-Am2_uapM.js} +1 -1
  61. package/build/assets/{createDownloadLinkElement-CO9Q-pa0-BNUtAwjF.js → createDownloadLinkElement-CwAYcc1e-DbJb0I6l.js} +1 -1
  62. package/build/assets/{createSuper-CPupKoXU-C5x8b8jJ.js → createSuper-DwpxHxg4-FoILwayq.js} +1 -1
  63. package/build/assets/{data-grid-overlay-editor-D7_bQukB-DqAp5wnt.js → data-grid-overlay-editor-CLo-w1F9-B0x2Sg0-.js} +1 -1
  64. package/build/assets/{downloader-CZ7qD7NY-DGAnDDXL.js → downloader-CZ7qD7NY-Df1O1edF.js} +1 -1
  65. package/build/assets/{embed-Dc8baQ26-DAsqJZrc.js → embed-Dq8jQdGh-CBVvTzpb.js} +1 -1
  66. package/build/assets/{es6-BxevHr5y-DDD2E1qH.js → es6-BxevHr5y-BuJv1L-s.js} +2 -2
  67. package/build/assets/{formatNumber-DxMjoq14-D-XVTuz9.js → formatNumber-DefaFHuv-BSZLG6Yx.js} +1 -1
  68. package/build/assets/{iconPosition-9UgvX_TD-BzkVt95G.js → iconPosition-BPGPKkjQ-DDZxDFyf.js} +1 -1
  69. package/build/assets/{iframeResizer.contentWindow-CCqu70r3-2dQhJjwY.js → iframeResizer.contentWindow-bVTYWYos-CjhKIaGT.js} +1 -1
  70. package/build/assets/{index-BV2WTlzI-BDu7x5w-.js → index-BxCkce84-CXTDYP74.js} +1 -1
  71. package/build/assets/{index-DJf52eor.js → index-CHE20_1-.js} +6 -6
  72. package/build/assets/{index-CDNzkMOW-Ci5P-rfD.js → index-CeKcUppy-CpcuvBWq.js} +1 -1
  73. package/build/assets/{index-Co96_X1M-Dl06Rnsd.js → index-D1kjTmWN-D-hzXEqP.js} +1 -1
  74. package/build/assets/{index-BoaYS_fk-BOYhDwkq.js → index-DJIbJyKa-D4FORpfO.js} +1 -1
  75. package/build/assets/{index-CJ4tMOMA-DwN410du.js → index-I7jKEriY-B-n9NbT_.js} +1 -1
  76. package/build/assets/{input-HUYzfsf9-BxmLV7Ek.js → input-YNBnpJ12-038QD4s4.js} +1 -1
  77. package/build/assets/{memory-C-LDMFc2-DmYLyk9H.js → memory-C-LDMFc2-CpCm65Br.js} +1 -1
  78. package/build/assets/{number-overlay-editor-BQXyYsVn-Dh7S4LVs.js → number-overlay-editor-Cdnv58wS-HWHegkI_.js} +1 -1
  79. package/build/assets/{pandasStylerUtils-BVB-ECxE-CDURxvwo.js → pandasStylerUtils-DjDsh9Sw-f2V2gA5b.js} +1 -1
  80. package/build/assets/{possibleConstructorReturn-YeRoNy63-B2FGD3ja.js → possibleConstructorReturn-p-fKXom_-BPFgGBwd.js} +1 -1
  81. package/build/assets/{reactJsonViewCompat-CeSrJm8p-le930912.js → reactJsonViewCompat-gGOZBlvq-BHD6wBsT.js} +1 -1
  82. package/build/assets/{sandbox-DbnteG5V-yqy_7sO8.js → sandbox-DbnteG5V-DKMo4DSb.js} +1 -1
  83. package/build/assets/{select-haj_e3M_-P2nevO2w.js → select-DbfjugKJ-C8EDw3eO.js} +1 -1
  84. package/build/assets/{sprintfjs-DwuHM96D-Dbm-A0ro.js → sprintfjs-D5kvUrjM--36qIaY-.js} +1 -1
  85. package/build/assets/{stateful-menu-DhWFcRsJ-hkmyKt6q.js → stateful-menu-DsDbGVB_-C8xJ2Uve.js} +1 -1
  86. package/build/assets/{styled-components-BwoIjXty-eQCTyKeV.js → styled-components-BsL0GiBO-C2azWTC8.js} +1 -1
  87. package/build/assets/{styled-components-CggDa8xh-DRn7YfuV.js → styled-components-CZ4GSHz4-BVEj2YLE.js} +1 -1
  88. package/build/assets/{styled-components-CRl5ROSi-CaifWlLZ.js → styled-components-aeDchaOw-CDmV3dyQ.js} +1 -1
  89. package/build/assets/{timepicker-t1TdfIJG-CM4-XB8w.js → timepicker-BIFo5a1u-DTWDwWXK.js} +1 -1
  90. package/build/assets/{toConsumableArray-DtFGUM3A-BLxO6YGd.js → toConsumableArray-BJ_-nsuo-BPUSYd8M.js} +1 -1
  91. package/build/assets/{useBasicWidgetState-Bd8NTj87-Cqs9ZQAV.js → useBasicWidgetState-oLSfk0mv-C-D-ncQp.js} +1 -1
  92. package/build/assets/{useIntlLocale-CXWYgGQX-B2q3sAu2.js → useIntlLocale-BELAEOpY-BzvvmoUT.js} +1 -1
  93. package/build/assets/{useSelectCommon-O2yZsfjb-6cuQoolB.js → useSelectCommon-_ffsRexw-DbdQDzQX.js} +1 -1
  94. package/build/assets/{useTextInputAutoExpand-BTuNAk3V-5wcrsLsu.js → useTextInputAutoExpand-Coetw41P-BCx9E5Py.js} +1 -1
  95. package/build/assets/{useUpdateUiValue-B574r2my-B36XHNQq.js → useUpdateUiValue-CAsGHNl5-wS4IfynZ.js} +1 -1
  96. package/build/assets/{useWaveformController-EemjKAv5-CT3VAgB8.js → useWaveformController-B-n3rX5g-BppMHOmS.js} +1 -1
  97. package/build/assets/{utils-DNbZWtPr-BHo82ec1.js → utils-CzD7XIpv-COJ6XrrX.js} +1 -1
  98. package/build/assets/{withCalculatedWidth-CswVJ4Re-BeXEmgBt.js → withCalculatedWidth-nNNFed9I-Fzz_WpIw.js} +1 -1
  99. package/build/assets/{withFullScreenWrapper-CKo__VbV-B1HqecCF.js → withFullScreenWrapper-jebSlaHO-C2WriMN7.js} +1 -1
  100. package/build/electron/main.js +2 -2
  101. package/build/electron/manifest.js +1 -0
  102. package/build/index.html +1 -1
  103. package/package.json +6 -5
  104. package/wheels/streamlit-1.56.0-cp313-none-any.whl +0 -0
@@ -1,4 +1,4 @@
1
- import{w as Vt,aA as vs,aB as Td,aC as kz,ay as Ez,x as $z,aD as Sz}from"./index-DJf52eor.js";import{w as sp,L as Ta,M as uc,P as Az,G as up,r as Dz,O as Cz,D as Fz,C as Mz,Z as Oz,_ as Tz,J as Ok,Y as Mu,V as sb,U as lp,b as qo,m as mo,t as Wo,X as Nz,y as Js,E as Tk,W as zz,e as Rz}from"./threshold-C_rop_uq-CSTNJaOo.js";import{e as K0,F as Nd,O as Pz,c as Lz,d as Bz,x as Iz,p as jz,o as Uz,A as qz,J as Wz,a as Hz,t as Gz,r as Vz,l as Yz,H as Rc,Z as ty,k as Ie,h as cp,W as eC,b as fp,T as nC,B as Xz,f as ub,w as lb,z as cb,P as Nk,g as zk}from"./value-FXychKGJ-DfnNAqu8.js";import{r as fb,g as Jz,x as Zz,v as Qz,w as Kz,f as t7,B as e7,P as n7,t as r7}from"./timer-CuhnLtz1-DD8qTMUW.js";var fg={};const _ft=t=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:t.genericFonts.bodyFont,color:t.colors.bodyText,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,backgroundColor:Ez(t.colors.bgColor,.05),fontSize:t.fontSizes.twoSm,boxShadow:t.shadows.tooltip,maxWidth:t.sizes.maxChartTooltipWidth,padding:`${t.spacing.xs} ${t.spacing.md}`,borderRadius:t.radii.default,zIndex:t.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:t.spacing.none,marginBottom:t.spacing.sm,fontSize:t.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:t.spacing.threeXS,paddingBottom:t.spacing.threeXS},"td.key":{maxWidth:`calc((${t.sizes.maxChartTooltipWidth} - 2 * ${t.spacing.md}) * 0.4)`,textAlign:"right",color:t.colors.fadedText60,whiteSpace:"nowrap",paddingRight:t.spacing.twoXS},"td.value":{maxWidth:`calc((${t.sizes.maxChartTooltipWidth} - 2 * ${t.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),wft=$z("div",{target:"egd2k5h0"})(({theme:t,useContainerWidth:e,useContainerHeight:n})=>({width:e?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,zIndex:t.zIndices.popup,top:`calc(${t.iconSizes.md} + 2 * ${t.spacing.xs} + ${t.spacing.xs})`,right:0,backgroundColor:t.colors.bgColor,boxShadow:t.shadows.popover,border:`${t.sizes.borderWidth} solid ${t.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:t.radii.default,a:{fontFamily:t.genericFonts.bodyFont,fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.md,margin:0,padding:`${t.spacing.twoXS} ${t.spacing.twoXL}`,color:t.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:t.colors.darkenedBgMix15,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:t.spacing.xs,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.default,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix15},svg:{width:t.iconSizes.md,height:t.iconSizes.md}}}}),"");function kft(t,e){const n={font:e.genericFonts.bodyFont,background:e.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:e.colors.headingColor,titleFontStyle:"normal",fontWeight:e.fontWeights.bold,fontSize:Vt(e.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:e.fontWeights.normal,titleFontSize:Vt(e.fontSizes.md),titleColor:vs(e),titleFontStyle:"normal",labelFontSize:Vt(e.fontSizes.twoSm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),labelFontStyle:"normal"},axis:{labelFontSize:Vt(e.fontSizes.twoSm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),labelFontStyle:"normal",titleFontWeight:e.fontWeights.normal,titleFontSize:Vt(e.fontSizes.sm),titleColor:vs(e),titleFontStyle:"normal",ticks:!1,gridColor:Td(e),domain:!1,domainWidth:1,domainColor:Td(e),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Vt(e.spacing.lg),labelPadding:Vt(e.spacing.lg),labelSeparation:Vt(e.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Vt(e.fontSizes.sm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),titleFontSize:Vt(e.fontSizes.sm),titleFontWeight:e.fontWeights.normal,titleFontStyle:"normal",titleColor:vs(e),titlePadding:Vt(e.spacing.twoXS),labelPadding:Vt(e.spacing.lg),columnPadding:Vt(e.spacing.sm),rowPadding:Vt(e.spacing.twoXS),padding:Vt(e.spacing.sm),symbolStrokeWidth:Vt(e.spacing.twoXS)},range:{category:e.colors.chartCategoricalColors,diverging:e.colors.chartDivergingColors,ramp:e.colors.chartSequentialColors,heatmap:e.colors.chartSequentialColors},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Vt(e.sizes.defaultChartHeight),continuousWidth:Vt(e.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:{content:"encoding"},color:e.colors.chartCategoricalColors[0]},bar:{binSpacing:Vt(e.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return t?kz({},n,t,(r,i)=>Array.isArray(i)?i:void 0):n}function Eft(t,e){const{colors:n,fontSizes:r,genericFonts:i}=e,o={labelFont:i.bodyFont,titleFont:i.bodyFont,labelFontSize:Vt(r.twoSm),titleFontSize:Vt(r.twoSm)},a={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Td(e),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Td(e),continuousHeight:Vt(e.sizes.defaultChartHeight),continuousWidth:Vt(e.sizes.defaultChartWidth)},mark:{tooltip:!0}};return t?Sz({},a,t):a}function En(t,e,n){return t.fields=e||[],t.fname=n,t}function Kt(t){return t==null?null:t.fname}function qe(t){return t==null?null:t.fields}function rC(t){return t.length===1?i7(t[0]):o7(t)}const i7=t=>function(e){return e[t]},o7=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function R(t){throw Error(t)}function si(t){const e=[],n=t.length;let r=null,i=0,o="",a,s,u;t=t+"";function l(){e.push(o+t.substring(a,s)),o="",a=s+1}for(a=s=0;s<n;++s)if(u=t[s],u==="\\")o+=t.substring(a,s++),a=s;else if(u===r)l(),r=null,i=-1;else{if(r)continue;a===i&&u==='"'||a===i&&u==="'"?(a=s+1,r=u):u==="."&&!i?s>a?l():a=s+1:u==="["?(s>a&&l(),i=a=s+1):u==="]"&&(i||R("Access path missing open bracket: "+t),i>0&&l(),i=0,a=s+1)}return i&&R("Access path missing closing bracket: "+t),r&&R("Access path missing closing quote: "+t),s>a&&(s++,l()),e}function Zn(t,e,n){const r=si(t);return t=r.length===1?r[0]:t,En((n&&n.get||rC)(r),[t],e||t)}const Pc=Zn("id"),Ve=En(t=>t,[],"identity"),po=En(()=>0,[],"zero"),Ou=En(()=>1,[],"one"),Qn=En(()=>!0,[],"true"),oo=En(()=>!1,[],"false"),db=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(t=>typeof Object.prototype[t]=="function"),"__proto__"]);function a7(t,e,n){const r=[e].concat([].slice.call(n));console[t].apply(console,r)}const iC=0,hb=1,pb=2,oC=3,aC=4;function dp(t,e,n=a7){let r=t||iC;return{level(i){return arguments.length?(r=+i,this):r},error(){return r>=hb&&n(e||"error","ERROR",arguments),this},warn(){return r>=pb&&n(e||"warn","WARN",arguments),this},info(){return r>=oC&&n(e||"log","INFO",arguments),this},debug(){return r>=aC&&n(e||"log","DEBUG",arguments),this}}}var P=Array.isArray;function X(t){return t===Object(t)}const Rk=t=>t!=="__proto__";function Tu(...t){return t.reduce((e,n)=>{for(const r in n)if(r==="signals")e.signals=s7(e.signals,n.signals);else{const i=r==="legend"?{layout:1}:r==="style"?!0:null;Nu(e,r,n[r],i)}return e},{})}function Nu(t,e,n,r){if(!Rk(e))return;let i,o;if(X(n)&&!P(n)){o=X(t[e])?t[e]:t[e]={};for(i in n)r&&(r===!0||r[i])?Nu(o,i,n[i]):Rk(i)&&(o[i]=n[i])}else t[e]=n}function s7(t,e){if(t==null)return e;const n={},r=[];function i(o){n[o.name]||(n[o.name]=1,r.push(o))}return e.forEach(i),t.forEach(i),r}function wt(t){return t[t.length-1]}function je(t){return t==null||t===""?null:+t}const sC=t=>e=>t*Math.exp(e),uC=t=>e=>Math.log(t*e),lC=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),cC=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,zd=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function hp(t,e,n,r){const i=n(t[0]),o=n(wt(t)),a=(o-i)*e;return[r(i-a),r(o-a)]}function fC(t,e){return hp(t,e,je,Ve)}function dC(t,e){var n=Math.sign(t[0]);return hp(t,e,uC(n),sC(n))}function hC(t,e,n){return hp(t,e,zd(n),zd(1/n))}function pC(t,e,n){return hp(t,e,lC(n),cC(n))}function pp(t,e,n,r,i){const o=r(t[0]),a=r(wt(t)),s=e!=null?r(e):(o+a)/2;return[i(s+(o-s)*n),i(s+(a-s)*n)]}function mb(t,e,n){return pp(t,e,n,je,Ve)}function gb(t,e,n){const r=Math.sign(t[0]);return pp(t,e,n,uC(r),sC(r))}function Rd(t,e,n,r){return pp(t,e,n,zd(r),zd(1/r))}function yb(t,e,n,r){return pp(t,e,n,lC(r),cC(r))}function mC(t){return 1+~~(new Date(t).getMonth()/3)}function gC(t){return 1+~~(new Date(t).getUTCMonth()/3)}function J(t){return t!=null?P(t)?t:[t]:[]}function yC(t,e,n){let r=t[0],i=t[1],o;return i<r&&(o=i,i=r,r=o),o=i-r,o>=n-e?[e,n]:[r=Math.min(Math.max(r,e),n-o),r+o]}function ht(t){return typeof t=="function"}const u7="descending";function vb(t,e,n){n=n||{},e=J(e)||[];const r=[],i=[],o={},a=n.comparator||l7;return J(t).forEach((s,u)=>{s!=null&&(r.push(e[u]===u7?-1:1),i.push(s=ht(s)?s:Zn(s,null,n)),(qe(s)||[]).forEach(l=>o[l]=1))}),i.length===0?null:En(a(i,r),Object.keys(o))}const zu=(t,e)=>(t<e||t==null)&&e!=null?-1:(t>e||e==null)&&t!=null?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),l7=(t,e)=>t.length===1?c7(t[0],e[0]):f7(t,e,t.length),c7=(t,e)=>function(n,r){return zu(t(n),t(r))*e},f7=(t,e,n)=>(e.push(0),function(r,i){let o,a=0,s=-1;for(;a===0&&++s<n;)o=t[s],a=zu(o(r),o(i));return a*e[s]});function Ye(t){return ht(t)?t:()=>t}function bb(t,e){let n;return r=>{n&&clearTimeout(n),n=setTimeout(()=>(e(r),n=null),t)}}function dt(t){for(let e,n,r=1,i=arguments.length;r<i;++r){e=arguments[r];for(n in e)t[n]=e[n]}return t}function Qr(t,e){let n=0,r,i,o,a;if(t&&(r=t.length))if(e==null){for(i=t[n];n<r&&(i==null||i!==i);i=t[++n]);for(o=a=i;n<r;++n)i=t[n],i!=null&&(i<o&&(o=i),i>a&&(a=i))}else{for(i=e(t[n]);n<r&&(i==null||i!==i);i=e(t[++n]));for(o=a=i;n<r;++n)i=e(t[n]),i!=null&&(i<o&&(o=i),i>a&&(a=i))}return[o,a]}function vC(t,e){const n=t.length;let r=-1,i,o,a,s,u;if(e==null){for(;++r<n;)if(o=t[r],o!=null&&o>=o){i=a=o;break}if(r===n)return[-1,-1];for(s=u=r;++r<n;)o=t[r],o!=null&&(i>o&&(i=o,s=r),a<o&&(a=o,u=r))}else{for(;++r<n;)if(o=e(t[r],r,t),o!=null&&o>=o){i=a=o;break}if(r===n)return[-1,-1];for(s=u=r;++r<n;)o=e(t[r],r,t),o!=null&&(i>o&&(i=o,s=r),a<o&&(a=o,u=r))}return[s,u]}function Z(t,e){return Object.hasOwn(t,e)}const Af={};function Ru(t){let e={},n;function r(o){return Z(e,o)&&e[o]!==Af}const i={size:0,empty:0,object:e,has:r,get(o){return r(o)?e[o]:void 0},set(o,a){return r(o)||(++i.size,e[o]===Af&&--i.empty),e[o]=a,this},delete(o){return r(o)&&(--i.size,++i.empty,e[o]=Af),this},clear(){i.size=i.empty=0,i.object=e={}},test(o){return arguments.length?(n=o,i):n},clean(){const o={};let a=0;for(const s in e){const u=e[s];u!==Af&&(!n||!n(u))&&(o[s]=u,++a)}i.size=a,i.empty=0,i.object=e=o}};return t&&Object.keys(t).forEach(o=>{i.set(o,t[o])}),i}function bC(t,e,n,r,i,o){if(!n&&n!==0)return o;const a=+n;let s=t[0],u=wt(t),l;u<s&&(l=s,s=u,u=l),l=Math.abs(e-s);const c=Math.abs(u-e);return l<c&&l<=a?r:c<=a?i:o}function G(t,e,n){const r=t.prototype=Object.create(e.prototype);return Object.defineProperty(r,"constructor",{value:t,writable:!0,enumerable:!0,configurable:!0}),dt(r,n)}function Ns(t,e,n,r){let i=e[0],o=e[e.length-1],a;return i>o&&(a=i,i=o,o=a),n=n===void 0||n,r=r===void 0||r,(n?i<=t:i<t)&&(r?t<=o:t<o)}function ts(t){return typeof t=="boolean"}function $o(t){return Object.prototype.toString.call(t)==="[object Date]"}function xC(t){return t&&ht(t[Symbol.iterator])}function $t(t){return typeof t=="number"}function xb(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Y(t){return typeof t=="string"}function _b(t,e,n){t&&(t=e?J(t).map(s=>s.replace(/\\(.)/g,"$1")):J(t));const r=t&&t.length,i=n&&n.get||rC,o=s=>i(e?[s]:si(s));let a;if(!r)a=function(){return""};else if(r===1){const s=o(t[0]);a=function(u){return""+s(u)}}else{const s=t.map(o);a=function(u){let l=""+s[0](u),c=0;for(;++c<r;)l+="|"+s[c](u);return l}}return En(a,t,"key")}function _C(t,e){const n=t[0],r=wt(t),i=+e;return i?i===1?r:n+i*(r-n):n}const d7=1e4;function wC(t){t=+t||d7;let e,n,r;const i=()=>{e={},n={},r=0},o=(a,s)=>(++r>t&&(n=e,e={},r=1),e[a]=s);return i(),{clear:i,has:a=>Z(e,a)||Z(n,a),get:a=>Z(e,a)?e[a]:Z(n,a)?o(a,n[a]):void 0,set:(a,s)=>Z(e,a)?e[a]=s:o(a,s)}}function kC(t,e,n,r){const i=e.length,o=n.length;if(!o)return e;if(!i)return n;const a=r||new e.constructor(i+o);let s=0,u=0,l=0;for(;s<i&&u<o;++l)a[l]=t(e[s],n[u])>0?n[u++]:e[s++];for(;s<i;++s,++l)a[l]=e[s];for(;u<o;++u,++l)a[l]=n[u];return a}function Al(t,e){let n="";for(;--e>=0;)n+=t;return n}function EC(t,e,n,r){const i=n||" ",o=t+"",a=e-o.length;return a<=0?o:r==="left"?Al(i,a)+o:r==="center"?Al(i,~~(a/2))+o+Al(i,Math.ceil(a/2)):o+Al(i,a)}function Lc(t){return t&&wt(t)-t[0]||0}function H(t){return P(t)?`[${t.map(e=>e===null?"null":H(e))}]`:X(t)||Y(t)?JSON.stringify(t).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):t}function wb(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}const h7=t=>$t(t)||$o(t)?t:Date.parse(t);function kb(t,e){return e=e||h7,t==null||t===""?null:e(t)}function Eb(t){return t==null||t===""?null:t+""}function _r(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}function $C(t,e,n,r){const i=r??"…",o=t+"",a=o.length,s=Math.max(0,e-i.length);return a<=e?o:n==="left"?i+o.slice(a-s):n==="center"?o.slice(0,Math.ceil(s/2))+i+o.slice(a-~~(s/2)):o.slice(0,s)+i}function uo(t,e,n){if(t)if(e){const r=t.length;for(let i=0;i<r;++i){const o=e(t[i]);o&&n(o,i,t)}}else t.forEach(n)}var Pk={},dg={},hg=34,rl=10,pg=13;function SC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function p7(t,e){var n=SC(t);return function(r,i){return e(n(r),i,t)}}function Lk(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function hn(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function m7(t){return t<0?"-"+hn(-t,6):t>9999?"+"+hn(t,6):hn(t,4)}function g7(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":m7(t.getUTCFullYear())+"-"+hn(t.getUTCMonth()+1,2)+"-"+hn(t.getUTCDate(),2)+(i?"T"+hn(e,2)+":"+hn(n,2)+":"+hn(r,2)+"."+hn(i,3)+"Z":r?"T"+hn(e,2)+":"+hn(n,2)+":"+hn(r,2)+"Z":n||e?"T"+hn(e,2)+":"+hn(n,2)+"Z":"")}function y7(t){var e=new RegExp('["'+t+`
1
+ import{w as Vt,aA as vs,aB as Td,aC as kz,ay as Ez,x as $z,aD as Sz}from"./index-CHE20_1-.js";import{w as sp,L as Ta,M as uc,P as Az,G as up,r as Dz,O as Cz,D as Fz,C as Mz,Z as Oz,_ as Tz,J as Ok,Y as Mu,V as sb,U as lp,b as qo,m as mo,t as Wo,X as Nz,y as Js,E as Tk,W as zz,e as Rz}from"./threshold-C_rop_uq-CSTNJaOo.js";import{e as K0,F as Nd,O as Pz,c as Lz,d as Bz,x as Iz,p as jz,o as Uz,A as qz,J as Wz,a as Hz,t as Gz,r as Vz,l as Yz,H as Rc,Z as ty,k as Ie,h as cp,W as eC,b as fp,T as nC,B as Xz,f as ub,w as lb,z as cb,P as Nk,g as zk}from"./value-FXychKGJ-DfnNAqu8.js";import{r as fb,g as Jz,x as Zz,v as Qz,w as Kz,f as t7,B as e7,P as n7,t as r7}from"./timer-CuhnLtz1-DD8qTMUW.js";var fg={};const _ft=t=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:t.genericFonts.bodyFont,color:t.colors.bodyText,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,backgroundColor:Ez(t.colors.bgColor,.05),fontSize:t.fontSizes.twoSm,boxShadow:t.shadows.tooltip,maxWidth:t.sizes.maxChartTooltipWidth,padding:`${t.spacing.xs} ${t.spacing.md}`,borderRadius:t.radii.default,zIndex:t.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:t.spacing.none,marginBottom:t.spacing.sm,fontSize:t.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:t.spacing.threeXS,paddingBottom:t.spacing.threeXS},"td.key":{maxWidth:`calc((${t.sizes.maxChartTooltipWidth} - 2 * ${t.spacing.md}) * 0.4)`,textAlign:"right",color:t.colors.fadedText60,whiteSpace:"nowrap",paddingRight:t.spacing.twoXS},"td.value":{maxWidth:`calc((${t.sizes.maxChartTooltipWidth} - 2 * ${t.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),wft=$z("div",{target:"egd2k5h0"})(({theme:t,useContainerWidth:e,useContainerHeight:n})=>({width:e?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,zIndex:t.zIndices.popup,top:`calc(${t.iconSizes.md} + 2 * ${t.spacing.xs} + ${t.spacing.xs})`,right:0,backgroundColor:t.colors.bgColor,boxShadow:t.shadows.popover,border:`${t.sizes.borderWidth} solid ${t.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:t.radii.default,a:{fontFamily:t.genericFonts.bodyFont,fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.md,margin:0,padding:`${t.spacing.twoXS} ${t.spacing.twoXL}`,color:t.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:t.colors.darkenedBgMix15,color:t.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:t.spacing.xs,height:"auto",zIndex:t.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:t.radii.default,color:t.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:t.colors.bodyText,opacity:"1 !important",background:t.colors.darkenedBgMix15},svg:{width:t.iconSizes.md,height:t.iconSizes.md}}}}),"");function kft(t,e){const n={font:e.genericFonts.bodyFont,background:e.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:e.colors.headingColor,titleFontStyle:"normal",fontWeight:e.fontWeights.bold,fontSize:Vt(e.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:e.fontWeights.normal,titleFontSize:Vt(e.fontSizes.md),titleColor:vs(e),titleFontStyle:"normal",labelFontSize:Vt(e.fontSizes.twoSm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),labelFontStyle:"normal"},axis:{labelFontSize:Vt(e.fontSizes.twoSm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),labelFontStyle:"normal",titleFontWeight:e.fontWeights.normal,titleFontSize:Vt(e.fontSizes.sm),titleColor:vs(e),titleFontStyle:"normal",ticks:!1,gridColor:Td(e),domain:!1,domainWidth:1,domainColor:Td(e),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Vt(e.spacing.lg),labelPadding:Vt(e.spacing.lg),labelSeparation:Vt(e.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Vt(e.fontSizes.sm),labelFontWeight:e.fontWeights.normal,labelColor:vs(e),titleFontSize:Vt(e.fontSizes.sm),titleFontWeight:e.fontWeights.normal,titleFontStyle:"normal",titleColor:vs(e),titlePadding:Vt(e.spacing.twoXS),labelPadding:Vt(e.spacing.lg),columnPadding:Vt(e.spacing.sm),rowPadding:Vt(e.spacing.twoXS),padding:Vt(e.spacing.sm),symbolStrokeWidth:Vt(e.spacing.twoXS)},range:{category:e.colors.chartCategoricalColors,diverging:e.colors.chartDivergingColors,ramp:e.colors.chartSequentialColors,heatmap:e.colors.chartSequentialColors},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Vt(e.sizes.defaultChartHeight),continuousWidth:Vt(e.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:{content:"encoding"},color:e.colors.chartCategoricalColors[0]},bar:{binSpacing:Vt(e.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return t?kz({},n,t,(r,i)=>Array.isArray(i)?i:void 0):n}function Eft(t,e){const{colors:n,fontSizes:r,genericFonts:i}=e,o={labelFont:i.bodyFont,titleFont:i.bodyFont,labelFontSize:Vt(r.twoSm),titleFontSize:Vt(r.twoSm)},a={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Td(e),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Td(e),continuousHeight:Vt(e.sizes.defaultChartHeight),continuousWidth:Vt(e.sizes.defaultChartWidth)},mark:{tooltip:!0}};return t?Sz({},a,t):a}function En(t,e,n){return t.fields=e||[],t.fname=n,t}function Kt(t){return t==null?null:t.fname}function qe(t){return t==null?null:t.fields}function rC(t){return t.length===1?i7(t[0]):o7(t)}const i7=t=>function(e){return e[t]},o7=t=>{const e=t.length;return function(n){for(let r=0;r<e;++r)n=n[t[r]];return n}};function R(t){throw Error(t)}function si(t){const e=[],n=t.length;let r=null,i=0,o="",a,s,u;t=t+"";function l(){e.push(o+t.substring(a,s)),o="",a=s+1}for(a=s=0;s<n;++s)if(u=t[s],u==="\\")o+=t.substring(a,s++),a=s;else if(u===r)l(),r=null,i=-1;else{if(r)continue;a===i&&u==='"'||a===i&&u==="'"?(a=s+1,r=u):u==="."&&!i?s>a?l():a=s+1:u==="["?(s>a&&l(),i=a=s+1):u==="]"&&(i||R("Access path missing open bracket: "+t),i>0&&l(),i=0,a=s+1)}return i&&R("Access path missing closing bracket: "+t),r&&R("Access path missing closing quote: "+t),s>a&&(s++,l()),e}function Zn(t,e,n){const r=si(t);return t=r.length===1?r[0]:t,En((n&&n.get||rC)(r),[t],e||t)}const Pc=Zn("id"),Ve=En(t=>t,[],"identity"),po=En(()=>0,[],"zero"),Ou=En(()=>1,[],"one"),Qn=En(()=>!0,[],"true"),oo=En(()=>!1,[],"false"),db=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(t=>typeof Object.prototype[t]=="function"),"__proto__"]);function a7(t,e,n){const r=[e].concat([].slice.call(n));console[t].apply(console,r)}const iC=0,hb=1,pb=2,oC=3,aC=4;function dp(t,e,n=a7){let r=t||iC;return{level(i){return arguments.length?(r=+i,this):r},error(){return r>=hb&&n(e||"error","ERROR",arguments),this},warn(){return r>=pb&&n(e||"warn","WARN",arguments),this},info(){return r>=oC&&n(e||"log","INFO",arguments),this},debug(){return r>=aC&&n(e||"log","DEBUG",arguments),this}}}var P=Array.isArray;function X(t){return t===Object(t)}const Rk=t=>t!=="__proto__";function Tu(...t){return t.reduce((e,n)=>{for(const r in n)if(r==="signals")e.signals=s7(e.signals,n.signals);else{const i=r==="legend"?{layout:1}:r==="style"?!0:null;Nu(e,r,n[r],i)}return e},{})}function Nu(t,e,n,r){if(!Rk(e))return;let i,o;if(X(n)&&!P(n)){o=X(t[e])?t[e]:t[e]={};for(i in n)r&&(r===!0||r[i])?Nu(o,i,n[i]):Rk(i)&&(o[i]=n[i])}else t[e]=n}function s7(t,e){if(t==null)return e;const n={},r=[];function i(o){n[o.name]||(n[o.name]=1,r.push(o))}return e.forEach(i),t.forEach(i),r}function wt(t){return t[t.length-1]}function je(t){return t==null||t===""?null:+t}const sC=t=>e=>t*Math.exp(e),uC=t=>e=>Math.log(t*e),lC=t=>e=>Math.sign(e)*Math.log1p(Math.abs(e/t)),cC=t=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*t,zd=t=>e=>e<0?-Math.pow(-e,t):Math.pow(e,t);function hp(t,e,n,r){const i=n(t[0]),o=n(wt(t)),a=(o-i)*e;return[r(i-a),r(o-a)]}function fC(t,e){return hp(t,e,je,Ve)}function dC(t,e){var n=Math.sign(t[0]);return hp(t,e,uC(n),sC(n))}function hC(t,e,n){return hp(t,e,zd(n),zd(1/n))}function pC(t,e,n){return hp(t,e,lC(n),cC(n))}function pp(t,e,n,r,i){const o=r(t[0]),a=r(wt(t)),s=e!=null?r(e):(o+a)/2;return[i(s+(o-s)*n),i(s+(a-s)*n)]}function mb(t,e,n){return pp(t,e,n,je,Ve)}function gb(t,e,n){const r=Math.sign(t[0]);return pp(t,e,n,uC(r),sC(r))}function Rd(t,e,n,r){return pp(t,e,n,zd(r),zd(1/r))}function yb(t,e,n,r){return pp(t,e,n,lC(r),cC(r))}function mC(t){return 1+~~(new Date(t).getMonth()/3)}function gC(t){return 1+~~(new Date(t).getUTCMonth()/3)}function J(t){return t!=null?P(t)?t:[t]:[]}function yC(t,e,n){let r=t[0],i=t[1],o;return i<r&&(o=i,i=r,r=o),o=i-r,o>=n-e?[e,n]:[r=Math.min(Math.max(r,e),n-o),r+o]}function ht(t){return typeof t=="function"}const u7="descending";function vb(t,e,n){n=n||{},e=J(e)||[];const r=[],i=[],o={},a=n.comparator||l7;return J(t).forEach((s,u)=>{s!=null&&(r.push(e[u]===u7?-1:1),i.push(s=ht(s)?s:Zn(s,null,n)),(qe(s)||[]).forEach(l=>o[l]=1))}),i.length===0?null:En(a(i,r),Object.keys(o))}const zu=(t,e)=>(t<e||t==null)&&e!=null?-1:(t>e||e==null)&&t!=null?1:(e=e instanceof Date?+e:e,(t=t instanceof Date?+t:t)!==t&&e===e?-1:e!==e&&t===t?1:0),l7=(t,e)=>t.length===1?c7(t[0],e[0]):f7(t,e,t.length),c7=(t,e)=>function(n,r){return zu(t(n),t(r))*e},f7=(t,e,n)=>(e.push(0),function(r,i){let o,a=0,s=-1;for(;a===0&&++s<n;)o=t[s],a=zu(o(r),o(i));return a*e[s]});function Ye(t){return ht(t)?t:()=>t}function bb(t,e){let n;return r=>{n&&clearTimeout(n),n=setTimeout(()=>(e(r),n=null),t)}}function dt(t){for(let e,n,r=1,i=arguments.length;r<i;++r){e=arguments[r];for(n in e)t[n]=e[n]}return t}function Qr(t,e){let n=0,r,i,o,a;if(t&&(r=t.length))if(e==null){for(i=t[n];n<r&&(i==null||i!==i);i=t[++n]);for(o=a=i;n<r;++n)i=t[n],i!=null&&(i<o&&(o=i),i>a&&(a=i))}else{for(i=e(t[n]);n<r&&(i==null||i!==i);i=e(t[++n]));for(o=a=i;n<r;++n)i=e(t[n]),i!=null&&(i<o&&(o=i),i>a&&(a=i))}return[o,a]}function vC(t,e){const n=t.length;let r=-1,i,o,a,s,u;if(e==null){for(;++r<n;)if(o=t[r],o!=null&&o>=o){i=a=o;break}if(r===n)return[-1,-1];for(s=u=r;++r<n;)o=t[r],o!=null&&(i>o&&(i=o,s=r),a<o&&(a=o,u=r))}else{for(;++r<n;)if(o=e(t[r],r,t),o!=null&&o>=o){i=a=o;break}if(r===n)return[-1,-1];for(s=u=r;++r<n;)o=e(t[r],r,t),o!=null&&(i>o&&(i=o,s=r),a<o&&(a=o,u=r))}return[s,u]}function Z(t,e){return Object.hasOwn(t,e)}const Af={};function Ru(t){let e={},n;function r(o){return Z(e,o)&&e[o]!==Af}const i={size:0,empty:0,object:e,has:r,get(o){return r(o)?e[o]:void 0},set(o,a){return r(o)||(++i.size,e[o]===Af&&--i.empty),e[o]=a,this},delete(o){return r(o)&&(--i.size,++i.empty,e[o]=Af),this},clear(){i.size=i.empty=0,i.object=e={}},test(o){return arguments.length?(n=o,i):n},clean(){const o={};let a=0;for(const s in e){const u=e[s];u!==Af&&(!n||!n(u))&&(o[s]=u,++a)}i.size=a,i.empty=0,i.object=e=o}};return t&&Object.keys(t).forEach(o=>{i.set(o,t[o])}),i}function bC(t,e,n,r,i,o){if(!n&&n!==0)return o;const a=+n;let s=t[0],u=wt(t),l;u<s&&(l=s,s=u,u=l),l=Math.abs(e-s);const c=Math.abs(u-e);return l<c&&l<=a?r:c<=a?i:o}function G(t,e,n){const r=t.prototype=Object.create(e.prototype);return Object.defineProperty(r,"constructor",{value:t,writable:!0,enumerable:!0,configurable:!0}),dt(r,n)}function Ns(t,e,n,r){let i=e[0],o=e[e.length-1],a;return i>o&&(a=i,i=o,o=a),n=n===void 0||n,r=r===void 0||r,(n?i<=t:i<t)&&(r?t<=o:t<o)}function ts(t){return typeof t=="boolean"}function $o(t){return Object.prototype.toString.call(t)==="[object Date]"}function xC(t){return t&&ht(t[Symbol.iterator])}function $t(t){return typeof t=="number"}function xb(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Y(t){return typeof t=="string"}function _b(t,e,n){t&&(t=e?J(t).map(s=>s.replace(/\\(.)/g,"$1")):J(t));const r=t&&t.length,i=n&&n.get||rC,o=s=>i(e?[s]:si(s));let a;if(!r)a=function(){return""};else if(r===1){const s=o(t[0]);a=function(u){return""+s(u)}}else{const s=t.map(o);a=function(u){let l=""+s[0](u),c=0;for(;++c<r;)l+="|"+s[c](u);return l}}return En(a,t,"key")}function _C(t,e){const n=t[0],r=wt(t),i=+e;return i?i===1?r:n+i*(r-n):n}const d7=1e4;function wC(t){t=+t||d7;let e,n,r;const i=()=>{e={},n={},r=0},o=(a,s)=>(++r>t&&(n=e,e={},r=1),e[a]=s);return i(),{clear:i,has:a=>Z(e,a)||Z(n,a),get:a=>Z(e,a)?e[a]:Z(n,a)?o(a,n[a]):void 0,set:(a,s)=>Z(e,a)?e[a]=s:o(a,s)}}function kC(t,e,n,r){const i=e.length,o=n.length;if(!o)return e;if(!i)return n;const a=r||new e.constructor(i+o);let s=0,u=0,l=0;for(;s<i&&u<o;++l)a[l]=t(e[s],n[u])>0?n[u++]:e[s++];for(;s<i;++s,++l)a[l]=e[s];for(;u<o;++u,++l)a[l]=n[u];return a}function Al(t,e){let n="";for(;--e>=0;)n+=t;return n}function EC(t,e,n,r){const i=n||" ",o=t+"",a=e-o.length;return a<=0?o:r==="left"?Al(i,a)+o:r==="center"?Al(i,~~(a/2))+o+Al(i,Math.ceil(a/2)):o+Al(i,a)}function Lc(t){return t&&wt(t)-t[0]||0}function H(t){return P(t)?`[${t.map(e=>e===null?"null":H(e))}]`:X(t)||Y(t)?JSON.stringify(t).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):t}function wb(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}const h7=t=>$t(t)||$o(t)?t:Date.parse(t);function kb(t,e){return e=e||h7,t==null||t===""?null:e(t)}function Eb(t){return t==null||t===""?null:t+""}function _r(t){const e={},n=t.length;for(let r=0;r<n;++r)e[t[r]]=!0;return e}function $C(t,e,n,r){const i=r??"…",o=t+"",a=o.length,s=Math.max(0,e-i.length);return a<=e?o:n==="left"?i+o.slice(a-s):n==="center"?o.slice(0,Math.ceil(s/2))+i+o.slice(a-~~(s/2)):o.slice(0,s)+i}function uo(t,e,n){if(t)if(e){const r=t.length;for(let i=0;i<r;++i){const o=e(t[i]);o&&n(o,i,t)}}else t.forEach(n)}var Pk={},dg={},hg=34,rl=10,pg=13;function SC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function p7(t,e){var n=SC(t);return function(r,i){return e(n(r),i,t)}}function Lk(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function hn(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function m7(t){return t<0?"-"+hn(-t,6):t>9999?"+"+hn(t,6):hn(t,4)}function g7(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":m7(t.getUTCFullYear())+"-"+hn(t.getUTCMonth()+1,2)+"-"+hn(t.getUTCDate(),2)+(i?"T"+hn(e,2)+":"+hn(n,2)+":"+hn(r,2)+"."+hn(i,3)+"Z":r?"T"+hn(e,2)+":"+hn(n,2)+":"+hn(r,2)+"Z":n||e?"T"+hn(e,2)+":"+hn(n,2)+"Z":"")}function y7(t){var e=new RegExp('["'+t+`
2
2
  \r]`),n=t.charCodeAt(0);function r(f,d){var h,p,m=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?p7(g,d):SC(g)});return m.columns=p||[],m}function i(f,d){var h=[],p=f.length,m=0,g=0,y,v=p<=0,b=!1;f.charCodeAt(p-1)===rl&&--p,f.charCodeAt(p-1)===pg&&--p;function x(){if(v)return dg;if(b)return b=!1,Pk;var k,_=m,E;if(f.charCodeAt(_)===hg){for(;m++<p&&f.charCodeAt(m)!==hg||f.charCodeAt(++m)===hg;);return(k=m)>=p?v=!0:(E=f.charCodeAt(m++))===rl?b=!0:E===pg&&(b=!0,f.charCodeAt(m)===rl&&++m),f.slice(_+1,k-1).replace(/""/g,'"')}for(;m<p;){if((E=f.charCodeAt(k=m++))===rl)b=!0;else if(E===pg)b=!0,f.charCodeAt(m)===rl&&++m;else if(E!==n)continue;return f.slice(_,k)}return v=!0,f.slice(_,p)}for(;(y=x())!==dg;){for(var w=[];y!==Pk&&y!==dg;)w.push(y),y=x();d&&(w=d(w,g++))==null||h.push(w)}return h}function o(f,d){return f.map(function(h){return d.map(function(p){return c(h[p])}).join(t)})}function a(f,d){return d==null&&(d=Lk(f)),[d.map(c).join(t)].concat(o(f,d)).join(`
3
3
  `)}function s(f,d){return d==null&&(d=Lk(f)),o(f,d).join(`
4
4
  `)}function u(f){return f.map(l).join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/downloader-CZ7qD7NY-DGAnDDXL.js","assets/index-DJf52eor.js","assets/index-Bdx5V1kE.css","assets/sandbox-DbnteG5V-yqy_7sO8.js","assets/memory-C-LDMFc2-DmYLyk9H.js"])))=>i.map(i=>d[i]);
2
- import{a$ as b}from"./index-DJf52eor.js";const k=globalThis.showDirectoryPicker;async function j(i={}){if(k&&!i._preferPolyfill)return k(i);const e=document.createElement("input");e.type="file",e.webkitdirectory=!0,e.multiple=!0,e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",document.body.appendChild(e);const t=Promise.resolve().then(()=>A);return await new Promise(r=>{e.addEventListener("change",r),e.click()}),t.then(r=>r.getDirHandlesFromInput(e))}const N={accepts:[]},x=globalThis.showOpenFilePicker;async function L(i={}){const e={...N,...i};if(x&&!i._preferPolyfill)return x(e);const t=document.createElement("input");t.type="file",t.multiple=e.multiple,t.accept=(e.accepts||[]).map(n=>[...(n.extensions||[]).map(s=>"."+s),...n.mimeTypes||[]]).flat().join(","),Object.assign(t.style,{position:"fixed",top:"-100000px",left:"-100000px"}),document.body.appendChild(t);const r=Promise.resolve().then(()=>A);return await new Promise(n=>{t.addEventListener("change",n,{once:!0}),t.click()}),t.remove(),r.then(n=>n.getFileHandlesFromInput(t))}const I=globalThis.showSaveFilePicker;async function W(i={}){if(I&&!i._preferPolyfill)return I(i);i._name&&(console.warn("deprecated _name, spec now have `suggestedName`"),i.suggestedName=i._name);const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h),{FileHandle:t}=await b(async()=>{const{FileHandle:r}=await import("./downloader-CZ7qD7NY-DGAnDDXL.js");return{FileHandle:r}},__vite__mapDeps([0,1,2]));return new e(new t(i.suggestedName))}globalThis.DataTransferItem&&!DataTransferItem.prototype.getAsFileSystemHandle&&(DataTransferItem.prototype.getAsFileSystemHandle=async function(){const i=this.webkitGetAsEntry(),[{FileHandle:e,FolderHandle:t},{FileSystemDirectoryHandle:r},{FileSystemFileHandle:n}]=await Promise.all([b(()=>import("./sandbox-DbnteG5V-yqy_7sO8.js"),__vite__mapDeps([3,1,2])),Promise.resolve().then(()=>_),Promise.resolve().then(()=>h)]);return i.isFile?new n(new e(i,!1)):new r(new t(i,!1))});async function R(i,e={}){if(!i)return globalThis.navigator?.storage?.getDirectory()||globalThis.getOriginPrivateDirectory();const{FileSystemDirectoryHandle:t}=await Promise.resolve().then(()=>_),r=await i,n=await(r.default?r.default(e):r(e));return new t(n)}const q={WritableStream:globalThis.WritableStream,TransformStream:globalThis.TransformStream,DOMException:globalThis.DOMException,Blob:globalThis.Blob,File:globalThis.File},{WritableStream:z}=q;class m extends z{#e;constructor(e){super(e),this.#e=e,Object.setPrototypeOf(this,m.prototype),this._closed=!1}async close(){this._closed=!0;const e=this.getWriter(),t=e.close();return e.releaseLock(),t}seek(e){return this.write({type:"seek",position:e})}truncate(e){return this.write({type:"truncate",size:e})}write(e){if(this._closed)return Promise.reject(new TypeError("Cannot write to a CLOSED writable stream"));const t=this.getWriter(),r=t.write(e);return t.releaseLock(),r}}Object.defineProperty(m.prototype,Symbol.toStringTag,{value:"FileSystemWritableFileStream",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(m.prototype,{close:{enumerable:!0},seek:{enumerable:!0},truncate:{enumerable:!0},write:{enumerable:!0}});globalThis.FileSystemFileHandle&&!globalThis.FileSystemFileHandle.prototype.createWritable&&!globalThis.FileSystemWritableFileStream&&(globalThis.FileSystemWritableFileStream=m);const y=Symbol("adapter");class T{[y];name;kind;constructor(e){this.kind=e.kind,this.name=e.name,this[y]=e}async queryPermission(e={}){const{mode:t="read"}=e,r=this[y];if(r.queryPermission)return r.queryPermission({mode:t});if(t==="read")return"granted";if(t==="readwrite")return r.writable?"granted":"denied";throw new TypeError(`Mode ${t} must be 'read' or 'readwrite'`)}async requestPermission({mode:e="read"}={}){const t=this[y];if(t.requestPermission)return t.requestPermission({mode:e});if(e==="read")return"granted";if(e==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e} must be 'read' or 'readwrite'`)}async remove(e={}){await this[y].remove(e)}async isSameEntry(e){return this===e?!0:!e||typeof e!="object"||this.kind!==e.kind||!e[y]?!1:this[y].isSameEntry(e[y])}}Object.defineProperty(T.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0});globalThis.FileSystemHandle&&(globalThis.FileSystemHandle.prototype.queryPermission??=function(i){return"granted"});const O={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:i=>[`Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ${i}`,"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},U={writable:globalThis.WritableStream};async function V(i){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[e,t,r]=await Promise.all([b(()=>import("./memory-C-LDMFc2-DmYLyk9H.js"),__vite__mapDeps([4,1,2])),b(()=>import("./sandbox-DbnteG5V-yqy_7sO8.js"),__vite__mapDeps([3,1,2])),Promise.resolve().then(()=>_)]),n=new e.FolderHandle("",!1);return n._entries=i.map(s=>s.isFile?new t.FileHandle(s,!1):new t.FolderHandle(s,!1)),new r.FileSystemDirectoryHandle(n)}async function B(i){const{FolderHandle:e,FileHandle:t}=await b(async()=>{const{FolderHandle:c,FileHandle:o}=await import("./memory-C-LDMFc2-DmYLyk9H.js");return{FolderHandle:c,FileHandle:o}},__vite__mapDeps([4,1,2])),{FileSystemDirectoryHandle:r}=await Promise.resolve().then(()=>_),n=Array.from(i.files),s=n[0].webkitRelativePath.split("/",1)[0],l=new e(s,!1);return n.forEach(c=>{const o=c.webkitRelativePath.split("/");o.shift();const d=o.pop(),p=o.reduce((f,w)=>(f._entries[w]||(f._entries[w]=new e(w,!1)),f._entries[w]),l);p._entries[d]=new t(c.name,c,!1)}),new r(l)}async function C(i){const{FileHandle:e}=await b(async()=>{const{FileHandle:r}=await import("./memory-C-LDMFc2-DmYLyk9H.js");return{FileHandle:r}},__vite__mapDeps([4,1,2])),{FileSystemFileHandle:t}=await Promise.resolve().then(()=>h);return Array.from(i.files).map(r=>new t(new e(r.name,r,!1)))}const A=Object.freeze(Object.defineProperty({__proto__:null,config:U,errors:O,fromDataTransfer:V,getDirHandlesFromInput:B,getFileHandlesFromInput:C},Symbol.toStringTag,{value:"Module"})),{GONE:$,MOD_ERR:G}=O,u=Symbol("adapter");let S=class H extends T{[u];constructor(e){super(e),this[u]=e}async getDirectoryHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;const r=await this[u].getDirectoryHandle(e,t);return new H(r)}async*entries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h);for await(const[t,r]of this[u].entries())yield[r.name,r.kind==="file"?new e(r):new H(r)]}async*getEntries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h);console.warn("deprecated, use .entries() instead");for await(let t of this[u].entries())yield t.kind==="file"?new e(t):new H(t)}async getFileHandle(e,t={}){const{FileSystemFileHandle:r}=await Promise.resolve().then(()=>h);if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;const n=await this[u].getFileHandle(e,t);return new r(n)}async removeEntry(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[u].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:r,path:n}=t.pop();for await(const s of r.values()){if(await s.isSameEntry(e))return[...n,s.name];s.kind==="directory"&&t.push({handle:s,path:[...n,s.name]})}}return null}async*keys(){for await(const[e]of this[u].entries())yield e}async*values(){for await(const[e,t]of this)yield t}[Symbol.asyncIterator](){return this.entries()}};Object.defineProperty(S.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(S.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});if(globalThis.FileSystemDirectoryHandle){const i=globalThis.FileSystemDirectoryHandle.prototype;i.resolve=async function(n){if(await n.isSameEntry(this))return[];const s=[{handle:this,path:[]}];for(;s.length;){let{handle:l,path:c}=s.pop();for await(const o of l.values()){if(await o.isSameEntry(n))return[...c,o.name];o.kind==="directory"&&s.push({handle:o,path:[...c,o.name]})}}return null};async function e(n){if(await(await navigator.storage.getDirectory()).resolve(n)===null)throw new DOMException(...$)}const t=i.entries;i.entries=async function*(){await e(this),yield*t.call(this)},i[Symbol.asyncIterator]=async function*(){yield*this.entries()};const r=i.removeEntry;i.removeEntry=async function(n,s={}){return r.call(this,n,s).catch(async l=>{throw l instanceof DOMException&&l.name==="UnknownError"&&!s.recursive&&!(await t.call(this).next()).done?new DOMException(...G):l})}}const _=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:S,default:S},Symbol.toStringTag,{value:"Module"})),{INVALID:Y,SYNTAX:D,GONE:X}=O,v=Symbol("adapter");class E extends T{[v];constructor(e){super(e),this[v]=e}async createWritable(e={}){return new m(await this[v].createWritable(e))}async getFile(){return this[v].getFile()}}Object.defineProperty(E.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(E.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});if(globalThis.FileSystemFileHandle&&!globalThis.FileSystemFileHandle.prototype.createWritable){const i=new WeakMap;let e;const t=()=>{let n,s;onmessage=async l=>{const c=l.ports[0],o=l.data;switch(o.type){case"open":const d=o.name;let p=await navigator.storage.getDirectory();for(const f of o.path)p=await p.getDirectoryHandle(f);n=await p.getFileHandle(d),s=await n.createSyncAccessHandle();break;case"write":s.write(o.data,{at:o.position}),s.flush();break;case"truncate":s.truncate(o.size);break;case"abort":case"close":s.close();break}c.postMessage(0)}};globalThis.FileSystemFileHandle.prototype.createWritable=async function(n){if(!e){const a=`(${t.toString()})()`,g=new Blob([a],{type:"text/javascript"});e=URL.createObjectURL(g)}const s=new Worker(e,{type:"module"});let l=0;const c=new TextEncoder;let o=await this.getFile().then(a=>a.size);const d=a=>new Promise((g,M)=>{const F=new MessageChannel;F.port1.onmessage=P=>{P.data instanceof Error?M(P.data):g(P.data),F.port1.close(),F.port2.close(),F.port1.onmessage=null},s.postMessage(a,[F.port2])}),p=await navigator.storage.getDirectory(),f=await i.get(this),w=await p.resolve(f);if(w===null)throw new DOMException(...X);return await d({type:"open",path:w,name:this.name}),n?.keepExistingData===!1&&(await d({type:"truncate",size:0}),o=0),new m({start:a=>{},async write(a){if(a?.constructor===Object?a={...a}:a={type:"write",data:a,position:l},a.type==="write"){if(!("data"in a))throw await d({type:"close"}),new DOMException(...D("write requires a data argument"));if(a.position??=l,typeof a.data=="string")a.data=c.encode(a.data);else if(a.data instanceof ArrayBuffer)a.data=new Uint8Array(a.data);else if(!(a.data instanceof Uint8Array)&&ArrayBuffer.isView(a.data))a.data=new Uint8Array(a.data.buffer,a.data.byteOffset,a.data.byteLength);else if(!(a.data instanceof Uint8Array)){const g=await new Response(a.data).arrayBuffer();a.data=new Uint8Array(g)}Number.isInteger(a.position)&&a.position>=0&&(l=a.position),l+=a.data.byteLength,o+=a.data.byteLength}else if(a.type==="seek")if(Number.isInteger(a.position)&&a.position>=0){if(o<a.position)throw new DOMException(...Y);console.log("seeking",a),l=a.position;return}else throw await d({type:"close"}),new DOMException(...D("seek requires a position argument"));else if(a.type==="truncate")if(Number.isInteger(a.size)&&a.size>=0)o=a.size,l>o&&(l=o);else throw await d({type:"close"}),new DOMException(...D("truncate requires a size argument"));await d(a)},async close(){await d({type:"close"}),s.terminate()},async abort(a){await d({type:"abort",reason:a}),s.terminate()}})};const r=FileSystemDirectoryHandle.prototype.getFileHandle;FileSystemDirectoryHandle.prototype.getFileHandle=async function(...n){const s=await r.call(this,...n);return i.set(s,this),s}}const h=Object.freeze(Object.defineProperty({__proto__:null,FileSystemFileHandle:E,default:E},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:S,FileSystemFileHandle:E,FileSystemHandle:T,FileSystemWritableFileStream:m,getOriginPrivateDirectory:R,showDirectoryPicker:j,showOpenFilePicker:L,showSaveFilePicker:W},Symbol.toStringTag,{value:"Module"}));export{K as a,q as c,O as e};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/downloader-CZ7qD7NY-Df1O1edF.js","assets/index-CHE20_1-.js","assets/index-Bdx5V1kE.css","assets/sandbox-DbnteG5V-DKMo4DSb.js","assets/memory-C-LDMFc2-CpCm65Br.js"])))=>i.map(i=>d[i]);
2
+ import{a$ as b}from"./index-CHE20_1-.js";const k=globalThis.showDirectoryPicker;async function j(i={}){if(k&&!i._preferPolyfill)return k(i);const e=document.createElement("input");e.type="file",e.webkitdirectory=!0,e.multiple=!0,e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",document.body.appendChild(e);const t=Promise.resolve().then(()=>A);return await new Promise(r=>{e.addEventListener("change",r),e.click()}),t.then(r=>r.getDirHandlesFromInput(e))}const N={accepts:[]},x=globalThis.showOpenFilePicker;async function L(i={}){const e={...N,...i};if(x&&!i._preferPolyfill)return x(e);const t=document.createElement("input");t.type="file",t.multiple=e.multiple,t.accept=(e.accepts||[]).map(n=>[...(n.extensions||[]).map(s=>"."+s),...n.mimeTypes||[]]).flat().join(","),Object.assign(t.style,{position:"fixed",top:"-100000px",left:"-100000px"}),document.body.appendChild(t);const r=Promise.resolve().then(()=>A);return await new Promise(n=>{t.addEventListener("change",n,{once:!0}),t.click()}),t.remove(),r.then(n=>n.getFileHandlesFromInput(t))}const I=globalThis.showSaveFilePicker;async function W(i={}){if(I&&!i._preferPolyfill)return I(i);i._name&&(console.warn("deprecated _name, spec now have `suggestedName`"),i.suggestedName=i._name);const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h),{FileHandle:t}=await b(async()=>{const{FileHandle:r}=await import("./downloader-CZ7qD7NY-Df1O1edF.js");return{FileHandle:r}},__vite__mapDeps([0,1,2]));return new e(new t(i.suggestedName))}globalThis.DataTransferItem&&!DataTransferItem.prototype.getAsFileSystemHandle&&(DataTransferItem.prototype.getAsFileSystemHandle=async function(){const i=this.webkitGetAsEntry(),[{FileHandle:e,FolderHandle:t},{FileSystemDirectoryHandle:r},{FileSystemFileHandle:n}]=await Promise.all([b(()=>import("./sandbox-DbnteG5V-DKMo4DSb.js"),__vite__mapDeps([3,1,2])),Promise.resolve().then(()=>_),Promise.resolve().then(()=>h)]);return i.isFile?new n(new e(i,!1)):new r(new t(i,!1))});async function R(i,e={}){if(!i)return globalThis.navigator?.storage?.getDirectory()||globalThis.getOriginPrivateDirectory();const{FileSystemDirectoryHandle:t}=await Promise.resolve().then(()=>_),r=await i,n=await(r.default?r.default(e):r(e));return new t(n)}const q={WritableStream:globalThis.WritableStream,TransformStream:globalThis.TransformStream,DOMException:globalThis.DOMException,Blob:globalThis.Blob,File:globalThis.File},{WritableStream:z}=q;class m extends z{#e;constructor(e){super(e),this.#e=e,Object.setPrototypeOf(this,m.prototype),this._closed=!1}async close(){this._closed=!0;const e=this.getWriter(),t=e.close();return e.releaseLock(),t}seek(e){return this.write({type:"seek",position:e})}truncate(e){return this.write({type:"truncate",size:e})}write(e){if(this._closed)return Promise.reject(new TypeError("Cannot write to a CLOSED writable stream"));const t=this.getWriter(),r=t.write(e);return t.releaseLock(),r}}Object.defineProperty(m.prototype,Symbol.toStringTag,{value:"FileSystemWritableFileStream",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(m.prototype,{close:{enumerable:!0},seek:{enumerable:!0},truncate:{enumerable:!0},write:{enumerable:!0}});globalThis.FileSystemFileHandle&&!globalThis.FileSystemFileHandle.prototype.createWritable&&!globalThis.FileSystemWritableFileStream&&(globalThis.FileSystemWritableFileStream=m);const y=Symbol("adapter");class T{[y];name;kind;constructor(e){this.kind=e.kind,this.name=e.name,this[y]=e}async queryPermission(e={}){const{mode:t="read"}=e,r=this[y];if(r.queryPermission)return r.queryPermission({mode:t});if(t==="read")return"granted";if(t==="readwrite")return r.writable?"granted":"denied";throw new TypeError(`Mode ${t} must be 'read' or 'readwrite'`)}async requestPermission({mode:e="read"}={}){const t=this[y];if(t.requestPermission)return t.requestPermission({mode:e});if(e==="read")return"granted";if(e==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e} must be 'read' or 'readwrite'`)}async remove(e={}){await this[y].remove(e)}async isSameEntry(e){return this===e?!0:!e||typeof e!="object"||this.kind!==e.kind||!e[y]?!1:this[y].isSameEntry(e[y])}}Object.defineProperty(T.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0});globalThis.FileSystemHandle&&(globalThis.FileSystemHandle.prototype.queryPermission??=function(i){return"granted"});const O={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:i=>[`Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ${i}`,"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},U={writable:globalThis.WritableStream};async function V(i){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[e,t,r]=await Promise.all([b(()=>import("./memory-C-LDMFc2-CpCm65Br.js"),__vite__mapDeps([4,1,2])),b(()=>import("./sandbox-DbnteG5V-DKMo4DSb.js"),__vite__mapDeps([3,1,2])),Promise.resolve().then(()=>_)]),n=new e.FolderHandle("",!1);return n._entries=i.map(s=>s.isFile?new t.FileHandle(s,!1):new t.FolderHandle(s,!1)),new r.FileSystemDirectoryHandle(n)}async function B(i){const{FolderHandle:e,FileHandle:t}=await b(async()=>{const{FolderHandle:c,FileHandle:o}=await import("./memory-C-LDMFc2-CpCm65Br.js");return{FolderHandle:c,FileHandle:o}},__vite__mapDeps([4,1,2])),{FileSystemDirectoryHandle:r}=await Promise.resolve().then(()=>_),n=Array.from(i.files),s=n[0].webkitRelativePath.split("/",1)[0],l=new e(s,!1);return n.forEach(c=>{const o=c.webkitRelativePath.split("/");o.shift();const d=o.pop(),p=o.reduce((f,w)=>(f._entries[w]||(f._entries[w]=new e(w,!1)),f._entries[w]),l);p._entries[d]=new t(c.name,c,!1)}),new r(l)}async function C(i){const{FileHandle:e}=await b(async()=>{const{FileHandle:r}=await import("./memory-C-LDMFc2-CpCm65Br.js");return{FileHandle:r}},__vite__mapDeps([4,1,2])),{FileSystemFileHandle:t}=await Promise.resolve().then(()=>h);return Array.from(i.files).map(r=>new t(new e(r.name,r,!1)))}const A=Object.freeze(Object.defineProperty({__proto__:null,config:U,errors:O,fromDataTransfer:V,getDirHandlesFromInput:B,getFileHandlesFromInput:C},Symbol.toStringTag,{value:"Module"})),{GONE:$,MOD_ERR:G}=O,u=Symbol("adapter");let S=class H extends T{[u];constructor(e){super(e),this[u]=e}async getDirectoryHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;const r=await this[u].getDirectoryHandle(e,t);return new H(r)}async*entries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h);for await(const[t,r]of this[u].entries())yield[r.name,r.kind==="file"?new e(r):new H(r)]}async*getEntries(){const{FileSystemFileHandle:e}=await Promise.resolve().then(()=>h);console.warn("deprecated, use .entries() instead");for await(let t of this[u].entries())yield t.kind==="file"?new e(t):new H(t)}async getFileHandle(e,t={}){const{FileSystemFileHandle:r}=await Promise.resolve().then(()=>h);if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");t.create=!!t.create;const n=await this[u].getFileHandle(e,t);return new r(n)}async removeEntry(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[u].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:r,path:n}=t.pop();for await(const s of r.values()){if(await s.isSameEntry(e))return[...n,s.name];s.kind==="directory"&&t.push({handle:s,path:[...n,s.name]})}}return null}async*keys(){for await(const[e]of this[u].entries())yield e}async*values(){for await(const[e,t]of this)yield t}[Symbol.asyncIterator](){return this.entries()}};Object.defineProperty(S.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(S.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});if(globalThis.FileSystemDirectoryHandle){const i=globalThis.FileSystemDirectoryHandle.prototype;i.resolve=async function(n){if(await n.isSameEntry(this))return[];const s=[{handle:this,path:[]}];for(;s.length;){let{handle:l,path:c}=s.pop();for await(const o of l.values()){if(await o.isSameEntry(n))return[...c,o.name];o.kind==="directory"&&s.push({handle:o,path:[...c,o.name]})}}return null};async function e(n){if(await(await navigator.storage.getDirectory()).resolve(n)===null)throw new DOMException(...$)}const t=i.entries;i.entries=async function*(){await e(this),yield*t.call(this)},i[Symbol.asyncIterator]=async function*(){yield*this.entries()};const r=i.removeEntry;i.removeEntry=async function(n,s={}){return r.call(this,n,s).catch(async l=>{throw l instanceof DOMException&&l.name==="UnknownError"&&!s.recursive&&!(await t.call(this).next()).done?new DOMException(...G):l})}}const _=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:S,default:S},Symbol.toStringTag,{value:"Module"})),{INVALID:Y,SYNTAX:D,GONE:X}=O,v=Symbol("adapter");class E extends T{[v];constructor(e){super(e),this[v]=e}async createWritable(e={}){return new m(await this[v].createWritable(e))}async getFile(){return this[v].getFile()}}Object.defineProperty(E.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(E.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});if(globalThis.FileSystemFileHandle&&!globalThis.FileSystemFileHandle.prototype.createWritable){const i=new WeakMap;let e;const t=()=>{let n,s;onmessage=async l=>{const c=l.ports[0],o=l.data;switch(o.type){case"open":const d=o.name;let p=await navigator.storage.getDirectory();for(const f of o.path)p=await p.getDirectoryHandle(f);n=await p.getFileHandle(d),s=await n.createSyncAccessHandle();break;case"write":s.write(o.data,{at:o.position}),s.flush();break;case"truncate":s.truncate(o.size);break;case"abort":case"close":s.close();break}c.postMessage(0)}};globalThis.FileSystemFileHandle.prototype.createWritable=async function(n){if(!e){const a=`(${t.toString()})()`,g=new Blob([a],{type:"text/javascript"});e=URL.createObjectURL(g)}const s=new Worker(e,{type:"module"});let l=0;const c=new TextEncoder;let o=await this.getFile().then(a=>a.size);const d=a=>new Promise((g,M)=>{const F=new MessageChannel;F.port1.onmessage=P=>{P.data instanceof Error?M(P.data):g(P.data),F.port1.close(),F.port2.close(),F.port1.onmessage=null},s.postMessage(a,[F.port2])}),p=await navigator.storage.getDirectory(),f=await i.get(this),w=await p.resolve(f);if(w===null)throw new DOMException(...X);return await d({type:"open",path:w,name:this.name}),n?.keepExistingData===!1&&(await d({type:"truncate",size:0}),o=0),new m({start:a=>{},async write(a){if(a?.constructor===Object?a={...a}:a={type:"write",data:a,position:l},a.type==="write"){if(!("data"in a))throw await d({type:"close"}),new DOMException(...D("write requires a data argument"));if(a.position??=l,typeof a.data=="string")a.data=c.encode(a.data);else if(a.data instanceof ArrayBuffer)a.data=new Uint8Array(a.data);else if(!(a.data instanceof Uint8Array)&&ArrayBuffer.isView(a.data))a.data=new Uint8Array(a.data.buffer,a.data.byteOffset,a.data.byteLength);else if(!(a.data instanceof Uint8Array)){const g=await new Response(a.data).arrayBuffer();a.data=new Uint8Array(g)}Number.isInteger(a.position)&&a.position>=0&&(l=a.position),l+=a.data.byteLength,o+=a.data.byteLength}else if(a.type==="seek")if(Number.isInteger(a.position)&&a.position>=0){if(o<a.position)throw new DOMException(...Y);console.log("seeking",a),l=a.position;return}else throw await d({type:"close"}),new DOMException(...D("seek requires a position argument"));else if(a.type==="truncate")if(Number.isInteger(a.size)&&a.size>=0)o=a.size,l>o&&(l=o);else throw await d({type:"close"}),new DOMException(...D("truncate requires a size argument"));await d(a)},async close(){await d({type:"close"}),s.terminate()},async abort(a){await d({type:"abort",reason:a}),s.terminate()}})};const r=FileSystemDirectoryHandle.prototype.getFileHandle;FileSystemDirectoryHandle.prototype.getFileHandle=async function(...n){const s=await r.call(this,...n);return i.set(s,this),s}}const h=Object.freeze(Object.defineProperty({__proto__:null,FileSystemFileHandle:E,default:E},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:S,FileSystemFileHandle:E,FileSystemHandle:T,FileSystemWritableFileStream:m,getOriginPrivateDirectory:R,showDirectoryPicker:j,showOpenFilePicker:L,showSaveFilePicker:W},Symbol.toStringTag,{value:"Module"}));export{K as a,q as c,O as e};
@@ -1 +1 @@
1
- import{i as n}from"./numbro-CDdPhOTG-s-4vlRUZ.js";import{I as s}from"./sprintfjs-DwuHM96D-Dbm-A0ro.js";import{i as o,V as e}from"./index-DJf52eor.js";function u(i){if(i===0||Math.abs(i)>=1e-4)return 4;const a=i.toExponential().split("e");return Math.abs(parseInt(a[1],10))}function r(i,a={}){const t=navigator.languages;try{return new Intl.NumberFormat(t,a).format(i)}catch(m){if(m instanceof RangeError)return new Intl.NumberFormat(void 0,a).format(i);throw m}}function y(i,a,t){return Number.isNaN(i)||!Number.isFinite(i)?"":o(a)||a===""?e(t)?(t===0&&(i=Math.round(i)),n(i).format({thousandSeparated:!1,mantissa:t,trimMantissa:!1})):n(i).format({thousandSeparated:!1,mantissa:u(i),trimMantissa:!0}):a==="plain"?n(i).format({thousandSeparated:!1,mantissa:20,trimMantissa:!0}):a==="localized"?r(i,{minimumFractionDigits:t??void 0,maximumFractionDigits:t??void 0}):a==="percent"?r(i,{style:"percent",minimumFractionDigits:e(t)?Math.max(t-2,0):0,maximumFractionDigits:e(t)?Math.max(t-2,0):2}):a==="dollar"?r(i,{style:"currency",currency:"USD",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??2,maximumFractionDigits:t??2}):a==="euro"?r(i,{style:"currency",currency:"EUR",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??2,maximumFractionDigits:t??2}):a==="yen"?r(i,{style:"currency",currency:"JPY",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??0,maximumFractionDigits:t??0}):["compact","scientific","engineering"].includes(a)?r(i,{notation:a}):a==="accounting"?n(i).format({thousandSeparated:!0,negative:"parenthesis",mantissa:t??2,trimMantissa:!1}):a==="bytes"?r(i,{notation:"compact",style:"unit",unit:"byte",unitDisplay:"narrow",maximumFractionDigits:1}).replace("BB","GB"):s(a,i)}function p(i){if(i.trim()==="")return!1;const a=Number(i);return!Number.isNaN(a)&&Number.isFinite(a)}export{y as p,p as y};
1
+ import{i as n}from"./numbro-CDdPhOTG-s-4vlRUZ.js";import{I as s}from"./sprintfjs-D5kvUrjM--36qIaY-.js";import{i as o,V as e}from"./index-CHE20_1-.js";function u(i){if(i===0||Math.abs(i)>=1e-4)return 4;const a=i.toExponential().split("e");return Math.abs(parseInt(a[1],10))}function r(i,a={}){const t=navigator.languages;try{return new Intl.NumberFormat(t,a).format(i)}catch(m){if(m instanceof RangeError)return new Intl.NumberFormat(void 0,a).format(i);throw m}}function y(i,a,t){return Number.isNaN(i)||!Number.isFinite(i)?"":o(a)||a===""?e(t)?(t===0&&(i=Math.round(i)),n(i).format({thousandSeparated:!1,mantissa:t,trimMantissa:!1})):n(i).format({thousandSeparated:!1,mantissa:u(i),trimMantissa:!0}):a==="plain"?n(i).format({thousandSeparated:!1,mantissa:20,trimMantissa:!0}):a==="localized"?r(i,{minimumFractionDigits:t??void 0,maximumFractionDigits:t??void 0}):a==="percent"?r(i,{style:"percent",minimumFractionDigits:e(t)?Math.max(t-2,0):0,maximumFractionDigits:e(t)?Math.max(t-2,0):2}):a==="dollar"?r(i,{style:"currency",currency:"USD",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??2,maximumFractionDigits:t??2}):a==="euro"?r(i,{style:"currency",currency:"EUR",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??2,maximumFractionDigits:t??2}):a==="yen"?r(i,{style:"currency",currency:"JPY",currencyDisplay:"narrowSymbol",minimumFractionDigits:t??0,maximumFractionDigits:t??0}):["compact","scientific","engineering"].includes(a)?r(i,{notation:a}):a==="accounting"?n(i).format({thousandSeparated:!0,negative:"parenthesis",mantissa:t??2,trimMantissa:!1}):a==="bytes"?r(i,{notation:"compact",style:"unit",unit:"byte",unitDisplay:"narrow",maximumFractionDigits:1}).replace("BB","GB"):s(a,i)}function p(i){if(i.trim()==="")return!1;const a=Number(i);return!Number.isNaN(a)&&Number.isFinite(a)}export{y as p,p as y};
@@ -1 +1 @@
1
- import{P as t}from"./index-DJf52eor.js";const i={[t.ButtonLikeIconPosition.LEFT]:"left",[t.ButtonLikeIconPosition.RIGHT]:"right"};function r(o){return i[o??t.ButtonLikeIconPosition.LEFT]}export{r};
1
+ import{P as t}from"./index-CHE20_1-.js";const i={[t.ButtonLikeIconPosition.LEFT]:"left",[t.ButtonLikeIconPosition.RIGHT]:"right"};function r(o){return i[o??t.ButtonLikeIconPosition.LEFT]}export{r};
@@ -1 +1 @@
1
- import{ad as ot}from"./index-DJf52eor.js";var ze={exports:{}},Re;function it(){return Re||(Re=1,(function(ke){(function(s){if(typeof window>"u")return;var b=!0,Le=10,te="",q=0,k="",H=null,ne="",L=!1,Fe={resize:1,click:1},W=128,oe=!0,A=1,B="bodyOffset",h=B,ie=!0,re="",C={},O=32,ae=null,J=!1,U=!1,F="[iFrameSizer]",ue=F.length,P="",ce={max:1,min:1,bodyScroll:1,documentElementScroll:1},_="child",se=window.parent,x="*",V=0,D=!1,fe=null,z=16,R=1,de="scroll",p=de,Pe=window,X=function(){T("onMessage function not defined")},Y=function(){},K=function(){},Q={height:function(){return T("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return T("Custom width calculation function not defined"),document.body.scrollWidth}},G={},le=!1;function me(){}try{var ge=Object.create({},{passive:{get:function(){le=!0}}});window.addEventListener("test",me,ge),window.removeEventListener("test",me,ge)}catch{}function I(e,t,n,o){e.addEventListener(t,n,le?o||{}:!1)}function De(e,t,n){e.removeEventListener(t,n,!1)}function he(e){return e.charAt(0).toUpperCase()+e.slice(1)}function je(e){var t,n,o,a=null,f=0,m=function(){f=Date.now(),a=null,o=e.apply(t,n),a||(t=n=null)};return function(){var l=Date.now();f||(f=l);var u=z-(l-f);return t=this,n=arguments,u<=0||u>z?(a&&(clearTimeout(a),a=null),f=l,o=e.apply(t,n),a||(t=n=null)):a||(a=setTimeout(m,u)),o}}function pe(e){return F+"["+P+"] "+e}function i(e){J&&typeof window.console=="object"&&console.log(pe(e))}function T(e){typeof window.console=="object"&&console.warn(pe(e))}function qe(){He(),i("Initialising iFrame ("+window.location.href+")"),Be(),Ue(),Z("background",te),Z("padding",ne),Ye(),we(),be(),_e(),Ge(),Qe(),Te(),C=Ke(),M("init","Init message from host page"),Y()}function He(){function e(n){return n==="true"}var t=re.slice(ue).split(":");P=t[0],q=s===t[1]?q:Number(t[1]),L=s===t[2]?L:e(t[2]),J=s===t[3]?J:e(t[3]),O=s===t[4]?O:Number(t[4]),b=s===t[6]?b:e(t[6]),k=t[7],h=s===t[8]?h:t[8],te=t[9],ne=t[10],V=s===t[11]?V:Number(t[11]),C.enable=s===t[12]?!1:e(t[12]),_=s===t[13]?_:t[13],p=s===t[14]?p:t[14],U=s===t[15]?U:e(t[15])}function We(e){var t=e.split("Callback");if(t.length===2){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],T("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function Be(){function e(){var n=window.iFrameResizer;i("Reading data from page: "+JSON.stringify(n)),Object.keys(n).forEach(We,n),X="onMessage"in n?n.onMessage:X,Y="onReady"in n?n.onReady:Y,x="targetOrigin"in n?n.targetOrigin:x,h="heightCalculationMethod"in n?n.heightCalculationMethod:h,p="widthCalculationMethod"in n?n.widthCalculationMethod:p}function t(n,o){return typeof n=="function"&&(i("Setup custom "+o+"CalcMethod"),Q[o]=n,n="custom"),n}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),h=t(h,"height"),p=t(p,"width")),i("TargetOrigin for parent set to: "+x)}function Je(e,t){return t.indexOf("-")!==-1&&(T("Negative CSS value ignored for "+e),t=""),t}function Z(e,t){s!==t&&t!==""&&t!=="null"&&(document.body.style[e]=t,i("Body "+e+' set to "'+t+'"'))}function Ue(){s===k&&(k=q+"px"),Z("margin",Je("margin",k))}function _e(){document.documentElement.style.height="",document.body.style.height="",i('HTML & body height set to "auto"')}function g(e){var t={add:function(n){function o(){M(e.eventName,e.eventType)}G[n]=o,I(window,n,o,{passive:!0})},remove:function(n){var o=G[n];delete G[n],De(window,n,o)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),i(he(e.method)+" event listener: "+e.eventType)}function ve(e){g({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),g({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),g({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),g({method:e,eventType:"Input",eventName:"input"}),g({method:e,eventType:"Mouse Up",eventName:"mouseup"}),g({method:e,eventType:"Mouse Down",eventName:"mousedown"}),g({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),g({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),g({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),g({method:e,eventType:"Touch Start",eventName:"touchstart"}),g({method:e,eventType:"Touch End",eventName:"touchend"}),g({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),g({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),g({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),g({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),_==="child"&&g({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ye(e,t,n,o){return t!==e&&(e in n||(T(e+" is not a valid option for "+o+"CalculationMethod."),e=t),i(o+' calculation method set to "'+e+'"')),e}function we(){h=ye(h,B,E,"height")}function be(){p=ye(p,de,S,"width")}function Te(){b===!0?(ve("add"),$e()):i("Auto Resize disabled")}function Ve(){H!==null&&H.disconnect()}function Xe(){ve("remove"),Ve(),clearInterval(ae)}function Ye(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}function Ke(){function e(){return{x:window.pageXOffset===s?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===s?document.documentElement.scrollTop:window.pageYOffset}}function t(u){var c=u.getBoundingClientRect(),d=e();return{x:parseInt(c.left,10)+parseInt(d.x,10),y:parseInt(c.top,10)+parseInt(d.y,10)}}function n(u){function c(w){var N=t(w);i("Moving to in page link (#"+d+") at x: "+N.x+" y: "+N.y),v(N.y,N.x,"scrollToOffset")}var d=u.split("#")[1]||u,r=decodeURIComponent(d),y=document.getElementById(r)||document.getElementsByName(r)[0];s===y?(i("In page link (#"+d+") not found in iFrame, so sending to parent"),v(0,0,"inPageLink","#"+d)):c(y)}function o(){var u=window.location.hash,c=window.location.href;u!==""&&u!=="#"&&n(c)}function a(){function u(c){function d(r){r.preventDefault(),n(this.getAttribute("href"))}c.getAttribute("href")!=="#"&&I(c,"click",d)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),u)}function f(){I(window,"hashchange",o)}function m(){setTimeout(o,W)}function l(){Array.prototype.forEach&&document.querySelectorAll?(i("Setting up location.hash handlers"),a(),f(),m()):T("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return C.enable?l():i("In page linking not enabled"),{findTarget:n}}function Qe(){if(U!==!0)return;function e(n){v(0,0,n.type,n.screenY+":"+n.screenX)}function t(n,o){i("Add event listener: "+o),I(window.document,n,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}function Ge(){i("Enable public methods"),Pe.parentIFrame={autoResize:function(e){return e===!0&&b===!1?(b=!0,Te()):e===!1&&b===!0&&(b=!1,Xe()),v(0,0,"autoResize",JSON.stringify(b)),b},close:function(){v(0,0,"close")},getId:function(){return P},getPageInfo:function(e){typeof e=="function"?(K=e,v(0,0,"pageInfo")):(K=function(){},v(0,0,"pageInfoStop"))},moveToAnchor:function(e){C.findTarget(e)},reset:function(){Ae("parentIFrame.reset")},scrollTo:function(e,t){v(t,e,"scrollTo")},scrollToOffset:function(e,t){v(t,e,"scrollToOffset")},sendMessage:function(e,t){v(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){h=e,we()},setWidthCalculationMethod:function(e){p=e,be()},setTargetOrigin:function(e){i("Set targetOrigin: "+e),x=e},size:function(e,t){var n=""+(e||"")+(t?","+t:"");M("size","parentIFrame.size("+n+")",e,t)}}}function Ee(){O!==0&&(i("setInterval: "+O+"ms"),ae=setInterval(function(){M("interval","setInterval: "+O)},Math.abs(O)))}function Ze(){function e(r){function y(w){w.complete===!1&&(i("Attach listeners to "+w.src),w.addEventListener("load",a,!1),w.addEventListener("error",f,!1),u.push(w))}r.type==="attributes"&&r.attributeName==="src"?y(r.target):r.type==="childList"&&Array.prototype.forEach.call(r.target.querySelectorAll("img"),y)}function t(r){u.splice(u.indexOf(r),1)}function n(r){i("Remove listeners from "+r.src),r.removeEventListener("load",a,!1),r.removeEventListener("error",f,!1),t(r)}function o(r,y,w){n(r.target),M(y,w+": "+r.target.src)}function a(r){o(r,"imageLoad","Image loaded")}function f(r){o(r,"imageLoadFailed","Image load failed")}function m(r){M("mutationObserver","mutationObserver: "+r[0].target+" "+r[0].type),r.forEach(e)}function l(){var r=document.querySelector("body"),y={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new c(m),i("Create body MutationObserver"),d.observe(r,y),d}var u=[],c=window.MutationObserver||window.WebKitMutationObserver,d=l();return{disconnect:function(){"disconnect"in d&&(i("Disconnect body MutationObserver"),d.disconnect(),u.forEach(n))}}}function $e(){var e=0>O;window.MutationObserver||window.WebKitMutationObserver?e?Ee():H=Ze():(i("MutationObserver not supported in this browser!"),Ee())}function $(e,t){var n=0;return t=t||document.body,n=document.defaultView.getComputedStyle(t,null),n=n===null?0:n[e],parseInt(n,Le)}function et(e){e>z/2&&(z=2*e,i("Event throttle increased to "+z+"ms"))}function ee(e,t){for(var n=t.length,o=0,a=0,f=he(e),m=Date.now(),l=0;l<n;l++)o=t[l].getBoundingClientRect()[e]+$("margin"+f,t[l]),o>a&&(a=o);return m=Date.now()-m,i("Parsed "+n+" HTML elements"),i("Element position calculated in "+m+"ms"),et(m),a}function j(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function Oe(e,t){function n(){return T("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}var o=document.querySelectorAll("["+t+"]");return o.length===0&&n(),ee(e,o)}function Se(){return document.querySelectorAll("body *")}var E={bodyOffset:function(){return document.body.offsetHeight+$("marginTop")+$("marginBottom")},offset:function(){return E.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,j(E))},min:function(){return Math.min.apply(null,j(E))},grow:function(){return E.max()},lowestElement:function(){return Math.max(E.bodyOffset()||E.documentElementOffset(),ee("bottom",Se()))},taggedElement:function(){return Oe("bottom","data-iframe-height")}},S={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(S.bodyScroll(),S.documentElementScroll())},max:function(){return Math.max.apply(null,j(S))},min:function(){return Math.min.apply(null,j(S))},rightMostElement:function(){return ee("right",Se())},taggedElement:function(){return Oe("right","data-iframe-width")}};function Me(e,t,n,o){function a(){A=d,R=r,v(A,R,e)}function f(){function y(w,N){var nt=Math.abs(w-N)<=V;return!nt}return d=s===n?E[h]():n,r=s===o?S[p]():o,y(A,d)||L&&y(R,r)}function m(){return!(e in{init:1,interval:1,size:1})}function l(){return h in ce||L&&p in ce}function u(){i("No change in size detected")}function c(){m()&&l()?Ae(t):e in{interval:1}||u()}var d,r;f()||e==="init"?(Ie(),a()):c()}var tt=je(Me);function M(e,t,n,o){function a(){e in{reset:1,resetPage:1,init:1}||i("Trigger event: "+t)}function f(){return D&&e in Fe}f()?i("Trigger event cancelled: "+e):(a(),e==="init"?Me(e,t,n,o):tt(e,t,n,o))}function Ie(){D||(D=!0,i("Trigger event lock on")),clearTimeout(fe),fe=setTimeout(function(){D=!1,i("Trigger event lock off"),i("--")},W)}function Ne(e){A=E[h](),R=S[p](),v(A,R,e)}function Ae(e){var t=h;h=B,i("Reset trigger event: "+e),Ie(),Ne("reset"),h=t}function v(e,t,n,o,a){function f(){s===a?a=x:i("Message targetOrigin: "+a)}function m(){var l=e+":"+t,u=P+":"+l+":"+n+(s===o?"":":"+o);i("Sending message to host page ("+u+")"),se.postMessage(F+u,a)}f(),m()}function Ce(e){var t={init:function(){re=e.data,se=e.source,qe(),oe=!1,setTimeout(function(){ie=!1},W)},reset:function(){ie?i("Page reset ignored by init"):(i("Page size reset by host page"),Ne("resetPage"))},resize:function(){M("resizeParent","Parent window requested size check")},moveToAnchor:function(){C.findTarget(a())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var c=a();i("PageInfoFromParent called from parent: "+c),K(JSON.parse(c)),i(" --")},message:function(){var c=a();i("onMessage called from parent: "+c),X(JSON.parse(c)),i(" --")}};function n(){return F===(""+e.data).slice(0,ue)}function o(){return e.data.split("]")[1].split(":")[0]}function a(){return e.data.slice(e.data.indexOf(":")+1)}function f(){return!ke.exports&&"iFrameResize"in window||window.jQuery!==s&&"iFrameResize"in window.jQuery.prototype}function m(){return e.data.split(":")[2]in{true:1,false:1}}function l(){var c=o();c in t?t[c]():!f()&&!m()&&T("Unexpected message ("+e.data+")")}function u(){oe===!1?l():m()?t.init():i('Ignored message of type "'+o()+'". Received before initialization.')}n()&&u()}function xe(){document.readyState!=="loading"&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}"iframeResizer"in window||(window.iframeChildListener=function(e){Ce({data:e})},I(window,"message",Ce),I(window,"readystatechange",xe),xe())})()})(ze)),ze.exports}var rt=it();const at=ot(rt),ct=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));export{ct as i};
1
+ import{ad as ot}from"./index-CHE20_1-.js";var ze={exports:{}},Re;function it(){return Re||(Re=1,(function(ke){(function(s){if(typeof window>"u")return;var b=!0,Le=10,te="",q=0,k="",H=null,ne="",L=!1,Fe={resize:1,click:1},W=128,oe=!0,A=1,B="bodyOffset",h=B,ie=!0,re="",C={},O=32,ae=null,J=!1,U=!1,F="[iFrameSizer]",ue=F.length,P="",ce={max:1,min:1,bodyScroll:1,documentElementScroll:1},_="child",se=window.parent,x="*",V=0,D=!1,fe=null,z=16,R=1,de="scroll",p=de,Pe=window,X=function(){T("onMessage function not defined")},Y=function(){},K=function(){},Q={height:function(){return T("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return T("Custom width calculation function not defined"),document.body.scrollWidth}},G={},le=!1;function me(){}try{var ge=Object.create({},{passive:{get:function(){le=!0}}});window.addEventListener("test",me,ge),window.removeEventListener("test",me,ge)}catch{}function I(e,t,n,o){e.addEventListener(t,n,le?o||{}:!1)}function De(e,t,n){e.removeEventListener(t,n,!1)}function he(e){return e.charAt(0).toUpperCase()+e.slice(1)}function je(e){var t,n,o,a=null,f=0,m=function(){f=Date.now(),a=null,o=e.apply(t,n),a||(t=n=null)};return function(){var l=Date.now();f||(f=l);var u=z-(l-f);return t=this,n=arguments,u<=0||u>z?(a&&(clearTimeout(a),a=null),f=l,o=e.apply(t,n),a||(t=n=null)):a||(a=setTimeout(m,u)),o}}function pe(e){return F+"["+P+"] "+e}function i(e){J&&typeof window.console=="object"&&console.log(pe(e))}function T(e){typeof window.console=="object"&&console.warn(pe(e))}function qe(){He(),i("Initialising iFrame ("+window.location.href+")"),Be(),Ue(),Z("background",te),Z("padding",ne),Ye(),we(),be(),_e(),Ge(),Qe(),Te(),C=Ke(),M("init","Init message from host page"),Y()}function He(){function e(n){return n==="true"}var t=re.slice(ue).split(":");P=t[0],q=s===t[1]?q:Number(t[1]),L=s===t[2]?L:e(t[2]),J=s===t[3]?J:e(t[3]),O=s===t[4]?O:Number(t[4]),b=s===t[6]?b:e(t[6]),k=t[7],h=s===t[8]?h:t[8],te=t[9],ne=t[10],V=s===t[11]?V:Number(t[11]),C.enable=s===t[12]?!1:e(t[12]),_=s===t[13]?_:t[13],p=s===t[14]?p:t[14],U=s===t[15]?U:e(t[15])}function We(e){var t=e.split("Callback");if(t.length===2){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],T("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function Be(){function e(){var n=window.iFrameResizer;i("Reading data from page: "+JSON.stringify(n)),Object.keys(n).forEach(We,n),X="onMessage"in n?n.onMessage:X,Y="onReady"in n?n.onReady:Y,x="targetOrigin"in n?n.targetOrigin:x,h="heightCalculationMethod"in n?n.heightCalculationMethod:h,p="widthCalculationMethod"in n?n.widthCalculationMethod:p}function t(n,o){return typeof n=="function"&&(i("Setup custom "+o+"CalcMethod"),Q[o]=n,n="custom"),n}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),h=t(h,"height"),p=t(p,"width")),i("TargetOrigin for parent set to: "+x)}function Je(e,t){return t.indexOf("-")!==-1&&(T("Negative CSS value ignored for "+e),t=""),t}function Z(e,t){s!==t&&t!==""&&t!=="null"&&(document.body.style[e]=t,i("Body "+e+' set to "'+t+'"'))}function Ue(){s===k&&(k=q+"px"),Z("margin",Je("margin",k))}function _e(){document.documentElement.style.height="",document.body.style.height="",i('HTML & body height set to "auto"')}function g(e){var t={add:function(n){function o(){M(e.eventName,e.eventType)}G[n]=o,I(window,n,o,{passive:!0})},remove:function(n){var o=G[n];delete G[n],De(window,n,o)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),i(he(e.method)+" event listener: "+e.eventType)}function ve(e){g({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),g({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),g({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),g({method:e,eventType:"Input",eventName:"input"}),g({method:e,eventType:"Mouse Up",eventName:"mouseup"}),g({method:e,eventType:"Mouse Down",eventName:"mousedown"}),g({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),g({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),g({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),g({method:e,eventType:"Touch Start",eventName:"touchstart"}),g({method:e,eventType:"Touch End",eventName:"touchend"}),g({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),g({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),g({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),g({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),_==="child"&&g({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ye(e,t,n,o){return t!==e&&(e in n||(T(e+" is not a valid option for "+o+"CalculationMethod."),e=t),i(o+' calculation method set to "'+e+'"')),e}function we(){h=ye(h,B,E,"height")}function be(){p=ye(p,de,S,"width")}function Te(){b===!0?(ve("add"),$e()):i("Auto Resize disabled")}function Ve(){H!==null&&H.disconnect()}function Xe(){ve("remove"),Ve(),clearInterval(ae)}function Ye(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}function Ke(){function e(){return{x:window.pageXOffset===s?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===s?document.documentElement.scrollTop:window.pageYOffset}}function t(u){var c=u.getBoundingClientRect(),d=e();return{x:parseInt(c.left,10)+parseInt(d.x,10),y:parseInt(c.top,10)+parseInt(d.y,10)}}function n(u){function c(w){var N=t(w);i("Moving to in page link (#"+d+") at x: "+N.x+" y: "+N.y),v(N.y,N.x,"scrollToOffset")}var d=u.split("#")[1]||u,r=decodeURIComponent(d),y=document.getElementById(r)||document.getElementsByName(r)[0];s===y?(i("In page link (#"+d+") not found in iFrame, so sending to parent"),v(0,0,"inPageLink","#"+d)):c(y)}function o(){var u=window.location.hash,c=window.location.href;u!==""&&u!=="#"&&n(c)}function a(){function u(c){function d(r){r.preventDefault(),n(this.getAttribute("href"))}c.getAttribute("href")!=="#"&&I(c,"click",d)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),u)}function f(){I(window,"hashchange",o)}function m(){setTimeout(o,W)}function l(){Array.prototype.forEach&&document.querySelectorAll?(i("Setting up location.hash handlers"),a(),f(),m()):T("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return C.enable?l():i("In page linking not enabled"),{findTarget:n}}function Qe(){if(U!==!0)return;function e(n){v(0,0,n.type,n.screenY+":"+n.screenX)}function t(n,o){i("Add event listener: "+o),I(window.document,n,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}function Ge(){i("Enable public methods"),Pe.parentIFrame={autoResize:function(e){return e===!0&&b===!1?(b=!0,Te()):e===!1&&b===!0&&(b=!1,Xe()),v(0,0,"autoResize",JSON.stringify(b)),b},close:function(){v(0,0,"close")},getId:function(){return P},getPageInfo:function(e){typeof e=="function"?(K=e,v(0,0,"pageInfo")):(K=function(){},v(0,0,"pageInfoStop"))},moveToAnchor:function(e){C.findTarget(e)},reset:function(){Ae("parentIFrame.reset")},scrollTo:function(e,t){v(t,e,"scrollTo")},scrollToOffset:function(e,t){v(t,e,"scrollToOffset")},sendMessage:function(e,t){v(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){h=e,we()},setWidthCalculationMethod:function(e){p=e,be()},setTargetOrigin:function(e){i("Set targetOrigin: "+e),x=e},size:function(e,t){var n=""+(e||"")+(t?","+t:"");M("size","parentIFrame.size("+n+")",e,t)}}}function Ee(){O!==0&&(i("setInterval: "+O+"ms"),ae=setInterval(function(){M("interval","setInterval: "+O)},Math.abs(O)))}function Ze(){function e(r){function y(w){w.complete===!1&&(i("Attach listeners to "+w.src),w.addEventListener("load",a,!1),w.addEventListener("error",f,!1),u.push(w))}r.type==="attributes"&&r.attributeName==="src"?y(r.target):r.type==="childList"&&Array.prototype.forEach.call(r.target.querySelectorAll("img"),y)}function t(r){u.splice(u.indexOf(r),1)}function n(r){i("Remove listeners from "+r.src),r.removeEventListener("load",a,!1),r.removeEventListener("error",f,!1),t(r)}function o(r,y,w){n(r.target),M(y,w+": "+r.target.src)}function a(r){o(r,"imageLoad","Image loaded")}function f(r){o(r,"imageLoadFailed","Image load failed")}function m(r){M("mutationObserver","mutationObserver: "+r[0].target+" "+r[0].type),r.forEach(e)}function l(){var r=document.querySelector("body"),y={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new c(m),i("Create body MutationObserver"),d.observe(r,y),d}var u=[],c=window.MutationObserver||window.WebKitMutationObserver,d=l();return{disconnect:function(){"disconnect"in d&&(i("Disconnect body MutationObserver"),d.disconnect(),u.forEach(n))}}}function $e(){var e=0>O;window.MutationObserver||window.WebKitMutationObserver?e?Ee():H=Ze():(i("MutationObserver not supported in this browser!"),Ee())}function $(e,t){var n=0;return t=t||document.body,n=document.defaultView.getComputedStyle(t,null),n=n===null?0:n[e],parseInt(n,Le)}function et(e){e>z/2&&(z=2*e,i("Event throttle increased to "+z+"ms"))}function ee(e,t){for(var n=t.length,o=0,a=0,f=he(e),m=Date.now(),l=0;l<n;l++)o=t[l].getBoundingClientRect()[e]+$("margin"+f,t[l]),o>a&&(a=o);return m=Date.now()-m,i("Parsed "+n+" HTML elements"),i("Element position calculated in "+m+"ms"),et(m),a}function j(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function Oe(e,t){function n(){return T("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}var o=document.querySelectorAll("["+t+"]");return o.length===0&&n(),ee(e,o)}function Se(){return document.querySelectorAll("body *")}var E={bodyOffset:function(){return document.body.offsetHeight+$("marginTop")+$("marginBottom")},offset:function(){return E.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,j(E))},min:function(){return Math.min.apply(null,j(E))},grow:function(){return E.max()},lowestElement:function(){return Math.max(E.bodyOffset()||E.documentElementOffset(),ee("bottom",Se()))},taggedElement:function(){return Oe("bottom","data-iframe-height")}},S={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(S.bodyScroll(),S.documentElementScroll())},max:function(){return Math.max.apply(null,j(S))},min:function(){return Math.min.apply(null,j(S))},rightMostElement:function(){return ee("right",Se())},taggedElement:function(){return Oe("right","data-iframe-width")}};function Me(e,t,n,o){function a(){A=d,R=r,v(A,R,e)}function f(){function y(w,N){var nt=Math.abs(w-N)<=V;return!nt}return d=s===n?E[h]():n,r=s===o?S[p]():o,y(A,d)||L&&y(R,r)}function m(){return!(e in{init:1,interval:1,size:1})}function l(){return h in ce||L&&p in ce}function u(){i("No change in size detected")}function c(){m()&&l()?Ae(t):e in{interval:1}||u()}var d,r;f()||e==="init"?(Ie(),a()):c()}var tt=je(Me);function M(e,t,n,o){function a(){e in{reset:1,resetPage:1,init:1}||i("Trigger event: "+t)}function f(){return D&&e in Fe}f()?i("Trigger event cancelled: "+e):(a(),e==="init"?Me(e,t,n,o):tt(e,t,n,o))}function Ie(){D||(D=!0,i("Trigger event lock on")),clearTimeout(fe),fe=setTimeout(function(){D=!1,i("Trigger event lock off"),i("--")},W)}function Ne(e){A=E[h](),R=S[p](),v(A,R,e)}function Ae(e){var t=h;h=B,i("Reset trigger event: "+e),Ie(),Ne("reset"),h=t}function v(e,t,n,o,a){function f(){s===a?a=x:i("Message targetOrigin: "+a)}function m(){var l=e+":"+t,u=P+":"+l+":"+n+(s===o?"":":"+o);i("Sending message to host page ("+u+")"),se.postMessage(F+u,a)}f(),m()}function Ce(e){var t={init:function(){re=e.data,se=e.source,qe(),oe=!1,setTimeout(function(){ie=!1},W)},reset:function(){ie?i("Page reset ignored by init"):(i("Page size reset by host page"),Ne("resetPage"))},resize:function(){M("resizeParent","Parent window requested size check")},moveToAnchor:function(){C.findTarget(a())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var c=a();i("PageInfoFromParent called from parent: "+c),K(JSON.parse(c)),i(" --")},message:function(){var c=a();i("onMessage called from parent: "+c),X(JSON.parse(c)),i(" --")}};function n(){return F===(""+e.data).slice(0,ue)}function o(){return e.data.split("]")[1].split(":")[0]}function a(){return e.data.slice(e.data.indexOf(":")+1)}function f(){return!ke.exports&&"iFrameResize"in window||window.jQuery!==s&&"iFrameResize"in window.jQuery.prototype}function m(){return e.data.split(":")[2]in{true:1,false:1}}function l(){var c=o();c in t?t[c]():!f()&&!m()&&T("Unexpected message ("+e.data+")")}function u(){oe===!1?l():m()?t.init():i('Ignored message of type "'+o()+'". Received before initialization.')}n()&&u()}function xe(){document.readyState!=="loading"&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}"iframeResizer"in window||(window.iframeChildListener=function(e){Ce({data:e})},I(window,"message",Ce),I(window,"readystatechange",xe),xe())})()})(ze)),ze.exports}var rt=it();const at=ot(rt),ct=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));export{ct as i};
@@ -1 +1 @@
1
- import{get as O}from"./index-BoaYS_fk-BOYhDwkq.js";import{g as x}from"./index-DJf52eor.js";const s=[{description:"angry face",emoji:"😠",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["],name:"angry",tags:["mad","annoyed"]},{description:"smiling face with smiling eyes",emoji:"😊",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D'],name:"blush",tags:["proud"]},{description:"broken heart",emoji:"💔",emoticons:["<\\3","</3"],name:"broken_heart",tags:[]},{description:"confused face",emoji:"😕",emoticons:[":/",":\\",":-/",":-\\","=/","=\\","=-/","=-\\"],name:"confused",tags:[]},{description:"crying face",emoji:"😢",emoticons:[":,(",":,[",":,|",":,-(",":,-[",":,-|",":'(",":'[",":'|",":'-(",":'-[",":'-|","=,(","=,[","=,|","=,-(","=,-[","=,-|","='(","='[","='|","='-(","='-[","='-|","T-T"],name:"cry",tags:["sad","tear"]},{description:"frowning face with open mouth",emoji:"😦",emoticons:[":(",":[",":-(",":-[","=(","=[","=-(","=-["],name:"frowning",tags:[]},{description:"red heart",emoji:"❤️",emoticons:["<3"],name:"heart",tags:["love"]},{description:"angry face with horns",emoji:"👿",emoticons:["]:(","]:[","]:-(","]:-[","]=(","]=[","]=-(","]=-["],name:"imp",tags:["angry","devil","evil","horns"]},{description:"smiling face with halo",emoji:"😇",emoticons:["o:)","o:]","o:D","o:-)","o:-]","o:-D","o=)","o=]","o=D","o=-)","o=-]","o=-D","O:)","O:]","O:D","O:-)","O:-]","O:-D","O=)","O=]","O=D","O=-)","O=-]","O=-D","0:)","0:]","0:D","0:-)","0:-]","0:-D","0=)","0=]","0=D","0=-)","0=-]","0=-D"],name:"innocent",tags:["angel"]},{description:"face with tears of joy",emoji:"😂",emoticons:[":,)",":,]",":,D",":,-)",":,-]",":,-D",":')",":']",":'D",":'-)",":'-]",":'-D","=,)","=,]","=,D","=,-)","=,-]","=,-D","=')","=']","='D","='-)","='-]","='-D"],name:"joy",tags:["tears"]},{description:"kissing face",emoji:"😗",emoticons:[":*",":-*","=*","=-*"],name:"kissing",tags:[]},{description:"grinning squinting face",emoji:"😆",emoticons:["x)","x]","xD","x-)","x-]","x-D","X)","X]","X-)","X-]","X-D"],name:"laughing",tags:["happy","haha"]},{description:"man",emoji:"👨",emoticons:[":3",":-3","=3","=-3",";3",";-3","x3","x-3","X3","X-3"],name:"man",tags:["mustache","father","dad"]},{description:"neutral face",emoji:"😐",emoticons:[":|",":-|","=|","=-|"],name:"neutral_face",tags:["meh"]},{description:"face without mouth",emoji:"😶",emoticons:[":-"],name:"no_mouth",tags:["mute","silence"]},{description:"face with open mouth",emoji:"😮",emoticons:[":o",":O",":0",":-o",":-O",":-0","=o","=O","=0","=-o","=-O","=-0"],name:"open_mouth",tags:["surprise","impressed","wow"]},{description:"enraged face",emoji:"😡",emoticons:[":@",":-@","=@","=-@"],name:"rage",tags:["angry"]},{description:"grinning face with smiling eyes",emoji:"😄",emoticons:[":D",":-D","=D","=-D"],name:"smile",tags:["happy","joy","laugh","pleased"]},{description:"grinning face with big eyes",emoji:"😃",emoticons:[":)",":]",":-)",":-]","=)","=]","=-)","=-]"],name:"smiley",tags:["happy","joy","haha"]},{description:"smiling face with horns",emoji:"😈",emoticons:["]:)","]:]","]:D","]:-)","]:-]","]:-D","]=)","]=]","]=D","]=-)","]=-]","]=-D"],name:"smiling_imp",tags:["devil","evil","horns"]},{description:"loudly crying face",emoji:"😭",emoticons:[":,'(",":,'[",":,'-(",":,'-[",":',(",":',[",":',-(",":',-[","=,'(","=,'[","=,'-(","=,'-[","=',(","=',[","=',-(","=',-["],name:"sob",tags:["sad","cry","bawling"]},{description:"face with tongue",emoji:"😛",emoticons:[":p",":P",":d",":-p",":-P",":-d","=p","=P","=d","=-p","=-P","=-d"],name:"stuck_out_tongue",tags:[]},{description:"squinting face with tongue",emoji:"😝",emoticons:["xP","x-p","x-P","x-d","Xp","Xd","X-p","X-P","X-d"],name:"stuck_out_tongue_closed_eyes",tags:["prank"]},{description:"winking face with tongue",emoji:"😜",emoticons:[";p",";P",";d",";-p",";-P",";-d"],name:"stuck_out_tongue_winking_eye",tags:["prank","silly"]},{description:"smiling face with sunglasses",emoji:"😎",emoticons:["8)","8]","8D","8-)","8-]","8-D","B)","B]","B-)","B-]","B-D"],name:"sunglasses",tags:["cool"]},{description:"downcast face with sweat",emoji:"😓",emoticons:[",:(",",:[",",:-(",",:-[",",=(",",=[",",=-(",",=-[","':(","':[","':-(","':-[","'=(","'=[","'=-(","'=-["],name:"sweat",tags:[]},{description:"grinning face with sweat",emoji:"😅",emoticons:[",:)",",:]",",:D",",:-)",",:-]",",:-D",",=)",",=]",",=D",",=-)",",=-]",",=-D","':)","':]","':D","':-)","':-]","':-D","'=)","'=]","'=D","'=-)","'=-]","'=-D"],name:"sweat_smile",tags:["hot"]},{description:"unamused face",emoji:"😒",emoticons:[":$",":s",":z",":S",":Z",":-$",":-s",":-z",":-S",":-Z","=$","=s","=z","=S","=Z","=-$","=-s","=-z","=-S","=-Z"],name:"unamused",tags:["meh"]},{description:"winking face",emoji:"😉",emoticons:[";)",";]",";D",";-)",";-]",";-D"],name:"wink",tags:["flirt"]}],k=/:\+1:|:-1:|:[\w-]+:/g,X=/(^|\s)[@$|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,b=/(?:_|-(?!1))/g,P={padSpaceAfter:!1,emoticon:!1,accessible:!1},B=u=>{const t=Object.assign({},P,u),r=!!t.padSpaceAfter,f=!!t.emoticon,g=!!t.accessible;function d(e,i){return{type:"text",value:e,data:{hName:"span",hProperties:{role:"img",ariaLabel:i},hChildren:[{type:"text",value:e}]}}}function h(e){const i=s.find(o=>o.emoticons.includes(e)),n=s.find(o=>o.emoticons.includes(e.slice(0,-1))),a=s.find(o=>o.emoticons.includes(e.slice(1))),c=s.find(o=>o.emoticons.includes(e.slice(1,-1))),m=i||n||a||c;if(!m)return!1;const w=!(i||a)&&(c||n)?e.slice(-1):"",y=!(i||n)&&(c||a)?e.slice(0,1):"",_=r?" ":"",l=y+m.emoji+_+w;return g?d(l,m.name+" emoticon"):l}function D(e){let i=O(e);if(typeof i>"u")return!1;if(r&&(i=i+" "),g){const n=e.slice(1,-1).replace(b," ")+" emoji";return d(i,n)}return i}const p=[[k,D]];f&&p.push([X,h]);function j(e){x(e,p)}return j};export{B as default};
1
+ import{get as O}from"./index-DJIbJyKa-D4FORpfO.js";import{g as x}from"./index-CHE20_1-.js";const s=[{description:"angry face",emoji:"😠",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["],name:"angry",tags:["mad","annoyed"]},{description:"smiling face with smiling eyes",emoji:"😊",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D'],name:"blush",tags:["proud"]},{description:"broken heart",emoji:"💔",emoticons:["<\\3","</3"],name:"broken_heart",tags:[]},{description:"confused face",emoji:"😕",emoticons:[":/",":\\",":-/",":-\\","=/","=\\","=-/","=-\\"],name:"confused",tags:[]},{description:"crying face",emoji:"😢",emoticons:[":,(",":,[",":,|",":,-(",":,-[",":,-|",":'(",":'[",":'|",":'-(",":'-[",":'-|","=,(","=,[","=,|","=,-(","=,-[","=,-|","='(","='[","='|","='-(","='-[","='-|","T-T"],name:"cry",tags:["sad","tear"]},{description:"frowning face with open mouth",emoji:"😦",emoticons:[":(",":[",":-(",":-[","=(","=[","=-(","=-["],name:"frowning",tags:[]},{description:"red heart",emoji:"❤️",emoticons:["<3"],name:"heart",tags:["love"]},{description:"angry face with horns",emoji:"👿",emoticons:["]:(","]:[","]:-(","]:-[","]=(","]=[","]=-(","]=-["],name:"imp",tags:["angry","devil","evil","horns"]},{description:"smiling face with halo",emoji:"😇",emoticons:["o:)","o:]","o:D","o:-)","o:-]","o:-D","o=)","o=]","o=D","o=-)","o=-]","o=-D","O:)","O:]","O:D","O:-)","O:-]","O:-D","O=)","O=]","O=D","O=-)","O=-]","O=-D","0:)","0:]","0:D","0:-)","0:-]","0:-D","0=)","0=]","0=D","0=-)","0=-]","0=-D"],name:"innocent",tags:["angel"]},{description:"face with tears of joy",emoji:"😂",emoticons:[":,)",":,]",":,D",":,-)",":,-]",":,-D",":')",":']",":'D",":'-)",":'-]",":'-D","=,)","=,]","=,D","=,-)","=,-]","=,-D","=')","=']","='D","='-)","='-]","='-D"],name:"joy",tags:["tears"]},{description:"kissing face",emoji:"😗",emoticons:[":*",":-*","=*","=-*"],name:"kissing",tags:[]},{description:"grinning squinting face",emoji:"😆",emoticons:["x)","x]","xD","x-)","x-]","x-D","X)","X]","X-)","X-]","X-D"],name:"laughing",tags:["happy","haha"]},{description:"man",emoji:"👨",emoticons:[":3",":-3","=3","=-3",";3",";-3","x3","x-3","X3","X-3"],name:"man",tags:["mustache","father","dad"]},{description:"neutral face",emoji:"😐",emoticons:[":|",":-|","=|","=-|"],name:"neutral_face",tags:["meh"]},{description:"face without mouth",emoji:"😶",emoticons:[":-"],name:"no_mouth",tags:["mute","silence"]},{description:"face with open mouth",emoji:"😮",emoticons:[":o",":O",":0",":-o",":-O",":-0","=o","=O","=0","=-o","=-O","=-0"],name:"open_mouth",tags:["surprise","impressed","wow"]},{description:"enraged face",emoji:"😡",emoticons:[":@",":-@","=@","=-@"],name:"rage",tags:["angry"]},{description:"grinning face with smiling eyes",emoji:"😄",emoticons:[":D",":-D","=D","=-D"],name:"smile",tags:["happy","joy","laugh","pleased"]},{description:"grinning face with big eyes",emoji:"😃",emoticons:[":)",":]",":-)",":-]","=)","=]","=-)","=-]"],name:"smiley",tags:["happy","joy","haha"]},{description:"smiling face with horns",emoji:"😈",emoticons:["]:)","]:]","]:D","]:-)","]:-]","]:-D","]=)","]=]","]=D","]=-)","]=-]","]=-D"],name:"smiling_imp",tags:["devil","evil","horns"]},{description:"loudly crying face",emoji:"😭",emoticons:[":,'(",":,'[",":,'-(",":,'-[",":',(",":',[",":',-(",":',-[","=,'(","=,'[","=,'-(","=,'-[","=',(","=',[","=',-(","=',-["],name:"sob",tags:["sad","cry","bawling"]},{description:"face with tongue",emoji:"😛",emoticons:[":p",":P",":d",":-p",":-P",":-d","=p","=P","=d","=-p","=-P","=-d"],name:"stuck_out_tongue",tags:[]},{description:"squinting face with tongue",emoji:"😝",emoticons:["xP","x-p","x-P","x-d","Xp","Xd","X-p","X-P","X-d"],name:"stuck_out_tongue_closed_eyes",tags:["prank"]},{description:"winking face with tongue",emoji:"😜",emoticons:[";p",";P",";d",";-p",";-P",";-d"],name:"stuck_out_tongue_winking_eye",tags:["prank","silly"]},{description:"smiling face with sunglasses",emoji:"😎",emoticons:["8)","8]","8D","8-)","8-]","8-D","B)","B]","B-)","B-]","B-D"],name:"sunglasses",tags:["cool"]},{description:"downcast face with sweat",emoji:"😓",emoticons:[",:(",",:[",",:-(",",:-[",",=(",",=[",",=-(",",=-[","':(","':[","':-(","':-[","'=(","'=[","'=-(","'=-["],name:"sweat",tags:[]},{description:"grinning face with sweat",emoji:"😅",emoticons:[",:)",",:]",",:D",",:-)",",:-]",",:-D",",=)",",=]",",=D",",=-)",",=-]",",=-D","':)","':]","':D","':-)","':-]","':-D","'=)","'=]","'=D","'=-)","'=-]","'=-D"],name:"sweat_smile",tags:["hot"]},{description:"unamused face",emoji:"😒",emoticons:[":$",":s",":z",":S",":Z",":-$",":-s",":-z",":-S",":-Z","=$","=s","=z","=S","=Z","=-$","=-s","=-z","=-S","=-Z"],name:"unamused",tags:["meh"]},{description:"winking face",emoji:"😉",emoticons:[";)",";]",";D",";-)",";-]",";-D"],name:"wink",tags:["flirt"]}],k=/:\+1:|:-1:|:[\w-]+:/g,X=/(^|\s)[@$|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,b=/(?:_|-(?!1))/g,P={padSpaceAfter:!1,emoticon:!1,accessible:!1},B=u=>{const t=Object.assign({},P,u),r=!!t.padSpaceAfter,f=!!t.emoticon,g=!!t.accessible;function d(e,i){return{type:"text",value:e,data:{hName:"span",hProperties:{role:"img",ariaLabel:i},hChildren:[{type:"text",value:e}]}}}function h(e){const i=s.find(o=>o.emoticons.includes(e)),n=s.find(o=>o.emoticons.includes(e.slice(0,-1))),a=s.find(o=>o.emoticons.includes(e.slice(1))),c=s.find(o=>o.emoticons.includes(e.slice(1,-1))),m=i||n||a||c;if(!m)return!1;const w=!(i||a)&&(c||n)?e.slice(-1):"",y=!(i||n)&&(c||a)?e.slice(0,1):"",_=r?" ":"",l=y+m.emoji+_+w;return g?d(l,m.name+" emoticon"):l}function D(e){let i=O(e);if(typeof i>"u")return!1;if(r&&(i=i+" "),g){const n=e.slice(1,-1).replace(b," ")+" emoji";return d(i,n)}return i}const p=[[k,D]];f&&p.push([X,h]);function j(e){x(e,p)}return j};export{B as default};