@constructor-io/constructorio-ui-autocomplete 1.19.0 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constructorio-ui-autocomplete-bundled.js +1 -1
- package/lib/cjs/types.js +17 -0
- package/lib/cjs/utils.js +6 -4
- package/lib/cjs/version.js +1 -1
- package/lib/mjs/types.js +14 -1
- package/lib/mjs/utils.js +6 -4
- package/lib/mjs/version.js +1 -1
- package/lib/types/types.d.ts +24 -2
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ Error generating stack: `+o.message+`
|
|
|
33
33
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gv=typeof WeakMap=="function"?WeakMap:Map;function gd(e,t,n){n=Ct(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oo||(oo=!0,kl=r),fl(e,t)},n}function md(e,t,n){n=Ct(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){fl(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Na(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new gv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Nv.bind(null,e,t,n),t.then(e,e))}function Aa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pa(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ct(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e)}var mv=Nt.ReactCurrentOwner,Fe=!1;function Pe(e,t,n,r){t.child=e===null?$f(t,null,n,r):jn(t,e.child,n,r)}function Da(e,t,n,r,i){n=n.render;var o=t.ref;return zn(t,i),r=os(e,t,n,r,o,i),n=us(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(fe&&n&&Ql(t),t.flags|=1,Pe(e,t,r,i),t.child)}function Ma(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!gs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,yd(e,t,o,r,i)):(e=qi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(u,r)&&e.ref===t.ref)return Ot(e,t,i)}return t.flags|=1,e=$t(o,r),e.ref=t.ref,e.return=t,t.child=e}function yd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Or(o,r)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Fe=!0);else return t.lanes=e.lanes,Ot(e,t,i)}return dl(e,t,n,r,i)}function wd(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(An,be),be|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(An,be),be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ue(An,be),be|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ue(An,be),be|=r;return Pe(e,t,i,n),t.child}function _d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dl(e,t,n,r,i){var o=Be(n)?fn:Ae.current;return o=Bn(t,o),zn(t,i),n=os(e,t,n,r,o,i),r=us(),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ot(e,t,i)):(fe&&r&&Ql(t),t.flags|=1,Pe(e,t,n,i),t.child)}function La(e,t,n,r,i){if(Be(n)){var o=!0;$i(t)}else o=!1;if(zn(t,i),t.stateNode===null)Li(e,t),Qf(t,n,r),cl(t,n,r,i),r=!0;else if(e===null){var u=t.stateNode,l=t.memoizedProps;u.props=l;var s=u.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ze(c):(c=Be(n)?fn:Ae.current,c=Bn(t,c));var m=n.getDerivedStateFromProps,y=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==r||s!==c)&&Ia(t,u,r,c),zt=!1;var S=t.memoizedState;u.state=S,eo(t,r,u,i),s=t.memoizedState,l!==r||S!==s||qe.current||zt?(typeof m=="function"&&(al(t,n,m,r),s=t.memoizedState),(l=zt||Ca(t,n,l,r,S,s,c))?(y||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),u.props=r,u.state=s,u.context=c,r=l):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Wf(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:rt(t.type,l),u.props=c,y=t.pendingProps,S=u.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ze(s):(s=Be(n)?fn:Ae.current,s=Bn(t,s));var x=n.getDerivedStateFromProps;(m=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==y||S!==s)&&Ia(t,u,r,s),zt=!1,S=t.memoizedState,u.state=S,eo(t,r,u,i);var _=t.memoizedState;l!==y||S!==_||qe.current||zt?(typeof x=="function"&&(al(t,n,x,r),_=t.memoizedState),(c=zt||Ca(t,n,c,r,S,_,s)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,_,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,_,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),u.props=r,u.state=_,u.context=s,r=c):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),r=!1)}return pl(e,t,n,r,o,i)}function pl(e,t,n,r,i,o){_d(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&_a(t,n,!1),Ot(e,t,o);r=t.stateNode,mv.current=t;var l=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=jn(t,e.child,null,o),t.child=jn(t,null,l,o)):Pe(e,t,l,o),t.memoizedState=r.state,i&&_a(t,n,!0),t.child}function kd(e){var t=e.stateNode;t.pendingContext?wa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wa(e,t.context,!1),ts(e,t.containerInfo)}function za(e,t,n,r,i){return Un(),$l(i),t.flags|=256,Pe(e,t,n,r),t.child}var hl={dehydrated:null,treeContext:null,retryLane:0};function vl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sd(e,t,n){var r=t.pendingProps,i=de.current,o=!1,u=(t.flags&128)!==0,l;if((l=u)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(de,i&1),e===null)return ll(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,o?(r=t.mode,o=t.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=So(u,r,0,null),e=cn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=vl(n),t.memoizedState=hl,e):as(t,u));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return yv(e,t,u,r,l,i,n);if(o){o=r.fallback,u=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(u&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=$t(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=$t(l,o):(o=cn(o,u,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,u=e.child.memoizedState,u=u===null?vl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~n,t.memoizedState=hl,r}return o=e.child,e=o.sibling,r=$t(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function as(e,t){return t=So({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gi(e,t,n,r){return r!==null&&$l(r),jn(t,e.child,null,n),e=as(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yv(e,t,n,r,i,o,u){if(n)return t.flags&256?(t.flags&=-257,r=Zo(Error(L(422))),gi(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=So({mode:"visible",children:r.children},i,0,null),o=cn(o,i,u,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&jn(t,e.child,null,u),t.child.memoizedState=vl(u),t.memoizedState=hl,o);if(!(t.mode&1))return gi(e,t,u,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(L(419)),r=Zo(o,r,void 0),gi(e,t,u,r)}if(l=(u&e.childLanes)!==0,Fe||l){if(r=Ee,r!==null){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|u)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Tt(e,i),lt(r,e,i,-1))}return vs(),r=Zo(Error(L(421))),gi(e,t,u,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Av.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,He=Wt(i.nextSibling),Ve=t,fe=!0,ot=null,e!==null&&($e[Xe++]=Et,$e[Xe++]=xt,$e[Xe++]=dn,Et=e.id,xt=e.overflow,dn=t),t=as(t,r.children),t.flags|=4096,t)}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sl(e.return,t,n)}function eu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ed(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pe(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fa(e,n,t);else if(e.tag===19)Fa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(de,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),eu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&to(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}eu(t,!0,n,null,o);break;case"together":eu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Li(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=$t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wv(e,t,n){switch(t.tag){case 3:kd(t),Un();break;case 5:Xf(t);break;case 1:Be(t.type)&&$i(t);break;case 4:ts(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(Ji,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Sd(e,t,n):(ue(de,de.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);ue(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ed(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,wd(e,t,n)}return Ot(e,t,n)}var xd,gl,Cd,Id;xd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gl=function(){};Cd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sn(vt.current);var o=null;switch(n){case"input":i=qu(e,i),r=qu(e,r),o=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":i=ju(e,i),r=ju(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qi)}Hu(n,r);var u;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(u in l)l.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Sr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(u in l)!l.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&l[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(o||(o=[]),o.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Sr.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&se("scroll",e),o||l===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Id=function(e,t,n,r){n!==r&&(t.flags|=4)};function ir(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _v(e,t,n){var r=t.pendingProps;switch(Gl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Be(t.type)&&Gi(),Oe(t),null;case 3:return r=t.stateNode,bn(),ae(qe),ae(Ae),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ot!==null&&(xl(ot),ot=null))),gl(e,t),Oe(t),null;case 5:ns(t);var i=sn(Mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Cd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Oe(t),null}if(e=sn(vt.current),hi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[pt]=t,r[Pr]=o,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(i=0;i<ar.length;i++)se(ar[i],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":Ks(r,o),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},se("invalid",r);break;case"textarea":Gs(r,o),se("invalid",r)}Hu(n,o),i=null;for(var u in o)if(o.hasOwnProperty(u)){var l=o[u];u==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&pi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&pi(r.textContent,l,e),i=["children",""+l]):Sr.hasOwnProperty(u)&&l!=null&&u==="onScroll"&&se("scroll",r)}switch(n){case"input":oi(r),Qs(r,o,!0);break;case"textarea":oi(r),$s(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Qi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Jc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[pt]=t,e[Pr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(u=Vu(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;i<ar.length;i++)se(ar[i],e);i=r;break;case"source":se("error",e),i=r;break;case"img":case"image":case"link":se("error",e),se("load",e),i=r;break;case"details":se("toggle",e),i=r;break;case"input":Ks(e,r),i=qu(e,r),se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),se("invalid",e);break;case"textarea":Gs(e,r),i=ju(e,r),se("invalid",e);break;default:i=r}Hu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?tf(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Zc(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Er(e,s):typeof s=="number"&&Er(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Sr.hasOwnProperty(o)?s!=null&&o==="onScroll"&&se("scroll",e):s!=null&&Dl(e,o,s,u))}switch(n){case"input":oi(e),Qs(e,r,!1);break;case"textarea":oi(e),$s(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Pn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Qi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Oe(t),null;case 6:if(e&&t.stateNode!=null)Id(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=sn(Mr.current),sn(vt.current),hi(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(o=r.nodeValue!==n)&&(e=Ve,e!==null))switch(e.tag){case 3:pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ae(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&He!==null&&t.mode&1&&!(t.flags&128))Hf(),Un(),t.flags|=98560,o=!1;else if(o=hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[pt]=t}else Un(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),o=!1}else ot!==null&&(xl(ot),ot=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?ke===0&&(ke=3):vs())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return bn(),gl(e,t),e===null&&Nr(t.stateNode.containerInfo),Oe(t),null;case 10:return Jl(t.type._context),Oe(t),null;case 17:return Be(t.type)&&Gi(),Oe(t),null;case 19:if(ae(de),o=t.memoizedState,o===null)return Oe(t),null;if(r=(t.flags&128)!==0,u=o.rendering,u===null)if(r)ir(o,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=to(e),u!==null){for(t.flags|=128,ir(o,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(de,de.current&1|2),t.child}e=e.sibling}o.tail!==null&&me()>Vn&&(t.flags|=128,r=!0,ir(o,!1),t.lanes=4194304)}else{if(!r)if(e=to(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ir(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!fe)return Oe(t),null}else 2*me()-o.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,ir(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=me(),t.sibling=null,n=de.current,ue(de,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return hs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?be&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function kv(e,t){switch(Gl(t),t.tag){case 1:return Be(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(),ae(qe),ae(Ae),rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return bn(),null;case 10:return Jl(t.type._context),null;case 22:case 23:return hs(),null;case 24:return null;default:return null}}var mi=!1,Ne=!1,Sv=typeof WeakSet=="function"?WeakSet:Set,V=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function ml(e,t,n){try{n()}catch(r){ge(e,t,r)}}var qa=!1;function Ev(e,t){if(el=Vi,e=Nf(),Kl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,l=-1,s=-1,c=0,m=0,y=e,S=null;t:for(;;){for(var x;y!==n||i!==0&&y.nodeType!==3||(l=u+i),y!==o||r!==0&&y.nodeType!==3||(s=u+r),y.nodeType===3&&(u+=y.nodeValue.length),(x=y.firstChild)!==null;)S=y,y=x;for(;;){if(y===e)break t;if(S===n&&++c===i&&(l=u),S===o&&++m===r&&(s=u),(x=y.nextSibling)!==null)break;y=S,S=y.parentNode}y=x}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},Vi=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var a=_.memoizedProps,h=_.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?a:rt(t.type,a),h);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(E){ge(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return _=qa,qa=!1,_}function mr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ml(t,n,o)}i=i.next}while(i!==r)}}function _o(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rd(e){var t=e.alternate;t!==null&&(e.alternate=null,Rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[Pr],delete t[il],delete t[ov],delete t[uv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Td(e){return e.tag===5||e.tag===3||e.tag===4}function Ba(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(r!==4&&(e=e.child,e!==null))for(wl(e,t,n),e=e.sibling;e!==null;)wl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var Ce=null,it=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Od(e,t,n),n=n.sibling}function Od(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(fo,n)}catch{}switch(n.tag){case 5:Ne||Nn(n,t);case 6:var r=Ce,i=it;Ce=null,Mt(e,t,n),Ce=r,it=i,Ce!==null&&(it?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(it?(e=Ce,n=n.stateNode,e.nodeType===8?Qo(e.parentNode,n):e.nodeType===1&&Qo(e,n),Rr(e)):Qo(Ce,n.stateNode));break;case 4:r=Ce,i=it,Ce=n.stateNode.containerInfo,it=!0,Mt(e,t,n),Ce=r,it=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&ml(n,t,u),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Ne&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ge(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Mt(e,t,n),Ne=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Ua(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sv),t.forEach(function(r){var i=Pv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,u=t,l=u;e:for(;l!==null;){switch(l.tag){case 5:Ce=l.stateNode,it=!1;break e;case 3:Ce=l.stateNode.containerInfo,it=!0;break e;case 4:Ce=l.stateNode.containerInfo,it=!0;break e}l=l.return}if(Ce===null)throw Error(L(160));Od(o,u,i),Ce=null,it=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(c){ge(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nd(t,e),t=t.sibling}function Nd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nt(t,e),ft(e),r&4){try{mr(3,e,e.return),_o(3,e)}catch(a){ge(e,e.return,a)}try{mr(5,e,e.return)}catch(a){ge(e,e.return,a)}}break;case 1:nt(t,e),ft(e),r&512&&n!==null&&Nn(n,n.return);break;case 5:if(nt(t,e),ft(e),r&512&&n!==null&&Nn(n,n.return),e.flags&32){var i=e.stateNode;try{Er(i,"")}catch(a){ge(e,e.return,a)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,u=n!==null?n.memoizedProps:o,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Xc(i,o),Vu(l,u);var c=Vu(l,o);for(u=0;u<s.length;u+=2){var m=s[u],y=s[u+1];m==="style"?tf(i,y):m==="dangerouslySetInnerHTML"?Zc(i,y):m==="children"?Er(i,y):Dl(i,m,y,c)}switch(l){case"input":Bu(i,o);break;case"textarea":Yc(i,o);break;case"select":var S=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?Pn(i,!!o.multiple,x,!1):S!==!!o.multiple&&(o.defaultValue!=null?Pn(i,!!o.multiple,o.defaultValue,!0):Pn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Pr]=o}catch(a){ge(e,e.return,a)}}break;case 6:if(nt(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(a){ge(e,e.return,a)}}break;case 3:if(nt(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Rr(t.containerInfo)}catch(a){ge(e,e.return,a)}break;case 4:nt(t,e),ft(e);break;case 13:nt(t,e),ft(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ds=me())),r&4&&Ua(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(c=Ne)||m,nt(t,e),Ne=c):nt(t,e),ft(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!m&&e.mode&1)for(V=e,m=e.child;m!==null;){for(y=V=m;V!==null;){switch(S=V,x=S.child,S.tag){case 0:case 11:case 14:case 15:mr(4,S,S.return);break;case 1:Nn(S,S.return);var _=S.stateNode;if(typeof _.componentWillUnmount=="function"){r=S,n=S.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(a){ge(r,n,a)}}break;case 5:Nn(S,S.return);break;case 22:if(S.memoizedState!==null){ba(y);continue}}x!==null?(x.return=S,V=x):ba(y)}m=m.sibling}e:for(m=null,y=e;;){if(y.tag===5){if(m===null){m=y;try{i=y.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=y.stateNode,s=y.memoizedProps.style,u=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=ef("display",u))}catch(a){ge(e,e.return,a)}}}else if(y.tag===6){if(m===null)try{y.stateNode.nodeValue=c?"":y.memoizedProps}catch(a){ge(e,e.return,a)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;m===y&&(m=null),y=y.return}m===y&&(m=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:nt(t,e),ft(e),r&4&&Ua(e);break;case 21:break;default:nt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Td(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Er(i,""),r.flags&=-33);var o=Ba(e);_l(e,o,i);break;case 3:case 4:var u=r.stateNode.containerInfo,l=Ba(e);wl(e,l,u);break;default:throw Error(L(161))}}catch(s){ge(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xv(e,t,n){V=e,Ad(e)}function Ad(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var i=V,o=i.child;if(i.tag===22&&r){var u=i.memoizedState!==null||mi;if(!u){var l=i.alternate,s=l!==null&&l.memoizedState!==null||Ne;l=mi;var c=Ne;if(mi=u,(Ne=s)&&!c)for(V=i;V!==null;)u=V,s=u.child,u.tag===22&&u.memoizedState!==null?Ha(i):s!==null?(s.return=u,V=s):Ha(i);for(;o!==null;)V=o,Ad(o),o=o.sibling;V=i,mi=l,Ne=c}ja(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,V=o):ja(e)}}function ja(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||_o(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:rt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&xa(t,o,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xa(t,u,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var m=c.memoizedState;if(m!==null){var y=m.dehydrated;y!==null&&Rr(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Ne||t.flags&512&&yl(t)}catch(S){ge(t,t.return,S)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function ba(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Ha(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_o(4,t)}catch(s){ge(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ge(t,i,s)}}var o=t.return;try{yl(t)}catch(s){ge(t,o,s)}break;case 5:var u=t.return;try{yl(t)}catch(s){ge(t,u,s)}}}catch(s){ge(t,t.return,s)}if(t===e){V=null;break}var l=t.sibling;if(l!==null){l.return=t.return,V=l;break}V=t.return}}var Cv=Math.ceil,io=Nt.ReactCurrentDispatcher,cs=Nt.ReactCurrentOwner,Je=Nt.ReactCurrentBatchConfig,ee=0,Ee=null,ye=null,Ie=0,be=0,An=Zt(0),ke=0,qr=null,hn=0,ko=0,fs=0,yr=null,ze=null,ds=0,Vn=1/0,kt=null,oo=!1,kl=null,Qt=null,yi=!1,Ut=null,uo=0,wr=0,Sl=null,zi=-1,Fi=0;function De(){return ee&6?me():zi!==-1?zi:zi=me()}function Gt(e){return e.mode&1?ee&2&&Ie!==0?Ie&-Ie:sv.transition!==null?(Fi===0&&(Fi=hf()),Fi):(e=ie,e!==0||(e=window.event,e=e===void 0?16:kf(e.type)),e):1}function lt(e,t,n,r){if(50<wr)throw wr=0,Sl=null,Error(L(185));jr(e,n,r),(!(ee&2)||e!==Ee)&&(e===Ee&&(!(ee&2)&&(ko|=n),ke===4&&qt(e,Ie)),Ue(e,r),n===1&&ee===0&&!(t.mode&1)&&(Vn=me()+500,mo&&en()))}function Ue(e,t){var n=e.callbackNode;sh(e,t);var r=Hi(e,e===Ee?Ie:0);if(r===0)n!==null&&Js(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Js(n),t===1)e.tag===0?lv(Va.bind(null,e)):Uf(Va.bind(null,e)),rv(function(){!(ee&6)&&en()}),n=null;else{switch(vf(r)){case 1:n=ql;break;case 4:n=df;break;case 16:n=bi;break;case 536870912:n=pf;break;default:n=bi}n=Bd(n,Pd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pd(e,t){if(zi=-1,Fi=0,ee&6)throw Error(L(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Hi(e,e===Ee?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=lo(e,r);else{t=r;var i=ee;ee|=2;var o=Md();(Ee!==e||Ie!==t)&&(kt=null,Vn=me()+500,an(e,t));do try{Tv();break}catch(l){Dd(e,l)}while(1);Yl(),io.current=o,ee=i,ye!==null?t=0:(Ee=null,Ie=0,t=ke)}if(t!==0){if(t===2&&(i=$u(e),i!==0&&(r=i,t=El(e,i))),t===1)throw n=qr,an(e,0),qt(e,r),Ue(e,me()),n;if(t===6)qt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Iv(i)&&(t=lo(e,r),t===2&&(o=$u(e),o!==0&&(r=o,t=El(e,o))),t===1))throw n=qr,an(e,0),qt(e,r),Ue(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:on(e,ze,kt);break;case 3:if(qt(e,r),(r&130023424)===r&&(t=ds+500-me(),10<t)){if(Hi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=rl(on.bind(null,e,ze,kt),t);break}on(e,ze,kt);break;case 4:if(qt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var u=31-ut(r);o=1<<u,u=t[u],u>i&&(i=u),r&=~o}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cv(r/1960))-r,10<r){e.timeoutHandle=rl(on.bind(null,e,ze,kt),r);break}on(e,ze,kt);break;case 5:on(e,ze,kt);break;default:throw Error(L(329))}}}return Ue(e,me()),e.callbackNode===n?Pd.bind(null,e):null}function El(e,t){var n=yr;return e.current.memoizedState.isDehydrated&&(an(e,t).flags|=256),e=lo(e,t),e!==2&&(t=ze,ze=n,t!==null&&xl(t)),e}function xl(e){ze===null?ze=e:ze.push.apply(ze,e)}function Iv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!st(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qt(e,t){for(t&=~fs,t&=~ko,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ut(t),r=1<<n;e[n]=-1,t&=~r}}function Va(e){if(ee&6)throw Error(L(327));Fn();var t=Hi(e,0);if(!(t&1))return Ue(e,me()),null;var n=lo(e,t);if(e.tag!==0&&n===2){var r=$u(e);r!==0&&(t=r,n=El(e,r))}if(n===1)throw n=qr,an(e,0),qt(e,t),Ue(e,me()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,ze,kt),Ue(e,me()),null}function ps(e,t){var n=ee;ee|=1;try{return e(t)}finally{ee=n,ee===0&&(Vn=me()+500,mo&&en())}}function vn(e){Ut!==null&&Ut.tag===0&&!(ee&6)&&Fn();var t=ee;ee|=1;var n=Je.transition,r=ie;try{if(Je.transition=null,ie=1,e)return e()}finally{ie=r,Je.transition=n,ee=t,!(ee&6)&&en()}}function hs(){be=An.current,ae(An)}function an(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,nv(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(Gl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:bn(),ae(qe),ae(Ae),rs();break;case 5:ns(r);break;case 4:bn();break;case 13:ae(de);break;case 19:ae(de);break;case 10:Jl(r.type._context);break;case 22:case 23:hs()}n=n.return}if(Ee=e,ye=e=$t(e.current,null),Ie=be=t,ke=0,qr=null,fs=ko=hn=0,ze=yr=null,ln!==null){for(t=0;t<ln.length;t++)if(n=ln[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var u=o.next;o.next=i,r.next=u}n.pending=r}ln=null}return e}function Dd(e,t){do{var n=ye;try{if(Yl(),Di.current=ro,no){for(var r=pe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}no=!1}if(pn=0,Se=_e=pe=null,gr=!1,Lr=0,cs.current=null,n===null||n.return===null){ke=1,qr=t,ye=null;break}e:{var o=e,u=n.return,l=n,s=t;if(t=Ie,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,m=l,y=m.tag;if(!(m.mode&1)&&(y===0||y===11||y===15)){var S=m.alternate;S?(m.updateQueue=S.updateQueue,m.memoizedState=S.memoizedState,m.lanes=S.lanes):(m.updateQueue=null,m.memoizedState=null)}var x=Aa(u);if(x!==null){x.flags&=-257,Pa(x,u,l,o,t),x.mode&1&&Na(o,c,t),t=x,s=c;var _=t.updateQueue;if(_===null){var a=new Set;a.add(s),t.updateQueue=a}else _.add(s);break e}else{if(!(t&1)){Na(o,c,t),vs();break e}s=Error(L(426))}}else if(fe&&l.mode&1){var h=Aa(u);if(h!==null){!(h.flags&65536)&&(h.flags|=256),Pa(h,u,l,o,t),$l(Hn(s,l));break e}}o=s=Hn(s,l),ke!==4&&(ke=2),yr===null?yr=[o]:yr.push(o),o=u;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var d=gd(o,s,t);Ea(o,d);break e;case 1:l=s;var f=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Qt===null||!Qt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=md(o,l,t);Ea(o,E);break e}}o=o.return}while(o!==null)}zd(n)}catch(T){t=T,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(1)}function Md(){var e=io.current;return io.current=ro,e===null?ro:e}function vs(){(ke===0||ke===3||ke===2)&&(ke=4),Ee===null||!(hn&268435455)&&!(ko&268435455)||qt(Ee,Ie)}function lo(e,t){var n=ee;ee|=2;var r=Md();(Ee!==e||Ie!==t)&&(kt=null,an(e,t));do try{Rv();break}catch(i){Dd(e,i)}while(1);if(Yl(),ee=n,io.current=r,ye!==null)throw Error(L(261));return Ee=null,Ie=0,ke}function Rv(){for(;ye!==null;)Ld(ye)}function Tv(){for(;ye!==null&&!Zp();)Ld(ye)}function Ld(e){var t=qd(e.alternate,e,be);e.memoizedProps=e.pendingProps,t===null?zd(e):ye=t,cs.current=null}function zd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=kv(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,ye=null;return}}else if(n=_v(n,t,be),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);ke===0&&(ke=5)}function on(e,t,n){var r=ie,i=Je.transition;try{Je.transition=null,ie=1,Ov(e,t,n,r)}finally{Je.transition=i,ie=r}return null}function Ov(e,t,n,r){do Fn();while(Ut!==null);if(ee&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ah(e,o),e===Ee&&(ye=Ee=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yi||(yi=!0,Bd(bi,function(){return Fn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Je.transition,Je.transition=null;var u=ie;ie=1;var l=ee;ee|=4,cs.current=null,Ev(e,n),Nd(n,e),$h(tl),Vi=!!el,tl=el=null,e.current=n,xv(n),eh(),ee=l,ie=u,Je.transition=o}else e.current=n;if(yi&&(yi=!1,Ut=e,uo=i),o=e.pendingLanes,o===0&&(Qt=null),rh(n.stateNode),Ue(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(oo)throw oo=!1,e=kl,kl=null,e;return uo&1&&e.tag!==0&&Fn(),o=e.pendingLanes,o&1?e===Sl?wr++:(wr=0,Sl=e):wr=0,en(),null}function Fn(){if(Ut!==null){var e=vf(uo),t=Je.transition,n=ie;try{if(Je.transition=null,ie=16>e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,uo=0,ee&6)throw Error(L(331));var i=ee;for(ee|=4,V=e.current;V!==null;){var o=V,u=o.child;if(V.flags&16){var l=o.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(V=c;V!==null;){var m=V;switch(m.tag){case 0:case 11:case 15:mr(8,m,o)}var y=m.child;if(y!==null)y.return=m,V=y;else for(;V!==null;){m=V;var S=m.sibling,x=m.return;if(Rd(m),m===c){V=null;break}if(S!==null){S.return=x,V=S;break}V=x}}}var _=o.alternate;if(_!==null){var a=_.child;if(a!==null){_.child=null;do{var h=a.sibling;a.sibling=null,a=h}while(a!==null)}}V=o}}if(o.subtreeFlags&2064&&u!==null)u.return=o,V=u;else e:for(;V!==null;){if(o=V,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mr(9,o,o.return)}var d=o.sibling;if(d!==null){d.return=o.return,V=d;break e}V=o.return}}var f=e.current;for(V=f;V!==null;){u=V;var p=u.child;if(u.subtreeFlags&2064&&p!==null)p.return=u,V=p;else e:for(u=f;V!==null;){if(l=V,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:_o(9,l)}}catch(T){ge(l,l.return,T)}if(l===u){V=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,V=E;break e}V=l.return}}if(ee=i,en(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(fo,e)}catch{}r=!0}return r}finally{ie=n,Je.transition=t}}return!1}function Wa(e,t,n){t=Hn(n,t),t=gd(e,t,1),e=Kt(e,t,1),t=De(),e!==null&&(jr(e,1,t),Ue(e,t))}function ge(e,t,n){if(e.tag===3)Wa(e,e,n);else for(;t!==null;){if(t.tag===3){Wa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qt===null||!Qt.has(r))){e=Hn(n,e),e=md(t,e,1),t=Kt(t,e,1),e=De(),t!==null&&(jr(t,1,e),Ue(t,e));break}}t=t.return}}function Nv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(Ie&n)===n&&(ke===4||ke===3&&(Ie&130023424)===Ie&&500>me()-ds?an(e,0):fs|=n),Ue(e,t)}function Fd(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=De();e=Tt(e,t),e!==null&&(jr(e,t,n),Ue(e,n))}function Av(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fd(e,n)}function Pv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Fd(e,n)}var qd;qd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,wv(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,fe&&t.flags&1048576&&jf(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var i=Bn(t,Ae.current);zn(t,n),i=os(null,t,r,e,i,n);var o=us();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(o=!0,$i(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,es(t),i.updater=yo,t.stateNode=i,i._reactInternals=t,cl(t,r,e,n),t=pl(null,t,r,!0,o,n)):(t.tag=0,fe&&o&&Ql(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mv(r),e=rt(r,e),i){case 0:t=dl(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Da(null,t,r,e,n);break e;case 14:t=Ma(null,t,r,rt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),dl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),La(e,t,r,i,n);case 3:e:{if(kd(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Wf(e,t),eo(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Hn(Error(L(423)),t),t=za(e,t,r,n,i);break e}else if(r!==i){i=Hn(Error(L(424)),t),t=za(e,t,r,n,i);break e}else for(He=Wt(t.stateNode.containerInfo.firstChild),Ve=t,fe=!0,ot=null,n=$f(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===i){t=Ot(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Xf(t),e===null&&ll(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,u=i.children,nl(r,i)?u=null:o!==null&&nl(r,o)&&(t.flags|=32),_d(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&ll(t),null;case 13:return Sd(e,t,n);case 4:return ts(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Da(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,u=i.value,ue(Ji,r._currentValue),r._currentValue=u,o!==null)if(st(o.value,u)){if(o.children===i.children&&!qe.current){t=Ot(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){u=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ct(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),sl(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(L(341));u.lanes|=n,l=u.alternate,l!==null&&(l.lanes|=n),sl(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zn(t,n),i=Ze(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),Ma(e,t,r,i,n);case 15:return yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Li(e,t),t.tag=1,Be(r)?(e=!0,$i(t)):e=!1,zn(t,n),Qf(t,r,i),cl(t,r,i,n),pl(null,t,r,!0,e,n);case 19:return Ed(e,t,n);case 22:return wd(e,t,n)}throw Error(L(156,t.tag))};function Bd(e,t){return ff(e,t)}function Dv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ye(e,t,n,r){return new Dv(e,t,n,r)}function gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mv(e){if(typeof e=="function")return gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ll)return 11;if(e===zl)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=Ye(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qi(e,t,n,r,i,o){var u=2;if(r=e,typeof e=="function")gs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case kn:return cn(n.children,i,o,t);case Ml:u=8,i|=8;break;case Mu:return e=Ye(12,n,t,i|2),e.elementType=Mu,e.lanes=o,e;case Lu:return e=Ye(13,n,t,i),e.elementType=Lu,e.lanes=o,e;case zu:return e=Ye(19,n,t,i),e.elementType=zu,e.lanes=o,e;case Qc:return So(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wc:u=10;break e;case Kc:u=9;break e;case Ll:u=11;break e;case zl:u=14;break e;case Lt:u=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Ye(u,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function cn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=Qc,e.lanes=n,e.stateNode={isHidden:!1},e}function tu(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function nu(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zo(0),this.expirationTimes=zo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ms(e,t,n,r,i,o,u,l,s){return e=new Lv(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ye(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},es(o),e}function zv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_n,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ud(e){if(!e)return Yt;e=e._reactInternals;e:{if(mn(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(Be(n))return Bf(e,n,t)}return t}function jd(e,t,n,r,i,o,u,l,s){return e=ms(n,r,!0,e,i,o,u,l,s),e.context=Ud(null),n=e.current,r=De(),i=Gt(n),o=Ct(r,i),o.callback=t??null,Kt(n,o,i),e.current.lanes=i,jr(e,i,r),Ue(e,r),e}function Eo(e,t,n,r){var i=t.current,o=De(),u=Gt(i);return n=Ud(n),t.context===null?t.context=n:t.pendingContext=n,t=Ct(o,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(i,t,u),e!==null&&(lt(e,i,u,o),Pi(e,i,u)),u}function so(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ka(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ys(e,t){Ka(e,t),(e=e.alternate)&&Ka(e,t)}function Fv(){return null}var bd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ws(e){this._internalRoot=e}xo.prototype.render=ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Eo(e,t,null,null)};xo.prototype.unmount=ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){Eo(null,e,null,null)}),t[Rt]=null}};function xo(e){this._internalRoot=e}xo.prototype.unstable_scheduleHydration=function(e){if(e){var t=yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&_f(e)}};function _s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qa(){}function qv(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=so(u);o.call(c)}}var u=jd(t,r,e,0,null,!1,!1,"",Qa);return e._reactRootContainer=u,e[Rt]=u.current,Nr(e.nodeType===8?e.parentNode:e),vn(),u}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var c=so(s);l.call(c)}}var s=ms(e,0,!1,null,null,!1,!1,"",Qa);return e._reactRootContainer=s,e[Rt]=s.current,Nr(e.nodeType===8?e.parentNode:e),vn(function(){Eo(t,s,n,r)}),s}function Io(e,t,n,r,i){var o=n._reactRootContainer;if(o){var u=o;if(typeof i=="function"){var l=i;i=function(){var s=so(u);l.call(s)}}Eo(t,u,e,i)}else u=qv(n,t,e,i,r);return so(u)}gf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&(Bl(t,n|1),Ue(t,me()),!(ee&6)&&(Vn=me()+500,en()))}break;case 13:vn(function(){var r=Tt(e,1);if(r!==null){var i=De();lt(r,e,1,i)}}),ys(e,1)}};Ul=function(e){if(e.tag===13){var t=Tt(e,134217728);if(t!==null){var n=De();lt(t,e,134217728,n)}ys(e,134217728)}};mf=function(e){if(e.tag===13){var t=Gt(e),n=Tt(e,t);if(n!==null){var r=De();lt(n,e,t,r)}ys(e,t)}};yf=function(){return ie};wf=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Ku=function(e,t,n){switch(t){case"input":if(Bu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=go(r);if(!i)throw Error(L(90));$c(r),Bu(r,i)}}}break;case"textarea":Yc(e,n);break;case"select":t=n.value,t!=null&&Pn(e,!!n.multiple,t,!1)}};of=ps;uf=vn;var Bv={usingClientEntryPoint:!1,Events:[Hr,Cn,go,nf,rf,ps]},or={findFiberByHostInstance:un,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Uv={bundleType:or.bundleType,version:or.version,rendererPackageName:or.rendererPackageName,rendererConfig:or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=af(e),e===null?null:e.stateNode},findFiberByHostInstance:or.findFiberByHostInstance||Fv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wi.isDisabled&&wi.supportsFiber)try{fo=wi.inject(Uv),ht=wi}catch{}}Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bv;Ke.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_s(t))throw Error(L(200));return zv(e,t,null,n)};Ke.createRoot=function(e,t){if(!_s(e))throw Error(L(299));var n=!1,r="",i=bd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ms(e,1,!1,null,null,n,!1,r,i),e[Rt]=t.current,Nr(e.nodeType===8?e.parentNode:e),new ws(t)};Ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=af(t),e=e===null?null:e.stateNode,e};Ke.flushSync=function(e){return vn(e)};Ke.hydrate=function(e,t,n){if(!Co(t))throw Error(L(200));return Io(null,e,t,!0,n)};Ke.hydrateRoot=function(e,t,n){if(!_s(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",u=bd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=jd(t,null,e,1,n??null,i,!1,o,u),e[Rt]=t.current,Nr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new xo(t)};Ke.render=function(e,t,n){if(!Co(t))throw Error(L(200));return Io(null,e,t,!1,n)};Ke.unmountComponentAtNode=function(e){if(!Co(e))throw Error(L(40));return e._reactRootContainer?(vn(function(){Io(null,null,e,!1,function(){e._reactRootContainer=null,e[Rt]=null})}),!0):!1};Ke.unstable_batchedUpdates=ps;Ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Co(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return Io(e,t,n,!1,r)};Ke.version="18.2.0-next-9e3b772b8-20220608";function Hd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hd)}catch(e){console.error(e)}}Hd(),Uc.exports=Ke;var jv=Uc.exports,Ga=jv;Pu.createRoot=Ga.createRoot,Pu.hydrateRoot=Ga.hydrateRoot;var Vd={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vd);var tt=Vd.exports,ru={exports:{}},$a;function gt(){return $a||($a=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ru)),ru.exports}var iu={exports:{}},ou={exports:{}},uu={exports:{}},Xa;function Gn(){return Xa||(Xa=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uu)),uu.exports}var lu={exports:{}},Ya;function bv(){return Ya||(Ya=1,function(e){var t=Gn().default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var u=o.call(r,i||"default");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(lu)),lu.exports}var Ja;function Wd(){return Ja||(Ja=1,function(e){var t=Gn().default,n=bv();function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ou)),ou.exports}var Za;function mt(){return Za||(Za=1,function(e){var t=Wd();function n(i,o){for(var u=0;u<o.length;u++){var l=o[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,t(l.key),l)}}function r(i,o,u){return o&&n(i.prototype,o),u&&n(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(iu)),iu.exports}function Hv(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var su={exports:{}},ec;function Vv(){return ec||(ec=1,function(e){(function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(n){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),i=1;i<arguments.length;i++){var o=arguments[i];if(o!=null){o=Object(o);for(var u=Object.keys(Object(o)),l=0,s=u.length;s>l;l++){var c=u[l],m=Object.getOwnPropertyDescriptor(o,c);m!==void 0&&m.enumerable&&(r[c]=o[c])}}}return r}});var t=function(n){var r={user_agent:null,persist:!0,cookie_name_client_id:"ConstructorioID_client_id",cookie_name_session_id:"ConstructorioID_session_id",cookie_name_session_data:"ConstructorioID_session",cookie_domain:null,cookie_days_to_live:365,local_name_client_id:"_constructorio_search_client_id",local_name_session_id:"_constructorio_search_session_id",local_name_session_data:"_constructorio_search_session",on_node:typeof window>"u",session_is_new:null,client_id_storage_location:"cookie",session_id_storage_location:"local"};if(Object.assign(this,r,n),!this.client_id)if(!this.on_node&&this.persist){var i;this.client_id_storage_location==="cookie"&&(i=this.get_cookie(this.cookie_name_client_id)),this.client_id_storage_location==="local"&&(i=this.get_local_object(this.local_name_client_id)),this.client_id=i||this.generate_client_id()}else this.client_id=this.generate_client_id();this.session_id||(!this.on_node&&this.persist?this.session_id=this.generate_session_id():this.session_id=1),this.on_node||(this.user_agent=this.user_agent||window&&window.navigator&&window.navigator.userAgent)};t.prototype.set_cookie=function(n,r){if(!this.on_node&&this.persist){var i=new Date(Date.now()+this.cookie_days_to_live*24*60*60*1e3),o=n+"="+r+"; expires="+i.toUTCString()+"; path=/";return this.cookie_domain&&(o+="; domain="+this.cookie_domain),document.cookie=o,o}return null},t.prototype.get_cookie=function(n){for(var r=n+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){var u=i[o];try{for(var l=decodeURIComponent(u);l.charAt(0)===" ";)l=l.substring(1);if(l.indexOf(r)===0)return l.substring(r.length,l.length)}catch{}}},t.prototype.delete_cookie=function(n){document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},t.prototype.generate_client_id=function(){var n;if(!this.on_node){var r=this.get_cookie(this.cookie_name_client_id),i=this.get_local_object(this.local_name_client_id);this.client_id_storage_location==="cookie"&&i&&(n=i,this.set_cookie(this.cookie_name_client_id,n),this.delete_local_object(this.local_name_client_id)),this.client_id_storage_location==="local"&&r&&(n=r,this.set_local_object(this.local_name_client_id,n),this.delete_cookie(this.cookie_name_client_id))}return n||(n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var u=Math.random()*16|0,l=o==="x"?u:u&3|8;return l.toString(16)}),this.client_id_storage_location==="cookie"&&this.set_cookie(this.cookie_name_client_id,n),this.client_id_storage_location==="local"&&this.set_local_object(this.local_name_client_id,n)),n},t.prototype.get_local_object=function(n){var r,i=window&&window.localStorage;if(i&&typeof n=="string")try{r=JSON.parse(i.getItem(n))}catch{r=i.getItem(n)}return r},t.prototype.set_local_object=function(n,r){var i=window&&window.localStorage;if(i&&typeof n=="string"){if(typeof r=="object")try{i.setItem(n,JSON.stringify(r))}catch{}if(typeof r=="string"||typeof r=="number")try{i.setItem(n,r)}catch{}}},t.prototype.delete_local_object=function(n){var r=window&&window.localStorage;if(r&&typeof n=="string")try{r.removeItem(n)}catch{}},t.prototype.generate_session_id=function(){var n=this.get_cookie(this.cookie_name_session_data),r=this.get_local_object(this.local_name_session_data),i=Date.now(),o=1e3*60*30,u;if(this.session_id_storage_location==="local"&&(u=this.get_local_object(this.local_name_session_data),!u&&n&&(u=n,this.delete_cookie(this.cookie_name_session_data))),this.session_id_storage_location==="cookie"){u=this.get_cookie(this.cookie_name_session_data);try{u=JSON.parse(u)}catch{}!u&&r&&(u=r,this.delete_local_object(this.local_name_session_data))}var l=1,s=1;return u&&typeof u=="object"&&(s=parseInt(u.sessionId,10)||1,u.lastTime>i-o?l=s:l=s+1),this.session_id=l,this.session_is_new=!(u&&s===l),this.session_id_storage_location==="local"&&(this.set_local_object(this.local_name_session_id,l),this.set_local_object(this.local_name_session_data,{sessionId:l,lastTime:i})),this.session_id_storage_location==="cookie"&&(this.set_cookie(this.cookie_name_session_id,l),this.set_cookie(this.cookie_name_session_data,JSON.stringify({sessionId:l,lastTime:i}))),l},typeof Hv<"u"&&(e.exports=t)})()}(su)),su.exports}var _i={exports:{}},tc;function Wv(){return tc||(tc=1,function(e,t){(function(n){function r(i){var o=i&&i.Promise||n.Promise,u=i&&i.XMLHttpRequest||n.XMLHttpRequest;return function(){var l=Object.create(n,{fetch:{value:void 0,writable:!0}});return function(s,c){c(t)}(this,function(s){var c=typeof l<"u"&&l||typeof self<"u"&&self||typeof c<"u"&&c,m={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function y(I){return I&&DataView.prototype.isPrototypeOf(I)}if(m.arrayBuffer)var S=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(I){return I&&S.indexOf(Object.prototype.toString.call(I))>-1};function _(I){if(typeof I!="string"&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(I)||I==="")throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function a(I){return typeof I!="string"&&(I=String(I)),I}function h(I){var R={next:function(){var A=I.shift();return{done:A===void 0,value:A}}};return m.iterable&&(R[Symbol.iterator]=function(){return R}),R}function d(I){this.map={},I instanceof d?I.forEach(function(R,A){this.append(A,R)},this):Array.isArray(I)?I.forEach(function(R){this.append(R[0],R[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(R){this.append(R,I[R])},this)}d.prototype.append=function(I,R){I=_(I),R=a(R);var A=this.map[I];this.map[I]=A?A+", "+R:R},d.prototype.delete=function(I){delete this.map[_(I)]},d.prototype.get=function(I){return I=_(I),this.has(I)?this.map[I]:null},d.prototype.has=function(I){return this.map.hasOwnProperty(_(I))},d.prototype.set=function(I,R){this.map[_(I)]=a(R)},d.prototype.forEach=function(I,R){for(var A in this.map)this.map.hasOwnProperty(A)&&I.call(R,this.map[A],A,this)},d.prototype.keys=function(){var I=[];return this.forEach(function(R,A){I.push(A)}),h(I)},d.prototype.values=function(){var I=[];return this.forEach(function(R){I.push(R)}),h(I)},d.prototype.entries=function(){var I=[];return this.forEach(function(R,A){I.push([A,R])}),h(I)},m.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function f(I){if(I.bodyUsed)return o.reject(new TypeError("Already read"));I.bodyUsed=!0}function p(I){return new o(function(R,A){I.onload=function(){R(I.result)},I.onerror=function(){A(I.error)}})}function E(I){var R=new FileReader,A=p(R);return R.readAsArrayBuffer(I),A}function T(I){var R=new FileReader,A=p(R);return R.readAsText(I),A}function w(I){for(var R=new Uint8Array(I),A=new Array(R.length),D=0;D<R.length;D++)A[D]=String.fromCharCode(R[D]);return A.join("")}function g(I){if(I.slice)return I.slice(0);var R=new Uint8Array(I.byteLength);return R.set(new Uint8Array(I)),R.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(I){this.bodyUsed=this.bodyUsed,this._bodyInit=I,I?typeof I=="string"?this._bodyText=I:m.blob&&Blob.prototype.isPrototypeOf(I)?this._bodyBlob=I:m.formData&&FormData.prototype.isPrototypeOf(I)?this._bodyFormData=I:m.searchParams&&URLSearchParams.prototype.isPrototypeOf(I)?this._bodyText=I.toString():m.arrayBuffer&&m.blob&&y(I)?(this._bodyArrayBuffer=g(I.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):m.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(I)||x(I))?this._bodyArrayBuffer=g(I):this._bodyText=I=Object.prototype.toString.call(I):this._bodyText="",this.headers.get("content-type")||(typeof I=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(I)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var I=f(this);if(I)return I;if(this._bodyBlob)return o.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return o.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var I=f(this);return I||(ArrayBuffer.isView(this._bodyArrayBuffer)?o.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):o.resolve(this._bodyArrayBuffer))}else return this.blob().then(E)}),this.text=function(){var I=f(this);if(I)return I;if(this._bodyBlob)return T(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return o.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(I){var R=I.toUpperCase();return C.indexOf(R)>-1?R:I}function N(I,R){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var A=R.body;if(I instanceof N){if(I.bodyUsed)throw new TypeError("Already read");this.url=I.url,this.credentials=I.credentials,R.headers||(this.headers=new d(I.headers)),this.method=I.method,this.mode=I.mode,this.signal=I.signal,!A&&I._bodyInit!=null&&(A=I._bodyInit,I.bodyUsed=!0)}else this.url=String(I);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new d(R.headers)),this.method=k(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})};function O(I){var R=new FormData;return I.trim().split("&").forEach(function(A){if(A){var D=A.split("="),B=D.shift().replace(/\+/g," "),z=D.join("=").replace(/\+/g," ");R.append(decodeURIComponent(B),decodeURIComponent(z))}}),R}function P(I){var R=new d,A=I.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(D){return D.indexOf(`
|
|
34
34
|
`)===0?D.substr(1,D.length):D}).forEach(function(D){var B=D.split(":"),z=B.shift().trim();if(z){var G=B.join(":").trim();R.append(z,G)}}),R}v.call(N.prototype);function M(I,R){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in R?R.statusText:"",this.headers=new d(R.headers),this.url=R.url||"",this._initBody(I)}v.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},M.error=function(){var I=new M(null,{status:0,statusText:""});return I.type="error",I};var F=[301,302,303,307,308];M.redirect=function(I,R){if(F.indexOf(R)===-1)throw new RangeError("Invalid status code");return new M(null,{status:R,headers:{location:I}})},s.DOMException=c.DOMException;try{new s.DOMException}catch{s.DOMException=function(R,A){this.message=R,this.name=A;var D=Error(R);this.stack=D.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function q(I,R){return new o(function(A,D){var B=new N(I,R);if(B.signal&&B.signal.aborted)return D(new s.DOMException("Aborted","AbortError"));var z=new u;function G(){z.abort()}z.onload=function(){var K={status:z.status,statusText:z.statusText,headers:P(z.getAllResponseHeaders()||"")};K.url="responseURL"in z?z.responseURL:K.headers.get("X-Request-URL");var J="response"in z?z.response:z.responseText;setTimeout(function(){A(new M(J,K))},0)},z.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},z.onabort=function(){setTimeout(function(){D(new s.DOMException("Aborted","AbortError"))},0)};function Y(K){try{return K===""&&c.location.href?c.location.href:K}catch{return K}}z.open(B.method,Y(B.url),!0),B.credentials==="include"?z.withCredentials=!0:B.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(m.blob?z.responseType="blob":m.arrayBuffer&&B.headers.get("Content-Type")&&B.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(z.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof d)?Object.getOwnPropertyNames(R.headers).forEach(function(K){z.setRequestHeader(K,a(R.headers[K]))}):B.headers.forEach(function(K,J){z.setRequestHeader(J,K)}),B.signal&&(B.signal.addEventListener("abort",G),z.onreadystatechange=function(){z.readyState===4&&B.signal.removeEventListener("abort",G)}),z.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}q.polyfill=!0,c.fetch||(c.fetch=q,c.Headers=d,c.Request=N,c.Response=M),s.Headers=d,s.Request=N,s.Response=M,s.fetch=q,Object.defineProperty(s,"__esModule",{value:!0})}),{fetch:l.fetch,Headers:l.Headers,Request:l.Request,Response:l.Response,DOMException:l.DOMException}}()}e.exports=r})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:jt)}(_i,_i.exports)),_i.exports}var au={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var nc;function Kv(){return nc||(nc=1,function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function n(){for(var v=0,C=new Array(256),k=0;k!=256;++k)v=k,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,C[k]=v;return typeof Int32Array<"u"?new Int32Array(C):C}var r=n();function i(v){var C=0,k=0,N=0,O=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)O[N]=v[N];for(N=0;N!=256;++N)for(k=v[N],C=256+N;C<4096;C+=256)k=O[C]=k>>>8^v[k&255];var P=[];for(N=1;N!=16;++N)P[N-1]=typeof Int32Array<"u"?O.subarray(N*256,N*256+256):O.slice(N*256,N*256+256);return P}var o=i(r),u=o[0],l=o[1],s=o[2],c=o[3],m=o[4],y=o[5],S=o[6],x=o[7],_=o[8],a=o[9],h=o[10],d=o[11],f=o[12],p=o[13],E=o[14];function T(v,C){for(var k=C^-1,N=0,O=v.length;N<O;)k=k>>>8^r[(k^v.charCodeAt(N++))&255];return~k}function w(v,C){for(var k=C^-1,N=v.length-15,O=0;O<N;)k=E[v[O++]^k&255]^p[v[O++]^k>>8&255]^f[v[O++]^k>>16&255]^d[v[O++]^k>>>24]^h[v[O++]]^a[v[O++]]^_[v[O++]]^x[v[O++]]^S[v[O++]]^y[v[O++]]^m[v[O++]]^c[v[O++]]^s[v[O++]]^l[v[O++]]^u[v[O++]]^r[v[O++]];for(N+=15;O<N;)k=k>>>8^r[(k^v[O++])&255];return~k}function g(v,C){for(var k=C^-1,N=0,O=v.length,P=0,M=0;N<O;)P=v.charCodeAt(N++),P<128?k=k>>>8^r[(k^P)&255]:P<2048?(k=k>>>8^r[(k^(192|P>>6&31))&255],k=k>>>8^r[(k^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,M=v.charCodeAt(N++)&1023,k=k>>>8^r[(k^(240|P>>8&7))&255],k=k>>>8^r[(k^(128|P>>2&63))&255],k=k>>>8^r[(k^(128|M>>6&15|(P&3)<<4))&255],k=k>>>8^r[(k^(128|M&63))&255]):(k=k>>>8^r[(k^(224|P>>12&15))&255],k=k>>>8^r[(k^(128|P>>6&63))&255],k=k>>>8^r[(k^(128|P&63))&255]);return~k}t.table=r,t.bstr=T,t.buf=w,t.str=g})}(au)),au}var cu={exports:{}};/*! store2 - v2.14.2 - 2022-07-18
|
|
35
35
|
* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */var rc;function Qv(){return rc||(rc=1,function(e){(function(t,n){var r={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(o,u){for(var l in o)u.hasOwnProperty(l)||Object.defineProperty(u,l,Object.getOwnPropertyDescriptor(o,l));return u},stringify:function(o,u){return o===void 0||typeof o=="function"?o+"":JSON.stringify(o,u||r.replace)},parse:function(o,u){try{return JSON.parse(o,u||r.revive)}catch{return o}},fn:function(o,u){r.storeAPI[o]=u;for(var l in r.apis)r.apis[l][o]=u},get:function(o,u){return o.getItem(u)},set:function(o,u,l){o.setItem(u,l)},remove:function(o,u){o.removeItem(u)},key:function(o,u){return o.key(u)},length:function(o){return o.length},clear:function(o){o.clear()},Store:function(o,u,l){var s=r.inherit(r.storeAPI,function(m,y,S){return arguments.length===0?s.getAll():typeof y=="function"?s.transact(m,y,S):y!==void 0?s.set(m,y,S):typeof m=="string"||typeof m=="number"?s.get(m):typeof m=="function"?s.each(m):m?s.setAll(m,y):s.clear()});s._id=o;try{var c="__store2_test";u.setItem(c,"ok"),s._area=u,u.removeItem(c)}catch{s._area=r.storage("fake")}return s._ns=l||"",r.areas[o]||(r.areas[o]=s._area),r.apis[s._ns+s._id]||(r.apis[s._ns+s._id]=s),s},storeAPI:{area:function(o,u){var l=this[o];return(!l||!l.area)&&(l=r.Store(o,u,this._ns),this[o]||(this[o]=l)),l},namespace:function(o,u,l){if(l=l||this._delim||r.nsdelim,!o)return this._ns?this._ns.substring(0,this._ns.length-l.length):"";var s=o,c=this[s];if((!c||!c.namespace)&&(c=r.Store(this._id,this._area,this._ns+s+l),c._delim=l,this[s]||(this[s]=c),!u))for(var m in r.areas)c.area(m,r.areas[m]);return c},isFake:function(o){return o?(this._real=this._area,this._area=r.storage("fake")):o===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(o){return this._area.has?this._area.has(this._in(o)):this._in(o)in this._area},size:function(){return this.keys().length},each:function(o,u){for(var l=0,s=r.length(this._area);l<s;l++){var c=this._out(r.key(this._area,l));if(c!==void 0&&o.call(this,c,this.get(c),u)===!1)break;s>r.length(this._area)&&(s--,l--)}return u||this},keys:function(o){return this.each(function(u,l,s){s.push(u)},o||[])},get:function(o,u){var l=r.get(this._area,this._in(o)),s;return typeof u=="function"&&(s=u,u=null),l!==null?r.parse(l,s):u??l},getAll:function(o){return this.each(function(u,l,s){s[u]=l},o||{})},transact:function(o,u,l){var s=this.get(o,l),c=u(s);return this.set(o,c===void 0?s:c),this},set:function(o,u,l){var s=this.get(o),c;return s!=null&&l===!1?u:(typeof l=="function"&&(c=l,l=void 0),r.set(this._area,this._in(o),r.stringify(u,c),l)||s)},setAll:function(o,u){var l,s;for(var c in o)s=o[c],this.set(c,s,u)!==s&&(l=!0);return l},add:function(o,u,l){var s=this.get(o);if(s instanceof Array)u=s.concat(u);else if(s!==null){var c=typeof s;if(c===typeof u&&c==="object"){for(var m in u)s[m]=u[m];u=s}else u=s+u}return r.set(this._area,this._in(o),r.stringify(u,l)),u},remove:function(o,u){var l=this.get(o,u);return r.remove(this._area,this._in(o)),l},clear:function(){return this._ns?this.each(function(o){r.remove(this._area,this._in(o))},1):r.clear(this._area),this},clearAll:function(){var o=this._area;for(var u in r.areas)r.areas.hasOwnProperty(u)&&(this._area=r.areas[u],this.clear());return this._area=o,this},_in:function(o){return typeof o!="string"&&(o=r.stringify(o)),this._ns?this._ns+o:o},_out:function(o){return this._ns?o&&o.indexOf(this._ns)===0?o.substring(this._ns.length):void 0:o}},storage:function(o){return r.inherit(r.storageAPI,{items:{},name:o})},storageAPI:{length:0,has:function(o){return this.items.hasOwnProperty(o)},key:function(o){var u=0;for(var l in this.items)if(this.has(l)&&o===u++)return l},setItem:function(o,u){this.has(o)||this.length++,this.items[o]=u},removeItem:function(o){this.has(o)&&(delete this.items[o],this.length--)},getItem:function(o){return this.has(o)?this.items[o]:null},clear:function(){for(var o in this.items)this.removeItem(o)}}},i=r.Store("local",function(){try{return localStorage}catch{}}());i.local=i,i._=r,i.area("session",function(){try{return sessionStorage}catch{}}()),i.area("page",r.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return i}):e.exports?e.exports=i:(t.store&&(r.conflict=t.store),t.store=i)})(jt,jt&&jt.define)}(cu)),cu.exports}var fu,ic;function Gv(){return ic||(ic=1,fu=function(e,t){var n=t.set,r=t.get,i=t.remove,o=t.key,u=t.length,l=t.clear;t.overflow=function(s,c){var m=s===t.areas.local?"+local+":s===t.areas.session?"+session+":!1;if(m){var y=t.areas[m];return c&&!y?y=e.area(m)._area:c===!1&&(delete t.areas[m],delete e[m]),y}},t.set=function(s,c,m){try{n.apply(this,arguments)}catch(y){if(y.name==="QUOTA_EXCEEDED_ERR"||y.name==="NS_ERROR_DOM_QUOTA_REACHED"||y.toString().indexOf("QUOTA_EXCEEDED_ERR")!==-1||y.toString().indexOf("QuotaExceededError")!==-1)return t.set(t.overflow(s,!0),c,m);throw y}},t.get=function(s,c){var m=t.overflow(s);return m&&r.call(this,m,c)||r.apply(this,arguments)},t.remove=function(s,c){var m=t.overflow(s);m&&i.call(this,m,c),i.apply(this,arguments)},t.key=function(s,c){var m=t.overflow(s);if(m){var y=u.call(this,s);if(c>=y){c=c-y;for(var S=0,x=u.call(this,m);S<x;S++)if(S===c)return o.call(this,m,S)}}return o.apply(this,arguments)},t.length=function(s){var c=u(s),m=t.overflow(s);return m?c+u(m):c},t.clear=function(s){t.overflow(s,!1),l.apply(this,arguments)}}),fu}var du,oc;function ks(){if(oc)return du;oc=1;var e=Qv(),t=Gv();return t(e,e._),du=e,du}var pu,uc;function yt(){if(uc)return pu;uc=1;var e=tt,t=e(Gn()),n=Kv(),r=ks(),i="_constructorio_purchase_order_ids",o={trimNonBreakingSpaces:function(l){return l.replace(/\s/g," ").trim()},encodeURIComponentRFC3986:function(l){return encodeURIComponent(l).replace(/[!'()*]/g,function(s){return"%".concat(s.charCodeAt(0).toString(16).toUpperCase())})},cleanParams:function(l){var s={};return Object.keys(l).forEach(function(c){var m=l[c];typeof m=="string"?s[c]=o.trimNonBreakingSpaces(m):s[c]=m}),s},throwHttpErrorFromResponse:function(l,s){return s.json().then(function(c){throw l.message=c.message,l.status=s.status,l.statusText=s.statusText,l.url=s.url,l.headers=s.headers,l})},canUseDOM:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},addEventListener:function(l,s,c){o.canUseDOM()&&window.addEventListener(l,s,c)},removeEventListener:function(l,s,c){o.canUseDOM()&&window.removeEventListener(l,s,c)},getNavigator:function(){return o.canUseDOM()?window.navigator:{userAgent:"",webdriver:!1}},isNil:function(l){return l==null},getWindowLocation:function(){return o.canUseDOM()?window.location:{}},dispatchEvent:function(l){o.canUseDOM()&&window.dispatchEvent(l)},createCustomEvent:function(l,s){if(o.canUseDOM())try{return new window.CustomEvent(l,{detail:s})}catch{var c=document.createEvent("CustomEvent");return c.initCustomEvent(l,!1,!1,s),c}return null},hasOrderIdRecord:function(l){var s=n.str(l.toString()),c=r.local.get(i);return typeof c=="string"&&(c=JSON.parse(c)),c&&c.includes(s)?!0:null},addOrderIdRecord:function(l){var s=n.str(l.toString()),c=r.local.get(i);if(typeof c=="string"&&(c=JSON.parse(c)),c){if(c.includes(s))return;c.length>=10&&(c=c.slice(-9)),c.push(s)}else c=[s];r.local.set(i,c)},applyNetworkTimeout:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,m=l&&l.networkParameters&&l.networkParameters.timeout,y=s&&s.timeout,S=y||m;typeof S=="number"&&c&&setTimeout(function(){return c.abort()},S)},stringify:function(l,s,c){if(!l)return"";var m=[];return Object.keys(l).forEach(function(y){var S=l[y],x=o.encodeURIComponentRFC3986(y),_;if(S!=null){var a=s?"".concat(s,"%5B").concat(x,"%5D"):x;Array.isArray(S)?_=o.stringify(S,a,"array"):(0,t.default)(S)==="object"?_=o.stringify(S,a,"object"):c==="object"?_="".concat(a,"=").concat(o.encodeURIComponentRFC3986(S)):_="".concat(s||x,"=").concat(o.encodeURIComponentRFC3986(S)),m.push(_)}}),m.join("&")},toSnakeCase:function(l){return l.replace(/[A-Z]/g,function(s){return"_".concat(s.toLowerCase())})},toSnakeCaseKeys:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c={};return Object.keys(l).forEach(function(m){var y=o.toSnakeCase(m);c[y]=s&&(0,t.default)(l[m])==="object"&&!Array.isArray(l[m])?o.toSnakeCaseKeys(l[m],s):l[m]}),c}};return pu=o,pu}var hu,lc;function $n(){if(lc)return hu;lc=1;var e=tt,t=e(gt()),n=e(mt()),r=yt(),i=function(){function o(u){var l=this;(0,t.default)(this,o),this.events=[],this.enabled=!(u&&u.enabled===!1),this.waitForBeacon=!(u&&u.waitForBeacon===!1),this.active=this.enabled,this.waitForBeacon&&(this.active=!1,r.canUseDOM()&&(window.ConstructorioAutocomplete||window.ConstructorioBeacon||window.ConstructorioTracker)&&this.enabled&&(this.active=!0,this.dispatchEvents()),r.addEventListener("cio.beacon.loaded",function(){l.enabled&&(l.active=!0,l.dispatchEvents())}))}return(0,n.default)(o,[{key:"queue",value:function(l,s){this.events.push({name:l,data:s}),this.active&&this.dispatchEvents()}},{key:"dispatchEvents",value:function(){for(;this.events.length;){var l=this.events.shift(),s=l.name,c=l.data,m="cio.client.".concat(s);r.dispatchEvent(r.createCustomEvent(m,c))}}}]),o}();return hu=i,hu}var vu,sc;function $v(){if(sc)return vu;sc=1;var e=tt,t=e(gt()),n=e(mt()),r=$n(),i=yt();function o(l,s,c){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,y=c.apiKey,S=c.version,x=c.serviceUrl,_=c.sessionId,a=c.clientId,h=c.userId,d=c.segments,f=c.testCells,p={c:S};if(p.key=y,p.i=a,p.s=_,!l||typeof l!="string")throw new Error("query is a required parameter of type string");if(f&&Object.keys(f).forEach(function(A){p["ef-".concat(A)]=f[A]}),d&&d.length&&(p.us=d),h&&(p.ui=String(h)),s){var E=s.offset,T=s.page,w=s.resultsPerPage,g=s.filters,v=s.sortBy,C=s.sortOrder,k=s.section,N=s.fmtOptions,O=s.hiddenFields,P=s.hiddenFacets,M=s.variationsMap,F=s.qsParam,q=s.preFilterExpression;i.isNil(E)||(p.offset=E),i.isNil(T)||(p.page=T),i.isNil(w)||(p.num_results_per_page=w),g&&(p.filters=g),v&&(p.sort_by=v),C&&(p.sort_order=C),k&&(p.section=k),N&&(p.fmt_options=N),O&&(p.fmt_options?p.fmt_options.hidden_fields=O:p.fmt_options={hidden_fields:O}),P&&(p.fmt_options?p.fmt_options.hidden_facets=P:p.fmt_options={hidden_facets:P}),M&&(p.variations_map=JSON.stringify(M)),q&&(p.pre_filter_expression=JSON.stringify(q)),F&&(p.qs=JSON.stringify(F))}p._dt=Date.now(),p=i.cleanParams(p);var I=i.stringify(p),R=m?"search/natural_language":"search";return"".concat(x,"/").concat(R,"/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(l)),"?").concat(I)}var u=function(){function l(s){(0,t.default)(this,l),this.options=s||{},this.eventDispatcher=new r(s.eventDispatcher)}return(0,n.default)(l,[{key:"getSearchResults",value:function(c,m){var y=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,_=this.options.fetch,a;if(typeof AbortController=="function"){var h=new AbortController;a=h&&h.signal,i.applyNetworkTimeout(this.options,S,h)}try{x=o(c,m,this.options)}catch(d){return Promise.reject(d)}return _(x,{signal:a}).then(function(d){return d.ok?d.json():i.throwHttpErrorFromResponse(new Error,d)}).then(function(d){if(d.response&&d.response.results)return d.result_id&&d.response.results.forEach(function(f){f.result_id=d.result_id}),y.eventDispatcher.queue("search.getSearchResults.completed",d),d;if(d.response&&d.response.redirect)return y.eventDispatcher.queue("search.getSearchResults.completed",d),d;throw new Error("getSearchResults response data is malformed")})}},{key:"getVoiceSearchResults",value:function(c,m){var y=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,_=this.options.fetch,a;if(typeof AbortController=="function"){var h=new AbortController;a=h&&h.signal,i.applyNetworkTimeout(this.options,S,h)}try{var d=!0;x=o(c,m,this.options,d)}catch(f){return Promise.reject(f)}return _(x,{signal:a}).then(function(f){return f.ok?f.json():i.throwHttpErrorFromResponse(new Error,f)}).then(function(f){if(f.response&&f.response.results)return f.result_id&&f.response.results.forEach(function(p){p.result_id=f.result_id}),y.eventDispatcher.queue("search.getVoiceSearchResults.completed",f),f;if(f.response&&f.response.redirect)return y.eventDispatcher.queue("search.getVoiceSearchResults.completed",f),f;throw new Error("getVoiceSearchResults response data is malformed")})}}]),l}();return vu=u,vu}var gu={exports:{}},ac;function Kd(){return ac||(ac=1,function(e){var t=Wd();function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(gu)),gu.exports}var mu,cc;function Xv(){if(cc)return mu;cc=1;var e=tt,t=e(gt()),n=e(mt()),r=e(Kd());function i(_,a){var h=Object.keys(_);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(_);a&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),h.push.apply(h,d)}return h}function o(_){for(var a=1;a<arguments.length;a++){var h=arguments[a]!=null?arguments[a]:{};a%2?i(Object(h),!0).forEach(function(d){(0,r.default)(_,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(_,d,Object.getOwnPropertyDescriptor(h,d))})}return _}var u=$n(),l=yt();function s(_,a){var h=a.apiKey,d=a.version,f=a.sessionId,p=a.clientId,E=a.userId,T=a.segments,w=a.testCells,g={c:d};if(g.key=h,g.i=p,g.s=f,w&&Object.keys(w).forEach(function(B){g["ef-".concat(B)]=w[B]}),T&&T.length&&(g.us=T),E&&(g.ui=String(E)),_){var v=_.page,C=_.offset,k=_.resultsPerPage,N=_.filters,O=_.sortBy,P=_.sortOrder,M=_.section,F=_.fmtOptions,q=_.hiddenFields,I=_.hiddenFacets,R=_.variationsMap,A=_.qsParam,D=_.preFilterExpression;l.isNil(v)||(g.page=v),l.isNil(C)||(g.offset=C),l.isNil(k)||(g.num_results_per_page=k),N&&(g.filters=N),O&&(g.sort_by=O),P&&(g.sort_order=P),M&&(g.section=M),F&&(g.fmt_options=F),q&&(g.fmt_options?g.fmt_options.hidden_fields=q:g.fmt_options={hidden_fields:q}),I&&(g.fmt_options?g.fmt_options.hidden_facets=I:g.fmt_options={hidden_facets:I}),R&&(g.variations_map=JSON.stringify(R)),D&&(g.pre_filter_expression=JSON.stringify(D)),A&&(g.qs=JSON.stringify(A))}return g._dt=Date.now(),g=l.cleanParams(g),g}function c(_,a,h,d){var f=d.serviceUrl;if(!_||typeof _!="string")throw new Error("filterName is a required parameter of type string");if(!a||typeof a!="string")throw new Error("filterValue is a required parameter of type string");var p=s(h,d),E=l.stringify(p);return"".concat(f,"/browse/").concat(l.encodeURIComponentRFC3986(l.trimNonBreakingSpaces(_)),"/").concat(l.encodeURIComponentRFC3986(l.trimNonBreakingSpaces(a)),"?").concat(E)}function m(_,a,h){var d=h.serviceUrl;if(!_||!Array.isArray(_)||!_.length)throw new Error("ids is a required parameter of type array");var f=o(o({},s(a,h)),{},{ids:_}),p=l.stringify(f);return"".concat(d,"/browse/items?").concat(p)}function y(_,a){var h=a.serviceUrl,d=o({},s(_,a));delete d._dt;var f=l.stringify(d);return"".concat(h,"/browse/facets?").concat(f)}function S(_,a,h){var d=h.serviceUrl;if(!_||typeof _!="string")throw new Error("facetName is a required parameter of type string");var f=o({},s(a,h));f.facet_name=_,delete f._dt;var p=l.stringify(f);return"".concat(d,"/browse/facet_options?").concat(p)}var x=function(){function _(a){(0,t.default)(this,_),this.options=a||{},this.eventDispatcher=new u(a.eventDispatcher)}return(0,n.default)(_,[{key:"getBrowseResults",value:function(h,d,f){var p=this,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},T,w=this.options.fetch,g;if(typeof AbortController=="function"){var v=new AbortController;g=v&&v.signal,l.applyNetworkTimeout(this.options,E,v)}try{T=c(h,d,f,this.options)}catch(C){return Promise.reject(C)}return w(T,{signal:g}).then(function(C){return C.ok?C.json():l.throwHttpErrorFromResponse(new Error,C)}).then(function(C){if(C.response&&C.response.results)return C.result_id&&C.response.results.forEach(function(k){k.result_id=C.result_id}),p.eventDispatcher.queue("browse.getBrowseResults.completed",C),C;throw new Error("getBrowseResults response data is malformed")})}},{key:"getBrowseResultsForItemIds",value:function(h,d){var f=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,T=this.options.fetch,w;if(typeof AbortController=="function"){var g=new AbortController;w=g&&g.signal,l.applyNetworkTimeout(this.options,p,g)}try{E=m(h,d,this.options)}catch(v){return Promise.reject(v)}return T(E,{signal:w}).then(function(v){return v.ok?v.json():l.throwHttpErrorFromResponse(new Error,v)}).then(function(v){if(v.response&&v.response.results)return v.result_id&&v.response.results.forEach(function(C){C.result_id=v.result_id}),f.eventDispatcher.queue("browse.getBrowseResultsForItemIds.completed",v),v;throw new Error("getBrowseResultsForItemIds response data is malformed")})}},{key:"getBrowseGroups",value:function(h){var d=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=this.options.fetch,E=this.options.serviceUrl,T=s(h,this.options),w;if(typeof AbortController=="function"){var g=new AbortController;w=g&&g.signal,l.applyNetworkTimeout(this.options,f,g)}delete T._dt;var v=l.stringify(T),C="".concat(E,"/browse/groups?").concat(v);return p(C,{signal:w}).then(function(k){return k.ok?k.json():l.throwHttpErrorFromResponse(new Error,k)}).then(function(k){if(k.response&&k.response.groups)return d.eventDispatcher.queue("browse.getBrowseGroups.completed",k),k;throw new Error("getBrowseGroups response data is malformed")})}},{key:"getBrowseFacets",value:function(h,d){var f=this,p,E=this.options.fetch,T;if(typeof AbortController=="function"){var w=new AbortController;T=w&&w.signal,l.applyNetworkTimeout(this.options,d,w)}try{p=y(h,this.options)}catch(g){return Promise.reject(g)}return E(p,{signal:T}).then(function(g){return g.ok?g.json():l.throwHttpErrorFromResponse(new Error,g)}).then(function(g){if(g.response&&g.response.facets)return f.eventDispatcher.queue("browse.getBrowseFacets.completed",g),g;throw new Error("getBrowseFacets response data is malformed")})}},{key:"getBrowseFacetOptions",value:function(h){var d=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,T=this.options.fetch,w;if(typeof AbortController=="function"){var g=new AbortController;w=g&&g.signal,l.applyNetworkTimeout(this.options,p,g)}try{E=S(h,f,this.options)}catch(v){return Promise.reject(v)}return T(E,{signal:w}).then(function(v){return v.ok?v.json():l.throwHttpErrorFromResponse(new Error,v)}).then(function(v){if(v.response&&v.response.facets)return d.eventDispatcher.queue("browse.getBrowseFacetOptions.completed",v),v;throw new Error("getBrowseFacetOptions response data is malformed")})}}]),_}();return mu=x,mu}var yu,fc;function Yv(){if(fc)return yu;fc=1;var e=tt,t=e(gt()),n=e(mt()),r=$n(),i=yt(),o=i.throwHttpErrorFromResponse,u=i.cleanParams,l=i.applyNetworkTimeout,s=i.trimNonBreakingSpaces,c=i.encodeURIComponentRFC3986,m=i.stringify;function y(x,_,a){var h=a.apiKey,d=a.version,f=a.serviceUrl,p=a.sessionId,E=a.clientId,T=a.userId,w=a.segments,g=a.testCells,v={c:d};if(v.key=h,v.i=E,v.s=p,!x||typeof x!="string")throw new Error("query is a required parameter of type string");if(g&&Object.keys(g).forEach(function(q){v["ef-".concat(q)]=g[q]}),w&&w.length&&(v.us=w),T&&(v.ui=String(T)),_){var C=_.numResults,k=_.resultsPerSection,N=_.filters,O=_.hiddenFields,P=_.variationsMap;C&&(v.num_results=C),k&&Object.keys(k).forEach(function(q){v["num_results_".concat(q)]=k[q]}),N&&(v.filters=N),O&&(v.fmt_options?v.fmt_options.hidden_fields=O:v.fmt_options={hidden_fields:O}),P&&(v.variations_map=JSON.stringify(P))}v._dt=Date.now(),v=u(v);var M=m(v),F=x.replace(/^\//,"|");return"".concat(f,"/autocomplete/").concat(c(s(F)),"?").concat(M)}var S=function(){function x(_){(0,t.default)(this,x),this.options=_||{},this.eventDispatcher=new r(_.eventDispatcher)}return(0,n.default)(x,[{key:"getAutocompleteResults",value:function(a,h){var d=this,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p,E=this.options.fetch,T;if(typeof AbortController=="function"){var w=new AbortController;T=w&&w.signal,l(this.options,f,w)}try{p=y(a,h,this.options)}catch(g){return Promise.reject(g)}return E(p,{signal:T}).then(function(g){return g.ok?g.json():o(new Error,g)}).then(function(g){if(g.sections){if(g.result_id){var v=Object.keys(g.sections);v.forEach(function(C){var k=g.sections[C];k.length&&k.forEach(function(N){N.result_id=g.result_id})})}return d.eventDispatcher.queue("autocomplete.getAutocompleteResults.completed",g),g}throw new Error("getAutocompleteResults response data is malformed")})}}]),x}();return yu=S,yu}var wu,dc;function Jv(){if(dc)return wu;dc=1;var e=tt,t=e(gt()),n=e(mt()),r=$n(),i=yt();function o(l,s,c){var m=c.apiKey,y=c.version,S=c.serviceUrl,x=c.sessionId,_=c.userId,a=c.clientId,h=c.segments,d={c:y};if(d.key=m,d.i=a,d.s=x,!l||typeof l!="string")throw new Error("podId is a required parameter of type string");if(h&&h.length&&(d.us=h),_&&(d.ui=String(_)),s){var f=s.numResults,p=s.itemIds,E=s.section,T=s.term,w=s.filters,g=s.variationsMap,v=s.hiddenFields;i.isNil(f)||(d.num_results=f),p&&(d.item_id=p),E&&(d.section=E),T&&(d.term=T),w&&(d.filters=w),v&&(d.fmt_options?d.fmt_options.hidden_fields=v:d.fmt_options={hidden_fields:v}),g&&(d.variations_map=JSON.stringify(g))}d=i.cleanParams(d);var C=i.stringify(d);return"".concat(S,"/recommendations/v1/pods/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(l)),"?").concat(C)}var u=function(){function l(s){(0,t.default)(this,l),this.options=s||{},this.eventDispatcher=new r(s.eventDispatcher)}return(0,n.default)(l,[{key:"getRecommendations",value:function(c,m){var y=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,_=this.options.fetch,a;if(typeof AbortController=="function"){var h=new AbortController;a=h&&h.signal,i.applyNetworkTimeout(this.options,S,h)}try{x=o(c,m,this.options)}catch(d){return Promise.reject(d)}return _(x,{signal:a}).then(function(d){return d.ok?d.json():i.throwHttpErrorFromResponse(new Error,d)}).then(function(d){if(d.response&&d.response.results)return d.result_id&&d.response.results.forEach(function(f){f.result_id=d.result_id}),y.eventDispatcher.queue("recommendations.getRecommendations.completed",d),d;throw new Error("getRecommendations response data is malformed")})}}]),l}();return wu=u,wu}var ki={exports:{}},pc;function Zv(){if(pc)return ki.exports;pc=1;var e=tt,t=e(Gn()),n=(typeof Reflect>"u"?"undefined":(0,t.default)(Reflect))==="object"?Reflect:null,r=n&&typeof n.apply=="function"?n.apply:function(g,v,C){return Function.prototype.apply.call(g,v,C)},i;n&&typeof n.ownKeys=="function"?i=n.ownKeys:Object.getOwnPropertySymbols?i=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:i=function(g){return Object.getOwnPropertyNames(g)};function o(w){console&&console.warn&&console.warn(w)}var u=Number.isNaN||function(g){return g!==g};function l(){l.init.call(this)}ki.exports=l,ki.exports.once=p,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,t.default)(w))}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(g){if(typeof g!="number"||g<0||u(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");s=g}}),l.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||u(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function m(w){return w._maxListeners===void 0?l.defaultMaxListeners:w._maxListeners}l.prototype.getMaxListeners=function(){return m(this)},l.prototype.emit=function(g){for(var v=[],C=1;C<arguments.length;C++)v.push(arguments[C]);var k=g==="error",N=this._events;if(N!==void 0)k=k&&N.error===void 0;else if(!k)return!1;if(k){var O;if(v.length>0&&(O=v[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var M=N[g];if(M===void 0)return!1;if(typeof M=="function")r(M,this,v);else for(var F=M.length,q=h(M,F),C=0;C<F;++C)r(q[C],this,v);return!0};function y(w,g,v,C){var k,N,O;if(c(v),N=w._events,N===void 0?(N=w._events=Object.create(null),w._eventsCount=0):(N.newListener!==void 0&&(w.emit("newListener",g,v.listener?v.listener:v),N=w._events),O=N[g]),O===void 0)O=N[g]=v,++w._eventsCount;else if(typeof O=="function"?O=N[g]=C?[v,O]:[O,v]:C?O.unshift(v):O.push(v),k=m(w),k>0&&O.length>k&&!O.warned){O.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=w,P.type=g,P.count=O.length,o(P)}return w}l.prototype.addListener=function(g,v){return y(this,g,v,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(g,v){return y(this,g,v,!0)};function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(w,g,v){var C={fired:!1,wrapFn:void 0,target:w,type:g,listener:v},k=S.bind(C);return k.listener=v,C.wrapFn=k,k}l.prototype.once=function(g,v){return c(v),this.on(g,x(this,g,v)),this},l.prototype.prependOnceListener=function(g,v){return c(v),this.prependListener(g,x(this,g,v)),this},l.prototype.removeListener=function(g,v){var C,k,N,O,P;if(c(v),k=this._events,k===void 0)return this;if(C=k[g],C===void 0)return this;if(C===v||C.listener===v)--this._eventsCount===0?this._events=Object.create(null):(delete k[g],k.removeListener&&this.emit("removeListener",g,C.listener||v));else if(typeof C!="function"){for(N=-1,O=C.length-1;O>=0;O--)if(C[O]===v||C[O].listener===v){P=C[O].listener,N=O;break}if(N<0)return this;N===0?C.shift():d(C,N),C.length===1&&(k[g]=C[0]),k.removeListener!==void 0&&this.emit("removeListener",g,P||v)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(g){var v,C,k;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[g]),this;if(arguments.length===0){var N=Object.keys(C),O;for(k=0;k<N.length;++k)O=N[k],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(v=C[g],typeof v=="function")this.removeListener(g,v);else if(v!==void 0)for(k=v.length-1;k>=0;k--)this.removeListener(g,v[k]);return this};function _(w,g,v){var C=w._events;if(C===void 0)return[];var k=C[g];return k===void 0?[]:typeof k=="function"?v?[k.listener||k]:[k]:v?f(k):h(k,k.length)}l.prototype.listeners=function(g){return _(this,g,!0)},l.prototype.rawListeners=function(g){return _(this,g,!1)},l.listenerCount=function(w,g){return typeof w.listenerCount=="function"?w.listenerCount(g):a.call(w,g)},l.prototype.listenerCount=a;function a(w){var g=this._events;if(g!==void 0){var v=g[w];if(typeof v=="function")return 1;if(v!==void 0)return v.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function h(w,g){for(var v=new Array(g),C=0;C<g;++C)v[C]=w[C];return v}function d(w,g){for(;g+1<w.length;g++)w[g]=w[g+1];w.pop()}function f(w){for(var g=new Array(w.length),v=0;v<g.length;++v)g[v]=w[v].listener||w[v];return g}function p(w,g){return new Promise(function(v,C){function k(O){w.removeListener(g,N),C(O)}function N(){typeof w.removeListener=="function"&&w.removeListener("error",k),v([].slice.call(arguments))}T(w,g,N,{once:!0}),g!=="error"&&E(w,k,{once:!0})})}function E(w,g,v){typeof w.on=="function"&&T(w,"error",g,v)}function T(w,g,v,C){if(typeof w.on=="function")C.once?w.once(g,v):w.on(g,v);else if(typeof w.addEventListener=="function")w.addEventListener(g,function k(N){C.once&&w.removeEventListener(g,k),v(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(0,t.default)(w))}return ki.exports}var _u,hc;function eg(){return hc||(hc=1,_u=["Googlebot/","Googlebot-Mobile","Googlebot-Image","Googlebot-News","Googlebot-Video","AdsBot-Google([^-]|$)","AdsBot-Google-Mobile","Feedfetcher-Google","Mediapartners-Google","Mediapartners \\(Googlebot\\)","APIs-Google","bingbot","Slurp","[wW]get","curl","LinkedInBot","Python-urllib","python-requests","libwww","httpunit","nutch","Go-http-client","phpcrawl","msnbot","jyxobot","FAST-WebCrawler","FAST Enterprise Crawler","BIGLOTRON","Teoma","convera","seekbot","Gigabot","Gigablast","exabot","ia_archiver","GingerCrawler","webmon ","HTTrack","grub\\.org","UsineNouvelleCrawler","antibot","netresearchserver","speedy","fluffy","bibnum\\.bnf","findlink","msrbot","panscient","yacybot","AISearchBot","ips-agent","tagoobot","MJ12bot","woriobot","yanga","buzzbot","mlbot","YandexBot","yandex\\.com/bots","purebot","Linguee Bot","CyberPatrol","voilabot","Baiduspider","citeseerxbot","spbot","twengabot","postrank","turnitinbot","scribdbot","page2rss","sitebot","linkdex","Adidxbot","blekkobot","ezooms","dotbot","Mail\\.RU_Bot","discobot","heritrix","findthatfile","europarchive\\.org","NerdByNature\\.Bot","sistrix crawler","Ahrefs(Bot|SiteAudit)","fuelbot","CrunchBot","centurybot9","IndeedBot","mappydata","woobot","ZoominfoBot","PrivacyAwareBot","Multiviewbot","SWIMGBot","Grobbot","eright","Apercite","semanticbot","Aboundex","domaincrawler","wbsearchbot","summify","CCBot","edisterbot","seznambot","ec2linkfinder","gslfbot","aiHitBot","intelium_bot","facebookexternalhit","Yeti","RetrevoPageAnalyzer","lb-spider","Sogou","lssbot","careerbot","wotbox","wocbot","ichiro","DuckDuckBot","lssrocketcrawler","drupact","webcompanycrawler","acoonbot","openindexspider","gnam gnam spider","web-archive-net\\.com\\.bot","backlinkcrawler","coccoc","integromedb","content crawler spider","toplistbot","it2media-domain-crawler","ip-web-crawler\\.com","siteexplorer\\.info","elisabot","proximic","changedetection","arabot","WeSEE:Search","niki-bot","CrystalSemanticsBot","rogerbot","360Spider","psbot","InterfaxScanBot","CC Metadata Scaper","g00g1e\\.net","GrapeshotCrawler","urlappendbot","brainobot","fr-crawler","binlar","SimpleCrawler","Twitterbot","cXensebot","smtbot","bnf\\.fr_bot","A6-Indexer","ADmantX","Facebot","OrangeBot/","memorybot","AdvBot","MegaIndex","SemanticScholarBot","ltx71","nerdybot","xovibot","BUbiNG","Qwantify","archive\\.org_bot","Applebot","TweetmemeBot","crawler4j","findxbot","S[eE][mM]rushBot","yoozBot","lipperhey","Y!J","Domain Re-Animator Bot","AddThis","Screaming Frog SEO Spider","MetaURI","Scrapy","Livelap[bB]ot","OpenHoseBot","CapsuleChecker","collection@infegy\\.com","IstellaBot","DeuSu/","betaBot","Cliqzbot/","MojeekBot/","netEstate NE Crawler","SafeSearch microdata crawler","Gluten Free Crawler/","Sonic","Sysomos","Trove","deadlinkchecker","Slack-ImgProxy","Embedly","RankActiveLinkBot","iskanie","SafeDNSBot","SkypeUriPreview","Veoozbot","Slackbot","redditbot","datagnionbot","Google-Adwords-Instant","adbeat_bot","WhatsApp","contxbot","pinterest","electricmonk","GarlikCrawler","BingPreview/","vebidoobot","FemtosearchBot","Yahoo Link Preview","MetaJobBot","DomainStatsBot","mindUpBot","Daum/","Jugendschutzprogramm-Crawler","Xenu Link Sleuth","Pcore-HTTP","moatbot","KosmioBot","pingdom","PhantomJS","Gowikibot","PiplBot","Discordbot","TelegramBot","Jetslide","newsharecounts","James BOT","Barkrowler","TinEye","SocialRankIOBot","trendictionbot","Ocarinabot","epicbot","Primalbot","DuckDuckGo-Favicons-Bot","GnowitNewsbot","Leikibot","LinkArchiver","YaK/","PaperLiBot","Digg Deeper","dcrawl","Snacktory","AndersPinkBot","Fyrebot","EveryoneSocialBot","Mediatoolkitbot","Luminator-robots","ExtLinksBot","SurveyBot","NING/","okhttp","Nuzzel","omgili","PocketParser","YisouSpider","um-LN","ToutiaoSpider","MuckRack","Jamie's Spider","AHC/","NetcraftSurveyAgent","Laserlikebot","Apache-HttpClient","AppEngine-Google","Jetty","Upflow","Thinklab","Traackr\\.com","Twurly","Mastodon","http_get","DnyzBot","botify","007ac9 Crawler","BehloolBot","BrandVerity","check_http","BDCbot","ZumBot","EZID","ICC-Crawler","ArchiveBot","^LCC ","filterdb\\.iss\\.net/crawler","BLP_bbot","BomboraBot","Buck/","Companybook-Crawler","Genieo","magpie-crawler","MeltwaterNews","Moreover","newspaper/","ScoutJet","(^| )sentry/","StorygizeBot","UptimeRobot","OutclicksBot","seoscanners","Hatena","Google Web Preview","MauiBot","AlphaBot","SBL-BOT","IAS crawler","adscanner","Netvibes","acapbot","Baidu-YunGuanCe","bitlybot","blogmuraBot","Bot\\.AraTurka\\.com","bot-pge\\.chlooe\\.com","BoxcarBot","BTWebClient","ContextAd Bot","Digincore bot","Disqus","Feedly","Fetch/","Fever","Flamingo_SearchEngine","FlipboardProxy","g2reader-bot","imrbot","K7MLWCBot","Kemvibot","Landau-Media-Spider","linkapediabot","vkShare","Siteimprove\\.com","BLEXBot/","DareBoost","ZuperlistBot/","Miniflux/","Feedspotbot/","Diffbot/","SEOkicks","tracemyfile","Nimbostratus-Bot"]),_u}var ku,vc;function tg(){if(vc)return ku;vc=1;var e=tt,t=e(gt()),n=e(mt()),r=ks(),i=eg(),o=yt(),u="_constructorio_is_human",l=["scroll","resize","touchmove","mouseover","mousemove","keydown","keypress","keyup","focus"],s=function(){function c(){var m=this;(0,t.default)(this,c),this.isHumanBoolean=this.getIsHumanFromSessionStorage();var y=function S(){m.isHumanBoolean=!0,r.session.set(u,!0),l.forEach(function(x){o.removeEventListener(x,S,!0)})};this.isHumanBoolean||l.forEach(function(S){o.addEventListener(S,y,!0)})}return(0,n.default)(c,[{key:"getIsHumanFromSessionStorage",value:function(){return!!r.session.get(u)||!1}},{key:"isHuman",value:function(){return this.isHumanBoolean||!!r.session.get(u)}},{key:"isBot",value:function(){if(this.getIsHumanFromSessionStorage())return!1;var y=o.getNavigator(),S=y.userAgent,x=y.webdriver,_=new RegExp("(".concat(i.join("|"),")"));return!!S.match(_)||!!x}}]),c}();return ku=s,ku}var Su,gc;function ng(){if(gc)return Su;gc=1;var e=tt,t=e(gt()),n=e(mt()),r=ks(),i=tg(),o=yt(),u="_constructorio_requests",l=18e4,s=function(){function c(m,y){var S=this;(0,t.default)(this,c),this.options=m,this.eventemitter=y,this.humanity=new i,this.requestPending=!1,this.pageUnloading=!1,this.sendTrackingEvents=!!(m&&m.sendTrackingEvents===!0),o.addEventListener("beforeunload",function(){S.pageUnloading=!0}),this.sendTrackingEvents&&this.send()}return(0,n.default)(c,[{key:"queue",value:function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GET",x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.sendTrackingEvents&&!this.humanity.isBot()){var a=c.get();a.push({url:y,method:S,body:x,networkParameters:_}),c.set(a)}}},{key:"sendEvents",value:function(){var y=this,S=this.options.fetch,x=c.get();if((!o.canUseDOM()||this.humanity.isHuman())&&!this.requestPending&&!this.pageUnloading&&x.length){var _,a=x.shift(),h=a,d=h.networkParameters,f,p=this;if(c.set(x),d&&typeof AbortController=="function"){var E=new AbortController;f=E.signal,o.applyNetworkTimeout(this.options,d,E)}if(typeof a=="string"&&(a={url:a,method:"GET"}),a.url){var T=a.url.match(/\?.*_dt=([^&]+)/),w=parseInt(T&&T[1],10),g=+new Date;if(w&&Number.isInteger(w)&&g-w>l){this.sendTrackingEvents=!1,c.remove();return}}a.method==="GET"&&(_=S(a.url,{signal:f})),a.method==="POST"&&(_=S(a.url,{method:a.method,body:JSON.stringify(a.body),mode:"cors",headers:{"Content-Type":"text/plain"},signal:f})),_&&(this.requestPending=!0,_.then(function(v){v.ok?(p.eventemitter&&p.eventemitter.emit("success",{url:a.url,method:a.method,message:"ok"}),y.requestPending=!1,y.send()):v.json().then(function(C){p.eventemitter&&p.eventemitter.emit("error",{url:a.url,method:a.method,message:C&&C.message}),y.requestPending=!1,y.send()}).catch(function(C){p.eventemitter&&p.eventemitter.emit("error",{url:a.url,method:a.method,message:C.type}),y.requestPending=!1,y.send()})}).catch(function(v){p.eventemitter&&p.eventemitter.emit("error",{url:a.url,method:a.method,message:v&&v.toString&&v.toString()}),y.requestPending=!1,y.send()}))}}},{key:"send",value:function(){this.sendTrackingEvents&&(this.options&&this.options.trackingSendDelay===0?this.sendEvents():setTimeout(this.sendEvents.bind(this),this.options&&this.options.trackingSendDelay||250))}}],[{key:"get",value:function(){return r.local.get(u)||[]}},{key:"set",value:function(y){!y||Array.isArray(y)&&y.length===0?c.remove():r.local.set(u,y);var S=c.get();Array.isArray(S)&&S.length!==y.length&&(this.sendTrackingEvents=!1,c.remove())}},{key:"remove",value:function(){r.local.remove(u)}}]),c}();return Su=s,Su}var Eu,mc;function rg(){if(mc)return Eu;mc=1;var e=tt,t=e(Kd()),n=e(Gn()),r=e(gt()),i=e(mt());function o(x,_){var a=Object.keys(x);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(x);_&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(x,d).enumerable})),a.push.apply(a,h)}return a}function u(x){for(var _=1;_<arguments.length;_++){var a=arguments[_]!=null?arguments[_]:{};_%2?o(Object(a),!0).forEach(function(h){(0,t.default)(x,h,a[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(h){Object.defineProperty(x,h,Object.getOwnPropertyDescriptor(a,h))})}return x}var l=Zv(),s=yt(),c=ng();function m(x,_){var a=_.apiKey,h=_.version,d=_.sessionId,f=_.clientId,p=_.userId,E=_.segments,T=_.testCells,w=_.requestMethod,g=_.beaconMode,v=s.getWindowLocation(),C=v.host,k=v.pathname,N=_.sendReferrerWithTrackingEvents!==!1,O=Object.assign(x);return h&&(O.c=h),f&&(O.i=f),d&&(O.s=d),p&&(O.ui=String(p)),E&&E.length&&(O.us=E),a&&(O.key=a),T&&Object.keys(T).forEach(function(P){O["ef-".concat(P)]=T[P]}),g&&w&&w.match(/POST/i)&&(O.beacon=!0),N&&C&&(O.origin_referrer=C,k&&(O.origin_referrer+=k)),O._dt=Date.now(),O=s.cleanParams(O),O}function y(x,_){return s.stringify(m(x,_))}var S=function(){function x(_){(0,r.default)(this,x),this.options=_||{},this.eventemitter=new l,this.requests=new c(_,this.eventemitter),this.behavioralV2Url="https://ac.cnstrc.com/v2/behavioral_action/"}return(0,i.default)(x,[{key:"trackSessionStartV2",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h="".concat(this.behavioralV2Url,"session_start?");return this.requests.queue("".concat(h).concat(y({},this.options)),"POST",void 0,a),this.requests.send(),!0}},{key:"trackSessionStart",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h="".concat(this.options.serviceUrl,"/behavior?"),d={action:"session_start"};return this.requests.queue("".concat(h).concat(y(d,this.options)),void 0,void 0,a),this.requests.send(),!0}},{key:"trackInputFocusV2",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d="".concat(this.behavioralV2Url,"focus?"),f={},p=h,E=a;(0,n.default)(a)==="object"&&(p=a,E=""),f.user_input=E;var T="POST",w=m(f,u(u({},this.options),{},{requestMethod:T}));return this.requests.queue("".concat(d).concat(y({},this.options)),T,w,p),this.requests.send(),!0}},{key:"trackInputFocus",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h="".concat(this.options.serviceUrl,"/behavior?"),d={action:"focus"};return this.requests.queue("".concat(h).concat(y(d,this.options)),void 0,void 0,a),this.requests.send(),!0}},{key:"trackItemDetailLoad",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/item_detail_load?"),f={},p={},E=a.item_name,T=a.name,w=a.item_id,g=a.customer_id,v=a.customerId,C=v===void 0?g:v,k=a.variation_id,N=a.itemName,O=N===void 0?E||T:N,P=a.itemId,M=P===void 0?w||C:P,F=a.variationId,q=F===void 0?k:F,I=a.url;O&&(p.item_name=O),M&&(p.item_id=M),q&&(p.variation_id=q),I&&(p.url=I);var R="".concat(d).concat(y(f,this.options)),A="POST",D=m(p,u(u({},this.options),{},{requestMethod:A}));return this.requests.queue(R,A,D,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAutocompleteSelectV2",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.behavioralV2Url,"autocomplete_select?"),p=h.original_query,E=h.originalQuery,T=E===void 0?p:E,w=h.user_input,g=h.userInput,v=g===void 0?T||w:g,C=h.original_section,k=h.section,N=k===void 0?C:k,O=h.tr,P=h.group_id,M=h.groupId,F=M===void 0?P:M,q=h.item_id,I=h.itemId,R=I===void 0?q:I,A=h.variation_id,D=h.variationId,B=D===void 0?A:D,z={},G={user_input:v,tr:O,group_id:F,item_id:R,variation_id:B,item_name:a,section:N};N&&(z.section=N);var Y="".concat(f).concat(y(z,this.options)),K="POST",J=m(G,u(u({},this.options),{},{requestMethod:K}));return this.requests.queue(Y,K,J,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackAutocompleteSelect",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(a)),"/select?"),p={},E=h.original_query,T=h.originalQuery,w=T===void 0?E:T,g=h.section,v=h.original_section,C=h.originalSection,k=C===void 0?v:C,N=h.tr,O=h.group_id,P=h.groupId,M=P===void 0?O:P,F=h.display_name,q=h.displayName,I=q===void 0?F:q;return w&&(p.original_query=w),N&&(p.tr=N),(k||g)&&(p.section=k||g),M&&(p.group={group_id:M,display_name:I}),this.requests.queue("".concat(f).concat(y(p,this.options)),void 0,void 0,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmitV2",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.behavioralV2Url,"search_submit?"),p=h.original_query,E=h.originalQuery,T=E===void 0?p:E,w=h.user_input,g=h.userInput,v=g===void 0?T||w:g,C=h.group_id,k=h.groupId,N=k===void 0?C:k,O=h.section,P={},M={user_input:v,search_term:a,section:O};N&&(M.filters={group_id:N}),O&&(P.section=O);var F="".concat(f).concat(y(P,this.options)),q="POST",I=m(M,u(u({},this.options),{},{requestMethod:q}));return this.requests.queue(F,q,I,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmit",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(a)),"/search?"),p={},E=h.original_query,T=h.originalQuery,w=T===void 0?E:T,g=h.group_id,v=h.groupId,C=v===void 0?g:v,k=h.display_name,N=h.displayName,O=N===void 0?k:N;return w&&(p.original_query=w),C&&(p.group={group_id:C,display_name:O}),this.requests.queue("".concat(f).concat(y(p,this.options)),void 0,void 0,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoadedV2",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.behavioralV2Url,"search_result_load?"),p=h.num_results,E=h.numResults,T=E===void 0?p:E,w=h.result_count,g=h.resultCount,v=g===void 0?T||w:g,C=h.customer_ids,k=h.item_ids,N=h.items,O=N===void 0?C||k:N,P=h.result_page,M=h.resultPage,F=M===void 0?P:M,q=h.result_id,I=h.resultId,R=I===void 0?q:I,A=h.sort_order,D=h.sortOrder,B=D===void 0?A:D,z=h.sort_by,G=h.sortBy,Y=G===void 0?z:G,K=h.selected_filters,J=h.selectedFilters,b=J===void 0?K:J,j=h.url,W=h.section,Q={},X;O&&Array.isArray(O)&&O.length!==0&&(X=O,typeof O[0]=="string"||typeof O[0]=="number"?X=O.map(function(ve){return{item_id:String(ve)}}):X=O.map(function(ve){return s.toSnakeCaseKeys(ve,!1)})),W&&(Q.section=W);var ne={search_term:a,result_count:v,items:X,result_page:F,result_id:R,sort_order:B,sort_by:Y,selected_filters:b,url:j,section:W},te="".concat(f).concat(y(Q,this.options)),oe="POST",re=m(ne,u(u({},this.options),{},{requestMethod:oe}));return this.requests.queue(te,oe,re,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoaded",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.options.serviceUrl,"/behavior?"),p={action:"search-results",term:a},E=h.num_results,T=h.numResults,w=T===void 0?E:T,g=h.customer_ids,v=h.customerIds,C=v===void 0?g:v,k=h.item_ids,N=h.itemIds,O=N===void 0?k:N,P;return s.isNil(w)||(p.num_results=w),O&&Array.isArray(O)?P=O:C&&Array.isArray(C)&&(P=C),P&&Array.isArray(P)&&P.length&&(p.customer_ids=P.slice(0,100).join(",")),this.requests.queue("".concat(f).concat(y(p,this.options)),void 0,void 0,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClickV2",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.behavioralV2Url,"search_result_click?"),p=h.num_results,E=h.customer_id,T=h.item_id,w=h.itemId,g=w===void 0?E||T:w,v=h.name,C=h.item_name,k=h.itemName,N=k===void 0?v||C:k,O=h.variation_id,P=h.variationId,M=P===void 0?O:P,F=h.result_id,q=h.resultId,I=q===void 0?F:q,R=h.result_count,A=h.resultCount,D=A===void 0?p||R:A,B=h.result_page,z=h.resultPage,G=z===void 0?B:z,Y=h.result_position_on_page,K=h.resultPositionOnPage,J=K===void 0?Y:K,b=h.num_results_per_page,j=h.numResultsPerPage,W=j===void 0?b:j,Q=h.selected_filters,X=h.selectedFilters,ne=X===void 0?Q:X,te=h.section,oe={item_name:N,item_id:g,variation_id:M,result_id:I,result_count:D,result_page:G,result_position_on_page:J,num_results_per_page:W,selected_filters:ne,section:te,search_term:a},re={};te&&(re.section=te);var ve="".concat(f).concat(y(re,this.options)),we="POST",wt=m(oe,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ve,we,wt,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClick",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(a)),"/click_through?"),p={},E=h.item_name,T=h.name,w=h.itemName,g=w===void 0?E||T:w,v=h.item_id,C=h.itemId,k=C===void 0?v:C,N=h.customer_id,O=h.customerId,P=O===void 0?N||k:O,M=h.variation_id,F=h.variationId,q=F===void 0?M:F,I=h.result_id,R=h.resultId,A=R===void 0?I:R,D=h.item_is_convertible,B=h.itemIsConvertible,z=B===void 0?D:B,G=h.section;return g&&(p.name=g),P&&(p.customer_id=P),q&&(p.variation_id=q),A&&(p.result_id=A),typeof z=="boolean"&&(p.item_is_convertible=z),G&&(p.section=G),this.requests.queue("".concat(f).concat(y(p,this.options)),void 0,void 0,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackConversion",value:function(a,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(h&&(0,n.default)(h)==="object"&&!Array.isArray(h)){var f=a||"TERM_UNKNOWN",p="".concat(this.options.serviceUrl,"/v2/behavioral_action/conversion?"),E={},T={},w=h.name,g=h.item_name,v=h.itemName,C=v===void 0?g||w:v,k=h.customer_id,N=h.customerId,O=N===void 0?k:N,P=h.item_id,M=h.itemId,F=M===void 0?P||O:M,q=h.variation_id,I=h.variationId,R=I===void 0?q:I,A=h.revenue,D=h.section,B=D===void 0?"Products":D,z=h.display_name,G=h.displayName,Y=G===void 0?z:G,K=h.type,J=h.is_custom_type,b=h.isCustomType,j=b===void 0?J:b;F&&(T.item_id=F),C&&(T.item_name=C),R&&(T.variation_id=R),(A||A===0)&&(T.revenue=A.toString()),B&&(E.section=B,T.section=B),f&&(T.search_term=f),K&&(T.type=K),j&&(T.is_custom_type=j),Y&&(T.display_name=Y);var W="".concat(p).concat(y(E,this.options)),Q="POST",X=m(T,u(u({},this.options),{},{requestMethod:Q}));return this.requests.queue(W,Q,X,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackPurchase",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/purchase?"),f={},p={},E=a.items,T=a.revenue,w=a.order_id,g=a.orderId,v=g===void 0?w:g,C=a.section;if(v){if(s.hasOrderIdRecord(v))return!1;s.addOrderIdRecord(v),p.order_id=v}E&&Array.isArray(E)&&(p.items=E.slice(0,100).map(function(P){return s.toSnakeCaseKeys(P,!1)})),(T||T===0)&&(p.revenue=T),C?f.section=C:f.section="Products";var k="".concat(d).concat(y(f,this.options)),N="POST",O=m(p,u(u({},this.options),{},{requestMethod:N}));return this.requests.queue(k,N,O,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationView",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_view?"),f={},p=a.result_count,E=a.resultCount,T=E===void 0?p:E,w=a.result_page,g=a.resultPage,v=g===void 0?w:g,C=a.result_id,k=a.resultId,N=k===void 0?C:k,O=a.section,P=a.url,M=a.pod_id,F=a.podId,q=F===void 0?M:F,I=a.num_results_viewed,R=a.numResultsViewed,A=R===void 0?I:R,D=a.items;s.isNil(T)||(f.result_count=T),s.isNil(v)||(f.result_page=v),N&&(f.result_id=N),O?f.section=O:f.section="Products",P&&(f.url=P),q&&(f.pod_id=q),s.isNil(A)||(f.num_results_viewed=A),D&&Array.isArray(D)&&(f.items=D.slice(0,100).map(function(Y){return s.toSnakeCaseKeys(Y,!1)}));var B="".concat(d).concat(y({},this.options)),z="POST",G=m(f,u(u({},this.options),{},{requestMethod:z}));return this.requests.queue(B,z,G,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationClick",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_click?"),f={},p=a.variation_id,E=a.variationId,T=E===void 0?p:E,w=a.section,g=w===void 0?"Products":w,v=a.result_id,C=a.resultId,k=C===void 0?v:C,N=a.result_count,O=a.resultCount,P=O===void 0?N:O,M=a.result_page,F=a.resultPage,q=F===void 0?M:F,I=a.result_position_on_page,R=a.resultPositionOnPage,A=R===void 0?I:R,D=a.num_results_per_page,B=a.numResultsPerPage,z=B===void 0?D:B,G=a.pod_id,Y=a.podId,K=Y===void 0?G:Y,J=a.strategy_id,b=a.strategyId,j=b===void 0?J:b,W=a.item_id,Q=a.itemId,X=Q===void 0?W:Q,ne=a.item_name,te=a.itemName,oe=te===void 0?ne:te;T&&(f.variation_id=T),g&&(f.section=g),k&&(f.result_id=k),s.isNil(P)||(f.result_count=P),s.isNil(q)||(f.result_page=q),s.isNil(A)||(f.result_position_on_page=A),s.isNil(z)||(f.num_results_per_page=z),K&&(f.pod_id=K),j&&(f.strategy_id=j),X&&(f.item_id=X),oe&&(f.item_name=oe);var re="".concat(d).concat(y({},this.options)),ve="POST",we=m(f,u(u({},this.options),{},{requestMethod:ve}));return this.requests.queue(re,ve,we,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultsLoaded",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_load?"),f={},p=a.section,E=p===void 0?"Products":p,T=a.result_count,w=a.resultCount,g=w===void 0?T:w,v=a.result_page,C=a.resultPage,k=C===void 0?v:C,N=a.result_id,O=a.resultId,P=O===void 0?N:O,M=a.selected_filters,F=a.selectedFilters,q=F===void 0?M:F,I=a.url,R=a.sort_order,A=a.sortOrder,D=A===void 0?R:A,B=a.sort_by,z=a.sortBy,G=z===void 0?B:z,Y=a.filter_name,K=a.filterName,J=K===void 0?Y:K,b=a.filter_value,j=a.filterValue,W=j===void 0?b:j,Q=a.items;E&&(f.section=E),s.isNil(g)||(f.result_count=g),s.isNil(k)||(f.result_page=k),P&&(f.result_id=P),q&&(f.selected_filters=q),I&&(f.url=I),D&&(f.sort_order=D),G&&(f.sort_by=G),J&&(f.filter_name=J),W&&(f.filter_value=W),Q&&Array.isArray(Q)&&(f.items=Q.slice(0,100).map(function(oe){return s.toSnakeCaseKeys(oe,!1)}));var X="".concat(d).concat(y({},this.options)),ne="POST",te=m(f,u(u({},this.options),{},{requestMethod:ne}));return this.requests.queue(X,ne,te,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultClick",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_click?"),f={},p=a.section,E=p===void 0?"Products":p,T=a.variation_id,w=a.variationId,g=w===void 0?T:w,v=a.result_id,C=a.resultId,k=C===void 0?v:C,N=a.result_count,O=a.resultCount,P=O===void 0?N:O,M=a.result_page,F=a.resultPage,q=F===void 0?M:F,I=a.result_position_on_page,R=a.resultPositionOnPage,A=R===void 0?I:R,D=a.num_results_per_page,B=a.numResultsPerPage,z=B===void 0?D:B,G=a.selected_filters,Y=a.selectedFilters,K=Y===void 0?G:Y,J=a.filter_name,b=a.filterName,j=b===void 0?J:b,W=a.filter_value,Q=a.filterValue,X=Q===void 0?W:Q,ne=a.customer_id,te=a.customerId,oe=te===void 0?ne:te,re=a.item_id,ve=a.itemId,we=ve===void 0?oe||re:ve,wt=a.item_name,At=a.name,yn=a.itemName,je=yn===void 0?wt||At:yn;E&&(f.section=E),g&&(f.variation_id=g),k&&(f.result_id=k),s.isNil(P)||(f.result_count=P),s.isNil(q)||(f.result_page=q),s.isNil(A)||(f.result_position_on_page=A),s.isNil(z)||(f.num_results_per_page=z),K&&(f.selected_filters=K),j&&(f.filter_name=j),X&&(f.filter_value=X),we&&(f.item_id=we),je&&(f.item_name=je);var Xn="".concat(d).concat(y({},this.options)),tn="POST",Pt=m(f,u(u({},this.options),{},{requestMethod:tn}));return this.requests.queue(Xn,tn,Pt,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackGenericResultClick",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,n.default)(a)==="object"){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/result_click?"),f={},p=a.item_id,E=a.itemId,T=E===void 0?p:E,w=a.item_name,g=a.itemName,v=g===void 0?w:g,C=a.variation_id,k=a.variationId,N=k===void 0?C:k,O=a.section,P=O===void 0?"Products":O;if(T){f.section=P,f.item_id=T,v&&(f.item_name=v),N&&(f.variation_id=N);var M="".concat(d).concat(y({},this.options)),F="POST",q=m(f,u(u({},this.options),{},{requestMethod:F}));return this.requests.queue(M,F,q,h),this.requests.send(),!0}}return this.requests.send(),new Error('A parameters object with an "itemId" property is required.')}},{key:"trackQuizResultsLoaded",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_load?"),f=a.quiz_id,p=a.quizId,E=p===void 0?f:p,T=a.quiz_version_id,w=a.quizVersionId,g=w===void 0?T:w,v=a.quiz_session_id,C=a.quizSessionId,k=C===void 0?v:C,N=a.url,O=a.section,P=O===void 0?"Products":O,M=a.result_count,F=a.resultCount,q=F===void 0?M:F,I=a.result_id,R=a.resultId,A=R===void 0?I:R,D=a.result_page,B=a.resultPage,z=B===void 0?D:B,G=a.items,Y={},K={};if(G&&Array.isArray(G)&&(K.items=G.slice(0,100).map(function(W){return s.toSnakeCaseKeys(W,!1)})),typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof g!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof k!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof N!="string")return new Error('"url" is a required parameter of type string');if(K.quiz_id=E,K.quiz_version_id=g,K.quiz_session_id=k,K.url=N,!s.isNil(P)){if(typeof P!="string")return new Error('"section" must be a string');Y.section=P,K.section=P}if(!s.isNil(q)){if(typeof q!="number")return new Error('"resultCount" must be a number');K.result_count=q}if(!s.isNil(A)){if(typeof A!="string")return new Error('"resultId" must be a string');K.result_id=A}if(!s.isNil(z)){if(typeof z!="number")return new Error('"resultPage" must be a number');K.result_page=z}K.action_class="result_load";var J="".concat(d).concat(y(Y,this.options)),b="POST",j=m(K,u(u({},this.options),{},{requestMethod:b}));return this.requests.queue(J,b,j,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizResultClick",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_click?"),f=a.quiz_id,p=a.quizId,E=p===void 0?f:p,T=a.quiz_version_id,w=a.quizVersionId,g=w===void 0?T:w,v=a.quiz_session_id,C=a.quizSessionId,k=C===void 0?v:C,N=a.item_id,O=a.itemId,P=O===void 0?N:O,M=a.item_name,F=a.itemName,q=F===void 0?M:F,I=a.result_count,R=a.resultCount,A=R===void 0?I:R,D=a.result_id,B=a.resultId,z=B===void 0?D:B,G=a.result_page,Y=a.resultPage,K=Y===void 0?G:Y,J=a.num_results_per_page,b=a.numResultsPerPage,j=b===void 0?J:b,W=a.result_position_on_page,Q=a.resultPositionOnPage,X=Q===void 0?W:Q,ne=a.section,te=ne===void 0?"Products":ne,oe={},re={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof g!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof k!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof P!="string"&&typeof q!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(re.quiz_id=E,re.quiz_version_id=g,re.quiz_session_id=k,!s.isNil(P)){if(typeof P!="string")return new Error('"itemId" must be a string');re.item_id=P}if(!s.isNil(q)){if(typeof q!="string")return new Error('"itemName" must be a string');re.item_name=q}if(!s.isNil(te)){if(typeof te!="string")return new Error('"section" must be a string');oe.section=te}if(!s.isNil(A)){if(typeof A!="number")return new Error('"resultCount" must be a number');re.result_count=A}if(!s.isNil(z)){if(typeof z!="string")return new Error('"resultId" must be a string');re.result_id=z}if(!s.isNil(K)){if(typeof K!="number")return new Error('"resultPage" must be a number');re.result_page=K}if(!s.isNil(j)){if(typeof j!="number")return new Error('"numResultsPerPage" must be a number');re.num_results_per_page=j}if(!s.isNil(X)){if(typeof X!="number")return new Error('"resultPositionOnPage" must be a number');re.result_position_on_page=X}re.action_class="result_click";var ve="".concat(d).concat(y(oe,this.options)),we="POST",wt=m(re,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ve,we,wt,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizConversion",value:function(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,n.default)(a)==="object"&&!Array.isArray(a)){var d="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_conversion?"),f=a.quiz_id,p=a.quizId,E=p===void 0?f:p,T=a.quiz_version_id,w=a.quizVersionId,g=w===void 0?T:w,v=a.quiz_session_id,C=a.quizSessionId,k=C===void 0?v:C,N=a.item_id,O=a.itemId,P=O===void 0?N:O,M=a.item_name,F=a.itemName,q=F===void 0?M:F,I=a.variation_id,R=a.variationId,A=R===void 0?I:R,D=a.revenue,B=a.section,z=B===void 0?"Products":B,G=a.type,Y=a.is_custom_type,K=a.isCustomType,J=K===void 0?Y:K,b=a.display_name,j=a.displayName,W=j===void 0?b:j,Q={},X={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof g!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof k!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof P!="string"&&typeof q!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(X.quiz_id=E,X.quiz_version_id=g,X.quiz_session_id=k,!s.isNil(P)){if(typeof P!="string")return new Error('"itemId" must be a string');X.item_id=P}if(!s.isNil(q)){if(typeof q!="string")return new Error('"itemName" must be a string');X.item_name=q}if(!s.isNil(A)){if(typeof A!="string")return new Error('"variationId" must be a string');X.variation_id=A}if(!s.isNil(D)){if(typeof D!="string")return new Error('"revenue" must be a string');X.revenue=D}if(!s.isNil(z)){if(typeof z!="string")return new Error('"section" must be a string');X.section=z}if(!s.isNil(G)){if(typeof G!="string")return new Error('"type" must be a string');X.type=G}if(!s.isNil(J)){if(typeof J!="boolean")return new Error('"isCustomType" must be a boolean');X.is_custom_type=J}if(!s.isNil(W)){if(typeof W!="string")return new Error('"displayName" must be a string');X.display_name=W}X.action_class="conversion";var ne="".concat(d).concat(y(Q,this.options)),te="POST",oe=m(X,u(u({},this.options),{},{requestMethod:te}));return this.requests.queue(ne,te,oe,h),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"on",value:function(a,h){return a!=="success"&&a!=="error"?new Error('messageType must be a string of value "success" or "error"'):!h||typeof h!="function"?new Error("callback is required and must be a function"):(this.eventemitter.on(a,h),!0)}}]),x}();return S.RequestQueue=c,Eu=S,Eu}const ig="@constructor-io/constructorio-client-javascript",og="2.36.0",ug="Constructor.io JavaScript client",lg="lib/constructorio.js",sg="lib/types/constructorio.d.ts",ag={clean:"sudo rm -rf node_modules package-lock.json",version:"npm run verify-node-version && npm run docs && git add ./docs/* && npm run bundle && git add -A ./dist","check-license":"license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT;0BSD;BSD-2-Clause'","verify-node-version":"chmod +x ./scripts/verify-node-version.sh && ./scripts/verify-node-version.sh",lint:"eslint 'src/**/*.js' 'spec/**/*.js' 'src/**/*.d.ts'",test:"npm run compile && mkdir -p test && cp -rf lib/* test && mocha ./spec/*","test:types":"tsd .","test:parallel":"npm run compile && mkdir -p test && cp -rf lib/* test && mocha --parallel ./spec/*","test:src":"mkdir -p test && cp -rf src/* test && mocha ./spec/*","test:src:parallel":"mkdir -p test && cp -rf src/* test && mocha --parallel ./spec/*","test:bundled":"npm run bundle && BUNDLED=true PACKAGE_VERSION=$(echo $npm_package_version) mocha ./spec/*","test:bundled:parallel":"npm run bundle && BUNDLED=true PACKAGE_VERSION=$(echo $npm_package_version) mocha --parallel ./spec/*","test:all":"npm run test && npm run test:bundled","test:all:parallel":"npm run test:parallel && npm run test:bundled:parallel",precoverage:"rm -rf ./coverage && rm -rf ./.nyc_output",coverage:"nyc --all --reporter=html npm run test:src",postcoverage:"open coverage/index.html && rm -rf test",docs:"jsdoc --configure ./.jsdoc.json ./README.md --recurse ./src --destination ./docs",compile:"babel src/ -d lib/ --copy-files && rm -rf lib/types/tests",prepublish:"npm run compile",bundle:"rm -rf ./dist/* && npm run compile && node bundle.js",prepare:"husky install"},cg={type:"git",url:"git+https://github.com/Constructor-io/constructorio-client-javascript.git"},fg="constructor.io",dg="MIT",pg={url:"https://github.com/Constructor-io/constructorio-client-javascript/issues"},hg="https://github.com/Constructor-io/constructorio-client-javascript#readme",vg=["lib/**/*"],gg={"@babel/cli":"^7.15.7","@babel/core":"^7.15.8","@babel/plugin-transform-runtime":"^7.16.4","@babel/preset-env":"^7.15.8","@babel/register":"^7.15.3","@cspell/eslint-plugin":"^6.8.2","@typescript-eslint/eslint-plugin":"^5.48.1","@typescript-eslint/parser":"^5.48.1",chai:"^4.2.0","chai-as-promised":"^7.1.1",docdash:"^2.0.1",dotenv:"^8.6.0",esbuild:"^0.12.28",eslint:"^8.17.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.25.2",husky:"^7.0.4",jsdoc:"^4.0.2",jsdom:"^16.7.0","license-checker":"^25.0.1","lodash.clonedeep":"^4.5.0",mocha:"^9.1.3",nyc:"^15.1.0",qs:"^6.11.0",sinon:"^7.5.0","sinon-chai":"^3.7.0",tsd:"^0.24.1"},mg={"@constructor-io/constructorio-id":"^2.4.10","crc-32":"^1.2.2","fetch-ponyfill":"^7.1.0",store2:"^2.14.2"},yg={"@babel/runtime":"^7.19.0"},wg={directory:"src/types/tests"},_g={name:ig,version:og,description:ug,main:lg,types:sg,scripts:ag,repository:cg,author:fg,license:dg,bugs:pg,homepage:hg,files:vg,devDependencies:gg,dependencies:mg,peerDependencies:yg,tsd:wg};var xu={exports:{}},Cu={exports:{}},Iu={exports:{}},yc;function Qd(){return yc||(yc=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Iu)),Iu.exports}var wc;function kg(){return wc||(wc=1,function(e){var t=Qd();function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Cu)),Cu.exports}var Ru={exports:{}},_c;function Sg(){return _c||(_c=1,function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ru)),Ru.exports}var Tu={exports:{}},kc;function Eg(){return kc||(kc=1,function(e){var t=Qd();function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Tu)),Tu.exports}var Ou={exports:{}},Sc;function xg(){return Sc||(Sc=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ou)),Ou.exports}var Ec;function Cg(){return Ec||(Ec=1,function(e){var t=kg(),n=Sg(),r=Eg(),i=xg();function o(u){return t(u)||n(u)||r(u)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(xu)),xu.exports}var Nu,xc;function Ig(){if(xc)return Nu;xc=1;var e=tt,t=e(gt()),n=e(mt()),r=e(Cg()),i=e(Gn()),o=$n(),u=yt();function l(c,m,y,S){var x=y.apiKey,_=y.clientId,a=y.sessionId,h=y.segments,d=y.userId,f=y.version,p=y.quizzesServiceUrl,E={c:f},T="";if(E.key=x,E.i=_,E.s=a,h&&h.length&&(E.us=h),d&&(E.ui=String(d)),!c||typeof c!="string")throw new Error("quizId is a required parameter of type string");if(S==="results"&&((0,i.default)(m.answers)!=="object"||!Array.isArray(m.answers)||m.answers.length===0))throw new Error("answers is a required parameter of type array");if(m){var w=m.section,g=m.answers,v=m.quizSessionId,C=m.quizVersionId,k=m.page,N=m.resultsPerPage,O=m.filters;w&&(E.section=w),C&&(E.quiz_version_id=C),v&&(E.quiz_session_id=v),g&&g.length&&(T="&".concat(u.stringify({a:g.map(function(M){return(0,r.default)(M).join(",")})}))),u.isNil(k)||(E.page=k),u.isNil(N)||(E.num_results_per_page=N),O&&(E.filters=O)}E._dt=Date.now(),E=u.cleanParams(E);var P=u.stringify(E);return"".concat(p,"/v1/quizzes/").concat(encodeURIComponent(c),"/").concat(encodeURIComponent(S),"/?").concat(P).concat(T)}var s=function(){function c(m){(0,t.default)(this,c),this.options=m||{},this.eventDispatcher=new o(m.eventDispatcher)}return(0,n.default)(c,[{key:"getQuizNextQuestion",value:function(y,S){var x=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,h=this.options.fetch,d=new AbortController,f=d.signal;try{a=l(y,S,this.options,"next")}catch(p){return Promise.reject(p)}return u.applyNetworkTimeout(this.options,_,d),h(a,{signal:f}).then(function(p){return p.ok?p.json():u.throwHttpErrorFromResponse(new Error,p)}).then(function(p){if(p.quiz_version_id)return x.eventDispatcher.queue("quizzes.getQuizNextQuestion.completed",p),p;throw new Error("getQuizNextQuestion response data is malformed")})}},{key:"getQuizResults",value:function(y,S){var x=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,h=this.options.fetch,d=new AbortController,f=d.signal;try{a=l(y,S,this.options,"results")}catch(p){return Promise.reject(p)}return u.applyNetworkTimeout(this.options,_,d),h(a,{signal:f}).then(function(p){return p.ok?p.json():u.throwHttpErrorFromResponse(new Error,p)}).then(function(p){if(p.quiz_version_id)return x.eventDispatcher.queue("quizzes.getQuizResults.completed",p),p;throw new Error("getQuizResults response data is malformed")})}}]),c}();return Nu=s,Nu}var Gd=tt,Rg=Gd(gt()),Tg=Gd(mt()),Og=Vv(),Ng=Wv(),Ag=$v(),Pg=Xv(),Dg=Yv(),Mg=Jv(),$d=rg(),Lg=$n(),Ss=yt(),zg=_g,Fg=zg.version,qg=Ig(),Bg=function(){var t="ciojs-client-",n=[];return Ss.canUseDOM()||n.push("domless"),typeof process<"u"&&typeof process.env<"u"&&{}.BUNDLED&&n.push("bundled"),"".concat(t).concat(n.join("-")).concat(n.length?"-":"").concat(Fg)},Es=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,Rg.default)(this,e);var n=t.apiKey,r=t.version,i=t.serviceUrl,o=t.quizzesServiceUrl,u=t.segments,l=t.testCells,s=t.clientId,c=t.sessionId,m=t.userId,y=t.fetch,S=t.trackingSendDelay,x=t.sendReferrerWithTrackingEvents,_=t.sendTrackingEvents,a=t.eventDispatcher,h=t.idOptions,d=t.beaconMode,f=t.networkParameters;if(!n||typeof n!="string")throw new Error("API key is a required parameter of type string");var p,E,T=typeof jt<"u"&&jt.CLIENT_VERSION;if(Ss.canUseDOM()){var w=new Og(h||{});p=w.session_id,E=w.client_id}else{if(!c||typeof c!="number")throw new Error("sessionId is a required user parameter of type number");if(!s||typeof s!="string")throw new Error("clientId is a required user parameter of type string")}this.options={apiKey:n,version:r||T||Bg(),serviceUrl:i&&i.replace(/\/$/,"")||"https://ac.cnstrc.com",quizzesServiceUrl:o&&o.replace(/\/$/,"")||"https://quizzes.cnstrc.com",sessionId:c||p,clientId:s||E,userId:m,segments:u,testCells:l,fetch:y||Ng({Promise}).fetch,trackingSendDelay:S,sendTrackingEvents:_,sendReferrerWithTrackingEvents:x,eventDispatcher:a,beaconMode:d!==!1,networkParameters:f||{}},this.search=new Ag(this.options),this.browse=new Pg(this.options),this.autocomplete=new Dg(this.options),this.recommendations=new Mg(this.options),this.tracker=new $d(this.options),this.quizzes=new qg(this.options),new Lg(t.eventDispatcher).queue("instantiated",this.options)}return(0,Tg.default)(e,[{key:"setClientOptions",value:function(n){if(Object.keys(n).length){var r=n.apiKey,i=n.segments,o=n.testCells,u=n.userId;r&&(this.options.apiKey=r),i&&(this.options.segments=i),o&&(this.options.testCells=o),u&&(this.options.userId=u)}}}]),e}();Es.Tracker=$d;Ss.canUseDOM()&&(window.ConstructorioClient=Es);var Ug=Es;const jg=Il(Ug);function bg(e){return e.section==="Products"}function Hg(e){return e.section==="Search Suggestions"}function Xd(e){return e.groupName!==void 0}function Yd(e){return e.type==="autocomplete"||!e.type}function Wr(e){return e.type==="recommendations"}const Vg="1.19.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ou)),Ou.exports}var Ec;function Cg(){return Ec||(Ec=1,function(e){var t=kg(),n=Sg(),r=Eg(),i=xg();function o(u){return t(u)||n(u)||r(u)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(xu)),xu.exports}var Nu,xc;function Ig(){if(xc)return Nu;xc=1;var e=tt,t=e(gt()),n=e(mt()),r=e(Cg()),i=e(Gn()),o=$n(),u=yt();function l(c,m,y,S){var x=y.apiKey,_=y.clientId,a=y.sessionId,h=y.segments,d=y.userId,f=y.version,p=y.quizzesServiceUrl,E={c:f},T="";if(E.key=x,E.i=_,E.s=a,h&&h.length&&(E.us=h),d&&(E.ui=String(d)),!c||typeof c!="string")throw new Error("quizId is a required parameter of type string");if(S==="results"&&((0,i.default)(m.answers)!=="object"||!Array.isArray(m.answers)||m.answers.length===0))throw new Error("answers is a required parameter of type array");if(m){var w=m.section,g=m.answers,v=m.quizSessionId,C=m.quizVersionId,k=m.page,N=m.resultsPerPage,O=m.filters;w&&(E.section=w),C&&(E.quiz_version_id=C),v&&(E.quiz_session_id=v),g&&g.length&&(T="&".concat(u.stringify({a:g.map(function(M){return(0,r.default)(M).join(",")})}))),u.isNil(k)||(E.page=k),u.isNil(N)||(E.num_results_per_page=N),O&&(E.filters=O)}E._dt=Date.now(),E=u.cleanParams(E);var P=u.stringify(E);return"".concat(p,"/v1/quizzes/").concat(encodeURIComponent(c),"/").concat(encodeURIComponent(S),"/?").concat(P).concat(T)}var s=function(){function c(m){(0,t.default)(this,c),this.options=m||{},this.eventDispatcher=new o(m.eventDispatcher)}return(0,n.default)(c,[{key:"getQuizNextQuestion",value:function(y,S){var x=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,h=this.options.fetch,d=new AbortController,f=d.signal;try{a=l(y,S,this.options,"next")}catch(p){return Promise.reject(p)}return u.applyNetworkTimeout(this.options,_,d),h(a,{signal:f}).then(function(p){return p.ok?p.json():u.throwHttpErrorFromResponse(new Error,p)}).then(function(p){if(p.quiz_version_id)return x.eventDispatcher.queue("quizzes.getQuizNextQuestion.completed",p),p;throw new Error("getQuizNextQuestion response data is malformed")})}},{key:"getQuizResults",value:function(y,S){var x=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,h=this.options.fetch,d=new AbortController,f=d.signal;try{a=l(y,S,this.options,"results")}catch(p){return Promise.reject(p)}return u.applyNetworkTimeout(this.options,_,d),h(a,{signal:f}).then(function(p){return p.ok?p.json():u.throwHttpErrorFromResponse(new Error,p)}).then(function(p){if(p.quiz_version_id)return x.eventDispatcher.queue("quizzes.getQuizResults.completed",p),p;throw new Error("getQuizResults response data is malformed")})}}]),c}();return Nu=s,Nu}var Gd=tt,Rg=Gd(gt()),Tg=Gd(mt()),Og=Vv(),Ng=Wv(),Ag=$v(),Pg=Xv(),Dg=Yv(),Mg=Jv(),$d=rg(),Lg=$n(),Ss=yt(),zg=_g,Fg=zg.version,qg=Ig(),Bg=function(){var t="ciojs-client-",n=[];return Ss.canUseDOM()||n.push("domless"),typeof process<"u"&&typeof process.env<"u"&&{}.BUNDLED&&n.push("bundled"),"".concat(t).concat(n.join("-")).concat(n.length?"-":"").concat(Fg)},Es=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,Rg.default)(this,e);var n=t.apiKey,r=t.version,i=t.serviceUrl,o=t.quizzesServiceUrl,u=t.segments,l=t.testCells,s=t.clientId,c=t.sessionId,m=t.userId,y=t.fetch,S=t.trackingSendDelay,x=t.sendReferrerWithTrackingEvents,_=t.sendTrackingEvents,a=t.eventDispatcher,h=t.idOptions,d=t.beaconMode,f=t.networkParameters;if(!n||typeof n!="string")throw new Error("API key is a required parameter of type string");var p,E,T=typeof jt<"u"&&jt.CLIENT_VERSION;if(Ss.canUseDOM()){var w=new Og(h||{});p=w.session_id,E=w.client_id}else{if(!c||typeof c!="number")throw new Error("sessionId is a required user parameter of type number");if(!s||typeof s!="string")throw new Error("clientId is a required user parameter of type string")}this.options={apiKey:n,version:r||T||Bg(),serviceUrl:i&&i.replace(/\/$/,"")||"https://ac.cnstrc.com",quizzesServiceUrl:o&&o.replace(/\/$/,"")||"https://quizzes.cnstrc.com",sessionId:c||p,clientId:s||E,userId:m,segments:u,testCells:l,fetch:y||Ng({Promise}).fetch,trackingSendDelay:S,sendTrackingEvents:_,sendReferrerWithTrackingEvents:x,eventDispatcher:a,beaconMode:d!==!1,networkParameters:f||{}},this.search=new Ag(this.options),this.browse=new Pg(this.options),this.autocomplete=new Dg(this.options),this.recommendations=new Mg(this.options),this.tracker=new $d(this.options),this.quizzes=new qg(this.options),new Lg(t.eventDispatcher).queue("instantiated",this.options)}return(0,Tg.default)(e,[{key:"setClientOptions",value:function(n){if(Object.keys(n).length){var r=n.apiKey,i=n.segments,o=n.testCells,u=n.userId;r&&(this.options.apiKey=r),i&&(this.options.segments=i),o&&(this.options.testCells=o),u&&(this.options.userId=u)}}}]),e}();Es.Tracker=$d;Ss.canUseDOM()&&(window.ConstructorioClient=Es);var Ug=Es;const jg=Il(Ug);function bg(e){return e.section==="Products"}function Hg(e){return e.section==="Search Suggestions"}function Xd(e){return e.groupName!==void 0}function Yd(e){return e.type==="autocomplete"||!e.type}function Wr(e){return e.type==="recommendations"}const Vg="1.19.2";function Wg(e){var r,i;let t=!1,n=!1;if(((r=e==null?void 0:e.features)==null?void 0:r.custom_autosuggest_ui)===!0)switch((i=e==null?void 0:e.feature_variants)==null?void 0:i.custom_autosuggest_ui){case"custom_autosuggest_ui_result_count":n=!0;break;case"custom_autosuggest_ui_image":t=!0;break;case"custom_autosuggest_ui_image_result_count":t=!0,n=!0;break}return{featureDisplaySearchSuggestionImages:t,featureDisplaySearchSuggestionResultCounts:n}}const Kg=({item:e,items:t})=>{var i;const n=t.findIndex(o=>(o==null?void 0:o.id)===(e==null?void 0:e.id));return{sectionId:(i=t[n])==null?void 0:i.section,index:n}},Qg=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b([A-Z]+)([A-Z])([a-z])/,"$1 $2$3").replace(/([a-zA-Z])/,t=>t.toUpperCase()),Jd=e=>e.replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Gg=(e,t)=>{if(e&&typeof window<"u"){const n=new jg({apiKey:e,sendTrackingEvents:!0,version:`cio-ui-autocomplete-${Vg}`,...t});return n.tracker.on("error",r=>console.error(r)),n}return null},$g=(e,t,n)=>{const r=[];return e==null||e.forEach((i,o)=>{const{type:u}=i;let l;switch(u){case"recommendations":l=t[i.podId];break;case"custom":l=i.data.map(s=>{var c;return{...s,id:(s==null?void 0:s.id)||((c=s==null?void 0:s.data)==null?void 0:c.id)}});break;default:l=t[i.indexSectionName]}if(Array.isArray(l)){const s={...i,data:l},c=i.ref,m=n.current[o];s.ref=c||m,r.push(s)}}),r},Xg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Yg=(e,t,n)=>{if(e.dataset.cnstrcRecommendationsPodId){const r=t.find(o=>Wr(o)&&o.podId===e.dataset.cnstrcRecommendationsPodId),i=r==null?void 0:r.data.map(o=>{var u,l;return{itemId:(u=o.data)==null?void 0:u.id,itemName:o.value,variationId:(l=o.data)==null?void 0:l.variation_id}});n==null||n.tracker.trackRecommendationView({podId:e.dataset.cnstrcRecommendationsPodId,numResultsViewed:(i==null?void 0:i.length)||0,url:window.location.href,section:e.dataset.cnstrcSection,items:i})}},Jg=e=>{const t=[];return e==null||e.forEach(n=>{n!=null&&n.data&&t.push(...n.data)}),t},Zg=(e,t)=>{const n={in:"in"};return t?t[e]:n[e]||e},em=({apiKey:e,cioJsClient:t,cioJsClientOptions:n})=>(!e&&!t&&console.error("Either apiKey or cioJsClient is required"),H.useMemo(()=>t||Gg(e,n),[e,t,n]));function cr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var Zd={exports:{}},tm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nm=tm,rm=nm;function ep(){}function tp(){}tp.resetWarningCache=ep;var im=function(){function e(r,i,o,u,l,s){if(s!==rm){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tp,resetWarningCache:ep};return n.PropTypes=n,n};Zd.exports=im();var om=Zd.exports;const U=Il(om);var le={};/** @license React v17.0.2
|
|
37
37
|
* react-is.production.min.js
|
|
38
38
|
*
|
|
39
39
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/lib/cjs/types.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isAutocompleteSearchSubmit = exports.isAutocompleteSelectSubmit = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the provided event is an AutocompleteSelectSubmit event.
|
|
6
|
+
* @param event The event to check.
|
|
7
|
+
* @returns True if the event is an AutocompleteSelectSubmit event, false otherwise.
|
|
8
|
+
* @example if (isAutocompleteSelectSubmit(event)) { ... } // `query` is available
|
|
9
|
+
*/
|
|
10
|
+
const isAutocompleteSelectSubmit = (event) => 'item' in event && 'originalQuery' in event;
|
|
11
|
+
exports.isAutocompleteSelectSubmit = isAutocompleteSelectSubmit;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if the given event is an AutocompleteSearchSubmit event.
|
|
14
|
+
* @param event The event to check.
|
|
15
|
+
* @returns True if the event is an AutocompleteSearchSubmit event, false otherwise.
|
|
16
|
+
* @example if (isAutocompleteSearchSubmit(event)) { ... } // `item` and `originalQuery` are available
|
|
17
|
+
*/
|
|
18
|
+
const isAutocompleteSearchSubmit = (event) => 'query' in event;
|
|
19
|
+
exports.isAutocompleteSearchSubmit = isAutocompleteSearchSubmit;
|
package/lib/cjs/utils.js
CHANGED
|
@@ -39,10 +39,12 @@ const getItemPosition = ({ item, items }) => {
|
|
|
39
39
|
};
|
|
40
40
|
exports.getItemPosition = getItemPosition;
|
|
41
41
|
const camelToStartCase = (camelCaseString) => camelCaseString
|
|
42
|
-
// insert a space
|
|
43
|
-
.replace(/([A-Z])/g, ' $
|
|
44
|
-
//
|
|
45
|
-
.replace(
|
|
42
|
+
// insert a space between lower & upper
|
|
43
|
+
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
44
|
+
// space before last upper in a sequence followed by lower
|
|
45
|
+
.replace(/\b([A-Z]+)([A-Z])([a-z])/, '$1 $2$3')
|
|
46
|
+
// uppercase the first letter
|
|
47
|
+
.replace(/([a-zA-Z])/, (str) => str.toUpperCase());
|
|
46
48
|
exports.camelToStartCase = camelToStartCase;
|
|
47
49
|
const toKebabCase = (str) => str
|
|
48
50
|
.replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')
|
package/lib/cjs/version.js
CHANGED
package/lib/mjs/types.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the provided event is an AutocompleteSelectSubmit event.
|
|
3
|
+
* @param event The event to check.
|
|
4
|
+
* @returns True if the event is an AutocompleteSelectSubmit event, false otherwise.
|
|
5
|
+
* @example if (isAutocompleteSelectSubmit(event)) { ... } // `query` is available
|
|
6
|
+
*/
|
|
7
|
+
export const isAutocompleteSelectSubmit = (event) => 'item' in event && 'originalQuery' in event;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if the given event is an AutocompleteSearchSubmit event.
|
|
10
|
+
* @param event The event to check.
|
|
11
|
+
* @returns True if the event is an AutocompleteSearchSubmit event, false otherwise.
|
|
12
|
+
* @example if (isAutocompleteSearchSubmit(event)) { ... } // `item` and `originalQuery` are available
|
|
13
|
+
*/
|
|
14
|
+
export const isAutocompleteSearchSubmit = (event) => 'query' in event;
|
package/lib/mjs/utils.js
CHANGED
|
@@ -31,10 +31,12 @@ export const getItemPosition = ({ item, items }) => {
|
|
|
31
31
|
return { sectionId, index };
|
|
32
32
|
};
|
|
33
33
|
export const camelToStartCase = (camelCaseString) => camelCaseString
|
|
34
|
-
// insert a space
|
|
35
|
-
.replace(/([A-Z])/g, ' $
|
|
36
|
-
//
|
|
37
|
-
.replace(
|
|
34
|
+
// insert a space between lower & upper
|
|
35
|
+
.replace(/([a-z])([A-Z])/g, '$1 $2')
|
|
36
|
+
// space before last upper in a sequence followed by lower
|
|
37
|
+
.replace(/\b([A-Z]+)([A-Z])([a-z])/, '$1 $2$3')
|
|
38
|
+
// uppercase the first letter
|
|
39
|
+
.replace(/([a-zA-Z])/, (str) => str.toUpperCase());
|
|
38
40
|
export const toKebabCase = (str) => str
|
|
39
41
|
.replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')
|
|
40
42
|
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
package/lib/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.19.
|
|
1
|
+
export default '1.19.2';
|
package/lib/types/types.d.ts
CHANGED
|
@@ -30,12 +30,34 @@ export type CioAutocompleteProps = CioClientConfig & {
|
|
|
30
30
|
advancedParameters?: AdvancedParameters;
|
|
31
31
|
defaultInput?: string;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* AutocompleteSubmitEvent type is AutocompleteSelectSubmit or AutocompleteSearchSubmit.
|
|
35
|
+
* Use isAutocompleteSearchSubmit or isAutocompleteSelectSubmit type predicates to safely access event properties.
|
|
36
|
+
* @example if (isAutocompleteSelectSubmit(event)) { ... } //`item` and `originalQuery` are available
|
|
37
|
+
* @example if (isAutocompleteSearchSubmit(event)) { ... } //`query` is available
|
|
38
|
+
*/
|
|
39
|
+
export type AutocompleteSubmitEvent = AutocompleteSelectSubmit | AutocompleteSearchSubmit;
|
|
40
|
+
export type AutocompleteSelectSubmit = {
|
|
34
41
|
item: Item;
|
|
35
42
|
originalQuery: string;
|
|
36
|
-
}
|
|
43
|
+
};
|
|
44
|
+
export type AutocompleteSearchSubmit = {
|
|
37
45
|
query: string;
|
|
38
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Checks if the provided event is an AutocompleteSelectSubmit event.
|
|
49
|
+
* @param event The event to check.
|
|
50
|
+
* @returns True if the event is an AutocompleteSelectSubmit event, false otherwise.
|
|
51
|
+
* @example if (isAutocompleteSelectSubmit(event)) { ... } // `query` is available
|
|
52
|
+
*/
|
|
53
|
+
export declare const isAutocompleteSelectSubmit: (event: AutocompleteSubmitEvent) => event is AutocompleteSelectSubmit;
|
|
54
|
+
/**
|
|
55
|
+
* Checks if the given event is an AutocompleteSearchSubmit event.
|
|
56
|
+
* @param event The event to check.
|
|
57
|
+
* @returns True if the event is an AutocompleteSearchSubmit event, false otherwise.
|
|
58
|
+
* @example if (isAutocompleteSearchSubmit(event)) { ... } // `item` and `originalQuery` are available
|
|
59
|
+
*/
|
|
60
|
+
export declare const isAutocompleteSearchSubmit: (event: AutocompleteSubmitEvent) => event is AutocompleteSearchSubmit;
|
|
39
61
|
export type OnSubmit = (event: AutocompleteSubmitEvent) => unknown;
|
|
40
62
|
export type DownshiftGetItemPropsOptions = GetItemPropsOptions<Item>;
|
|
41
63
|
export type DownshiftGetItemProps = (options: GetItemPropsOptions<Item>) => object;
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.19.
|
|
1
|
+
declare const _default: "1.19.2";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED