"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[1],{265:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEntrypoint=function(e,t,n){var _;function l(_){var l,a,c;try{console.log("hydrating",e,_);const f=document.getElementById(`${e}-${_}-hydration-data`),s=null!==(l=window.__outsmartly_state_hook_v1)&&void 0!==l?l:{};window.__orly__&&window.__orly__({event:"HYDRATE",payload:{time:window.performance.now(),featureId:e,sectionId:_}});const d=Object.assign(Object.assign(Object.assign({},null!==(a=window.__outsmartly_previews__&&window.__outsmartly_previews__[e])&&void 0!==a?a:JSON.parse(null!==(c=null==f?void 0:f.textContent)&&void 0!==c?c:"{}")),s),{apps:(null==n?void 0:n.length)?(0,u.buildAppState)(n,void 0):{}}),{useSharedState:p}=d;(0,o.hydrate)((0,r.jsx)(i.PreactContext.Provider,{value:{useSharedState:p},children:(0,r.jsx)(t,Object.assign({},d))}),document.getElementById(`${e}-${_}`))}catch(e){console.error("hydration error",e)}}window.__outsmartly_previews__&&(window.__outsmartly_previews_hydrate__=null!==(_=window.__outsmartly_previews_hydrate__)&&void 0!==_?_:{},window.__outsmartly_previews_hydrate__[e]=l);try{window.__hydration_handler__[e].push=l,function(){for(;window.__hydration_handler__[e].length;){var t=window.__hydration_handler__[e].shift();t&&l(t)}}()}catch(e){console.error(e)}};const r=n(0),o=n(4),i=n(142),u=n(218)},264:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createFeature=function(e,t){return"undefined"==typeof window?(0,r.jsx)("div",{id:t,children:e}):e};const r=n(0)},266:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStateEntrypoint=function(e){var t,n;const r=document.getElementById("global-state"),o=e(null!==(t=window.__outsmartly_previews_global_state_)&&void 0!==t?t:JSON.parse(null!==(n=null==r?void 0:r.textContent)&&void 0!==n?n:"{}"));window.__outsmartly_state_hook_v1=o}},2:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{l(r.next(e))}catch(e){i(e)}}function _(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,_)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.applyHandleSelectors=t.evaluatePredicate=t.evaluateSelector=t.not=t.or=t.and=t.truthy=t.equals=t.pipe=t.find=t.filter=t.map=t.pickFields=t.selectPaths=t.selectPath=t.buildAppState=t.useBento=t.createStateEntrypoint=t.createEntrypoint=t.createFeature=t.BentoUI=void 0,t.getAssignment=function(e){return"undefined"!=typeof location&&location.hostname.includes("bento")?new URL(location.href).searchParams.get(`__orly_${e}`):"undefined"!=typeof window&&window.__APP_CONFIG__&&"function"==typeof window.__APP_CONFIG__.getAssignedVariation?window.__APP_CONFIG__.getAssignedVariation(e):null},t.logOutcome=function(e){"undefined"!=typeof window&&window.__APP_CONFIG__&&"function"==typeof window.__APP_CONFIG__.outcome&&window.__APP_CONFIG__.outcome(e)},t.getLazyState=function(e,t){return i(this,void 0,void 0,(function*(){try{const n=yield fetch("/bento-lazy-state",{method:"POST",body:JSON.stringify({key:e,params:t})});return yield n.json()}catch(e){return void console.error(e)}}))};var u=n(263);Object.defineProperty(t,"BentoUI",{enumerable:!0,get:function(){return u.BentoUI}});var _=n(264);Object.defineProperty(t,"createFeature",{enumerable:!0,get:function(){return _.createFeature}});var l=n(265);Object.defineProperty(t,"createEntrypoint",{enumerable:!0,get:function(){return l.createEntrypoint}});var a=n(266);Object.defineProperty(t,"createStateEntrypoint",{enumerable:!0,get:function(){return a.createStateEntrypoint}});var c=n(142);Object.defineProperty(t,"useBento",{enumerable:!0,get:function(){return c.useBento}});var f=n(218);Object.defineProperty(t,"buildAppState",{enumerable:!0,get:function(){return f.buildAppState}}),o(n(267),t);var s=n(268);Object.defineProperty(t,"selectPath",{enumerable:!0,get:function(){return s.selectPath}}),Object.defineProperty(t,"selectPaths",{enumerable:!0,get:function(){return s.selectPaths}}),Object.defineProperty(t,"pickFields",{enumerable:!0,get:function(){return s.pickFields}}),Object.defineProperty(t,"map",{enumerable:!0,get:function(){return s.map}}),Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return s.filter}}),Object.defineProperty(t,"find",{enumerable:!0,get:function(){return s.find}}),Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return s.pipe}}),Object.defineProperty(t,"equals",{enumerable:!0,get:function(){return s.equals}}),Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return s.truthy}}),Object.defineProperty(t,"and",{enumerable:!0,get:function(){return s.and}}),Object.defineProperty(t,"or",{enumerable:!0,get:function(){return s.or}}),Object.defineProperty(t,"not",{enumerable:!0,get:function(){return s.not}}),Object.defineProperty(t,"evaluateSelector",{enumerable:!0,get:function(){return s.evaluateSelector}}),Object.defineProperty(t,"evaluatePredicate",{enumerable:!0,get:function(){return s.evaluatePredicate}}),Object.defineProperty(t,"applyHandleSelectors",{enumerable:!0,get:function(){return s.applyHandleSelectors}})},267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},263:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BentoUI=void 0,function(e){e.globalState=function(e){return e},e.sharedState=function(e){return t=>{const n=e(t);return{useSharedState:()=>n}}},e.variation=function(e){return e},e.feature=function(e){return e},e.route=function(e){return e},e.lazyState=function(e){return e},e.lazyResolver=function(e){return e}}(n||(t.BentoUI=n={}))},142:function(e,t,n){var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o");const{useSharedState:n}=e,o=r(e,["useSharedState"]),u=n();return Object.assign({useSharedStateStore:u},o)};const o=n(4),i=n(1);t.PreactContext=(0,o.createContext)(null)},4:(e,t,n)=>{n.r(t),n.d(t,{Component:()=>j,Fragment:()=>k,cloneElement:()=>Y,createContext:()=>K,createElement:()=>P,createRef:()=>O,h:()=>P,hydrate:()=>Z,isValidElement:()=>u,options:()=>o,render:()=>J,toChildArray:()=>H});var r,o,i,u,_,l,a,c,f,s,d,p,v,h={},y=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function w(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function P(e,t,n){var o,i,u,_={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:_[u]=t[u];if(arguments.length>2&&(_.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===_[u]&&(_[u]=e.defaultProps[u]);return S(e,_,o,i,null)}function S(e,t,n,r,u){var _={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++i:u,__i:-1,__u:0};return null==u&&null!=o.vnode&&o.vnode(_),_}function O(){return{current:null}}function k(e){return e.children}function j(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;tt&&_.sort(c),e=_.shift(),t=_.length,C(e)}finally{_.length=U.__r=0}}function N(e,t,n,r,o,i,u,_,l,a,c){var f,s,d,p,v,m,b,g=r&&r.__k||y,w=t.length;for(l=F(n,t,g,l,w),f=0;f0?u=e.__k[i]=S(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):e.__k[i]=u,l=i+s,u.__=e,u.__b=e.__b+1,_=null,-1!=(a=u.__i=R(u,n,l,f))&&(f--,(_=n[a])&&(_.__u|=2)),null==_||null==_.__v?(-1==a&&(o>c?s--:ol?s--:s++,u.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(c?1:0))for(o=n-1,i=n+1;o>=0||i=0?o--:i++])&&!(2&a.__u)&&_==a.key&&l==a.type)return u;return-1}function I(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n:n+"px"}function M(e,t,n,r,o){var i,u;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||I(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(f,"$1")),u=t.toLowerCase(),t=u in e||"onFocusOut"==t||"onFocusIn"==t?u.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,i?p:d,i)):e.removeEventListener(t,i?p:d,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function $(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=s++;else if(t.t0?e:b(e)?e.map(q):g({},e)}function V(e,t,n,i,u,_,l,a,c){var f,s,d,p,v,y,m,g=n.props||h,P=t.props,S=t.type;if("svg"==S?u="http://www.w3.org/2000/svg":"math"==S?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),null!=_)for(f=0;f<_.length;f++)if((v=_[f])&&"setAttribute"in v==!!S&&(S?v.localName==S:3==v.nodeType)){e=v,_[f]=null;break}if(null==e){if(null==S)return document.createTextNode(P);e=document.createElementNS(u,S,P.is&&P),a&&(o.__m&&o.__m(t,_),a=!1),_=null}if(null==S)g===P||a&&e.data==P||(e.data=P);else{if(_=_&&r.call(e.childNodes),!a&&null!=_)for(g={},f=0;f2&&(l.children=arguments.length>3?r.call(arguments,2):n),S(e.type,l,o||e.key,i||e.ref,null)}function K(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+v++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,o={__e:function(e,t,n,r){for(var o,i,u;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),u=o.__d),u)return o.__E=o}catch(t){e=t}throw e}},i=0,u=function(e){return null!=e&&void 0===e.constructor},j.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},j.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},j.prototype.render=k,_=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},U.__r=0,f=/(PointerCapture)$|Capture$/i,s=0,d=$(!1),p=$(!0),v=0},1:(e,t,n)=>{n.r(t),n.d(t,{useCallback:()=>k,useContext:()=>j,useDebugValue:()=>E,useEffect:()=>g,useErrorBoundary:()=>C,useId:()=>x,useImperativeHandle:()=>S,useLayoutEffect:()=>w,useMemo:()=>O,useReducer:()=>b,useRef:()=>P,useState:()=>m});var r,o,i,u,_=n(4),l=0,a=[],c=_.options,f=c.__b,s=c.__r,d=c.diffed,p=c.__c,v=c.unmount,h=c.__;function y(e,t){c.__h&&c.__h(o,e,l||t),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return l=1,b(R,e)}function b(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):R(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var u=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!_||_.call(this,e,t,n);var o=i.__c.props!==e;return r.some((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),_&&_.call(this,e,t,n)||o};o.__f=!0;var _=o.shouldComponentUpdate,l=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=_;_=void 0,u(e,t,n),_=r}l&&l.call(this,e,t,n)},o.shouldComponentUpdate=u}return i.__N||i.__}function g(e,t){var n=y(r++,3);!c.__s&&H(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function w(e,t){var n=y(r++,4);!c.__s&&H(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function P(e){return l=5,O((function(){return{current:e}}),[])}function S(e,t,n){l=6,w((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function O(e,t){var n=y(r++,7);return H(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function k(e,t){return l=8,O((function(){return e}),t)}function j(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function E(e,t){c.useDebugValue&&c.useDebugValue(t?t(e):e)}function C(e){var t=y(r++,10),n=m();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function x(){var e=y(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function A(){for(var e;e=a.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(F),t.__h.some(T),t.__h=[]}catch(n){t.__h=[],c.__e(n,e.__v)}}}c.__b=function(e){o=null,f&&f(e)},c.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),h&&h(e,t)},c.__r=function(e){s&&s(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.some((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.some(F),t.__h.some(T),t.__h=[],r=0)),i=o},c.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==a.push(t)&&u===c.requestAnimationFrame||((u=c.requestAnimationFrame)||N)(A)),t.__H.__.some((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),i=o=null},c.__c=function(e,t){t.some((function(e){try{e.__h.some(F),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.__e(n,e.__v)}})),p&&p(e,t)},c.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some((function(e){try{F(e)}catch(e){t=e}})),n.__H=void 0,t&&c.__e(t,n.__v))};var U="function"==typeof requestAnimationFrame;function N(e){var t,n=function(){clearTimeout(r),U&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);U&&(t=requestAnimationFrame(n))}function F(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function T(e){var t=o;e.__c=e.__(),o=t}function H(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function R(e,t){return"function"==typeof t?t(e):t}},0:(e,t,n)=>{n.r(t),n.d(t,{Fragment:()=>r.Fragment,jsx:()=>a,jsxAttr:()=>d,jsxDEV:()=>a,jsxEscape:()=>p,jsxTemplate:()=>c,jsxs:()=>a});var r=n(4),o=/["&<]/;function i(e){if(0===e.length||!1===o.test(e))return e;for(var t=0,n=0,r="",i="";n{Object.defineProperty(t,"__esModule",{value:!0}),t.selectPath=function(e){return{op:"get",path:e}},t.selectPaths=function(e){return{op:"values",paths:e}},t.pickFields=function(e){return{op:"pick",fields:e}},t.map=function(e){return{op:"map",selector:e}},t.filter=function(e){return{op:"filter",predicate:e}},t.find=function(e){return{op:"find",predicate:e}},t.pipe=function(...e){return{op:"pipe",steps:e}},t.equals=function(e,t){return{op:"eq",path:e,value:t}},t.truthy=function(e){return{op:"truthy",path:e}},t.and=function(...e){return{op:"and",predicates:e}},t.or=function(...e){return{op:"or",predicates:e}},t.not=function(e){return{op:"not",predicate:e}}},270:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateSelector=function(e,t){return o.evaluateSelector(e,t)},t.evaluatePredicate=function(e,t){return o.evaluatePredicate(e,t)},t.applyHandleSelectors=function(e,t,n,r={error:"keyNotFound"}){return o.applyHandleSelectors(e,t,n,r)};const r=n(219),o=new Function(`${r.SELECTOR_EVALUATOR_SOURCE}; return { evaluateSelector, evaluatePredicate, applyHandleSelectors };`)()},219:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SELECTOR_EVALUATOR_SOURCE=void 0,t.SELECTOR_EVALUATOR_SOURCE=String.raw` function getAtPath(value, path) { let current = value; for (let i = 0; i < path.length; i++) { if (current == null) { return undefined; } current = current[path[i]]; } return current; } function evaluatePredicate(value, predicate) { switch (predicate.op) { case 'eq': return getAtPath(value, predicate.path) === predicate.value; case 'truthy': return Boolean(getAtPath(value, predicate.path)); case 'and': { for (let i = 0; i < predicate.predicates.length; i++) { if (!evaluatePredicate(value, predicate.predicates[i])) { return false; } } return true; } case 'or': { for (let i = 0; i < predicate.predicates.length; i++) { if (evaluatePredicate(value, predicate.predicates[i])) { return true; } } return false; } case 'not': return !evaluatePredicate(value, predicate.predicate); default: return false; } } function evaluateSelector(value, selector) { switch (selector.op) { case 'get': return getAtPath(value, selector.path); case 'values': { const out = []; for (let i = 0; i < selector.paths.length; i++) { out.push(getAtPath(value, selector.paths[i])); } return out; } case 'pick': { if (value == null || typeof value !== 'object') { return undefined; } const out = {}; for (let i = 0; i < selector.fields.length; i++) { const field = selector.fields[i]; out[field] = value[field]; } return out; } case 'map': { if (!Array.isArray(value)) { return undefined; } const out = []; for (let i = 0; i < value.length; i++) { out.push(evaluateSelector(value[i], selector.selector)); } return out; } case 'filter': { if (!Array.isArray(value)) { return undefined; } const out = []; for (let i = 0; i < value.length; i++) { if (evaluatePredicate(value[i], selector.predicate)) { out.push(value[i]); } } return out; } case 'find': { if (!Array.isArray(value)) { return undefined; } for (let i = 0; i < value.length; i++) { if (evaluatePredicate(value[i], selector.predicate)) { return value[i]; } } return undefined; } case 'pipe': { let current = value; for (let i = 0; i < selector.steps.length; i++) { current = evaluateSelector(current, selector.steps[i]); } return current; } default: return undefined; } } function applyHandleSelectors(cacheItems, handles, selectors, notFoundError) { const out = {}; for (let i = 0; i < handles.length; i++) { const handle = handles[i]; const value = cacheItems[handle]; if (value === undefined) { out[handle] = notFoundError; continue; } const selector = selectors && selectors[handle]; out[handle] = selector ? evaluateSelector(value, selector) : value; } return out; } `.trim()},268:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SELECTOR_EVALUATOR_SOURCE=t.applyHandleSelectors=t.evaluatePredicate=t.evaluateSelector=t.not=t.or=t.and=t.truthy=t.equals=t.pipe=t.find=t.filter=t.map=t.pickFields=t.selectPaths=t.selectPath=void 0;var r=n(269);Object.defineProperty(t,"selectPath",{enumerable:!0,get:function(){return r.selectPath}}),Object.defineProperty(t,"selectPaths",{enumerable:!0,get:function(){return r.selectPaths}}),Object.defineProperty(t,"pickFields",{enumerable:!0,get:function(){return r.pickFields}}),Object.defineProperty(t,"map",{enumerable:!0,get:function(){return r.map}}),Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return r.filter}}),Object.defineProperty(t,"find",{enumerable:!0,get:function(){return r.find}}),Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return r.pipe}}),Object.defineProperty(t,"equals",{enumerable:!0,get:function(){return r.equals}}),Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return r.truthy}}),Object.defineProperty(t,"and",{enumerable:!0,get:function(){return r.and}}),Object.defineProperty(t,"or",{enumerable:!0,get:function(){return r.or}}),Object.defineProperty(t,"not",{enumerable:!0,get:function(){return r.not}});var o=n(270);Object.defineProperty(t,"evaluateSelector",{enumerable:!0,get:function(){return o.evaluateSelector}}),Object.defineProperty(t,"evaluatePredicate",{enumerable:!0,get:function(){return o.evaluatePredicate}}),Object.defineProperty(t,"applyHandleSelectors",{enumerable:!0,get:function(){return o.applyHandleSelectors}});var i=n(219);Object.defineProperty(t,"SELECTOR_EVALUATOR_SOURCE",{enumerable:!0,get:function(){return i.SELECTOR_EVALUATOR_SOURCE}})},218:(e,t,n)=>{n.r(t),n.d(t,{appHook:()=>B,buildAppState:()=>D});var r=n(4),o=n(1),i=Symbol.for("preact-signals");function u(){if(f>1)f--;else{var e,t=!1;for(function(){var e=v;for(v=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==c;){var n=c;for(c=void 0,s++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&g(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(s=0,f--,t)throw e}}var _=void 0;function l(e){var t=_;_=void 0;try{return e()}finally{_=t}}var a,c=void 0,f=0,s=0,d=0,p=0,v=void 0,h=0;function y(e){if(void 0!==_){var t=e.n;if(void 0===t||t.t!==_)return t={i:0,S:e,p:_.s,n:void 0,t:_,e:void 0,x:void 0,r:t},void 0!==_.s&&(_.s.n=t),_.s=t,e.n=t,32&_.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=_.s,t.n=void 0,_.s.n=t,_.s=t),t}}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function b(e,t){return new m(e,t)}function g(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function w(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function P(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function S(e,t){m.call(this,void 0),this.x=e,this.s=void 0,this.g=h-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function O(e,t){return new S(e,t)}function k(e){var t=e.m;if(e.m=void 0,"function"==typeof t){f++;var n=_;_=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,j(e),t}finally{_=n,u()}}}function j(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,k(e)}function E(e){if(_!==this)throw new Error("Out-of-order effect");P(this),_=e,this.f&=-2,8&this.f&&j(this),u()}function C(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,a&&a.push(this)}function x(e,t){var n=new C(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}m.prototype.brand=i,m.prototype.h=function(){return!0},m.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:l((function(){var e;null==(e=t.W)||e.call(t)})))},m.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&l((function(){var e;null==(e=t.Z)||e.call(t)})))}},m.prototype.subscribe=function(e){var t=this;return x((function(){var n=t.value,r=_;_=void 0;try{e(n)}finally{_=r}}),{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){var e=_;_=void 0;try{return this.value}finally{_=e}},Object.defineProperty(m.prototype,"value",{get:function(){var e=y(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(s>100)throw new Error("Cycle detected");!function(e){0!==f&&0===s&&e.l!==p&&(e.l=p,v={S:e,v:e.v,i:e.i,o:v})}(this),this.v=e,this.i++,h++,f++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{u()}}}}),S.prototype=new m,S.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===h)return!0;if(this.g=h,this.f|=1,this.i>0&&!g(this))return this.f&=-2,!0;var e=_;try{w(this),_=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return _=e,P(this),this.f&=-2,!0},S.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}m.prototype.S.call(this,e)},S.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},S.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(S.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=y(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),C.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},C.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,k(this),w(this),f++;var e=_;return _=this,E.bind(this,e)},C.prototype.N=function(){2&this.f||(this.f|=2,this.u=c,c=this)},C.prototype.d=function(){this.f|=8,1&this.f||j(this)},C.prototype.dispose=function(){this.d()};var A,U,N="undefined"!=typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,F=[];function T(e,t){r.options[e]=t.bind(null,r.options[e]||function(){})}function H(e){if(U){var t=U;U=void 0,t()}U=e&&e.S()}function R(e){var t=this,n=e.data,i=function(e){return(0,o.useMemo)((function(){return b(e,undefined)}),[])}(n);i.value=n;var u=(0,o.useMemo)((function(){for(var e=t,n=t.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var o=O((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""})),u=O((function(){return!Array.isArray(o.value)&&!(0,r.isValidElement)(o.value)})),_=x((function(){if(this.N=L,u.value){var t=o.value;e.__v&&e.__v.__e&&3===e.__v.__e.nodeType&&(e.__v.__e.data=t)}})),l=t.__$u.d;return t.__$u.d=function(){_(),l.call(this)},[u,o]}),[]),_=u[0],l=u[1];return _.value?l.peek():l.value}function I(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=b(n),u=n.peek();return{o:function(e,t){i.value=e,u=e.peek()},d:x((function(){this.N=L;var n=i.value.value;u!==n?(u=void 0,o?e[t]=n:null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n)):u=void 0}))}}x((function(){A=this.N}))(),R.displayName="ReactiveTextNode",Object.defineProperties(m.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:R},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),T("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof m&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),T("__r",(function(e,t){if(e(t),t.type!==r.Fragment){H();var n,o=t.__c;o&&(o.__$f&=-2,void 0===(n=o.__$u)&&(o.__$u=n=function(e,t){var n;return x((function(){n=this}),{name:t}),n.c=e,n}((function(){var e;N&&(null==(e=n.y)||e.call(n)),o.__$f|=1,o.setState({})}),"function"==typeof t.type?t.type.displayName||t.type.name:""))),H(n)}})),T("__e",(function(e,t,n,r){H(),e(t,n,r)})),T("diffed",(function(e,t){var n;if(H(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var u in i){var _=i[u];void 0===_||u in r||(_.d(),i[u]=void 0)}else i={},n.U=i;for(var l in r){var a=i[l],c=r[l];void 0===a?(a=I(n,l,c),i[l]=a):a.o(c,o)}for(var f in r)o[f]=r[f]}}e(t)})),T("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}t.__np=void 0}else{var u=t.__c;if(u){var _=u.__$u;_&&(u.__$u=void 0,_.d())}}e(t)})),T("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),r.Component.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&void 0!==n.s;for(var o in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var i=2&this.__$f;if(!(r||i||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var u in e)if("__source"!==u&&e[u]!==this.props[u])return!0;for(var _ in this.props)if(!(_ in e))return!0;return!1},"undefined"==typeof requestAnimationFrame&&setTimeout;var M=function(e){queueMicrotask((function(){queueMicrotask(e)}))};function $(){!function(e){if(f>0)return e();p=++d,f++;try{return e()}finally{u()}}((function(){for(var e;e=F.shift();)A.call(e)}))}function L(){1===F.push(this)&&(r.options.requestAnimationFrame||M)($)}function B(e){const t=window.__BENTO_BRIDGE__;if(!t)throw new Error("appHook: __BENTO_BRIDGE__ not found");const{namespace:n,selectors:r,actions:o}=e,i={},u=(window.__BENTO_INITIAL_STATE__??{})[n],_=[];let l=!1;for(const[e,o]of Object.entries(r)){const r=b(o(u));_.push({sig:r,selectorFn:o}),t.subscribeSlice(n,(e=>{l&&(r.value=o(e))})),i[e]=r}const a=b(!1);queueMicrotask((()=>{l=!0;const e=t.getSlice(n);for(const{sig:t,selectorFn:n}of _){const r=n(e);t.peek()!==r&&(t.value=r)}"function"==typeof t.subscribeSliceRegistered&&t.subscribeSliceRegistered(n,(()=>{a.value=!0}))}));for(const[e,n]of Object.entries(o))i[e]=(...e)=>{const r=n(...e);return t.apply(r)};return"ready"in i?console.warn(`appHook: descriptor "${n}" defines its own "ready" key; the platform readiness signal is not attached`):i.ready=a,i}function D(e,t){if("undefined"==typeof window){const n={};for(const r of e){const e=t?.[r.namespace],o=r.selectors??{},i=r.actions??{},u={};for(const[t,n]of Object.entries(o))u[t]=b(n(e));for(const[e]of Object.entries(i))u[e]=async()=>{};"ready"in u||(u.ready=b(!1)),n[r.namespace]=u}return n}const n={};for(const t of e)n[t.namespace]=B(t);return n}}}]);