bitwrench 2.0.23 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/dist/bitwrench-bccl.cjs.js +1 -1
- package/dist/bitwrench-bccl.cjs.min.js +1 -1
- package/dist/bitwrench-bccl.cjs.min.js.gz +0 -0
- package/dist/bitwrench-bccl.esm.js +1 -1
- package/dist/bitwrench-bccl.esm.min.js +1 -1
- package/dist/bitwrench-bccl.esm.min.js.gz +0 -0
- package/dist/bitwrench-bccl.umd.js +1 -1
- package/dist/bitwrench-bccl.umd.min.js +1 -1
- package/dist/bitwrench-bccl.umd.min.js.gz +0 -0
- package/dist/bitwrench-code-edit.cjs.js +1 -1
- package/dist/bitwrench-code-edit.cjs.min.js +1 -1
- package/dist/bitwrench-code-edit.es5.js +1 -1
- package/dist/bitwrench-code-edit.es5.min.js +1 -1
- package/dist/bitwrench-code-edit.esm.js +1 -1
- package/dist/bitwrench-code-edit.esm.min.js +1 -1
- package/dist/bitwrench-code-edit.umd.js +1 -1
- package/dist/bitwrench-code-edit.umd.min.js +1 -1
- package/dist/bitwrench-code-edit.umd.min.js.gz +0 -0
- package/dist/bitwrench-debug.js +1 -1
- package/dist/bitwrench-debug.min.js +1 -1
- package/dist/bitwrench-lean.cjs.js +41 -22
- package/dist/bitwrench-lean.cjs.min.js +4 -4
- package/dist/bitwrench-lean.cjs.min.js.gz +0 -0
- package/dist/bitwrench-lean.es5.js +43 -24
- package/dist/bitwrench-lean.es5.min.js +4 -4
- package/dist/bitwrench-lean.es5.min.js.gz +0 -0
- package/dist/bitwrench-lean.esm.js +41 -22
- package/dist/bitwrench-lean.esm.min.js +4 -4
- package/dist/bitwrench-lean.esm.min.js.gz +0 -0
- package/dist/bitwrench-lean.umd.js +41 -22
- package/dist/bitwrench-lean.umd.min.js +4 -4
- package/dist/bitwrench-lean.umd.min.js.gz +0 -0
- package/dist/bitwrench-util-css.cjs.js +1 -1
- package/dist/bitwrench-util-css.cjs.min.js +1 -1
- package/dist/bitwrench-util-css.es5.js +1 -1
- package/dist/bitwrench-util-css.es5.min.js +1 -1
- package/dist/bitwrench-util-css.esm.js +1 -1
- package/dist/bitwrench-util-css.esm.min.js +1 -1
- package/dist/bitwrench-util-css.umd.js +1 -1
- package/dist/bitwrench-util-css.umd.min.js +1 -1
- package/dist/bitwrench-util-css.umd.min.js.gz +0 -0
- package/dist/bitwrench.cjs.js +41 -22
- package/dist/bitwrench.cjs.min.js +6 -6
- package/dist/bitwrench.cjs.min.js.gz +0 -0
- package/dist/bitwrench.css +6 -6
- package/dist/bitwrench.d.ts +659 -0
- package/dist/bitwrench.es5.js +43 -24
- package/dist/bitwrench.es5.min.js +4 -4
- package/dist/bitwrench.es5.min.js.gz +0 -0
- package/dist/bitwrench.esm.js +41 -22
- package/dist/bitwrench.esm.min.js +4 -4
- package/dist/bitwrench.esm.min.js.gz +0 -0
- package/dist/bitwrench.min.css +1 -1
- package/dist/bitwrench.umd.js +41 -22
- package/dist/bitwrench.umd.min.js +6 -6
- package/dist/bitwrench.umd.min.js.gz +0 -0
- package/dist/builds.json +88 -88
- package/dist/bwserve.cjs.js +2 -2
- package/dist/bwserve.esm.js +2 -2
- package/dist/sri.json +46 -46
- package/docs/README.md +5 -3
- package/docs/bitwrench-mcp.md +1 -1
- package/docs/bitwrench-taco-schema-discussion.md +694 -0
- package/docs/bitwrench_api.md +4 -4
- package/docs/bitwrench_typescript_usage.md +441 -0
- package/docs/component-cheatsheet.md +1 -1
- package/docs/framework-translation-table.md +1 -1
- package/docs/llm-bitwrench-guide.md +28 -1
- package/docs/routing.md +1 -1
- package/docs/thinking-in-bitwrench.md +3 -3
- package/docs/tutorial-bwserve.md +1 -1
- package/docs/tutorial-website.md +1 -1
- package/package.json +7 -3
- package/readme.html +14 -8
- package/src/bitwrench-styles.js +17 -17
- package/src/bitwrench.d.ts +659 -0
- package/src/bitwrench.js +21 -2
- package/src/cli/serve.js +1 -0
- package/src/mcp/live.js +3 -1
- package/src/mcp/server.js +7 -7
- package/src/version.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! bitwrench v2.0.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bw=t()}(this,function(){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const t={version:"2.0.
|
|
1
|
+
/*! bitwrench v2.0.25 | BSD-2-Clause | https://deftio.github.com/bitwrench/pages */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bw=t()}(this,function(){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const t={version:"2.0.25",name:"bitwrench",description:"A library for javascript UI functions.",license:"BSD-2-Clause",homepage:"https://deftio.github.com/bitwrench/pages",repository:"git+https://github.com/deftio/bitwrench.git",author:"manu a. chatterjee <deftio@deftio.com> (https://deftio.com/)",buildDate:"2026-03-31T03:03:30.752Z"};
|
|
3
3
|
/**
|
|
4
4
|
* Bitwrench Color Utilities
|
|
5
5
|
*
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* @module bitwrench-styles
|
|
34
34
|
* @license BSD-2-Clause
|
|
35
35
|
* @author M A Chatterjee <deftio [at] deftio [dot] com>
|
|
36
|
-
*/let g={1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.5rem",6:"2rem"};var v={compact:{btn:g[1]+" "+g[3],card:g[3]+" "+g[4],alert:g[2]+" "+g[4],cell:g[2]+" "+g[3],input:g[1]+" "+g[3]},normal:{btn:g[2]+" "+g[4],card:g[5]+" "+g[5],alert:g[3]+" "+g[5],cell:g[3]+" "+g[4],input:g[2]+" "+g[3]},spacious:{btn:g[3]+" "+g[5],card:g[6]+" "+g[6],alert:g[4]+" "+g[5],cell:g[4]+" "+g[5],input:g[3]+" "+g[4]}},y={none:{btn:"0",card:"0",badge:"0",alert:"0",input:"0"},sm:{btn:"4px",card:"4px",badge:".25rem",alert:"4px",input:"4px"},md:{btn:"6px",card:"8px",badge:".375rem",alert:"8px",input:"6px"},lg:{btn:"10px",card:"12px",badge:".5rem",alert:"12px",input:"10px"},pill:{btn:"50rem",card:"1rem",badge:"50rem",alert:"1rem",input:"50rem"}},x={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function k(e,t){return e||(e=16),t||(t=1.2),{xs:Math.round(e/(t*t)),sm:Math.round(e/t),base:e,lg:Math.round(e*t),xl:Math.round(e*t*t),"2xl":Math.round(e*Math.pow(t,3)),"3xl":Math.round(e*Math.pow(t,4)),"4xl":Math.round(e*Math.pow(t,5))}}var C={flat:{sm:"none",md:"none",lg:"none",xl:"none"},sm:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 1px 3px rgba(0,0,0,0.08)",lg:"0 2px 6px rgba(0,0,0,0.10)",xl:"0 4px 12px rgba(0,0,0,0.12)"},md:{sm:"0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06)",md:"0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06)",lg:"0 10px 15px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.10)"},lg:{sm:"0 2px 4px rgba(0,0,0,0.10)",md:"0 4px 12px rgba(0,0,0,0.16)",lg:"0 8px 24px rgba(0,0,0,0.22)",xl:"0 16px 48px rgba(0,0,0,0.28)"}},S={reduced:{fast:"0ms",normal:"0ms",slow:"0ms",easing:"linear"},standard:{fast:"100ms",normal:"200ms",slow:"300ms",easing:"ease-out"},expressive:{fast:"150ms",normal:"300ms",slow:"500ms",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},j={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"},L=Object.fromEntries([["teal","#006666","#6c757d","#006666"],["ocean","#0077b6","#90e0ef","#00b4d8"],["sunset","#e76f51","#264653","#e9c46a"],["forest","#2d6a4f","#95d5b2","#52b788"],["slate","#343a40","#adb5bd","#6c757d"],["rose","#e11d48","#fda4af","#fb7185"],["indigo","#4f46e5","#a5b4fc","#818cf8"],["amber","#d97706","#fbbf24","#f59e0b"],["emerald","#059669","#6ee7b7","#34d399"],["nord","#5e81ac","#88c0d0","#81a1c1"],["coral","#ef6461","#4a7c7e","#e8a87c"],["midnight","#1e3a5f","#7c8db5","#3d5a80"]].map(function(e){return[e[0],{primary:e[1],secondary:e[2],tertiary:e[3]}]}));var z=function(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t};function A(e,t,r){return Object.assign({},function(e,t){var r={},o=t.background||"#f5f5f5",a={color:t.dark.base,"background-color":o};return r[z(e,"body")]=a,r}(e,t),function(e,t,r){var o=r.motion,a={};return a[z(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},a[z(e,"a:hover")]={color:t.primary.hover,"text-decoration":"underline"},a}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_btn")]={padding:a.btn,"border-radius":n.btn},o[z(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},o[z(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===n.btn?"50rem":parseInt(n.btn)+2+"px"},o[z(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===n.btn?"50rem":Math.max(parseInt(n.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_alert")]={padding:a.alert,"border-radius":n.alert},o}(e,0,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},o[z(e,".bw_card:hover")]={"box-shadow":i.md},o[z(e,".bw_card_hoverable")]={transition:"box-shadow "+s.slow+" "+s.easing+", transform "+s.slow+" "+s.easing},o[z(e,".bw_card_hoverable:hover")]={"box-shadow":i.lg},o[z(e,".bw_card_body")]={padding:a.card},o[z(e,".bw_card_header")]={padding:a.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border},o[z(e,".bw_card_footer")]={"background-color":t.surfaceAlt,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[z(e,".bw_card_title")]={color:t.dark.base},o[z(e,".bw_card_subtitle")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_form_control")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_form_control:focus")]={"border-color":t.primary.border,outline:"2px solid "+t.primary.base,"outline-offset":"-1px","box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[z(e,".bw_form_control::placeholder")]={color:t.secondary.base},o[z(e,".bw_form_label")]={color:t.dark.base},o[z(e,".bw_form_text")]={color:t.secondary.base},o[z(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[z(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},o[z(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},o[z(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},o[z(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},o[z(e,".bw_form_select")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_form_select:focus")]={"border-color":t.primary.border,"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o}(e,t,r),function(e,t,r){var o={};return o[z(e,".bw_navbar")]={"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[z(e,".bw_navbar_brand")]={color:t.dark.base},o[z(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base,"border-radius":r.radius.btn,transition:"color "+r.motion.fast+" "+r.motion.easing+", background-color "+r.motion.fast+" "+r.motion.easing},o[z(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.dark.base,"background-color":t.surfaceAlt},o[z(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"font-weight":"600"},o[z(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},o[z(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},o[z(e,".bw_navbar_dark .bw_nav_link")]={color:t.light.border},o[z(e,".bw_navbar_dark .bw_nav_link:hover")]={color:t.light.base},o[z(e,".bw_navbar_dark .bw_nav_link.active")]={color:t.light.base,"font-weight":"600"},o[z(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing;return o[z(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},o[z(e,".bw_table > :not(caption) > * > *")]={padding:a.cell,"border-bottom-color":t.light.border},o[z(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.surfaceAlt},o[z(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":t.surfaceAlt},o[z(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[z(e,".bw_table_selectable > tbody > tr")]={cursor:"pointer"},o[z(e,".bw_table > tbody > tr.bw_table_row_selected > *")]={"background-color":t.primary.light},o[z(e,".bw_table_bordered")]={"border-color":t.light.border},o[z(e,".bw_table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},o[z(e,".bw_nav_link")]={color:t.secondary.base,transition:"color "+a.fast+" "+a.easing+", border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.dark.base,"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[z(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"border-bottom":"2px solid "+t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.motion;return o[z(e,".bw_list_group_item")]={padding:a.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+n.fast+" "+n.easing+", background-color "+n.fast+" "+n.easing},o[z(e,"a.bw_list_group_item:hover")]={"background-color":t.surfaceAlt,color:t.dark.hover},o[z(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.motion,n=r.radius;return o[z(e,".bw_page_item:first-child .bw_page_link")]={"border-top-left-radius":n.btn,"border-bottom-left-radius":n.btn},o[z(e,".bw_page_item:last-child .bw_page_link")]={"border-top-right-radius":n.btn,"border-bottom-right-radius":n.btn},o[z(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.surfaceAlt,"border-color":t.light.border},o[z(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},o[z(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{badge:".375rem"};return o[z(e,".bw_progress")]={"background-color":t.surfaceAlt,"border-radius":a.badge,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},o[z(e,".bw_progress_bar")]={color:t.primary.textOn,"background-color":t.primary.base,"border-radius":"inherit","box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_breadcrumb")]={"background-color":t.surfaceAlt,padding:"0.625rem 1rem","border-radius":r.radius.btn},o[z(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},o[z(e,".bw_breadcrumb_item a")]={color:t.primary.base,transition:"color "+a.fast+" "+a.easing},o[z(e,".bw_breadcrumb_item a:hover")]={color:t.primary.hover,"text-decoration":"underline"},o[z(e,".bw_breadcrumb_item.active")]={color:t.dark.base},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[z(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[z(e,".bw_section_subtitle")]={color:t.secondary.base},r[z(e,".bw_feature_description")]={color:t.secondary.base},r[z(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_accordion_item:first-child")]={"border-top-left-radius":a.card,"border-top-right-radius":a.card},o[z(e,".bw_accordion_item:last-child")]={"border-bottom-left-radius":a.card,"border-bottom-right-radius":a.card},o[z(e,".bw_accordion_button")]={color:t.dark.base},o[z(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light,"border-left":"3px solid "+t.primary.base},o[z(e,".bw_accordion_button:hover")]={"background-color":t.surfaceAlt},o[z(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.base,color:t.primary.textOn},o[z(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[z(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border,"background-color":t.surfaceAlt},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_carousel")]={"background-color":t.surfaceAlt},r[z(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[z(e,".bw_carousel_control")]={"background-color":t.dark.base,color:t.dark.textOn,transition:"background-color 0.15s ease-out"},r[z(e,".bw_carousel_control:hover")]={"background-color":t.dark.hover},r[z(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, "+t.dark.base+")",color:t.dark.textOn},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[z(e,".bw_modal_header")]={"border-bottom-color":t.light.border},o[z(e,".bw_modal_footer")]={"border-top-color":t.light.border},o[z(e,".bw_modal_title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[z(e,".bw_toast_header")]={"border-bottom-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.md},o[z(e,".bw_dropdown_item")]={color:t.dark.base,transition:"background-color "+r.motion.fast+" "+r.motion.easing},o[z(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.surfaceAlt},o[z(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},o[z(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[z(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[z(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r[z(e,".bw_form_switch .bw_switch_input:focus-visible")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus,outline:"none"},r}(e,t),function(e,t){var r={};return r[z(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.surfaceAlt+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t,r){var o={},a=r.motion,n=r.elevation,i=r.radius;return o[z(e,".bw_stat_card")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":n.sm,transition:"box-shadow "+a.fast+" "+a.easing+", transform "+a.fast+" "+a.easing},o[z(e,".bw_stat_card:hover")]={"box-shadow":n.md},o[z(e,".bw_stat_change_up")]={color:t.success.base},o[z(e,".bw_stat_change_down")]={color:t.danger.base},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_timeline::before")]={"background-color":t.light.border},r[z(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[z(e,".bw_step_indicator")]={"background-color":t.surfaceAlt,border:"2px solid "+t.light.border,color:t.secondary.base},r[z(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[z(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[z(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[z(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[z(e,".bw_step_completed .bw_step_label")]={color:t.primary.base},r[z(e,".bw_step_completed + .bw_step::before")]={"background-color":t.primary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{input:"6px"};return o[z(e,".bw_chip_input")]={"border-color":t.light.border,"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.input},o[z(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[z(e,".bw_chip")]={"background-color":t.surfaceAlt,color:t.dark.base},o[z(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.surfaceAlt,transition:"border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},o[z(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},o[z(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_range")]={"background-color":t.light.border},r[z(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)",transition:"background-color 0.15s ease-out, transform 0.15s ease-out"},r[z(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_search_input")]={"background-color":t.surface||"#fff",color:t.dark.base},o[z(e,".bw_search_clear")]={transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_search_clear:hover")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_tooltip")]={"background-color":t.dark.base,color:t.dark.textOn,padding:a.input,"border-radius":n.badge,"box-shadow":i.md,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_popover")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.lg,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o[z(e,".bw_popover_header")]={"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border,padding:a.input},o[z(e,".bw_popover_body")]={padding:a.card},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"0.375rem"};return o[z(e,".bw_code_demo")]={"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.card},o[z(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},o[z(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.radius;return o[z(e,".bw_nav_pills .bw_nav_link")]={"border-radius":a.btn},o}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(o){if("object"==typeof t[o]){var a=t[o];r[z(e,".bw_"+o)]={"background-color":a.base,color:a.textOn,"border-color":a.base},r[z(e,".bw_"+o+":hover")]={"background-color":a.hover,"border-color":a.active},r[z(e,".bw_"+o+":active")]={"background-color":a.active},r[z(e,".bw_"+o+":focus-visible")]={"box-shadow":"0 0 0 3px "+a.focus,outline:"none"},r[z(e,".bw_alert.bw_"+o)]={"background-color":a.light,color:a.darkText,"border-color":a.border},r[z(e,".bw_toast.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[z(e,".bw_stat_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left-color":a.base},r[z(e,".bw_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[z(e,".bw_timeline_marker.bw_"+o)]={"box-shadow":"0 0 0 2px "+a.base},r[z(e,".bw_spinner_border.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base,"border-right-color":"transparent"},r[z(e,".bw_spinner_border.bw_"+o+":hover")]={"background-color":"transparent","border-color":a.base,"border-right-color":"transparent"},r[z(e,".bw_spinner_grow.bw_"+o)]={"background-color":a.base,color:a.base},r[z(e,".bw_btn_outline.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base},r[z(e,".bw_btn_outline.bw_"+o+":hover")]={"background-color":a.base,color:a.textOn},r[z(e,".bw_hero.bw_"+o)]={background:"linear-gradient(135deg, "+a.base+" 0%, "+a.hover+" 100%)",color:a.textOn},r[z(e,".bw_progress_bar.bw_"+o)]={color:a.textOn},r[z(e,".bw_bg_"+o)]={"background-color":a.base,color:a.textOn},r[z(e,".bw_text_"+o)]={color:a.base}}}),r[z(e,".bw_text_muted")]={color:"#6c757d"},r[z(e,".bw_bg_dark")]={"background-color":"#212529",color:"#f8f9fa"},r[z(e,".bw_bg_light")]={"background-color":"#f8f9fa",color:"#212529"},r[z(e,".bw_text_light")]={color:"#f8f9fa"},r[z(e,".bw_text_dark")]={color:"#212529"},r}(e,t))}var $={base:{"*":{"box-sizing":"border-box",margin:"0",padding:"0"},html:{"font-size":"16px","line-height":"1.5","-webkit-text-size-adjust":"100%","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},body:{"font-family":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-size":"1rem","font-weight":"400","line-height":"1.6",margin:"0",padding:"0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".bw_page":{"min-height":"100vh",display:"flex","flex-direction":"column"},".bw_page_content":{flex:"1",padding:"2rem 0"},main:{display:"block"},hr:{"box-sizing":"content-box",height:"0",overflow:"visible",margin:"1rem 0",border:"0"},"hr:not([size])":{height:"1px"}},typography:{"h1, h2, h3, h4, h5, h6":{"margin-top":"0","margin-bottom":".5rem","font-weight":"600","line-height":"1.25","letter-spacing":"-0.01em"},h1:{"font-size":"calc(1.375rem + 1.5vw)"},h2:{"font-size":"calc(1.325rem + .9vw)"},h3:{"font-size":"calc(1.3rem + .6vw)"},h4:{"font-size":"calc(1.275rem + .3vw)"},h5:{"font-size":"1.25rem"},h6:{"font-size":"1rem"},p:{"margin-top":"0","margin-bottom":"1rem"},small:{"font-size":"0.875rem"},a:{"text-decoration":"none"},".bw_display_4":{"font-size":"calc(1.475rem + 2.7vw)","font-weight":"300","line-height":"1.2"},".bw_lead":{"font-size":"1.25rem","font-weight":"300"},".bw_h5":{"font-size":"1.25rem"},".bw_h6":{"font-size":"1rem"}},grid:{".bw_container":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},"@media (min-width: 576px)":{".bw_container":{"max-width":"540px"}},"@media (min-width: 768px)":{".bw_container":{"max-width":"720px"}},"@media (min-width: 992px)":{".bw_container":{"max-width":"960px"}},"@media (min-width: 1200px)":{".bw_container":{"max-width":"1140px"}},".bw_container_fluid":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},".bw_row":{display:"flex","flex-wrap":"wrap","margin-right":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)","margin-left":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)"},'.col, [class*="col-"]':{position:"relative",width:"100%","padding-right":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)","padding-left":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)"},".bw_col":{"flex-basis":"0","flex-grow":"1","max-width":"100%"},".bw_col_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_12":{flex:"0 0 100%","max-width":"100%"}},buttons:{".bw_btn":{display:"inline-flex","align-items":"center","justify-content":"center","font-weight":"500","line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer","user-select":"none",border:"1px solid transparent","font-size":"0.875rem","font-family":"inherit",gap:"0.5rem"},".bw_btn:hover":{"text-decoration":"none",transform:"translateY(-1px)"},".bw_btn:active":{transform:"translateY(0)"},".bw_btn:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_btn:disabled":{opacity:"0.5",cursor:"not-allowed","pointer-events":"none"},".bw_btn_block":{display:"block",width:"100%"}},cards:{".bw_card":{position:"relative",display:"flex","flex-direction":"column","min-width":"0",height:"100%","word-wrap":"break-word","background-clip":"border-box","margin-bottom":"1.5rem",overflow:"hidden"},".bw_card_body":{flex:"1 1 auto"},".bw_card_body > *:last-child":{"margin-bottom":"0"},".bw_card_title":{"margin-bottom":"0.5rem","font-size":"1.125rem","font-weight":"600","line-height":"1.3"},".bw_card_text":{"margin-bottom":"0","font-size":"0.9375rem","line-height":"1.6"},".bw_card_header":{"margin-bottom":"0","font-weight":"600","font-size":"0.875rem"},".bw_card_footer":{"font-size":"0.875rem"},".bw_card_hoverable":{},".bw_card_hoverable:hover":{transform:"translateY(-4px)"},".bw_card_img_top":{width:"100%"},".bw_card_img_bottom":{width:"100%"},".bw_card_img_left":{width:"40%","object-fit":"cover"},".bw_card_img_right":{width:"40%","object-fit":"cover"},".bw_card_subtitle, .card-subtitle":{"margin-top":"-0.25rem","margin-bottom":"0.5rem","font-size":"0.875rem"}},forms:{".bw_form_control":{display:"block",width:"100%","font-size":"0.9375rem","font-weight":"400","line-height":"1.5","background-clip":"padding-box",appearance:"none",border:"1px solid transparent","font-family":"inherit",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out"},".bw_form_control:focus":{outline:"2px solid currentColor","outline-offset":"-1px"},".bw_form_control::placeholder":{opacity:"1"},".bw_form_label":{display:"block","margin-bottom":"0.375rem","font-size":"0.875rem","font-weight":"600"},".bw_form_group":{"margin-bottom":"1.25rem"},".bw_form_text":{"margin-top":"0.25rem","font-size":"0.8125rem"},"select.bw_form_control":{"padding-right":"2.25rem","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-position":"right 0.75rem center","background-size":"16px 12px"},"textarea.bw_form_control":{"min-height":"5rem",resize:"vertical"},".bw_valid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"},".bw_invalid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"}},formChecks:{".bw_form_check":{display:"flex","align-items":"center",gap:"0.5rem","min-height":"1.5rem","margin-bottom":"0.25rem"},".bw_form_check_input":{width:"1rem",height:"1rem",margin:"0",cursor:"pointer","flex-shrink":"0","border-radius":"0.25rem",appearance:"auto"},".bw_form_check_input:disabled":{opacity:"0.5",cursor:"not-allowed"},".bw_form_check_label":{cursor:"pointer","user-select":"none","font-size":"0.9375rem"}},navigation:{".bw_navbar":{position:"relative",display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between",padding:"0.5rem 1.5rem"},".bw_navbar > .bw_container, .bw_navbar > .container":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between"},".bw_navbar_brand":{display:"inline-flex","align-items":"center",gap:"0.5rem","padding-top":"0.25rem","padding-bottom":"0.25rem","margin-right":"1.5rem","font-size":"1.125rem","font-weight":"600","line-height":"inherit","white-space":"nowrap","text-decoration":"none"},".bw_navbar_nav":{display:"flex","flex-direction":"row","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0.25rem"},".bw_navbar_nav .bw_nav_link":{display:"block","text-decoration":"none","font-size":"0.875rem","font-weight":"500"}},tables:{".bw_table":{width:"100%","margin-bottom":"1.5rem","vertical-align":"top","border-collapse":"collapse","font-size":"0.9375rem","line-height":"1.5"},".bw_table > :not(caption) > * > *":{"background-color":"transparent","border-bottom-width":"1px","border-bottom-style":"solid"},".bw_table > tbody":{"vertical-align":"inherit"},".bw_table > thead":{"vertical-align":"bottom"},".bw_table > thead > tr > *":{"font-size":"0.8125rem","font-weight":"600","text-transform":"uppercase","letter-spacing":"0.04em","border-bottom-width":"2px"},".bw_table caption":{"font-size":"0.875rem","caption-side":"bottom"},".bw_table_bordered > :not(caption) > * > *":{"border-width":"1px","border-style":"solid"},".bw_table_selectable > tbody > tr":{cursor:"pointer"},".bw_table > tbody > tr.bw_table_row_selected > *":{"background-color":"rgba(0, 102, 102, 0.1)"},".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},alerts:{".bw_alert":{position:"relative","margin-bottom":"1rem",border:"1px solid transparent","font-size":"0.9375rem","line-height":"1.6"},".bw_alert_heading, .alert-heading":{color:"inherit"},".bw_alert_link, .alert-link":{"font-weight":"700"},".bw_alert_dismissible":{"padding-right":"3rem"},".bw_alert_dismissible .btn-close":{position:"absolute",top:"0",right:"0","z-index":"2",padding:"1.25rem 1rem"}},badges:{".bw_badge":{display:"inline-block","font-size":"0.875rem","font-weight":"600","line-height":"1.3","text-align":"center","white-space":"nowrap","vertical-align":"baseline",padding:"0.35rem 0.65rem","border-radius":"0.25rem"},".bw_badge:empty":{display:"none"},".bw_badge_sm":{"font-size":"0.75rem",padding:"0.25rem 0.5rem"},".bw_badge_lg":{"font-size":"1rem",padding:"0.5rem 0.875rem"},".bw_badge_pill":{"border-radius":"50rem"},".btn .badge":{position:"relative",top:"-1px"}},progress:{".bw_progress":{display:"flex",height:"1.25rem",overflow:"hidden","font-size":".875rem"},".bw_progress_bar":{display:"flex","flex-direction":"column","justify-content":"center",overflow:"hidden","text-align":"center","white-space":"nowrap","font-weight":"600"},".bw_progress_bar_striped":{"background-image":"linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)","background-size":"1rem 1rem"},".bw_progress_bar_animated":{animation:"progress-bar-stripes 1s linear infinite"},"@keyframes progress-bar-stripes":{"0%":{"background-position-x":"1rem"}}},tabs:{".bw_nav":{display:"flex","flex-wrap":"wrap","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0"},".bw_nav_item":{display:"block"},".bw_nav_tabs .bw_nav_item":{"margin-bottom":"-2px"},".bw_nav_link":{display:"block","font-size":"0.875rem","font-weight":"500",padding:"0.625rem 1rem","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".bw_nav_link:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_nav_tabs .bw_nav_link":{border:"none","border-bottom":"2px solid transparent","border-radius":"0","background-color":"transparent"},".bw_nav_vertical":{"flex-direction":"column"},".bw_tab_content":{padding:"1.25rem 0"},".bw_tab_pane":{display:"none"},".bw_tab_pane.active":{display:"block"},".bw_nav_scrollable":{"flex-wrap":"nowrap","overflow-x":"auto","-webkit-overflow-scrolling":"touch","scrollbar-width":"none"},".bw_nav_scrollable::-webkit-scrollbar":{display:"none"},".bw_nav_scrollable .bw_nav_link":{"white-space":"nowrap"}},listGroups:{".bw_list_group":{display:"flex","flex-direction":"column","padding-left":"0","margin-bottom":"0"},".bw_list_group_item":{position:"relative",display:"block","text-decoration":"none","font-size":"0.9375rem"},".bw_list_group_item:first-child":{"border-top-left-radius":"inherit","border-top-right-radius":"inherit"},".bw_list_group_item:last-child":{"border-bottom-right-radius":"inherit","border-bottom-left-radius":"inherit"},".bw_list_group_item + .bw_list_group_item":{"border-top-width":"0"},".bw_list_group_item.disabled":{"pointer-events":"none"},"a.bw_list_group_item":{cursor:"pointer"},"a.bw_list_group_item:focus-visible, .bw_list_group_item:focus-visible":{"z-index":"2",outline:"2px solid currentColor","outline-offset":"-2px"},".bw_list_group_flush":{"border-radius":"0"},".bw_list_group_flush > .bw_list_group_item":{"border-width":"0 0 1px","border-radius":"0"},".bw_list_group_flush > .bw_list_group_item:last-child":{"border-bottom-width":"0"}},pagination:{".bw_pagination":{display:"flex","padding-left":"0","list-style":"none","margin-bottom":"0"},".bw_page_item":{display:"list-item","list-style":"none"},".bw_page_link":{position:"relative",display:"block",padding:"0.375rem 0.75rem","margin-left":"-1px","line-height":"1.25","text-decoration":"none",border:"1px solid transparent",cursor:"pointer","font-family":"inherit","font-size":"inherit",background:"none"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0"},".bw_page_link:focus-visible":{"z-index":"3",outline:"2px solid currentColor","outline-offset":"-2px"}},breadcrumb:{".bw_breadcrumb":{display:"flex","flex-wrap":"wrap",padding:"0 0","margin-bottom":"1rem","list-style":"none"},".bw_breadcrumb_item":{display:"flex"},".bw_breadcrumb_item + .bw_breadcrumb_item":{"padding-left":"0.5rem"},".bw_breadcrumb_item + .bw_breadcrumb_item::before":{float:"left","padding-right":"0.5rem",content:'"/"'},".bw_breadcrumb_item a":{"text-decoration":"none"},".bw_breadcrumb_item.active":{"font-weight":"500"}},hero:{".bw_hero":{position:"relative",overflow:"hidden"},".bw_hero_overlay":{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","z-index":"1"},".bw_hero_content":{position:"relative","z-index":"2"},".bw_hero_title":{"font-weight":"300","letter-spacing":"-0.05rem",color:"inherit"},".bw_hero_subtitle":{color:"inherit"},".bw_hero_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},features:{".bw_feature":{padding:"1rem"},".bw_feature_icon":{display:"inline-block","margin-bottom":"1rem"},".bw_feature_title":{"margin-bottom":"0.5rem"},".bw_feature_grid":{width:"100%"},".bw_g_4":{"--bw_gutter_x":"1.5rem","--bw_gutter_y":"1.5rem"}},sections:{".bw_section":{position:"relative"},".bw_section_header":{"margin-bottom":"3rem"},".bw_section_title":{"margin-bottom":"1rem","font-weight":"300","font-size":"calc(1.325rem + .9vw)"}},cta:{".bw_cta":{position:"relative"},".bw_cta_content":{"max-width":"48rem",margin:"0 auto"},".bw_cta_title":{"font-weight":"300"},".bw_cta_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},spinner:{".bw_spinner_border":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em",border:"0.25em solid currentcolor","border-right-color":"transparent","border-radius":"50%",animation:"bw_spinner_border 0.75s linear infinite"},".bw_spinner_border_sm":{width:"1rem",height:"1rem","border-width":"0.2em"},".bw_spinner_border_lg":{width:"3rem",height:"3rem","border-width":"0.3em"},".bw_spinner_border_md":{},".bw_spinner_grow":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em","border-radius":"50%",opacity:"0",animation:"bw_spinner_grow 0.75s linear infinite"},".bw_spinner_grow_sm":{width:"1rem",height:"1rem"},".bw_spinner_grow_lg":{width:"3rem",height:"3rem"},".bw_spinner_grow_md":{},"@keyframes bw_spinner_border":{"100%":{transform:"rotate(360deg)"}},"@keyframes bw_spinner_grow":{"0%":{transform:"scale(0)"},"50%":{opacity:"1",transform:"none"}},".bw_visually_hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"}},closeButton:{".bw_close":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",padding:"0","font-size":"1.25rem","font-weight":"700","line-height":"1",background:"transparent",border:"0","border-radius":"0.25rem",cursor:"pointer",transition:"opacity 0.15s ease-out"},".bw_close:hover":{opacity:"0.75"},".bw_close:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},stacks:{".bw_vstack":{display:"flex","flex-direction":"column"},".bw_hstack":{display:"flex","flex-direction":"row","align-items":"center"},".bw_gap_0":{gap:"0"},".bw_gap_1":{gap:"0.25rem"},".bw_gap_2":{gap:"0.5rem"},".bw_gap_3":{gap:"1rem"},".bw_gap_4":{gap:"1.5rem"},".bw_gap_5":{gap:"3rem"}},offsets:{".bw_offset_1":{"margin-left":"8.333333%"},".bw_offset_2":{"margin-left":"16.666667%"},".bw_offset_3":{"margin-left":"25%"},".bw_offset_4":{"margin-left":"33.333333%"},".bw_offset_5":{"margin-left":"41.666667%"},".bw_offset_6":{"margin-left":"50%"},".bw_offset_7":{"margin-left":"58.333333%"},".bw_offset_8":{"margin-left":"66.666667%"},".bw_offset_9":{"margin-left":"75%"},".bw_offset_10":{"margin-left":"83.333333%"},".bw_offset_11":{"margin-left":"91.666667%"}},codeDemo:{".bw_code_demo":{"margin-bottom":"2rem"},".bw_code_pre":{margin:"0",border:"none","overflow-x":"auto","max-width":"100%"},".bw_code_block":{display:"block",padding:"1.25rem","font-family":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',"font-size":"0.8125rem","line-height":"1.6"},".bw_code_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"},".bw_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"}},buttonGroup:{".bw_btn_group, .bw_btn_group_vertical":{position:"relative",display:"inline-flex","vertical-align":"middle"},".bw_btn_group > .bw_btn, .bw_btn_group_vertical > .bw_btn":{position:"relative",flex:"1 1 auto","border-radius":"0","margin-left":"-1px"},".bw_btn_group > .bw_btn:first-child":{"margin-left":"0"},".bw_btn_group > .bw_btn:last-child":{},".bw_btn_group_lg > .bw_btn":{padding:"0.625rem 1.5rem","font-size":"1rem"},".bw_btn_group_sm > .bw_btn":{padding:"0.25rem 0.75rem","font-size":"0.8125rem"},".bw_btn_group_vertical":{"flex-direction":"column","align-items":"flex-start","justify-content":"center"},".bw_btn_group_vertical > .bw_btn":{width:"100%","margin-left":"0","margin-top":"-1px"},".bw_btn_group_vertical > .bw_btn:first-child":{"margin-top":"0"},".bw_btn_group_vertical > .bw_btn:last-child":{}},accordion:{".bw_accordion":{overflow:"hidden"},".bw_accordion_item":{border:"1px solid transparent"},".bw_accordion_item + .bw_accordion_item":{"border-top":"0"},".bw_accordion_header":{margin:"0"},".bw_accordion_button":{position:"relative",display:"flex","align-items":"center",width:"100%",padding:"0.875rem 1.25rem","font-size":"1rem","font-weight":"500","text-align":"left","background-color":"transparent",border:"0","overflow-anchor":"none",cursor:"pointer","font-family":"inherit"},".bw_accordion_button::after":{"flex-shrink":"0",width:"1.25rem",height:"1.25rem","margin-left":"auto",content:'""',"background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-size":"1.25rem",transition:"transform 0.2s ease-out"},".bw_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_accordion_body":{padding:"1rem 1.25rem"},".bw_accordion_collapse":{"max-height":"0",overflow:"hidden",transition:"max-height 0.3s ease"},".bw_accordion_collapse.bw_collapse_show":{"max-height":"none"}},carousel:{".bw_carousel":{position:"relative",overflow:"hidden"},".bw_carousel_track":{display:"flex",height:"100%"},".bw_carousel_slide":{"min-width":"100%","flex-shrink":"0",overflow:"hidden",position:"relative",display:"flex","align-items":"center","justify-content":"center"},".bw_carousel_slide img":{width:"100%",height:"100%","object-fit":"cover"},".bw_carousel_caption":{position:"absolute",bottom:"0",left:"0",right:"0",padding:"0.75rem 1rem","font-size":"0.875rem"},".bw_carousel_control":{position:"absolute",top:"50%",transform:"translateY(-50%)",width:"40px",height:"40px",border:"none","border-radius":"50%",cursor:"pointer",display:"flex","align-items":"center","justify-content":"center","z-index":"2",padding:"0"},".bw_carousel_control img":{width:"20px",height:"20px","pointer-events":"none"},".bw_carousel_control:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_carousel_control_prev":{left:"10px"},".bw_carousel_control_next":{right:"10px"},".bw_carousel_indicators":{position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"6px","z-index":"2"},".bw_carousel_indicator":{width:"10px",height:"10px","border-radius":"50%",border:"2px solid transparent",padding:"0",cursor:"pointer"},".bw_carousel_indicator:hover":{opacity:"0.8"}},modal:{".bw_modal":{display:"flex","align-items":"center","justify-content":"center",position:"fixed",top:"0",left:"0",width:"100%",height:"100%","z-index":"1050","overflow-x":"hidden","overflow-y":"auto",opacity:"0",visibility:"hidden","pointer-events":"none",transition:"opacity 0.2s ease-out, visibility 0.2s ease-out"},".bw_modal.bw_modal_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_modal_dialog":{position:"relative",width:"calc(100% - 1rem)","max-width":"500px",margin:"1.75rem auto","pointer-events":"none",transform:"translateY(-16px)",transition:"transform 0.2s ease-out"},".bw_modal.bw_modal_show .bw_modal_dialog":{transform:"translateY(0)"},".bw_modal_sm":{"max-width":"300px"},".bw_modal_lg":{"max-width":"800px"},".bw_modal_xl":{"max-width":"1140px"},".bw_modal_content":{position:"relative",display:"flex","flex-direction":"column","pointer-events":"auto","background-clip":"padding-box",border:"1px solid transparent",outline:"0"},".bw_modal_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"1rem 1.25rem","border-bottom":"1px solid transparent"},".bw_modal_title":{margin:"0","font-size":"1.25rem","font-weight":"600","line-height":"1.3"},".bw_modal_body":{position:"relative",flex:"1 1 auto",padding:"1rem 1.25rem"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem",padding:"0.75rem 1.25rem","border-top":"1px solid transparent"}},toast:{".bw_toast_container":{position:"fixed","z-index":"1080","pointer-events":"none",display:"flex","flex-direction":"column",gap:"0.5rem",padding:"1rem"},".bw_toast_container.bw_toast_top_right":{top:"0",right:"0"},".bw_toast_container.bw_toast_top_left":{top:"0",left:"0"},".bw_toast_container.bw_toast_bottom_right":{bottom:"0",right:"0"},".bw_toast_container.bw_toast_bottom_left":{bottom:"0",left:"0"},".bw_toast_container.bw_toast_top_center":{top:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast_container.bw_toast_bottom_center":{bottom:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast":{"pointer-events":"auto",width:"350px","max-width":"calc(100vw - 2rem)","background-clip":"padding-box",opacity:"0",transform:"translateY(-8px)",transition:"opacity 0.2s ease-out, transform 0.2s ease-out"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0",transform:"translateY(-8px)"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"0.5rem 0.75rem","font-size":"0.875rem","border-bottom":"1px solid transparent"},".bw_toast_body":{padding:"0.5rem 0.75rem","font-size":"0.9375rem"}},dropdown:{".bw_dropdown":{position:"relative",display:"inline-block"},".bw_dropdown_toggle::after":{display:"inline-block","margin-left":"0.255em","vertical-align":"0.255em",content:'""',"border-top":"0.3em solid","border-right":"0.3em solid transparent","border-bottom":"0","border-left":"0.3em solid transparent"},".bw_dropdown_menu":{position:"absolute",top:"100%",left:"0","z-index":"1000",display:"block","min-width":"10rem",padding:"0.5rem 0",margin:"0.125rem 0 0","background-clip":"padding-box",border:"1px solid transparent",opacity:"0",visibility:"hidden","pointer-events":"none",transform:"translateY(-4px)",transition:"opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s ease-out"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto",transform:"translateY(0)"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",padding:"0.4rem 1rem",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem",cursor:"pointer"},".bw_dropdown_item:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_dropdown_divider":{height:"0",margin:"0.5rem 0",overflow:"hidden",opacity:"1"}},formSwitch:{".bw_form_switch":{"padding-left":"2.5em"},".bw_form_switch .bw_switch_input":{width:"2em",height:"1.125em","margin-left":"-2.5em","border-radius":"2em",appearance:"none","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/%3e%3c/svg%3e\")","background-position":"left center","background-repeat":"no-repeat","background-size":"contain",cursor:"pointer",transition:"background-color 0.15s ease-out, background-position 0.15s ease-out, border-color 0.15s ease-out"},".bw_form_switch .bw_switch_input:checked":{"background-position":"right center"},".bw_form_switch .bw_switch_input:disabled":{opacity:"0.5",cursor:"not-allowed"}},skeleton:{".bw_skeleton":{"background-size":"400% 100%",animation:"bw_skeleton_shimmer 1.4s ease infinite"},".bw_skeleton_text":{height:"1em","margin-bottom":"0.5rem"},".bw_skeleton_circle":{"border-radius":"50%"},".bw_skeleton_rect":{},".bw_skeleton_group":{display:"flex","flex-direction":"column"},"@keyframes bw_skeleton_shimmer":{"0%":{"background-position":"100% 50%"},"100%":{"background-position":"0 50%"}}},avatar:{".bw_avatar":{display:"inline-flex","align-items":"center","justify-content":"center","border-radius":"50%",overflow:"hidden","font-weight":"600","text-transform":"uppercase","vertical-align":"middle","object-fit":"cover"},".bw_avatar_sm":{width:"2rem",height:"2rem","font-size":"0.75rem"},".bw_avatar_md":{width:"3rem",height:"3rem","font-size":"1rem"},".bw_avatar_lg":{width:"4rem",height:"4rem","font-size":"1.25rem"},".bw_avatar_xl":{width:"5rem",height:"5rem","font-size":"1.5rem"}},statCard:{".bw_stat_card":{padding:"1.25rem","border-left":"4px solid transparent","background-color":"inherit"},".bw_stat_card:hover":{transform:"translateY(-1px)"},".bw_stat_icon":{"font-size":"1.5rem","margin-bottom":"0.5rem"},".bw_stat_value":{"font-size":"2rem","font-weight":"700","line-height":"1.2"},".bw_stat_label":{"font-size":"0.875rem","margin-top":"0.25rem"},".bw_stat_change":{"font-size":"0.875rem","font-weight":"500","margin-top":"0.5rem"}},tooltip:{".bw_tooltip_wrapper":{position:"relative",display:"inline-block"},".bw_tooltip":{position:"absolute","z-index":"999","font-size":"0.875rem","white-space":"nowrap","max-width":"min(300px, calc(100vw - 1rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_tooltip.bw_tooltip_show":{opacity:"1",visibility:"visible"},".bw_tooltip_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-4px)","margin-bottom":"4px"},".bw_tooltip_top.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(4px)","margin-top":"4px"},".bw_tooltip_bottom.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-4px)","margin-right":"4px"},".bw_tooltip_left.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"},".bw_tooltip_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(4px)","margin-left":"4px"},".bw_tooltip_right.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"}},popover:{".bw_popover_wrapper":{position:"relative",display:"inline-block"},".bw_popover_trigger":{cursor:"pointer"},".bw_popover":{position:"absolute","z-index":"1000","min-width":"200px","max-width":"min(320px, calc(100vw - 2rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_popover.bw_popover_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_popover_header":{"font-weight":"600","font-size":"0.9375rem"},".bw_popover_body":{"font-size":"0.875rem","line-height":"1.5"},".bw_popover_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-8px)","margin-bottom":"8px"},".bw_popover_top.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(8px)","margin-top":"8px"},".bw_popover_bottom.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-8px)","margin-right":"8px"},".bw_popover_left.bw_popover_show":{transform:"translateY(-50%) translateX(0)"},".bw_popover_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(8px)","margin-left":"8px"},".bw_popover_right.bw_popover_show":{transform:"translateY(-50%) translateX(0)"}},searchInput:{".bw_search_input":{position:"relative",display:"flex","align-items":"center"},".bw_search_input .bw_search_field":{"padding-right":"2.5rem"},".bw_search_clear":{position:"absolute",right:"0.5rem",display:"flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",border:"none",background:"none","font-size":"1.25rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_search_clear:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},range:{".bw_range_wrapper":{"margin-bottom":"1rem"},".bw_range_label":{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0.5rem","font-size":"0.875rem","font-weight":"500"},".bw_range_value":{"font-weight":"600"},".bw_range":{width:"100%",height:"0.5rem",padding:"0",appearance:"none",border:"none","border-radius":"0.25rem",cursor:"pointer",outline:"none"},".bw_range:focus":{outline:"none"},".bw_range::-webkit-slider-thumb":{appearance:"none",width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-moz-range-thumb":{width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-webkit-slider-thumb:hover":{transform:"scale(1.15)"},".bw_range:disabled":{opacity:"0.5",cursor:"not-allowed"}},mediaObject:{".bw_media":{display:"flex","align-items":"flex-start",gap:"1rem"},".bw_media_reverse":{"flex-direction":"row-reverse"},".bw_media_img":{"border-radius":"50%","object-fit":"cover","flex-shrink":"0"},".bw_media_body":{flex:"1","min-width":"0"},".bw_media_title":{margin:"0 0 0.25rem 0","font-size":"1rem","font-weight":"600","line-height":"1.3"}},fileUpload:{".bw_file_upload":{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",border:"2px dashed transparent",cursor:"pointer","text-align":"center",position:"relative"},".bw_file_upload_icon":{"font-size":"2rem","margin-bottom":"0.5rem"},".bw_file_upload_text":{"font-size":"0.875rem"},".bw_file_upload_input":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"}},timeline:{".bw_timeline":{position:"relative","padding-left":"2rem"},".bw_timeline::before":{content:'""',position:"absolute",left:"0.5rem",top:"0",bottom:"0",width:"2px"},".bw_timeline_item":{position:"relative","padding-bottom":"1.5rem"},".bw_timeline_item:last-child":{"padding-bottom":"0"},".bw_timeline_marker":{position:"absolute",left:"-1.75rem",top:"0.25rem",width:"0.75rem",height:"0.75rem","border-radius":"50%"},".bw_timeline_content":{"padding-left":"0.5rem"},".bw_timeline_date":{"font-size":"0.75rem","margin-bottom":"0.25rem","font-weight":"500"},".bw_timeline_title":{"font-size":"1rem","font-weight":"600",margin:"0 0 0.25rem 0","line-height":"1.3"},".bw_timeline_text":{"font-size":"0.875rem",margin:"0","line-height":"1.5"}},stepper:{".bw_stepper":{display:"flex",gap:"0","counter-reset":"step"},".bw_step":{flex:"1",display:"flex","flex-direction":"column","align-items":"center","text-align":"center",position:"relative"},".bw_step + .bw_step::before":{content:'""',position:"absolute",top:"1rem",left:"-50%",right:"50%",height:"2px"},".bw_step_indicator":{width:"2rem",height:"2rem","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","font-size":"0.875rem","font-weight":"600",position:"relative","z-index":"1"},".bw_step_body":{"margin-top":"0.5rem"},".bw_step_label":{"font-size":"0.875rem","font-weight":"500"},".bw_step_description":{"font-size":"0.75rem","margin-top":"0.125rem"}},chipInput:{".bw_chip_input":{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"0.375rem",padding:"0.375rem 0.5rem","min-height":"2.5rem",cursor:"text"},".bw_chip":{display:"inline-flex","align-items":"center",gap:"0.25rem",padding:"0.125rem 0.5rem","border-radius":"1rem","font-size":"0.8125rem","line-height":"1.5","white-space":"nowrap"},".bw_chip_remove":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1rem",height:"1rem",border:"none",background:"none","font-size":"0.875rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_chip_remove:focus-visible":{outline:"2px solid currentColor","outline-offset":"1px"},".bw_chip_field":{flex:"1","min-width":"80px",border:"none",outline:"none","font-size":"0.875rem",padding:"0.125rem 0",background:"transparent"}},barChart:{".bw_bar_chart_container":{padding:"1rem",border:"1px solid transparent"},".bw_bar_chart":{display:"flex","align-items":"flex-end",gap:"6px",padding:"0 0.5rem"},".bw_bar_group":{flex:"1",display:"flex","flex-direction":"column","align-items":"center",height:"100%","justify-content":"flex-end"},".bw_bar":{width:"100%","border-radius":"3px 3px 0 0","min-height":"4px"},".bw_bar:hover":{opacity:"0.85"},".bw_bar_value":{"font-size":"0.65rem","font-weight":"600","margin-bottom":"2px","text-align":"center"},".bw_bar_label":{"font-size":"0.7rem","margin-top":"4px","text-align":"center"},".bw_bar_chart_title":{"font-size":"1.1rem","font-weight":"600",margin:"0 0 0.75rem 0"}},responsive:{"@media (min-width: 576px)":{".bw_col_sm_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_sm_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_sm_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_sm_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_sm_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_sm_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_sm_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_sm_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_sm_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_sm_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_sm_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_sm_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 768px)":{".bw_col_md_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_md_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_md_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_md_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_md_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_md_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_md_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_md_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_md_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_md_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_md_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_md_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 992px)":{".bw_col_lg_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_lg_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_lg_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_lg_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_lg_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_lg_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_lg_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_lg_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_lg_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_lg_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_lg_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_lg_12":{flex:"0 0 100%","max-width":"100%"}},"@media (max-width: 575px)":{".bw_card_img_left, .bw_card-img-left":{width:"100%"},".bw_card_img_right, .bw_card-img-right":{width:"100%"},".bw_hero, .bw_hero":{padding:"2rem 1rem"},".bw_cta_actions, .bw_cta-actions":{"flex-direction":"column"},".bw_hstack, .bw_hstack":{"flex-direction":"column"},".bw_feature_grid, .bw_feature-grid":{"grid-template-columns":"1fr"},".bw_modal_dialog":{margin:"0.5rem auto"},".bw_modal_lg":{"max-width":"calc(100% - 1rem)"},".bw_modal_xl":{"max-width":"calc(100% - 1rem)"},".bw_navbar":{padding:"0.5rem 0.75rem"},".bw_navbar_brand":{"margin-right":"0.5rem","font-size":"1rem"},".bw_navbar_nav":{"flex-wrap":"wrap"},".bw_tooltip":{"white-space":"normal"},".bw_table":{display:"block","overflow-x":"auto","-webkit-overflow-scrolling":"touch"},".bw_col, .bw_col_1, .bw_col_2, .bw_col_3, .bw_col_4, .bw_col_5, .bw_col_6, .bw_col_7, .bw_col_8, .bw_col_9, .bw_col_10, .bw_col_11, .bw_col_12":{flex:"0 0 100%","max-width":"100%"},".bw_container":{"padding-right":"0.5rem","padding-left":"0.5rem"},".bw_container_fluid":{"padding-right":"0.5rem","padding-left":"0.5rem"}}}};function E(){var e={},t={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var r in t){var o=t[r];e[".bw_m_"+r]={margin:o+" !important"},e[".bw_mt_"+r]={"margin-top":o+" !important"},e[".bw_mb_"+r]={"margin-bottom":o+" !important"},e[".bw_ms_"+r]={"margin-left":o+" !important"},e[".bw_me_"+r]={"margin-right":o+" !important"},e[".bw_p_"+r]={padding:o+" !important"},e[".bw_pt_"+r+", .pt-"+r]={"padding-top":o+" !important"},e[".bw_pb_"+r+", .pb-"+r]={"padding-bottom":o+" !important"},e[".bw_ps_"+r+", .ps-"+r]={"padding-left":o+" !important"},e[".bw_pe_"+r+", .pe-"+r]={"padding-right":o+" !important"}}e[".bw_m_auto, .m-auto"]={margin:"auto !important"},e[".bw_py_3"]={"padding-top":"1rem !important","padding-bottom":"1rem !important"},e[".bw_py_4"]={"padding-top":"1.5rem !important","padding-bottom":"1.5rem !important"},e[".bw_py_5"]={"padding-top":"3rem !important","padding-bottom":"3rem !important"},e[".bw_py_6"]={"padding-top":"4rem !important","padding-bottom":"4rem !important"},e[".bw_d_none"]={display:"none"},e[".bw_d_block"]={display:"block"},e[".bw_d_inline"]={display:"inline"},e[".bw_d_inline_block"]={display:"inline-block"},e[".bw_d_flex"]={display:"flex"},e[".bw_text_left"]={"text-align":"left"},e[".bw_text_right"]={"text-align":"right"},e[".bw_text_center"]={"text-align":"center"},e[".bw_text_justify"]={"text-align":"justify"},e[".bw_fw_bold"]={"font-weight":"700"},e[".bw_fw_semibold"]={"font-weight":"600"},e[".bw_fw_normal"]={"font-weight":"400"},e[".bw_fw_light"]={"font-weight":"300"},e[".bw_fst_italic"]={"font-style":"italic"},e[".bw_fst_normal"]={"font-style":"normal"},e[".bw_text_underline"]={"text-decoration":"underline"},e[".bw_text_line_through"]={"text-decoration":"line-through"},e[".bw_text_decoration_none"]={"text-decoration":"none"},e[".bw_text_uppercase"]={"text-transform":"uppercase"},e[".bw_text_lowercase"]={"text-transform":"lowercase"},e[".bw_text_capitalize"]={"text-transform":"capitalize"},e[".bw_fs_sm"]={"font-size":"0.875rem"},e[".bw_fs_base"]={"font-size":"1rem"},e[".bw_fs_lg"]={"font-size":"1.25rem"},e[".bw_fs_xl"]={"font-size":"1.5rem"};var a={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var n in a)e[".bw_justify_content_"+n+", .justify-content-"+n]={"justify-content":a[n]};var i={start:"flex-start",end:"flex-end",center:"center"};for(var s in i)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":i[s]};e[".bw_border"]={border:"1px solid transparent !important"},e[".bw_border_0"]={border:"0 !important"},e[".bw_border_top_0, .border-top-0"]={"border-top":"0 !important"},e[".bw_border_end_0, .border-end-0"]={"border-right":"0 !important"},e[".bw_border_bottom_0, .border-bottom-0"]={"border-bottom":"0 !important"},e[".bw_border_start_0, .border-start-0"]={"border-left":"0 !important"},e[".bw_rounded"]={"border-radius":".375rem !important"},e[".bw_rounded_0"]={"border-radius":"0 !important"},e[".bw_rounded_1, .rounded-1"]={"border-radius":".25rem !important"},e[".bw_rounded_2, .rounded-2"]={"border-radius":".375rem !important"},e[".bw_rounded_3, .rounded-3"]={"border-radius":".5rem !important"},e[".bw_rounded_circle"]={"border-radius":"50% !important"},e[".bw_rounded_pill, .rounded-pill"]={"border-radius":"50rem !important"},e[".bw_shadow"]={"box-shadow":"0 .5rem 1rem rgba(0,0,0,.15) !important"},e[".bw_shadow_sm"]={"box-shadow":"0 .125rem .25rem rgba(0,0,0,.075) !important"},e[".bw_shadow_lg"]={"box-shadow":"0 1rem 3rem rgba(0,0,0,.175) !important"},e[".bw_shadow_none, .shadow-none"]={"box-shadow":"none !important"},["25","50","75","100"].forEach(function(t){e[".bw_w_"+t+", .w-"+t]={width:t+"% !important"},e[".bw_h_"+t+", .h-"+t]={height:t+"% !important"}}),e[".bw_w_auto, .w-auto"]={width:"auto !important"},e[".bw_h_auto, .h-auto"]={height:"auto !important"},e[".bw_mw_100, .mw-100"]={"max-width":"100% !important"},e[".bw_mh_100, .mh-100"]={"max-height":"100% !important"},["static","relative","absolute","fixed","sticky"].forEach(function(t){e[".bw_position_"+t+", .position-"+t]={position:t+" !important"}}),e[".bw_top_0, .top-0"]={top:"0 !important"},e[".bw_top_50, .top-50"]={top:"50% !important"},e[".bw_top_100, .top-100"]={top:"100% !important"},e[".bw_bottom_0, .bottom-0"]={bottom:"0 !important"},e[".bw_bottom_50, .bottom-50"]={bottom:"50% !important"},e[".bw_bottom_100, .bottom-100"]={bottom:"100% !important"},e[".bw_start_0, .start-0"]={left:"0 !important"},e[".bw_start_50, .start-50"]={left:"50% !important"},e[".bw_start_100, .start-100"]={left:"100% !important"},e[".bw_end_0, .end-0"]={right:"0 !important"},e[".bw_end_50, .end-50"]={right:"50% !important"},e[".bw_end_100, .end-100"]={right:"100% !important"},e[".bw_translate_middle, .translate-middle"]={transform:"translate(-50%, -50%) !important"},["auto","hidden","visible","scroll"].forEach(function(t){e[".bw_overflow_"+t+", .overflow-"+t]={overflow:t+" !important"}}),e[".fs-1"]={"font-size":"calc(1.375rem + 1.5vw) !important"},e[".fs-2"]={"font-size":"calc(1.325rem + .9vw) !important"},e[".fs-3"]={"font-size":"calc(1.3rem + .6vw) !important"},e[".fs-4"]={"font-size":"calc(1.275rem + .3vw) !important"},e[".fs-5"]={"font-size":"1.25rem !important"},e[".fs-6"]={"font-size":"1rem !important"},e[".fw-light"]={"font-weight":"300 !important"},e[".fw-lighter"]={"font-weight":"lighter !important"},e[".fw-normal"]={"font-weight":"400 !important"},e[".fw-bold"]={"font-weight":"700 !important"},e[".fw-bolder"]={"font-weight":"bolder !important"},e[".fst-italic"]={"font-style":"italic !important"},e[".fst-normal"]={"font-style":"normal !important"},e[".text-decoration-none"]={"text-decoration":"none !important"},e[".text-decoration-underline"]={"text-decoration":"underline !important"},e[".text-decoration-line-through"]={"text-decoration":"line-through !important"},e[".text-lowercase"]={"text-transform":"lowercase !important"},e[".text-uppercase"]={"text-transform":"uppercase !important"},e[".text-capitalize"]={"text-transform":"capitalize !important"},e[".text-wrap"]={"white-space":"normal !important"},e[".text-nowrap"]={"white-space":"nowrap !important"},e[".list-unstyled"]={"padding-left":"0","list-style":"none"},e[".list-inline"]={"padding-left":"0","list-style":"none"},e[".list-inline-item"]={display:"inline-block"},e[".list-inline-item:not(:last-child)"]={"margin-right":".5rem"};var l=function(e,t){var r={};return r[e]=t+" !important",r};for(var c in[["fs",{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},"font-size"],["fw",{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},"font-weight"],["lh",{tight:"1.25",normal:"1.5",relaxed:"1.75"},"line-height"]].forEach(function(t){for(var r in t[1])e[".bw_"+t[0]+"_"+r]=l(t[2],t[1][r])}),e[".bw_flex"]={display:"flex"},e[".bw_flex_column"]={"flex-direction":"column"},e[".bw_flex_wrap"]={"flex-wrap":"wrap"},e[".bw_flex_center"]={display:"flex","align-items":"center","justify-content":"center"},t)e[".bw_gap_"+c]={gap:t[c]+" !important"};return e[".bw_visible, .visible"]={visibility:"visible !important"},e[".bw_invisible, .invisible"]={visibility:"hidden !important"},["all","auto","none"].forEach(function(t){e[".bw_user_select_"+t+", .user-select-"+t]={"user-select":t+" !important"}}),e[".pe-none"]={"pointer-events":"none !important"},e[".pe-auto"]={"pointer-events":"auto !important"},e[".opacity-0"]={opacity:"0 !important"},e[".opacity-25"]={opacity:".25 !important"},e[".opacity-50"]={opacity:".5 !important"},e[".opacity-75"]={opacity:".75 !important"},e[".opacity-100"]={opacity:"1 !important"},e}function N(){return function(){for(var e={},t=Object.keys($),r=0;r<t.length;r++)Object.assign(e,$[t[r]]);return Object.assign(e,E()),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e}()}function M(e,t,r){var o={};for(var a in e)if(e.hasOwnProperty(a))if("@"===a.charAt(0)){var n=e[a],i={};for(var s in n)n.hasOwnProperty(s)&&(i[I(s,t)]=n[s]);o[a]=i}else o[I(a,t)]=e[a];return o}function I(e,t){for(var r=e.split(","),o=[],a=0;a<r.length;a++)o.push(t+" "+r[a].trim());return o.join(", ")}
|
|
36
|
+
*/let g={1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.5rem",6:"2rem"};var v={compact:{btn:g[1]+" "+g[3],card:g[3]+" "+g[4],alert:g[2]+" "+g[4],cell:g[2]+" "+g[3],input:g[1]+" "+g[3]},normal:{btn:g[2]+" "+g[4],card:g[5]+" "+g[5],alert:g[3]+" "+g[5],cell:g[3]+" "+g[4],input:g[2]+" "+g[3]},spacious:{btn:g[3]+" "+g[5],card:g[6]+" "+g[6],alert:g[4]+" "+g[5],cell:g[4]+" "+g[5],input:g[3]+" "+g[4]}},y={none:{btn:"0",card:"0",badge:"0",alert:"0",input:"0"},sm:{btn:"4px",card:"4px",badge:".25rem",alert:"4px",input:"4px"},md:{btn:"6px",card:"8px",badge:".375rem",alert:"8px",input:"6px"},lg:{btn:"10px",card:"12px",badge:".5rem",alert:"12px",input:"10px"},pill:{btn:"50rem",card:"1rem",badge:"50rem",alert:"1rem",input:"50rem"}},x={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function k(e,t){return e||(e=16),t||(t=1.2),{xs:Math.round(e/(t*t)),sm:Math.round(e/t),base:e,lg:Math.round(e*t),xl:Math.round(e*t*t),"2xl":Math.round(e*Math.pow(t,3)),"3xl":Math.round(e*Math.pow(t,4)),"4xl":Math.round(e*Math.pow(t,5))}}var C={flat:{sm:"none",md:"none",lg:"none",xl:"none"},sm:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 1px 3px rgba(0,0,0,0.08)",lg:"0 2px 6px rgba(0,0,0,0.10)",xl:"0 4px 12px rgba(0,0,0,0.12)"},md:{sm:"0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06)",md:"0 4px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06)",lg:"0 10px 15px rgba(0,0,0,0.12), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.10)"},lg:{sm:"0 2px 4px rgba(0,0,0,0.10)",md:"0 4px 12px rgba(0,0,0,0.16)",lg:"0 8px 24px rgba(0,0,0,0.22)",xl:"0 16px 48px rgba(0,0,0,0.28)"}},S={reduced:{fast:"0ms",normal:"0ms",slow:"0ms",easing:"linear"},standard:{fast:"100ms",normal:"200ms",slow:"300ms",easing:"ease-out"},expressive:{fast:"150ms",normal:"300ms",slow:"500ms",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"}},j={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"},L=Object.fromEntries([["teal","#006666","#6c757d","#006666"],["ocean","#0077b6","#90e0ef","#00b4d8"],["sunset","#e76f51","#264653","#e9c46a"],["forest","#2d6a4f","#95d5b2","#52b788"],["slate","#343a40","#adb5bd","#6c757d"],["rose","#e11d48","#fda4af","#fb7185"],["indigo","#4f46e5","#a5b4fc","#818cf8"],["amber","#d97706","#fbbf24","#f59e0b"],["emerald","#059669","#6ee7b7","#34d399"],["nord","#5e81ac","#88c0d0","#81a1c1"],["coral","#ef6461","#4a7c7e","#e8a87c"],["midnight","#1e3a5f","#7c8db5","#3d5a80"]].map(function(e){return[e[0],{primary:e[1],secondary:e[2],tertiary:e[3]}]}));var z=function(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t};function A(e,t,r){return Object.assign({},function(e,t){var r={},o=t.background||"#f5f5f5",a={color:t.dark.base,"background-color":o};return r[z(e,"body")]=a,r}(e,t),function(e,t,r){var o=r.motion,a={};return a[z(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},a[z(e,"a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},a}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_btn")]={padding:a.btn,"border-radius":n.btn},o[z(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},o[z(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===n.btn?"50rem":parseInt(n.btn)+2+"px"},o[z(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===n.btn?"50rem":Math.max(parseInt(n.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_alert")]={padding:a.alert,"border-radius":n.alert},o}(e,0,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},o[z(e,".bw_card:hover")]={"box-shadow":i.md},o[z(e,".bw_card_hoverable")]={transition:"box-shadow "+s.slow+" "+s.easing+", transform "+s.slow+" "+s.easing},o[z(e,".bw_card_hoverable:hover")]={"box-shadow":i.lg},o[z(e,".bw_card_body")]={padding:a.card},o[z(e,".bw_card_header")]={padding:a.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border},o[z(e,".bw_card_footer")]={"background-color":t.surfaceAlt,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[z(e,".bw_card_title")]={color:t.dark.base},o[z(e,".bw_card_subtitle")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius;return o[z(e,".bw_form_control")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_form_control:focus")]={"border-color":t.primary.border,outline:"2px solid "+t.primary.base,"outline-offset":"-1px","box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[z(e,".bw_form_control::placeholder")]={color:t.secondary.base},o[z(e,".bw_form_label")]={color:t.dark.base},o[z(e,".bw_form_text")]={color:t.secondary.base},o[z(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[z(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},o[z(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},o[z(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},o[z(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},o[z(e,".bw_form_select")]={padding:a.input,"border-radius":n.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_form_select:focus")]={"border-color":t.primary.border,"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o}(e,t,r),function(e,t,r){var o={};return o[z(e,".bw_navbar")]={"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[z(e,".bw_navbar_brand")]={color:t.dark.base},o[z(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base,"border-radius":r.radius.btn,transition:"color "+r.motion.fast+" "+r.motion.easing+", background-color "+r.motion.fast+" "+r.motion.easing},o[z(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt},o[z(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"font-weight":"600"},o[z(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},o[z(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},o[z(e,".bw_navbar_dark .bw_nav_link")]={color:t.light.border},o[z(e,".bw_navbar_dark .bw_nav_link:hover")]={color:t.light.base},o[z(e,".bw_navbar_dark .bw_nav_link.active")]={color:t.light.base,"font-weight":"600"},o[z(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing;return o[z(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},o[z(e,".bw_table > :not(caption) > * > *")]={padding:a.cell,"border-bottom-color":t.light.border},o[z(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.surfaceAlt},o[z(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":t.surfaceAlt},o[z(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[z(e,".bw_table_selectable > tbody > tr")]={cursor:"pointer"},o[z(e,".bw_table > tbody > tr.bw_table_row_selected > *")]={"background-color":t.primary.light},o[z(e,".bw_table_bordered")]={"border-color":t.light.border},o[z(e,".bw_table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},o[z(e,".bw_nav_link")]={color:t.secondary.base,transition:"color "+a.fast+" "+a.easing+", border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.tertiary.base,"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},o[z(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"border-bottom":"2px solid "+t.primary.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.motion;return o[z(e,".bw_list_group_item")]={padding:a.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+n.fast+" "+n.easing+", background-color "+n.fast+" "+n.easing},o[z(e,"a.bw_list_group_item:hover")]={"background-color":t.surfaceAlt,color:t.tertiary.base},o[z(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.motion,n=r.radius;return o[z(e,".bw_page_item:first-child .bw_page_link")]={"border-top-left-radius":n.btn,"border-bottom-left-radius":n.btn},o[z(e,".bw_page_item:last-child .bw_page_link")]={"border-top-right-radius":n.btn,"border-bottom-right-radius":n.btn},o[z(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.surfaceAlt,"border-color":t.light.border},o[z(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},o[z(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[z(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{badge:".375rem"};return o[z(e,".bw_progress")]={"background-color":t.surfaceAlt,"border-radius":a.badge,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},o[z(e,".bw_progress_bar")]={color:t.primary.textOn,"background-color":t.primary.base,"border-radius":"inherit","box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_breadcrumb")]={"background-color":t.surfaceAlt,padding:"0.625rem 1rem","border-radius":r.radius.btn},o[z(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},o[z(e,".bw_breadcrumb_item a")]={color:t.tertiary.base,transition:"color "+a.fast+" "+a.easing},o[z(e,".bw_breadcrumb_item a:hover")]={color:t.tertiary.hover,"text-decoration":"underline"},o[z(e,".bw_breadcrumb_item.active")]={color:t.dark.base},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[z(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[z(e,".bw_section_subtitle")]={color:t.secondary.base},r[z(e,".bw_feature_description")]={color:t.secondary.base},r[z(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},o[z(e,".bw_accordion_item:first-child")]={"border-top-left-radius":a.card,"border-top-right-radius":a.card},o[z(e,".bw_accordion_item:last-child")]={"border-bottom-left-radius":a.card,"border-bottom-right-radius":a.card},o[z(e,".bw_accordion_button")]={color:t.dark.base},o[z(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light,"border-left":"3px solid "+t.primary.base},o[z(e,".bw_accordion_button:hover")]={"background-color":t.surfaceAlt},o[z(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.base,color:t.primary.textOn},o[z(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[z(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border,"background-color":t.surfaceAlt},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_carousel")]={"background-color":t.surfaceAlt},r[z(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[z(e,".bw_carousel_control")]={"background-color":t.dark.base,color:t.dark.textOn,transition:"background-color 0.15s ease-out"},r[z(e,".bw_carousel_control:hover")]={"background-color":t.dark.hover},r[z(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, "+t.dark.base+")",color:t.dark.textOn},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[z(e,".bw_modal_header")]={"border-bottom-color":t.light.border},o[z(e,".bw_modal_footer")]={"border-top-color":t.light.border},o[z(e,".bw_modal_title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.lg},o[z(e,".bw_toast_header")]={"border-bottom-color":t.light.border},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"8px"};return o[z(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"border-radius":a.card,"box-shadow":r.elevation.md},o[z(e,".bw_dropdown_item")]={color:t.dark.base,transition:"background-color "+r.motion.fast+" "+r.motion.easing},o[z(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.surfaceAlt},o[z(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},o[z(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[z(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[z(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r[z(e,".bw_form_switch .bw_switch_input:focus-visible")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus,outline:"none"},r}(e,t),function(e,t){var r={};return r[z(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.surfaceAlt+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t,r){var o={},a=r.motion,n=r.elevation,i=r.radius;return o[z(e,".bw_stat_card")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":n.sm,transition:"box-shadow "+a.fast+" "+a.easing+", transform "+a.fast+" "+a.easing},o[z(e,".bw_stat_card:hover")]={"box-shadow":n.md},o[z(e,".bw_stat_change_up")]={color:t.success.base},o[z(e,".bw_stat_change_down")]={color:t.danger.base},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_timeline::before")]={"background-color":t.light.border},r[z(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[z(e,".bw_step_indicator")]={"background-color":t.surfaceAlt,border:"2px solid "+t.light.border,color:t.secondary.base},r[z(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[z(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[z(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[z(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.tertiary.base,color:t.tertiary.textOn},r[z(e,".bw_step_completed .bw_step_label")]={color:t.tertiary.base},r[z(e,".bw_step_completed + .bw_step::before")]={"background-color":t.tertiary.base},r}(e,t),function(e,t,r){var o={},a=r?r.radius:{input:"6px"};return o[z(e,".bw_chip_input")]={"border-color":t.light.border,"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.input},o[z(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},o[z(e,".bw_chip")]={"background-color":t.surfaceAlt,color:t.dark.base},o[z(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},o}(e,t,r),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.surfaceAlt,transition:"border-color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},o[z(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},o[z(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},o}(e,t,r),function(e,t){var r={};return r[z(e,".bw_range")]={"background-color":t.light.border},r[z(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)",transition:"background-color 0.15s ease-out, transform 0.15s ease-out"},r[z(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":t.surface||"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t,r){var o={},a=r.motion;return o[z(e,".bw_search_input")]={"background-color":t.surface||"#fff",color:t.dark.base},o[z(e,".bw_search_clear")]={transition:"color "+a.fast+" "+a.easing+", background-color "+a.fast+" "+a.easing},o[z(e,".bw_search_clear:hover")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_tooltip")]={"background-color":t.dark.base,color:t.dark.textOn,padding:a.input,"border-radius":n.badge,"box-shadow":i.md,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o}(e,t,r),function(e,t,r){var o={},a=r.spacing,n=r.radius,i=r.elevation,s=r.motion;return o[z(e,".bw_popover")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":n.card,"box-shadow":i.lg,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},o[z(e,".bw_popover_header")]={"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border,padding:a.input},o[z(e,".bw_popover_body")]={padding:a.card},o}(e,t,r),function(e,t,r){var o={},a=r?r.radius:{card:"0.375rem"};return o[z(e,".bw_code_demo")]={"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":a.card},o[z(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},o[z(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},o}(e,t,r),function(e,t,r){var o={},a=r.radius;return o[z(e,".bw_nav_pills .bw_nav_link")]={"border-radius":a.btn},o}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(o){if("object"==typeof t[o]){var a=t[o];r[z(e,".bw_"+o)]={"background-color":a.base,color:a.textOn,"border-color":a.base},r[z(e,".bw_"+o+":hover")]={"background-color":a.hover,"border-color":a.active},r[z(e,".bw_"+o+":active")]={"background-color":a.active},r[z(e,".bw_"+o+":focus-visible")]={"box-shadow":"0 0 0 3px "+a.focus,outline:"none"},r[z(e,".bw_alert.bw_"+o)]={"background-color":a.light,color:a.darkText,"border-color":a.border},r[z(e,".bw_toast.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[z(e,".bw_stat_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left-color":a.base},r[z(e,".bw_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+a.base},r[z(e,".bw_timeline_marker.bw_"+o)]={"box-shadow":"0 0 0 2px "+a.base},r[z(e,".bw_spinner_border.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base,"border-right-color":"transparent"},r[z(e,".bw_spinner_border.bw_"+o+":hover")]={"background-color":"transparent","border-color":a.base,"border-right-color":"transparent"},r[z(e,".bw_spinner_grow.bw_"+o)]={"background-color":a.base,color:a.base},r[z(e,".bw_btn_outline.bw_"+o)]={"background-color":"transparent",color:a.base,"border-color":a.base},r[z(e,".bw_btn_outline.bw_"+o+":hover")]={"background-color":a.base,color:a.textOn},r[z(e,".bw_hero.bw_"+o)]={background:"linear-gradient(135deg, "+a.base+" 0%, "+a.hover+" 100%)",color:a.textOn},r[z(e,".bw_progress_bar.bw_"+o)]={color:a.textOn},r[z(e,".bw_bg_"+o)]={"background-color":a.base,color:a.textOn},r[z(e,".bw_text_"+o)]={color:a.base}}}),r[z(e,".bw_text_muted")]={color:t.secondary.base},r[z(e,".bw_bg_dark")]={"background-color":t.dark.base,color:t.dark.textOn},r[z(e,".bw_bg_light")]={"background-color":t.light.base,color:t.light.textOn},r[z(e,".bw_text_light")]={color:t.light.base},r[z(e,".bw_text_dark")]={color:t.dark.base},r}(e,t))}var $={base:{"*":{"box-sizing":"border-box",margin:"0",padding:"0"},html:{"font-size":"16px","line-height":"1.5","-webkit-text-size-adjust":"100%","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},body:{"font-family":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"font-size":"1rem","font-weight":"400","line-height":"1.6",margin:"0",padding:"0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".bw_page":{"min-height":"100vh",display:"flex","flex-direction":"column"},".bw_page_content":{flex:"1",padding:"2rem 0"},main:{display:"block"},hr:{"box-sizing":"content-box",height:"0",overflow:"visible",margin:"1rem 0",border:"0"},"hr:not([size])":{height:"1px"}},typography:{"h1, h2, h3, h4, h5, h6":{"margin-top":"0","margin-bottom":".5rem","font-weight":"600","line-height":"1.25","letter-spacing":"-0.01em"},h1:{"font-size":"calc(1.375rem + 1.5vw)"},h2:{"font-size":"calc(1.325rem + .9vw)"},h3:{"font-size":"calc(1.3rem + .6vw)"},h4:{"font-size":"calc(1.275rem + .3vw)"},h5:{"font-size":"1.25rem"},h6:{"font-size":"1rem"},p:{"margin-top":"0","margin-bottom":"1rem"},small:{"font-size":"0.875rem"},a:{"text-decoration":"none"},".bw_display_4":{"font-size":"calc(1.475rem + 2.7vw)","font-weight":"300","line-height":"1.2"},".bw_lead":{"font-size":"1.25rem","font-weight":"300"},".bw_h5":{"font-size":"1.25rem"},".bw_h6":{"font-size":"1rem"}},grid:{".bw_container":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},"@media (min-width: 576px)":{".bw_container":{"max-width":"540px"}},"@media (min-width: 768px)":{".bw_container":{"max-width":"720px"}},"@media (min-width: 992px)":{".bw_container":{"max-width":"960px"}},"@media (min-width: 1200px)":{".bw_container":{"max-width":"1140px"}},".bw_container_fluid":{width:"100%","padding-right":"0.75rem","padding-left":"0.75rem","margin-right":"auto","margin-left":"auto"},".bw_row":{display:"flex","flex-wrap":"wrap","margin-right":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)","margin-left":"calc(var(--bw_gutter_x, 0.75rem) * -0.5)"},'.col, [class*="col-"]':{position:"relative",width:"100%","padding-right":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)","padding-left":"calc(var(--bw_gutter_x, 0.75rem) * 0.5)"},".bw_col":{"flex-basis":"0","flex-grow":"1","max-width":"100%"},".bw_col_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_12":{flex:"0 0 100%","max-width":"100%"}},buttons:{".bw_btn":{display:"inline-flex","align-items":"center","justify-content":"center","font-weight":"500","line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer","user-select":"none",border:"1px solid transparent","font-size":"0.875rem","font-family":"inherit",gap:"0.5rem"},".bw_btn:hover":{"text-decoration":"none",transform:"translateY(-1px)"},".bw_btn:active":{transform:"translateY(0)"},".bw_btn:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_btn:disabled":{opacity:"0.5",cursor:"not-allowed","pointer-events":"none"},".bw_btn_block":{display:"block",width:"100%"}},cards:{".bw_card":{position:"relative",display:"flex","flex-direction":"column","min-width":"0",height:"100%","word-wrap":"break-word","background-clip":"border-box","margin-bottom":"1.5rem",overflow:"hidden"},".bw_card_body":{flex:"1 1 auto"},".bw_card_body > *:last-child":{"margin-bottom":"0"},".bw_card_title":{"margin-bottom":"0.5rem","font-size":"1.125rem","font-weight":"600","line-height":"1.3"},".bw_card_text":{"margin-bottom":"0","font-size":"0.9375rem","line-height":"1.6"},".bw_card_header":{"margin-bottom":"0","font-weight":"600","font-size":"0.875rem"},".bw_card_footer":{"font-size":"0.875rem"},".bw_card_hoverable":{},".bw_card_hoverable:hover":{transform:"translateY(-4px)"},".bw_card_img_top":{width:"100%"},".bw_card_img_bottom":{width:"100%"},".bw_card_img_left":{width:"40%","object-fit":"cover"},".bw_card_img_right":{width:"40%","object-fit":"cover"},".bw_card_subtitle, .card-subtitle":{"margin-top":"-0.25rem","margin-bottom":"0.5rem","font-size":"0.875rem"}},forms:{".bw_form_control":{display:"block",width:"100%","font-size":"0.9375rem","font-weight":"400","line-height":"1.5","background-clip":"padding-box",appearance:"none",border:"1px solid transparent","font-family":"inherit",transition:"border-color 0.15s ease-out, box-shadow 0.15s ease-out"},".bw_form_control:focus":{outline:"2px solid currentColor","outline-offset":"-1px"},".bw_form_control::placeholder":{opacity:"1"},".bw_form_label":{display:"block","margin-bottom":"0.375rem","font-size":"0.875rem","font-weight":"600"},".bw_form_group":{"margin-bottom":"1.25rem"},".bw_form_text":{"margin-top":"0.25rem","font-size":"0.8125rem"},"select.bw_form_control":{"padding-right":"2.25rem","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-position":"right 0.75rem center","background-size":"16px 12px"},"textarea.bw_form_control":{"min-height":"5rem",resize:"vertical"},".bw_valid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"},".bw_invalid_feedback":{display:"block","font-size":"0.875rem","margin-top":"0.25rem"}},formChecks:{".bw_form_check":{display:"flex","align-items":"center",gap:"0.5rem","min-height":"1.5rem","margin-bottom":"0.25rem"},".bw_form_check_input":{width:"1rem",height:"1rem",margin:"0",cursor:"pointer","flex-shrink":"0","border-radius":"0.25rem",appearance:"auto"},".bw_form_check_input:disabled":{opacity:"0.5",cursor:"not-allowed"},".bw_form_check_label":{cursor:"pointer","user-select":"none","font-size":"0.9375rem"}},navigation:{".bw_navbar":{position:"relative",display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between",padding:"0.5rem 1.5rem"},".bw_navbar > .bw_container, .bw_navbar > .container":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"space-between"},".bw_navbar_brand":{display:"inline-flex","align-items":"center",gap:"0.5rem","padding-top":"0.25rem","padding-bottom":"0.25rem","margin-right":"1.5rem","font-size":"1.125rem","font-weight":"600","line-height":"inherit","white-space":"nowrap","text-decoration":"none"},".bw_navbar_nav":{display:"flex","flex-direction":"row","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0.25rem"},".bw_navbar_nav .bw_nav_link":{display:"block","text-decoration":"none","font-size":"0.875rem","font-weight":"500"}},tables:{".bw_table":{width:"100%","margin-bottom":"1.5rem","vertical-align":"top","border-collapse":"collapse","font-size":"0.9375rem","line-height":"1.5"},".bw_table > :not(caption) > * > *":{"background-color":"transparent","border-bottom-width":"1px","border-bottom-style":"solid"},".bw_table > tbody":{"vertical-align":"inherit"},".bw_table > thead":{"vertical-align":"bottom"},".bw_table > thead > tr > *":{"font-size":"0.8125rem","font-weight":"600","text-transform":"uppercase","letter-spacing":"0.04em","border-bottom-width":"2px"},".bw_table caption":{"font-size":"0.875rem","caption-side":"bottom"},".bw_table_bordered > :not(caption) > * > *":{"border-width":"1px","border-style":"solid"},".bw_table_selectable > tbody > tr":{cursor:"pointer"},".bw_table > tbody > tr.bw_table_row_selected > *":{"background-color":"rgba(0, 102, 102, 0.1)"},".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},alerts:{".bw_alert":{position:"relative","margin-bottom":"1rem",border:"1px solid transparent","font-size":"0.9375rem","line-height":"1.6"},".bw_alert_heading, .alert-heading":{color:"inherit"},".bw_alert_link, .alert-link":{"font-weight":"700"},".bw_alert_dismissible":{"padding-right":"3rem"},".bw_alert_dismissible .btn-close":{position:"absolute",top:"0",right:"0","z-index":"2",padding:"1.25rem 1rem"}},badges:{".bw_badge":{display:"inline-block","font-size":"0.875rem","font-weight":"600","line-height":"1.3","text-align":"center","white-space":"nowrap","vertical-align":"baseline",padding:"0.35rem 0.65rem","border-radius":"0.25rem"},".bw_badge:empty":{display:"none"},".bw_badge_sm":{"font-size":"0.75rem",padding:"0.25rem 0.5rem"},".bw_badge_lg":{"font-size":"1rem",padding:"0.5rem 0.875rem"},".bw_badge_pill":{"border-radius":"50rem"},".btn .badge":{position:"relative",top:"-1px"}},progress:{".bw_progress":{display:"flex",height:"1.25rem",overflow:"hidden","font-size":".875rem"},".bw_progress_bar":{display:"flex","flex-direction":"column","justify-content":"center",overflow:"hidden","text-align":"center","white-space":"nowrap","font-weight":"600"},".bw_progress_bar_striped":{"background-image":"linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)","background-size":"1rem 1rem"},".bw_progress_bar_animated":{animation:"progress-bar-stripes 1s linear infinite"},"@keyframes progress-bar-stripes":{"0%":{"background-position-x":"1rem"}}},tabs:{".bw_nav":{display:"flex","flex-wrap":"wrap","padding-left":"0","margin-bottom":"0","list-style":"none",gap:"0"},".bw_nav_item":{display:"block"},".bw_nav_tabs .bw_nav_item":{"margin-bottom":"-2px"},".bw_nav_link":{display:"block","font-size":"0.875rem","font-weight":"500",padding:"0.625rem 1rem","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".bw_nav_link:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_nav_tabs .bw_nav_link":{border:"none","border-bottom":"2px solid transparent","border-radius":"0","background-color":"transparent"},".bw_nav_vertical":{"flex-direction":"column"},".bw_tab_content":{padding:"1.25rem 0"},".bw_tab_pane":{display:"none"},".bw_tab_pane.active":{display:"block"},".bw_nav_scrollable":{"flex-wrap":"nowrap","overflow-x":"auto","-webkit-overflow-scrolling":"touch","scrollbar-width":"none"},".bw_nav_scrollable::-webkit-scrollbar":{display:"none"},".bw_nav_scrollable .bw_nav_link":{"white-space":"nowrap"}},listGroups:{".bw_list_group":{display:"flex","flex-direction":"column","padding-left":"0","margin-bottom":"0"},".bw_list_group_item":{position:"relative",display:"block","text-decoration":"none","font-size":"0.9375rem"},".bw_list_group_item:first-child":{"border-top-left-radius":"inherit","border-top-right-radius":"inherit"},".bw_list_group_item:last-child":{"border-bottom-right-radius":"inherit","border-bottom-left-radius":"inherit"},".bw_list_group_item + .bw_list_group_item":{"border-top-width":"0"},".bw_list_group_item.disabled":{"pointer-events":"none"},"a.bw_list_group_item":{cursor:"pointer"},"a.bw_list_group_item:focus-visible, .bw_list_group_item:focus-visible":{"z-index":"2",outline:"2px solid currentColor","outline-offset":"-2px"},".bw_list_group_flush":{"border-radius":"0"},".bw_list_group_flush > .bw_list_group_item":{"border-width":"0 0 1px","border-radius":"0"},".bw_list_group_flush > .bw_list_group_item:last-child":{"border-bottom-width":"0"}},pagination:{".bw_pagination":{display:"flex","padding-left":"0","list-style":"none","margin-bottom":"0"},".bw_page_item":{display:"list-item","list-style":"none"},".bw_page_link":{position:"relative",display:"block",padding:"0.375rem 0.75rem","margin-left":"-1px","line-height":"1.25","text-decoration":"none",border:"1px solid transparent",cursor:"pointer","font-family":"inherit","font-size":"inherit",background:"none"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0"},".bw_page_link:focus-visible":{"z-index":"3",outline:"2px solid currentColor","outline-offset":"-2px"}},breadcrumb:{".bw_breadcrumb":{display:"flex","flex-wrap":"wrap",padding:"0 0","margin-bottom":"1rem","list-style":"none"},".bw_breadcrumb_item":{display:"flex"},".bw_breadcrumb_item + .bw_breadcrumb_item":{"padding-left":"0.5rem"},".bw_breadcrumb_item + .bw_breadcrumb_item::before":{float:"left","padding-right":"0.5rem",content:'"/"'},".bw_breadcrumb_item a":{"text-decoration":"none"},".bw_breadcrumb_item.active":{"font-weight":"500"}},hero:{".bw_hero":{position:"relative",overflow:"hidden"},".bw_hero_overlay":{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","z-index":"1"},".bw_hero_content":{position:"relative","z-index":"2"},".bw_hero_title":{"font-weight":"300","letter-spacing":"-0.05rem",color:"inherit"},".bw_hero_subtitle":{color:"inherit"},".bw_hero_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},features:{".bw_feature":{padding:"1rem"},".bw_feature_icon":{display:"inline-block","margin-bottom":"1rem"},".bw_feature_title":{"margin-bottom":"0.5rem"},".bw_feature_grid":{width:"100%"},".bw_g_4":{"--bw_gutter_x":"1.5rem","--bw_gutter_y":"1.5rem"}},sections:{".bw_section":{position:"relative"},".bw_section_header":{"margin-bottom":"3rem"},".bw_section_title":{"margin-bottom":"1rem","font-weight":"300","font-size":"calc(1.325rem + .9vw)"}},cta:{".bw_cta":{position:"relative"},".bw_cta_content":{"max-width":"48rem",margin:"0 auto"},".bw_cta_title":{"font-weight":"300"},".bw_cta_actions":{display:"flex",gap:"1rem","justify-content":"center","flex-wrap":"wrap"}},spinner:{".bw_spinner_border":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em",border:"0.25em solid currentcolor","border-right-color":"transparent","border-radius":"50%",animation:"bw_spinner_border 0.75s linear infinite"},".bw_spinner_border_sm":{width:"1rem",height:"1rem","border-width":"0.2em"},".bw_spinner_border_lg":{width:"3rem",height:"3rem","border-width":"0.3em"},".bw_spinner_border_md":{},".bw_spinner_grow":{display:"inline-block",width:"2rem",height:"2rem","vertical-align":"-0.125em","border-radius":"50%",opacity:"0",animation:"bw_spinner_grow 0.75s linear infinite"},".bw_spinner_grow_sm":{width:"1rem",height:"1rem"},".bw_spinner_grow_lg":{width:"3rem",height:"3rem"},".bw_spinner_grow_md":{},"@keyframes bw_spinner_border":{"100%":{transform:"rotate(360deg)"}},"@keyframes bw_spinner_grow":{"0%":{transform:"scale(0)"},"50%":{opacity:"1",transform:"none"}},".bw_visually_hidden":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"}},closeButton:{".bw_close":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",padding:"0","font-size":"1.25rem","font-weight":"700","line-height":"1",background:"transparent",border:"0","border-radius":"0.25rem",cursor:"pointer",transition:"opacity 0.15s ease-out"},".bw_close:hover":{opacity:"0.75"},".bw_close:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},stacks:{".bw_vstack":{display:"flex","flex-direction":"column"},".bw_hstack":{display:"flex","flex-direction":"row","align-items":"center"},".bw_gap_0":{gap:"0"},".bw_gap_1":{gap:"0.25rem"},".bw_gap_2":{gap:"0.5rem"},".bw_gap_3":{gap:"1rem"},".bw_gap_4":{gap:"1.5rem"},".bw_gap_5":{gap:"3rem"}},offsets:{".bw_offset_1":{"margin-left":"8.333333%"},".bw_offset_2":{"margin-left":"16.666667%"},".bw_offset_3":{"margin-left":"25%"},".bw_offset_4":{"margin-left":"33.333333%"},".bw_offset_5":{"margin-left":"41.666667%"},".bw_offset_6":{"margin-left":"50%"},".bw_offset_7":{"margin-left":"58.333333%"},".bw_offset_8":{"margin-left":"66.666667%"},".bw_offset_9":{"margin-left":"75%"},".bw_offset_10":{"margin-left":"83.333333%"},".bw_offset_11":{"margin-left":"91.666667%"}},codeDemo:{".bw_code_demo":{"margin-bottom":"2rem"},".bw_code_pre":{margin:"0",border:"none","overflow-x":"auto","max-width":"100%"},".bw_code_block":{display:"block",padding:"1.25rem","font-family":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',"font-size":"0.8125rem","line-height":"1.6"},".bw_code_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"},".bw_copy_btn":{position:"absolute",top:"0.5rem",right:"0.5rem",padding:"0.25rem 0.625rem","font-size":"0.6875rem",cursor:"pointer","font-family":"inherit"}},buttonGroup:{".bw_btn_group, .bw_btn_group_vertical":{position:"relative",display:"inline-flex","vertical-align":"middle"},".bw_btn_group > .bw_btn, .bw_btn_group_vertical > .bw_btn":{position:"relative",flex:"1 1 auto","border-radius":"0","margin-left":"-1px"},".bw_btn_group > .bw_btn:first-child":{"margin-left":"0"},".bw_btn_group > .bw_btn:last-child":{},".bw_btn_group_lg > .bw_btn":{padding:"0.625rem 1.5rem","font-size":"1rem"},".bw_btn_group_sm > .bw_btn":{padding:"0.25rem 0.75rem","font-size":"0.8125rem"},".bw_btn_group_vertical":{"flex-direction":"column","align-items":"flex-start","justify-content":"center"},".bw_btn_group_vertical > .bw_btn":{width:"100%","margin-left":"0","margin-top":"-1px"},".bw_btn_group_vertical > .bw_btn:first-child":{"margin-top":"0"},".bw_btn_group_vertical > .bw_btn:last-child":{}},accordion:{".bw_accordion":{overflow:"hidden"},".bw_accordion_item":{border:"1px solid transparent"},".bw_accordion_item + .bw_accordion_item":{"border-top":"0"},".bw_accordion_header":{margin:"0"},".bw_accordion_button":{position:"relative",display:"flex","align-items":"center",width:"100%",padding:"0.875rem 1.25rem","font-size":"1rem","font-weight":"500","text-align":"left","background-color":"transparent",border:"0","overflow-anchor":"none",cursor:"pointer","font-family":"inherit"},".bw_accordion_button::after":{"flex-shrink":"0",width:"1.25rem",height:"1.25rem","margin-left":"auto",content:'""',"background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")","background-repeat":"no-repeat","background-size":"1.25rem",transition:"transform 0.2s ease-out"},".bw_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_accordion_body":{padding:"1rem 1.25rem"},".bw_accordion_collapse":{"max-height":"0",overflow:"hidden",transition:"max-height 0.3s ease"},".bw_accordion_collapse.bw_collapse_show":{"max-height":"none"}},carousel:{".bw_carousel":{position:"relative",overflow:"hidden"},".bw_carousel_track":{display:"flex",height:"100%"},".bw_carousel_slide":{"min-width":"100%","flex-shrink":"0",overflow:"hidden",position:"relative",display:"flex","align-items":"center","justify-content":"center"},".bw_carousel_slide img":{width:"100%",height:"100%","object-fit":"cover"},".bw_carousel_caption":{position:"absolute",bottom:"0",left:"0",right:"0",padding:"0.75rem 1rem","font-size":"0.875rem"},".bw_carousel_control":{position:"absolute",top:"50%",transform:"translateY(-50%)",width:"40px",height:"40px",border:"none","border-radius":"50%",cursor:"pointer",display:"flex","align-items":"center","justify-content":"center","z-index":"2",padding:"0"},".bw_carousel_control img":{width:"20px",height:"20px","pointer-events":"none"},".bw_carousel_control:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"},".bw_carousel_control_prev":{left:"10px"},".bw_carousel_control_next":{right:"10px"},".bw_carousel_indicators":{position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"6px","z-index":"2"},".bw_carousel_indicator":{width:"10px",height:"10px","border-radius":"50%",border:"2px solid transparent",padding:"0",cursor:"pointer"},".bw_carousel_indicator:hover":{opacity:"0.8"}},modal:{".bw_modal":{display:"flex","align-items":"center","justify-content":"center",position:"fixed",top:"0",left:"0",width:"100%",height:"100%","z-index":"1050","overflow-x":"hidden","overflow-y":"auto",opacity:"0",visibility:"hidden","pointer-events":"none",transition:"opacity 0.2s ease-out, visibility 0.2s ease-out"},".bw_modal.bw_modal_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_modal_dialog":{position:"relative",width:"calc(100% - 1rem)","max-width":"500px",margin:"1.75rem auto","pointer-events":"none",transform:"translateY(-16px)",transition:"transform 0.2s ease-out"},".bw_modal.bw_modal_show .bw_modal_dialog":{transform:"translateY(0)"},".bw_modal_sm":{"max-width":"300px"},".bw_modal_lg":{"max-width":"800px"},".bw_modal_xl":{"max-width":"1140px"},".bw_modal_content":{position:"relative",display:"flex","flex-direction":"column","pointer-events":"auto","background-clip":"padding-box",border:"1px solid transparent",outline:"0"},".bw_modal_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"1rem 1.25rem","border-bottom":"1px solid transparent"},".bw_modal_title":{margin:"0","font-size":"1.25rem","font-weight":"600","line-height":"1.3"},".bw_modal_body":{position:"relative",flex:"1 1 auto",padding:"1rem 1.25rem"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem",padding:"0.75rem 1.25rem","border-top":"1px solid transparent"}},toast:{".bw_toast_container":{position:"fixed","z-index":"1080","pointer-events":"none",display:"flex","flex-direction":"column",gap:"0.5rem",padding:"1rem"},".bw_toast_container.bw_toast_top_right":{top:"0",right:"0"},".bw_toast_container.bw_toast_top_left":{top:"0",left:"0"},".bw_toast_container.bw_toast_bottom_right":{bottom:"0",right:"0"},".bw_toast_container.bw_toast_bottom_left":{bottom:"0",left:"0"},".bw_toast_container.bw_toast_top_center":{top:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast_container.bw_toast_bottom_center":{bottom:"0",left:"50%",transform:"translateX(-50%)"},".bw_toast":{"pointer-events":"auto",width:"350px","max-width":"calc(100vw - 2rem)","background-clip":"padding-box",opacity:"0",transform:"translateY(-8px)",transition:"opacity 0.2s ease-out, transform 0.2s ease-out"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0",transform:"translateY(-8px)"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between",padding:"0.5rem 0.75rem","font-size":"0.875rem","border-bottom":"1px solid transparent"},".bw_toast_body":{padding:"0.5rem 0.75rem","font-size":"0.9375rem"}},dropdown:{".bw_dropdown":{position:"relative",display:"inline-block"},".bw_dropdown_toggle::after":{display:"inline-block","margin-left":"0.255em","vertical-align":"0.255em",content:'""',"border-top":"0.3em solid","border-right":"0.3em solid transparent","border-bottom":"0","border-left":"0.3em solid transparent"},".bw_dropdown_menu":{position:"absolute",top:"100%",left:"0","z-index":"1000",display:"block","min-width":"10rem",padding:"0.5rem 0",margin:"0.125rem 0 0","background-clip":"padding-box",border:"1px solid transparent",opacity:"0",visibility:"hidden","pointer-events":"none",transform:"translateY(-4px)",transition:"opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s ease-out"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto",transform:"translateY(0)"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",padding:"0.4rem 1rem",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem",cursor:"pointer"},".bw_dropdown_item:focus-visible":{outline:"2px solid currentColor","outline-offset":"-2px"},".bw_dropdown_divider":{height:"0",margin:"0.5rem 0",overflow:"hidden",opacity:"1"}},formSwitch:{".bw_form_switch":{"padding-left":"2.5em"},".bw_form_switch .bw_switch_input":{width:"2em",height:"1.125em","margin-left":"-2.5em","border-radius":"2em",appearance:"none","background-image":"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1)'/%3e%3c/svg%3e\")","background-position":"left center","background-repeat":"no-repeat","background-size":"contain",cursor:"pointer",transition:"background-color 0.15s ease-out, background-position 0.15s ease-out, border-color 0.15s ease-out"},".bw_form_switch .bw_switch_input:checked":{"background-position":"right center"},".bw_form_switch .bw_switch_input:disabled":{opacity:"0.5",cursor:"not-allowed"}},skeleton:{".bw_skeleton":{"background-size":"400% 100%",animation:"bw_skeleton_shimmer 1.4s ease infinite"},".bw_skeleton_text":{height:"1em","margin-bottom":"0.5rem"},".bw_skeleton_circle":{"border-radius":"50%"},".bw_skeleton_rect":{},".bw_skeleton_group":{display:"flex","flex-direction":"column"},"@keyframes bw_skeleton_shimmer":{"0%":{"background-position":"100% 50%"},"100%":{"background-position":"0 50%"}}},avatar:{".bw_avatar":{display:"inline-flex","align-items":"center","justify-content":"center","border-radius":"50%",overflow:"hidden","font-weight":"600","text-transform":"uppercase","vertical-align":"middle","object-fit":"cover"},".bw_avatar_sm":{width:"2rem",height:"2rem","font-size":"0.75rem"},".bw_avatar_md":{width:"3rem",height:"3rem","font-size":"1rem"},".bw_avatar_lg":{width:"4rem",height:"4rem","font-size":"1.25rem"},".bw_avatar_xl":{width:"5rem",height:"5rem","font-size":"1.5rem"}},statCard:{".bw_stat_card":{padding:"1.25rem","border-left":"4px solid transparent","background-color":"inherit"},".bw_stat_card:hover":{transform:"translateY(-1px)"},".bw_stat_icon":{"font-size":"1.5rem","margin-bottom":"0.5rem"},".bw_stat_value":{"font-size":"2rem","font-weight":"700","line-height":"1.2"},".bw_stat_label":{"font-size":"0.875rem","margin-top":"0.25rem"},".bw_stat_change":{"font-size":"0.875rem","font-weight":"500","margin-top":"0.5rem"}},tooltip:{".bw_tooltip_wrapper":{position:"relative",display:"inline-block"},".bw_tooltip":{position:"absolute","z-index":"999","font-size":"0.875rem","white-space":"nowrap","max-width":"min(300px, calc(100vw - 1rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_tooltip.bw_tooltip_show":{opacity:"1",visibility:"visible"},".bw_tooltip_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-4px)","margin-bottom":"4px"},".bw_tooltip_top.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(4px)","margin-top":"4px"},".bw_tooltip_bottom.bw_tooltip_show":{transform:"translateX(-50%) translateY(0)"},".bw_tooltip_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-4px)","margin-right":"4px"},".bw_tooltip_left.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"},".bw_tooltip_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(4px)","margin-left":"4px"},".bw_tooltip_right.bw_tooltip_show":{transform:"translateY(-50%) translateX(0)"}},popover:{".bw_popover_wrapper":{position:"relative",display:"inline-block"},".bw_popover_trigger":{cursor:"pointer"},".bw_popover":{position:"absolute","z-index":"1000","min-width":"200px","max-width":"min(320px, calc(100vw - 2rem))","pointer-events":"none",opacity:"0",visibility:"hidden"},".bw_popover.bw_popover_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_popover_header":{"font-weight":"600","font-size":"0.9375rem"},".bw_popover_body":{"font-size":"0.875rem","line-height":"1.5"},".bw_popover_top":{bottom:"100%",left:"50%",transform:"translateX(-50%) translateY(-8px)","margin-bottom":"8px"},".bw_popover_top.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_bottom":{top:"100%",left:"50%",transform:"translateX(-50%) translateY(8px)","margin-top":"8px"},".bw_popover_bottom.bw_popover_show":{transform:"translateX(-50%) translateY(0)"},".bw_popover_left":{right:"100%",top:"50%",transform:"translateY(-50%) translateX(-8px)","margin-right":"8px"},".bw_popover_left.bw_popover_show":{transform:"translateY(-50%) translateX(0)"},".bw_popover_right":{left:"100%",top:"50%",transform:"translateY(-50%) translateX(8px)","margin-left":"8px"},".bw_popover_right.bw_popover_show":{transform:"translateY(-50%) translateX(0)"}},searchInput:{".bw_search_input":{position:"relative",display:"flex","align-items":"center"},".bw_search_input .bw_search_field":{"padding-right":"2.5rem"},".bw_search_clear":{position:"absolute",right:"0.5rem",display:"flex","align-items":"center","justify-content":"center",width:"1.5rem",height:"1.5rem",border:"none",background:"none","font-size":"1.25rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_search_clear:focus-visible":{outline:"2px solid currentColor","outline-offset":"2px"}},range:{".bw_range_wrapper":{"margin-bottom":"1rem"},".bw_range_label":{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"0.5rem","font-size":"0.875rem","font-weight":"500"},".bw_range_value":{"font-weight":"600"},".bw_range":{width:"100%",height:"0.5rem",padding:"0",appearance:"none",border:"none","border-radius":"0.25rem",cursor:"pointer",outline:"none"},".bw_range:focus":{outline:"none"},".bw_range::-webkit-slider-thumb":{appearance:"none",width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-moz-range-thumb":{width:"1.25rem",height:"1.25rem","border-radius":"50%","border-width":"2px","border-style":"solid",cursor:"pointer"},".bw_range::-webkit-slider-thumb:hover":{transform:"scale(1.15)"},".bw_range:disabled":{opacity:"0.5",cursor:"not-allowed"}},mediaObject:{".bw_media":{display:"flex","align-items":"flex-start",gap:"1rem"},".bw_media_reverse":{"flex-direction":"row-reverse"},".bw_media_img":{"border-radius":"50%","object-fit":"cover","flex-shrink":"0"},".bw_media_body":{flex:"1","min-width":"0"},".bw_media_title":{margin:"0 0 0.25rem 0","font-size":"1rem","font-weight":"600","line-height":"1.3"}},fileUpload:{".bw_file_upload":{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",border:"2px dashed transparent",cursor:"pointer","text-align":"center",position:"relative"},".bw_file_upload_icon":{"font-size":"2rem","margin-bottom":"0.5rem"},".bw_file_upload_text":{"font-size":"0.875rem"},".bw_file_upload_input":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:"0"}},timeline:{".bw_timeline":{position:"relative","padding-left":"2rem"},".bw_timeline::before":{content:'""',position:"absolute",left:"0.5rem",top:"0",bottom:"0",width:"2px"},".bw_timeline_item":{position:"relative","padding-bottom":"1.5rem"},".bw_timeline_item:last-child":{"padding-bottom":"0"},".bw_timeline_marker":{position:"absolute",left:"-1.75rem",top:"0.25rem",width:"0.75rem",height:"0.75rem","border-radius":"50%"},".bw_timeline_content":{"padding-left":"0.5rem"},".bw_timeline_date":{"font-size":"0.75rem","margin-bottom":"0.25rem","font-weight":"500"},".bw_timeline_title":{"font-size":"1rem","font-weight":"600",margin:"0 0 0.25rem 0","line-height":"1.3"},".bw_timeline_text":{"font-size":"0.875rem",margin:"0","line-height":"1.5"}},stepper:{".bw_stepper":{display:"flex",gap:"0","counter-reset":"step"},".bw_step":{flex:"1",display:"flex","flex-direction":"column","align-items":"center","text-align":"center",position:"relative"},".bw_step + .bw_step::before":{content:'""',position:"absolute",top:"1rem",left:"-50%",right:"50%",height:"2px"},".bw_step_indicator":{width:"2rem",height:"2rem","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","font-size":"0.875rem","font-weight":"600",position:"relative","z-index":"1"},".bw_step_body":{"margin-top":"0.5rem"},".bw_step_label":{"font-size":"0.875rem","font-weight":"500"},".bw_step_description":{"font-size":"0.75rem","margin-top":"0.125rem"}},chipInput:{".bw_chip_input":{display:"flex","flex-wrap":"wrap","align-items":"center",gap:"0.375rem",padding:"0.375rem 0.5rem","min-height":"2.5rem",cursor:"text"},".bw_chip":{display:"inline-flex","align-items":"center",gap:"0.25rem",padding:"0.125rem 0.5rem","border-radius":"1rem","font-size":"0.8125rem","line-height":"1.5","white-space":"nowrap"},".bw_chip_remove":{display:"inline-flex","align-items":"center","justify-content":"center",width:"1rem",height:"1rem",border:"none",background:"none","font-size":"0.875rem",cursor:"pointer",padding:"0","border-radius":"50%"},".bw_chip_remove:focus-visible":{outline:"2px solid currentColor","outline-offset":"1px"},".bw_chip_field":{flex:"1","min-width":"80px",border:"none",outline:"none","font-size":"0.875rem",padding:"0.125rem 0",background:"transparent"}},barChart:{".bw_bar_chart_container":{padding:"1rem",border:"1px solid transparent"},".bw_bar_chart":{display:"flex","align-items":"flex-end",gap:"6px",padding:"0 0.5rem"},".bw_bar_group":{flex:"1",display:"flex","flex-direction":"column","align-items":"center",height:"100%","justify-content":"flex-end"},".bw_bar":{width:"100%","border-radius":"3px 3px 0 0","min-height":"4px"},".bw_bar:hover":{opacity:"0.85"},".bw_bar_value":{"font-size":"0.65rem","font-weight":"600","margin-bottom":"2px","text-align":"center"},".bw_bar_label":{"font-size":"0.7rem","margin-top":"4px","text-align":"center"},".bw_bar_chart_title":{"font-size":"1.1rem","font-weight":"600",margin:"0 0 0.75rem 0"}},responsive:{"@media (min-width: 576px)":{".bw_col_sm_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_sm_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_sm_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_sm_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_sm_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_sm_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_sm_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_sm_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_sm_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_sm_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_sm_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_sm_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 768px)":{".bw_col_md_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_md_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_md_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_md_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_md_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_md_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_md_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_md_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_md_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_md_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_md_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_md_12":{flex:"0 0 100%","max-width":"100%"}},"@media (min-width: 992px)":{".bw_col_lg_1":{flex:"0 0 8.333333%","max-width":"8.333333%"},".bw_col_lg_2":{flex:"0 0 16.666667%","max-width":"16.666667%"},".bw_col_lg_3":{flex:"0 0 25%","max-width":"25%"},".bw_col_lg_4":{flex:"0 0 33.333333%","max-width":"33.333333%"},".bw_col_lg_5":{flex:"0 0 41.666667%","max-width":"41.666667%"},".bw_col_lg_6":{flex:"0 0 50%","max-width":"50%"},".bw_col_lg_7":{flex:"0 0 58.333333%","max-width":"58.333333%"},".bw_col_lg_8":{flex:"0 0 66.666667%","max-width":"66.666667%"},".bw_col_lg_9":{flex:"0 0 75%","max-width":"75%"},".bw_col_lg_10":{flex:"0 0 83.333333%","max-width":"83.333333%"},".bw_col_lg_11":{flex:"0 0 91.666667%","max-width":"91.666667%"},".bw_col_lg_12":{flex:"0 0 100%","max-width":"100%"}},"@media (max-width: 575px)":{".bw_card_img_left, .bw_card-img-left":{width:"100%"},".bw_card_img_right, .bw_card-img-right":{width:"100%"},".bw_hero, .bw_hero":{padding:"2rem 1rem"},".bw_cta_actions, .bw_cta-actions":{"flex-direction":"column"},".bw_hstack, .bw_hstack":{"flex-direction":"column"},".bw_feature_grid, .bw_feature-grid":{"grid-template-columns":"1fr"},".bw_modal_dialog":{margin:"0.5rem auto"},".bw_modal_lg":{"max-width":"calc(100% - 1rem)"},".bw_modal_xl":{"max-width":"calc(100% - 1rem)"},".bw_navbar":{padding:"0.5rem 0.75rem"},".bw_navbar_brand":{"margin-right":"0.5rem","font-size":"1rem"},".bw_navbar_nav":{"flex-wrap":"wrap"},".bw_tooltip":{"white-space":"normal"},".bw_table":{display:"block","overflow-x":"auto","-webkit-overflow-scrolling":"touch"},".bw_col, .bw_col_1, .bw_col_2, .bw_col_3, .bw_col_4, .bw_col_5, .bw_col_6, .bw_col_7, .bw_col_8, .bw_col_9, .bw_col_10, .bw_col_11, .bw_col_12":{flex:"0 0 100%","max-width":"100%"},".bw_container":{"padding-right":"0.5rem","padding-left":"0.5rem"},".bw_container_fluid":{"padding-right":"0.5rem","padding-left":"0.5rem"}}}};function E(){var e={},t={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var r in t){var o=t[r];e[".bw_m_"+r]={margin:o+" !important"},e[".bw_mt_"+r]={"margin-top":o+" !important"},e[".bw_mb_"+r]={"margin-bottom":o+" !important"},e[".bw_ms_"+r]={"margin-left":o+" !important"},e[".bw_me_"+r]={"margin-right":o+" !important"},e[".bw_p_"+r]={padding:o+" !important"},e[".bw_pt_"+r+", .pt-"+r]={"padding-top":o+" !important"},e[".bw_pb_"+r+", .pb-"+r]={"padding-bottom":o+" !important"},e[".bw_ps_"+r+", .ps-"+r]={"padding-left":o+" !important"},e[".bw_pe_"+r+", .pe-"+r]={"padding-right":o+" !important"}}e[".bw_m_auto, .m-auto"]={margin:"auto !important"},e[".bw_py_3"]={"padding-top":"1rem !important","padding-bottom":"1rem !important"},e[".bw_py_4"]={"padding-top":"1.5rem !important","padding-bottom":"1.5rem !important"},e[".bw_py_5"]={"padding-top":"3rem !important","padding-bottom":"3rem !important"},e[".bw_py_6"]={"padding-top":"4rem !important","padding-bottom":"4rem !important"},e[".bw_d_none"]={display:"none"},e[".bw_d_block"]={display:"block"},e[".bw_d_inline"]={display:"inline"},e[".bw_d_inline_block"]={display:"inline-block"},e[".bw_d_flex"]={display:"flex"},e[".bw_text_left"]={"text-align":"left"},e[".bw_text_right"]={"text-align":"right"},e[".bw_text_center"]={"text-align":"center"},e[".bw_text_justify"]={"text-align":"justify"},e[".bw_fw_bold"]={"font-weight":"700"},e[".bw_fw_semibold"]={"font-weight":"600"},e[".bw_fw_normal"]={"font-weight":"400"},e[".bw_fw_light"]={"font-weight":"300"},e[".bw_fst_italic"]={"font-style":"italic"},e[".bw_fst_normal"]={"font-style":"normal"},e[".bw_text_underline"]={"text-decoration":"underline"},e[".bw_text_line_through"]={"text-decoration":"line-through"},e[".bw_text_decoration_none"]={"text-decoration":"none"},e[".bw_text_uppercase"]={"text-transform":"uppercase"},e[".bw_text_lowercase"]={"text-transform":"lowercase"},e[".bw_text_capitalize"]={"text-transform":"capitalize"},e[".bw_fs_sm"]={"font-size":"0.875rem"},e[".bw_fs_base"]={"font-size":"1rem"},e[".bw_fs_lg"]={"font-size":"1.25rem"},e[".bw_fs_xl"]={"font-size":"1.5rem"};var a={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var n in a)e[".bw_justify_content_"+n+", .justify-content-"+n]={"justify-content":a[n]};var i={start:"flex-start",end:"flex-end",center:"center"};for(var s in i)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":i[s]};e[".bw_border"]={border:"1px solid transparent !important"},e[".bw_border_0"]={border:"0 !important"},e[".bw_border_top_0, .border-top-0"]={"border-top":"0 !important"},e[".bw_border_end_0, .border-end-0"]={"border-right":"0 !important"},e[".bw_border_bottom_0, .border-bottom-0"]={"border-bottom":"0 !important"},e[".bw_border_start_0, .border-start-0"]={"border-left":"0 !important"},e[".bw_rounded"]={"border-radius":".375rem !important"},e[".bw_rounded_0"]={"border-radius":"0 !important"},e[".bw_rounded_1, .rounded-1"]={"border-radius":".25rem !important"},e[".bw_rounded_2, .rounded-2"]={"border-radius":".375rem !important"},e[".bw_rounded_3, .rounded-3"]={"border-radius":".5rem !important"},e[".bw_rounded_circle"]={"border-radius":"50% !important"},e[".bw_rounded_pill, .rounded-pill"]={"border-radius":"50rem !important"},e[".bw_shadow"]={"box-shadow":"0 .5rem 1rem rgba(0,0,0,.15) !important"},e[".bw_shadow_sm"]={"box-shadow":"0 .125rem .25rem rgba(0,0,0,.075) !important"},e[".bw_shadow_lg"]={"box-shadow":"0 1rem 3rem rgba(0,0,0,.175) !important"},e[".bw_shadow_none, .shadow-none"]={"box-shadow":"none !important"},["25","50","75","100"].forEach(function(t){e[".bw_w_"+t+", .w-"+t]={width:t+"% !important"},e[".bw_h_"+t+", .h-"+t]={height:t+"% !important"}}),e[".bw_w_auto, .w-auto"]={width:"auto !important"},e[".bw_h_auto, .h-auto"]={height:"auto !important"},e[".bw_mw_100, .mw-100"]={"max-width":"100% !important"},e[".bw_mh_100, .mh-100"]={"max-height":"100% !important"},["static","relative","absolute","fixed","sticky"].forEach(function(t){e[".bw_position_"+t+", .position-"+t]={position:t+" !important"}}),e[".bw_top_0, .top-0"]={top:"0 !important"},e[".bw_top_50, .top-50"]={top:"50% !important"},e[".bw_top_100, .top-100"]={top:"100% !important"},e[".bw_bottom_0, .bottom-0"]={bottom:"0 !important"},e[".bw_bottom_50, .bottom-50"]={bottom:"50% !important"},e[".bw_bottom_100, .bottom-100"]={bottom:"100% !important"},e[".bw_start_0, .start-0"]={left:"0 !important"},e[".bw_start_50, .start-50"]={left:"50% !important"},e[".bw_start_100, .start-100"]={left:"100% !important"},e[".bw_end_0, .end-0"]={right:"0 !important"},e[".bw_end_50, .end-50"]={right:"50% !important"},e[".bw_end_100, .end-100"]={right:"100% !important"},e[".bw_translate_middle, .translate-middle"]={transform:"translate(-50%, -50%) !important"},["auto","hidden","visible","scroll"].forEach(function(t){e[".bw_overflow_"+t+", .overflow-"+t]={overflow:t+" !important"}}),e[".fs-1"]={"font-size":"calc(1.375rem + 1.5vw) !important"},e[".fs-2"]={"font-size":"calc(1.325rem + .9vw) !important"},e[".fs-3"]={"font-size":"calc(1.3rem + .6vw) !important"},e[".fs-4"]={"font-size":"calc(1.275rem + .3vw) !important"},e[".fs-5"]={"font-size":"1.25rem !important"},e[".fs-6"]={"font-size":"1rem !important"},e[".fw-light"]={"font-weight":"300 !important"},e[".fw-lighter"]={"font-weight":"lighter !important"},e[".fw-normal"]={"font-weight":"400 !important"},e[".fw-bold"]={"font-weight":"700 !important"},e[".fw-bolder"]={"font-weight":"bolder !important"},e[".fst-italic"]={"font-style":"italic !important"},e[".fst-normal"]={"font-style":"normal !important"},e[".text-decoration-none"]={"text-decoration":"none !important"},e[".text-decoration-underline"]={"text-decoration":"underline !important"},e[".text-decoration-line-through"]={"text-decoration":"line-through !important"},e[".text-lowercase"]={"text-transform":"lowercase !important"},e[".text-uppercase"]={"text-transform":"uppercase !important"},e[".text-capitalize"]={"text-transform":"capitalize !important"},e[".text-wrap"]={"white-space":"normal !important"},e[".text-nowrap"]={"white-space":"nowrap !important"},e[".list-unstyled"]={"padding-left":"0","list-style":"none"},e[".list-inline"]={"padding-left":"0","list-style":"none"},e[".list-inline-item"]={display:"inline-block"},e[".list-inline-item:not(:last-child)"]={"margin-right":".5rem"};var l=function(e,t){var r={};return r[e]=t+" !important",r};for(var c in[["fs",{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},"font-size"],["fw",{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},"font-weight"],["lh",{tight:"1.25",normal:"1.5",relaxed:"1.75"},"line-height"]].forEach(function(t){for(var r in t[1])e[".bw_"+t[0]+"_"+r]=l(t[2],t[1][r])}),e[".bw_flex"]={display:"flex"},e[".bw_flex_column"]={"flex-direction":"column"},e[".bw_flex_wrap"]={"flex-wrap":"wrap"},e[".bw_flex_center"]={display:"flex","align-items":"center","justify-content":"center"},t)e[".bw_gap_"+c]={gap:t[c]+" !important"};return e[".bw_visible, .visible"]={visibility:"visible !important"},e[".bw_invisible, .invisible"]={visibility:"hidden !important"},["all","auto","none"].forEach(function(t){e[".bw_user_select_"+t+", .user-select-"+t]={"user-select":t+" !important"}}),e[".pe-none"]={"pointer-events":"none !important"},e[".pe-auto"]={"pointer-events":"auto !important"},e[".opacity-0"]={opacity:"0 !important"},e[".opacity-25"]={opacity:".25 !important"},e[".opacity-50"]={opacity:".5 !important"},e[".opacity-75"]={opacity:".75 !important"},e[".opacity-100"]={opacity:"1 !important"},e}function N(){return function(){for(var e={},t=Object.keys($),r=0;r<t.length;r++)Object.assign(e,$[t[r]]);return Object.assign(e,E()),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e}()}function M(e,t,r){var o={};for(var a in e)if(e.hasOwnProperty(a))if("@"===a.charAt(0)){var n=e[a],i={};for(var s in n)n.hasOwnProperty(s)&&(i[I(s,t)]=n[s]);o[a]=i}else o[I(a,t)]=e[a];return o}function I(e,t){for(var r=e.split(","),o=[],a=0;a<r.length;a++)o.push(t+" "+r[a].trim());return o.join(", ")}
|
|
37
37
|
/**
|
|
38
38
|
* Bitwrench v2 File I/O Functions
|
|
39
39
|
*
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
* @license BSD-2-Clause
|
|
62
62
|
* @author M A Chatterjee <deftio [at] deftio [dot] com>
|
|
63
63
|
*/
|
|
64
|
-
function O(e,t){if(null===e)return"null";const r=typeof e;if("object"!==r)return r;if(t)return r;const o=Object.prototype.toString.call(e),a={"[object Array]":"array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error","[object Promise]":"Promise","[object Map]":"Map","[object Set]":"Set","[object WeakMap]":"WeakMap","[object WeakSet]":"WeakSet","[object ArrayBuffer]":"ArrayBuffer","[object DataView]":"DataView","[object Int8Array]":"Int8Array","[object Uint8Array]":"Uint8Array","[object Uint8ClampedArray]":"Uint8ClampedArray","[object Int16Array]":"Int16Array","[object Uint16Array]":"Uint16Array","[object Int32Array]":"Int32Array","[object Uint32Array]":"Uint32Array","[object Float32Array]":"Float32Array","[object Float64Array]":"Float64Array"};return a[o]?a[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function T(e,t,r,o,a,n={}){const{clip:i=!1,expScale:s=1}=n;let l=(e-t)/(r-t);1!==s&&(l=Math.pow(l,s));let c=l*(a-o)+o;if(i){const e=Math.min(o,a),t=Math.max(o,a);c=Math.max(e,Math.min(t,c))}return c}function
|
|
64
|
+
function O(e,t){if(null===e)return"null";const r=typeof e;if("object"!==r)return r;if(t)return r;const o=Object.prototype.toString.call(e),a={"[object Array]":"array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error","[object Promise]":"Promise","[object Map]":"Map","[object Set]":"Set","[object WeakMap]":"WeakMap","[object WeakSet]":"WeakSet","[object ArrayBuffer]":"ArrayBuffer","[object DataView]":"DataView","[object Int8Array]":"Int8Array","[object Uint8Array]":"Uint8Array","[object Uint8ClampedArray]":"Uint8ClampedArray","[object Int16Array]":"Int16Array","[object Uint16Array]":"Uint16Array","[object Int32Array]":"Int32Array","[object Uint32Array]":"Uint32Array","[object Float32Array]":"Float32Array","[object Float64Array]":"Float64Array"};return a[o]?a[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function T(e,t,r,o,a,n={}){const{clip:i=!1,expScale:s=1}=n;let l=(e-t)/(r-t);1!==s&&(l=Math.pow(l,s));let c=l*(a-o)+o;if(i){const e=Math.min(o,a),t=Math.max(o,a);c=Math.max(e,Math.min(t,c))}return c}function R(e,t,r){return Math.max(t,Math.min(r,e))}function B(e){return"array"!==O(e)?[]:e.filter((e,t,r)=>r.indexOf(e)===t)}
|
|
65
65
|
/**
|
|
66
66
|
* Bitwrench Router -- client-side URL routing for SPAs
|
|
67
67
|
*
|
|
@@ -88,7 +88,7 @@ function D(e){var t=e.indexOf("?");return t>=0&&(e=e.substring(0,t)),(e=e.replac
|
|
|
88
88
|
* @license BSD-2-Clause
|
|
89
89
|
* @author M A Chatterjee <deftio [at] deftio [dot] com>
|
|
90
90
|
*/
|
|
91
|
-
function P(e){return e?0===e.indexOf("outline")?"bw_btn_outline bw_"+e.replace(/^outline[_-]/,""):"bw_"+e:""}function F(e={}){const{title:t,subtitle:r,content:o,footer:a,header:n,image:i,imagePosition:s="top",variant:l,bordered:c=!0,shadow:d,hoverable:b=!1,className:_="",style:u,headerClass:p="",bodyClass:m="",footerClass:w=""}=e,f=["bw_card",P(l),d&&{none:"",sm:"bw_shadow_sm",md:"bw_shadow",lg:"bw_shadow_lg"}[d]||"",c?"":"bw_border_0",b?"bw_card_hoverable":"",_].filter(Boolean).join(" ").trim(),h=[n&&{t:"div",a:{class:`bw_card_header ${p}`.trim()},c:n},i&&("top"===s||"left"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},{t:"div",a:{class:`bw_card_body ${m}`.trim()},c:[t&&{t:"h5",a:{class:"bw_card_title"},c:t},r&&{t:"h6",a:{class:"bw_card_subtitle bw_mb_2 bw_text_muted"},c:r},o&&(Array.isArray(o)?o:[o])].flat().filter(Boolean)},i&&("bottom"===s||"right"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},a&&{t:"div",a:{class:`bw_card_footer ${w}`.trim()},c:a}].filter(Boolean);return!i||"left"!==s&&"right"!==s?{t:"div",a:{class:f,style:u},c:h,o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}:{t:"div",a:{class:f,style:u},c:{t:"div",a:{class:"bw_row bw_g_0"},c:h},o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}}function H(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,disabled:a=!1,onclick:n,type:i="button",className:s="",style:l}=e;return{t:"button",a:{type:i,class:["bw_btn",P(r),o&&`bw_btn_${o}`,s].filter(Boolean).join(" "),disabled:a,onclick:n,style:l},c:t,o:{type:"button"}}}function Y(e={}){const{fluid:t=!1,children:r,className:o=""}=e;return{t:"div",a:{class:`bw_container${t?"-fluid":""} ${o}`.trim()},c:r}}function G(e={}){const{children:t,className:r="",gap:o}=e;return{t:"div",a:{class:`bw_row ${o?`bw_g_${o}`:""} ${r}`.trim()},c:t}}function X(e={}){const{size:t,offset:r,push:o,pull:a,content:n,children:i,className:s=""}=e,l=[];return"object"==typeof t?Object.entries(t).forEach(([e,t])=>{"xs"===e?l.push(`bw_col_${t}`):l.push(`bw_col_${e}_${t}`)}):t?l.push(`bw_col_${t}`):l.push("bw_col"),r&&l.push(`bw_offset_${r}`),o&&l.push(`bw_push_${o}`),a&&l.push(`bw_pull_${a}`),{t:"div",a:{class:`${l.join(" ")} ${s}`.trim()},c:n||i}}function J(e={}){const{items:t=[],pills:r=!1,vertical:o=!1,className:a=""}=e;return{t:"ul",a:{class:`bw_nav ${r?"bw_nav_pills":"bw_nav_tabs"} ${o?"bw_nav_vertical":""} ${a}`.trim()},c:t.map(e=>({t:"li",a:{class:"bw_nav_item"},c:{t:"a",a:{href:e.href||"#",class:`bw_nav_link ${e.active?"active":""} ${e.disabled?"disabled":""}`.trim()},c:e.text}}))}}function V(e={}){const{brand:t,brandHref:r="#",items:o=[],dark:a=!0,className:n=""}=e;return{t:"nav",a:{class:`bw_navbar ${a?"bw_navbar_dark":"bw_navbar_light"} ${n}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[t&&{t:"a",a:{href:r,class:"bw_navbar_brand"},c:t},o.length>0&&{t:"div",a:{class:"bw_navbar_nav"},c:o.map(e=>({t:"a",a:{href:e.href||"#",class:"bw_nav_link "+(e.active?"active":"")},c:e.text}))}].filter(Boolean)},o:{type:"navbar",state:{activeItem:o.findIndex(e=>e.active)}}}}function W(e={}){const{tabs:t=[],activeIndex:r=0}=e;let o=r;function a(e,t){var r=e.querySelectorAll(".bw_nav_link"),o=e.querySelectorAll(".bw_tab_pane");t<0||t>=r.length||(r.forEach(function(e){e.classList.remove("active"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")}),o.forEach(function(e){e.classList.remove("active")}),r[t].classList.add("active"),r[t].setAttribute("aria-selected","true"),r[t].setAttribute("tabindex","0"),o[t].classList.add("active"),e._bw_state&&(e._bw_state.activeIndex=t))}return t.forEach((e,t)=>{e.active&&(o=t)}),{t:"div",a:{class:"bw_tabs"},c:[{t:"ul",a:{class:"bw_nav bw_nav_tabs",role:"tablist"},c:t.map((e,t)=>({t:"li",a:{class:"bw_nav_item",role:"presentation"},c:{t:"button",a:{class:"bw_nav_link "+(t===o?"active":""),type:"button",role:"tab",tabindex:t===o?"0":"-1","aria-selected":t===o?"true":"false",onclick:e=>{a(e.target.closest(".bw_tabs"),t)}},c:e.label}}))},{t:"div",a:{class:"bw_tab_content"},c:t.map((e,t)=>({t:"div",a:{class:"bw_tab_pane "+(t===o?"active":""),role:"tabpanel"},c:e.content}))}],o:{type:"tabs",state:{activeIndex:o},handle:{setActiveTab:a,getActiveTab:function(e){return e._bw_state&&e._bw_state.activeIndex||0}},mounted:function(e){var t=e.querySelector('[role="tablist"]');t&&t.addEventListener("keydown",function(e){for(var r=t.querySelectorAll('[role="tab"]'),o=-1,a=0;a<r.length;a++)if(r[a]===e.target){o=a;break}if(-1!==o){var n=-1;"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),n=o>0?o-1:r.length-1):"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),n=o<r.length-1?o+1:0):"Home"===e.key?(e.preventDefault(),n=0):"End"===e.key&&(e.preventDefault(),n=r.length-1),n>=0&&(r[n].focus(),r[n].click())}})}}}}function K(e={}){"string"==typeof e&&(e={content:e});const{content:t,variant:r="info",dismissible:o=!1,className:a=""}=e;return{t:"div",a:{class:`bw_alert ${P(r)} ${o?"bw_alert_dismissible":""} ${a}`.trim(),role:"alert"},c:[t,o&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_alert");t&&t.remove()}},c:"×"}].filter(Boolean),o:{type:"alert",handle:{dismiss:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}}}}}function Z(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,pill:a=!1,className:n=""}=e,i="sm"===o?" bw_badge_sm":"lg"===o?" bw_badge_lg":"";return{t:"span",a:{class:`bw_badge ${P(r)}${i} ${a?"bw_badge_pill":""} ${n}`.trim()},c:t}}function Q(e={}){const{value:t=0,max:r=100,variant:o="primary",striped:a=!1,animated:n=!1,label:i,height:s}=e,l=Math.round(t/r*100);return{t:"div",a:{class:"bw_progress",style:s?{height:`${s}px`}:void 0},c:{t:"div",a:{class:["bw_progress_bar",P(o),a&&"bw_progress_bar_striped",n&&"bw_progress_bar_animated"].filter(Boolean).join(" "),role:"progressbar",style:{width:`${l}%`},"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r},c:i||`${l}%`},o:{type:"progress",handle:{setValue:function(e,t){var r=e.querySelector(".bw_progress_bar");if(r){var o=parseInt(r.getAttribute("aria-valuemax"))||100,a=Math.round(t/o*100);r.style.width=a+"%",r.setAttribute("aria-valuenow",t),r.textContent=a+"%"}},getValue:function(e){var t=e.querySelector(".bw_progress_bar");return t&&parseInt(t.getAttribute("aria-valuenow"))||0}}}}}function ee(e={}){const{items:t=[],flush:r=!1,interactive:o=!1}=e;return{t:"div",a:{class:("bw_list_group "+(r?"bw_list_group_flush":"")).trim()},c:t.map(e=>{const t="object"==typeof e,r=t?e.text:e,a=!!t&&e.active,n=!!t&&e.disabled,i=t?e.href:null,s=t?e.onclick:null;return o||i||s?{t:"a",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" "),href:i||"#",onclick:s||(e=>{i||e.preventDefault()}),style:n?"pointer-events: none; opacity: 0.65;":""},c:r}:{t:"div",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" ")},c:r}})}}function te(e={}){const{items:t=[]}=e;return{t:"nav",a:{"aria-label":"breadcrumb"},c:{t:"ol",a:{class:"bw_breadcrumb"},c:t.map((e,t)=>({t:"li",a:{class:"bw_breadcrumb_item "+(e.active?"active":""),"aria-current":e.active?"page":void 0},c:e.active?e.text:{t:"a",a:{href:e.href||"#"},c:e.text}}))}}}function re(e={}){const{children:t,onsubmit:r,className:o=""}=e;return{t:"form",a:{class:o,onsubmit:r||(e=>e.preventDefault())},c:t}}function oe(e={}){var{label:t,input:r,help:o,id:a,validation:n,feedback:i,required:s}=e,l=r;if(n&&r&&r.a){l={t:r.t,a:Object.assign({},r.a),c:r.c,o:r.o};var c="valid"===n?"bw_is_valid":"invalid"===n?"bw_is_invalid":"";c&&(l.a.class=((l.a.class||"")+" "+c).trim())}return{t:"div",a:{class:"bw_form_group"},c:[t&&{t:"label",a:{for:a,class:"bw_form_label"},c:s?[t,{t:"span",a:{class:"bw_text_danger bw_ms_1"},c:"*"}]:t},l,i&&n&&{t:"div",a:{class:"valid"===n?"bw_valid_feedback":"bw_invalid_feedback"},c:i},o&&{t:"small",a:{class:"bw_form_text bw_text_muted"},c:o}].filter(Boolean)}}function ae(e={}){const{type:t="text",placeholder:r,value:o,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",style:d,...b}=e;return{t:"input",a:{type:t,class:`bw_form_control ${c}`.trim(),placeholder:r,value:o,id:a,name:n,style:d,disabled:i,readonly:s,required:l,...b}}}function ne(e={}){const{placeholder:t,value:r,rows:o=3,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",...d}=e;return{t:"textarea",a:{class:`bw_form_control ${c}`.trim(),placeholder:t,rows:o,id:a,name:n,disabled:i,readonly:s,required:l,...d},c:r}}function ie(e={}){const{options:t=[],value:r,id:o,name:a,disabled:n=!1,required:i=!1,className:s="",...l}=e;return{t:"select",a:{class:`bw_form_control ${s}`.trim(),id:o,name:a,disabled:n,required:i,...l},c:t.map(e=>({t:"option",a:{value:e.value,selected:e.value===r},c:e.text||e.value}))}}function se(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,value:i,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input",checked:r,id:o,name:a,disabled:n,value:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function le(e={}){const{children:t,direction:r="vertical",gap:o=3,className:a=""}=e;return{t:"div",a:{class:`bw_${"vertical"===r?"vstack":"hstack"} bw_gap_${o} ${a}`.trim()},c:t}}function ce(e={}){const{variant:t="primary",size:r="md",type:o="border"}=e;return{t:"div",a:{class:`bw_spinner_${o} bw_spinner_${o}-${r} ${P(t)}`,role:"status"},c:{t:"span",a:{class:"bw_visually_hidden"},c:"Loading..."}}}function de(e={}){const{title:t,subtitle:r,content:o,variant:a="primary",size:n="lg",centered:i=!0,overlay:s=!1,backgroundImage:l,actions:c,className:d=""}=e,b={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_hero ${P(a)} ${b[n]||b.lg} ${i?"bw_text_center":""} ${d}`.trim(),style:l?`background-image: url('${l}'); background-size: cover; background-position: center;`:void 0},c:[s&&{t:"div",a:{class:"bw_hero_overlay"}},{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_hero_content"},c:[t&&{t:"h1",a:{class:"bw_hero_title bw_display_4 bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_hero_subtitle bw_lead bw_mb_4"},c:r},o,c&&{t:"div",a:{class:"bw_hero_actions bw_mt_4"},c:c}].filter(Boolean)}}].filter(Boolean)}}function be(e={}){const{features:t=[],columns:r=3,centered:o=!0,iconSize:a="3rem",className:n=""}=e,i="bw_col_md_"+12/r;return{t:"div",a:{class:`bw_feature_grid ${n}`.trim()},c:{t:"div",a:{class:"bw_row bw_g_4"},c:t.map(e=>({t:"div",a:{class:i},c:{t:"div",a:{class:"bw_feature "+(o?"bw_text_center":"")},c:[e.icon&&{t:"div",a:{class:"bw_feature_icon bw_mb_3 bw_text_primary",style:`font-size: ${a};`},c:e.icon},e.title&&{t:"h3",a:{class:"bw_feature_title bw_h5 bw_mb_2"},c:e.title},e.description&&{t:"p",a:{class:"bw_feature_description bw_text_muted"},c:e.description}].filter(Boolean)}}))}}}function _e(e={}){const{title:t,description:r,actions:o,variant:a="light",centered:n=!0,className:i=""}=e;return{t:"section",a:{class:`bw_cta bw_bg_${a} bw_py_5 ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_cta_content "+(n?"bw_text_center":"")},c:[t&&{t:"h2",a:{class:"bw_cta_title bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_cta_description bw_lead bw_mb_4"},c:r},o&&{t:"div",a:{class:"bw_cta_actions"},c:o}].filter(Boolean)}}}}function ue(e={}){const{title:t,subtitle:r,content:o,variant:a="default",spacing:n="md",className:i=""}=e,s={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_section ${s[n]||s.md} ${"default"!==a?`bw_bg_${a}`:""} ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[(t||r)&&{t:"div",a:{class:"bw_section_header bw_text_center bw_mb_5"},c:[t&&{t:"h2",a:{class:"bw_section_title"},c:t},r&&{t:"p",a:{class:"bw_section_subtitle bw_text_muted"},c:r}].filter(Boolean)},o].filter(Boolean)}}}function pe(e={}){const{title:t,description:r,code:o,result:a,language:n="javascript"}=e;Math.random().toString(36).substr(2,9);const i=[{label:"Result",active:!0,content:a}];o&&i.push({label:"Code",content:{t:"div",a:{style:"position: relative;"},c:[{t:"button",a:{class:"bw_copy_btn bw_code_copy_btn",onclick:function(e){navigator.clipboard.writeText(o).then(function(){var t=e.target,r=t.textContent;t.textContent="Copied!",t.classList.add("bw_code_copy_btn_copied"),setTimeout(function(){t.textContent=r,t.classList.remove("bw_code_copy_btn_copied")},2e3)})}},c:"Copy"},"undefined"!=typeof globalThis&&void 0!==globalThis.bw&&"function"==typeof globalThis.bw.codeEditor?globalThis.bw.codeEditor({code:o,lang:"javascript"===n?"js":n,readOnly:!0,height:"auto"}):{t:"pre",a:{class:"bw_code_pre"},c:{t:"code",a:{class:`bw_code_block language-${n}`},c:o}}]}});return{t:"div",a:{class:"bw_code_demo"},c:[t&&{t:"h3",c:t},r&&{t:"p",a:{class:"bw_text_muted bw_mb_3"},c:r},W({tabs:i})].filter(Boolean)}}function me(e={}){const{pages:t=1,currentPage:r=1,onPageChange:o,size:a,className:n=""}=e;function i(e){return function(a){a.preventDefault(),e<1||e>t||e===r||o&&o(e)}}const s=[];s.push({t:"li",a:{class:("bw_page_item "+(r<=1?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r-1),"aria-label":"Previous",disabled:r<=1||void 0},c:"‹"}});for(var l=1;l<=t;l++)(function(e){s.push({t:"li",a:{class:("bw_page_item "+(e===r?"bw_active":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(e),"aria-current":e===r?"page":void 0},c:""+e}})})(l);return s.push({t:"li",a:{class:("bw_page_item "+(r>=t?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r+1),"aria-label":"Next",disabled:r>=t||void 0},c:"›"}}),{t:"nav",a:{"aria-label":"Pagination"},c:{t:"ul",a:{class:`bw_pagination ${a?"bw_pagination_"+a:""} ${n}`.trim()},c:s},o:{type:"pagination",state:{currentPage:r,pages:t},handle:{setPage:function(e,r){if(!(r<1||r>t)){for(var a=e.querySelectorAll(".bw_page_item"),n=0;n<a.length;n++)a[n].classList.remove("bw_active");a[r]&&a[r].classList.add("bw_active"),e._bw_state&&(e._bw_state.currentPage=r),o&&o(r)}},getPage:function(e){return e._bw_state&&e._bw_state.currentPage||1}}}}}function we(e={}){const{label:t,name:r,value:o,checked:a=!1,id:n,disabled:i=!1,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"radio",class:"bw_form_check_input",name:r,value:o,checked:a,id:n,disabled:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:n},c:t}].filter(Boolean)}}function fe(e={}){const{children:t,size:r,vertical:o=!1,className:a=""}=e;return{t:"div",a:{class:`${o?"bw_btn_group_vertical":"bw_btn_group"} ${r?"bw_btn_group_"+r:""} ${a}`.trim(),role:"group"},c:t}}function he(e={}){const{items:t=[],multiOpen:r=!1,className:o=""}=e;return{t:"div",a:{class:`bw_accordion ${o}`.trim()},c:t.map(function(e,t){return{t:"div",a:{class:"bw_accordion_item"},c:[{t:"h2",a:{class:"bw_accordion_header"},c:{t:"button",a:{class:("bw_accordion_button "+(e.open?"":"bw_collapsed")).trim(),type:"button","aria-expanded":e.open?"true":"false",onclick:function(e){var t=e.target.closest(".bw_accordion_button"),o=t.closest(".bw_accordion"),a=t.closest(".bw_accordion_item"),n=a.querySelector(".bw_accordion_collapse"),i=n.classList.contains("bw_collapse_show");if(!r)for(var s=o.querySelectorAll(".bw_accordion_item"),l=0;l<s.length;l++)if(s[l]!==a){var c=s[l].querySelector(".bw_accordion_collapse"),d=s[l].querySelector(".bw_accordion_button");c.classList.contains("bw_collapse_show")&&(c.style.maxHeight=c.scrollHeight+"px",c.offsetHeight,c.style.maxHeight="0px",c.classList.remove("bw_collapse_show"),d.classList.add("bw_collapsed"),d.setAttribute("aria-expanded","false"))}if(i)n.style.maxHeight=n.scrollHeight+"px",n.offsetHeight,n.style.maxHeight="0px",n.classList.remove("bw_collapse_show"),t.classList.add("bw_collapsed"),t.setAttribute("aria-expanded","false");else{n.classList.add("bw_collapse_show"),n.style.maxHeight="0px",n.offsetHeight,n.style.maxHeight=n.scrollHeight+"px",t.classList.remove("bw_collapsed"),t.setAttribute("aria-expanded","true");var b=function(e){"max-height"===e.propertyName&&n.classList.contains("bw_collapse_show")&&(n.style.maxHeight="none"),n.removeEventListener("transitionend",b)};n.addEventListener("transitionend",b)}}},c:e.title}},{t:"div",a:{class:("bw_accordion_collapse "+(e.open?"bw_collapse_show":"")).trim()},c:{t:"div",a:{class:"bw_accordion_body"},c:e.content},o:e.open?{mounted:function(e){e.style.maxHeight="none"}}:void 0}]}}),o:{type:"accordion",state:{multiOpen:r},handle:{toggle:function(e,t){var r=e.querySelectorAll(".bw_accordion_item");if(!(t<0||t>=r.length)){var o=r[t].querySelector(".bw_accordion_button");o&&o.click()}},openAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")||(o.classList.add("bw_collapse_show"),o.style.maxHeight="none",a.classList.remove("bw_collapsed"),a.setAttribute("aria-expanded","true"))}},closeAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")&&(o.style.maxHeight=o.scrollHeight+"px",o.offsetHeight,o.style.maxHeight="0px",o.classList.remove("bw_collapse_show"),a.classList.add("bw_collapsed"),a.setAttribute("aria-expanded","false"))}}}}}}function ge(e={}){const{title:t,content:r,footer:o,size:a,closeButton:n=!0,onClose:i,className:s=""}=e;function l(e){var t=e.closest(".bw_modal");t&&(t.classList.remove("bw_modal_show"),document.body.style.overflow=""),i&&i()}return{t:"div",a:{class:`bw_modal ${s}`.trim()},c:{t:"div",a:{class:("bw_modal_dialog "+(a?"bw_modal_"+a:"")).trim()},c:{t:"div",a:{class:"bw_modal_content"},c:[(t||n)&&{t:"div",a:{class:"bw_modal_header"},c:[t&&{t:"h5",a:{class:"bw_modal_title"},c:t},n&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){l(e.target)}},c:"×"}].filter(Boolean)},r&&{t:"div",a:{class:"bw_modal_body"},c:r},o&&{t:"div",a:{class:"bw_modal_footer"},c:o}].filter(Boolean)}},o:{type:"modal",handle:{open:function(e){e.classList.add("bw_modal_show"),e.style.display="flex",document.body.style.overflow="hidden"},close:function(e){l(e)}},mounted:function(e){e.addEventListener("click",function(t){t.target===e&&l(e)});var t=function(t){"Escape"===t.key&&e.classList.contains("bw_modal_show")&&l(e)};document.addEventListener("keydown",t),e._bw_escHandler=t},unmount:function(e){e._bw_escHandler&&document.removeEventListener("keydown",e._bw_escHandler),document.body.style.overflow=""}}}}function ve(e={}){const{title:t,content:r,variant:o="info",autoDismiss:a=!0,delay:n=5e3,position:i="top-right",className:s=""}=e;return{t:"div",a:{class:`bw_toast ${P(o)} bw_toast_${i.replace(/-/g,"_")} ${s}`.trim(),role:"alert"},c:[t&&{t:"div",a:{class:"bw_toast_header"},c:[{t:"strong",c:t},{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_toast");t&&(t.classList.add("bw_toast_hiding"),setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},300))}},c:"×"}]},r&&{t:"div",a:{class:"bw_toast_body"},c:r}].filter(Boolean),o:{type:"toast",handle:{dismiss:function(e){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)}},mounted:function(e){requestAnimationFrame(function(){e.classList.add("bw_toast_show")}),a&&setTimeout(function(){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)},n)}}}}function ye(e={}){const{trigger:t,items:r=[],align:o="start",variant:a="primary",className:n=""}=e;var i;return i="string"==typeof t||void 0===t?{t:"button",a:{class:`bw_btn ${P(a)} bw_dropdown_toggle`,type:"button",onclick:function(e){e.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.toggle("bw_dropdown_show")}},c:t||"Dropdown"}:t,{t:"div",a:{class:`bw_dropdown ${n}`.trim()},c:[i,{t:"div",a:{class:("bw_dropdown_menu "+("end"===o?"bw_dropdown_menu_end":"")).trim()},c:r.map(function(e){return e.divider?{t:"hr",a:{class:"bw_dropdown_divider"}}:{t:"a",a:{class:("bw_dropdown_item "+(e.disabled?"disabled":"")).trim(),href:e.href||"#",onclick:e.disabled?void 0:function(t){e.href||t.preventDefault(),t.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.remove("bw_dropdown_show"),e.onclick&&e.onclick(t)}},c:e.text}})}],o:{type:"dropdown",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_dropdown_menu");r&&r.classList.remove("bw_dropdown_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function xe(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,className:i="",...s}=e;return{t:"div",a:{class:`bw_form_check bw_form_switch ${i}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input bw_switch_input",role:"switch",checked:r,id:o,name:a,disabled:n,...s}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function ke(e={}){const{variant:t="text",width:r,height:o,count:a=1,className:n=""}=e;if("circle"===t){var i=r||o||"3rem";return{t:"div",a:{class:`bw_skeleton bw_skeleton_circle ${n}`.trim(),style:{width:i,height:i}}}}if("rect"===t)return{t:"div",a:{class:`bw_skeleton bw_skeleton_rect ${n}`.trim(),style:{width:r||"100%",height:o||"120px"}}};if(1===a)return{t:"div",a:{class:`bw_skeleton bw_skeleton_text ${n}`.trim(),style:{width:r||"100%",height:o||"1em"}}};for(var s=[],l=0;l<a;l++)s.push({t:"div",a:{class:"bw_skeleton bw_skeleton_text",style:{width:l===a-1?"75%":r||"100%",height:o||"1em"}}});return{t:"div",a:{class:`bw_skeleton_group ${n}`.trim()},c:s}}function Ce(e={}){const{src:t,alt:r="",initials:o,size:a="md",variant:n="primary",className:i=""}=e;return t?{t:"img",a:{class:`bw_avatar bw_avatar_${a} ${i}`.trim(),src:t,alt:r}}:{t:"div",a:{class:`bw_avatar bw_avatar_${a} ${P(n)} ${i}`.trim()},c:o||""}}function Se(e={}){const{items:t=[],showControls:r=!0,showIndicators:o=!0,autoPlay:a=!1,interval:n=5e3,height:i="300px",startIndex:s=0,className:l=""}=e;function c(e,t){var r=e.querySelectorAll(".bw_carousel_slide").length;t<0&&(t=r-1),t>=r&&(t=0),e._bw_carouselIndex=t,e.querySelector(".bw_carousel_track").style.transform="translateX(-"+100*t+"%)";for(var o=e.querySelectorAll(".bw_carousel_indicator"),a=0;a<o.length;a++)a===t?o[a].classList.add("active"):o[a].classList.remove("active")}var d=t.map(function(e){var t=[e.content,e.caption&&{t:"div",a:{class:"bw_carousel_caption"},c:e.caption}].filter(Boolean);return{t:"div",a:{class:"bw_carousel_slide"},c:1===t.length?t[0]:t}}),b=[{t:"div",a:{class:"bw_carousel_track",style:"transform: translateX(-"+100*s+"%)"},c:d}];return r&&t.length>1&&(b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_prev",type:"button","aria-label":"Previous slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)-1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}}),b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_next",type:"button","aria-label":"Next slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)+1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}})),o&&t.length>1&&b.push({t:"div",a:{class:"bw_carousel_indicators"},c:t.map(function(e,t){return{t:"button",a:{class:"bw_carousel_indicator"+(t===s?" active":""),type:"button","aria-label":"Go to slide "+(t+1),onclick:function(e){c(e.target.closest(".bw_carousel"),t)}}}})}),{t:"div",a:{class:("bw_carousel "+l).trim(),style:"height: "+i,tabindex:"0","aria-roledescription":"carousel"},c:b,o:{type:"carousel",state:{activeIndex:s,autoPlay:a,interval:n},handle:{goToSlide:function(e,t){c(e,t)},next:function(e){c(e,(e._bw_carouselIndex||0)+1)},prev:function(e){c(e,(e._bw_carouselIndex||0)-1)},getActiveIndex:function(e){return e._bw_carouselIndex||0},pause:function(e){e._bw_carouselInterval&&(clearInterval(e._bw_carouselInterval),e._bw_carouselInterval=null)},play:function(e){if(!e._bw_carouselInterval&&e._bw_state){var t=e._bw_state.interval||5e3;e._bw_carouselInterval=setInterval(function(){c(e,(e._bw_carouselIndex||0)+1)},t)}}},mounted:function(e){if(e._bw_carouselIndex=s,e.addEventListener("keydown",function(t){var r=e._bw_carouselIndex||0;"ArrowLeft"===t.key?(t.preventDefault(),c(e,r-1)):"ArrowRight"===t.key&&(t.preventDefault(),c(e,r+1))}),a){var t=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n);e._bw_carouselInterval=t,e.addEventListener("mouseenter",function(){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}),e.addEventListener("mouseleave",function(){e._bw_carouselInterval=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n)})}},unmount:function(e){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}}}}function je(e={}){"string"==typeof e&&(e={label:e});var{value:t=0,label:r,change:o,format:a,prefix:n,suffix:i,icon:s,variant:l,className:c="",style:d}=e;var b=["bw_stat_card",P(l),c].filter(Boolean).join(" ").trim(),_=[];return s&&_.push({t:"div",a:{class:"bw_stat_icon"},c:s}),_.push({t:"div",a:{class:"bw_stat_value"},c:function(e,t){if(n||i)return(n||"")+e+(i||"");switch(t){case"currency":return"$"+Number(e).toLocaleString();case"percent":return e+"%";case"number":return Number(e).toLocaleString();default:return""+e}}(t,a)}),r&&_.push({t:"div",a:{class:"bw_stat_label"},c:r}),null!=o&&_.push({t:"div",a:{class:"bw_stat_change "+(o>=0?"bw_stat_change_up":"bw_stat_change_down")},c:(o>=0?"↑ +":"↓ ")+o+"%"}),{t:"div",a:{class:b,style:d},c:_,o:{type:"stat-card",slots:{value:".bw_stat_value",label:".bw_stat_label"}}}}function Le(e={}){var{content:t,text:r="",placement:o="top",className:a=""}=e;return{t:"span",a:{class:("bw_tooltip_wrapper "+a).trim()},c:[t,{t:"span",a:{class:"bw_tooltip bw_tooltip_"+o,role:"tooltip"},c:r}],o:{type:"tooltip",mounted:function(e){var t=e.querySelector(".bw_tooltip");e.addEventListener("mouseenter",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("mouseleave",function(){t.classList.remove("bw_tooltip_show")}),e.addEventListener("focusin",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("focusout",function(){t.classList.remove("bw_tooltip_show")})}}}}function ze(e={}){var{trigger:t,title:r,content:o,placement:a="top",className:n=""}=e,i=[r&&{t:"div",a:{class:"bw_popover_header"},c:r},o&&{t:"div",a:{class:"bw_popover_body"},c:o}].filter(Boolean);return{t:"span",a:{class:("bw_popover_wrapper "+n).trim()},c:[{t:"span",a:{class:"bw_popover_trigger",onclick:function(e){e.target.closest(".bw_popover_wrapper").querySelector(".bw_popover").classList.toggle("bw_popover_show")}},c:t},{t:"div",a:{class:"bw_popover bw_popover_"+a},c:i}],o:{type:"popover",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_popover");r&&r.classList.remove("bw_popover_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function Ae(e={}){"string"==typeof e&&(e={placeholder:e});var{placeholder:t="Search...",value:r,onSearch:o,onInput:a,id:n,name:i,className:s=""}=e;return{t:"div",a:{class:("bw_search_input "+s).trim()},c:[{t:"input",a:{type:"search",class:"bw_form_control bw_search_field",placeholder:t,value:r,id:n,name:i,onkeydown:function(e){"Enter"===e.key&&o&&(e.preventDefault(),o(e.target.value))},oninput:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_clear");t&&(t.style.display=e.target.value?"flex":"none"),a&&a(e.target.value)}}},{t:"button",a:{type:"button",class:"bw_search_clear","aria-label":"Clear search",style:r?void 0:"display: none",onclick:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_field");t.value="",e.target.style.display="none",t.focus(),a&&a(""),o&&o("")}},c:"×"}],o:{type:"search-input"}}}function $e(e={}){var{min:t=0,max:r=100,step:o=1,value:a=50,label:n,showValue:i=!1,id:s,name:l,disabled:c=!1,className:d="",...b}=e,_=[];if(n||i){var u=[];n&&u.push({t:"span",c:n}),i&&u.push({t:"span",a:{class:"bw_range_value"},c:""+a}),_.push({t:"div",a:{class:"bw_range_label"},c:u})}var p=b.oninput;return i&&(b.oninput=function(e){var t=e.target.closest(".bw_range_wrapper").querySelector(".bw_range_value");t&&(t.textContent=e.target.value),p&&p(e)}),_.push({t:"input",a:{type:"range",class:"bw_range",min:t,max:r,step:o,value:a,id:s,name:l,disabled:c,...b}}),{t:"div",a:{class:("bw_range_wrapper "+d).trim()},c:_,o:{type:"range"}}}function Ee(e={}){var{src:t,alt:r="",title:o,content:a,reverse:n=!1,imageSize:i="3rem",className:s=""}=e,l=t?{t:"img",a:{class:"bw_media_img",src:t,alt:r,style:"width:"+i+";height:"+i}}:null,c={t:"div",a:{class:"bw_media_body"},c:[o&&{t:"h5",a:{class:"bw_media_title"},c:o},a].filter(Boolean)};return{t:"div",a:{class:("bw_media "+(n?"bw_media_reverse ":"")+s).trim()},c:n?[c,l].filter(Boolean):[l,c].filter(Boolean),o:{type:"media-object"}}}function Ne(e={}){var{accept:t,multiple:r=!1,onFiles:o,text:a="Drop files here or click to browse",id:n,className:i=""}=e;return{t:"div",a:{class:("bw_file_upload "+i).trim(),tabindex:"0",role:"button","aria-label":a},c:[{t:"div",a:{class:"bw_file_upload_icon"},c:"📁"},{t:"div",a:{class:"bw_file_upload_text"},c:a},{t:"input",a:{type:"file",class:"bw_file_upload_input",accept:t,multiple:r,id:n,onchange:function(e){o&&e.target.files.length&&o(e.target.files)}}}],o:{type:"file-upload",mounted:function(e){var t=e.querySelector(".bw_file_upload_input");e.addEventListener("click",function(e){e.target!==t&&t.click()}),e.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())}),e.addEventListener("dragover",function(t){t.preventDefault(),e.classList.add("bw_file_upload_active")}),e.addEventListener("dragleave",function(){e.classList.remove("bw_file_upload_active")}),e.addEventListener("drop",function(t){t.preventDefault(),e.classList.remove("bw_file_upload_active"),o&&t.dataTransfer.files.length&&o(t.dataTransfer.files)})}}}}function Me(e={}){var{items:t=[],className:r=""}=e;return{t:"div",a:{class:("bw_timeline "+r).trim()},c:t.map(function(e){return{t:"div",a:{class:"bw_timeline_item"},c:[{t:"div",a:{class:"bw_timeline_marker "+P(e.variant||"primary")}},{t:"div",a:{class:"bw_timeline_content"},c:[e.date&&{t:"div",a:{class:"bw_timeline_date"},c:e.date},e.title&&{t:"h5",a:{class:"bw_timeline_title"},c:e.title},e.content&&("string"==typeof e.content?{t:"p",a:{class:"bw_timeline_text"},c:e.content}:e.content)].filter(Boolean)}]}}),o:{type:"timeline"}}}function Ie(e={}){var{steps:t=[],currentStep:r=0,className:o=""}=e;return{t:"div",a:{class:("bw_stepper "+o).trim(),role:"list"},c:t.map(function(e,t){var o=t<r?"completed":t===r?"active":"pending";return{t:"div",a:{class:"bw_step bw_step_"+o,role:"listitem","aria-current":"active"===o?"step":void 0},c:[{t:"div",a:{class:"bw_step_indicator"},c:"completed"===o?"✓":""+(t+1)},{t:"div",a:{class:"bw_step_body"},c:[{t:"div",a:{class:"bw_step_label"},c:e.label},e.description&&{t:"div",a:{class:"bw_step_description"},c:e.description}].filter(Boolean)}]}}),o:{type:"stepper"}}}function Oe(e={}){var{chips:t=[],placeholder:r="Add...",onAdd:o,onRemove:a,className:n=""}=e;return{t:"div",a:{class:("bw_chip_input "+n).trim()},c:[...t.map(function(e){return{t:"span",a:{class:"bw_chip"},c:[e,{t:"button",a:{type:"button",class:"bw_chip_remove","aria-label":"Remove "+e,onclick:function(t){var r=t.target.closest(".bw_chip");r.parentNode.removeChild(r),a&&a(e)}},c:"×"}]}}),{t:"input",a:{type:"text",class:"bw_chip_field",placeholder:r,onkeydown:function(e){if("Enter"===e.key&&e.target.value.trim()){e.preventDefault();var t=e.target.value.trim(),r=e.target.closest(".bw_chip_input"),n=document.createElement("span");n.className="bw_chip",n._bw_chipValue=t,n.innerHTML="",n.textContent=t;var i=document.createElement("button");i.type="button",i.className="bw_chip_remove",i.setAttribute("aria-label","Remove "+t),i.textContent="×",i.onclick=function(){n.parentNode.removeChild(n),a&&a(t)},n.appendChild(i),r.insertBefore(n,e.target),e.target.value="",o&&o(t)}if("Backspace"===e.key&&!e.target.value){var s=(r=e.target.closest(".bw_chip_input")).querySelectorAll(".bw_chip");if(s.length){var l=s[s.length-1],c=l._bw_chipValue||l.firstChild.textContent;l.parentNode.removeChild(l),a&&a(c)}}}}}],o:{type:"chip-input",handle:{addChip:function(e,t){if(t){var r=e.querySelector(".bw_chip_field"),o=document.createElement("span");o.className="bw_chip",o._bw_chipValue=t,o.textContent=t;var a=document.createElement("button");a.type="button",a.className="bw_chip_remove",a.setAttribute("aria-label","Remove "+t),a.textContent="×",a.onclick=function(){o.parentNode.removeChild(o)},o.appendChild(a),e.insertBefore(o,r)}},removeChip:function(e,t){for(var r=e.querySelectorAll(".bw_chip"),o=0;o<r.length;o++)if((r[o]._bw_chipValue||r[o].firstChild.textContent)===t)return void r[o].parentNode.removeChild(r[o])},getChips:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=[],o=0;o<t.length;o++)r.push(t[o]._bw_chipValue||t[o].firstChild.textContent);return r},clear:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=t.length-1;r>=0;r--)t[r].parentNode.removeChild(t[r])}}}}}Object.assign({},$,{root:{":root":{"--bw_font_sans_serif":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--bw_font_monospace":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace',"--bw_body_font_family":"var(--bw_font_sans_serif)","--bw_body_font_size":"1rem","--bw_body_font_weight":"400","--bw_body_line_height":"1.5"}},reset:$.base,enhancedCards:$.cards,tableResponsive:{".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:E()});var Te={card:{make:F},button:{make:H},container:{make:Y},row:{make:G},col:{make:X},nav:{make:J},navbar:{make:V},tabs:{make:W},alert:{make:K},badge:{make:Z},progress:{make:Q},listGroup:{make:ee},breadcrumb:{make:te},form:{make:re},formGroup:{make:oe},input:{make:ae},textarea:{make:ne},select:{make:ie},checkbox:{make:se},stack:{make:le},spinner:{make:ce},hero:{make:de},featureGrid:{make:be},cta:{make:_e},section:{make:ue},codeDemo:{make:pe},pagination:{make:me},radio:{make:we},buttonGroup:{make:fe},accordion:{make:he},modal:{make:ge},toast:{make:ve},dropdown:{make:ye},switch:{make:xe},skeleton:{make:ke},avatar:{make:Ce},carousel:{make:Se},statCard:{make:je},tooltip:{make:Le},popover:{make:ze},searchInput:{make:Ae},range:{make:$e},mediaObject:{make:Ee},fileUpload:{make:Ne},timeline:{make:Me},stepper:{make:Ie},chipInput:{make:Oe}};function Be(e,t){var r=Te[e];if(!r)throw new Error('bw.make: unknown component type "'+e+'". Available: '+Object.keys(Te).join(", "));var o=r.make(t||{});return o&&"object"==typeof o&&(o._bwFactory={type:e,props:t||{}}),o}var Re=Object.freeze({__proto__:null,BCCL:Te,make:Be,makeAccordion:he,makeAlert:K,makeAvatar:Ce,makeBadge:Z,makeBreadcrumb:te,makeButton:H,makeButtonGroup:fe,makeCTA:_e,makeCard:F,makeCarousel:Se,makeCheckbox:se,makeChipInput:Oe,makeCodeDemo:pe,makeCol:X,makeContainer:Y,makeDropdown:ye,makeFeatureGrid:be,makeFileUpload:Ne,makeForm:re,makeFormGroup:oe,makeHero:de,makeInput:ae,makeListGroup:ee,makeMediaObject:Ee,makeModal:ge,makeNav:J,makeNavbar:V,makePagination:me,makePopover:ze,makeProgress:Q,makeRadio:we,makeRange:$e,makeRow:G,makeSearchInput:Ae,makeSection:ue,makeSelect:ie,makeSkeleton:ke,makeSpinner:ce,makeStack:le,makeStatCard:je,makeStepper:Ie,makeSwitch:xe,makeTabs:W,makeTextarea:ne,makeTimeline:Me,makeToast:ve,makeTooltip:Le,variantClass:P});
|
|
91
|
+
function P(e){return e?0===e.indexOf("outline")?"bw_btn_outline bw_"+e.replace(/^outline[_-]/,""):"bw_"+e:""}function F(e={}){const{title:t,subtitle:r,content:o,footer:a,header:n,image:i,imagePosition:s="top",variant:l,bordered:c=!0,shadow:d,hoverable:b=!1,className:_="",style:u,headerClass:p="",bodyClass:m="",footerClass:w=""}=e,f=["bw_card",P(l),d&&{none:"",sm:"bw_shadow_sm",md:"bw_shadow",lg:"bw_shadow_lg"}[d]||"",c?"":"bw_border_0",b?"bw_card_hoverable":"",_].filter(Boolean).join(" ").trim(),h=[n&&{t:"div",a:{class:`bw_card_header ${p}`.trim()},c:n},i&&("top"===s||"left"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},{t:"div",a:{class:`bw_card_body ${m}`.trim()},c:[t&&{t:"h5",a:{class:"bw_card_title"},c:t},r&&{t:"h6",a:{class:"bw_card_subtitle bw_mb_2 bw_text_muted"},c:r},o&&(Array.isArray(o)?o:[o])].flat().filter(Boolean)},i&&("bottom"===s||"right"===s)&&{t:"img",a:{class:`bw_card_img_${s}`,src:i.src,alt:i.alt||""}},a&&{t:"div",a:{class:`bw_card_footer ${w}`.trim()},c:a}].filter(Boolean);return!i||"left"!==s&&"right"!==s?{t:"div",a:{class:f,style:u},c:h,o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}:{t:"div",a:{class:f,style:u},c:{t:"div",a:{class:"bw_row bw_g_0"},c:h},o:{type:"card",state:e.state||{},slots:{title:".bw_card_title",content:".bw_card_body",footer:".bw_card_footer"}}}}function H(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,disabled:a=!1,onclick:n,type:i="button",className:s="",style:l}=e;return{t:"button",a:{type:i,class:["bw_btn",P(r),o&&`bw_btn_${o}`,s].filter(Boolean).join(" "),disabled:a,onclick:n,style:l},c:t,o:{type:"button"}}}function Y(e={}){const{fluid:t=!1,children:r,className:o=""}=e;return{t:"div",a:{class:`bw_container${t?"-fluid":""} ${o}`.trim()},c:r}}function G(e={}){const{children:t,className:r="",gap:o}=e;return{t:"div",a:{class:`bw_row ${o?`bw_g_${o}`:""} ${r}`.trim()},c:t}}function X(e={}){const{size:t,offset:r,push:o,pull:a,content:n,children:i,className:s=""}=e,l=[];return"object"==typeof t?Object.entries(t).forEach(([e,t])=>{"xs"===e?l.push(`bw_col_${t}`):l.push(`bw_col_${e}_${t}`)}):t?l.push(`bw_col_${t}`):l.push("bw_col"),r&&l.push(`bw_offset_${r}`),o&&l.push(`bw_push_${o}`),a&&l.push(`bw_pull_${a}`),{t:"div",a:{class:`${l.join(" ")} ${s}`.trim()},c:n||i}}function J(e={}){const{items:t=[],pills:r=!1,vertical:o=!1,className:a=""}=e;return{t:"ul",a:{class:`bw_nav ${r?"bw_nav_pills":"bw_nav_tabs"} ${o?"bw_nav_vertical":""} ${a}`.trim()},c:t.map(e=>({t:"li",a:{class:"bw_nav_item"},c:{t:"a",a:{href:e.href||"#",class:`bw_nav_link ${e.active?"active":""} ${e.disabled?"disabled":""}`.trim()},c:e.text}}))}}function V(e={}){const{brand:t,brandHref:r="#",items:o=[],dark:a=!0,className:n=""}=e;return{t:"nav",a:{class:`bw_navbar ${a?"bw_navbar_dark":"bw_navbar_light"} ${n}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[t&&{t:"a",a:{href:r,class:"bw_navbar_brand"},c:t},o.length>0&&{t:"div",a:{class:"bw_navbar_nav"},c:o.map(e=>({t:"a",a:{href:e.href||"#",class:"bw_nav_link "+(e.active?"active":"")},c:e.text}))}].filter(Boolean)},o:{type:"navbar",state:{activeItem:o.findIndex(e=>e.active)}}}}function W(e={}){const{tabs:t=[],activeIndex:r=0}=e;let o=r;function a(e,t){var r=e.querySelectorAll(".bw_nav_link"),o=e.querySelectorAll(".bw_tab_pane");t<0||t>=r.length||(r.forEach(function(e){e.classList.remove("active"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")}),o.forEach(function(e){e.classList.remove("active")}),r[t].classList.add("active"),r[t].setAttribute("aria-selected","true"),r[t].setAttribute("tabindex","0"),o[t].classList.add("active"),e._bw_state&&(e._bw_state.activeIndex=t))}return t.forEach((e,t)=>{e.active&&(o=t)}),{t:"div",a:{class:"bw_tabs"},c:[{t:"ul",a:{class:"bw_nav bw_nav_tabs",role:"tablist"},c:t.map((e,t)=>({t:"li",a:{class:"bw_nav_item",role:"presentation"},c:{t:"button",a:{class:"bw_nav_link "+(t===o?"active":""),type:"button",role:"tab",tabindex:t===o?"0":"-1","aria-selected":t===o?"true":"false",onclick:e=>{a(e.target.closest(".bw_tabs"),t)}},c:e.label}}))},{t:"div",a:{class:"bw_tab_content"},c:t.map((e,t)=>({t:"div",a:{class:"bw_tab_pane "+(t===o?"active":""),role:"tabpanel"},c:e.content}))}],o:{type:"tabs",state:{activeIndex:o},handle:{setActiveTab:a,getActiveTab:function(e){return e._bw_state&&e._bw_state.activeIndex||0}},mounted:function(e){var t=e.querySelector('[role="tablist"]');t&&t.addEventListener("keydown",function(e){for(var r=t.querySelectorAll('[role="tab"]'),o=-1,a=0;a<r.length;a++)if(r[a]===e.target){o=a;break}if(-1!==o){var n=-1;"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),n=o>0?o-1:r.length-1):"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),n=o<r.length-1?o+1:0):"Home"===e.key?(e.preventDefault(),n=0):"End"===e.key&&(e.preventDefault(),n=r.length-1),n>=0&&(r[n].focus(),r[n].click())}})}}}}function K(e={}){"string"==typeof e&&(e={content:e});const{content:t,variant:r="info",dismissible:o=!1,className:a=""}=e;return{t:"div",a:{class:`bw_alert ${P(r)} ${o?"bw_alert_dismissible":""} ${a}`.trim(),role:"alert"},c:[t,o&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_alert");t&&t.remove()}},c:"×"}].filter(Boolean),o:{type:"alert",handle:{dismiss:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}}}}}function Z(e={}){"string"==typeof e&&(e={text:e});const{text:t,variant:r="primary",size:o,pill:a=!1,className:n=""}=e,i="sm"===o?" bw_badge_sm":"lg"===o?" bw_badge_lg":"";return{t:"span",a:{class:`bw_badge ${P(r)}${i} ${a?"bw_badge_pill":""} ${n}`.trim()},c:t}}function Q(e={}){const{value:t=0,max:r=100,variant:o="primary",striped:a=!1,animated:n=!1,label:i,height:s}=e,l=Math.round(t/r*100);return{t:"div",a:{class:"bw_progress",style:s?{height:`${s}px`}:void 0},c:{t:"div",a:{class:["bw_progress_bar",P(o),a&&"bw_progress_bar_striped",n&&"bw_progress_bar_animated"].filter(Boolean).join(" "),role:"progressbar",style:{width:`${l}%`},"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r},c:i||`${l}%`},o:{type:"progress",handle:{setValue:function(e,t){var r=e.querySelector(".bw_progress_bar");if(r){var o=parseInt(r.getAttribute("aria-valuemax"))||100,a=Math.round(t/o*100);r.style.width=a+"%",r.setAttribute("aria-valuenow",t),r.textContent=a+"%"}},getValue:function(e){var t=e.querySelector(".bw_progress_bar");return t&&parseInt(t.getAttribute("aria-valuenow"))||0}}}}}function ee(e={}){const{items:t=[],flush:r=!1,interactive:o=!1}=e;return{t:"div",a:{class:("bw_list_group "+(r?"bw_list_group_flush":"")).trim()},c:t.map(e=>{const t="object"==typeof e,r=t?e.text:e,a=!!t&&e.active,n=!!t&&e.disabled,i=t?e.href:null,s=t?e.onclick:null;return o||i||s?{t:"a",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" "),href:i||"#",onclick:s||(e=>{i||e.preventDefault()}),style:n?"pointer-events: none; opacity: 0.65;":""},c:r}:{t:"div",a:{class:["bw_list_group_item",a&&"active",n&&"disabled"].filter(Boolean).join(" ")},c:r}})}}function te(e={}){const{items:t=[]}=e;return{t:"nav",a:{"aria-label":"breadcrumb"},c:{t:"ol",a:{class:"bw_breadcrumb"},c:t.map((e,t)=>({t:"li",a:{class:"bw_breadcrumb_item "+(e.active?"active":""),"aria-current":e.active?"page":void 0},c:e.active?e.text:{t:"a",a:{href:e.href||"#"},c:e.text}}))}}}function re(e={}){const{children:t,onsubmit:r,className:o=""}=e;return{t:"form",a:{class:o,onsubmit:r||(e=>e.preventDefault())},c:t}}function oe(e={}){var{label:t,input:r,help:o,id:a,validation:n,feedback:i,required:s}=e,l=r;if(n&&r&&r.a){l={t:r.t,a:Object.assign({},r.a),c:r.c,o:r.o};var c="valid"===n?"bw_is_valid":"invalid"===n?"bw_is_invalid":"";c&&(l.a.class=((l.a.class||"")+" "+c).trim())}return{t:"div",a:{class:"bw_form_group"},c:[t&&{t:"label",a:{for:a,class:"bw_form_label"},c:s?[t,{t:"span",a:{class:"bw_text_danger bw_ms_1"},c:"*"}]:t},l,i&&n&&{t:"div",a:{class:"valid"===n?"bw_valid_feedback":"bw_invalid_feedback"},c:i},o&&{t:"small",a:{class:"bw_form_text bw_text_muted"},c:o}].filter(Boolean)}}function ae(e={}){const{type:t="text",placeholder:r,value:o,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",style:d,...b}=e;return{t:"input",a:{type:t,class:`bw_form_control ${c}`.trim(),placeholder:r,value:o,id:a,name:n,style:d,disabled:i,readonly:s,required:l,...b}}}function ne(e={}){const{placeholder:t,value:r,rows:o=3,id:a,name:n,disabled:i=!1,readonly:s=!1,required:l=!1,className:c="",...d}=e;return{t:"textarea",a:{class:`bw_form_control ${c}`.trim(),placeholder:t,rows:o,id:a,name:n,disabled:i,readonly:s,required:l,...d},c:r}}function ie(e={}){const{options:t=[],value:r,id:o,name:a,disabled:n=!1,required:i=!1,className:s="",...l}=e;return{t:"select",a:{class:`bw_form_control ${s}`.trim(),id:o,name:a,disabled:n,required:i,...l},c:t.map(e=>({t:"option",a:{value:e.value,selected:e.value===r},c:e.text||e.value}))}}function se(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,value:i,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input",checked:r,id:o,name:a,disabled:n,value:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function le(e={}){const{children:t,direction:r="vertical",gap:o=3,className:a=""}=e;return{t:"div",a:{class:`bw_${"vertical"===r?"vstack":"hstack"} bw_gap_${o} ${a}`.trim()},c:t}}function ce(e={}){const{variant:t="primary",size:r="md",type:o="border"}=e;return{t:"div",a:{class:`bw_spinner_${o} bw_spinner_${o}-${r} ${P(t)}`,role:"status"},c:{t:"span",a:{class:"bw_visually_hidden"},c:"Loading..."}}}function de(e={}){const{title:t,subtitle:r,content:o,variant:a="primary",size:n="lg",centered:i=!0,overlay:s=!1,backgroundImage:l,actions:c,className:d=""}=e,b={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_hero ${P(a)} ${b[n]||b.lg} ${i?"bw_text_center":""} ${d}`.trim(),style:l?`background-image: url('${l}'); background-size: cover; background-position: center;`:void 0},c:[s&&{t:"div",a:{class:"bw_hero_overlay"}},{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_hero_content"},c:[t&&{t:"h1",a:{class:"bw_hero_title bw_display_4 bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_hero_subtitle bw_lead bw_mb_4"},c:r},o,c&&{t:"div",a:{class:"bw_hero_actions bw_mt_4"},c:c}].filter(Boolean)}}].filter(Boolean)}}function be(e={}){const{features:t=[],columns:r=3,centered:o=!0,iconSize:a="3rem",className:n=""}=e,i="bw_col_md_"+12/r;return{t:"div",a:{class:`bw_feature_grid ${n}`.trim()},c:{t:"div",a:{class:"bw_row bw_g_4"},c:t.map(e=>({t:"div",a:{class:i},c:{t:"div",a:{class:"bw_feature "+(o?"bw_text_center":"")},c:[e.icon&&{t:"div",a:{class:"bw_feature_icon bw_mb_3 bw_text_primary",style:`font-size: ${a};`},c:e.icon},e.title&&{t:"h3",a:{class:"bw_feature_title bw_h5 bw_mb_2"},c:e.title},e.description&&{t:"p",a:{class:"bw_feature_description bw_text_muted"},c:e.description}].filter(Boolean)}}))}}}function _e(e={}){const{title:t,description:r,actions:o,variant:a="light",centered:n=!0,className:i=""}=e;return{t:"section",a:{class:`bw_cta bw_bg_${a} bw_py_5 ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:{t:"div",a:{class:"bw_cta_content "+(n?"bw_text_center":"")},c:[t&&{t:"h2",a:{class:"bw_cta_title bw_mb_3"},c:t},r&&{t:"p",a:{class:"bw_cta_description bw_lead bw_mb_4"},c:r},o&&{t:"div",a:{class:"bw_cta_actions"},c:o}].filter(Boolean)}}}}function ue(e={}){const{title:t,subtitle:r,content:o,variant:a="default",spacing:n="md",className:i=""}=e,s={sm:"bw_py_3",md:"bw_py_4",lg:"bw_py_5",xl:"bw_py_6"};return{t:"section",a:{class:`bw_section ${s[n]||s.md} ${"default"!==a?`bw_bg_${a}`:""} ${i}`.trim()},c:{t:"div",a:{class:"bw_container"},c:[(t||r)&&{t:"div",a:{class:"bw_section_header bw_text_center bw_mb_5"},c:[t&&{t:"h2",a:{class:"bw_section_title"},c:t},r&&{t:"p",a:{class:"bw_section_subtitle bw_text_muted"},c:r}].filter(Boolean)},o].filter(Boolean)}}}function pe(e={}){const{title:t,description:r,code:o,result:a,language:n="javascript"}=e;Math.random().toString(36).substr(2,9);const i=[{label:"Result",active:!0,content:a}];o&&i.push({label:"Code",content:{t:"div",a:{style:"position: relative;"},c:[{t:"button",a:{class:"bw_copy_btn bw_code_copy_btn",onclick:function(e){navigator.clipboard.writeText(o).then(function(){var t=e.target,r=t.textContent;t.textContent="Copied!",t.classList.add("bw_code_copy_btn_copied"),setTimeout(function(){t.textContent=r,t.classList.remove("bw_code_copy_btn_copied")},2e3)})}},c:"Copy"},"undefined"!=typeof globalThis&&void 0!==globalThis.bw&&"function"==typeof globalThis.bw.codeEditor?globalThis.bw.codeEditor({code:o,lang:"javascript"===n?"js":n,readOnly:!0,height:"auto"}):{t:"pre",a:{class:"bw_code_pre"},c:{t:"code",a:{class:`bw_code_block language-${n}`},c:o}}]}});return{t:"div",a:{class:"bw_code_demo"},c:[t&&{t:"h3",c:t},r&&{t:"p",a:{class:"bw_text_muted bw_mb_3"},c:r},W({tabs:i})].filter(Boolean)}}function me(e={}){const{pages:t=1,currentPage:r=1,onPageChange:o,size:a,className:n=""}=e;function i(e){return function(a){a.preventDefault(),e<1||e>t||e===r||o&&o(e)}}const s=[];s.push({t:"li",a:{class:("bw_page_item "+(r<=1?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r-1),"aria-label":"Previous",disabled:r<=1||void 0},c:"‹"}});for(var l=1;l<=t;l++)(function(e){s.push({t:"li",a:{class:("bw_page_item "+(e===r?"bw_active":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(e),"aria-current":e===r?"page":void 0},c:""+e}})})(l);return s.push({t:"li",a:{class:("bw_page_item "+(r>=t?"bw_disabled":"")).trim()},c:{t:"button",a:{class:"bw_page_link",type:"button",onclick:i(r+1),"aria-label":"Next",disabled:r>=t||void 0},c:"›"}}),{t:"nav",a:{"aria-label":"Pagination"},c:{t:"ul",a:{class:`bw_pagination ${a?"bw_pagination_"+a:""} ${n}`.trim()},c:s},o:{type:"pagination",state:{currentPage:r,pages:t},handle:{setPage:function(e,r){if(!(r<1||r>t)){for(var a=e.querySelectorAll(".bw_page_item"),n=0;n<a.length;n++)a[n].classList.remove("bw_active");a[r]&&a[r].classList.add("bw_active"),e._bw_state&&(e._bw_state.currentPage=r),o&&o(r)}},getPage:function(e){return e._bw_state&&e._bw_state.currentPage||1}}}}}function we(e={}){const{label:t,name:r,value:o,checked:a=!1,id:n,disabled:i=!1,className:s="",...l}=e;return{t:"div",a:{class:`bw_form_check ${s}`.trim()},c:[{t:"input",a:{type:"radio",class:"bw_form_check_input",name:r,value:o,checked:a,id:n,disabled:i,...l}},t&&{t:"label",a:{class:"bw_form_check_label",for:n},c:t}].filter(Boolean)}}function fe(e={}){const{children:t,size:r,vertical:o=!1,className:a=""}=e;return{t:"div",a:{class:`${o?"bw_btn_group_vertical":"bw_btn_group"} ${r?"bw_btn_group_"+r:""} ${a}`.trim(),role:"group"},c:t}}function he(e={}){const{items:t=[],multiOpen:r=!1,className:o=""}=e;return{t:"div",a:{class:`bw_accordion ${o}`.trim()},c:t.map(function(e,t){return{t:"div",a:{class:"bw_accordion_item"},c:[{t:"h2",a:{class:"bw_accordion_header"},c:{t:"button",a:{class:("bw_accordion_button "+(e.open?"":"bw_collapsed")).trim(),type:"button","aria-expanded":e.open?"true":"false",onclick:function(e){var t=e.target.closest(".bw_accordion_button"),o=t.closest(".bw_accordion"),a=t.closest(".bw_accordion_item"),n=a.querySelector(".bw_accordion_collapse"),i=n.classList.contains("bw_collapse_show");if(!r)for(var s=o.querySelectorAll(".bw_accordion_item"),l=0;l<s.length;l++)if(s[l]!==a){var c=s[l].querySelector(".bw_accordion_collapse"),d=s[l].querySelector(".bw_accordion_button");c.classList.contains("bw_collapse_show")&&(c.style.maxHeight=c.scrollHeight+"px",c.offsetHeight,c.style.maxHeight="0px",c.classList.remove("bw_collapse_show"),d.classList.add("bw_collapsed"),d.setAttribute("aria-expanded","false"))}if(i)n.style.maxHeight=n.scrollHeight+"px",n.offsetHeight,n.style.maxHeight="0px",n.classList.remove("bw_collapse_show"),t.classList.add("bw_collapsed"),t.setAttribute("aria-expanded","false");else{n.classList.add("bw_collapse_show"),n.style.maxHeight="0px",n.offsetHeight,n.style.maxHeight=n.scrollHeight+"px",t.classList.remove("bw_collapsed"),t.setAttribute("aria-expanded","true");var b=function(e){"max-height"===e.propertyName&&n.classList.contains("bw_collapse_show")&&(n.style.maxHeight="none"),n.removeEventListener("transitionend",b)};n.addEventListener("transitionend",b)}}},c:e.title}},{t:"div",a:{class:("bw_accordion_collapse "+(e.open?"bw_collapse_show":"")).trim()},c:{t:"div",a:{class:"bw_accordion_body"},c:e.content},o:e.open?{mounted:function(e){e.style.maxHeight="none"}}:void 0}]}}),o:{type:"accordion",state:{multiOpen:r},handle:{toggle:function(e,t){var r=e.querySelectorAll(".bw_accordion_item");if(!(t<0||t>=r.length)){var o=r[t].querySelector(".bw_accordion_button");o&&o.click()}},openAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")||(o.classList.add("bw_collapse_show"),o.style.maxHeight="none",a.classList.remove("bw_collapsed"),a.setAttribute("aria-expanded","true"))}},closeAll:function(e){for(var t=e.querySelectorAll(".bw_accordion_item"),r=0;r<t.length;r++){var o=t[r].querySelector(".bw_accordion_collapse"),a=t[r].querySelector(".bw_accordion_button");o.classList.contains("bw_collapse_show")&&(o.style.maxHeight=o.scrollHeight+"px",o.offsetHeight,o.style.maxHeight="0px",o.classList.remove("bw_collapse_show"),a.classList.add("bw_collapsed"),a.setAttribute("aria-expanded","false"))}}}}}}function ge(e={}){const{title:t,content:r,footer:o,size:a,closeButton:n=!0,onClose:i,className:s=""}=e;function l(e){var t=e.closest(".bw_modal");t&&(t.classList.remove("bw_modal_show"),document.body.style.overflow=""),i&&i()}return{t:"div",a:{class:`bw_modal ${s}`.trim()},c:{t:"div",a:{class:("bw_modal_dialog "+(a?"bw_modal_"+a:"")).trim()},c:{t:"div",a:{class:"bw_modal_content"},c:[(t||n)&&{t:"div",a:{class:"bw_modal_header"},c:[t&&{t:"h5",a:{class:"bw_modal_title"},c:t},n&&{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){l(e.target)}},c:"×"}].filter(Boolean)},r&&{t:"div",a:{class:"bw_modal_body"},c:r},o&&{t:"div",a:{class:"bw_modal_footer"},c:o}].filter(Boolean)}},o:{type:"modal",handle:{open:function(e){e.classList.add("bw_modal_show"),e.style.display="flex",document.body.style.overflow="hidden"},close:function(e){l(e)}},mounted:function(e){e.addEventListener("click",function(t){t.target===e&&l(e)});var t=function(t){"Escape"===t.key&&e.classList.contains("bw_modal_show")&&l(e)};document.addEventListener("keydown",t),e._bw_escHandler=t},unmount:function(e){e._bw_escHandler&&document.removeEventListener("keydown",e._bw_escHandler),document.body.style.overflow=""}}}}function ve(e={}){const{title:t,content:r,variant:o="info",autoDismiss:a=!0,delay:n=5e3,position:i="top-right",className:s=""}=e;return{t:"div",a:{class:`bw_toast ${P(o)} bw_toast_${i.replace(/-/g,"_")} ${s}`.trim(),role:"alert"},c:[t&&{t:"div",a:{class:"bw_toast_header"},c:[{t:"strong",c:t},{t:"button",a:{type:"button",class:"bw_close","aria-label":"Close",onclick:function(e){var t=e.target.closest(".bw_toast");t&&(t.classList.add("bw_toast_hiding"),setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},300))}},c:"×"}]},r&&{t:"div",a:{class:"bw_toast_body"},c:r}].filter(Boolean),o:{type:"toast",handle:{dismiss:function(e){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)}},mounted:function(e){requestAnimationFrame(function(){e.classList.add("bw_toast_show")}),a&&setTimeout(function(){e.classList.add("bw_toast_hiding"),setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},300)},n)}}}}function ye(e={}){const{trigger:t,items:r=[],align:o="start",variant:a="primary",className:n=""}=e;var i;return i="string"==typeof t||void 0===t?{t:"button",a:{class:`bw_btn ${P(a)} bw_dropdown_toggle`,type:"button",onclick:function(e){e.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.toggle("bw_dropdown_show")}},c:t||"Dropdown"}:t,{t:"div",a:{class:`bw_dropdown ${n}`.trim()},c:[i,{t:"div",a:{class:("bw_dropdown_menu "+("end"===o?"bw_dropdown_menu_end":"")).trim()},c:r.map(function(e){return e.divider?{t:"hr",a:{class:"bw_dropdown_divider"}}:{t:"a",a:{class:("bw_dropdown_item "+(e.disabled?"disabled":"")).trim(),href:e.href||"#",onclick:e.disabled?void 0:function(t){e.href||t.preventDefault(),t.target.closest(".bw_dropdown").querySelector(".bw_dropdown_menu").classList.remove("bw_dropdown_show"),e.onclick&&e.onclick(t)}},c:e.text}})}],o:{type:"dropdown",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_dropdown_menu");r&&r.classList.remove("bw_dropdown_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function xe(e={}){const{label:t,checked:r=!1,id:o,name:a,disabled:n=!1,className:i="",...s}=e;return{t:"div",a:{class:`bw_form_check bw_form_switch ${i}`.trim()},c:[{t:"input",a:{type:"checkbox",class:"bw_form_check_input bw_switch_input",role:"switch",checked:r,id:o,name:a,disabled:n,...s}},t&&{t:"label",a:{class:"bw_form_check_label",for:o},c:t}].filter(Boolean)}}function ke(e={}){const{variant:t="text",width:r,height:o,count:a=1,className:n=""}=e;if("circle"===t){var i=r||o||"3rem";return{t:"div",a:{class:`bw_skeleton bw_skeleton_circle ${n}`.trim(),style:{width:i,height:i}}}}if("rect"===t)return{t:"div",a:{class:`bw_skeleton bw_skeleton_rect ${n}`.trim(),style:{width:r||"100%",height:o||"120px"}}};if(1===a)return{t:"div",a:{class:`bw_skeleton bw_skeleton_text ${n}`.trim(),style:{width:r||"100%",height:o||"1em"}}};for(var s=[],l=0;l<a;l++)s.push({t:"div",a:{class:"bw_skeleton bw_skeleton_text",style:{width:l===a-1?"75%":r||"100%",height:o||"1em"}}});return{t:"div",a:{class:`bw_skeleton_group ${n}`.trim()},c:s}}function Ce(e={}){const{src:t,alt:r="",initials:o,size:a="md",variant:n="primary",className:i=""}=e;return t?{t:"img",a:{class:`bw_avatar bw_avatar_${a} ${i}`.trim(),src:t,alt:r}}:{t:"div",a:{class:`bw_avatar bw_avatar_${a} ${P(n)} ${i}`.trim()},c:o||""}}function Se(e={}){const{items:t=[],showControls:r=!0,showIndicators:o=!0,autoPlay:a=!1,interval:n=5e3,height:i="300px",startIndex:s=0,className:l=""}=e;function c(e,t){var r=e.querySelectorAll(".bw_carousel_slide").length;t<0&&(t=r-1),t>=r&&(t=0),e._bw_carouselIndex=t,e.querySelector(".bw_carousel_track").style.transform="translateX(-"+100*t+"%)";for(var o=e.querySelectorAll(".bw_carousel_indicator"),a=0;a<o.length;a++)a===t?o[a].classList.add("active"):o[a].classList.remove("active")}var d=t.map(function(e){var t=[e.content,e.caption&&{t:"div",a:{class:"bw_carousel_caption"},c:e.caption}].filter(Boolean);return{t:"div",a:{class:"bw_carousel_slide"},c:1===t.length?t[0]:t}}),b=[{t:"div",a:{class:"bw_carousel_track",style:"transform: translateX(-"+100*s+"%)"},c:d}];return r&&t.length>1&&(b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_prev",type:"button","aria-label":"Previous slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)-1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}}),b.push({t:"button",a:{class:"bw_carousel_control bw_carousel_control_next",type:"button","aria-label":"Next slide",onclick:function(e){var t=e.target.closest(".bw_carousel");c(t,(t._bw_carouselIndex||0)+1)}},c:{t:"img",a:{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e",alt:"",role:"presentation"}}})),o&&t.length>1&&b.push({t:"div",a:{class:"bw_carousel_indicators"},c:t.map(function(e,t){return{t:"button",a:{class:"bw_carousel_indicator"+(t===s?" active":""),type:"button","aria-label":"Go to slide "+(t+1),onclick:function(e){c(e.target.closest(".bw_carousel"),t)}}}})}),{t:"div",a:{class:("bw_carousel "+l).trim(),style:"height: "+i,tabindex:"0","aria-roledescription":"carousel"},c:b,o:{type:"carousel",state:{activeIndex:s,autoPlay:a,interval:n},handle:{goToSlide:function(e,t){c(e,t)},next:function(e){c(e,(e._bw_carouselIndex||0)+1)},prev:function(e){c(e,(e._bw_carouselIndex||0)-1)},getActiveIndex:function(e){return e._bw_carouselIndex||0},pause:function(e){e._bw_carouselInterval&&(clearInterval(e._bw_carouselInterval),e._bw_carouselInterval=null)},play:function(e){if(!e._bw_carouselInterval&&e._bw_state){var t=e._bw_state.interval||5e3;e._bw_carouselInterval=setInterval(function(){c(e,(e._bw_carouselIndex||0)+1)},t)}}},mounted:function(e){if(e._bw_carouselIndex=s,e.addEventListener("keydown",function(t){var r=e._bw_carouselIndex||0;"ArrowLeft"===t.key?(t.preventDefault(),c(e,r-1)):"ArrowRight"===t.key&&(t.preventDefault(),c(e,r+1))}),a){var t=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n);e._bw_carouselInterval=t,e.addEventListener("mouseenter",function(){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}),e.addEventListener("mouseleave",function(){e._bw_carouselInterval=setInterval(function(){var t=e._bw_carouselIndex||0;c(e,t+1)},n)})}},unmount:function(e){e._bw_carouselInterval&&clearInterval(e._bw_carouselInterval)}}}}function je(e={}){"string"==typeof e&&(e={label:e});var{value:t=0,label:r,change:o,format:a,prefix:n,suffix:i,icon:s,variant:l,className:c="",style:d}=e;var b=["bw_stat_card",P(l),c].filter(Boolean).join(" ").trim(),_=[];return s&&_.push({t:"div",a:{class:"bw_stat_icon"},c:s}),_.push({t:"div",a:{class:"bw_stat_value"},c:function(e,t){if(n||i)return(n||"")+e+(i||"");switch(t){case"currency":return"$"+Number(e).toLocaleString();case"percent":return e+"%";case"number":return Number(e).toLocaleString();default:return""+e}}(t,a)}),r&&_.push({t:"div",a:{class:"bw_stat_label"},c:r}),null!=o&&_.push({t:"div",a:{class:"bw_stat_change "+(o>=0?"bw_stat_change_up":"bw_stat_change_down")},c:(o>=0?"↑ +":"↓ ")+o+"%"}),{t:"div",a:{class:b,style:d},c:_,o:{type:"stat-card",slots:{value:".bw_stat_value",label:".bw_stat_label"}}}}function Le(e={}){var{content:t,text:r="",placement:o="top",className:a=""}=e;return{t:"span",a:{class:("bw_tooltip_wrapper "+a).trim()},c:[t,{t:"span",a:{class:"bw_tooltip bw_tooltip_"+o,role:"tooltip"},c:r}],o:{type:"tooltip",mounted:function(e){var t=e.querySelector(".bw_tooltip");e.addEventListener("mouseenter",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("mouseleave",function(){t.classList.remove("bw_tooltip_show")}),e.addEventListener("focusin",function(){t.classList.add("bw_tooltip_show")}),e.addEventListener("focusout",function(){t.classList.remove("bw_tooltip_show")})}}}}function ze(e={}){var{trigger:t,title:r,content:o,placement:a="top",className:n=""}=e,i=[r&&{t:"div",a:{class:"bw_popover_header"},c:r},o&&{t:"div",a:{class:"bw_popover_body"},c:o}].filter(Boolean);return{t:"span",a:{class:("bw_popover_wrapper "+n).trim()},c:[{t:"span",a:{class:"bw_popover_trigger",onclick:function(e){e.target.closest(".bw_popover_wrapper").querySelector(".bw_popover").classList.toggle("bw_popover_show")}},c:t},{t:"div",a:{class:"bw_popover bw_popover_"+a},c:i}],o:{type:"popover",mounted:function(e){var t=function(t){if(!e.contains(t.target)){var r=e.querySelector(".bw_popover");r&&r.classList.remove("bw_popover_show")}};document.addEventListener("click",t),e._bw_outsideHandler=t},unmount:function(e){e._bw_outsideHandler&&document.removeEventListener("click",e._bw_outsideHandler)}}}}function Ae(e={}){"string"==typeof e&&(e={placeholder:e});var{placeholder:t="Search...",value:r,onSearch:o,onInput:a,id:n,name:i,className:s=""}=e;return{t:"div",a:{class:("bw_search_input "+s).trim()},c:[{t:"input",a:{type:"search",class:"bw_form_control bw_search_field",placeholder:t,value:r,id:n,name:i,onkeydown:function(e){"Enter"===e.key&&o&&(e.preventDefault(),o(e.target.value))},oninput:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_clear");t&&(t.style.display=e.target.value?"flex":"none"),a&&a(e.target.value)}}},{t:"button",a:{type:"button",class:"bw_search_clear","aria-label":"Clear search",style:r?void 0:"display: none",onclick:function(e){var t=e.target.closest(".bw_search_input").querySelector(".bw_search_field");t.value="",e.target.style.display="none",t.focus(),a&&a(""),o&&o("")}},c:"×"}],o:{type:"search-input"}}}function $e(e={}){var{min:t=0,max:r=100,step:o=1,value:a=50,label:n,showValue:i=!1,id:s,name:l,disabled:c=!1,className:d="",...b}=e,_=[];if(n||i){var u=[];n&&u.push({t:"span",c:n}),i&&u.push({t:"span",a:{class:"bw_range_value"},c:""+a}),_.push({t:"div",a:{class:"bw_range_label"},c:u})}var p=b.oninput;return i&&(b.oninput=function(e){var t=e.target.closest(".bw_range_wrapper").querySelector(".bw_range_value");t&&(t.textContent=e.target.value),p&&p(e)}),_.push({t:"input",a:{type:"range",class:"bw_range",min:t,max:r,step:o,value:a,id:s,name:l,disabled:c,...b}}),{t:"div",a:{class:("bw_range_wrapper "+d).trim()},c:_,o:{type:"range"}}}function Ee(e={}){var{src:t,alt:r="",title:o,content:a,reverse:n=!1,imageSize:i="3rem",className:s=""}=e,l=t?{t:"img",a:{class:"bw_media_img",src:t,alt:r,style:"width:"+i+";height:"+i}}:null,c={t:"div",a:{class:"bw_media_body"},c:[o&&{t:"h5",a:{class:"bw_media_title"},c:o},a].filter(Boolean)};return{t:"div",a:{class:("bw_media "+(n?"bw_media_reverse ":"")+s).trim()},c:n?[c,l].filter(Boolean):[l,c].filter(Boolean),o:{type:"media-object"}}}function Ne(e={}){var{accept:t,multiple:r=!1,onFiles:o,text:a="Drop files here or click to browse",id:n,className:i=""}=e;return{t:"div",a:{class:("bw_file_upload "+i).trim(),tabindex:"0",role:"button","aria-label":a},c:[{t:"div",a:{class:"bw_file_upload_icon"},c:"📁"},{t:"div",a:{class:"bw_file_upload_text"},c:a},{t:"input",a:{type:"file",class:"bw_file_upload_input",accept:t,multiple:r,id:n,onchange:function(e){o&&e.target.files.length&&o(e.target.files)}}}],o:{type:"file-upload",mounted:function(e){var t=e.querySelector(".bw_file_upload_input");e.addEventListener("click",function(e){e.target!==t&&t.click()}),e.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())}),e.addEventListener("dragover",function(t){t.preventDefault(),e.classList.add("bw_file_upload_active")}),e.addEventListener("dragleave",function(){e.classList.remove("bw_file_upload_active")}),e.addEventListener("drop",function(t){t.preventDefault(),e.classList.remove("bw_file_upload_active"),o&&t.dataTransfer.files.length&&o(t.dataTransfer.files)})}}}}function Me(e={}){var{items:t=[],className:r=""}=e;return{t:"div",a:{class:("bw_timeline "+r).trim()},c:t.map(function(e){return{t:"div",a:{class:"bw_timeline_item"},c:[{t:"div",a:{class:"bw_timeline_marker "+P(e.variant||"primary")}},{t:"div",a:{class:"bw_timeline_content"},c:[e.date&&{t:"div",a:{class:"bw_timeline_date"},c:e.date},e.title&&{t:"h5",a:{class:"bw_timeline_title"},c:e.title},e.content&&("string"==typeof e.content?{t:"p",a:{class:"bw_timeline_text"},c:e.content}:e.content)].filter(Boolean)}]}}),o:{type:"timeline"}}}function Ie(e={}){var{steps:t=[],currentStep:r=0,className:o=""}=e;return{t:"div",a:{class:("bw_stepper "+o).trim(),role:"list"},c:t.map(function(e,t){var o=t<r?"completed":t===r?"active":"pending";return{t:"div",a:{class:"bw_step bw_step_"+o,role:"listitem","aria-current":"active"===o?"step":void 0},c:[{t:"div",a:{class:"bw_step_indicator"},c:"completed"===o?"✓":""+(t+1)},{t:"div",a:{class:"bw_step_body"},c:[{t:"div",a:{class:"bw_step_label"},c:e.label},e.description&&{t:"div",a:{class:"bw_step_description"},c:e.description}].filter(Boolean)}]}}),o:{type:"stepper"}}}function Oe(e={}){var{chips:t=[],placeholder:r="Add...",onAdd:o,onRemove:a,className:n=""}=e;return{t:"div",a:{class:("bw_chip_input "+n).trim()},c:[...t.map(function(e){return{t:"span",a:{class:"bw_chip"},c:[e,{t:"button",a:{type:"button",class:"bw_chip_remove","aria-label":"Remove "+e,onclick:function(t){var r=t.target.closest(".bw_chip");r.parentNode.removeChild(r),a&&a(e)}},c:"×"}]}}),{t:"input",a:{type:"text",class:"bw_chip_field",placeholder:r,onkeydown:function(e){if("Enter"===e.key&&e.target.value.trim()){e.preventDefault();var t=e.target.value.trim(),r=e.target.closest(".bw_chip_input"),n=document.createElement("span");n.className="bw_chip",n._bw_chipValue=t,n.innerHTML="",n.textContent=t;var i=document.createElement("button");i.type="button",i.className="bw_chip_remove",i.setAttribute("aria-label","Remove "+t),i.textContent="×",i.onclick=function(){n.parentNode.removeChild(n),a&&a(t)},n.appendChild(i),r.insertBefore(n,e.target),e.target.value="",o&&o(t)}if("Backspace"===e.key&&!e.target.value){var s=(r=e.target.closest(".bw_chip_input")).querySelectorAll(".bw_chip");if(s.length){var l=s[s.length-1],c=l._bw_chipValue||l.firstChild.textContent;l.parentNode.removeChild(l),a&&a(c)}}}}}],o:{type:"chip-input",handle:{addChip:function(e,t){if(t){var r=e.querySelector(".bw_chip_field"),o=document.createElement("span");o.className="bw_chip",o._bw_chipValue=t,o.textContent=t;var a=document.createElement("button");a.type="button",a.className="bw_chip_remove",a.setAttribute("aria-label","Remove "+t),a.textContent="×",a.onclick=function(){o.parentNode.removeChild(o)},o.appendChild(a),e.insertBefore(o,r)}},removeChip:function(e,t){for(var r=e.querySelectorAll(".bw_chip"),o=0;o<r.length;o++)if((r[o]._bw_chipValue||r[o].firstChild.textContent)===t)return void r[o].parentNode.removeChild(r[o])},getChips:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=[],o=0;o<t.length;o++)r.push(t[o]._bw_chipValue||t[o].firstChild.textContent);return r},clear:function(e){for(var t=e.querySelectorAll(".bw_chip"),r=t.length-1;r>=0;r--)t[r].parentNode.removeChild(t[r])}}}}}Object.assign({},$,{root:{":root":{"--bw_font_sans_serif":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"--bw_font_monospace":'"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", "Courier New", monospace',"--bw_body_font_family":"var(--bw_font_sans_serif)","--bw_body_font_size":"1rem","--bw_body_font_weight":"400","--bw_body_line_height":"1.5"}},reset:$.base,enhancedCards:$.cards,tableResponsive:{".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:E()});var Te={card:{make:F},button:{make:H},container:{make:Y},row:{make:G},col:{make:X},nav:{make:J},navbar:{make:V},tabs:{make:W},alert:{make:K},badge:{make:Z},progress:{make:Q},listGroup:{make:ee},breadcrumb:{make:te},form:{make:re},formGroup:{make:oe},input:{make:ae},textarea:{make:ne},select:{make:ie},checkbox:{make:se},stack:{make:le},spinner:{make:ce},hero:{make:de},featureGrid:{make:be},cta:{make:_e},section:{make:ue},codeDemo:{make:pe},pagination:{make:me},radio:{make:we},buttonGroup:{make:fe},accordion:{make:he},modal:{make:ge},toast:{make:ve},dropdown:{make:ye},switch:{make:xe},skeleton:{make:ke},avatar:{make:Ce},carousel:{make:Se},statCard:{make:je},tooltip:{make:Le},popover:{make:ze},searchInput:{make:Ae},range:{make:$e},mediaObject:{make:Ee},fileUpload:{make:Ne},timeline:{make:Me},stepper:{make:Ie},chipInput:{make:Oe}};function Re(e,t){var r=Te[e];if(!r)throw new Error('bw.make: unknown component type "'+e+'". Available: '+Object.keys(Te).join(", "));var o=r.make(t||{});return o&&"object"==typeof o&&(o._bwFactory={type:e,props:t||{}}),o}var Be=Object.freeze({__proto__:null,BCCL:Te,make:Re,makeAccordion:he,makeAlert:K,makeAvatar:Ce,makeBadge:Z,makeBreadcrumb:te,makeButton:H,makeButtonGroup:fe,makeCTA:_e,makeCard:F,makeCarousel:Se,makeCheckbox:se,makeChipInput:Oe,makeCodeDemo:pe,makeCol:X,makeContainer:Y,makeDropdown:ye,makeFeatureGrid:be,makeFileUpload:Ne,makeForm:re,makeFormGroup:oe,makeHero:de,makeInput:ae,makeListGroup:ee,makeMediaObject:Ee,makeModal:ge,makeNav:J,makeNavbar:V,makePagination:me,makePopover:ze,makeProgress:Q,makeRadio:we,makeRange:$e,makeRow:G,makeSearchInput:Ae,makeSection:ue,makeSelect:ie,makeSkeleton:ke,makeSpinner:ce,makeStack:le,makeStatCard:je,makeStepper:Ie,makeSwitch:xe,makeTabs:W,makeTextarea:ne,makeTimeline:Me,makeToast:ve,makeTooltip:Le,variantClass:P});
|
|
92
92
|
/**
|
|
93
93
|
* Bitwrench v2 Core
|
|
94
94
|
* Zero-dependency UI library using JavaScript objects
|
|
@@ -96,5 +96,5 @@ function P(e){return e?0===e.indexOf("outline")?"bw_btn_outline bw_"+e.replace(/
|
|
|
96
96
|
*
|
|
97
97
|
* @license BSD-2-Clause
|
|
98
98
|
* @author M A Chatterjee <deftio [at] deftio [dot] com>
|
|
99
|
-
*/const De={version:t.version,versionInfo:t,getVersion:function(){return{...t}},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value=He(e,"boolean")?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==De.__monkey_patch_is_nodejs__.get()?De.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};De._isNode=De.isNodeJS(),Object.defineProperty(De,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0});var Ue=Object.prototype.hasOwnProperty,qe=Array.isArray,Pe=Object.keys,Fe=O,He=function(e,t){var r=Fe(e);return r===t||r.toLowerCase()===t},Ye=function(){console.warn.apply(console,arguments)},Ge=function(){console.log.apply(console,arguments)},Xe=function(){console.error.apply(console,arguments)};De.debug=!1,De._fsCache=void 0,De._getFs=function(){if(void 0!==De._fsCache)return Promise.resolve(De._fsCache);if(!De.isNodeJS())return De._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return De._fsCache=require("fs"),Promise.resolve(De._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return De._fsCache=e.default||e,De._fsCache}).catch(function(){return De._fsCache=null,null})}catch(e){return De._fsCache=null,Promise.resolve(null)}},De.typeOf=O,De.to=De.typeOf,De.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(De._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");return`${t}${Date.now().toString(36)}_${(++De._idCounter).toString(36)}_${Math.random().toString(36).substring(2,11)}`},De._el=function(e){if(!He(e,"string"))return e||null;if(!e)return null;if(!De._isBrowser)return null;var t=De._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete De._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||0!==e.indexOf("bw_uuid_")||(r=document.querySelector("."+e)),r&&(De._nodeMap[e]=r),r},De._registerNode=function(e,t){if(e){t&&(De._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(De._nodeMap[r]=e)}},De._deregisterNode=function(e,t){t&&delete De._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete De._nodeMap[r]};var Je="bw_lc",Ve=/\bbw_uuid_[a-z0-9_]+\b/;function We(e){return e&&""!==e&&"global"!==e?"reset"===e?"bw_style_reset":"bw_style_"+e.replace(/^[#.]/,"").replace(/-/g,"_"):"bw_style_global"}return De.assignUUID=function(e,t){if(!e||!He(e,"object"))return null;e.a||(e.a={}),He(e.a.class,"string")||(e.a.class=e.a.class?String(e.a.class):"");var r=e.a.class.match(Ve);if(r&&!t)return r[0];r&&(e.a.class=e.a.class.replace(Ve,"").replace(/\s+/g," ").trim());var o=De.uuid("uuid");return e.a.class=(e.a.class?e.a.class+" ":"")+o,o},De.getUUID=function(e){if(!e)return null;var t;if(void 0!==e.className&&e.tagName?t=e.className:e.a&&He(e.a.class,"string")&&(t=e.a.class),!t)return null;var r=t.match(Ve);return r?r[0]:null},De.escapeHTML=function(e){if(!He(e,"string"))return"";const t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,e=>t[e])},De.raw=function(e){return{__bw_raw:!0,v:String(e)}},De.h=function(e,t,r,o){var a={t:String(e)};return null!=t&&(a.a=t),void 0!==r&&(a.c=r),void 0!==o&&(a.o=o),a},De.html=function(e,t={}){if(null==e)return"";if(qe(e))return e.map(e=>De.html(e,t)).join("");if(e&&e.__bw_raw)return e.v;if(!He(e,"object")||!e.t){var r=t.raw?String(e):De.escapeHTML(String(e));return t.state&&He(r,"string")&&r.indexOf("${")>=0&&(r=De._resolveTemplate(r,t.state,!!t.compile)),r}const{t:o,a:a={},c:n,o:i={}}=e,s=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(o.toLowerCase());let l="";for(const[e,r]of Object.entries(a))if(null!=r&&!1!==r)if(e.startsWith("on"))if(He(r,"function")){var c=De.funcRegister(r);l+=" "+e+'="'+De.funcGetDispatchStr(c,"event")+'"'}else He(r,"string")&&(l+=" "+e+'="'+De.escapeHTML(r)+'"');else if("style"===e&&He(r,"object")){const e=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>`${e}:${t}`).join(";");e&&(l+=` style="${De.escapeHTML(e)}"`)}else if("class"===e){const e=qe(r)?r.filter(Boolean).join(" "):String(r);e&&(l+=` class="${De.escapeHTML(e)}"`)}else if(!0===r)l+=` ${e}`;else{let o=String(r);t.state&&o.indexOf("${")>=0&&(o=De._resolveTemplate(o,t.state,!!t.compile)),l+=` ${e}="${De.escapeHTML(o)}"`}if((i.mounted||i.unmount)&&!Ve.test(a.class||"")){const e=De.uuid("uuid");l=l.replace(/class="([^"]*)"/,(t,r)=>`class="${r} ${e} ${Je}"`.trim()),l.includes("class=")||(l+=` class="${e} ${Je}"`)}if(s)return`<${o}${l} />`;let d=null!=n?De.html(n,t):"";return t.state&&He(d,"string")&&d.indexOf("${")>=0&&(d=De._resolveTemplate(d,t.state,!!t.compile)),`<${o}${l}>${d}</${o}>`},De.htmlPage=function(t){var r=(t=t||{}).title||"bitwrench",o=t.body||"",a=t.state||void 0,n=t.runtime||"shim",i=t.css||"",s=t.theme||null,l=t.head||[],c=t.favicon||"",d=t.lang||"en",b=De._fnIDCounter,_="";if(He(o,"string"))_=o;else{var u={};a&&(u.state=a),_=De.html(o,u)}for(var p=De._fnIDCounter,m="",w=b;w<p;w++){var f="bw_fn_"+w;De._fnRegistry[f]&&(m+="bw._fnRegistry['"+f+"']="+De._fnRegistry[f].toString()+";\n")}var h="";if("inline"===n){var g=null;if(De._isNode)try{var v="function"==typeof require?require("fs"):null,y="function"==typeof require?require("path"):null;if(v&&y){var x="";try{x=y.dirname("undefined"!=typeof __filename?__filename:"")}catch(e){}if(!x&&void 0!=={url:"undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href)){var k="function"==typeof require?require("url"):null;k&&k.fileURLToPath&&(x=y.dirname(k.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href)))}if(x){var C=y.resolve(x,"../dist/bitwrench.umd.min.js");g=v.readFileSync(C,"utf8")}}}catch(e){}h=g?"<script>"+g+"<\/script>":"<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>"}else"cdn"===n?h='<script src="https://cdn.jsdelivr.net/npm/bitwrench@2/dist/bitwrench.umd.min.js"><\/script>':"shim"===n&&(h="<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>");var S="";if(s){var j=He(s,"string")?L[s.toLowerCase()]||null:s;if(j)S=De.makeStyles(j).css}var z="";qe(l)&&l.length>0&&(z=l.map(function(e){return De.html(e)}).join("\n"));var A="";c&&(A='<link rel="icon" href="'+c.replace(/[&<>"']/g,function(e){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]})+'">');var $=De.escapeHTML(r),E=(S?S+"\n":"")+i,N="",M=[];m&&M.push(m),"inline"!==n&&"cdn"!==n||M.push('if(typeof bw!=="undefined"){bw.loadStyles();}'),M.length>0&&(N="<script>\n"+M.join("\n")+"\n<\/script>");var I=["<!DOCTYPE html>",'<html lang="'+d+'">',"<head>",'<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">'];return I.push("<title>"+$+"</title>"),A&&I.push(A),h&&I.push(h),z&&I.push(z),E&&I.push("<style>"+E+"</style>"),I.push("</head>"),I.push("<body>"),I.push(_),N&&I.push(N),I.push("</body>"),I.push("</html>"),I.join("\n")},De.createDOM=function(e,t={}){if(!De._isBrowser)throw new Error("bw.createDOM requires a DOM environment (document/window). Use bw.html() instead.");if(null==e)return document.createTextNode("");if(e&&e.__bw_raw){var r=document.createDocumentFragment(),o=document.createElement("span");for(o.innerHTML=e.v;o.firstChild;)r.appendChild(o.firstChild);return r}if(!He(e,"object")||!e.t)return document.createTextNode(String(e));const{t:a,a:n={},c:i,o:s={}}=e,l=document.createElement(a);for(const[e,t]of Object.entries(n))if(null!=t&&!1!==t)if("style"===e&&He(t,"object"))Object.assign(l.style,t);else if("class"===e){const e=qe(t)?t.filter(Boolean).join(" "):String(t);e&&(l.className=e)}else if(e.startsWith("on")&&He(t,"function")){const r=e.slice(2).toLowerCase();l.addEventListener(r,t)}else"value"===e&&"input"===a?l.value=t:!0===t?l.setAttribute(e,""):l.setAttribute(e,String(t));if(null!=i)if(qe(i))i.forEach(e=>{if(null!=e){var r=De.createDOM(e,t);l.appendChild(r);var o=e&&e.a?e.a.id||De.getUUID(e):null;if(o&&(l._bw_refs||(l._bw_refs={}),l._bw_refs[o]=r),r._bw_refs)for(var a in l._bw_refs||(l._bw_refs={}),r._bw_refs)Ue.call(r._bw_refs,a)&&(l._bw_refs[a]=r._bw_refs[a])}});else if(He(i,"object")&&i.__bw_raw)l.innerHTML=i.v;else if(He(i,"object")&&i.t){var c=De.createDOM(i,t);l.appendChild(c);var d=i.a?i.a.id||De.getUUID(i):null;if(d&&(l._bw_refs||(l._bw_refs={}),l._bw_refs[d]=c),c._bw_refs)for(var b in l._bw_refs||(l._bw_refs={}),c._bw_refs)Ue.call(c._bw_refs,b)&&(l._bw_refs[b]=c._bw_refs[b])}else l.textContent=String(i);if(n.id&&De._registerNode(l,null),l.className){var _=l.className.match(Ve);_&&(De._nodeMap[_[0]]=l)}if(s.mounted||s.unmount||s.render||s.state){var u=De.getUUID(l)||De.uuid("uuid");l.classList.add(u),l.classList.add(Je),De._registerNode(l,u),s.state&&(l._bw_state=s.state),s.render&&(l._bw_render=s.render);var p=s.mounted||(s.render?function(e){s.render(e,e._bw_state||{})}:null);p&&(document.body.contains(l)?p(l,l._bw_state||{}):requestAnimationFrame(()=>{document.body.contains(l)&&p(l,l._bw_state||{})})),s.unmount&&De._unmountCallbacks.set(u,()=>{s.unmount(l,l._bw_state||{})})}if(s.handle||s.slots){if(l.bw||(l.bw={}),s.handle)for(var m in s.handle)Ue.call(s.handle,m)&&(l.bw[m]=s.handle[m].bind(null,l));if(s.slots)for(var w in s.slots)Ue.call(s.slots,w)&&function(e,t){var r=e.charAt(0).toUpperCase()+e.slice(1);l.bw["set"+r]=function(e){var r=l.querySelector(t);r&&(null!=e&&"object"==typeof e&&e.t?(r.innerHTML="",r.appendChild(De.createDOM(e))):r.textContent=null!=e?String(e):"")},l.bw["get"+r]=function(){var e=l.querySelector(t);return e?e.textContent:""}}(w,s.slots[w])}return l},De.DOM=function(e,t,r={}){if(!De._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");const o=De._el(e);if(!o)return Xe("bw.DOM: Target element not found:",e),null;const a=o._bw_state,n=o._bw_render,i=De.getUUID(o),s=o._bw_subs;return delete o._bw_subs,De.cleanup(o),void 0!==a&&(o._bw_state=a),n&&(o._bw_render=n),i&&De._registerNode(o,i),s&&(o._bw_subs=s),o.innerHTML="",null!=t&&(qe(t)?t.forEach(e=>{null!=e&&o.appendChild(De.createDOM(e,r))}):o.appendChild(De.createDOM(t,r))),o},De.compileProps=function(){throw new Error("bw.compileProps() removed in v2.0.19. Use o.handle/o.slots instead.")},De.renderComponent=function(){throw new Error("bw.renderComponent() removed in v2.0.19. Use bw.mount() with o.handle/o.slots instead.")},De.mount=function(e,t,r){var o=He(e,"string")?De.$(e)[0]:e;if(!o)return Ye("bw.mount: target not found"),null;De.cleanup(o),o.innerHTML="";var a=De.createDOM(t,r||{});return o.appendChild(a),a},De.cleanup=function(e){if(!De._isBrowser||!e)return;e.querySelectorAll('[class*="bw_uuid_"]').forEach(function(e){var t=e.className&&e.className.match(Ve);t&&delete De._nodeMap[t[0]]});e.querySelectorAll("."+Je).forEach(e=>{var t=De.getUUID(e);if(t){const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t)}e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs});var t=De.getUUID(e);if(t){delete De._nodeMap[t];const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t),e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs}else e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs)},De.update=function(e){var t=De._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),De.emit(t,"statechange",t._bw_state)),t||null},De.patch=function(e,t,r){var o=De._el(e);return o?(r?o.setAttribute(r,String(t)):qe(t)?(o.innerHTML="",t.forEach(function(e){He(e,"string")||He(e,"number")?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(De.createDOM(e))})):He(t,"object")&&t.t?(o.innerHTML="",o.appendChild(De.createDOM(t))):o.textContent=String(t),o):null},De.patchAll=function(e){var t={};for(var r in e)Ue.call(e,r)&&(t[r]=De.patch(r,e[r]));return t},De.emit=function(e,t,r){var o=De._el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},De.on=function(e,t,r){var o=De._el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},De.pub=function(e,t){var r=De._topics[e];if(!r||0===r.length)return 0;for(var o=r.slice(),a=0,n=0;n<o.length;n++)try{o[n].handler(t),a++}catch(t){Ye('bw.pub: subscriber error on topic "'+e+'":',t)}return a},De.sub=function(e,t,r){var o=++De._subIdCounter;De._topics[e]||(De._topics[e]=[]),De._topics[e].push({handler:t,id:o});var a=function(){var t=De._topics[e];t&&(De._topics[e]=t.filter(function(e){return e.id!==o}),0===De._topics[e].length&&delete De._topics[e])};return r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(a),De.getUUID(r)||r.classList.add(De.uuid("uuid")),r.classList.contains(Je)||r.classList.add(Je)),a},De.unsub=function(e,t){var r=De._topics[e];if(!r)return 0;var o=r.length;De._topics[e]=r.filter(function(e){return e.handler!==t});var a=o-De._topics[e].length;return 0===De._topics[e].length&&delete De._topics[e],a},De._fnRegistry={},De._fnIDCounter=0,De.funcRegister=function(e,t){if(!He(e,"function"))return"";var r=He(t,"string")&&t.length>0?t:"bw_fn_"+De._fnIDCounter++;return De._fnRegistry[r]=e,r},De.funcGetById=function(e,t){return(e=String(e))in De._fnRegistry?De._fnRegistry[e]:He(t,"function")?t:function(){Ye('bw.funcGetById: unregistered fn "'+e+'"')}},De.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},De.funcUnregister=function(e){return e in De._fnRegistry&&(delete De._fnRegistry[e],!0)},De.funcGetRegistry=function(){var e={};for(var t in De._fnRegistry)Ue.call(De._fnRegistry,t)&&(e[t]=De._fnRegistry[t]);return e},De._FUNC_REGISTRY_SHIM='(function(){var bw=window.bw||(window.bw={});if(!bw._fnRegistry)bw._fnRegistry={};bw.funcGetById=function(n){return bw._fnRegistry[n]||function(){console.warn("bw: unregistered fn "+n)};};bw.funcRegister=function(fn,name){var id=name||("bw_fn_"+(bw._fnIDCounter=(bw._fnIDCounter||0)+1));bw._fnRegistry[id]=fn;return id;};window.bw=bw;})();',De._parseBindings=function(e){for(var t,r=[],o=/\$\{([^}]+)\}/g;null!==(t=o.exec(e));)r.push({start:t.index,end:t.index+t[0].length,expr:t[1].trim()});return r},De._evaluatePath=function(e,t){for(var r=t.split("."),o=e,a=0;a<r.length;a++){if(null==o)return De.debug&&Ye('bw.debug: _evaluatePath — null at key "'+r[a]+'" in path "'+t+'"'),"";o=o[r[a]]}return null==o?"":o},De._compiledExprs={},De._resolveTemplate=function(e,t,r){if(!He(e,"string")||e.indexOf("${")<0)return e;var o=De._parseBindings(e);if(0===o.length)return e;for(var a="",n=0,i=0;i<o.length;i++){var s,l=o[i];if(a+=e.slice(n,l.start),r){if(!De._compiledExprs[l.expr])try{De._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){De._compiledExprs[l.expr]=function(){return""}}try{s=De._compiledExprs[l.expr](t)}catch(e){De.debug&&Ye('bw.debug: _resolveTemplate — Tier 2 eval failed for "${'+l.expr+'}":',e.message),s=""}}else s=De._evaluatePath(t,l.expr);a+=null==s?"":String(s),n=l.end}return a+=e.slice(n)},De._extractDeps=void 0,De._dirtyComponents=void 0,De._flushScheduled=void 0,De._scheduleFlush=void 0,De._doFlush=void 0,De._ComponentHandle=void 0,De.flush=function(){},De.when=function(){throw new Error("bw.when() removed in v2.0.19. Use conditional logic in o.render instead.")},De.each=function(){throw new Error("bw.each() removed in v2.0.19. Use array mapping in o.render instead.")},De.component=function(){throw new Error("bw.component() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.message=function(e,t,r){var o=De._el(e);return o||(o=De.$("."+e)[0]),o&&o.bw&&"function"==typeof o.bw[t]?(o.bw[t](r),!0):(Ye('bw.message: no handle method "'+t+'" on '+e),!1)},De._clientFunctions={},De._allowExec=!1,De.parseJSONFlex=function(e){if("r"!==(e=(e||"").trim()).charAt(0))return JSON.parse(e);for(var t=[],r=0,o=(e=e.slice(1)).length;r<o;){var a=e[r];if("'"===a){for(t.push('"'),r++;r<o;){var n=e[r];if("\\"===n&&r+1<o){var i=e[r+1];"'"===i?t.push("'"):(t.push("\\"),t.push(i)),r+=2}else if('"'===n)t.push('\\"'),r++;else{if("'"===n)break;t.push(n),r++}}t.push('"'),r++}else if('"'===a)for(t.push(a),r++;r<o;){var s=e[r];if("\\"===s&&r+1<o)t.push(s),t.push(e[r+1]),r+=2;else if(t.push(s),r++,'"'===s)break}else if(","===a){for(var l=r+1;l<o&&(" "===e[l]||"\t"===e[l]||"\n"===e[l]||"\r"===e[l]);)l++;l<o&&("}"===e[l]||"]"===e[l])||t.push(a),r++}else t.push(a),r++}return JSON.parse(t.join(""))},De.apply=function(e){if(!e||!e.type)return!1;var t=e.type,r=e.target;if("replace"===t){var o=De._el(r);return!!o&&(De.DOM(o,e.node),!0)}if("patch"===t)return null!==De.patch(r,e.content,e.attr);if("append"===t){var a=De._el(r);if(!a)return!1;var n=De.createDOM(e.node);return a.appendChild(n),!0}if("remove"===t){var i=De._el(r);return!!i&&(He(De.cleanup,"function")&&De.cleanup(i),i.remove(),!0)}if("batch"===t){if(!qe(e.ops))return!1;var s=!0;return e.ops.forEach(function(e){De.apply(e)||(s=!1)}),s}if("message"===t)return De.message(e.target,e.action,e.data);if("register"===t){if(!e.name||!e.body)return!1;try{return De._clientFunctions[e.name]=new Function("return "+e.body)(),!0}catch(t){return Xe("[bw] register error:",e.name,t),!1}}else if("call"===t){if(!e.name)return!1;var l=De._clientFunctions[e.name];if(!He(l,"function"))return!1;try{var c=qe(e.args)?e.args:[];return l.apply(null,c),!0}catch(t){return Xe("[bw] call error:",e.name,t),!1}}else if("exec"===t){if(!De._allowExec)return Ye("[bw] exec rejected: allowExec is not enabled"),!1;if(!e.code)return!1;try{return new Function(e.code)(),!0}catch(e){return Xe("[bw] exec error:",e),!1}}return!1},De.inspect=function(e){var t=He(e,"string")?De.$(e)[0]:e;return t?(console.group("Element: "+(De.getUUID(t)||t.id||t.tagName)),Ge("State:",t._bw_state||"(none)"),Ge("Handle:",t.bw?Pe(t.bw):"(none)"),Ge("Classes:",t.className),Ge("Refs:",t._bw_refs||"(none)"),console.groupEnd(),t):(Ye("bw.inspect: element not found"),null)},De.compile=function(){throw new Error("bw.compile() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.css=function(e,t={}){const{minify:r=!1,pretty:o=!r}=t;if(He(e,"string"))return e;let a="";const n=o?" ":"",i=o?"\n":"",s=o?" ":"";return qe(e)?a=e.map(e=>De.css(e,t)).join(i):He(e,"object")&&Object.entries(e).forEach(([e,r])=>{if(He(r,"object")){if("@"===e.charAt(0)){const o=De.css(r,t);return void(o&&(a+=`${e}${s}{${i}${o}${i}}${i}`))}const o=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>{const r=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());return`${n}${r}:${s}${t};`}).join(i);o&&(a+=`${e}${s}{${i}${o}${i}}${i}`)}}),a.trim()},De.injectCSS=function(e,t={}){if(!De._isBrowser)return Ye("bw.injectCSS requires a DOM environment"),null;const{id:r="bw_styles",append:o=!0}=t;let a=document.getElementById(r);a||(a=document.createElement("style"),a.id=r,a.type="text/css",document.head.appendChild(a));const n=He(e,"string")?e:De.css(e,t);return o&&a.textContent?a.textContent+="\n"+n:a.textContent=n,a},De.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];He(r,"object")&&Object.assign(e,r)}return e},De.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Pe(t).forEach(function(a){var n={};"base"===a?(n[e]=t[a],o.push(De.css(n))):r[a]&&(n[e]=t[a],o.push("@media (min-width: "+r[a]+") {\n"+De.css(n)+"\n}"))}),o.join("\n")},De.mapScale=T,De.clip=B,De._isBrowser&&(De.$=function(e){return e?qe(e)?e:e.nodeType?[e]:void 0===e.length||He(e,"string")?He(e,"string")?Array.from(document.querySelectorAll(e)):[]:Array.from(e):[]},De.$.one=function(e){return De.$(e)[0]||null}),De.makeStyles=function(e){var t=Object.assign({},j,e||{});e&&!e.tertiary&&(t.tertiary=t.primary);var r=h(t),o=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,a=e&&e.typeRatio||"normal",n="string"==typeof a?x[a]||x.normal:a,i=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?v[t]||v.normal:t,radius:"string"==typeof r?y[r]||y.md:r,fontSize:o,typeScale:k(16,n),elevation:"string"==typeof i?C[i]||C.md:i,motion:"string"==typeof s?S[s]||S.standard:s}}(t),a=A("",r,o),n=De.css(a),i=h(f(t)),s=A("",i,o);return s.body={color:i.dark.base,"background-color":i.surface||i.light.base},{css:n,alternateCss:De.css(s),rules:a,alternateRules:s,palette:r,alternatePalette:i,isLightPrimary:w(t)}},De.applyStyles=function(e,t){if(!De._isBrowser)return null;if(!e||!e.rules)return Ye("bw.applyStyles: invalid styles object"),null;var r=We(t),o=e.rules;t&&(o=M(o,t));var a=e.alternateRules;a&&(a=M(a,t?t+".bw_theme_alt":".bw_theme_alt"));var n=De.css(o);return a&&(n+="\n"+De.css(a)),De.injectCSS(n,{id:r,append:!1})},De.loadStyles=function(e,t){if(De._isBrowser&&!document.getElementById("bw_structural")){var r=De.css(N());De.injectCSS(r,{id:"bw_structural",append:!1})}return De.applyStyles(De.makeStyles(e),t)},De.loadReset=function(){if(!De._isBrowser)return null;var e,t=document.getElementById("bw_style_reset");return t||De.injectCSS(De.css((e={},Object.assign(e,$.base),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e)),{id:"bw_style_reset",append:!1})},De.toggleStyles=function(e){if(!De._isBrowser)return"primary";var t;e?t=De.$(e)[0]:t=document.documentElement;return t?t.classList.contains("bw_theme_alt")?(t.classList.remove("bw_theme_alt"),"primary"):(t.classList.add("bw_theme_alt"),"alternate"):"primary"},De.clearStyles=function(e){if(De._isBrowser){var t=We(e),r=document.getElementById(t);if(r&&r.remove(),e&&"reset"!==e&&"global"!==e){var o=De.$(e);o[0]&&o[0].classList.remove("bw_theme_alt")}else e&&"global"!==e||document.documentElement.classList.remove("bw_theme_alt")}},De.hexToHsl=s,De.hslToHex=l,De.adjustLightness=c,De.mixColor=d,De.relativeLuminance=b,De.textOnColor=_,De.deriveShades=p,De.derivePalette=h,De.harmonize=u,De.deriveAlternateSeed=m,De.deriveAlternateConfig=f,De.isLightPalette=w,De.SPACING_PRESETS=v,De.RADIUS_PRESETS=y,De.TYPE_RATIO_PRESETS=x,De.ELEVATION_PRESETS=C,De.MOTION_PRESETS=S,De.generateTypeScale=k,De.DEFAULT_PALETTE_CONFIG=j,De.THEME_PRESETS=L,De.choice=function(e,t,r){const o=e in t?t[e]:r;return"function"===O(o)?o(e):o},De.arrayUniq=R,De.arrayBinA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:R(e.filter(e=>-1!==t.indexOf(e)))},De.arrayBNotInA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:R(t.filter(t=>e.indexOf(t)<0))},De.colorInterp=function(e,t,r,o,n){return function(e,t,r,o,a,n){let i=Array.isArray(o)?o:["#000","#fff"];if(i=0===i.length?["#000","#fff"]:i,1===i.length)return i[0];i=i.map(e=>n(e));const s=T(e,t,r,0,i.length-1,{clip:!0,expScale:a}),l=B(Math.floor(s),0,i.length-2),c=s-l,d=e=>T(c,0,1,i[l][e],i[l+1][e],{clip:!0});return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,o,n,a)},De.colorHslToRgb=i,De.colorRgbToHsl=n,De.colorParse=a,De.setCookie=function(e,t,r,o={}){if(!De._isBrowser)return;const a=new Date;a.setTime(a.getTime()+24*r*60*60*1e3);let n=`${e}=${t}; expires=${a.toUTCString()}`;o.path&&(n+=`; path=${o.path}`),o.domain&&(n+=`; domain=${o.domain}`),o.secure&&(n+="; secure"),o.sameSite&&(n+=`; samesite=${o.sameSite}`),document.cookie=n},De.getCookie=function(e,t){if(!De._isBrowser)return t;const r=e+"=",o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return t.substring(r.length,t.length)}return t},De.getURLParam=function(e,t){if(!De._isBrowser||"object"!=typeof window)return t;try{const r=new URLSearchParams(window.location.search);if(!e){const e={};for(const[t,o]of r)e[t]=o||!0;return e}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},De.loremIpsum=function(e,t,r=!0){const o="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ";"number"!=typeof e&&(e=Math.floor(125*Math.random())+25),void 0===t&&(t=Math.floor(446*Math.random())),t%=446;let a=0;for(;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,a++,a>=446){t=0,a=0;break}let n=o.substring(t)+o.substring(0,t),i="",s=e+a;for(;s>0;)i+=s<n.length?n.substring(0,s):n,s-=n.length;if(i.length>e&&(i=i.substring(0,e))," "===i[i.length-1]&&(i=i.substring(0,i.length-1)+"."),r){let e=i[0].toUpperCase();e=/[A-Z]/.test(e)?e:"L",i=e+i.substring(1)}return i},De.multiArray=function(e,t){t="number"==typeof t?[t]:t;const r=o=>{if(o>=t.length)return"function"===O(e)?e():e;const a=[];for(let e=0;e<t[o];e++)a[e]=r(o+1);return a};return r(0)},De.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);const r=String(e).toLowerCase(),o=String(t).toLowerCase();if(r===o)return e>t?1:0;if(!/\d/.test(r)||!/\d/.test(o))return r>o?1:-1;const a=r.match(/(\d+|\D+)/g)||[],n=o.match(/(\d+|\D+)/g)||[],i=Math.min(a.length,n.length);for(let e=0;e<i;e++){const t=a[e],r=n[e];if(t!==r){if(/^\d+$/.test(t)&&/^\d+$/.test(r)){let e=t,o=r;return"0"===t[0]&&(e="0."+t),"0"===r[0]&&(o="0."+r),parseFloat(e)-parseFloat(o)}return t>r?1:-1}}return a.length-n.length},De.setIntervalX=function(e,t,r){let o=0;const a=setInterval(function(){e(o),++o>=r&&clearInterval(a)},t);return a},De.repeatUntil=function(e,t,r,o=250,a=10,n){if("function"!=typeof e)return"err";let i=0;const s=setInterval(function(){const o=e();i++,o?(clearInterval(s),t&&t(o),n&&n(!0,i)):i>=a?(clearInterval(s),r&&r(),n&&n(!1,i)):r&&r()},o);return s},function(e){e.saveClientFile=function(t,r){if(e.isNodeJS())e._getFs().then(function(e){e?e.writeFile(t,r,function(e){e&&console.error("Error saving file:",e)}):console.error("bw.saveClientFile: fs module not available")});else{var o=new Blob([r],{type:"application/octet-stream"}),a=window.URL.createObjectURL(o),n=e.createDOM({t:"a",a:{href:a,download:t,style:"display: none"}});document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(a),document.body.removeChild(n)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,o){var a={parser:"raw"};o&&o.parser&&(a.parser=o.parser);var n="JSON"===a.parser?JSON.parse:function(e){return e};if(e.isNodeJS())e._getFs().then(function(e){e?e.readFile(t,"utf8",function(e,t){if(e)r(null,e);else try{r(n(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){if(4===i.readyState)if(i.status>=200&&i.status<300)try{r(n(i.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+i.status+": "+t))},i.send(null)}return"BW_OK"},e.loadClientJSON=function(t,r){return e.loadClientFile(t,r,{parser:"JSON"})},e.loadLocalFile=function(t,r){var o={parser:"raw",accept:""};r&&(r.parser&&(o.parser=r.parser),r.accept&&(o.accept=r.accept));var a="JSON"===o.parser?JSON.parse:function(e){return e};if(e.isNodeJS())t(null,"",new Error("bw.loadLocalFile is browser-only. Use bw.loadClientFile() in Node."));else{var n=e.createDOM({t:"input",a:{type:"file",accept:o.accept,style:"display: none"}});n.addEventListener("change",function(){var e=n.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(a(r.target.result),e.name,null)}catch(r){t(null,e.name,r)}},r.onerror=function(){t(null,e.name,r.error)},r.readAsText(e),n.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(n),n.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(De),De.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise((t,r)=>{const o=De.createDOM({t:"textarea",a:{value:e,style:{position:"fixed",top:"-999px",left:"-999px",width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}}});document.body.appendChild(o),o.focus(),o.select();try{const e=document.execCommand("copy");document.body.removeChild(o),e?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},De.makeTable=function(e){const{data:t=[],columns:r,className:o="",striped:a=!1,hover:n=!1,sortable:i=!0,onSort:s,sortColumn:l,sortDirection:c="asc",selectable:d=!1,onRowClick:b,pageSize:_,currentPage:u=1,onPageChange:p}=e;let m="bw_table";a&&(m+=" bw_table_striped"),(n||d)&&(m+=" bw_table_hover"),d&&(m+=" bw_table_selectable"),o&&(m+=" "+o),m=m.trim();const w=r||(t.length>0?Pe(t[0]).map(e=>({key:e,label:e})):[]);let f=l||null,h=c,g=[...t];f&&g.sort((e,t)=>{const r=e[f],o=t[f];if(He(r,"number")&&He(o,"number"))return"asc"===h?r-o:o-r;const a=String(r||"").toLowerCase(),n=String(o||"").toLowerCase();return"asc"===h?a.localeCompare(n):n.localeCompare(a)});const v=g.length,y=_?Math.max(1,Math.ceil(v/_)):1,x=Math.max(1,Math.min(u,y));if(_){const e=(x-1)*_;g=g.slice(e,e+_)}const k={t:"table",a:{class:m},c:[{t:"thead",c:{t:"tr",c:w.map(e=>({t:"th",a:i?{style:{cursor:"pointer",userSelect:"none"},onclick:()=>{return t=e.key,void(i&&(f===t?h="asc"===h?"desc":"asc":(f=t,h="asc"),s&&s(t,h)));var t}}:{},c:[e.label,i&&f===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===h?"▲":"▼"}].filter(Boolean)}))}},{t:"tbody",c:g.map((e,t)=>{const r=_?(x-1)*_+t:t,o={};return(d||b)&&(o.style="cursor:pointer;",o.onclick=function(t){d&&t.currentTarget.classList.toggle("bw_table_row_selected");b&&b(e,r,t)}),{t:"tr",a:o,c:w.map(t=>({t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}))}})}]};if(!_)return k;const C=[];return C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x<=1?"disabled":void 0,onclick:x>1&&p?function(){p(x-1)}:void 0},c:"Prev"}),C.push({t:"span",a:{style:"margin:0 0.5rem;font-size:0.875rem;"},c:"Page "+x+" of "+y}),C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x>=y?"disabled":void 0,onclick:x<y&&p?function(){p(x+1)}:void 0},c:"Next"}),{t:"div",a:{class:"bw_table_paginated"},c:[k,{t:"div",a:{class:"bw_table_pagination",style:"display:flex;align-items:center;justify-content:flex-end;padding:0.5rem 0;gap:0.25rem;"},c:C}]}},De.makeTableFromArray=function(e){const{data:t=[],headerRow:r=!0,columns:o,...a}=e;if(!qe(t)||0===t.length)return De.makeTable({data:[],columns:o||[],...a});let n,i;if(r&&t.length>0)n=t[0].map(function(e){return String(e)}),i=t.slice(1);else{const e=t[0].length;n=[];for(let t=0;t<e;t++)n.push("col"+t);i=t}const s=i.map(function(e){const t={};return n.forEach(function(r,o){t[r]=void 0!==e[o]?e[o]:""}),t}),l=o||n.map(function(e){return{key:e,label:e}});return De.makeTable({data:s,columns:l,...a})},De.makeBarChart=function(e){const{data:t=[],labelKey:r="label",valueKey:o="value",title:a,color:n="#006666",height:i="200px",formatValue:s,showValues:l=!0,showLabels:c=!0,className:d=""}=e;if(!qe(t)||0===t.length)return{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:""};const b=t.map(function(e){return Number(e[o])||0}),_=Math.max.apply(null,b),u=t.map(function(e,t){const o=b[t],a=_>0?o/_*100:0,i=s?s(o):String(o),d=[];return l&&d.push({t:"div",a:{class:"bw_bar_value"},c:i}),d.push({t:"div",a:{class:"bw_bar",style:"height:"+a+"%;background:"+n+";"}}),c&&d.push({t:"div",a:{class:"bw_bar_label"},c:String(e[r]||"")}),{t:"div",a:{class:"bw_bar_group"},c:d}}),p=[];return a&&p.push({t:"h3",a:{class:"bw_bar_chart_title"},c:a}),p.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+i+";"},c:u}),{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:p}},De.makeDataTable=function(e){const{title:t,data:r,columns:o,className:a="",striped:n=!0,hover:i=!0,responsive:s=!0,...l}=e,c=De.makeTable({data:r,columns:o,className:a,striped:n,hover:i,...l}),d=[];return t&&d.push({t:"h5",a:{class:"mb-3"},c:t}),s?d.push({t:"div",a:{class:"table-responsive"},c:c}):d.push(c),{t:"div",a:{class:"table-container"},c:d}},De._componentRegistry=new Map,De.render=function(e,t,r){const o=He(e,"string")?document.querySelector(e):e;if(!o)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};const a=r.o?.id||De.uuid("uuid");let n;try{n=De.createDOM(r)}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=render_failed:${e.message}`}}n.classList.add(a),n.classList.add(Je);try{switch(t){case"replace":o.parentNode.replaceChild(n,o);break;case"prepend":o.insertBefore(n,o.firstChild);break;case"append":o.appendChild(n);break;case"before":o.parentNode.insertBefore(n,o);break;case"after":o.parentNode.insertBefore(n,o.nextSibling);break;default:throw new Error(`Invalid position: ${t}`)}}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=insertion_failed:${e.message}`}}const i={object_type:r.t||"element",component_id:a,object_handle_in_dom:n,status_code:"success",_taco:{...r},_state:{...r.o?.state||{}},_mounted:!0,get element(){return this.object_handle_in_dom},getState(){return{...this._state}},setState(e){return this._state={...this._state,...e},this._taco.o?.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update(){if(!this._mounted||!this.element)return this;const e=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);const t=De.createDOM(this._taco);return t.classList.add(a),t.classList.add(Je),e.replaceChild(t,this.element),this.object_handle_in_dom=t,this._taco.o?.onUpdate&&this._taco.o.onUpdate(t,this._state),this},getProp(e){return this._taco.a?.[e]},setProp(e,t){return this._taco.a||(this._taco.a={}),this._taco.a[e]=t,this.element&&(null==t?this.element.removeAttribute(e):!0===t?this.element.setAttribute(e,""):this.element.setAttribute(e,String(t))),this},getContent(){return this._taco.c},setContent(e){return this._taco.c=e,this.element&&(He(e,"string")?this.element.textContent=e:this.update()),this},addClass(e){return this.element&&this.element.classList.add(e),this},removeClass(e){return this.element&&this.element.classList.remove(e),this},toggleClass(e){return this.element&&this.element.classList.toggle(e),this},hasClass(e){return!!this.element&&this.element.classList.contains(e)},show(){return this.element&&(this.element.style.display=""),this},hide(){return this.element&&(this.element.style.display="none"),this},on(e,t){return this.element&&this.element.addEventListener(e,t),this},off(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy(){return this._mounted?(this._taco.o?.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),De._componentRegistry.delete(a),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return De._componentRegistry.set(a,i),r.o?.mounted&&r.o.mounted(n,i),i},De.getComponent=function(e){return De._componentRegistry.get(e)||null},De.getAllComponents=function(){return new Map(De._componentRegistry)},function(e){var t=null;e.router=function(r){if(!r||!r.routes)throw new Error("bw.router: config.routes is required");if(!e._isBrowser)throw new Error("bw.router: requires a browser environment");var o=r.mode||"hash",a=r.base||"/";a.length>1&&"/"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));for(var n=r.target||null,i=[],s=Object.keys(r.routes),l=0;l<s.length;l++)i.push({pattern:s[l],handler:r.routes[s[l]]});var c="/",d=!1;function b(){if("hash"===o)return window.location.hash.replace(/^#/,"")||"/";var e=window.location.pathname;return"/"!==a&&0===e.indexOf(a)&&(e=e.substring(a.length)||"/"),e+(window.location.search||"")}function _(t,o){if(!d){var a=c,s=D(t);if(r.before){var l=r.before(s,a);if(!1===l)return;"string"==typeof l&&(s=D(l),t=l)}c=s;var b=q(i,t);if(b){var _=b.handler(b.params);null!=_&&n&&e.DOM(n,_)}var u=U(t);e.pub("bw:route",{path:s,params:b?b.params:{},query:u,from:a}),r.after&&r.after(s,a)}}function u(){d||_(b())}function p(){d||_(b())}"hash"===o?window.addEventListener("hashchange",u):window.addEventListener("popstate",p),_(b());var m={navigate:function(e,t){if(!d)if(t=t||{},"hash"===o){if(t.replace){var r=window.location;r.replace(r.pathname+r.search+"#"+e)}else window.location.hash=e;D(window.location.hash.replace(/^#/,"")||"/")===D(e)&&_(e)}else{var n=("/"===a?"":a)+e;t.replace?window.history.replaceState(null,"",n):window.history.pushState(null,"",n),_(e)}},current:function(){var e=b(),t=q(i,e);return{path:c,params:t?t.params:{},query:U(e)}},destroy:function(){d=!0,"hash"===o?window.removeEventListener("hashchange",u):window.removeEventListener("popstate",p),t===m&&(t=null)}};return t=m,m},e.navigate=function(e,r){t?t.navigate(e,r):"undefined"!=typeof console&&console.warn&&console.warn("bw.navigate: no active router")},e.link=function(r,o,a){var n={};if(a)for(var i=Object.keys(a),s=0;s<i.length;s++)n[i[s]]=a[i[s]];return n.href=t?"#"+r:r,n.onclick=function(t){t.preventDefault(),e.navigate(r)},{t:"a",a:n,c:o}},e._router={matchRoute:q,normalizePath:D,parseQuery:U,getActiveRouter:function(){return t},resetActiveRouter:function(){t=null}}}(De),Object.entries(Re).forEach(([e,t])=>{e.startsWith("make")&&(De[e]=t)}),De.make=Be,De.BCCL=Te,De.variantClass=P,Object.entries(Re).forEach(([e,t])=>{if(e.startsWith("make")){const r="create"+e.substring(4);De[r]=function(e){return De.createDOM(t(e))}}}),De._isBrowser&&"undefined"!=typeof window&&(window.bw=De),De});
|
|
99
|
+
*/const De={version:t.version,versionInfo:t,getVersion:function(){return{...t}},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value=He(e,"boolean")?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==De.__monkey_patch_is_nodejs__.get()?De.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};De._isNode=De.isNodeJS(),Object.defineProperty(De,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0});var Ue=Object.prototype.hasOwnProperty,qe=Array.isArray,Pe=Object.keys,Fe=O,He=function(e,t){var r=Fe(e);return r===t||r.toLowerCase()===t},Ye=function(){console.warn.apply(console,arguments)},Ge=function(){console.log.apply(console,arguments)},Xe=function(){console.error.apply(console,arguments)};De.debug=!1,De._fsCache=void 0,De._getFs=function(){if(void 0!==De._fsCache)return Promise.resolve(De._fsCache);if(!De.isNodeJS())return De._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return De._fsCache=require("fs"),Promise.resolve(De._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return De._fsCache=e.default||e,De._fsCache}).catch(function(){return De._fsCache=null,null})}catch(e){return De._fsCache=null,Promise.resolve(null)}},De.typeOf=O,De.to=De.typeOf,De.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(De._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");return`${t}${Date.now().toString(36)}_${(++De._idCounter).toString(36)}_${Math.random().toString(36).substring(2,11)}`},De._el=function(e){if(!He(e,"string"))return e||null;if(!e)return null;if(!De._isBrowser)return null;var t=De._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete De._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||0!==e.indexOf("bw_uuid_")||(r=document.querySelector("."+e)),r&&(De._nodeMap[e]=r),r},De._registerNode=function(e,t){if(e){t&&(De._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(De._nodeMap[r]=e)}},De._deregisterNode=function(e,t){t&&delete De._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete De._nodeMap[r]};var Je="bw_lc",Ve=/\bbw_uuid_[a-z0-9_]+\b/;function We(e){return e&&""!==e&&"global"!==e?"reset"===e?"bw_style_reset":"bw_style_"+e.replace(/^[#.]/,"").replace(/-/g,"_"):"bw_style_global"}return De.assignUUID=function(e,t){if(!e||!He(e,"object"))return null;e.a||(e.a={}),He(e.a.class,"string")||(e.a.class=e.a.class?String(e.a.class):"");var r=e.a.class.match(Ve);if(r&&!t)return r[0];r&&(e.a.class=e.a.class.replace(Ve,"").replace(/\s+/g," ").trim());var o=De.uuid("uuid");return e.a.class=(e.a.class?e.a.class+" ":"")+o,o},De.getUUID=function(e){if(!e)return null;var t;if(void 0!==e.className&&e.tagName?t=e.className:e.a&&He(e.a.class,"string")&&(t=e.a.class),!t)return null;var r=t.match(Ve);return r?r[0]:null},De.escapeHTML=function(e){if(!He(e,"string"))return"";const t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,e=>t[e])},De.raw=function(e){return{__bw_raw:!0,v:String(e)}},De.h=function(e,t,r,o){var a={t:String(e)};return null!=t&&(a.a=t),void 0!==r&&(a.c=r),void 0!==o&&(a.o=o),a},De.html=function(e,t={}){if(null==e)return"";if(qe(e))return e.map(e=>De.html(e,t)).join("");if(e&&e.__bw_raw)return e.v;if(!He(e,"object")||!e.t){var r=t.raw?String(e):De.escapeHTML(String(e));return t.state&&He(r,"string")&&r.indexOf("${")>=0&&(r=De._resolveTemplate(r,t.state,!!t.compile)),r}const{t:o,a:a={},c:n,o:i={}}=e,s=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(o.toLowerCase());let l="";for(const[e,r]of Object.entries(a))if(null!=r&&!1!==r)if(e.startsWith("on"))if(He(r,"function")){var c=De.funcRegister(r);l+=" "+e+'="'+De.funcGetDispatchStr(c,"event")+'"'}else He(r,"string")&&(l+=" "+e+'="'+De.escapeHTML(r)+'"');else if("style"===e&&He(r,"object")){const e=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>`${e}:${t}`).join(";");e&&(l+=` style="${De.escapeHTML(e)}"`)}else if("class"===e){const e=qe(r)?r.filter(Boolean).join(" "):String(r);e&&(l+=` class="${De.escapeHTML(e)}"`)}else if(!0===r)l+=` ${e}`;else{let o=String(r);t.state&&o.indexOf("${")>=0&&(o=De._resolveTemplate(o,t.state,!!t.compile)),l+=` ${e}="${De.escapeHTML(o)}"`}if((i.mounted||i.unmount)&&!Ve.test(a.class||"")){const e=De.uuid("uuid");l=l.replace(/class="([^"]*)"/,(t,r)=>`class="${r} ${e} ${Je}"`.trim()),l.includes("class=")||(l+=` class="${e} ${Je}"`)}if(s)return`<${o}${l} />`;let d=null!=n?De.html(n,t):"";return t.state&&He(d,"string")&&d.indexOf("${")>=0&&(d=De._resolveTemplate(d,t.state,!!t.compile)),`<${o}${l}>${d}</${o}>`},De.htmlPage=function(t){var r=(t=t||{}).title||"bitwrench",o=t.body||"",a=t.state||void 0,n=t.runtime||"shim",i=t.css||"",s=t.theme||null,l=t.head||[],c=t.favicon||"",d=t.lang||"en",b=De._fnIDCounter,_="";if(He(o,"string"))_=o;else{var u={};a&&(u.state=a),_=De.html(o,u)}for(var p=De._fnIDCounter,m="",w=b;w<p;w++){var f="bw_fn_"+w;De._fnRegistry[f]&&(m+="bw._fnRegistry['"+f+"']="+De._fnRegistry[f].toString()+";\n")}var h="";if("inline"===n){var g=null;if(De._isNode)try{var v="function"==typeof require?require("fs"):null,y="function"==typeof require?require("path"):null;if(v&&y){var x="";try{x=y.dirname("undefined"!=typeof __filename?__filename:"")}catch(e){}if(!x&&void 0!=={url:"undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href)){var k="function"==typeof require?require("url"):null;k&&k.fileURLToPath&&(x=y.dirname(k.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("bitwrench.umd.min.js",document.baseURI).href)))}if(x){var C=y.resolve(x,"../dist/bitwrench.umd.min.js");g=v.readFileSync(C,"utf8")}}}catch(e){}h=g?"<script>"+g+"<\/script>":"<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>"}else"cdn"===n?h='<script src="https://cdn.jsdelivr.net/npm/bitwrench@2/dist/bitwrench.umd.min.js"><\/script>':"shim"===n&&(h="<script>"+De._FUNC_REGISTRY_SHIM+"<\/script>");var S="";if(s){var j=He(s,"string")?L[s.toLowerCase()]||null:s;if(j)S=De.makeStyles(j).css}var z="";qe(l)&&l.length>0&&(z=l.map(function(e){return De.html(e)}).join("\n"));var A="";c&&(A='<link rel="icon" href="'+c.replace(/[&<>"']/g,function(e){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]})+'">');var $=De.escapeHTML(r),E=(S?S+"\n":"")+i,N="",M=[];m&&M.push(m),"inline"!==n&&"cdn"!==n||M.push('if(typeof bw!=="undefined"){bw.loadStyles();}'),M.length>0&&(N="<script>\n"+M.join("\n")+"\n<\/script>");var I=["<!DOCTYPE html>",'<html lang="'+d+'">',"<head>",'<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">'];return I.push("<title>"+$+"</title>"),A&&I.push(A),h&&I.push(h),z&&I.push(z),E&&I.push("<style>"+E+"</style>"),I.push("</head>"),I.push("<body>"),I.push(_),N&&I.push(N),I.push("</body>"),I.push("</html>"),I.join("\n")},De.createDOM=function(e,t={}){if(!De._isBrowser)throw new Error("bw.createDOM requires a DOM environment (document/window). Use bw.html() instead.");if(null==e)return document.createTextNode("");if(e&&e.__bw_raw){var r=document.createDocumentFragment(),o=document.createElement("span");for(o.innerHTML=e.v;o.firstChild;)r.appendChild(o.firstChild);return r}if(!He(e,"object")||!e.t)return document.createTextNode(String(e));const{t:a,a:n={},c:i,o:s={}}=e,l=document.createElement(a);for(const[e,t]of Object.entries(n))if(null!=t&&!1!==t)if("style"===e&&He(t,"object"))Object.assign(l.style,t);else if("class"===e){const e=qe(t)?t.filter(Boolean).join(" "):String(t);e&&(l.className=e)}else if(e.startsWith("on")&&He(t,"function")){const r=e.slice(2).toLowerCase();l.addEventListener(r,t)}else"value"===e&&"input"===a?l.value=t:!0===t?l.setAttribute(e,""):l.setAttribute(e,String(t));if(null!=i)if(qe(i))i.forEach(e=>{if(null!=e){var r=De.createDOM(e,t);l.appendChild(r);var o=e&&e.a?e.a.id||De.getUUID(e):null;if(o&&(l._bw_refs||(l._bw_refs={}),l._bw_refs[o]=r),r._bw_refs)for(var a in l._bw_refs||(l._bw_refs={}),r._bw_refs)Ue.call(r._bw_refs,a)&&(l._bw_refs[a]=r._bw_refs[a])}});else if(He(i,"object")&&i.__bw_raw)l.innerHTML=i.v;else if(He(i,"object")&&i.t){var c=De.createDOM(i,t);l.appendChild(c);var d=i.a?i.a.id||De.getUUID(i):null;if(d&&(l._bw_refs||(l._bw_refs={}),l._bw_refs[d]=c),c._bw_refs)for(var b in l._bw_refs||(l._bw_refs={}),c._bw_refs)Ue.call(c._bw_refs,b)&&(l._bw_refs[b]=c._bw_refs[b])}else l.textContent=String(i);if(n.id&&De._registerNode(l,null),l.className){var _=l.className.match(Ve);_&&(De._nodeMap[_[0]]=l)}if(s.mounted||s.unmount||s.render||s.state){var u=De.getUUID(l)||De.uuid("uuid");l.classList.add(u),l.classList.add(Je),De._registerNode(l,u),s.state&&(l._bw_state=s.state),s.render&&(l._bw_render=s.render);var p=s.mounted||(s.render?function(e){s.render(e,e._bw_state||{})}:null);p&&(document.body.contains(l)?p(l,l._bw_state||{}):requestAnimationFrame(()=>{document.body.contains(l)&&p(l,l._bw_state||{})})),s.unmount&&De._unmountCallbacks.set(u,()=>{s.unmount(l,l._bw_state||{})})}if(s.handle||s.slots){if(l.bw||(l.bw={}),s.handle)for(var m in s.handle)Ue.call(s.handle,m)&&(l.bw[m]=s.handle[m].bind(null,l));if(s.slots)for(var w in s.slots)Ue.call(s.slots,w)&&function(e,t){var r=e.charAt(0).toUpperCase()+e.slice(1);l.bw["set"+r]=function(e){var r=l.querySelector(t);r&&(null!=e&&"object"==typeof e&&e.t?(r.innerHTML="",r.appendChild(De.createDOM(e))):r.textContent=null!=e?String(e):"")},l.bw["get"+r]=function(){var e=l.querySelector(t);return e?e.textContent:""}}(w,s.slots[w])}return l},De.DOM=function(e,t,r={}){if(!De._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");const o=De._el(e);if(!o)return Xe("bw.DOM: Target element not found:",e),null;const a=o._bw_state,n=o._bw_render,i=De.getUUID(o),s=o._bw_subs;return delete o._bw_subs,De.cleanup(o),void 0!==a&&(o._bw_state=a),n&&(o._bw_render=n),i&&De._registerNode(o,i),s&&(o._bw_subs=s),o.innerHTML="",null!=t&&(qe(t)?t.forEach(e=>{null!=e&&o.appendChild(De.createDOM(e,r))}):o.appendChild(De.createDOM(t,r))),o},De.compileProps=function(){throw new Error("bw.compileProps() removed in v2.0.19. Use o.handle/o.slots instead.")},De.renderComponent=function(){throw new Error("bw.renderComponent() removed in v2.0.19. Use bw.mount() with o.handle/o.slots instead.")},De.mount=function(e,t,r){var o=He(e,"string")?De.$(e)[0]:e;if(!o)return Ye("bw.mount: target not found"),null;De.cleanup(o),o.innerHTML="";var a=De.createDOM(t,r||{});return o.appendChild(a),a},De.cleanup=function(e){if(!De._isBrowser||!e)return;e.querySelectorAll('[class*="bw_uuid_"]').forEach(function(e){var t=e.className&&e.className.match(Ve);t&&delete De._nodeMap[t[0]]});e.querySelectorAll("."+Je).forEach(e=>{var t=De.getUUID(e);if(t){const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t)}e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs});var t=De.getUUID(e);if(t){delete De._nodeMap[t];const r=De._unmountCallbacks.get(t);r&&(r(),De._unmountCallbacks.delete(t)),De._deregisterNode(e,t),e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs),delete e._bw_state,delete e._bw_render,delete e._bw_refs}else e._bw_subs&&(e._bw_subs.forEach(function(e){e()}),delete e._bw_subs)},De.update=function(e){var t=De._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),De.emit(t,"statechange",t._bw_state)),t||null},De.patch=function(e,t,r){var o=De._el(e);return o?(r?o.setAttribute(r,String(t)):qe(t)?(o.innerHTML="",t.forEach(function(e){He(e,"string")||He(e,"number")?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(De.createDOM(e))})):He(t,"object")&&t.t?(o.innerHTML="",o.appendChild(De.createDOM(t))):o.textContent=String(t),o):null},De.patchAll=function(e){var t={};for(var r in e)Ue.call(e,r)&&(t[r]=De.patch(r,e[r]));return t},De.emit=function(e,t,r){var o=De._el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},De.on=function(e,t,r){var o=De._el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},De.pub=function(e,t){var r=De._topics[e];if(!r||0===r.length)return 0;for(var o=r.slice(),a=0,n=0;n<o.length;n++)try{o[n].handler(t),a++}catch(t){Ye('bw.pub: subscriber error on topic "'+e+'":',t)}return a},De.sub=function(e,t,r){var o=++De._subIdCounter;De._topics[e]||(De._topics[e]=[]),De._topics[e].push({handler:t,id:o});var a=function(){var t=De._topics[e];t&&(De._topics[e]=t.filter(function(e){return e.id!==o}),0===De._topics[e].length&&delete De._topics[e])};return r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(a),De.getUUID(r)||r.classList.add(De.uuid("uuid")),r.classList.contains(Je)||r.classList.add(Je)),a},De.unsub=function(e,t){var r=De._topics[e];if(!r)return 0;var o=r.length;De._topics[e]=r.filter(function(e){return e.handler!==t});var a=o-De._topics[e].length;return 0===De._topics[e].length&&delete De._topics[e],a},De._fnRegistry={},De._fnIDCounter=0,De.funcRegister=function(e,t){if(!He(e,"function"))return"";var r=He(t,"string")&&t.length>0?t:"bw_fn_"+De._fnIDCounter++;return De._fnRegistry[r]=e,r},De.funcGetById=function(e,t){return(e=String(e))in De._fnRegistry?De._fnRegistry[e]:He(t,"function")?t:function(){Ye('bw.funcGetById: unregistered fn "'+e+'"')}},De.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},De.funcUnregister=function(e){return e in De._fnRegistry&&(delete De._fnRegistry[e],!0)},De.funcGetRegistry=function(){var e={};for(var t in De._fnRegistry)Ue.call(De._fnRegistry,t)&&(e[t]=De._fnRegistry[t]);return e},De._FUNC_REGISTRY_SHIM='(function(){var bw=window.bw||(window.bw={});if(!bw._fnRegistry)bw._fnRegistry={};bw.funcGetById=function(n){return bw._fnRegistry[n]||function(){console.warn("bw: unregistered fn "+n)};};bw.funcRegister=function(fn,name){var id=name||("bw_fn_"+(bw._fnIDCounter=(bw._fnIDCounter||0)+1));bw._fnRegistry[id]=fn;return id;};window.bw=bw;})();',De._parseBindings=function(e){for(var t,r=[],o=/\$\{([^}]+)\}/g;null!==(t=o.exec(e));)r.push({start:t.index,end:t.index+t[0].length,expr:t[1].trim()});return r},De._evaluatePath=function(e,t){for(var r=t.split("."),o=e,a=0;a<r.length;a++){if(null==o)return De.debug&&Ye('bw.debug: _evaluatePath — null at key "'+r[a]+'" in path "'+t+'"'),"";o=o[r[a]]}return null==o?"":o},De._compiledExprs={},De._resolveTemplate=function(e,t,r){if(!He(e,"string")||e.indexOf("${")<0)return e;var o=De._parseBindings(e);if(0===o.length)return e;for(var a="",n=0,i=0;i<o.length;i++){var s,l=o[i];if(a+=e.slice(n,l.start),r){if(!De._compiledExprs[l.expr])try{De._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){De._compiledExprs[l.expr]=function(){return""}}try{s=De._compiledExprs[l.expr](t)}catch(e){De.debug&&Ye('bw.debug: _resolveTemplate — Tier 2 eval failed for "${'+l.expr+'}":',e.message),s=""}}else s=De._evaluatePath(t,l.expr);a+=null==s?"":String(s),n=l.end}return a+=e.slice(n)},De._extractDeps=void 0,De._dirtyComponents=void 0,De._flushScheduled=void 0,De._scheduleFlush=void 0,De._doFlush=void 0,De._ComponentHandle=void 0,De.flush=function(){},De.when=function(){throw new Error("bw.when() removed in v2.0.19. Use conditional logic in o.render instead.")},De.each=function(){throw new Error("bw.each() removed in v2.0.19. Use array mapping in o.render instead.")},De.component=function(){throw new Error("bw.component() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.message=function(e,t,r){var o=De._el(e);return o||(o=De.$("."+e)[0]),o&&o.bw&&"function"==typeof o.bw[t]?(o.bw[t](r),!0):(Ye('bw.message: no handle method "'+t+'" on '+e),!1)},De._clientFunctions={},De._allowExec=!1,De.parseJSONFlex=function(e){if("r"!==(e=(e||"").trim()).charAt(0))return JSON.parse(e);for(var t=[],r=0,o=(e=e.slice(1)).length;r<o;){var a=e[r];if("'"===a){for(t.push('"'),r++;r<o;){var n=e[r];if("\\"===n&&r+1<o){var i=e[r+1];"'"===i?t.push("'"):(t.push("\\"),t.push(i)),r+=2}else if('"'===n)t.push('\\"'),r++;else{if("'"===n)break;t.push(n),r++}}t.push('"'),r++}else if('"'===a)for(t.push(a),r++;r<o;){var s=e[r];if("\\"===s&&r+1<o)t.push(s),t.push(e[r+1]),r+=2;else if(t.push(s),r++,'"'===s)break}else if(","===a){for(var l=r+1;l<o&&(" "===e[l]||"\t"===e[l]||"\n"===e[l]||"\r"===e[l]);)l++;l<o&&("}"===e[l]||"]"===e[l])||t.push(a),r++}else t.push(a),r++}return JSON.parse(t.join(""))},De.apply=function(e){if(!e||!e.type)return!1;var t=e.type,r=e.target;if("replace"===t){var o=De._el(r);return!!o&&(De.DOM(o,e.node),!0)}if("patch"===t)return null!==De.patch(r,e.content,e.attr);if("append"===t){var a=De._el(r);if(!a)return!1;var n=De.createDOM(e.node);return a.appendChild(n),!0}if("remove"===t){var i=De._el(r);return!!i&&(He(De.cleanup,"function")&&De.cleanup(i),i.remove(),!0)}if("batch"===t){if(!qe(e.ops))return!1;var s=!0;return e.ops.forEach(function(e){De.apply(e)||(s=!1)}),s}if("message"===t)return De.message(e.target,e.action,e.data);if("register"===t){if(!e.name||!e.body)return!1;try{return De._clientFunctions[e.name]=new Function("return "+e.body)(),!0}catch(t){return Xe("[bw] register error:",e.name,t),!1}}else if("call"===t){if(!e.name)return!1;var l=De._clientFunctions[e.name];if(!He(l,"function"))return!1;try{var c=qe(e.args)?e.args:[];return l.apply(null,c),!0}catch(t){return Xe("[bw] call error:",e.name,t),!1}}else if("exec"===t){if(!De._allowExec)return Ye("[bw] exec rejected: allowExec is not enabled"),!1;if(!e.code)return!1;try{return new Function(e.code)(),!0}catch(e){return Xe("[bw] exec error:",e),!1}}return!1},De.inspect=function(e){var t=He(e,"string")?De.$(e)[0]:e;return t?(console.group("Element: "+(De.getUUID(t)||t.id||t.tagName)),Ge("State:",t._bw_state||"(none)"),Ge("Handle:",t.bw?Pe(t.bw):"(none)"),Ge("Classes:",t.className),Ge("Refs:",t._bw_refs||"(none)"),console.groupEnd(),t):(Ye("bw.inspect: element not found"),null)},De.compile=function(){throw new Error("bw.compile() removed in v2.0.19. Use o.handle/o.slots on TACO options instead.")},De.css=function(e,t={}){const{minify:r=!1,pretty:o=!r}=t;if(He(e,"string"))return e;let a="";const n=o?" ":"",i=o?"\n":"",s=o?" ":"";return qe(e)?a=e.map(e=>De.css(e,t)).join(i):He(e,"object")&&Object.entries(e).forEach(([e,r])=>{if(He(r,"object")){if("@"===e.charAt(0)){const o=De.css(r,t);return void(o&&(a+=`${e}${s}{${i}${o}${i}}${i}`))}const o=Object.entries(r).filter(([,e])=>null!=e).map(([e,t])=>{const r=e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase());return`${n}${r}:${s}${t};`}).join(i);o&&(a+=`${e}${s}{${i}${o}${i}}${i}`)}}),a.trim()},De.injectCSS=function(e,t={}){if(!De._isBrowser)return Ye("bw.injectCSS requires a DOM environment"),null;const{id:r="bw_styles",append:o=!0}=t;let a=document.getElementById(r);a||(a=document.createElement("style"),a.id=r,a.type="text/css",document.head.appendChild(a));const n=He(e,"string")?e:De.css(e,t);return o&&a.textContent?a.textContent+="\n"+n:a.textContent=n,a},De.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];He(r,"object")&&Object.assign(e,r)}return e},De.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Pe(t).forEach(function(a){var n={};"base"===a?(n[e]=t[a],o.push(De.css(n))):r[a]&&(n[e]=t[a],o.push("@media (min-width: "+r[a]+") {\n"+De.css(n)+"\n}"))}),o.join("\n")},De.mapScale=T,De.clip=R,De._isBrowser&&(De.$=function(e){return e?qe(e)?e:e.nodeType?[e]:void 0===e.length||He(e,"string")?He(e,"string")?Array.from(document.querySelectorAll(e)):[]:Array.from(e):[]},De.$.one=function(e){return De.$(e)[0]||null}),De.makeStyles=function(e){var t=Object.assign({},j,e||{});e&&!e.tertiary&&(t.tertiary=t.primary);var r=h(t),o=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,a=e&&e.typeRatio||"normal",n="string"==typeof a?x[a]||x.normal:a,i=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?v[t]||v.normal:t,radius:"string"==typeof r?y[r]||y.md:r,fontSize:o,typeScale:k(16,n),elevation:"string"==typeof i?C[i]||C.md:i,motion:"string"==typeof s?S[s]||S.standard:s}}(t),a=A("",r,o),n=De.css(a),i=h(f(t)),s=A("",i,o);return s.body={color:i.dark.base,"background-color":i.surface||i.light.base},{css:n,alternateCss:De.css(s),rules:a,alternateRules:s,palette:r,alternatePalette:i,isLightPrimary:w(t)}},De.applyStyles=function(e,t){if(!De._isBrowser)return null;if(!e||!e.rules)return Ye("bw.applyStyles: invalid styles object"),null;var r=We(t),o=e.rules;t&&(o=M(o,t));var a=e.alternateRules;a&&(a=M(a,t?t+".bw_theme_alt":".bw_theme_alt"));var n=De.css(o);return a&&(n+="\n"+De.css(a)),De.injectCSS(n,{id:r,append:!1})},De.loadStyles=function(e,t){if(De._isBrowser&&!document.getElementById("bw_structural")){var r=De.css(N());De.injectCSS(r,{id:"bw_structural",append:!1})}var o=De.makeStyles(e);return De.applyStyles(o,t),o},De.scopeRulesUnder=M,De.loadReset=function(){if(!De._isBrowser)return null;var e,t=document.getElementById("bw_style_reset");return t||De.injectCSS(De.css((e={},Object.assign(e,$.base),e["@media (prefers-reduced-motion: reduce)"]={"*, *::before, *::after":{"animation-duration":"0.01ms !important","animation-iteration-count":"1 !important","transition-duration":"0.01ms !important","scroll-behavior":"auto !important"}},e)),{id:"bw_style_reset",append:!1})},De.toggleStyles=function(e){if(!De._isBrowser)return"primary";var t;e?t=De.$(e)[0]:t=document.documentElement;return t?t.classList.contains("bw_theme_alt")?(t.classList.remove("bw_theme_alt"),"primary"):(t.classList.add("bw_theme_alt"),"alternate"):"primary"},De.clearStyles=function(e){if(De._isBrowser){var t=We(e),r=document.getElementById(t);if(r&&r.remove(),e&&"reset"!==e&&"global"!==e){var o=De.$(e);o[0]&&o[0].classList.remove("bw_theme_alt")}else e&&"global"!==e||document.documentElement.classList.remove("bw_theme_alt")}},De.hexToHsl=s,De.hslToHex=l,De.adjustLightness=c,De.mixColor=d,De.relativeLuminance=b,De.textOnColor=_,De.deriveShades=p,De.derivePalette=h,De.harmonize=u,De.deriveAlternateSeed=m,De.deriveAlternateConfig=f,De.isLightPalette=w,De.SPACING_PRESETS=v,De.RADIUS_PRESETS=y,De.TYPE_RATIO_PRESETS=x,De.ELEVATION_PRESETS=C,De.MOTION_PRESETS=S,De.generateTypeScale=k,De.DEFAULT_PALETTE_CONFIG=j,De.THEME_PRESETS=L,De.choice=function(e,t,r){const o=e in t?t[e]:r;return"function"===O(o)?o(e):o},De.arrayUniq=B,De.arrayBinA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:B(e.filter(e=>-1!==t.indexOf(e)))},De.arrayBNotInA=function(e,t){return"array"!==O(e)||"array"!==O(t)?[]:B(t.filter(t=>e.indexOf(t)<0))},De.colorInterp=function(e,t,r,o,n){return function(e,t,r,o,a,n){let i=Array.isArray(o)?o:["#000","#fff"];if(i=0===i.length?["#000","#fff"]:i,1===i.length)return i[0];i=i.map(e=>n(e));const s=T(e,t,r,0,i.length-1,{clip:!0,expScale:a}),l=R(Math.floor(s),0,i.length-2),c=s-l,d=e=>T(c,0,1,i[l][e],i[l+1][e],{clip:!0});return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,o,n,a)},De.colorHslToRgb=i,De.colorRgbToHsl=n,De.colorParse=a,De.setCookie=function(e,t,r,o={}){if(!De._isBrowser)return;const a=new Date;a.setTime(a.getTime()+24*r*60*60*1e3);let n=`${e}=${t}; expires=${a.toUTCString()}`;o.path&&(n+=`; path=${o.path}`),o.domain&&(n+=`; domain=${o.domain}`),o.secure&&(n+="; secure"),o.sameSite&&(n+=`; samesite=${o.sameSite}`),document.cookie=n},De.getCookie=function(e,t){if(!De._isBrowser)return t;const r=e+"=",o=document.cookie.split(";");for(let e=0;e<o.length;e++){let t=o[e];for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return t.substring(r.length,t.length)}return t},De.getURLParam=function(e,t){if(!De._isBrowser||"object"!=typeof window)return t;try{const r=new URLSearchParams(window.location.search);if(!e){const e={};for(const[t,o]of r)e[t]=o||!0;return e}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},De.loremIpsum=function(e,t,r=!0){const o="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ";"number"!=typeof e&&(e=Math.floor(125*Math.random())+25),void 0===t&&(t=Math.floor(446*Math.random())),t%=446;let a=0;for(;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,a++,a>=446){t=0,a=0;break}let n=o.substring(t)+o.substring(0,t),i="",s=e+a;for(;s>0;)i+=s<n.length?n.substring(0,s):n,s-=n.length;if(i.length>e&&(i=i.substring(0,e))," "===i[i.length-1]&&(i=i.substring(0,i.length-1)+"."),r){let e=i[0].toUpperCase();e=/[A-Z]/.test(e)?e:"L",i=e+i.substring(1)}return i},De.multiArray=function(e,t){t="number"==typeof t?[t]:t;const r=o=>{if(o>=t.length)return"function"===O(e)?e():e;const a=[];for(let e=0;e<t[o];e++)a[e]=r(o+1);return a};return r(0)},De.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);const r=String(e).toLowerCase(),o=String(t).toLowerCase();if(r===o)return e>t?1:0;if(!/\d/.test(r)||!/\d/.test(o))return r>o?1:-1;const a=r.match(/(\d+|\D+)/g)||[],n=o.match(/(\d+|\D+)/g)||[],i=Math.min(a.length,n.length);for(let e=0;e<i;e++){const t=a[e],r=n[e];if(t!==r){if(/^\d+$/.test(t)&&/^\d+$/.test(r)){let e=t,o=r;return"0"===t[0]&&(e="0."+t),"0"===r[0]&&(o="0."+r),parseFloat(e)-parseFloat(o)}return t>r?1:-1}}return a.length-n.length},De.setIntervalX=function(e,t,r){let o=0;const a=setInterval(function(){e(o),++o>=r&&clearInterval(a)},t);return a},De.repeatUntil=function(e,t,r,o=250,a=10,n){if("function"!=typeof e)return"err";let i=0;const s=setInterval(function(){const o=e();i++,o?(clearInterval(s),t&&t(o),n&&n(!0,i)):i>=a?(clearInterval(s),r&&r(),n&&n(!1,i)):r&&r()},o);return s},function(e){e.saveClientFile=function(t,r){if(e.isNodeJS())e._getFs().then(function(e){e?e.writeFile(t,r,function(e){e&&console.error("Error saving file:",e)}):console.error("bw.saveClientFile: fs module not available")});else{var o=new Blob([r],{type:"application/octet-stream"}),a=window.URL.createObjectURL(o),n=e.createDOM({t:"a",a:{href:a,download:t,style:"display: none"}});document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(a),document.body.removeChild(n)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,o){var a={parser:"raw"};o&&o.parser&&(a.parser=o.parser);var n="JSON"===a.parser?JSON.parse:function(e){return e};if(e.isNodeJS())e._getFs().then(function(e){e?e.readFile(t,"utf8",function(e,t){if(e)r(null,e);else try{r(n(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){if(4===i.readyState)if(i.status>=200&&i.status<300)try{r(n(i.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+i.status+": "+t))},i.send(null)}return"BW_OK"},e.loadClientJSON=function(t,r){return e.loadClientFile(t,r,{parser:"JSON"})},e.loadLocalFile=function(t,r){var o={parser:"raw",accept:""};r&&(r.parser&&(o.parser=r.parser),r.accept&&(o.accept=r.accept));var a="JSON"===o.parser?JSON.parse:function(e){return e};if(e.isNodeJS())t(null,"",new Error("bw.loadLocalFile is browser-only. Use bw.loadClientFile() in Node."));else{var n=e.createDOM({t:"input",a:{type:"file",accept:o.accept,style:"display: none"}});n.addEventListener("change",function(){var e=n.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(a(r.target.result),e.name,null)}catch(r){t(null,e.name,r)}},r.onerror=function(){t(null,e.name,r.error)},r.readAsText(e),n.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(n),n.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(De),De.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise((t,r)=>{const o=De.createDOM({t:"textarea",a:{value:e,style:{position:"fixed",top:"-999px",left:"-999px",width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}}});document.body.appendChild(o),o.focus(),o.select();try{const e=document.execCommand("copy");document.body.removeChild(o),e?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},De.makeTable=function(e){const{data:t=[],columns:r,className:o="",striped:a=!1,hover:n=!1,sortable:i=!0,onSort:s,sortColumn:l,sortDirection:c="asc",selectable:d=!1,onRowClick:b,pageSize:_,currentPage:u=1,onPageChange:p}=e;let m="bw_table";a&&(m+=" bw_table_striped"),(n||d)&&(m+=" bw_table_hover"),d&&(m+=" bw_table_selectable"),o&&(m+=" "+o),m=m.trim();const w=r||(t.length>0?Pe(t[0]).map(e=>({key:e,label:e})):[]);let f=l||null,h=c,g=[...t];f&&g.sort((e,t)=>{const r=e[f],o=t[f];if(He(r,"number")&&He(o,"number"))return"asc"===h?r-o:o-r;const a=String(r||"").toLowerCase(),n=String(o||"").toLowerCase();return"asc"===h?a.localeCompare(n):n.localeCompare(a)});const v=g.length,y=_?Math.max(1,Math.ceil(v/_)):1,x=Math.max(1,Math.min(u,y));if(_){const e=(x-1)*_;g=g.slice(e,e+_)}const k={t:"table",a:{class:m},c:[{t:"thead",c:{t:"tr",c:w.map(e=>({t:"th",a:i?{style:{cursor:"pointer",userSelect:"none"},onclick:()=>{return t=e.key,void(i&&(f===t?h="asc"===h?"desc":"asc":(f=t,h="asc"),s&&s(t,h)));var t}}:{},c:[e.label,i&&f===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===h?"▲":"▼"}].filter(Boolean)}))}},{t:"tbody",c:g.map((e,t)=>{const r=_?(x-1)*_+t:t,o={};return(d||b)&&(o.style="cursor:pointer;",o.onclick=function(t){d&&t.currentTarget.classList.toggle("bw_table_row_selected");b&&b(e,r,t)}),{t:"tr",a:o,c:w.map(t=>({t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}))}})}]};if(!_)return k;const C=[];return C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x<=1?"disabled":void 0,onclick:x>1&&p?function(){p(x-1)}:void 0},c:"Prev"}),C.push({t:"span",a:{style:"margin:0 0.5rem;font-size:0.875rem;"},c:"Page "+x+" of "+y}),C.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:x>=y?"disabled":void 0,onclick:x<y&&p?function(){p(x+1)}:void 0},c:"Next"}),{t:"div",a:{class:"bw_table_paginated"},c:[k,{t:"div",a:{class:"bw_table_pagination",style:"display:flex;align-items:center;justify-content:flex-end;padding:0.5rem 0;gap:0.25rem;"},c:C}]}},De.makeTableFromArray=function(e){const{data:t=[],headerRow:r=!0,columns:o,...a}=e;if(!qe(t)||0===t.length)return De.makeTable({data:[],columns:o||[],...a});let n,i;if(r&&t.length>0)n=t[0].map(function(e){return String(e)}),i=t.slice(1);else{const e=t[0].length;n=[];for(let t=0;t<e;t++)n.push("col"+t);i=t}const s=i.map(function(e){const t={};return n.forEach(function(r,o){t[r]=void 0!==e[o]?e[o]:""}),t}),l=o||n.map(function(e){return{key:e,label:e}});return De.makeTable({data:s,columns:l,...a})},De.makeBarChart=function(e){const{data:t=[],labelKey:r="label",valueKey:o="value",title:a,color:n="#006666",height:i="200px",formatValue:s,showValues:l=!0,showLabels:c=!0,className:d=""}=e;if(!qe(t)||0===t.length)return{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:""};const b=t.map(function(e){return Number(e[o])||0}),_=Math.max.apply(null,b),u=t.map(function(e,t){const o=b[t],a=_>0?o/_*100:0,i=s?s(o):String(o),d=[];return l&&d.push({t:"div",a:{class:"bw_bar_value"},c:i}),d.push({t:"div",a:{class:"bw_bar",style:"height:"+a+"%;background:"+n+";"}}),c&&d.push({t:"div",a:{class:"bw_bar_label"},c:String(e[r]||"")}),{t:"div",a:{class:"bw_bar_group"},c:d}}),p=[];return a&&p.push({t:"h3",a:{class:"bw_bar_chart_title"},c:a}),p.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+i+";"},c:u}),{t:"div",a:{class:("bw_bar_chart_container "+d).trim()},c:p}},De.makeDataTable=function(e){const{title:t,data:r,columns:o,className:a="",striped:n=!0,hover:i=!0,responsive:s=!0,...l}=e,c=De.makeTable({data:r,columns:o,className:a,striped:n,hover:i,...l}),d=[];return t&&d.push({t:"h5",a:{class:"mb-3"},c:t}),s?d.push({t:"div",a:{class:"table-responsive"},c:c}):d.push(c),{t:"div",a:{class:"table-container"},c:d}},De._componentRegistry=new Map,De.render=function(e,t,r){const o=He(e,"string")?document.querySelector(e):e;if(!o)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};const a=r.o?.id||De.uuid("uuid");let n;try{n=De.createDOM(r)}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=render_failed:${e.message}`}}n.classList.add(a),n.classList.add(Je);try{switch(t){case"replace":o.parentNode.replaceChild(n,o);break;case"prepend":o.insertBefore(n,o.firstChild);break;case"append":o.appendChild(n);break;case"before":o.parentNode.insertBefore(n,o);break;case"after":o.parentNode.insertBefore(n,o.nextSibling);break;default:throw new Error(`Invalid position: ${t}`)}}catch(e){return{object_type:"error",component_id:a,object_handle_in_dom:null,status_code:`error=insertion_failed:${e.message}`}}const i={object_type:r.t||"element",component_id:a,object_handle_in_dom:n,status_code:"success",_taco:{...r},_state:{...r.o?.state||{}},_mounted:!0,get element(){return this.object_handle_in_dom},getState(){return{...this._state}},setState(e){return this._state={...this._state,...e},this._taco.o?.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update(){if(!this._mounted||!this.element)return this;const e=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);const t=De.createDOM(this._taco);return t.classList.add(a),t.classList.add(Je),e.replaceChild(t,this.element),this.object_handle_in_dom=t,this._taco.o?.onUpdate&&this._taco.o.onUpdate(t,this._state),this},getProp(e){return this._taco.a?.[e]},setProp(e,t){return this._taco.a||(this._taco.a={}),this._taco.a[e]=t,this.element&&(null==t?this.element.removeAttribute(e):!0===t?this.element.setAttribute(e,""):this.element.setAttribute(e,String(t))),this},getContent(){return this._taco.c},setContent(e){return this._taco.c=e,this.element&&(He(e,"string")?this.element.textContent=e:this.update()),this},addClass(e){return this.element&&this.element.classList.add(e),this},removeClass(e){return this.element&&this.element.classList.remove(e),this},toggleClass(e){return this.element&&this.element.classList.toggle(e),this},hasClass(e){return!!this.element&&this.element.classList.contains(e)},show(){return this.element&&(this.element.style.display=""),this},hide(){return this.element&&(this.element.style.display="none"),this},on(e,t){return this.element&&this.element.addEventListener(e,t),this},off(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy(){return this._mounted?(this._taco.o?.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),De._componentRegistry.delete(a),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return De._componentRegistry.set(a,i),r.o?.mounted&&r.o.mounted(n,i),i},De.getComponent=function(e){return De._componentRegistry.get(e)||null},De.getAllComponents=function(){return new Map(De._componentRegistry)},function(e){var t=null;e.router=function(r){if(!r||!r.routes)throw new Error("bw.router: config.routes is required");if(!e._isBrowser)throw new Error("bw.router: requires a browser environment");var o=r.mode||"hash",a=r.base||"/";a.length>1&&"/"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));for(var n=r.target||null,i=[],s=Object.keys(r.routes),l=0;l<s.length;l++)i.push({pattern:s[l],handler:r.routes[s[l]]});var c="/",d=!1;function b(){if("hash"===o)return window.location.hash.replace(/^#/,"")||"/";var e=window.location.pathname;return"/"!==a&&0===e.indexOf(a)&&(e=e.substring(a.length)||"/"),e+(window.location.search||"")}function _(t,o){if(!d){var a=c,s=D(t);if(r.before){var l=r.before(s,a);if(!1===l)return;"string"==typeof l&&(s=D(l),t=l)}c=s;var b=q(i,t);if(b){var _=b.handler(b.params);null!=_&&n&&e.DOM(n,_)}var u=U(t);e.pub("bw:route",{path:s,params:b?b.params:{},query:u,from:a}),r.after&&r.after(s,a)}}function u(){d||_(b())}function p(){d||_(b())}"hash"===o?window.addEventListener("hashchange",u):window.addEventListener("popstate",p),_(b());var m={navigate:function(e,t){if(!d)if(t=t||{},"hash"===o){if(t.replace){var r=window.location;r.replace(r.pathname+r.search+"#"+e)}else window.location.hash=e;D(window.location.hash.replace(/^#/,"")||"/")===D(e)&&_(e)}else{var n=("/"===a?"":a)+e;t.replace?window.history.replaceState(null,"",n):window.history.pushState(null,"",n),_(e)}},current:function(){var e=b(),t=q(i,e);return{path:c,params:t?t.params:{},query:U(e)}},destroy:function(){d=!0,"hash"===o?window.removeEventListener("hashchange",u):window.removeEventListener("popstate",p),t===m&&(t=null)}};return t=m,m},e.navigate=function(e,r){t?t.navigate(e,r):"undefined"!=typeof console&&console.warn&&console.warn("bw.navigate: no active router")},e.link=function(r,o,a){var n={};if(a)for(var i=Object.keys(a),s=0;s<i.length;s++)n[i[s]]=a[i[s]];return n.href=t?"#"+r:r,n.onclick=function(t){t.preventDefault(),e.navigate(r)},{t:"a",a:n,c:o}},e._router={matchRoute:q,normalizePath:D,parseQuery:U,getActiveRouter:function(){return t},resetActiveRouter:function(){t=null}}}(De),Object.entries(Be).forEach(([e,t])=>{e.startsWith("make")&&(De[e]=t)}),De.make=Re,De.BCCL=Te,De.variantClass=P,Object.entries(Be).forEach(([e,t])=>{if(e.startsWith("make")){const r="create"+e.substring(4);De[r]=function(e){return De.createDOM(t(e))}}}),De._isBrowser&&"undefined"!=typeof window&&(window.bw=De),De});
|
|
100
100
|
//# sourceMappingURL=bitwrench.umd.min.js.map
|