bitwrench 2.0.16 → 2.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +127 -38
  2. package/dist/bitwrench-bccl.cjs.js +13 -9
  3. package/dist/bitwrench-bccl.cjs.min.js +2 -2
  4. package/dist/bitwrench-bccl.esm.js +13 -9
  5. package/dist/bitwrench-bccl.esm.min.js +2 -2
  6. package/dist/bitwrench-bccl.umd.js +13 -9
  7. package/dist/bitwrench-bccl.umd.min.js +2 -2
  8. package/dist/bitwrench-code-edit.cjs.js +1 -1
  9. package/dist/bitwrench-code-edit.cjs.min.js +1 -1
  10. package/dist/bitwrench-code-edit.es5.js +1 -1
  11. package/dist/bitwrench-code-edit.es5.min.js +1 -1
  12. package/dist/bitwrench-code-edit.esm.js +1 -1
  13. package/dist/bitwrench-code-edit.esm.min.js +1 -1
  14. package/dist/bitwrench-code-edit.umd.js +1 -1
  15. package/dist/bitwrench-code-edit.umd.min.js +1 -1
  16. package/dist/bitwrench-lean.cjs.js +1438 -920
  17. package/dist/bitwrench-lean.cjs.min.js +20 -20
  18. package/dist/bitwrench-lean.es5.js +1518 -1105
  19. package/dist/bitwrench-lean.es5.min.js +18 -18
  20. package/dist/bitwrench-lean.esm.js +1437 -920
  21. package/dist/bitwrench-lean.esm.min.js +20 -20
  22. package/dist/bitwrench-lean.umd.js +1438 -920
  23. package/dist/bitwrench-lean.umd.min.js +20 -20
  24. package/dist/bitwrench-util-css.cjs.js +236 -0
  25. package/dist/bitwrench-util-css.cjs.min.js +22 -0
  26. package/dist/bitwrench-util-css.es5.js +414 -0
  27. package/dist/bitwrench-util-css.es5.min.js +21 -0
  28. package/dist/bitwrench-util-css.esm.js +230 -0
  29. package/dist/bitwrench-util-css.esm.min.js +21 -0
  30. package/dist/bitwrench-util-css.umd.js +242 -0
  31. package/dist/bitwrench-util-css.umd.min.js +21 -0
  32. package/dist/bitwrench.cjs.js +1450 -928
  33. package/dist/bitwrench.cjs.min.js +21 -21
  34. package/dist/bitwrench.css +456 -132
  35. package/dist/bitwrench.es5.js +1563 -1140
  36. package/dist/bitwrench.es5.min.js +19 -19
  37. package/dist/bitwrench.esm.js +1450 -929
  38. package/dist/bitwrench.esm.min.js +21 -21
  39. package/dist/bitwrench.min.css +1 -1
  40. package/dist/bitwrench.umd.js +1450 -928
  41. package/dist/bitwrench.umd.min.js +21 -21
  42. package/dist/builds.json +178 -90
  43. package/dist/bwserve.cjs.js +528 -68
  44. package/dist/bwserve.esm.js +527 -69
  45. package/dist/sri.json +44 -36
  46. package/package.json +5 -2
  47. package/readme.html +136 -49
  48. package/src/bitwrench-bccl.js +12 -8
  49. package/src/bitwrench-color-utils.js +31 -9
  50. package/src/bitwrench-esm-entry.js +11 -0
  51. package/src/bitwrench-styles.js +439 -232
  52. package/src/bitwrench-util-css.js +229 -0
  53. package/src/bitwrench.js +979 -630
  54. package/src/bwserve/attach.js +57 -0
  55. package/src/bwserve/bwclient.js +141 -0
  56. package/src/bwserve/bwshell.js +102 -0
  57. package/src/bwserve/client.js +151 -1
  58. package/src/bwserve/index.js +139 -29
  59. package/src/cli/attach.js +555 -0
  60. package/src/cli/convert.js +2 -5
  61. package/src/cli/index.js +7 -0
  62. package/src/cli/inject.js +1 -1
  63. package/src/cli/layout-default.js +47 -32
  64. package/src/cli/serve.js +6 -2
  65. package/src/generate-css.js +11 -4
  66. package/src/vendor/html2canvas.min.js +20 -0
  67. package/src/version.js +3 -3
  68. package/src/bwserve/shell.js +0 -103
@@ -1,5 +1,5 @@
1
- /*! bitwrench-lean v2.0.16 | 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";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function o(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?r(Object(n),!0).forEach(function(r){t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function n(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(t,r){if(t){if("string"==typeof t)return e(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,r):void 0}}var c={version:"2.0.16",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-12T08:05:52.043Z"};
1
+ /*! bitwrench-lean v2.0.18 | 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;function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){r(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function i(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}var d={version:"2.0.18",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-17T00:50:09.505Z"};
3
3
  /**
4
4
  * Bitwrench Color Utilities
5
5
  *
@@ -10,21 +10,7 @@
10
10
  * @module bitwrench-color-utils
11
11
  * @license BSD-2-Clause
12
12
  * @copy Manu Chatterjee @deftio
13
- */function d(e){return("0"+e.toString(16)).slice(-2)}function b(e,t,r){return Math.max(t,Math.min(r,e))}function _(e,t){void 0===t&&(t=255);var r=[0,0,0,t,"rgb"];if(Array.isArray(e)){for(var o=[0,0,0,255,"rgb"],n=0;n<e.length&&n<o.length;n++)o[n]=e[n];return o}if("#"===(e=String(e).replace(/\s/g,""))[0]){var i=e.slice(1);if(3===i.length||4===i.length)for(var a=0;a<i.length;a++)r[a]=parseInt(i[a]+i[a],16);else if(6===i.length||8===i.length)for(var s=0;s<i.length;s+=2)r[s/2]=parseInt(i.substring(s,s+2),16)}else{var l=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(l){var c=l[1].toLowerCase(),d=l[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===c)r[0]=d[0]||0,r[1]=d[1]||0,r[2]=d[2]||0,r[3]=void 0!==d[3]?255*d[3]:t,r[4]="rgb";else if("hsl"===c){return u(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}}return r}function p(e,t,r,o,n){void 0===o&&(o=255),void 0===n&&(n=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]),e/=255,t/=255,r/=255;var i,a,s=Math.max(e,t,r),l=Math.min(e,t,r),c=(s+l)/2;if(s===l)i=a=0;else{var d=s-l;switch(a=c>.5?d/(2-s-l):d/(s+l),s){case e:i=((t-r)/d+(t<r?6:0))/6;break;case t:i=((r-e)/d+2)/6;break;case r:i=((e-t)/d+4)/6}}return i*=360,a*=100,c*=100,n&&(i=Math.round(i),a=Math.round(a),c=Math.round(c),o=Math.round(o)),[i,a,c,o,"hsl"]}function u(e,t,r,o,n){void 0===o&&(o=255),void 0===n&&(n=!0),Array.isArray(e)&&(t=e[1],r=e[2],o=void 0!==e[3]?e[3]:255,e=e[0]);var i,a,s,l=e/360,c=t/100,d=r/100;if(0===c)i=a=s=255*d;else{var b=function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},_=d<.5?d*(1+c):d+c-d*c,p=2*d-_;i=255*b(p,_,l+1/3),a=255*b(p,_,l),s=255*b(p,_,l-1/3)}return n&&(i=Math.round(i),a=Math.round(a),s=Math.round(s),o=Math.round(o)),[i,a,s,o,"rgb"]}function m(e){var t=_(e),r=p(t[0],t[1],t[2],255,!1);return[r[0],r[1],r[2]]}function f(e){var t=u(e[0],e[1],e[2],255,!0);return"#"+d(t[0])+d(t[1])+d(t[2])}function h(e,t){var r=m(e);return r[2]=b(r[2]+t,0,100),f(r)}function w(e,t,r){var o=_(e),n=_(t),i=Math.round(o[0]+(n[0]-o[0])*r),a=Math.round(o[1]+(n[1]-o[1])*r),s=Math.round(o[2]+(n[2]-o[2])*r);return"#"+d(i)+d(a)+d(s)}function g(e){var t=_(e),r=[t[0]/255,t[1]/255,t[2]/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]}function v(e){return g(e)>.179?"#000":"#fff"}function y(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var o=m(e),n=m(t)[0]-o[0];return n>180&&(n-=360),n<-180&&(n+=360),f([(o[0]+n*r+360)%360,o[1],o[2]])}function x(e){var t=_(e);return{base:e,hover:h(e,-10),active:h(e,-15),light:w(e,"#ffffff",.85),darkText:h(e,-40),border:w(e,"#ffffff",.6),focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:v(e)}}function k(e){var t,r,o=m(e),n=o[0],i=o[1],a=o[2];return a>50?(t=b(100-a-10,8,40),r=b(.85*i,0,100)):(t=b(100-a+10,60,92),r=b(1.1*i,0,100)),f([n,r,t])}function j(e){var t=g(e.primary);return e.secondary&&(t=(t+g(e.secondary))/2),e.tertiary&&(t=(2*t+g(e.tertiary))/3),t>.179}function C(e){var t={};t.primary=k(e.primary),t.secondary=k(e.secondary),t.tertiary=e.tertiary?k(e.tertiary):t.primary;var r=m(e.primary),o=r[0];j(e)?(t.light=f([o,Math.min(r[1],15),15]),t.dark=f([o,5,88])):(t.light=f([o,Math.min(r[1],10),96]),t.dark=f([o,10,18]));for(var n=void 0!==e.harmonize?e.harmonize:.2,i={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},a=["success","danger","warning","info"],s=0;s<a.length;s++){var l=a[s],c=y(e[l]||i[l],e.primary,n);t[l]=k(c)}return t.harmonize=0,t}function O(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,o=m(r)[0],n=y(e.success||"#198754",r,t),i=y(e.danger||"#dc3545",r,t),a=y(e.warning||"#f0ad4e",r,t),s=y(e.info||"#17a2b8",r,t),l=e.light||f([o,8,97]),c=e.dark||f([o,10,13]),d=e.background||f([o,6,98]),b=e.surface||f([o,8,96]);return{primary:x(e.primary),secondary:x(e.secondary),tertiary:x(e.tertiary),success:x(n),danger:x(i),warning:x(a),info:x(s),light:x(l),dark:x(c),background:d,surface:b}}var A="0.25rem",S="0.5rem",z="0.75rem",M="1rem",T="1.5rem",E="2rem",I={compact:{btn:A+" "+z,card:z+" "+M,alert:S+" "+M,cell:S+" "+z,input:A+" "+z},normal:{btn:S+" "+M,card:T+" "+T,alert:z+" "+T,cell:z+" "+M,input:S+" "+z},spacious:{btn:z+" "+T,card:E+" "+E,alert:M+" "+T,cell:M+" "+T,input:z+" "+M}},P={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"}},L={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function D(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 N={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.08)",md:"0 2px 6px rgba(0,0,0,0.12)",lg:"0 4px 12px rgba(0,0,0,0.16)",xl:"0 8px 24px rgba(0,0,0,0.20)"},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)"}},B={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)"}},F={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"};function R(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t}function U(e,t,r){return Object.assign({},function(e,t){var r={},o=t.background||"#f5f5f5",n={color:t.dark.base,"background-color":o};return r[R(e,"body")]=n,e&&(r["."+e]=n),r}(e,t),function(e,t,r){var o=r.motion,n={};return n[R(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+o.fast+" "+o.easing},n[R(e,"a:hover")]={color:t.primary.hover,"text-decoration":"underline"},n}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_btn")]={padding:n.btn,"border-radius":i.btn},o[R(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},o[R(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===i.btn?"50rem":parseInt(i.btn)+2+"px"},o[R(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===i.btn?"50rem":Math.max(parseInt(i.btn)-1,0)+"px"},o}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_alert")]={padding:n.alert,"border-radius":i.alert},o}(e,0,r),function(e,t,r){var o={},n=r.spacing,i=r.radius,a=r.elevation,s=r.motion;return o[R(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":a.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},o[R(e,".bw_card:hover")]={"box-shadow":a.md},o[R(e,".bw_card_hoverable:hover")]={"box-shadow":a.lg},o[R(e,".bw_card_body")]={padding:n.card},o[R(e,".bw_card_header")]={padding:n.card.split(" ").map(function(e){return(.7*parseFloat(e)).toFixed(3).replace(/\.?0+$/,"")+"rem"}).join(" "),"background-color":t.light.light,"border-bottom":"1px solid "+t.light.border},o[R(e,".bw_card_footer")]={"background-color":t.light.light,"border-top":"1px solid "+t.light.border,color:t.secondary.base},o[R(e,".bw_card_title")]={color:t.dark.base},o[R(e,".bw_card_subtitle")]={color:t.secondary.base},o}(e,t,r),function(e,t,r){var o={},n=r.spacing,i=r.radius;return o[R(e,".bw_form_control")]={padding:n.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(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[R(e,".bw_form_control::placeholder")]={color:t.secondary.base},o[R(e,".bw_form_label")]={color:t.dark.base},o[R(e,".bw_form_text")]={color:t.secondary.base},o[R(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},o[R(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},o[R(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},o[R(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},o[R(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},o[R(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},o[R(e,".bw_form_select")]={padding:n.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(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){var r={};return r[R(e,".bw_navbar")]={"background-color":t.light.light,"border-bottom-color":t.light.border},r[R(e,".bw_navbar_brand")]={color:t.dark.base},r[R(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base},r[R(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.dark.base},r[R(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus},r[R(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},r[R(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},r[R(e,".bw_navbar_dark .bw_nav_link")]={color:"rgba(255,255,255,.65)"},r[R(e,".bw_navbar_dark .bw_nav_link:hover")]={color:"#fff"},r[R(e,".bw_navbar_dark .bw_nav_link.active")]={color:"#fff","font-weight":"600"},r[R(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[R(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},o[R(e,".bw_table > :not(caption) > * > *")]={padding:n.cell,"border-bottom-color":t.light.border},o[R(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.light.light},o[R(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":"rgba(0, 0, 0, 0.05)"},o[R(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},o[R(e,".bw_table_bordered")]={"border-color":t.light.border},o[R(e,".bw_table caption")]={color:t.secondary.base},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},r[R(e,".bw_nav_link")]={color:t.secondary.base},r[R(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.dark.base,"border-bottom-color":t.light.border},r[R(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"border-bottom":"2px solid "+t.primary.base},r}(e,t),function(e,t,r){var o={},n=r.spacing;return o[R(e,".bw_list_group_item")]={padding:n.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},o[R(e,"a.bw_list_group_item:hover")]={"background-color":t.light.light,color:t.dark.hover},o[R(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},o[R(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border},r[R(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.light.light,"border-color":t.light.border},r[R(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},r[R(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},r[R(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},r}(e,t),function(e,t){var r={};return r[R(e,".bw_progress")]={"background-color":t.light.light,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},r[R(e,".bw_progress_bar")]={color:"#fff","background-color":t.primary.base,"box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},r[R(e,".bw_breadcrumb_item.active")]={color:t.secondary.base},r[R(e,".bw_breadcrumb_item a:hover")]={color:t.primary.hover,"text-decoration":"underline"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[R(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(e,".bw_section_subtitle")]={color:t.secondary.base},r[R(e,".bw_feature_description")]={color:t.secondary.base},r[R(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},r[R(e,".bw_accordion_button")]={color:t.dark.base},r[R(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light},r[R(e,".bw_accordion_button:hover")]={"background-color":t.light.light},r[R(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.hover},r[R(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[R(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border},r}(e,t),function(e,t){var r={};return r[R(e,".bw_carousel")]={"background-color":t.light.light},r[R(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[R(e,".bw_carousel_control")]={"background-color":"rgba(0,0,0,0.4)",color:"#fff"},r[R(e,".bw_carousel_control:hover")]={"background-color":"rgba(0,0,0,0.6)"},r[R(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, rgba(0,0,0,0.6))",color:"#fff"},r}(e,t),function(e,t,r){var o={};return o[R(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.lg},o[R(e,".bw_modal_header")]={"border-bottom-color":t.light.border},o[R(e,".bw_modal_footer")]={"border-top-color":t.light.border},o[R(e,".bw_modal_title")]={color:t.dark.base},o}(e,t,r),function(e,t,r){var o={};return o[R(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":"rgba(0,0,0,0.1)","box-shadow":r.elevation.lg},o[R(e,".bw_toast_header")]={"border-bottom-color":"rgba(0,0,0,0.05)"},o}(e,t,r),function(e,t,r){var o={};return o[R(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.md},o[R(e,".bw_dropdown_item")]={color:t.dark.base},o[R(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.light.light},o[R(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},o[R(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},o}(e,t,r),function(e,t){var r={};return r[R(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[R(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[R(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(e,".bw_skeleton")]={background:"linear-gradient(90deg, "+t.light.border+" 25%, "+t.light.light+" 37%, "+t.light.border+" 63%)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_stat_change_up")]={color:t.success.base},r[R(e,".bw_stat_change_down")]={color:t.danger.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_timeline::before")]={"background-color":t.light.border},r[R(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_step_indicator")]={"background-color":t.light.light,border:"2px solid "+t.light.border,color:t.secondary.base},r[R(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[R(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[R(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_completed .bw_step_label")]={color:t.primary.base},r[R(e,".bw_step_completed + .bw_step::before")]={"background-color":t.primary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_chip_input")]={"border-color":t.light.border},r[R(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[R(e,".bw_chip")]={"background-color":t.light.light,color:t.dark.base},r[R(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},r}(e,t),function(e,t){var r={};return r[R(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.light.light},r[R(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},r[R(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},r[R(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_range")]={"background-color":t.light.border},r[R(e,".bw_range::-webkit-slider-thumb")]={"background-color":t.primary.base,"border-color":"#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[R(e,".bw_range::-moz-range-thumb")]={"background-color":t.primary.base,"border-color":"#fff","box-shadow":"0 1px 3px rgba(0,0,0,0.2)"},r}(e,t),function(e,t){var r={};return r[R(e,".bw_search_clear:hover")]={color:t.dark.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},r[R(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},r}(e,t),function(e,t,r){var o={},n=r.radius;return o[R(e,".bw_nav_pills .bw_nav_link")]={"border-radius":n.btn},o}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(o){if("object"===s(t[o])){var n=t[o];r[R(e,".bw_"+o)]={"background-color":n.base,color:n.textOn,"border-color":n.base},r[R(e,".bw_"+o+":hover")]={"background-color":n.hover,"border-color":n.active},r[R(e,".bw_"+o+":active")]={"background-color":n.active},r[R(e,".bw_"+o+":focus-visible")]={"box-shadow":"0 0 0 3px "+n.focus,outline:"none"},r[R(e,".bw_alert.bw_"+o)]={"background-color":n.light,color:n.darkText,"border-color":n.border},r[R(e,".bw_toast.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+n.base},r[R(e,".bw_stat_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left-color":n.base},r[R(e,".bw_card.bw_"+o)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+n.base},r[R(e,".bw_timeline_marker.bw_"+o)]={"box-shadow":"0 0 0 2px "+n.base},r[R(e,".bw_spinner_border.bw_"+o+",\n"+R(e,".bw_spinner_grow.bw_"+o))]={"background-color":"transparent",color:n.base,"border-color":"currentColor"},r[R(e,".bw_btn_outline.bw_"+o)]={"background-color":"transparent",color:n.base,"border-color":n.base},r[R(e,".bw_btn_outline.bw_"+o+":hover")]={"background-color":n.base,color:n.textOn},r[R(e,".bw_hero.bw_"+o)]={background:"linear-gradient(135deg, "+n.base+" 0%, "+n.hover+" 100%)",color:n.textOn},r[R(e,".bw_progress_bar.bw_"+o)]={color:"#fff"}}}),r[R(e,".bw_text_muted")]={color:t.secondary.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":{transition:"all 0.3s ease-out"},".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"},".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_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","text-decoration":"none",cursor:"pointer",border:"none",background:"transparent","font-family":"inherit"},".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"},".bw_page_item:first-child .bw_page_link":{"margin-left":"0","border-top-left-radius":"0.375rem","border-bottom-left-radius":"0.375rem"},".bw_page_item:last-child .bw_page_link":{"border-top-right-radius":"0.375rem","border-bottom-right-radius":"0.375rem"},".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"},".bw_close:hover":{opacity:"0.75"}},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%","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"},".bw_accordion_button:not(.bw_collapsed)::after":{transform:"rotate(-180deg)"},".bw_accordion_collapse":{"max-height":"0",overflow:"hidden"},".bw_accordion_collapse.bw_collapse_show":{"max-height":"none"},".bw_accordion_item:first-child":{"border-top-left-radius":"8px","border-top-right-radius":"8px"},".bw_accordion_item:last-child":{"border-bottom-left-radius":"8px","border-bottom-right-radius":"8px"}},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_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"},".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"},".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"},".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"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem"}},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"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between","font-size":"0.875rem"},".bw_toast_body":{"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",opacity:"0",visibility:"hidden","pointer-events":"none"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem"},".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"},".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":{"border-left":"4px solid transparent"},".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%"}},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_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 H(){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"};var n={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var i in n)e[".bw_justify_content_"+i+", .justify-content-"+i]={"justify-content":n[i]};var a={start:"flex-start",end:"flex-end",center:"center"};for(var s in a)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":a[s]};return 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"},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 q(){return function(){for(var e={},t=Object.keys($),r=0;r<t.length;r++)Object.assign(e,$[t[r]]);return Object.assign(e,H()),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}()}
14
- /**
15
- * Bitwrench v2 Utility Functions
16
- *
17
- * Pure utility functions with no DOM dependencies. These work identically
18
- * in Node.js and browsers: type detection, math, array ops, text generation,
19
- * timing helpers.
20
- *
21
- * Extracted from bitwrench.js to keep the core focused on DOM/TACO/state.
22
- *
23
- * @module bitwrench-utils
24
- * @license BSD-2-Clause
25
- * @author M A Chatterjee <deftio [at] deftio [dot] com>
26
- */
27
- function W(e,t){if(null===e)return"null";var r=s(e);if("object"!==r)return r;if(t)return r;var o=Object.prototype.toString.call(e),n={"[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 n[o]?n[o]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function Y(e,t,r,o,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=i.clip,s=void 0!==a&&a,l=i.expScale,c=void 0===l?1:l,d=(e-t)/(r-t);1!==c&&(d=Math.pow(d,c));var b=d*(n-o)+o;if(s){var _=Math.min(o,n),p=Math.max(o,n);b=Math.max(_,Math.min(p,b))}return b}function X(e,t,r){return Math.max(t,Math.min(r,e))}function J(e){return"array"!==W(e)?[]:e.filter(function(e,t,r){return r.indexOf(e)===t})}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:H()});function G(){return""}var V={};function K(){throw new Error("bw.make() requires the full bitwrench build (not lean)")}var Z=Object.freeze({__proto__:null,BCCL:V,componentHandles:{},make:K,variantClass:G}),Q=["data","headerRow","columns"],ee=["title","data","columns","className","striped","hover","responsive"],te={version:c.version,versionInfo:c,getVersion:function(){return o({},c)},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value="boolean"==typeof e?e:"ignore"},get:function(){return this._value}}};function re(e){this._bwComponent=!0,this._bwId=te.uuid("comp"),this.taco=e,this.element=null,this.mounted=!1;var t=e.o||{};if(this._state={},t.state)for(var r in t.state)Object.prototype.hasOwnProperty.call(t.state,r)&&(this._state[r]=t.state[r]);if(this._actions={},t.actions)for(var o in t.actions)Object.prototype.hasOwnProperty.call(t.actions,o)&&(this._actions[o]=t.actions[o]);if(this._methods={},t.methods){var n=this;for(var i in t.methods)Object.prototype.hasOwnProperty.call(t.methods,i)&&(this._methods[i]=t.methods[i],function(e,t){n[e]=function(){var e=[n].concat(Array.prototype.slice.call(arguments));return t.apply(null,e)}}(i,t.methods[i]))}this._userTag=null,this._hooks={willMount:t.willMount||null,mounted:t.mounted||null,willUpdate:t.willUpdate||null,onUpdate:t.onUpdate||null,unmount:t.unmount||null,willDestroy:t.willDestroy||null},this._bindings=[],this._dirtyKeys={},this._scheduled=!1,this._subs=[],this._eventListeners=[],this._registeredActions=[],this._prevValues={},this._compile=!!t.compile,this._bw_refs={},this._refCounter=0}return te.isNodeJS=function(){return"ignore"!==te.__monkey_patch_is_nodejs__.get()?te.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node},te._isNode=te.isNodeJS(),Object.defineProperty(te,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0}),te._fsCache=void 0,te._getFs=function(){if(void 0!==te._fsCache)return Promise.resolve(te._fsCache);if(!te.isNodeJS())return te._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return te._fsCache=require("fs"),Promise.resolve(te._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return te._fsCache=e.default||e,te._fsCache}).catch(function(){return te._fsCache=null,null})}catch(e){return te._fsCache=null,Promise.resolve(null)}},te.typeOf=W,te.to=te.typeOf,te.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(te._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");var r=Date.now().toString(36),o=(++te._idCounter).toString(36),n=Math.random().toString(36).substring(2,11);return"".concat(t).concat(r,"_").concat(o,"_").concat(n)},te._el=function(e){if("string"!=typeof e)return e||null;if(!e)return null;if(!te._isBrowser)return null;var t=te._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete te._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||(r=document.querySelector('[data-bw_id="'+e+'"]')),r&&(te._nodeMap[e]=r),r},te._registerNode=function(e,t){if(e){t&&(te._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(te._nodeMap[r]=e)}},te._deregisterNode=function(e,t){t&&delete te._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete te._nodeMap[r]},te.escapeHTML=function(e){if("string"!=typeof e)return"";var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,function(e){return t[e]})},te.raw=function(e){return{__bw_raw:!0,v:String(e)}},te.html=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(e&&!0===e._bwComponent){var o=Object.assign({},r);return!o.state&&e._state&&(o.state=e._state),te.html(e.taco,o)}if(Array.isArray(e))return e.map(function(e){return te.html(e,r)}).join("");if(e&&e.__bw_raw)return e.v;if(e&&e._bwWhen&&r.state){var n=e.expr.replace(/^\$\{|\}$/g,""),a=(r.compile?te._resolveTemplate("${"+n+"}",r.state,!0):te._evaluatePath(r.state,n))?e.branches[0]:e.branches[1]||null;return a?te.html(a,r):""}if(e&&e._bwEach&&r.state){var l=e.expr.replace(/^\$\{|\}$/g,""),c=te._evaluatePath(r.state,l);return Array.isArray(c)?c.map(function(t,o){return te.html(e.factory(t,o),r)}).join(""):""}if("object"!==s(e)||!e.t){var d=r.raw?String(e):te.escapeHTML(String(e));return r.state&&"string"==typeof d&&d.indexOf("${")>=0&&(d=te._resolveTemplate(d,r.state,!!r.compile)),d}for(var b=e.t,_=e.a,p=void 0===_?{}:_,u=e.c,m=e.o,f=void 0===m?{}:m,h=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(b.toLowerCase()),w="",g=0,v=Object.entries(p);g<v.length;g++){var y=i(v[g],2),x=y[0],k=y[1];if(null!=k&&!1!==k&&!x.startsWith("on"))if("style"===x&&"object"===s(k)){var j=Object.entries(k).filter(function(e){return null!=i(e,2)[1]}).map(function(e){var t=i(e,2),r=t[0],o=t[1];return"".concat(r,":").concat(o)}).join(";");j&&(w+=' style="'.concat(te.escapeHTML(j),'"'))}else if("class"===x){var C=Array.isArray(k)?k.filter(Boolean).join(" "):String(k);C&&(w+=' class="'.concat(te.escapeHTML(C),'"'))}else if(!0===k)w+=" ".concat(x);else{var O=String(k);r.state&&O.indexOf("${")>=0&&(O=te._resolveTemplate(O,r.state,!!r.compile)),w+=" ".concat(x,'="').concat(te.escapeHTML(O),'"')}}if((f.mounted||f.unmount)&&(null===(t=p.class)||void 0===t||!t.includes("bw_id_"))){var A=f.bw_id||te.uuid();(w=w.replace(/class="([^"]*)"/,function(e,t){return'class="'.concat(t," bw_id_").concat(A,'"').trim()})).includes("class=")||(w+=' class="bw_id_'.concat(A,'"'))}if(h)return"<".concat(b).concat(w," />");var S=null!=u?te.html(u,r):"";return r.state&&"string"==typeof S&&S.indexOf("${")>=0&&(S=te._resolveTemplate(S,r.state,!!r.compile)),"<".concat(b).concat(w,">").concat(S,"</").concat(b,">")},te.createDOM=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te._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(e&&!0===e._bwComponent)return te.createDOM(e.taco,t);if("object"!==s(e)||!e.t)return document.createTextNode(String(e));for(var n=e.t,a=e.a,l=void 0===a?{}:a,c=e.c,d=e.o,b=void 0===d?{}:d,_=document.createElement(n),p=0,u=Object.entries(l);p<u.length;p++){var m=i(u[p],2),f=m[0],h=m[1];if(null!=h&&!1!==h)if("style"===f&&"object"===s(h))Object.assign(_.style,h);else if("class"===f){var w=Array.isArray(h)?h.filter(Boolean).join(" "):String(h);w&&(_.className=w)}else if(f.startsWith("on")&&"function"==typeof h){var g=f.slice(2).toLowerCase();_.addEventListener(g,h)}else"value"===f&&"input"===n?_.value=h:!0===h?_.setAttribute(f,""):_.setAttribute(f,String(h))}if(null!=c)if(Array.isArray(c))c.forEach(function(e){if(null!=e){if(!0===e._bwComponent)return void e.mount(_);var r=te.createDOM(e,t);_.appendChild(r);var o=e&&e.a?e.a["data-bw_id"]||e.a.id:null;if(o&&(_._bw_refs||(_._bw_refs={}),_._bw_refs[o]=r),r._bw_refs)for(var n in _._bw_refs||(_._bw_refs={}),r._bw_refs)Object.prototype.hasOwnProperty.call(r._bw_refs,n)&&(_._bw_refs[n]=r._bw_refs[n])}});else if("object"===s(c)&&c.__bw_raw)_.innerHTML=c.v;else if(!0===c._bwComponent)c.mount(_);else if("object"===s(c)&&c.t){var v=te.createDOM(c,t);_.appendChild(v);var y=c.a?c.a["data-bw_id"]||c.a.id:null;if(y&&(_._bw_refs||(_._bw_refs={}),_._bw_refs[y]=v),v._bw_refs)for(var x in _._bw_refs||(_._bw_refs={}),v._bw_refs)Object.prototype.hasOwnProperty.call(v._bw_refs,x)&&(_._bw_refs[x]=v._bw_refs[x])}else _.textContent=String(c);if(l.id&&te._registerNode(_,null),b.mounted||b.unmount||b.render||b.state){var k=l["data-bw_id"]||te.uuid();_.setAttribute("data-bw_id",k),te._registerNode(_,k),b.state&&(_._bw_state=b.state),b.render?(_._bw_render=b.render,b.mounted&&console.warn("bw.createDOM: o.render and o.mounted are mutually exclusive. o.render wins."),document.body.contains(_)?b.render(_,_._bw_state||{}):requestAnimationFrame(function(){document.body.contains(_)&&b.render(_,_._bw_state||{})})):b.mounted&&(document.body.contains(_)?b.mounted(_,_._bw_state||{}):requestAnimationFrame(function(){document.body.contains(_)&&b.mounted(_,_._bw_state||{})})),b.unmount&&te._unmountCallbacks.set(k,function(){b.unmount(_,_._bw_state||{})})}else l["data-bw_id"]&&te._registerNode(_,l["data-bw_id"]);return _},te.DOM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!te._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");var o=te._el(e);if(!o)return console.error("bw.DOM: Target element not found:",e),null;var n=o._bw_state,i=o._bw_render,a=o.getAttribute("data-bw_id"),s=o._bw_subs;return delete o._bw_subs,te.cleanup(o),void 0!==n&&(o._bw_state=n),i&&(o._bw_render=i),a&&(o.setAttribute("data-bw_id",a),te._registerNode(o,a)),s&&(o._bw_subs=s),o.innerHTML="",null!=t&&(!0===t._bwComponent?t.mount(o):t.element instanceof Element?o.appendChild(t.element):Array.isArray(t)?t.forEach(function(e){null!=e&&(!0===e._bwComponent?e.mount(o):e.element instanceof Element?o.appendChild(e.element):o.appendChild(te.createDOM(e,r)))}):o.appendChild(te.createDOM(t,r))),o},te.compileProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.keys(t).forEach(function(t){Object.defineProperty(r,t,{get:function(){return e._props[t]},set:function(r){var o=e._props[t];o!==r&&(e._props[t]=r,e.onPropChange&&e.onPropChange(t,r,o))},enumerable:!0,configurable:!0})}),r},te.renderComponent=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=te.createDOM(e,r),i={element:n,taco:e,_props:o({},e.a),_state:(null===(t=e.o)||void 0===t?void 0:t.state)||{},_children:{},get props(){return this._compiledProps||(this._compiledProps=te.compileProps(this,this._props)),this._compiledProps},$:function(e){return this.element.querySelectorAll(e)},$first:function(e){return this.element.querySelector(e)},update:function(e){Object.assign(this._props,e);var t=o(o({},this.taco),{},{a:o(o({},this.taco.a),e)}),n=te.createDOM(t,r);return this.element.replaceWith(n),this.element=n,this.taco=t,this},render:function(){var e=te.createDOM(this.taco,r);return this.element.replaceWith(e),this.element=e,this},onPropChange:function(e,t,r){this.render()},get state(){return this._state},set state(e){this._state=e,this.render()},setState:function(e){return Object.assign(this._state,e),this.render(),this},addChild:function(e,t){return this._children[e]=t,this},getChild:function(e){return this._children[e]},destroy:function(){Object.values(this._children).forEach(function(e){e&&e.destroy&&e.destroy()}),te.cleanup(this.element),this.element.remove(),this._children={},this._props={},this._state={},this._compiledProps=null}};return n._bwHandle=i,i},te.cleanup=function(e){if(te._isBrowser&&e){e.querySelectorAll("[data-bw_id]").forEach(function(e){var t=e.getAttribute("data-bw_id"),r=te._unmountCallbacks.get(t);r&&(r(),te._unmountCallbacks.delete(t)),te._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=e.getAttribute("data-bw_id");if(t){var r=te._unmountCallbacks.get(t);r&&(r(),te._unmountCallbacks.delete(t)),te._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,e._bwComponentHandle&&(e._bwComponentHandle.mounted=!1,e._bwComponentHandle.element=null,delete e._bwComponentHandle)}}},te.update=function(e){var t=te._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),te.emit(t,"statechange",t._bw_state)),t||null},te.patch=function(e,t,r){var o=te._el(e);return o?(r?o.setAttribute(r,String(t)):Array.isArray(t)?(o.innerHTML="",t.forEach(function(e){"string"==typeof e||"number"==typeof e?o.appendChild(document.createTextNode(String(e))):e&&e.t&&o.appendChild(te.createDOM(e))})):"object"===s(t)&&null!==t&&t.t?(o.innerHTML="",o.appendChild(te.createDOM(t))):o.textContent=String(t),o):null},te.patchAll=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=te.patch(r,e[r]));return t},te.emit=function(e,t,r){var o=te._el(e);o&&o.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},te.on=function(e,t,r){var o=te._el(e);return o&&o.addEventListener("bw:"+t,function(e){r(e.detail,e)}),o||null},te.pub=function(e,t){var r=te._topics[e];if(!r||0===r.length)return 0;for(var o=r.slice(),n=0,i=0;i<o.length;i++)try{o[i].handler(t),n++}catch(t){console.warn('bw.pub: subscriber error on topic "'+e+'":',t)}return n},te.sub=function(e,t,r){var o=++te._subIdCounter;te._topics[e]||(te._topics[e]=[]),te._topics[e].push({handler:t,id:o});var n=function(){var t=te._topics[e];t&&(te._topics[e]=t.filter(function(e){return e.id!==o}),0===te._topics[e].length&&delete te._topics[e])};if(r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(n),!r.getAttribute("data-bw_id"))){var i="bw_sub_"+o;r.setAttribute("data-bw_id",i)}return n},te.unsub=function(e,t){var r=te._topics[e];if(!r)return 0;var o=r.length;te._topics[e]=r.filter(function(e){return e.handler!==t});var n=o-te._topics[e].length;return 0===te._topics[e].length&&delete te._topics[e],n},te._fnRegistry={},te._fnIDCounter=0,te.funcRegister=function(e,t){if("function"!=typeof e)return"";var r="string"==typeof t&&t.length>0?t:"bw_fn_"+te._fnIDCounter++;return te._fnRegistry[r]=e,r},te.funcGetById=function(e,t){return(e=String(e))in te._fnRegistry?te._fnRegistry[e]:"function"==typeof t?t:function(){console.warn('bw.funcGetById: unregistered fn "'+e+'"')}},te.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},te.funcUnregister=function(e){return e in te._fnRegistry&&(delete te._fnRegistry[e],!0)},te.funcGetRegistry=function(){var e={};for(var t in te._fnRegistry)Object.prototype.hasOwnProperty.call(te._fnRegistry,t)&&(e[t]=te._fnRegistry[t]);return e},te._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},te._evaluatePath=function(e,t){for(var r=t.split("."),o=e,n=0;n<r.length;n++){if(null==o)return"";o=o[r[n]]}return null==o?"":o},te._compiledExprs={},te._resolveTemplate=function(e,t,r){if("string"!=typeof e||e.indexOf("${")<0)return e;var o=te._parseBindings(e);if(0===o.length)return e;for(var n="",i=0,a=0;a<o.length;a++){var s,l=o[a];if(n+=e.slice(i,l.start),r){if(!te._compiledExprs[l.expr])try{te._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){te._compiledExprs[l.expr]=function(){return""}}try{s=te._compiledExprs[l.expr](t)}catch(e){s=""}}else s=te._evaluatePath(t,l.expr);n+=null==s?"":String(s),i=l.end}return n+=e.slice(i)},te._extractDeps=function(e,t){for(var r=[],o=0;o<t.length;o++){var n=t[o];(new RegExp("(?:^|[^\\w$.])"+n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"(?:[^\\w$]|$)").test(e)||e===n||0===e.indexOf(n+"."))&&r.push(n)}return r},te._dirtyComponents=[],te._flushScheduled=!1,te._scheduleFlush=function(){te._flushScheduled||(te._flushScheduled=!0,"undefined"!=typeof Promise?Promise.resolve().then(te._doFlush):setTimeout(te._doFlush,0))},te._doFlush=function(){te._flushScheduled=!1;var e=te._dirtyComponents.slice();te._dirtyComponents=[];for(var t={},r=0;r<e.length;r++){var o=e[r];t[o._bwId]||(t[o._bwId]=!0,o._flush())}},te.flush=function(){te._doFlush()},re.prototype.get=function(e){return te._evaluatePath(this._state,e)},re.prototype.set=function(e,t,r){for(var o=e.split("."),n=this._state,i=0;i<o.length-1;i++)null!=n[o[i]]&&"object"===s(n[o[i]])||(n[o[i]]={}),n=n[o[i]];n[o[o.length-1]]=t,this._dirtyKeys[o[0]]=!0,this.mounted&&(r&&r.sync?this._flush():this._scheduleDirty())},re.prototype.getState=function(){var e={};for(var t in this._state)Object.prototype.hasOwnProperty.call(this._state,t)&&(e[t]=this._state[t]);return e},re.prototype.setState=function(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._state[r]=e[r],this._dirtyKeys[r]=!0);this.mounted&&(t&&t.sync?this._flush():this._scheduleDirty())},re.prototype.push=function(e,t){var r=this.get(e),o=Array.isArray(r)?r.slice():[];o.push(t),this.set(e,o)},re.prototype.splice=function(e,t,r){var o=this.get(e),n=Array.isArray(o)?o.slice():[],i=[t,r].concat(Array.prototype.slice.call(arguments,3));Array.prototype.splice.apply(n,i),this.set(e,n)},re.prototype._scheduleDirty=function(){this._scheduled||(this._scheduled=!0,te._dirtyComponents.push(this),te._scheduleFlush())},re.prototype._compileBindings=function(){this._bindings=[],this._refCounter=0;var e=Object.keys(this._state),t=this;!function r(o,n){if(null==o||"object"!==s(o)||!o.t)return o;if("string"==typeof o.c&&o.c.indexOf("${")>=0){for(var i="bw_ref_"+t._refCounter++,a=te._parseBindings(o.c),l=[],c=0;c<a.length;c++)l=l.concat(te._extractDeps(a[c].expr,e));t._bindings.push({expr:o.c,type:"content",refId:i,deps:l,template:o.c}),o.a||(o.a={}),o.a["data-bw_ref"]=i}if(o.a)for(var d in o.a)if(Object.prototype.hasOwnProperty.call(o.a,d)&&"data-bw_ref"!==d){var b=o.a[d];if("string"==typeof b&&b.indexOf("${")>=0){for(var _="bw_ref_"+t._refCounter++,p=te._parseBindings(b),u=[],m=0;m<p.length;m++)u=u.concat(te._extractDeps(p[m].expr,e));t._bindings.push({expr:b,type:"attribute",attrName:d,refId:_,deps:u,template:b}),o.a||(o.a={}),o.a["data-bw_ref"]=o.a["data-bw_ref"]||_,o.a["data-bw_ref"]!==_&&(o.a["data-bw_ref_"+d]=_)}}if(Array.isArray(o.c))for(var f=0;f<o.c.length;f++){if(o.c[f]&&"object"===s(o.c[f])&&o.c[f].t&&r(o.c[f],n.concat(f)),o.c[f]&&o.c[f]._bwWhen){var h="bw_ref_"+t._refCounter++,w=te._extractDeps(o.c[f].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:o.c[f].expr,type:"structural",subtype:"when",refId:h,deps:w,branches:o.c[f].branches,index:f,parentPath:n}),o.c[f]._refId=h}if(o.c[f]&&o.c[f]._bwEach){var g="bw_ref_"+t._refCounter++,v=te._extractDeps(o.c[f].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:o.c[f].expr,type:"structural",subtype:"each",refId:g,deps:v,factory:o.c[f].factory,index:f,parentPath:n}),o.c[f]._refId=g}}else o.c&&"object"===s(o.c)&&o.c.t&&r(o.c,n.concat(0));return o}(this.taco,[])},re.prototype._collectRefs=function(){if(this._bw_refs={},this.element){for(var e=this.element.querySelectorAll("[data-bw_ref]"),t=0;t<e.length;t++)this._bw_refs[e[t].getAttribute("data-bw_ref")]=e[t];var r=this.element.getAttribute&&this.element.getAttribute("data-bw_ref");r&&(this._bw_refs[r]=this.element)}},re.prototype.mount=function(e){this._hooks.willMount&&this._hooks.willMount(this),this._originalTaco||(this._originalTaco=this.taco),this.taco=this._deepCloneTaco(this._originalTaco),this._compileBindings(),this._prepareTaco(this.taco);var t=this;for(var r in this._actions)if(Object.prototype.hasOwnProperty.call(this._actions,r)){var o=this._bwId+"_"+r;(function(e){te.funcRegister(function(r){t._actions[e](t,r)},o)})(r),this._registeredActions.push(o)}this._wireActions(this.taco);var n=this._tacoForDOM(this.taco);this.element=te.createDOM(n),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),this._userTag&&this.element.classList.add(this._userTag),e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll(),this.mounted=!0,this._hooks.mounted&&(2===this._hooks.mounted.length?this._hooks.mounted(this.element,this.getState()):this._hooks.mounted(this))},re.prototype._prepareTaco=function(e){if(e&&"object"===s(e))if(Array.isArray(e.c))for(var t=e.c.length-1;t>=0;t--){var r=e.c[t];if(r&&r._bwWhen){var o,n=r.expr.replace(/^\$\{|\}$/g,"");if(this._compile)try{o=new Function("state","with(state){return ("+n+");}")(this._state)}catch(e){o=!1}else o=te._evaluatePath(this._state,n);var i=o?r.branches[0]:r.branches[1]||null;e.c[t]=i?{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:i}:{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:""}}if(r&&r._bwEach){var a=r.expr.replace(/^\$\{|\}$/g,""),l=te._evaluatePath(this._state,a),c=[];if(Array.isArray(l))for(var d=0;d<l.length;d++)c.push(r.factory(l[d],d));e.c[t]={t:"span",a:{"data-bw_each":r._refId,style:"display:contents"},c:c}}e.c[t]&&"object"===s(e.c[t])&&e.c[t].t&&this._prepareTaco(e.c[t])}else e.c&&"object"===s(e.c)&&e.c.t&&this._prepareTaco(e.c)},re.prototype._wireActions=function(e){if(e&&"object"===s(e)&&e.t){if(e.a)for(var t in e.a)if(Object.prototype.hasOwnProperty.call(e.a,t)&&t.startsWith("on")&&"string"==typeof e.a[t]){var r=e.a[t];if(r in this._actions)(function(r){e.a[t]=function(e){te.funcGetById(r)(e)}})(this._bwId+"_"+r)}if(Array.isArray(e.c))for(var o=0;o<e.c.length;o++)this._wireActions(e.c[o]);else e.c&&"object"===s(e.c)&&e.c.t&&this._wireActions(e.c)}},re.prototype._deepCloneTaco=function(e){if(null==e)return e;if(e._bwWhen)return{_bwWhen:!0,expr:e.expr,branches:[this._deepCloneTaco(e.branches[0]),e.branches[1]?this._deepCloneTaco(e.branches[1]):null],_refId:e._refId};if(e._bwEach)return{_bwEach:!0,expr:e.expr,factory:e.factory,_refId:e._refId};if("object"!==s(e)||!e.t)return e;var t={t:e.t};if(e.a)for(var r in t.a={},e.a)Object.prototype.hasOwnProperty.call(e.a,r)&&(t.a[r]=e.a[r]);return null!=e.c&&(Array.isArray(e.c)?t.c=e.c.map(function(e){return this._deepCloneTaco(e)}.bind(this)):"object"===s(e.c)?t.c=this._deepCloneTaco(e.c):t.c=e.c),e.o&&(t.o=e.o),t},re.prototype._tacoForDOM=function(e){if(!e||"object"!==s(e)||!e.t)return e;var t={t:e.t};return e.a&&(t.a=e.a),null!=e.c&&(Array.isArray(e.c)?t.c=e.c.map(function(e){return this._tacoForDOM(e)}.bind(this)):"object"===s(e.c)&&e.c.t?t.c=this._tacoForDOM(e.c):t.c=e.c),t},re.prototype.unmount=function(){if(this.mounted){this._hooks.unmount&&this._hooks.unmount(this);for(var e=0;e<this._eventListeners.length;e++){var t=this._eventListeners[e];this.element&&this.element.removeEventListener(t.event,t.handler)}this._eventListeners=[];for(var r=0;r<this._subs.length;r++)this._subs[r]();this._subs=[],this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.mounted=!1}},re.prototype.destroy=function(){this._hooks.willDestroy&&this._hooks.willDestroy(this),this.unmount();for(var e=0;e<this._registeredActions.length;e++)te.funcUnregister(this._registeredActions[e]);this._registeredActions=[],this._state={},this._bindings=[],this._bw_refs={},this._prevValues={},this._dirtyKeys={},this.element&&(delete this.element._bwComponentHandle,this.element=null)},re.prototype._flush=function(){this._scheduled=!1;var e=Object.keys(this._dirtyKeys);if(this._dirtyKeys={},0!==e.length&&this.mounted){this._hooks.willUpdate&&this._hooks.willUpdate(this,e);for(var t=!1,r=0;r<this._bindings.length;r++){var o=this._bindings[r];if("structural"===o.type){for(var n=0;n<o.deps.length;n++)if(e.indexOf(o.deps[n])>=0){t=!0;break}if(t)break}}if(t)this._render();else{var i=this._resolveBindings(e);this._applyPatches(i)}this._hooks.onUpdate&&this._hooks.onUpdate(this,e)}},re.prototype._resolveBindings=function(e){for(var t=[],r=0;r<this._bindings.length;r++){var o=this._bindings[r];if("structural"!==o.type){for(var n=!1,i=0;i<o.deps.length;i++)if(e.indexOf(o.deps[i])>=0){n=!0;break}if(n){var a=te._resolveTemplate(o.template,this._state,this._compile),s=o.refId+"_"+(o.attrName||"content");this._prevValues[s]!==a&&(this._prevValues[s]=a,t.push({refId:o.refId,type:o.type,attrName:o.attrName,value:a}))}}}return t},re.prototype._applyPatches=function(e){for(var t=0;t<e.length;t++){var r=e[t],o=this._bw_refs[r.refId];o&&("content"===r.type?o.textContent=r.value:"attribute"===r.type&&("class"===r.attrName?o.className=r.value:o.setAttribute(r.attrName,r.value)))}},re.prototype._resolveAndApplyAll=function(){for(var e=[],t=0;t<this._bindings.length;t++){var r=this._bindings[t];if("structural"!==r.type){var o=te._resolveTemplate(r.template,this._state,this._compile),n=r.refId+"_"+(r.attrName||"content");this._prevValues[n]=o,e.push({refId:r.refId,type:r.type,attrName:r.attrName,value:o})}}this._applyPatches(e)},re.prototype._render=function(){if(this.element&&this.element.parentNode){var e=this.element.parentNode,t=this.element.nextSibling;e.removeChild(this.element),this.taco=this._deepCloneTaco(this._originalTaco||this.taco),this._compileBindings(),this._prepareTaco(this.taco),this._wireActions(this.taco);var r=this._tacoForDOM(this.taco);this.element=te.createDOM(r),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),t?e.insertBefore(this.element,t):e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll()}},re.prototype.on=function(e,t){this.element&&this.element.addEventListener(e,t),this._eventListeners.push({event:e,handler:t})},re.prototype.off=function(e,t){this.element&&this.element.removeEventListener(e,t),this._eventListeners=this._eventListeners.filter(function(r){return!(r.event===e&&r.handler===t)})},re.prototype.sub=function(e,t){var r=te.sub(e,t);return this._subs.push(r),r},re.prototype.action=function(e){var t=this._actions[e];if(t){var r=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(null,r)}console.warn('ComponentHandle.action: unknown action "'+e+'"')},re.prototype.select=function(e){return this.element?this.element.querySelector(e):null},re.prototype.selectAll=function(e){return this.element?Array.prototype.slice.call(this.element.querySelectorAll(e)):[]},re.prototype.userTag=function(e){return this._userTag=e,this.element&&this.element.classList.add(e),this},te._ComponentHandle=re,te.when=function(e,t,r){return{_bwWhen:!0,expr:e,branches:[t,r||null]}},te.each=function(e,t){return{_bwEach:!0,expr:e,factory:t}},te.component=function(e){return new re(e)},te.message=function(e,t,r){var o=te.$('[data-bw_comp_id="'+e+'"]')[0];if(o||(o=te.$("."+e)[0]),!o||!o._bwComponentHandle)return!1;var n=o._bwComponentHandle;return"function"!=typeof n[t]?(console.warn('bw.message: unknown action "'+t+'" on component '+e),!1):(n[t](r),!0)},te._clientFunctions={},te._allowExec=!1,te._builtinClientFunctions={scrollTo:function(e){var t=te._el(e);t&&(t.scrollTop=t.scrollHeight)},focus:function(e){var t=te._el(e);t&&"function"==typeof t.focus&&t.focus()},download:function(e,t,r){if("undefined"!=typeof document){var o=new Blob([t],{type:r||"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=e,n.click(),URL.revokeObjectURL(n.href)}},clipboard:function(e){"undefined"!=typeof navigator&&navigator.clipboard&&navigator.clipboard.writeText(e)},redirect:function(e){"undefined"!=typeof window&&(window.location.href=e)},log:function(){console.log.apply(console,arguments)}},te.clientParse=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 n=e[r];if("'"===n){for(t.push('"'),r++;r<o;){var i=e[r];if("\\"===i&&r+1<o){var a=e[r+1];"'"===a?t.push("'"):(t.push("\\"),t.push(a)),r+=2}else if('"'===i)t.push('\\"'),r++;else{if("'"===i)break;t.push(i),r++}}t.push('"'),r++}else if('"'===n)for(t.push(n),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(","===n){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(n),r++}else t.push(n),r++}return JSON.parse(t.join(""))},te.clientApply=function(e){if(!e||!e.type)return!1;var t=e.type,r=e.target;if("replace"===t){var o=te._el(r);return!!o&&(te.DOM(o,e.node),!0)}if("patch"===t)return null!==te.patch(r,e.content,e.attr);if("append"===t){var n=te._el(r);if(!n)return!1;var i=te.createDOM(e.node);return n.appendChild(i),!0}if("remove"===t){var a=te._el(r);return!!a&&("function"==typeof te.cleanup&&te.cleanup(a),a.remove(),!0)}if("batch"===t){if(!Array.isArray(e.ops))return!1;var s=!0;return e.ops.forEach(function(e){te.clientApply(e)||(s=!1)}),s}if("message"===t)return te.message(e.target,e.action,e.data);if("register"===t){if(!e.name||!e.body)return!1;try{return te._clientFunctions[e.name]=new Function("return "+e.body)(),!0}catch(t){return console.error("[bw] register error:",e.name,t),!1}}else if("call"===t){if(!e.name)return!1;var l=te._clientFunctions[e.name]||te._builtinClientFunctions[e.name];if("function"!=typeof l)return!1;try{var c=Array.isArray(e.args)?e.args:[];return l.apply(null,c),!0}catch(t){return console.error("[bw] call error:",e.name,t),!1}}else if("exec"===t){if(!te._allowExec)return console.warn("[bw] exec rejected: allowExec is not enabled"),!1;if(!e.code)return!1;try{return new Function(e.code)(),!0}catch(e){return console.error("[bw] exec error:",e),!1}}return!1},te.clientConnect=function(e,t){var r=(t=t||{}).transport||"sse",o=t.actionUrl||e.replace(/\/events\//,"/action/"),n=!1!==t.reconnect,i=t.onStatus||function(){},a=t.onMessage||null,s={};te._allowExec=!!t.allowExec;var l={status:"connecting",_es:null,_pollTimer:null};function c(e){l.status=e,i(e)}function d(e){try{var t="string"==typeof e?te.clientParse(e):e;a&&a(t),s.message&&s.message(t),te.clientApply(t)}catch(e){s.error&&s.error(e)}}if("sse"===r&&"undefined"!=typeof EventSource){c("connecting");var b=new EventSource(e);l._es=b,b.onopen=function(){c("connected"),s.open&&s.open()},b.onmessage=function(e){d(e.data)},b.onerror=function(){"connected"===l.status&&c("disconnected"),s.error&&s.error(new Error("SSE connection error")),n||b.close()}}else if("poll"===r){var _=t.interval||2e3;c("connected"),l._pollTimer=setInterval(function(){fetch(e).then(function(e){return e.json()}).then(function(e){Array.isArray(e)?e.forEach(d):e&&e.type&&d(e)}).catch(function(e){s.error&&s.error(e)})},_)}return l.sendAction=function(e,t){var r=JSON.stringify({type:"action",action:e,data:t||{}});fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:r}).catch(function(e){s.error&&s.error(e)})},l.on=function(e,t){return s[e]=t,l},l.close=function(){l._es&&(l._es.close(),l._es=null),l._pollTimer&&(clearInterval(l._pollTimer),l._pollTimer=null),c("disconnected"),s.close&&s.close()},l},te.inspect=function(e){var t,r=e;if(e&&!0===e._bwComponent)r=e.element,t=e;else{if("string"==typeof e&&(r=te.$(e)[0]),!r)return console.warn("bw.inspect: element not found"),null;t=r._bwComponentHandle}if(!t)return console.log("bw.inspect: no ComponentHandle on this element"),console.log(" Tag:",r.tagName),console.log(" Classes:",r.className),console.log(" _bw_state:",r._bw_state||"(none)"),null;var o=t._bindings.reduce(function(e,t){return e.concat(t.deps||[])},[]).filter(function(e,t,r){return r.indexOf(e)===t});return console.group("Component: "+t._bwId),console.log("State:",t._state),console.log("Bindings:",t._bindings.length,"(deps:",o,")"),console.log("Methods:",Object.keys(t._methods)),console.log("Actions:",Object.keys(t._actions)),console.log("User tag:",t._userTag||"(none)"),console.log("Mounted:",t.mounted),console.log("Element:",t.element),console.groupEnd(),t},te.compile=function(e){var t=[];return function e(r){if(r&&"object"===s(r)){if("string"==typeof r.c&&r.c.indexOf("${")>=0)for(var o=te._parseBindings(r.c),n=0;n<o.length;n++)try{t.push({expr:o[n].expr,fn:new Function("state","with(state){return ("+o[n].expr+");}")})}catch(e){t.push({expr:o[n].expr,fn:function(){return""}})}if(r.a)for(var i in r.a)if(Object.prototype.hasOwnProperty.call(r.a,i)){var a=r.a[i];if("string"==typeof a&&a.indexOf("${")>=0)for(var l=te._parseBindings(a),c=0;c<l.length;c++)try{t.push({expr:l[c].expr,fn:new Function("state","with(state){return ("+l[c].expr+");}")})}catch(e){t.push({expr:l[c].expr,fn:function(){return""}})}}if(Array.isArray(r.c))for(var d=0;d<r.c.length;d++)e(r.c[d]);else r.c&&"object"===s(r.c)&&r.c.t&&e(r.c)}}(e),function(r){var o=new re(e);if(o._compile=!0,o._precompiledBindings=t,r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o._state[n]=r[n]);return o}},te.css=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minify,o=void 0!==r&&r,n=t.pretty,a=void 0===n?!o:n;if("string"==typeof e)return e;var l="",c=a?" ":"",d=a?"\n":"",b=a?" ":"";return Array.isArray(e)?l=e.map(function(e){return te.css(e,t)}).join(d):"object"===s(e)&&Object.entries(e).forEach(function(e){var r=i(e,2),o=r[0],n=r[1];if("object"===s(n)&&!Array.isArray(n)){if("@"===o.charAt(0)){var a=te.css(n,t);return void(a&&(l+="".concat(o).concat(b,"{").concat(d).concat(a).concat(d,"}").concat(d)))}var _=Object.entries(n).filter(function(e){return null!=i(e,2)[1]}).map(function(e){var t=i(e,2),r=t[0],o=t[1],n=r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return"".concat(c).concat(n,":").concat(b).concat(o,";")}).join(d);_&&(l+="".concat(o).concat(b,"{").concat(d).concat(_).concat(d,"}").concat(d))}}),l.trim()},te.injectCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!te._isBrowser)return console.warn("bw.injectCSS requires a DOM environment"),null;var r=t.id,o=void 0===r?"bw_styles":r,n=t.append,i=void 0===n||n,a=document.getElementById(o);a||((a=document.createElement("style")).id=o,a.type="text/css",document.head.appendChild(a));var s="string"==typeof e?e:te.css(e,t);return i&&a.textContent?a.textContent+="\n"+s:a.textContent=s,a},te.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];r&&"object"===s(r)&&Object.assign(e,r)}return e},te.u={flex:{display:"flex"},flexCol:{display:"flex",flexDirection:"column"},flexRow:{display:"flex",flexDirection:"row"},flexWrap:{display:"flex",flexWrap:"wrap"},block:{display:"block"},inline:{display:"inline"},hidden:{display:"none"},justifyCenter:{justifyContent:"center"},justifyBetween:{justifyContent:"space-between"},justifyEnd:{justifyContent:"flex-end"},alignCenter:{alignItems:"center"},alignStart:{alignItems:"flex-start"},alignEnd:{alignItems:"flex-end"},gap1:{gap:"0.25rem"},gap2:{gap:"0.5rem"},gap3:{gap:"0.75rem"},gap4:{gap:"1rem"},gap6:{gap:"1.5rem"},gap8:{gap:"2rem"},p0:{padding:"0"},p1:{padding:"0.25rem"},p2:{padding:"0.5rem"},p3:{padding:"0.75rem"},p4:{padding:"1rem"},p6:{padding:"1.5rem"},p8:{padding:"2rem"},px4:{paddingLeft:"1rem",paddingRight:"1rem"},py2:{paddingTop:"0.5rem",paddingBottom:"0.5rem"},py4:{paddingTop:"1rem",paddingBottom:"1rem"},m0:{margin:"0"},m4:{margin:"1rem"},mt2:{marginTop:"0.5rem"},mt4:{marginTop:"1rem"},mb2:{marginBottom:"0.5rem"},mb4:{marginBottom:"1rem"},mx_auto:{marginLeft:"auto",marginRight:"auto"},textSm:{fontSize:"0.875rem"},textBase:{fontSize:"1rem"},textLg:{fontSize:"1.125rem"},textXl:{fontSize:"1.25rem"},text2xl:{fontSize:"1.5rem"},text3xl:{fontSize:"1.875rem"},bold:{fontWeight:"700"},semibold:{fontWeight:"600"},italic:{fontStyle:"italic"},textCenter:{textAlign:"center"},textRight:{textAlign:"right"},bgWhite:{background:"#ffffff"},bgTeal:{background:"#006666",color:"#ffffff"},textWhite:{color:"#ffffff"},textTeal:{color:"#006666"},textMuted:{color:"#888"},rounded:{borderRadius:"0.375rem"},roundedLg:{borderRadius:"0.5rem"},roundedFull:{borderRadius:"9999px"},border:{border:"1px solid #d8d8d8"},wFull:{width:"100%"},hFull:{height:"100%"},transition:{transition:"all 0.2s ease"}},te.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},o=[];return Object.keys(t).forEach(function(n){var i={};"base"===n?(i[e]=t[n],o.push(te.css(i))):r[n]&&(i[e]=t[n],o.push("@media (min-width: "+r[n]+") {\n"+te.css(i)+"\n}"))}),o.join("\n")},te.mapScale=Y,te.clip=X,te._isBrowser&&(te.$=function(e){return e?Array.isArray(e)?e:e.nodeType?[e]:void 0!==e.length&&"string"!=typeof e?Array.from(e):"string"==typeof e?Array.from(document.querySelectorAll(e)):[]:[]},te.$.one=function(e){return te.$(e)[0]||null}),te.loadDefaultStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minify,r=void 0===t||t,o=e.palette;if(te._isBrowser){var n=te.css(q());te.injectCSS(n,{id:"bw_structural",append:!1,minify:r})}var i=Object.assign({},F,o||{});return te.generateTheme("",Object.assign({},i,{inject:!0}))},te.generateTheme=function(e,t){if(!t||!t.primary||!t.secondary)throw new Error("bw.generateTheme requires config.primary and config.secondary");var r=Object.assign({},F,t);t.tertiary||(r.tertiary=r.primary);var o=O(r),n=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",o=e&&e.fontSize||1,n=e&&e.typeRatio||"normal",i="string"==typeof n?L[n]||L.normal:n,a=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?I[t]||I.normal:t,radius:"string"==typeof r?P[r]||P.md:r,fontSize:o,typeScale:D(16,i),elevation:"string"==typeof a?N[a]||N.md:a,motion:"string"==typeof s?B[s]||B.standard:s}}(r),i=U(e,o,n),a=te.css(i),s=O(C(r)),l=function(e,t,r){var o=U("",t,r),n=e?"."+e+".bw_theme_alt":".bw_theme_alt",i={};for(var a in o)if(o.hasOwnProperty(a))if("@"===a.charAt(0)){var s=o[a],l={};for(var c in s)s.hasOwnProperty(c)&&(l[n+" "+c]=s[c]);i[a]=l}else{for(var d=a.split(","),b=[],_=0;_<d.length;_++){var p=d[_].trim();"body"===p||p.indexOf("body"),b.push(n+" "+p)}i[b.join(", ")]=o[a]}return i[n+" body, :root"+n+" body"]={color:t.dark.base,"background-color":t.light.base},i}
13
+ */function b(e){return("0"+e.toString(16)).slice(-2)}function _(e,t,r){return Math.max(t,Math.min(r,e))}function u(e,t){void 0===t&&(t=255);var r=[0,0,0,t,"rgb"];if(Array.isArray(e)){for(var n=[0,0,0,255,"rgb"],o=0;o<e.length&&o<n.length;o++)n[o]=e[o];return n}if("#"===(e=String(e).replace(/\s/g,""))[0]){var i=e.slice(1);if(3===i.length||4===i.length)for(var a=0;a<i.length;a++)r[a]=parseInt(i[a]+i[a],16);else if(6===i.length||8===i.length)for(var s=0;s<i.length;s+=2)r[s/2]=parseInt(i.substring(s,s+2),16)}else{var l=e.match(/^(rgb|hsl)a?\(([^)]+)\)$/i);if(l){var c=l[1].toLowerCase(),d=l[2].split(",").map(function(e){return parseFloat(e)});if("rgb"===c)r[0]=d[0]||0,r[1]=d[1]||0,r[2]=d[2]||0,r[3]=void 0!==d[3]?255*d[3]:t,r[4]="rgb";else if("hsl"===c){return m(d[0]||0,d[1]||0,d[2]||0,void 0!==d[3]?255*d[3]:t)}}}return r}function p(e,t,r,n,o){void 0===n&&(n=255),void 0===o&&(o=!0),Array.isArray(e)&&(t=e[1],r=e[2],n=void 0!==e[3]?e[3]:255,e=e[0]),e/=255,t/=255,r/=255;var i,a,s=Math.max(e,t,r),l=Math.min(e,t,r),c=(s+l)/2;if(s===l)i=a=0;else{var d=s-l;switch(a=c>.5?d/(2-s-l):d/(s+l),s){case e:i=((t-r)/d+(t<r?6:0))/6;break;case t:i=((r-e)/d+2)/6;break;case r:i=((e-t)/d+4)/6}}return i*=360,a*=100,c*=100,o&&(i=Math.round(i),a=Math.round(a),c=Math.round(c),n=Math.round(n)),[i,a,c,n,"hsl"]}function m(e,t,r,n,o){void 0===n&&(n=255),void 0===o&&(o=!0),Array.isArray(e)&&(t=e[1],r=e[2],n=void 0!==e[3]?e[3]:255,e=e[0]);var i,a,s,l=e/360,c=t/100,d=r/100;if(0===c)i=a=s=255*d;else{var b=function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},_=d<.5?d*(1+c):d+c-d*c,u=2*d-_;i=255*b(u,_,l+1/3),a=255*b(u,_,l),s=255*b(u,_,l-1/3)}return o&&(i=Math.round(i),a=Math.round(a),s=Math.round(s),n=Math.round(n)),[i,a,s,n,"rgb"]}function f(e){var t=u(e),r=p(t[0],t[1],t[2],255,!1);return[r[0],r[1],r[2]]}function h(e){var t=m(e[0],e[1],e[2],255,!0);return"#"+b(t[0])+b(t[1])+b(t[2])}function w(e,t){var r=f(e);return r[2]=_(r[2]+t,0,100),h(r)}function g(e,t,r){var n=u(e),o=u(t),i=Math.round(n[0]+(o[0]-n[0])*r),a=Math.round(n[1]+(o[1]-n[1])*r),s=Math.round(n[2]+(o[2]-n[2])*r);return"#"+b(i)+b(a)+b(s)}function v(e){var t=u(e),r=[t[0]/255,t[1]/255,t[2]/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*r[0]+.7152*r[1]+.0722*r[2]}function y(e){return v(e)>.179?"#000":"#fff"}function x(e,t,r){if(void 0===r&&(r=.2),0===r)return e;var n=f(e),o=f(t)[0]-n[0];return o>180&&(o-=360),o<-180&&(o+=360),h([(n[0]+o*r+360)%360,n[1],n[2]])}function k(e){var t=u(e),r=f(e)[2]>75?w(e,-18):g(e,"#ffffff",.6);return{base:e,hover:w(e,-10),active:w(e,-15),light:g(e,"#ffffff",.85),darkText:w(e,-40),border:r,focus:"rgba("+t[0]+","+t[1]+","+t[2]+",0.25)",textOn:y(e)}}function C(e){var t,r,n=f(e),o=n[0],i=n[1],a=n[2];return a>50?(t=_(100-a-10,8,40),r=_(.85*i,0,100)):(t=_(100-a+10,60,92),r=_(1.1*i,0,100)),h([o,r,t])}function j(e){var t=v(e.primary);return e.secondary&&(t=(t+v(e.secondary))/2),e.tertiary&&(t=(2*t+v(e.tertiary))/3),t>.179}function S(e){var t={};t.primary=C(e.primary),t.secondary=C(e.secondary),t.tertiary=e.tertiary?C(e.tertiary):t.primary;var r=f(e.primary),n=r[0];v(e.surface||h([n,8,96]))>.179?(t.light=h([n,Math.min(r[1],15),15]),t.dark=h([n,5,88]),t.surface=h([n,12,18]),t.background=h([n,10,14])):(t.light=h([n,Math.min(r[1],10),96]),t.dark=h([n,10,18]),t.surface=h([n,8,96]),t.background=h([n,6,98]));for(var o=void 0!==e.harmonize?e.harmonize:.2,i={success:"#198754",danger:"#dc3545",warning:"#f0ad4e",info:"#17a2b8"},a=["success","danger","warning","info"],s=0;s<a.length;s++){var l=a[s],c=x(e[l]||i[l],e.primary,o);t[l]=C(c)}return t.harmonize=0,t}function O(e){var t=void 0!==e.harmonize?e.harmonize:.2,r=e.primary,n=f(r)[0],o=x(e.success||"#198754",r,t),i=x(e.danger||"#dc3545",r,t),a=x(e.warning||"#f0ad4e",r,t),s=x(e.info||"#17a2b8",r,t),l=e.light||h([n,8,97]),c=e.dark||h([n,10,13]),d=e.background||h([n,22,96]),b=e.surface||h([n,25,94]),_=f(b),u=_[2]<=50?h([_[0],_[1],Math.min(_[2]+8,100)]):h([_[0],_[1],Math.max(_[2]-3,0)]);return{primary:k(e.primary),secondary:k(e.secondary),tertiary:k(e.tertiary),success:k(o),danger:k(i),warning:k(a),info:k(s),light:k(l),dark:k(c),background:d,surface:b,surfaceAlt:u}}var A={1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.5rem",6:"2rem"},M={compact:{btn:A[1]+" "+A[3],card:A[3]+" "+A[4],alert:A[2]+" "+A[4],cell:A[2]+" "+A[3],input:A[1]+" "+A[3]},normal:{btn:A[2]+" "+A[4],card:A[5]+" "+A[5],alert:A[3]+" "+A[5],cell:A[3]+" "+A[4],input:A[2]+" "+A[3]},spacious:{btn:A[3]+" "+A[5],card:A[6]+" "+A[6],alert:A[4]+" "+A[5],cell:A[4]+" "+A[5],input:A[3]+" "+A[4]}},z={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"}},T={tight:1.125,normal:1.2,relaxed:1.25,dramatic:1.333};function E(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 I={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.08)",md:"0 2px 6px rgba(0,0,0,0.12)",lg:"0 4px 12px rgba(0,0,0,0.16)",xl:"0 8px 24px rgba(0,0,0,0.20)"},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)"}},N={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)"}},L={primary:"#006666",secondary:"#6c757d",tertiary:"#006666",success:"#198754",danger:"#dc3545",warning:"#b38600",info:"#0891b2",light:"#f8f9fa",dark:"#212529"},D=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 R=function(e,t){return e?t.includes(",")?t.split(",").map(function(t){return"."+e+" "+t.trim()}).join(", "):"."+e+" "+t:t};function P(e,t,r){return Object.assign({},function(e,t){var r={},n=t.background||"#f5f5f5",o={color:t.dark.base,"background-color":n};return r[R(e,"body")]=o,r}(e,t),function(e,t,r){var n=r.motion,o={};return o[R(e,"a")]={color:t.primary.base,"text-decoration":"none",transition:"color "+n.fast+" "+n.easing},o[R(e,"a:hover")]={color:t.primary.hover,"text-decoration":"underline"},o}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.radius;return n[R(e,".bw_btn")]={padding:o.btn,"border-radius":i.btn},n[R(e,".bw_btn:focus-visible")]={outline:"2px solid currentColor","outline-offset":"2px","box-shadow":"0 0 0 3px "+t.primary.focus},n[R(e,".bw_btn_lg")]={padding:"0.625rem 1.5rem","font-size":"1rem","border-radius":"50rem"===i.btn?"50rem":parseInt(i.btn)+2+"px"},n[R(e,".bw_btn_sm")]={padding:"0.25rem 0.75rem","font-size":"0.8125rem","border-radius":"50rem"===i.btn?"50rem":Math.max(parseInt(i.btn)-1,0)+"px"},n}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.radius;return n[R(e,".bw_alert")]={padding:o.alert,"border-radius":i.alert},n}(e,0,r),function(e,t,r){var n={},o=r.spacing,i=r.radius,a=r.elevation,s=r.motion;return n[R(e,".bw_card")]={"background-color":t.surface||"#fff",border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":a.sm,transition:"box-shadow "+s.normal+" "+s.easing+", transform "+s.normal+" "+s.easing},n[R(e,".bw_card:hover")]={"box-shadow":a.md},n[R(e,".bw_card_hoverable:hover")]={"box-shadow":a.lg},n[R(e,".bw_card_body")]={padding:o.card},n[R(e,".bw_card_header")]={padding:o.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},n[R(e,".bw_card_footer")]={"background-color":t.surfaceAlt,"border-top":"1px solid "+t.light.border,color:t.secondary.base},n[R(e,".bw_card_title")]={color:t.dark.base},n[R(e,".bw_card_subtitle")]={color:t.secondary.base},n}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.radius;return n[R(e,".bw_form_control")]={padding:o.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},n[R(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},n[R(e,".bw_form_control::placeholder")]={color:t.secondary.base},n[R(e,".bw_form_label")]={color:t.dark.base},n[R(e,".bw_form_text")]={color:t.secondary.base},n[R(e,".bw_form_check_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},n[R(e,".bw_form_check_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},n[R(e,".bw_form_control.bw_is_valid")]={"border-color":t.success.base},n[R(e,".bw_form_control.bw_is_valid:focus")]={"border-color":t.success.base,"box-shadow":"0 0 0 0.2rem "+t.success.focus},n[R(e,".bw_form_control.bw_is_invalid")]={"border-color":t.danger.base},n[R(e,".bw_form_control.bw_is_invalid:focus")]={"border-color":t.danger.base,"box-shadow":"0 0 0 0.2rem "+t.danger.focus},n[R(e,".bw_form_select")]={padding:o.input,"border-radius":i.input,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border},n[R(e,".bw_form_select:focus")]={"border-color":t.primary.border,"box-shadow":"0 0 0 0.25rem "+t.primary.focus},n}(e,t,r),function(e,t,r){var n={};return n[R(e,".bw_navbar")]={"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},n[R(e,".bw_navbar_brand")]={color:t.dark.base},n[R(e,".bw_navbar_nav .bw_nav_link")]={color:t.secondary.base,"border-radius":r.radius.btn},n[R(e,".bw_navbar_nav .bw_nav_link:hover")]={color:t.dark.base,"background-color":t.surfaceAlt},n[R(e,".bw_navbar_nav .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"font-weight":"600"},n[R(e,".bw_navbar_dark")]={"background-color":t.dark.base,"border-bottom-color":t.dark.hover},n[R(e,".bw_navbar_dark .bw_navbar_brand")]={color:t.light.base},n[R(e,".bw_navbar_dark .bw_nav_link")]={color:t.light.border},n[R(e,".bw_navbar_dark .bw_nav_link:hover")]={color:t.light.base},n[R(e,".bw_navbar_dark .bw_nav_link.active")]={color:t.light.base,"font-weight":"600"},n[R(e,".bw_nav_pills .bw_nav_link.active")]={color:t.primary.textOn,"background-color":t.primary.base},n}(e,t,r),function(e,t,r){var n={},o=r.spacing;return n[R(e,".bw_table")]={color:t.dark.base,"border-color":t.light.border},n[R(e,".bw_table > :not(caption) > * > *")]={padding:o.cell,"border-bottom-color":t.light.border},n[R(e,".bw_table > thead > tr > *")]={color:t.secondary.base,"border-bottom-color":t.light.border,"background-color":t.surfaceAlt},n[R(e,".bw_table_striped > tbody > tr:nth-of-type(odd) > *")]={"background-color":t.surfaceAlt},n[R(e,".bw_table_hover > tbody > tr:hover > *")]={"background-color":t.primary.focus},n[R(e,".bw_table_selectable > tbody > tr")]={cursor:"pointer"},n[R(e,".bw_table > tbody > tr.bw_table_row_selected > *")]={"background-color":t.primary.light},n[R(e,".bw_table_bordered")]={"border-color":t.light.border},n[R(e,".bw_table caption")]={color:t.secondary.base},n}(e,t,r),function(e,t,r){var n={},o=r.motion;return n[R(e,".bw_nav_tabs")]={"border-bottom-color":t.light.border},n[R(e,".bw_nav_link")]={color:t.secondary.base,transition:"color "+o.fast+" "+o.easing+", border-color "+o.fast+" "+o.easing+", background-color "+o.fast+" "+o.easing},n[R(e,".bw_nav_tabs .bw_nav_link:hover")]={color:t.dark.base,"background-color":t.surfaceAlt,"border-bottom-color":t.light.border},n[R(e,".bw_nav_tabs .bw_nav_link.active")]={color:t.primary.base,"background-color":t.primary.focus,"border-bottom":"2px solid "+t.primary.base},n}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.motion;return n[R(e,".bw_list_group_item")]={padding:o.cell,color:t.dark.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+i.fast+" "+i.easing+", background-color "+i.fast+" "+i.easing},n[R(e,"a.bw_list_group_item:hover")]={"background-color":t.surfaceAlt,color:t.dark.hover},n[R(e,".bw_list_group_item.active")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},n[R(e,".bw_list_group_item.disabled")]={color:t.secondary.base,"background-color":t.surface||"#fff"},n}(e,t,r),function(e,t,r){var n={},o=r.motion,i=r.radius;return n[R(e,".bw_page_item:first-child .bw_page_link")]={"border-top-left-radius":i.btn,"border-bottom-left-radius":i.btn},n[R(e,".bw_page_item:last-child .bw_page_link")]={"border-top-right-radius":i.btn,"border-bottom-right-radius":i.btn},n[R(e,".bw_page_link")]={color:t.primary.base,"background-color":t.surface||"#fff","border-color":t.light.border,transition:"color "+o.fast+" "+o.easing+", background-color "+o.fast+" "+o.easing},n[R(e,".bw_page_link:hover")]={color:t.primary.hover,"background-color":t.surfaceAlt,"border-color":t.light.border},n[R(e,".bw_page_link:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"-2px"},n[R(e,".bw_page_item.bw_active .bw_page_link")]={color:t.primary.textOn,"background-color":t.primary.base,"border-color":t.primary.base},n[R(e,".bw_page_item.bw_disabled .bw_page_link")]={color:t.secondary.base,"background-color":t.surface||"#fff","border-color":t.light.border},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_progress")]={"background-color":t.surfaceAlt,"box-shadow":"inset 0 1px 2px rgba(0,0,0,.1)"},r[R(e,".bw_progress_bar")]={color:t.primary.textOn,"background-color":t.primary.base,"box-shadow":"inset 0 -1px 0 rgba(0,0,0,.15)"},r}(e,t),function(e,t,r){var n={},o=r.motion;return n[R(e,".bw_breadcrumb")]={"background-color":t.surfaceAlt,padding:"0.625rem 1rem","border-radius":r.radius.btn},n[R(e,".bw_breadcrumb_item + .bw_breadcrumb_item::before")]={color:t.secondary.base},n[R(e,".bw_breadcrumb_item a")]={color:t.primary.base,transition:"color "+o.fast+" "+o.easing},n[R(e,".bw_breadcrumb_item a:hover")]={color:t.primary.hover,"text-decoration":"underline"},n[R(e,".bw_breadcrumb_item.active")]={color:t.dark.base},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_close")]={color:t.dark.base,opacity:"0.5"},r[R(e,".bw_close:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(e,".bw_section_subtitle")]={color:t.secondary.base},r[R(e,".bw_feature_description")]={color:t.secondary.base},r[R(e,".bw_cta_description")]={color:t.secondary.base},r}(e,t),function(e,t,r){var n={},o=r?r.radius:{card:"8px"};return n[R(e,".bw_accordion_item")]={"background-color":t.surface||"#fff","border-color":t.light.border},n[R(e,".bw_accordion_item:first-child")]={"border-top-left-radius":o.card,"border-top-right-radius":o.card},n[R(e,".bw_accordion_item:last-child")]={"border-bottom-left-radius":o.card,"border-bottom-right-radius":o.card},n[R(e,".bw_accordion_button")]={color:t.dark.base},n[R(e,".bw_accordion_button:not(.bw_collapsed)")]={color:t.primary.darkText,"background-color":t.primary.light,"border-left":"3px solid "+t.primary.base},n[R(e,".bw_accordion_button:hover")]={"background-color":t.surfaceAlt},n[R(e,".bw_accordion_button:not(.bw_collapsed):hover")]={"background-color":t.primary.base,color:t.primary.textOn},n[R(e,".bw_accordion_button:focus-visible")]={"box-shadow":"0 0 0 0.2rem "+t.primary.focus},n[R(e,".bw_accordion_body")]={"border-top":"1px solid "+t.light.border,"background-color":t.surfaceAlt},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_carousel")]={"background-color":t.surfaceAlt},r[R(e,".bw_carousel_indicator.active")]={"background-color":t.primary.base},r[R(e,".bw_carousel_control")]={"background-color":t.dark.base,color:t.dark.textOn},r[R(e,".bw_carousel_control:hover")]={"background-color":t.dark.hover},r[R(e,".bw_carousel_caption")]={background:"linear-gradient(transparent, "+t.dark.base+")",color:t.dark.textOn},r}(e,t),function(e,t,r){var n={};return n[R(e,".bw_modal_content")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.lg},n[R(e,".bw_modal_header")]={"border-bottom-color":t.light.border},n[R(e,".bw_modal_footer")]={"border-top-color":t.light.border},n[R(e,".bw_modal_title")]={color:t.dark.base},n}(e,t,r),function(e,t,r){var n={};return n[R(e,".bw_toast")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.lg},n[R(e,".bw_toast_header")]={"border-bottom-color":t.light.border},n}(e,t,r),function(e,t,r){var n={};return n[R(e,".bw_dropdown_menu")]={"background-color":t.surface||"#fff","border-color":t.light.border,"box-shadow":r.elevation.md},n[R(e,".bw_dropdown_item")]={color:t.dark.base,transition:"background-color "+r.motion.fast+" "+r.motion.easing},n[R(e,".bw_dropdown_item:hover")]={color:t.dark.hover,"background-color":t.surfaceAlt},n[R(e,".bw_dropdown_item.disabled")]={color:t.secondary.base},n[R(e,".bw_dropdown_divider")]={"border-top-color":t.light.border},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_form_switch .bw_switch_input")]={"background-color":t.secondary.base,"border-color":t.secondary.base},r[R(e,".bw_form_switch .bw_switch_input:checked")]={"background-color":t.primary.base,"border-color":t.primary.base},r[R(e,".bw_form_switch .bw_switch_input:focus")]={"box-shadow":"0 0 0 0.25rem "+t.primary.focus},r}(e,t),function(e,t){var r={};return r[R(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 n={},o=r.motion,i=r.elevation,a=r.radius;return n[R(e,".bw_stat_card")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":a.card,"box-shadow":i.sm,transition:"box-shadow "+o.fast+" "+o.easing+", transform "+o.fast+" "+o.easing},n[R(e,".bw_stat_card:hover")]={"box-shadow":i.md},n[R(e,".bw_stat_change_up")]={color:t.success.base},n[R(e,".bw_stat_change_down")]={color:t.danger.base},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_timeline::before")]={"background-color":t.light.border},r[R(e,".bw_timeline_date")]={color:t.secondary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_step_indicator")]={"background-color":t.surfaceAlt,border:"2px solid "+t.light.border,color:t.secondary.base},r[R(e,".bw_step + .bw_step::before")]={"background-color":t.light.border},r[R(e,".bw_step_active .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_active .bw_step_label")]={color:t.dark.base,"font-weight":"600"},r[R(e,".bw_step_completed .bw_step_indicator")]={"background-color":t.primary.base,color:t.primary.textOn},r[R(e,".bw_step_completed .bw_step_label")]={color:t.primary.base},r[R(e,".bw_step_completed + .bw_step::before")]={"background-color":t.primary.base},r}(e,t),function(e,t){var r={};return r[R(e,".bw_chip_input")]={"border-color":t.light.border,"background-color":t.surface||"#fff",color:t.dark.base},r[R(e,".bw_chip_input:focus-within")]={"border-color":t.primary.base,"box-shadow":"0 0 0 0.2rem "+t.primary.focus},r[R(e,".bw_chip")]={"background-color":t.surfaceAlt,color:t.dark.base},r[R(e,".bw_chip_remove:hover")]={color:t.danger.base,"background-color":t.danger.light},r}(e,t),function(e,t,r){var n={},o=r.motion;return n[R(e,".bw_file_upload")]={"border-color":t.light.border,"background-color":t.surfaceAlt,transition:"border-color "+o.fast+" "+o.easing+", background-color "+o.fast+" "+o.easing},n[R(e,".bw_file_upload:hover")]={"border-color":t.primary.base,"background-color":t.primary.light},n[R(e,".bw_file_upload:focus")]={outline:"2px solid "+t.primary.base,"outline-offset":"2px"},n[R(e,".bw_file_upload.bw_file_upload_active")]={"border-color":t.primary.base,"background-color":t.primary.light,"border-style":"solid"},n}(e,t,r),function(e,t){var r={};return r[R(e,".bw_range")]={"background-color":t.light.border},r[R(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[R(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 n={},o=r.motion;return n[R(e,".bw_search_input")]={"background-color":t.surface||"#fff",color:t.dark.base},n[R(e,".bw_search_clear")]={transition:"color "+o.fast+" "+o.easing+", background-color "+o.fast+" "+o.easing},n[R(e,".bw_search_clear:hover")]={color:t.dark.base},n}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.radius,a=r.elevation,s=r.motion;return n[R(e,".bw_tooltip")]={"background-color":t.dark.base,color:t.dark.textOn,padding:o.input,"border-radius":i.badge,"box-shadow":a.md,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},n}(e,t,r),function(e,t,r){var n={},o=r.spacing,i=r.radius,a=r.elevation,s=r.motion;return n[R(e,".bw_popover")]={"background-color":t.surface||"#fff",color:t.dark.base,border:"1px solid "+t.light.border,"border-radius":i.card,"box-shadow":a.lg,transition:"opacity "+s.fast+" "+s.easing+", transform "+s.fast+" "+s.easing},n[R(e,".bw_popover_header")]={"background-color":t.surfaceAlt,"border-bottom":"1px solid "+t.light.border,padding:o.input},n[R(e,".bw_popover_body")]={padding:o.card},n}(e,t,r),function(e,t,r){var n={},o=r?r.radius:{card:"0.375rem"};return n[R(e,".bw_code_demo")]={"background-color":t.surface||"#fff",color:t.dark.base,"border-radius":o.card},n[R(e,".bw_code_copy_btn_copied")]={background:t.success.base,color:t.success.textOn,"border-color":t.success.base},n[R(e,".bw_copy_btn:hover")]={background:"rgba(255,255,255,0.2)",color:"#fff"},n}(e,t,r),function(e,t,r){var n={},o=r.radius;return n[R(e,".bw_nav_pills .bw_nav_link")]={"border-radius":o.btn},n}(e,0,r),function(e,t){var r={};return Object.keys(t).forEach(function(n){if("object"===l(t[n])){var o=t[n];r[R(e,".bw_"+n)]={"background-color":o.base,color:o.textOn,"border-color":o.base},r[R(e,".bw_"+n+":hover")]={"background-color":o.hover,"border-color":o.active},r[R(e,".bw_"+n+":active")]={"background-color":o.active},r[R(e,".bw_"+n+":focus-visible")]={"box-shadow":"0 0 0 3px "+o.focus,outline:"none"},r[R(e,".bw_alert.bw_"+n)]={"background-color":o.light,color:o.darkText,"border-color":o.border},r[R(e,".bw_toast.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+o.base},r[R(e,".bw_stat_card.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left-color":o.base},r[R(e,".bw_card.bw_"+n)]={"background-color":"inherit",color:"inherit","border-left":"4px solid "+o.base},r[R(e,".bw_timeline_marker.bw_"+n)]={"box-shadow":"0 0 0 2px "+o.base},r[R(e,".bw_spinner_border.bw_"+n)]={"background-color":"transparent",color:o.base,"border-color":o.base,"border-right-color":"transparent"},r[R(e,".bw_spinner_border.bw_"+n+":hover")]={"background-color":"transparent","border-color":o.base,"border-right-color":"transparent"},r[R(e,".bw_spinner_grow.bw_"+n)]={"background-color":o.base,color:o.base},r[R(e,".bw_btn_outline.bw_"+n)]={"background-color":"transparent",color:o.base,"border-color":o.base},r[R(e,".bw_btn_outline.bw_"+n+":hover")]={"background-color":o.base,color:o.textOn},r[R(e,".bw_hero.bw_"+n)]={background:"linear-gradient(135deg, "+o.base+" 0%, "+o.hover+" 100%)",color:o.textOn},r[R(e,".bw_progress_bar.bw_"+n)]={color:o.textOn},r[R(e,".bw_bg_"+n)]={"background-color":o.base,color:o.textOn},r[R(e,".bw_text_"+n)]={color:o.base}}}),r[R(e,".bw_text_muted")]={color:"#6c757d"},r[R(e,".bw_bg_dark")]={"background-color":"#212529",color:"#f8f9fa"},r[R(e,".bw_bg_light")]={"background-color":"#f8f9fa",color:"#212529"},r[R(e,".bw_text_light")]={color:"#f8f9fa"},r[R(e,".bw_text_dark")]={color:"#212529"},r}(e,t))}var U={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":{transition:"all 0.3s ease-out"},".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"},".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_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"},".bw_close:hover":{opacity:"0.75"}},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"},".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_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"},".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"},".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"},".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"},".bw_modal_footer":{display:"flex","flex-wrap":"wrap","align-items":"center","justify-content":"flex-end",gap:"0.5rem"}},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"},".bw_toast.bw_toast_show":{opacity:"1",transform:"translateY(0)"},".bw_toast.bw_toast_hiding":{opacity:"0"},".bw_toast_header":{display:"flex","align-items":"center","justify-content":"space-between","font-size":"0.875rem"},".bw_toast_body":{"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",opacity:"0",visibility:"hidden","pointer-events":"none"},".bw_dropdown_menu.bw_dropdown_show":{opacity:"1",visibility:"visible","pointer-events":"auto"},".bw_dropdown_menu_end":{left:"auto",right:"0"},".bw_dropdown_item":{display:"block",width:"100%",clear:"both","font-weight":"400","text-align":"inherit","text-decoration":"none","white-space":"nowrap","background-color":"transparent",border:"0","font-size":"0.9375rem"},".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"},".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","border-radius":"0.375rem","background-color":"inherit",transition:"transform 0.15s ease"},".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%"}},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_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 F(){var e={},t={0:"0",1:".25rem",2:".5rem",3:"1rem",4:"1.5rem",5:"3rem"};for(var r in t){var n=t[r];e[".bw_m_"+r]={margin:n+" !important"},e[".bw_mt_"+r]={"margin-top":n+" !important"},e[".bw_mb_"+r]={"margin-bottom":n+" !important"},e[".bw_ms_"+r]={"margin-left":n+" !important"},e[".bw_me_"+r]={"margin-right":n+" !important"},e[".bw_p_"+r]={padding:n+" !important"},e[".bw_pt_"+r+", .pt-"+r]={"padding-top":n+" !important"},e[".bw_pb_"+r+", .pb-"+r]={"padding-bottom":n+" !important"},e[".bw_ps_"+r+", .ps-"+r]={"padding-left":n+" !important"},e[".bw_pe_"+r+", .pe-"+r]={"padding-right":n+" !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"};var o={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"};for(var i in o)e[".bw_justify_content_"+i+", .justify-content-"+i]={"justify-content":o[i]};var a={start:"flex-start",end:"flex-end",center:"center"};for(var s in a)e[".bw_align_items_"+s+", .align-items-"+s]={"align-items":a[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 B(){return function(){for(var e={},t=Object.keys(U),r=0;r<t.length;r++)Object.assign(e,U[t[r]]);return Object.assign(e,F()),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 $(e,t,r){var n={};for(var o in e)if(e.hasOwnProperty(o))if("@"===o.charAt(0)){var i=e[o],a={};for(var s in i)i.hasOwnProperty(s)&&(a[H(s,t)]=i[s]);n[o]=a}else n[H(o,t)]=e[o];return n}function H(e,t){for(var r=e.split(","),n=[],o=0;o<r.length;o++)n.push(t+" "+r[o].trim());return n.join(", ")}
28
14
  /**
29
15
  * Bitwrench v2 File I/O Functions
30
16
  *
@@ -38,5 +24,19 @@ function W(e,t){if(null===e)return"null";var r=s(e);if("object"!==r)return r;if(
38
24
  * @module bitwrench-file-ops
39
25
  * @license BSD-2-Clause
40
26
  * @author M A Chatterjee <deftio [at] deftio [dot] com>
41
- */(e,s,n),c=te.css(l),d=j(r);if(!1!==t.inject&&te._isBrowser){var b=e?e.replace(/-/g,"_"):"",_=b?"bw_theme_"+b:"bw_theme_default",p=b?"bw_theme_"+b+"_alt":"bw_theme_default_alt";te.injectCSS(a,{id:_,append:!1}),te.injectCSS(c,{id:p,append:!1}),te._activeThemeStyleIds=[_,p]}e||(te.u.bgTeal={background:o.primary.base,color:o.primary.textOn},te.u.textTeal={color:o.primary.base},te.u.bgWhite={background:"#ffffff"},te.u.textWhite={color:"#ffffff"});var u={css:a,palette:o,name:e,isLightPrimary:d,alternate:{css:c,palette:s}};return te._activeTheme=u,te._activeThemeMode="primary",u},te.applyTheme=function(e){if(!te._isBrowser)return e||"primary";var t,r=document.documentElement,o=!te._activeTheme||te._activeTheme.isLightPrimary;return(t="primary"!==e&&("alternate"===e||("light"===e?!o:"dark"===e&&o)))?r.classList.add("bw_theme_alt"):r.classList.remove("bw_theme_alt"),te._activeThemeMode=t?"alternate":"primary",te._activeThemeMode},te.toggleTheme=function(){var e=te._activeThemeMode||"primary";return te.applyTheme("primary"===e?"alternate":"primary")},te.clearTheme=function(){te._activeThemeStyleIds&&te._isBrowser&&(te._activeThemeStyleIds.forEach(function(e){var t=document.getElementById(e);t&&t.remove()}),te._activeThemeStyleIds=null),te._activeTheme=null,te._activeThemeMode="primary"},te.hexToHsl=m,te.hslToHex=f,te.adjustLightness=h,te.mixColor=w,te.relativeLuminance=g,te.textOnColor=v,te.deriveShades=x,te.derivePalette=O,te.harmonize=y,te.deriveAlternateSeed=k,te.deriveAlternateConfig=C,te.isLightPalette=j,te.SPACING_PRESETS=I,te.RADIUS_PRESETS=P,te.TYPE_RATIO_PRESETS=L,te.ELEVATION_PRESETS=N,te.MOTION_PRESETS=B,te.generateTypeScale=D,te.DEFAULT_PALETTE_CONFIG=F,te.THEME_PRESETS={teal:{primary:"#006666",secondary:"#6c757d",tertiary:"#006666"},ocean:{primary:"#0077b6",secondary:"#90e0ef",tertiary:"#00b4d8"},sunset:{primary:"#e76f51",secondary:"#264653",tertiary:"#e9c46a"},forest:{primary:"#2d6a4f",secondary:"#95d5b2",tertiary:"#52b788"},slate:{primary:"#343a40",secondary:"#adb5bd",tertiary:"#6c757d"},rose:{primary:"#e11d48",secondary:"#fda4af",tertiary:"#fb7185"},indigo:{primary:"#4f46e5",secondary:"#a5b4fc",tertiary:"#818cf8"},amber:{primary:"#d97706",secondary:"#fbbf24",tertiary:"#f59e0b"},emerald:{primary:"#059669",secondary:"#6ee7b7",tertiary:"#34d399"},nord:{primary:"#5e81ac",secondary:"#88c0d0",tertiary:"#81a1c1"},coral:{primary:"#ef6461",secondary:"#4a7c7e",tertiary:"#e8a87c"},midnight:{primary:"#1e3a5f",secondary:"#7c8db5",tertiary:"#3d5a80"}},te.choice=function(e,t,r){var o=e in t?t[e]:r;return"function"===W(o)?o(e):o},te.arrayUniq=J,te.arrayBinA=function(e,t){return"array"!==W(e)||"array"!==W(t)?[]:J(e.filter(function(e){return-1!==t.indexOf(e)}))},te.arrayBNotInA=function(e,t){return"array"!==W(e)||"array"!==W(t)?[]:J(t.filter(function(t){return e.indexOf(t)<0}))},te.colorInterp=function(e,t,r,o,n){return function(e,t,r,o,n,i){var a=Array.isArray(o)?o:["#000","#fff"];if(1===(a=0===a.length?["#000","#fff"]:a).length)return a[0];var s=Y(e,t,r,0,(a=a.map(function(e){return i(e)})).length-1,{clip:!0,expScale:n}),l=X(Math.floor(s),0,a.length-2),c=s-l,d=function(e){return Y(c,0,1,a[l][e],a[l+1][e],{clip:!0})};return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,o,n,_)},te.colorHslToRgb=u,te.colorRgbToHsl=p,te.colorParse=_,te.setCookie=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(te._isBrowser){var n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3);var i="".concat(e,"=").concat(t,"; expires=").concat(n.toUTCString());o.path&&(i+="; path=".concat(o.path)),o.domain&&(i+="; domain=".concat(o.domain)),o.secure&&(i+="; secure"),o.sameSite&&(i+="; samesite=".concat(o.sameSite)),document.cookie=i}},te.getCookie=function(e,t){if(!te._isBrowser)return t;for(var r=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(r))return i.substring(r.length,i.length)}return t},te.getURLParam=function(e,t){if(!te._isBrowser||"object"!==("undefined"==typeof window?"undefined":s(window)))return t;try{var r=new URLSearchParams(window.location.search);if(!e){var o,n={},a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(r);try{for(a.s();!(o=a.n()).done;){var c=i(o.value,2),d=c[0],b=c[1];n[d]=b||!0}}catch(e){a.e(e)}finally{a.f()}return n}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},te.loremIpsum=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],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;for(var n=0;" "===o[t]||/[.,:;!?]/.test(o[t]);)if(t=(t+1)%446,++n>=446){t=0,n=0;break}for(var i=o.substring(t)+o.substring(0,t),a="",s=e+n;s>0;)a+=s<i.length?i.substring(0,s):i,s-=i.length;if(a.length>e&&(a=a.substring(0,e))," "===a[a.length-1]&&(a=a.substring(0,a.length-1)+"."),r){var l=a[0].toUpperCase();a=(l=/[A-Z]/.test(l)?l:"L")+a.substring(1)}return a},te.multiArray=function(e,t){t="number"==typeof t?[t]:t;var r=function(o){if(o>=t.length)return"function"===W(e)?e():e;for(var n=[],i=0;i<t[o];i++)n[i]=r(o+1);return n};return r(0)},te.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);var 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;for(var n=r.match(/(\d+|\D+)/g)||[],i=o.match(/(\d+|\D+)/g)||[],a=Math.min(n.length,i.length),s=0;s<a;s++){var l=n[s],c=i[s];if(l!==c){if(/^\d+$/.test(l)&&/^\d+$/.test(c)){var d=l,b=c;return"0"===l[0]&&(d="0."+l),"0"===c[0]&&(b="0."+c),parseFloat(d)-parseFloat(b)}return l>c?1:-1}}return n.length-i.length},te.setIntervalX=function(e,t,r){var o=0,n=setInterval(function(){e(o),++o>=r&&clearInterval(n)},t);return n},te.repeatUntil=function(e,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,n=arguments.length>5?arguments[5]:void 0;if("function"!=typeof e)return"err";var i=0,a=setInterval(function(){var s=e();i++,s?(clearInterval(a),t&&t(s),n&&n(!0,i)):i>=o?(clearInterval(a),r&&r(),n&&n(!1,i)):r&&r()},arguments.length>3&&void 0!==arguments[3]?arguments[3]:250);return a},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"}),n=window.URL.createObjectURL(o),i=e.createDOM({t:"a",a:{href:n,download:t,style:"display: none"}});document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(n),document.body.removeChild(i)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,o){var n={parser:"raw"};o&&o.parser&&(n.parser=o.parser);var i="JSON"===n.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(i(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var a=new XMLHttpRequest;a.open("GET",t,!0),a.onreadystatechange=function(){if(4===a.readyState)if(a.status>=200&&a.status<300)try{r(i(a.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+a.status+": "+t))},a.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 n="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 i=e.createDOM({t:"input",a:{type:"file",accept:o.accept,style:"display: none"}});i.addEventListener("change",function(){var e=i.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(n(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),i.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(i),i.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(te),te.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise(function(t,r){var o=te.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{var n=document.execCommand("copy");document.body.removeChild(o),n?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(o),r(e)}})},te.makeTable=function(e){var t=e.data,r=void 0===t?[]:t,o=e.columns,n=e.className,i=void 0===n?"":n,s=e.striped,l=void 0!==s&&s,c=e.hover,d=void 0!==c&&c,b=e.sortable,_=void 0===b||b,p=e.onSort,u=e.sortColumn,m=e.sortDirection,f=void 0===m?"asc":m,h="bw_table";l&&(h+=" bw_table_striped"),d&&(h+=" bw_table_hover"),i&&(h+=" "+i),h=h.trim();var w=o||(r.length>0?Object.keys(r[0]).map(function(e){return{key:e,label:e}}):[]),g=u||null,v=f,y=a(r);g&&y.sort(function(e,t){var r=e[g],o=t[g];if("number"==typeof r&&"number"==typeof o)return"asc"===v?r-o:o-r;var n=String(r||"").toLowerCase(),i=String(o||"").toLowerCase();return"asc"===v?n.localeCompare(i):i.localeCompare(n)});return{t:"table",a:{class:h},c:[{t:"thead",c:{t:"tr",c:w.map(function(e){return{t:"th",a:_?{style:{cursor:"pointer",userSelect:"none"},onclick:function(){return t=e.key,void(_&&(g===t?v="asc"===v?"desc":"asc":(g=t,v="asc"),p&&p(t,v)));var t}}:{},c:[e.label,_&&g===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===v?"▲":"▼"}].filter(Boolean)}})}},{t:"tbody",c:y.map(function(e){return{t:"tr",c:w.map(function(t){return{t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}})}})}]}},te.makeTableFromArray=function(e){var t,r,i=e.data,a=void 0===i?[]:i,s=e.headerRow,l=void 0===s||s,c=e.columns,d=n(e,Q);if(!Array.isArray(a)||0===a.length)return te.makeTable(o({data:[],columns:c||[]},d));if(l&&a.length>0)t=a[0].map(function(e){return String(e)}),r=a.slice(1);else{var b=a[0].length;t=[];for(var _=0;_<b;_++)t.push("col"+_);r=a}var p=r.map(function(e){var r={};return t.forEach(function(t,o){r[t]=void 0!==e[o]?e[o]:""}),r}),u=c||t.map(function(e){return{key:e,label:e}});return te.makeTable(o({data:p,columns:u},d))},te.makeBarChart=function(e){var t=e.data,r=void 0===t?[]:t,o=e.labelKey,n=void 0===o?"label":o,i=e.valueKey,a=void 0===i?"value":i,s=e.title,l=e.color,c=void 0===l?"#006666":l,d=e.height,b=void 0===d?"200px":d,_=e.formatValue,p=e.showValues,u=void 0===p||p,m=e.showLabels,f=void 0===m||m,h=e.className,w=void 0===h?"":h;if(!Array.isArray(r)||0===r.length)return{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:""};var g=r.map(function(e){return Number(e[a])||0}),v=Math.max.apply(null,g),y=r.map(function(e,t){var r=g[t],o=v>0?r/v*100:0,i=_?_(r):String(r),a=[];return u&&a.push({t:"div",a:{class:"bw_bar_value"},c:i}),a.push({t:"div",a:{class:"bw_bar",style:"height:"+o+"%;background:"+c+";"}}),f&&a.push({t:"div",a:{class:"bw_bar_label"},c:String(e[n]||"")}),{t:"div",a:{class:"bw_bar_group"},c:a}}),x=[];return s&&x.push({t:"h3",a:{class:"bw_bar_chart_title"},c:s}),x.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+b+";"},c:y}),{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:x}},te.makeDataTable=function(e){var t=e.title,r=e.data,i=e.columns,a=e.className,s=void 0===a?"":a,l=e.striped,c=void 0===l||l,d=e.hover,b=void 0===d||d,_=e.responsive,p=void 0===_||_,u=n(e,ee),m=te.makeTable(o({data:r,columns:i,className:s,striped:c,hover:b},u)),f=[];return t&&f.push({t:"h5",a:{class:"mb-3"},c:t}),p?f.push({t:"div",a:{class:"table-responsive"},c:m}):f.push(m),{t:"div",a:{class:"table-container"},c:f}},te._componentRegistry=new Map,te.render=function(e,t,r){var n,i,a,s="string"==typeof e?document.querySelector(e):e;if(!s)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};var l,c=(null===(n=r.o)||void 0===n?void 0:n.id)||te.uuid();try{l=te.createDOM(r)}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=render_failed:".concat(e.message)}}l.setAttribute("data-bw_id",c);try{switch(t){case"replace":s.parentNode.replaceChild(l,s);break;case"prepend":s.insertBefore(l,s.firstChild);break;case"append":s.appendChild(l);break;case"before":s.parentNode.insertBefore(l,s);break;case"after":s.parentNode.insertBefore(l,s.nextSibling);break;default:throw new Error("Invalid position: ".concat(t))}}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=insertion_failed:".concat(e.message)}}var d={object_type:r.t||"element",component_id:c,object_handle_in_dom:l,status_code:"success",_taco:o({},r),_state:o({},(null===(i=r.o)||void 0===i?void 0:i.state)||{}),_mounted:!0,get element(){return this.object_handle_in_dom},getState:function(){return o({},this._state)},setState:function(e){var t;return this._state=o(o({},this._state),e),null!==(t=this._taco.o)&&void 0!==t&&t.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update:function(){var e;if(!this._mounted||!this.element)return this;var t=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);var r=te.createDOM(this._taco);return r.setAttribute("data-bw_id",c),t.replaceChild(r,this.element),this.object_handle_in_dom=r,null!==(e=this._taco.o)&&void 0!==e&&e.onUpdate&&this._taco.o.onUpdate(r,this._state),this},getProp:function(e){var t;return null===(t=this._taco.a)||void 0===t?void 0:t[e]},setProp:function(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:function(){return this._taco.c},setContent:function(e){return this._taco.c=e,this.element&&("string"==typeof e?this.element.textContent=e:this.update()),this},addClass:function(e){return this.element&&this.element.classList.add(e),this},removeClass:function(e){return this.element&&this.element.classList.remove(e),this},toggleClass:function(e){return this.element&&this.element.classList.toggle(e),this},hasClass:function(e){return!!this.element&&this.element.classList.contains(e)},show:function(){return this.element&&(this.element.style.display=""),this},hide:function(){return this.element&&(this.element.style.display="none"),this},on:function(e,t){return this.element&&this.element.addEventListener(e,t),this},off:function(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy:function(){var e;return this._mounted?(null!==(e=this._taco.o)&&void 0!==e&&e.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),te._componentRegistry.delete(c),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return te._componentRegistry.set(c,d),null!==(a=r.o)&&void 0!==a&&a.mounted&&r.o.mounted(l,d),d},te.getComponent=function(e){return te._componentRegistry.get(e)||null},te.getAllComponents=function(){return new Map(te._componentRegistry)},Object.entries(Z).forEach(function(e){var t=i(e,2),r=t[0],o=t[1];r.startsWith("make")&&(te[r]=o)}),te.make=K,te.BCCL=V,te.variantClass=G,Object.entries(Z).forEach(function(e){var t=i(e,2),r=t[0],o=t[1];if(r.startsWith("make")){var n="create"+r.substring(4);te[n]=function(e){var t=o(e);return te.renderComponent(t)}}}),te._isBrowser&&"undefined"!=typeof window&&(window.bw=te),te});
27
+ */
28
+ /**
29
+ * Bitwrench v2 Utility Functions
30
+ *
31
+ * Pure utility functions with no DOM dependencies. These work identically
32
+ * in Node.js and browsers: type detection, math, array ops, text generation,
33
+ * timing helpers.
34
+ *
35
+ * Extracted from bitwrench.js to keep the core focused on DOM/TACO/state.
36
+ *
37
+ * @module bitwrench-utils
38
+ * @license BSD-2-Clause
39
+ * @author M A Chatterjee <deftio [at] deftio [dot] com>
40
+ */
41
+ function q(e,t){if(null===e)return"null";var r=l(e);if("object"!==r)return r;if(t)return r;var n=Object.prototype.toString.call(e),o={"[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 o[n]?o[n]:e._bw_type?e._bw_type:e.constructor&&e.constructor.name?e.constructor.name:r}function Y(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=i.clip,s=void 0!==a&&a,l=i.expScale,c=void 0===l?1:l,d=(e-t)/(r-t);1!==c&&(d=Math.pow(d,c));var b=d*(o-n)+n;if(s){var _=Math.min(n,o),u=Math.max(n,o);b=Math.max(_,Math.min(u,b))}return b}function X(e,t,r){return Math.max(t,Math.min(r,e))}function J(e){return"array"!==q(e)?[]:e.filter(function(e,t,r){return r.indexOf(e)===t})}Object.assign({},U,{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:U.base,enhancedCards:U.cards,tableResponsive:{".bw_table_responsive":{"overflow-x":"auto","-webkit-overflow-scrolling":"touch"}},utilities:F()});function W(){return""}var G={};function V(){throw new Error("bw.make() requires the full bitwrench build (not lean)")}var K=Object.freeze({__proto__:null,BCCL:G,componentHandles:{},make:V,variantClass:W}),Z=["data","headerRow","columns"],Q=["title","data","columns","className","striped","hover","responsive"],ee={version:d.version,versionInfo:d,getVersion:function(){return o({},d)},_idCounter:0,_unmountCallbacks:new Map,_topics:{},_subIdCounter:0,_nodeMap:{},__monkey_patch_is_nodejs__:{_value:"ignore",set:function(e){this._value=ie(e,"boolean")?e:"ignore"},get:function(){return this._value}},isNodeJS:function(){return"ignore"!==ee.__monkey_patch_is_nodejs__.get()?ee.__monkey_patch_is_nodejs__.get():"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}};ee._isNode=ee.isNodeJS(),Object.defineProperty(ee,"_isBrowser",{get:function(){return"undefined"!=typeof document&&"undefined"!=typeof window},configurable:!0});var te=Object.prototype.hasOwnProperty,re=Array.isArray,ne=Object.keys,oe=q,ie=function(e,t){var r=oe(e);return r===t||r.toLowerCase()===t},ae=function(){console.warn.apply(console,arguments)},se=function(){console.log.apply(console,arguments)},le=function(){console.error.apply(console,arguments)};ee.debug=!1,ee._fsCache=void 0,ee._getFs=function(){if(void 0!==ee._fsCache)return Promise.resolve(ee._fsCache);if(!ee.isNodeJS())return ee._fsCache=null,Promise.resolve(null);if("function"==typeof require)try{return ee._fsCache=require("fs"),Promise.resolve(ee._fsCache)}catch(e){}try{return new Function("m","return import(m)")("fs").then(function(e){return ee._fsCache=e.default||e,ee._fsCache}).catch(function(){return ee._fsCache=null,null})}catch(e){return ee._fsCache=null,Promise.resolve(null)}},ee.typeOf=q,ee.to=ee.typeOf,ee.uuid=function(e){var t=e?"bw_"+e+"_":"bw_";if(ee._isBrowser&&crypto&&crypto.randomUUID)return t+crypto.randomUUID().replace(/-/g,"");var r=Date.now().toString(36),n=(++ee._idCounter).toString(36),o=Math.random().toString(36).substring(2,11);return"".concat(t).concat(r,"_").concat(n,"_").concat(o)},ee._el=function(e){if(!ie(e,"string"))return e||null;if(!e)return null;if(!ee._isBrowser)return null;var t=ee._nodeMap[e];if(t){if(null!==t.parentNode)return t;delete ee._nodeMap[e]}var r=document.getElementById(e);return r||"#"!==e.charAt(0)&&"."!==e.charAt(0)||(r=document.querySelector(e)),r||(r=document.querySelector('[data-bw_id="'+e+'"]')),r||0!==e.indexOf("bw_uuid_")||(r=document.querySelector("."+e)),r&&(ee._nodeMap[e]=r),r},ee._registerNode=function(e,t){if(e){t&&(ee._nodeMap[t]=e);var r=e.getAttribute?e.getAttribute("id"):null;r&&(ee._nodeMap[r]=e)}},ee._deregisterNode=function(e,t){t&&delete ee._nodeMap[t];var r=e&&e.getAttribute?e.getAttribute("id"):null;r&&delete ee._nodeMap[r]};var ce=/\bbw_uuid_[a-z0-9_]+\b/;function de(e){this._bwComponent=!0,this._bwId=ee.uuid("comp"),this.taco=e,this.element=null,this.mounted=!1;var t=e.o||{};if(this._state={},t.state)for(var r in t.state)te.call(t.state,r)&&(this._state[r]=t.state[r]);if(this._actions={},t.actions)for(var n in t.actions)te.call(t.actions,n)&&(this._actions[n]=t.actions[n]);if(this._methods={},t.methods){var o=this;for(var i in t.methods)te.call(t.methods,i)&&(this._methods[i]=t.methods[i],function(e,t){o[e]=function(){var e=[o].concat(Array.prototype.slice.call(arguments));return t.apply(null,e)}}(i,t.methods[i]))}this._userTag=null,this._hooks={willMount:t.willMount||null,mounted:t.mounted||null,willUpdate:t.willUpdate||null,onUpdate:t.onUpdate||t.updated||null,unmount:t.unmount||null,willDestroy:t.willDestroy||null},this._bindings=[],this._dirtyKeys={},this._scheduled=!1,this._subs=[],this._eventListeners=[],this._registeredActions=[],this._prevValues={},this._compile=!!t.compile,this._bw_refs={},this._refCounter=0,this._children=[],this._parent=null,this._factory=e._bwFactory||null}ee.assignUUID=function(e,t){if(!e||!ie(e,"object"))return null;e.a||(e.a={}),ie(e.a.class,"string")||(e.a.class=e.a.class?String(e.a.class):"");var r=e.a.class.match(ce);if(r&&!t)return r[0];r&&(e.a.class=e.a.class.replace(ce,"").replace(/\s+/g," ").trim());var n=ee.uuid("uuid");return e.a.class=(e.a.class?e.a.class+" ":"")+n,n},ee.getUUID=function(e){if(!e)return null;var t;if(void 0!==e.className&&e.tagName?t=e.className:e.a&&ie(e.a.class,"string")&&(t=e.a.class),!t)return null;var r=t.match(ce);return r?r[0]:null},ee.escapeHTML=function(e){if(!ie(e,"string"))return"";var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,function(e){return t[e]})},ee.raw=function(e){return{__bw_raw:!0,v:String(e)}},ee.h=function(e,t,r,n){var o={t:String(e)};return null!=t&&(o.a=t),void 0!==r&&(o.c=r),void 0!==n&&(o.o=n),o},ee.html=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"";if(e&&!0===e._bwComponent){var n=Object.assign({},r);return!n.state&&e._state&&(n.state=e._state),ee.html(e.taco,n)}if(re(e))return e.map(function(e){return ee.html(e,r)}).join("");if(e&&e.__bw_raw)return e.v;if(e&&e._bwWhen&&r.state){var o=e.expr.replace(/^\$\{|\}$/g,""),i=(r.compile?ee._resolveTemplate("${"+o+"}",r.state,!0):ee._evaluatePath(r.state,o))?e.branches[0]:e.branches[1]||null;return i?ee.html(i,r):""}if(e&&e._bwEach&&r.state){var s=e.expr.replace(/^\$\{|\}$/g,""),l=ee._evaluatePath(r.state,s);return re(l)?l.map(function(t,n){return ee.html(e.factory(t,n),r)}).join(""):""}if(!ie(e,"object")||!e.t){var c=r.raw?String(e):ee.escapeHTML(String(e));return r.state&&ie(c,"string")&&c.indexOf("${")>=0&&(c=ee._resolveTemplate(c,r.state,!!r.compile)),c}for(var d=e.t,b=e.a,_=void 0===b?{}:b,u=e.c,p=e.o,m=void 0===p?{}:p,f=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(d.toLowerCase()),h="",w=0,g=Object.entries(_);w<g.length;w++){var v=a(g[w],2),y=v[0],x=v[1];if(null!=x&&!1!==x)if(y.startsWith("on"))if(ie(x,"function")){var k=ee.funcRegister(x);h+=" "+y+'="'+ee.funcGetDispatchStr(k,"event")+'"'}else ie(x,"string")&&(h+=" "+y+'="'+ee.escapeHTML(x)+'"');else if("style"===y&&ie(x,"object")){var C=Object.entries(x).filter(function(e){return null!=a(e,2)[1]}).map(function(e){var t=a(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n)}).join(";");C&&(h+=' style="'.concat(ee.escapeHTML(C),'"'))}else if("class"===y){var j=re(x)?x.filter(Boolean).join(" "):String(x);j&&(h+=' class="'.concat(ee.escapeHTML(j),'"'))}else if(!0===x)h+=" ".concat(y);else{var S=String(x);r.state&&S.indexOf("${")>=0&&(S=ee._resolveTemplate(S,r.state,!!r.compile)),h+=" ".concat(y,'="').concat(ee.escapeHTML(S),'"')}}if((m.mounted||m.unmount)&&(null===(t=_.class)||void 0===t||!t.includes("bw_id_"))){var O=m.bw_id||ee.uuid();(h=h.replace(/class="([^"]*)"/,function(e,t){return'class="'.concat(t," bw_id_").concat(O,'"').trim()})).includes("class=")||(h+=' class="bw_id_'.concat(O,'"'))}if(f)return"<".concat(d).concat(h," />");var A=null!=u?ee.html(u,r):"";return r.state&&ie(A,"string")&&A.indexOf("${")>=0&&(A=ee._resolveTemplate(A,r.state,!!r.compile)),"<".concat(d).concat(h,">").concat(A,"</").concat(d,">")},ee.htmlPage=function(t){var r=(t=t||{}).title||"bitwrench",n=t.body||"",o=t.state||void 0,i=t.runtime||"shim",a=t.css||"",s=t.theme||null,l=t.head||[],c=t.favicon||"",d=t.lang||"en",b=ee._fnIDCounter,_="";if(ie(n,"string"))_=n;else{var u={};o&&(u.state=o),_=ee.html(n,u)}for(var p=ee._fnIDCounter,m="",f=b;f<p;f++){var h="bw_fn_"+f;ee._fnRegistry[h]&&(m+="bw._fnRegistry['"+h+"']="+ee._fnRegistry[h].toString()+";\n")}var w="";if("inline"===i){var g=null;if(ee._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-lean.es5.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-lean.es5.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-lean.es5.min.js",document.baseURI).href)))}if(x){var C=y.resolve(x,"../dist/bitwrench.umd.min.js");g=v.readFileSync(C,"utf8")}}}catch(e){}w=g?"<script>"+g+"<\/script>":"<script>"+ee._FUNC_REGISTRY_SHIM+"<\/script>"}else"cdn"===i?w='<script src="https://cdn.jsdelivr.net/npm/bitwrench@2/dist/bitwrench.umd.min.js"><\/script>':"shim"===i&&(w="<script>"+ee._FUNC_REGISTRY_SHIM+"<\/script>");var j="";if(s){var S=ie(s,"string")?D[s.toLowerCase()]||null:s;if(S)j=ee.makeStyles(S).css}var O="";re(l)&&l.length>0&&(O=l.map(function(e){return ee.html(e)}).join("\n"));var A="";c&&(A='<link rel="icon" href="'+c.replace(/[&<>"']/g,function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e]})+'">');var M=ee.escapeHTML(r),z=(j?j+"\n":"")+a,T="",E=[];m&&E.push(m),"inline"!==i&&"cdn"!==i||E.push('if(typeof bw!=="undefined"){bw.loadStyles();}'),E.length>0&&(T="<script>\n"+E.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>"+M+"</title>"),A&&I.push(A),w&&I.push(w),O&&I.push(O),z&&I.push("<style>"+z+"</style>"),I.push("</head>"),I.push("<body>"),I.push(_),T&&I.push(T),I.push("</body>"),I.push("</html>"),I.join("\n")},ee.createDOM=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ee._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(),n=document.createElement("span");for(n.innerHTML=e.v;n.firstChild;)r.appendChild(n.firstChild);return r}if(e&&!0===e._bwComponent)return ee.createDOM(e.taco,t);if(!ie(e,"object")||!e.t)return document.createTextNode(String(e));for(var o=e.t,i=e.a,s=void 0===i?{}:i,l=e.c,c=e.o,d=void 0===c?{}:c,b=document.createElement(o),_=0,u=Object.entries(s);_<u.length;_++){var p=a(u[_],2),m=p[0],f=p[1];if(null!=f&&!1!==f)if("style"===m&&ie(f,"object"))Object.assign(b.style,f);else if("class"===m){var h=re(f)?f.filter(Boolean).join(" "):String(f);h&&(b.className=h)}else if(m.startsWith("on")&&ie(f,"function")){var w=m.slice(2).toLowerCase();b.addEventListener(w,f)}else"value"===m&&"input"===o?b.value=f:!0===f?b.setAttribute(m,""):b.setAttribute(m,String(f))}if(null!=l)if(re(l))l.forEach(function(e){if(null!=e){if(!0===e._bwComponent)return void e.mount(b);var r=ee.createDOM(e,t);b.appendChild(r);var n=e&&e.a?e.a["data-bw_id"]||e.a.id:null;if(n&&(b._bw_refs||(b._bw_refs={}),b._bw_refs[n]=r),r._bw_refs)for(var o in b._bw_refs||(b._bw_refs={}),r._bw_refs)te.call(r._bw_refs,o)&&(b._bw_refs[o]=r._bw_refs[o])}});else if(ie(l,"object")&&l.__bw_raw)b.innerHTML=l.v;else if(!0===l._bwComponent)l.mount(b);else if(ie(l,"object")&&l.t){var g=ee.createDOM(l,t);b.appendChild(g);var v=l.a?l.a["data-bw_id"]||l.a.id:null;if(v&&(b._bw_refs||(b._bw_refs={}),b._bw_refs[v]=g),g._bw_refs)for(var y in b._bw_refs||(b._bw_refs={}),g._bw_refs)te.call(g._bw_refs,y)&&(b._bw_refs[y]=g._bw_refs[y])}else b.textContent=String(l);if(s.id&&ee._registerNode(b,null),b.className){var x=b.className.match(ce);x&&(ee._nodeMap[x[0]]=b)}if(d.mounted||d.unmount||d.render||d.state){var k=s["data-bw_id"]||ee.uuid();b.setAttribute("data-bw_id",k),ee._registerNode(b,k),d.state&&(b._bw_state=d.state),d.render?(b._bw_render=d.render,d.mounted&&ae("bw.createDOM: o.render and o.mounted are mutually exclusive. o.render wins."),document.body.contains(b)?d.render(b,b._bw_state||{}):requestAnimationFrame(function(){document.body.contains(b)&&d.render(b,b._bw_state||{})})):d.mounted&&(document.body.contains(b)?d.mounted(b,b._bw_state||{}):requestAnimationFrame(function(){document.body.contains(b)&&d.mounted(b,b._bw_state||{})})),d.unmount&&ee._unmountCallbacks.set(k,function(){d.unmount(b,b._bw_state||{})})}else s["data-bw_id"]&&ee._registerNode(b,s["data-bw_id"]);return b},ee.DOM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!ee._isBrowser)throw new Error("bw.DOM requires a DOM environment (document/window). Use bw.html() instead.");var n=ee._el(e);if(!n)return le("bw.DOM: Target element not found:",e),null;var o=n._bw_state,i=n._bw_render,a=n.getAttribute("data-bw_id"),s=n._bw_subs;return delete n._bw_subs,ee.cleanup(n),void 0!==o&&(n._bw_state=o),i&&(n._bw_render=i),a&&(n.setAttribute("data-bw_id",a),ee._registerNode(n,a)),s&&(n._bw_subs=s),n.innerHTML="",null!=t&&(!0===t._bwComponent?t.mount(n):t.element instanceof Element?n.appendChild(t.element):re(t)?t.forEach(function(e){null!=e&&(!0===e._bwComponent?e.mount(n):e.element instanceof Element?n.appendChild(e.element):n.appendChild(ee.createDOM(e,r)))}):n.appendChild(ee.createDOM(t,r))),n},ee.compileProps=function(e){var t={};return ne(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach(function(r){Object.defineProperty(t,r,{get:function(){return e._props[r]},set:function(t){var n=e._props[r];n!==t&&(e._props[r]=t,e.onPropChange&&e.onPropChange(r,t,n))},enumerable:!0,configurable:!0})}),t},ee.renderComponent=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ee.createDOM(e,r),i={element:n,taco:e,_props:o({},e.a),_state:(null===(t=e.o)||void 0===t?void 0:t.state)||{},_children:{},get props(){return this._compiledProps||(this._compiledProps=ee.compileProps(this,this._props)),this._compiledProps},$:function(e){return this.element.querySelectorAll(e)},$first:function(e){return this.element.querySelector(e)},update:function(e){Object.assign(this._props,e);var t=o(o({},this.taco),{},{a:o(o({},this.taco.a),e)}),n=ee.createDOM(t,r);return this.element.replaceWith(n),this.element=n,this.taco=t,this},render:function(){var e=ee.createDOM(this.taco,r);return this.element.replaceWith(e),this.element=e,this},onPropChange:function(e,t,r){this.render()},get state(){return this._state},set state(e){this._state=e,this.render()},setState:function(e){return Object.assign(this._state,e),this.render(),this},addChild:function(e,t){return this._children[e]=t,this},getChild:function(e){return this._children[e]},destroy:function(){Object.values(this._children).forEach(function(e){e&&e.destroy&&e.destroy()}),ee.cleanup(this.element),this.element.remove(),this._children={},this._props={},this._state={},this._compiledProps=null}};return n._bwHandle=i,i},ee.cleanup=function(e){if(ee._isBrowser&&e){var t=e.className&&e.className.match(ce);t&&delete ee._nodeMap[t[0]],e.querySelectorAll('[class*="bw_uuid_"]').forEach(function(e){var t=e.className&&e.className.match(ce);t&&delete ee._nodeMap[t[0]]}),e.querySelectorAll("[data-bw_id]").forEach(function(e){var t=e.getAttribute("data-bw_id"),r=ee._unmountCallbacks.get(t);r&&(r(),ee._unmountCallbacks.delete(t)),ee._deregisterNode(e,t);var n=e.className&&e.className.match(ce);n&&delete ee._nodeMap[n[0]],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 r=e.getAttribute("data-bw_id");if(r){var n=ee._unmountCallbacks.get(r);n&&(n(),ee._unmountCallbacks.delete(r)),ee._deregisterNode(e,r);var o=e.className&&e.className.match(ce);o&&delete ee._nodeMap[o[0]],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,e._bwComponentHandle&&(e._bwComponentHandle.mounted=!1,e._bwComponentHandle.element=null,delete e._bwComponentHandle)}}},ee.update=function(e){var t=ee._el(e);return t&&t._bw_render&&(t._bw_render(t,t._bw_state||{}),ee.emit(t,"statechange",t._bw_state)),t||null},ee.patch=function(e,t,r){var n=ee._el(e);return n?(r?n.setAttribute(r,String(t)):re(t)?(n.innerHTML="",t.forEach(function(e){ie(e,"string")||ie(e,"number")?n.appendChild(document.createTextNode(String(e))):e&&e.t&&n.appendChild(ee.createDOM(e))})):ie(t,"object")&&t.t?(n.innerHTML="",n.appendChild(ee.createDOM(t))):n.textContent=String(t),n):null},ee.patchAll=function(e){var t={};for(var r in e)te.call(e,r)&&(t[r]=ee.patch(r,e[r]));return t},ee.emit=function(e,t,r){var n=ee._el(e);n&&n.dispatchEvent(new CustomEvent("bw:"+t,{bubbles:!0,detail:r||{}}))},ee.on=function(e,t,r){var n=ee._el(e);return n&&n.addEventListener("bw:"+t,function(e){r(e.detail,e)}),n||null},ee.pub=function(e,t){var r=ee._topics[e];if(!r||0===r.length)return 0;for(var n=r.slice(),o=0,i=0;i<n.length;i++)try{n[i].handler(t),o++}catch(t){ae('bw.pub: subscriber error on topic "'+e+'":',t)}return o},ee.sub=function(e,t,r){var n=++ee._subIdCounter;ee._topics[e]||(ee._topics[e]=[]),ee._topics[e].push({handler:t,id:n});var o=function(){var t=ee._topics[e];t&&(ee._topics[e]=t.filter(function(e){return e.id!==n}),0===ee._topics[e].length&&delete ee._topics[e])};if(r&&(r._bw_subs||(r._bw_subs=[]),r._bw_subs.push(o),!r.getAttribute("data-bw_id"))){var i="bw_sub_"+n;r.setAttribute("data-bw_id",i)}return o},ee.unsub=function(e,t){var r=ee._topics[e];if(!r)return 0;var n=r.length;ee._topics[e]=r.filter(function(e){return e.handler!==t});var o=n-ee._topics[e].length;return 0===ee._topics[e].length&&delete ee._topics[e],o},ee._fnRegistry={},ee._fnIDCounter=0,ee.funcRegister=function(e,t){if(!ie(e,"function"))return"";var r=ie(t,"string")&&t.length>0?t:"bw_fn_"+ee._fnIDCounter++;return ee._fnRegistry[r]=e,r},ee.funcGetById=function(e,t){return(e=String(e))in ee._fnRegistry?ee._fnRegistry[e]:ie(t,"function")?t:function(){ae('bw.funcGetById: unregistered fn "'+e+'"')}},ee.funcGetDispatchStr=function(e,t){return"bw.funcGetById('"+e+"')("+(t=null!=t?String(t):"")+")"},ee.funcUnregister=function(e){return e in ee._fnRegistry&&(delete ee._fnRegistry[e],!0)},ee.funcGetRegistry=function(){var e={};for(var t in ee._fnRegistry)te.call(ee._fnRegistry,t)&&(e[t]=ee._fnRegistry[t]);return e},ee._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;})();',ee._parseBindings=function(e){for(var t,r=[],n=/\$\{([^}]+)\}/g;null!==(t=n.exec(e));)r.push({start:t.index,end:t.index+t[0].length,expr:t[1].trim()});return r},ee._evaluatePath=function(e,t){for(var r=t.split("."),n=e,o=0;o<r.length;o++){if(null==n)return ee.debug&&ae('bw.debug: _evaluatePath — null at key "'+r[o]+'" in path "'+t+'"'),"";n=n[r[o]]}return null==n?"":n},ee._compiledExprs={},ee._resolveTemplate=function(e,t,r){if(!ie(e,"string")||e.indexOf("${")<0)return e;var n=ee._parseBindings(e);if(0===n.length)return e;for(var o="",i=0,a=0;a<n.length;a++){var s,l=n[a];if(o+=e.slice(i,l.start),r){if(!ee._compiledExprs[l.expr])try{ee._compiledExprs[l.expr]=new Function("state","with(state){return ("+l.expr+");}")}catch(e){ee._compiledExprs[l.expr]=function(){return""}}try{s=ee._compiledExprs[l.expr](t)}catch(e){ee.debug&&ae('bw.debug: _resolveTemplate — Tier 2 eval failed for "${'+l.expr+'}":',e.message),s=""}}else s=ee._evaluatePath(t,l.expr);o+=null==s?"":String(s),i=l.end}return o+=e.slice(i)},ee._extractDeps=function(e,t){for(var r=[],n=0;n<t.length;n++){var o=t[n];(new RegExp("(?:^|[^\\w$.])"+o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"(?:[^\\w$]|$)").test(e)||e===o||0===e.indexOf(o+"."))&&r.push(o)}return r},ee._dirtyComponents=[],ee._flushScheduled=!1,ee._scheduleFlush=function(){ee._flushScheduled||(ee._flushScheduled=!0,"undefined"!=typeof Promise?Promise.resolve().then(ee._doFlush):setTimeout(ee._doFlush,0))},ee._doFlush=function(){ee._flushScheduled=!1;var e=ee._dirtyComponents.slice();ee._dirtyComponents=[];for(var t={},r=0;r<e.length;r++){var n=e[r];t[n._bwId]||(t[n._bwId]=!0,n._flush())}},ee.flush=function(){ee._doFlush()};var be=de.prototype;function _e(e){return e&&""!==e&&"global"!==e?"reset"===e?"bw_style_reset":"bw_style_"+e.replace(/^[#.]/,"").replace(/-/g,"_"):"bw_style_global"}return be.get=function(e){return ee._evaluatePath(this._state,e)},be.set=function(e,t,r){for(var n=e.split("."),o=this._state,i=0;i<n.length-1;i++)ie(o[n[i]],"object")||(ee.debug&&ae('bw.debug: set() — auto-creating intermediate "'+n[i]+'" in path "'+e+'"'),o[n[i]]={}),o=o[n[i]];o[n[n.length-1]]=t,this._dirtyKeys[n[0]]=!0,this.mounted&&(r&&r.sync?this._flush():this._scheduleDirty())},be.getState=function(){var e={};for(var t in this._state)te.call(this._state,t)&&(e[t]=this._state[t]);return e},be.setState=function(e,t){for(var r in e)te.call(e,r)&&(this._state[r]=e[r],this._dirtyKeys[r]=!0);this.mounted&&(t&&t.sync?this._flush():this._scheduleDirty())},be.push=function(e,t){var r=this.get(e),n=re(r)?r.slice():[];n.push(t),this.set(e,n)},be.splice=function(e,t,r){var n=this.get(e),o=re(n)?n.slice():[],i=[t,r].concat(Array.prototype.slice.call(arguments,3));Array.prototype.splice.apply(o,i),this.set(e,o)},be._scheduleDirty=function(){this._scheduled||(this._scheduled=!0,ee._dirtyComponents.push(this),ee._scheduleFlush())},be._compileBindings=function(){this._bindings=[],this._refCounter=0;var e=ne(this._state),t=this;!function r(n,o){if(!ie(n,"object")||!n.t)return n;if(ie(n.c,"string")&&n.c.indexOf("${")>=0){for(var i="bw_ref_"+t._refCounter++,a=ee._parseBindings(n.c),s=[],l=0;l<a.length;l++)s=s.concat(ee._extractDeps(a[l].expr,e));t._bindings.push({expr:n.c,type:"content",refId:i,deps:s,template:n.c}),n.a||(n.a={}),n.a["data-bw_ref"]=i}if(n.a)for(var c in n.a)if(te.call(n.a,c)&&"data-bw_ref"!==c){var d=n.a[c];if(ie(d,"string")&&d.indexOf("${")>=0){for(var b="bw_ref_"+t._refCounter++,_=ee._parseBindings(d),u=[],p=0;p<_.length;p++)u=u.concat(ee._extractDeps(_[p].expr,e));t._bindings.push({expr:d,type:"attribute",attrName:c,refId:b,deps:u,template:d}),n.a||(n.a={}),n.a["data-bw_ref"]=n.a["data-bw_ref"]||b,n.a["data-bw_ref"]!==b&&(n.a["data-bw_ref_"+c]=b)}}if(re(n.c))for(var m=0;m<n.c.length;m++){if(ie(n.c[m],"string")&&n.c[m].indexOf("${")>=0){for(var f="bw_ref_"+t._refCounter++,h=ee._parseBindings(n.c[m]),w=[],g=0;g<h.length;g++)w=w.concat(ee._extractDeps(h[g].expr,e));t._bindings.push({expr:n.c[m],type:"content",refId:f,deps:w,template:n.c[m]}),n.c[m]={t:"span",a:{"data-bw_ref":f,style:"display:contents"},c:n.c[m]}}if(ie(n.c[m],"object")&&n.c[m].t&&r(n.c[m],o.concat(m)),n.c[m]&&n.c[m]._bwWhen){var v="bw_ref_"+t._refCounter++,y=ee._extractDeps(n.c[m].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:n.c[m].expr,type:"structural",subtype:"when",refId:v,deps:y,branches:n.c[m].branches,index:m,parentPath:o}),n.c[m]._refId=v}if(n.c[m]&&n.c[m]._bwEach){var x="bw_ref_"+t._refCounter++,k=ee._extractDeps(n.c[m].expr.replace(/^\$\{|\}$/g,""),e);t._bindings.push({expr:n.c[m].expr,type:"structural",subtype:"each",refId:x,deps:k,factory:n.c[m].factory,index:m,parentPath:o}),n.c[m]._refId=x}}else ie(n.c,"object")&&n.c.t&&r(n.c,o.concat(0));return n}(this.taco,[])},be._collectRefs=function(){if(this._bw_refs={},this.element){for(var e=this.element.querySelectorAll("[data-bw_ref]"),t=0;t<e.length;t++)this._bw_refs[e[t].getAttribute("data-bw_ref")]=e[t];var r=this.element.getAttribute&&this.element.getAttribute("data-bw_ref");r&&(this._bw_refs[r]=this.element)}},be.mount=function(e){this._hooks.willMount&&this._hooks.willMount(this),this._originalTaco||(this._originalTaco=this.taco),this.taco=this._deepCloneTaco(this._originalTaco),this._compileBindings(),this._prepareTaco(this.taco);var t=this;for(var r in this._actions)if(te.call(this._actions,r)){var n=this._bwId+"_"+r;(function(e){ee.funcRegister(function(r){t._actions[e](t,r)},n)})(r),this._registeredActions.push(n)}this._wireActions(this.taco);var o=this._tacoForDOM(this.taco);this.element=ee.createDOM(o),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),this.taco.o&&this.taco.o.render&&(this.element._bw_render=this.taco.o.render),this._userTag&&this.element.classList.add(this._userTag),e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll(),this.mounted=!0;for(var i=this.element.querySelectorAll("[data-bw_comp_id]"),a=0;a<i.length;a++){var s=i[a]._bwComponentHandle;s&&s!==this&&!s._parent&&(s._parent=this,this._children.push(s))}this._hooks.mounted&&(2===this._hooks.mounted.length?this._hooks.mounted(this.element,this.getState()):this._hooks.mounted(this)),this.element._bw_render&&this.element._bw_render(this.element,this._state)},be._prepareTaco=function(e){if(ie(e,"object"))if(re(e.c))for(var t=e.c.length-1;t>=0;t--){var r=e.c[t];if(r&&r._bwWhen){var n,o=r.expr.replace(/^\$\{|\}$/g,"");if(this._compile)try{n=new Function("state","with(state){return ("+o+");}")(this._state)}catch(e){n=!1}else n=ee._evaluatePath(this._state,o);var i=n?r.branches[0]:r.branches[1]||null;e.c[t]=i?{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:i}:{t:"span",a:{"data-bw_when":r._refId,style:"display:contents"},c:""}}if(r&&r._bwEach){var a=r.expr.replace(/^\$\{|\}$/g,""),s=ee._evaluatePath(this._state,a),l=[];if(re(s))for(var c=0;c<s.length;c++)l.push(r.factory(s[c],c));e.c[t]={t:"span",a:{"data-bw_each":r._refId,style:"display:contents"},c:l}}ie(e.c[t],"object")&&e.c[t].t&&this._prepareTaco(e.c[t])}else ie(e.c,"object")&&e.c.t&&this._prepareTaco(e.c)},be._wireActions=function(e){if(ie(e,"object")&&e.t){if(e.a)for(var t in e.a)if(te.call(e.a,t)&&t.startsWith("on")&&ie(e.a[t],"string")){var r=e.a[t];if(r in this._actions)(function(r){e.a[t]=function(e){ee.funcGetById(r)(e)}})(this._bwId+"_"+r)}if(re(e.c))for(var n=0;n<e.c.length;n++)this._wireActions(e.c[n]);else ie(e.c,"object")&&e.c.t&&this._wireActions(e.c)}},be._deepCloneTaco=function(e){if(null==e)return e;if(e._bwWhen)return{_bwWhen:!0,expr:e.expr,branches:[this._deepCloneTaco(e.branches[0]),e.branches[1]?this._deepCloneTaco(e.branches[1]):null],_refId:e._refId};if(e._bwEach)return{_bwEach:!0,expr:e.expr,factory:e.factory,_refId:e._refId};if(!ie(e,"object")||!e.t)return e;var t={t:e.t};if(e.a)for(var r in t.a={},e.a)te.call(e.a,r)&&(t.a[r]=e.a[r]);return null!=e.c&&(re(e.c)?t.c=e.c.map(function(e){return this._deepCloneTaco(e)}.bind(this)):ie(e.c,"object")?t.c=this._deepCloneTaco(e.c):t.c=e.c),e.o&&(t.o=e.o),t},be._tacoForDOM=function(e){if(!ie(e,"object")||!e.t)return e;var t={t:e.t};return e.a&&(t.a=e.a),null!=e.c&&(re(e.c)?t.c=e.c.map(function(e){return this._tacoForDOM(e)}.bind(this)):ie(e.c,"object")&&e.c.t?t.c=this._tacoForDOM(e.c):t.c=e.c),e.o&&(e.o.mounted||e.o.render||e.o.unmount)&&ae("bw: _tacoForDOM stripped o.mounted/render/unmount from child <"+e.t+">. Use onclick attribute or bw.component() for child interactivity."),t},be.unmount=function(){if(this.mounted){this._hooks.unmount&&this._hooks.unmount(this);for(var e=0;e<this._eventListeners.length;e++){var t=this._eventListeners[e];this.element&&this.element.removeEventListener(t.event,t.handler)}this._eventListeners=[];for(var r=0;r<this._subs.length;r++)this._subs[r]();this._subs=[],this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.mounted=!1}},be.destroy=function(){this._hooks.willDestroy&&this._hooks.willDestroy(this);for(var e=this._children.length-1;e>=0;e--)this._children[e].destroy();if(this._children=[],this._parent){var t=this._parent._children.indexOf(this);t>=0&&this._parent._children.splice(t,1),this._parent=null}this.unmount();for(var r=0;r<this._registeredActions.length;r++)ee.funcUnregister(this._registeredActions[r]);this._registeredActions=[],this._state={},this._bindings=[],this._bw_refs={},this._prevValues={},this._dirtyKeys={},this.element&&(delete this.element._bwComponentHandle,this.element=null)},be._flush=function(){this._scheduled=!1;var e=ne(this._dirtyKeys);if(this._dirtyKeys={},0!==e.length&&this.mounted){if(this._factory){for(var t=!1,r=0;r<e.length;r++)if(te.call(this._factory.props,e[r])){t=!0;break}if(t){var n={};for(var o in this._factory.props)te.call(this._factory.props,o)&&(n[o]=this._factory.props[o]);for(var i in this._state)te.call(this._state,i)&&(n[i]=this._state[i]);this._factory.props=n;var a=ee.make(this._factory.type,n);return a._bwFactory=this._factory,this.taco=a,this._originalTaco=this._deepCloneTaco(a),this._render(),void(this._hooks.onUpdate&&this._hooks.onUpdate(this,e))}}this._hooks.willUpdate&&this._hooks.willUpdate(this,e);for(var s=!1,l=0;l<this._bindings.length;l++){var c=this._bindings[l];if("structural"===c.type){for(var d=0;d<c.deps.length;d++)if(e.indexOf(c.deps[d])>=0){s=!0;break}if(s)break}}if(s)this._render();else{var b=this._resolveBindings(e);this._applyPatches(b)}this._hooks.onUpdate&&this._hooks.onUpdate(this,e)}},be._resolveBindings=function(e){for(var t=[],r=0;r<this._bindings.length;r++){var n=this._bindings[r];if("structural"!==n.type){for(var o=!1,i=0;i<n.deps.length;i++)if(e.indexOf(n.deps[i])>=0){o=!0;break}if(o){var a=ee._resolveTemplate(n.template,this._state,this._compile),s=n.refId+"_"+(n.attrName||"content");this._prevValues[s]!==a&&(this._prevValues[s]=a,t.push({refId:n.refId,type:n.type,attrName:n.attrName,value:a}))}}}return t},be._applyPatches=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=this._bw_refs[r.refId];n?"content"===r.type?n.textContent=r.value:"attribute"===r.type&&("class"===r.attrName?n.className=r.value:n.setAttribute(r.attrName,r.value)):ee.debug&&ae('bw.debug: _applyPatches — ref "'+r.refId+'" not found in DOM')}},be._resolveAndApplyAll=function(){for(var e=[],t=0;t<this._bindings.length;t++){var r=this._bindings[t];if("structural"!==r.type){var n=ee._resolveTemplate(r.template,this._state,this._compile),o=r.refId+"_"+(r.attrName||"content");this._prevValues[o]=n,e.push({refId:r.refId,type:r.type,attrName:r.attrName,value:n})}}this._applyPatches(e)},be._render=function(){if(this.element&&this.element.parentNode){var e=this.element.parentNode,t=this.element.nextSibling;e.removeChild(this.element),this.taco=this._deepCloneTaco(this._originalTaco||this.taco),this._compileBindings(),this._prepareTaco(this.taco),this._wireActions(this.taco);var r=this._tacoForDOM(this.taco);this.element=ee.createDOM(r),this.element._bwComponentHandle=this,this.element.setAttribute("data-bw_comp_id",this._bwId),t?e.insertBefore(this.element,t):e.appendChild(this.element),this._collectRefs(),this._resolveAndApplyAll()}},be.on=function(e,t){this.element&&this.element.addEventListener(e,t),this._eventListeners.push({event:e,handler:t})},be.off=function(e,t){this.element&&this.element.removeEventListener(e,t),this._eventListeners=this._eventListeners.filter(function(r){return!(r.event===e&&r.handler===t)})},be.sub=function(e,t){var r=ee.sub(e,t);return this._subs.push(r),r},be.action=function(e){var t=this._actions[e];if(t){var r=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(null,r)}ae('ComponentHandle.action: unknown action "'+e+'"')},be.select=function(e){return this.element?this.element.querySelector(e):null},be.selectAll=function(e){return this.element?Array.prototype.slice.call(this.element.querySelectorAll(e)):[]},be.userTag=function(e){return this._userTag=e,this.element&&this.element.classList.add(e),this},ee._ComponentHandle=de,ee.when=function(e,t,r){return{_bwWhen:!0,expr:e,branches:[t,r||null]}},ee.each=function(e,t){return{_bwEach:!0,expr:e,factory:t}},ee.component=function(e){return new de(e)},ee.message=function(e,t,r){var n=ee._el(e);if(n&&n._bwComponentHandle||(n=ee.$('[data-bw_comp_id="'+e+'"]')[0]),n&&n._bwComponentHandle||(n=ee.$("."+e)[0]),!n||!n._bwComponentHandle)return!1;var o=n._bwComponentHandle;return ie(o[t],"function")?(o[t](r),!0):(ae('bw.message: unknown action "'+t+'" on component '+e),!1)},ee._clientFunctions={},ee._allowExec=!1,ee.parseJSONFlex=function(e){if("r"!==(e=(e||"").trim()).charAt(0))return JSON.parse(e);for(var t=[],r=0,n=(e=e.slice(1)).length;r<n;){var o=e[r];if("'"===o){for(t.push('"'),r++;r<n;){var i=e[r];if("\\"===i&&r+1<n){var a=e[r+1];"'"===a?t.push("'"):(t.push("\\"),t.push(a)),r+=2}else if('"'===i)t.push('\\"'),r++;else{if("'"===i)break;t.push(i),r++}}t.push('"'),r++}else if('"'===o)for(t.push(o),r++;r<n;){var s=e[r];if("\\"===s&&r+1<n)t.push(s),t.push(e[r+1]),r+=2;else if(t.push(s),r++,'"'===s)break}else if(","===o){for(var l=r+1;l<n&&(" "===e[l]||"\t"===e[l]||"\n"===e[l]||"\r"===e[l]);)l++;l<n&&("}"===e[l]||"]"===e[l])||t.push(o),r++}else t.push(o),r++}return JSON.parse(t.join(""))},ee.apply=function(e){if(!e||!e.type)return!1;var t=e.type,r=e.target;if("replace"===t){var n=ee._el(r);return!!n&&(ee.DOM(n,e.node),!0)}if("patch"===t)return null!==ee.patch(r,e.content,e.attr);if("append"===t){var o=ee._el(r);if(!o)return!1;var i=ee.createDOM(e.node);return o.appendChild(i),!0}if("remove"===t){var a=ee._el(r);return!!a&&(ie(ee.cleanup,"function")&&ee.cleanup(a),a.remove(),!0)}if("batch"===t){if(!re(e.ops))return!1;var s=!0;return e.ops.forEach(function(e){ee.apply(e)||(s=!1)}),s}if("message"===t)return ee.message(e.target,e.action,e.data);if("register"===t){if(!e.name||!e.body)return!1;try{return ee._clientFunctions[e.name]=new Function("return "+e.body)(),!0}catch(t){return le("[bw] register error:",e.name,t),!1}}else if("call"===t){if(!e.name)return!1;var l=ee._clientFunctions[e.name];if(!ie(l,"function"))return!1;try{var c=re(e.args)?e.args:[];return l.apply(null,c),!0}catch(t){return le("[bw] call error:",e.name,t),!1}}else if("exec"===t){if(!ee._allowExec)return ae("[bw] exec rejected: allowExec is not enabled"),!1;if(!e.code)return!1;try{return new Function(e.code)(),!0}catch(e){return le("[bw] exec error:",e),!1}}return!1},ee.inspect=function(e){var t,r=e;if(e&&!0===e._bwComponent)r=e.element,t=e;else{if(ie(e,"string")&&(r=ee.$(e)[0]),!r)return ae("bw.inspect: element not found"),null;t=r._bwComponentHandle}if(!t)return se("bw.inspect: no ComponentHandle on this element"),se(" Tag:",r.tagName),se(" Classes:",r.className),se(" _bw_state:",r._bw_state||"(none)"),null;var n=t._bindings.reduce(function(e,t){return e.concat(t.deps||[])},[]).filter(function(e,t,r){return r.indexOf(e)===t});return console.group("Component: "+t._bwId),se("State:",t._state),se("Bindings:",t._bindings.length,"(deps:",n,")"),se("Methods:",ne(t._methods)),se("Actions:",ne(t._actions)),se("User tag:",t._userTag||"(none)"),se("Mounted:",t.mounted),se("Element:",t.element),console.groupEnd(),t},ee.compile=function(e){var t=[];return function e(r){if(ie(r,"object")){if(ie(r.c,"string")&&r.c.indexOf("${")>=0)for(var n=ee._parseBindings(r.c),o=0;o<n.length;o++)try{t.push({expr:n[o].expr,fn:new Function("state","with(state){return ("+n[o].expr+");}")})}catch(e){t.push({expr:n[o].expr,fn:function(){return""}})}if(r.a)for(var i in r.a)if(te.call(r.a,i)){var a=r.a[i];if(ie(a,"string")&&a.indexOf("${")>=0)for(var s=ee._parseBindings(a),l=0;l<s.length;l++)try{t.push({expr:s[l].expr,fn:new Function("state","with(state){return ("+s[l].expr+");}")})}catch(e){t.push({expr:s[l].expr,fn:function(){return""}})}}if(re(r.c))for(var c=0;c<r.c.length;c++)e(r.c[c]);else ie(r.c,"object")&&r.c.t&&e(r.c)}}(e),function(r){var n=new de(e);if(n._compile=!0,n._precompiledBindings=t,r)for(var o in r)te.call(r,o)&&(n._state[o]=r[o]);return n}},ee.css=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minify,n=void 0!==r&&r,o=t.pretty,i=void 0===o?!n:o;if(ie(e,"string"))return e;var s="",l=i?" ":"",c=i?"\n":"",d=i?" ":"";return re(e)?s=e.map(function(e){return ee.css(e,t)}).join(c):ie(e,"object")&&Object.entries(e).forEach(function(e){var r=a(e,2),n=r[0],o=r[1];if(ie(o,"object")){if("@"===n.charAt(0)){var i=ee.css(o,t);return void(i&&(s+="".concat(n).concat(d,"{").concat(c).concat(i).concat(c,"}").concat(c)))}var b=Object.entries(o).filter(function(e){return null!=a(e,2)[1]}).map(function(e){var t=a(e,2),r=t[0],n=t[1],o=r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return"".concat(l).concat(o,":").concat(d).concat(n,";")}).join(c);b&&(s+="".concat(n).concat(d,"{").concat(c).concat(b).concat(c,"}").concat(c))}}),s.trim()},ee.injectCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ee._isBrowser)return ae("bw.injectCSS requires a DOM environment"),null;var r=t.id,n=void 0===r?"bw_styles":r,o=t.append,i=void 0===o||o,a=document.getElementById(n);a||((a=document.createElement("style")).id=n,a.type="text/css",document.head.appendChild(a));var s=ie(e,"string")?e:ee.css(e,t);return i&&a.textContent?a.textContent+="\n"+s:a.textContent=s,a},ee.s=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];ie(r,"object")&&Object.assign(e,r)}return e},ee.responsive=function(e,t){var r={sm:"576px",md:"768px",lg:"992px",xl:"1200px"},n=[];return ne(t).forEach(function(o){var i={};"base"===o?(i[e]=t[o],n.push(ee.css(i))):r[o]&&(i[e]=t[o],n.push("@media (min-width: "+r[o]+") {\n"+ee.css(i)+"\n}"))}),n.join("\n")},ee.mapScale=Y,ee.clip=X,ee._isBrowser&&(ee.$=function(e){return e?re(e)?e:e.nodeType?[e]:void 0===e.length||ie(e,"string")?ie(e,"string")?Array.from(document.querySelectorAll(e)):[]:Array.from(e):[]},ee.$.one=function(e){return ee.$(e)[0]||null}),ee.makeStyles=function(e){var t=Object.assign({},L,e||{});e&&!e.tertiary&&(t.tertiary=t.primary);var r=O(t),n=function(e){var t=e&&e.spacing||"normal",r=e&&e.radius||"md",n=e&&e.fontSize||1,o=e&&e.typeRatio||"normal",i="string"==typeof o?T[o]||T.normal:o,a=e&&e.elevation||"md",s=e&&e.motion||"standard";return{spacing:"string"==typeof t?M[t]||M.normal:t,radius:"string"==typeof r?z[r]||z.md:r,fontSize:n,typeScale:E(16,i),elevation:"string"==typeof a?I[a]||I.md:a,motion:"string"==typeof s?N[s]||N.standard:s}}(t),o=P("",r,n),i=ee.css(o),a=O(S(t)),s=P("",a,n);return s.body={color:a.dark.base,"background-color":a.surface||a.light.base},{css:i,alternateCss:ee.css(s),rules:o,alternateRules:s,palette:r,alternatePalette:a,isLightPrimary:j(t)}},ee.applyStyles=function(e,t){if(!ee._isBrowser)return null;if(!e||!e.rules)return ae("bw.applyStyles: invalid styles object"),null;var r=_e(t),n=e.rules;t&&(n=$(n,t));var o=e.alternateRules;o&&(o=$(o,t?t+".bw_theme_alt":".bw_theme_alt"));var i=ee.css(n);return o&&(i+="\n"+ee.css(o)),ee.injectCSS(i,{id:r,append:!1})},ee.loadStyles=function(e,t){if(ee._isBrowser&&!document.getElementById("bw_structural")){var r=ee.css(B());ee.injectCSS(r,{id:"bw_structural",append:!1})}return ee.applyStyles(ee.makeStyles(e),t)},ee.loadReset=function(){if(!ee._isBrowser)return null;var e,t=document.getElementById("bw_style_reset");return t||ee.injectCSS(ee.css((e={},Object.assign(e,U.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})},ee.toggleStyles=function(e){if(!ee._isBrowser)return"primary";var t;e?t=ee.$(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"},ee.clearStyles=function(e){if(ee._isBrowser){var t=_e(e),r=document.getElementById(t);if(r&&r.remove(),e&&"reset"!==e&&"global"!==e){var n=ee.$(e);n[0]&&n[0].classList.remove("bw_theme_alt")}else e&&"global"!==e||document.documentElement.classList.remove("bw_theme_alt")}},ee.hexToHsl=f,ee.hslToHex=h,ee.adjustLightness=w,ee.mixColor=g,ee.relativeLuminance=v,ee.textOnColor=y,ee.deriveShades=k,ee.derivePalette=O,ee.harmonize=x,ee.deriveAlternateSeed=C,ee.deriveAlternateConfig=S,ee.isLightPalette=j,ee.SPACING_PRESETS=M,ee.RADIUS_PRESETS=z,ee.TYPE_RATIO_PRESETS=T,ee.ELEVATION_PRESETS=I,ee.MOTION_PRESETS=N,ee.generateTypeScale=E,ee.DEFAULT_PALETTE_CONFIG=L,ee.THEME_PRESETS=D,ee.choice=function(e,t,r){var n=e in t?t[e]:r;return"function"===q(n)?n(e):n},ee.arrayUniq=J,ee.arrayBinA=function(e,t){return"array"!==q(e)||"array"!==q(t)?[]:J(e.filter(function(e){return-1!==t.indexOf(e)}))},ee.arrayBNotInA=function(e,t){return"array"!==q(e)||"array"!==q(t)?[]:J(t.filter(function(t){return e.indexOf(t)<0}))},ee.colorInterp=function(e,t,r,n,o){return function(e,t,r,n,o,i){var a=Array.isArray(n)?n:["#000","#fff"];if(1===(a=0===a.length?["#000","#fff"]:a).length)return a[0];var s=Y(e,t,r,0,(a=a.map(function(e){return i(e)})).length-1,{clip:!0,expScale:o}),l=X(Math.floor(s),0,a.length-2),c=s-l,d=function(e){return Y(c,0,1,a[l][e],a[l+1][e],{clip:!0})};return[d(0),d(1),d(2),d(3),"rgb"]}(e,t,r,n,o,u)},ee.colorHslToRgb=m,ee.colorRgbToHsl=p,ee.colorParse=u,ee.setCookie=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(ee._isBrowser){var o=new Date;o.setTime(o.getTime()+24*r*60*60*1e3);var i="".concat(e,"=").concat(t,"; expires=").concat(o.toUTCString());n.path&&(i+="; path=".concat(n.path)),n.domain&&(i+="; domain=".concat(n.domain)),n.secure&&(i+="; secure"),n.sameSite&&(i+="; samesite=".concat(n.sameSite)),document.cookie=i}},ee.getCookie=function(e,t){if(!ee._isBrowser)return t;for(var r=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(r))return i.substring(r.length,i.length)}return t},ee.getURLParam=function(e,t){if(!ee._isBrowser||"object"!==("undefined"==typeof window?"undefined":l(window)))return t;try{var r=new URLSearchParams(window.location.search);if(!e){var n,o={},i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(r);try{for(i.s();!(n=i.n()).done;){var s=a(n.value,2),d=s[0],b=s[1];o[d]=b||!0}}catch(e){i.e(e)}finally{i.f()}return o}return r.has(e)?r.get(e)||!0:t}catch(e){return t}},ee.loremIpsum=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n="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;for(var o=0;" "===n[t]||/[.,:;!?]/.test(n[t]);)if(t=(t+1)%446,++o>=446){t=0,o=0;break}for(var i=n.substring(t)+n.substring(0,t),a="",s=e+o;s>0;)a+=s<i.length?i.substring(0,s):i,s-=i.length;if(a.length>e&&(a=a.substring(0,e))," "===a[a.length-1]&&(a=a.substring(0,a.length-1)+"."),r){var l=a[0].toUpperCase();a=(l=/[A-Z]/.test(l)?l:"L")+a.substring(1)}return a},ee.multiArray=function(e,t){t="number"==typeof t?[t]:t;var r=function(n){if(n>=t.length)return"function"===q(e)?e():e;for(var o=[],i=0;i<t[n];i++)o[i]=r(n+1);return o};return r(0)},ee.naturalCompare=function(e,t){if(isFinite(e)&&isFinite(t))return Math.sign(e-t);var r=String(e).toLowerCase(),n=String(t).toLowerCase();if(r===n)return e>t?1:0;if(!/\d/.test(r)||!/\d/.test(n))return r>n?1:-1;for(var o=r.match(/(\d+|\D+)/g)||[],i=n.match(/(\d+|\D+)/g)||[],a=Math.min(o.length,i.length),s=0;s<a;s++){var l=o[s],c=i[s];if(l!==c){if(/^\d+$/.test(l)&&/^\d+$/.test(c)){var d=l,b=c;return"0"===l[0]&&(d="0."+l),"0"===c[0]&&(b="0."+c),parseFloat(d)-parseFloat(b)}return l>c?1:-1}}return o.length-i.length},ee.setIntervalX=function(e,t,r){var n=0,o=setInterval(function(){e(n),++n>=r&&clearInterval(o)},t);return o},ee.repeatUntil=function(e,t,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10,o=arguments.length>5?arguments[5]:void 0;if("function"!=typeof e)return"err";var i=0,a=setInterval(function(){var s=e();i++,s?(clearInterval(a),t&&t(s),o&&o(!0,i)):i>=n?(clearInterval(a),r&&r(),o&&o(!1,i)):r&&r()},arguments.length>3&&void 0!==arguments[3]?arguments[3]:250);return a},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 n=new Blob([r],{type:"application/octet-stream"}),o=window.URL.createObjectURL(n),i=e.createDOM({t:"a",a:{href:o,download:t,style:"display: none"}});document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(o),document.body.removeChild(i)}},e.saveClientJSON=function(t,r){e.saveClientFile(t,JSON.stringify(r,null,2))},e.loadClientFile=function(t,r,n){var o={parser:"raw"};n&&n.parser&&(o.parser=n.parser);var i="JSON"===o.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(i(t),null)}catch(e){r(null,e)}}):r(null,new Error("fs module not available"))});else{var a=new XMLHttpRequest;a.open("GET",t,!0),a.onreadystatechange=function(){if(4===a.readyState)if(a.status>=200&&a.status<300)try{r(i(a.responseText),null)}catch(e){r(null,e)}else r(null,new Error("HTTP "+a.status+": "+t))},a.send(null)}return"BW_OK"},e.loadClientJSON=function(t,r){return e.loadClientFile(t,r,{parser:"JSON"})},e.loadLocalFile=function(t,r){var n={parser:"raw",accept:""};r&&(r.parser&&(n.parser=r.parser),r.accept&&(n.accept=r.accept));var o="JSON"===n.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 i=e.createDOM({t:"input",a:{type:"file",accept:n.accept,style:"display: none"}});i.addEventListener("change",function(){var e=i.files[0];if(e){var r=new FileReader;r.onload=function(r){try{t(o(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),i.remove()}else t(null,"",new Error("No file selected"))}),document.body.appendChild(i),i.click()}},e.loadLocalJSON=function(t){e.loadLocalFile(t,{parser:"JSON",accept:".json"})}}(ee),ee.copyToClipboard=function(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise(function(t,r){var n=ee.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(n),n.focus(),n.select();try{var o=document.execCommand("copy");document.body.removeChild(n),o?t():r(new Error("Copy command failed"))}catch(e){document.body.removeChild(n),r(e)}})},ee.makeTable=function(e){var t=e.data,r=void 0===t?[]:t,n=e.columns,o=e.className,i=void 0===o?"":o,a=e.striped,l=void 0!==a&&a,c=e.hover,d=void 0!==c&&c,b=e.sortable,_=void 0===b||b,u=e.onSort,p=e.sortColumn,m=e.sortDirection,f=void 0===m?"asc":m,h=e.selectable,w=void 0!==h&&h,g=e.onRowClick,v=e.pageSize,y=e.currentPage,x=void 0===y?1:y,k=e.onPageChange,C="bw_table";l&&(C+=" bw_table_striped"),(d||w)&&(C+=" bw_table_hover"),w&&(C+=" bw_table_selectable"),i&&(C+=" "+i),C=C.trim();var j=n||(r.length>0?ne(r[0]).map(function(e){return{key:e,label:e}}):[]),S=p||null,O=f,A=s(r);S&&A.sort(function(e,t){var r=e[S],n=t[S];if(ie(r,"number")&&ie(n,"number"))return"asc"===O?r-n:n-r;var o=String(r||"").toLowerCase(),i=String(n||"").toLowerCase();return"asc"===O?o.localeCompare(i):i.localeCompare(o)});var M=A.length,z=v?Math.max(1,Math.ceil(M/v)):1,T=Math.max(1,Math.min(x,z));if(v){var E=(T-1)*v;A=A.slice(E,E+v)}var I={t:"table",a:{class:C},c:[{t:"thead",c:{t:"tr",c:j.map(function(e){return{t:"th",a:_?{style:{cursor:"pointer",userSelect:"none"},onclick:function(){return t=e.key,void(_&&(S===t?O="asc"===O?"desc":"asc":(S=t,O="asc"),u&&u(t,O)));var t}}:{},c:[e.label,_&&S===e.key&&{t:"span",a:{style:{marginLeft:"5px"}},c:"asc"===O?"▲":"▼"}].filter(Boolean)}})}},{t:"tbody",c:A.map(function(e,t){var r=v?(T-1)*v+t:t,n={};return(w||g)&&(n.style="cursor:pointer;",n.onclick=function(t){w&&t.currentTarget.classList.toggle("bw_table_row_selected");g&&g(e,r,t)}),{t:"tr",a:n,c:j.map(function(t){return{t:"td",c:t.render?t.render(e[t.key],e):String(e[t.key]||"")}})}})}]};if(!v)return I;var N=[];return N.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:T<=1?"disabled":void 0,onclick:T>1&&k?function(){k(T-1)}:void 0},c:"Prev"}),N.push({t:"span",a:{style:"margin:0 0.5rem;font-size:0.875rem;"},c:"Page "+T+" of "+z}),N.push({t:"button",a:{class:"bw_btn bw_btn_sm",disabled:T>=z?"disabled":void 0,onclick:T<z&&k?function(){k(T+1)}:void 0},c:"Next"}),{t:"div",a:{class:"bw_table_paginated"},c:[I,{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:N}]}},ee.makeTableFromArray=function(e){var t,r,n=e.data,a=void 0===n?[]:n,s=e.headerRow,l=void 0===s||s,c=e.columns,d=i(e,Z);if(!re(a)||0===a.length)return ee.makeTable(o({data:[],columns:c||[]},d));if(l&&a.length>0)t=a[0].map(function(e){return String(e)}),r=a.slice(1);else{var b=a[0].length;t=[];for(var _=0;_<b;_++)t.push("col"+_);r=a}var u=r.map(function(e){var r={};return t.forEach(function(t,n){r[t]=void 0!==e[n]?e[n]:""}),r}),p=c||t.map(function(e){return{key:e,label:e}});return ee.makeTable(o({data:u,columns:p},d))},ee.makeBarChart=function(e){var t=e.data,r=void 0===t?[]:t,n=e.labelKey,o=void 0===n?"label":n,i=e.valueKey,a=void 0===i?"value":i,s=e.title,l=e.color,c=void 0===l?"#006666":l,d=e.height,b=void 0===d?"200px":d,_=e.formatValue,u=e.showValues,p=void 0===u||u,m=e.showLabels,f=void 0===m||m,h=e.className,w=void 0===h?"":h;if(!re(r)||0===r.length)return{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:""};var g=r.map(function(e){return Number(e[a])||0}),v=Math.max.apply(null,g),y=r.map(function(e,t){var r=g[t],n=v>0?r/v*100:0,i=_?_(r):String(r),a=[];return p&&a.push({t:"div",a:{class:"bw_bar_value"},c:i}),a.push({t:"div",a:{class:"bw_bar",style:"height:"+n+"%;background:"+c+";"}}),f&&a.push({t:"div",a:{class:"bw_bar_label"},c:String(e[o]||"")}),{t:"div",a:{class:"bw_bar_group"},c:a}}),x=[];return s&&x.push({t:"h3",a:{class:"bw_bar_chart_title"},c:s}),x.push({t:"div",a:{class:"bw_bar_chart",style:"height:"+b+";"},c:y}),{t:"div",a:{class:("bw_bar_chart_container "+w).trim()},c:x}},ee.makeDataTable=function(e){var t=e.title,r=e.data,n=e.columns,a=e.className,s=void 0===a?"":a,l=e.striped,c=void 0===l||l,d=e.hover,b=void 0===d||d,_=e.responsive,u=void 0===_||_,p=i(e,Q),m=ee.makeTable(o({data:r,columns:n,className:s,striped:c,hover:b},p)),f=[];return t&&f.push({t:"h5",a:{class:"mb-3"},c:t}),u?f.push({t:"div",a:{class:"table-responsive"},c:m}):f.push(m),{t:"div",a:{class:"table-container"},c:f}},ee._componentRegistry=new Map,ee.render=function(e,t,r){var n,i,a,s=ie(e,"string")?document.querySelector(e):e;if(!s)return{object_type:"error",component_id:null,object_handle_in_dom:null,status_code:"error=target_element_not_found"};var l,c=(null===(n=r.o)||void 0===n?void 0:n.id)||ee.uuid();try{l=ee.createDOM(r)}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=render_failed:".concat(e.message)}}l.setAttribute("data-bw_id",c);try{switch(t){case"replace":s.parentNode.replaceChild(l,s);break;case"prepend":s.insertBefore(l,s.firstChild);break;case"append":s.appendChild(l);break;case"before":s.parentNode.insertBefore(l,s);break;case"after":s.parentNode.insertBefore(l,s.nextSibling);break;default:throw new Error("Invalid position: ".concat(t))}}catch(e){return{object_type:"error",component_id:c,object_handle_in_dom:null,status_code:"error=insertion_failed:".concat(e.message)}}var d={object_type:r.t||"element",component_id:c,object_handle_in_dom:l,status_code:"success",_taco:o({},r),_state:o({},(null===(i=r.o)||void 0===i?void 0:i.state)||{}),_mounted:!0,get element(){return this.object_handle_in_dom},getState:function(){return o({},this._state)},setState:function(e){var t;return this._state=o(o({},this._state),e),null!==(t=this._taco.o)&&void 0!==t&&t.onStateChange&&this._taco.o.onStateChange(this._state,e),this},update:function(){var e;if(!this._mounted||!this.element)return this;var t=this.element.parentNode;this._taco.o&&(this._taco.o.state=this._state);var r=ee.createDOM(this._taco);return r.setAttribute("data-bw_id",c),t.replaceChild(r,this.element),this.object_handle_in_dom=r,null!==(e=this._taco.o)&&void 0!==e&&e.onUpdate&&this._taco.o.onUpdate(r,this._state),this},getProp:function(e){var t;return null===(t=this._taco.a)||void 0===t?void 0:t[e]},setProp:function(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:function(){return this._taco.c},setContent:function(e){return this._taco.c=e,this.element&&(ie(e,"string")?this.element.textContent=e:this.update()),this},addClass:function(e){return this.element&&this.element.classList.add(e),this},removeClass:function(e){return this.element&&this.element.classList.remove(e),this},toggleClass:function(e){return this.element&&this.element.classList.toggle(e),this},hasClass:function(e){return!!this.element&&this.element.classList.contains(e)},show:function(){return this.element&&(this.element.style.display=""),this},hide:function(){return this.element&&(this.element.style.display="none"),this},on:function(e,t){return this.element&&this.element.addEventListener(e,t),this},off:function(e,t){return this.element&&this.element.removeEventListener(e,t),this},destroy:function(){var e;return this._mounted?(null!==(e=this._taco.o)&&void 0!==e&&e.unmount&&this._taco.o.unmount(this.element),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),ee._componentRegistry.delete(c),this._mounted=!1,this.object_handle_in_dom=null,this.status_code="destroyed",this):this}};return ee._componentRegistry.set(c,d),null!==(a=r.o)&&void 0!==a&&a.mounted&&r.o.mounted(l,d),d},ee.getComponent=function(e){return ee._componentRegistry.get(e)||null},ee.getAllComponents=function(){return new Map(ee._componentRegistry)},Object.entries(K).forEach(function(e){var t=a(e,2),r=t[0],n=t[1];r.startsWith("make")&&(ee[r]=n)}),ee.make=V,ee.BCCL=G,ee.variantClass=W,Object.entries(K).forEach(function(e){var t=a(e,2),r=t[0],n=t[1];if(r.startsWith("make")){var o="create"+r.substring(4);ee[o]=function(e){var t=n(e);return ee.renderComponent(t)}}}),ee._isBrowser&&"undefined"!=typeof window&&(window.bw=ee),ee});
42
42
  //# sourceMappingURL=bitwrench-lean.es5.min.js.map