From 69828bc9660f25cb9cee2587c80b0464f00a648e Mon Sep 17 00:00:00 2001 From: YourivHDenHaag <108077148+YourivHDenHaag@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:15:51 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nl-desig?= =?UTF-8?q?n-system/denhaag@480c94a2c461148ad354587ae4fdf75d5fdca7bb=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 151.2bd94987.iframe.bundle.js | 2 ++ ... 151.2bd94987.iframe.bundle.js.LICENSE.txt | 21 +++++++++++++++++++ 234.001c1422.iframe.bundle.js | 2 -- design-tokens.source.json | 2 +- iframe.html | 2 +- main.12e77b8f.iframe.bundle.js | 2 ++ ...main.12e77b8f.iframe.bundle.js.LICENSE.txt | 0 main.bc76b2c3.iframe.bundle.js | 2 -- project.json | 2 +- 9 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 151.2bd94987.iframe.bundle.js rename 234.001c1422.iframe.bundle.js.LICENSE.txt => 151.2bd94987.iframe.bundle.js.LICENSE.txt (88%) delete mode 100644 234.001c1422.iframe.bundle.js create mode 100644 main.12e77b8f.iframe.bundle.js rename main.bc76b2c3.iframe.bundle.js.LICENSE.txt => main.12e77b8f.iframe.bundle.js.LICENSE.txt (100%) delete mode 100644 main.bc76b2c3.iframe.bundle.js diff --git a/151.2bd94987.iframe.bundle.js b/151.2bd94987.iframe.bundle.js new file mode 100644 index 0000000000..5299249be1 --- /dev/null +++ b/151.2bd94987.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 151.2bd94987.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_gemeente_denhaag_design_system=self.webpackChunk_gemeente_denhaag_design_system||[]).push([[151],{"./node_modules/.pnpm/@base2+pretty-print-object@1.0.1/node_modules/@base2/pretty-print-object/dist/index.js":function(__unused_webpack_module,exports){"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),clsx__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js"),_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/colorManipulator.js"),Divider=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function Divider(props,ref){var _props$absolute=props.absolute,absolute=void 0!==_props$absolute&&_props$absolute,classes=props.classes,className=props.className,_props$component=props.component,Component=void 0===_props$component?"hr":_props$component,_props$flexItem=props.flexItem,flexItem=void 0!==_props$flexItem&&_props$flexItem,_props$light=props.light,light=void 0!==_props$light&&_props$light,_props$orientation=props.orientation,orientation=void 0===_props$orientation?"horizontal":_props$orientation,_props$role=props.role,role=void 0===_props$role?"hr"!==Component?"separator":void 0:_props$role,_props$variant=props.variant,variant=void 0===_props$variant?"fullWidth":_props$variant,other=(0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__.Z)(props,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__.Z)(classes.root,className,"fullWidth"!==variant&&classes[variant],absolute&&classes.absolute,flexItem&&classes.flexItem,light&&classes.light,"vertical"===orientation&&classes.vertical),role,ref},other))}));const __WEBPACK_DEFAULT_EXPORT__=(0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__.Z)((function styles(theme){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:theme.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_1__.Fq)(theme.palette.divider,.08)},middle:{marginLeft:theme.spacing(2),marginRight:theme.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Divider)},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/Step/Step.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),clsx__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__("./node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.js"),__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js")),_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js"),Step=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function Step(props,ref){var _props$active=props.active,active=void 0!==_props$active&&_props$active,alternativeLabel=props.alternativeLabel,children=props.children,classes=props.classes,className=props.className,_props$completed=props.completed,completed=void 0!==_props$completed&&_props$completed,connectorProp=props.connector,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled,_props$expanded=props.expanded,expanded=void 0!==_props$expanded&&_props$expanded,index=props.index,last=props.last,orientation=props.orientation,other=(0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__.Z)(props,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),connector=connectorProp?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(connectorProp,{orientation,alternativeLabel,index,active,completed,disabled}):null,newChildren=react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__.Z)(classes.root,classes[orientation],className,alternativeLabel&&classes.alternativeLabel,completed&&classes.completed),ref},other),connector&&alternativeLabel&&0!==index?connector:null,react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children,(function(child){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(child)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({active,alternativeLabel,completed,disabled,expanded,last,icon:index+1,orientation},child.props)):null})));return connector&&!alternativeLabel&&0!==index?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,connector,newChildren):newChildren}));const __WEBPACK_DEFAULT_EXPORT__=(0,_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__.Z)({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(Step)},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/StepContent/StepContent.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>StepContent_StepContent});var esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),clsx_m=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),slicedToArray=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),inheritsLoose=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),react_dom=__webpack_require__("./node_modules/.pnpm/react-dom@17.0.2_react@17.0.2/node_modules/react-dom/index.js");const config_disabled=!1;var TransitionGroupContext=__webpack_require__("./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@17.0.2_react@17.0.2/node_modules/react-transition-group/esm/TransitionGroupContext.js"),Transition=function(_React$Component){function Transition(props,context){var _this;_this=_React$Component.call(this,props,context)||this;var initialStatus,appear=context&&!context.isMounting?props.enter:props.appear;return _this.appearStatus=null,props.in?appear?(initialStatus="exited",_this.appearStatus="entering"):initialStatus="entered":initialStatus=props.unmountOnExit||props.mountOnEnter?"unmounted":"exited",_this.state={status:initialStatus},_this.nextCallback=null,_this}(0,inheritsLoose.Z)(Transition,_React$Component),Transition.getDerivedStateFromProps=function getDerivedStateFromProps(_ref,prevState){return _ref.in&&"unmounted"===prevState.status?{status:"exited"}:null};var _proto=Transition.prototype;return _proto.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},_proto.componentDidUpdate=function componentDidUpdate(prevProps){var nextStatus=null;if(prevProps!==this.props){var status=this.state.status;this.props.in?"entering"!==status&&"entered"!==status&&(nextStatus="entering"):"entering"!==status&&"entered"!==status||(nextStatus="exiting")}this.updateStatus(!1,nextStatus)},_proto.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},_proto.getTimeouts=function getTimeouts(){var exit,enter,appear,timeout=this.props.timeout;return exit=enter=appear=timeout,null!=timeout&&"number"!=typeof timeout&&(exit=timeout.exit,enter=timeout.enter,appear=void 0!==timeout.appear?timeout.appear:enter),{exit,enter,appear}},_proto.updateStatus=function updateStatus(mounting,nextStatus){if(void 0===mounting&&(mounting=!1),null!==nextStatus)if(this.cancelNextCallback(),"entering"===nextStatus){if(this.props.unmountOnExit||this.props.mountOnEnter){var node=this.props.nodeRef?this.props.nodeRef.current:react_dom.findDOMNode(this);node&&function forceReflow(node){node.scrollTop}(node)}this.performEnter(mounting)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},_proto.performEnter=function performEnter(mounting){var _this2=this,enter=this.props.enter,appearing=this.context?this.context.isMounting:mounting,_ref2=this.props.nodeRef?[appearing]:[react_dom.findDOMNode(this),appearing],maybeNode=_ref2[0],maybeAppearing=_ref2[1],timeouts=this.getTimeouts(),enterTimeout=appearing?timeouts.appear:timeouts.enter;!mounting&&!enter||config_disabled?this.safeSetState({status:"entered"},(function(){_this2.props.onEntered(maybeNode)})):(this.props.onEnter(maybeNode,maybeAppearing),this.safeSetState({status:"entering"},(function(){_this2.props.onEntering(maybeNode,maybeAppearing),_this2.onTransitionEnd(enterTimeout,(function(){_this2.safeSetState({status:"entered"},(function(){_this2.props.onEntered(maybeNode,maybeAppearing)}))}))})))},_proto.performExit=function performExit(){var _this3=this,exit=this.props.exit,timeouts=this.getTimeouts(),maybeNode=this.props.nodeRef?void 0:react_dom.findDOMNode(this);exit&&!config_disabled?(this.props.onExit(maybeNode),this.safeSetState({status:"exiting"},(function(){_this3.props.onExiting(maybeNode),_this3.onTransitionEnd(timeouts.exit,(function(){_this3.safeSetState({status:"exited"},(function(){_this3.props.onExited(maybeNode)}))}))}))):this.safeSetState({status:"exited"},(function(){_this3.props.onExited(maybeNode)}))},_proto.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},_proto.safeSetState=function safeSetState(nextState,callback){callback=this.setNextCallback(callback),this.setState(nextState,callback)},_proto.setNextCallback=function setNextCallback(callback){var _this4=this,active=!0;return this.nextCallback=function(event){active&&(active=!1,_this4.nextCallback=null,callback(event))},this.nextCallback.cancel=function(){active=!1},this.nextCallback},_proto.onTransitionEnd=function onTransitionEnd(timeout,handler){this.setNextCallback(handler);var node=this.props.nodeRef?this.props.nodeRef.current:react_dom.findDOMNode(this),doesNotHaveTimeoutOrListener=null==timeout&&!this.props.addEndListener;if(node&&!doesNotHaveTimeoutOrListener){if(this.props.addEndListener){var _ref3=this.props.nodeRef?[this.nextCallback]:[node,this.nextCallback],maybeNode=_ref3[0],maybeNextCallback=_ref3[1];this.props.addEndListener(maybeNode,maybeNextCallback)}null!=timeout&&setTimeout(this.nextCallback,timeout)}else setTimeout(this.nextCallback,0)},_proto.render=function render(){var status=this.state.status;if("unmounted"===status)return null;var _this$props=this.props,children=_this$props.children,childProps=(_this$props.in,_this$props.mountOnEnter,_this$props.unmountOnExit,_this$props.appear,_this$props.enter,_this$props.exit,_this$props.timeout,_this$props.addEndListener,_this$props.onEnter,_this$props.onEntering,_this$props.onEntered,_this$props.onExit,_this$props.onExiting,_this$props.onExited,_this$props.nodeRef,(0,objectWithoutPropertiesLoose.Z)(_this$props,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return react.createElement(TransitionGroupContext.Z.Provider,{value:null},"function"==typeof children?children(status,childProps):react.cloneElement(react.Children.only(children),childProps))},Transition}(react.Component);function noop(){}Transition.contextType=TransitionGroupContext.Z,Transition.propTypes={},Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},Transition.UNMOUNTED="unmounted",Transition.EXITED="exited",Transition.ENTERING="entering",Transition.ENTERED="entered",Transition.EXITING="exiting";const esm_Transition=Transition;var withStyles=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js"),transitions=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/transitions.js");function getTransitionProps(props,options){var timeout=props.timeout,_props$style=props.style,style=void 0===_props$style?{}:_props$style;return{duration:style.transitionDuration||"number"==typeof timeout?timeout:timeout[options.mode]||0,delay:style.transitionDelay}}var useTheme=__webpack_require__("./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/useTheme/useTheme.js"),defaultTheme=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/defaultTheme.js");var useForkRef=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/utils/useForkRef.js"),Collapse=react.forwardRef((function Collapse(props,ref){var children=props.children,classes=props.classes,className=props.className,collapsedHeight=props.collapsedHeight,_props$collapsedSize=props.collapsedSize,collapsedSizeProp=void 0===_props$collapsedSize?"0px":_props$collapsedSize,_props$component=props.component,Component=void 0===_props$component?"div":_props$component,_props$disableStrictM=props.disableStrictModeCompat,disableStrictModeCompat=void 0!==_props$disableStrictM&&_props$disableStrictM,inProp=props.in,onEnter=props.onEnter,onEntered=props.onEntered,onEntering=props.onEntering,onExit=props.onExit,onExited=props.onExited,onExiting=props.onExiting,style=props.style,_props$timeout=props.timeout,timeout=void 0===_props$timeout?transitions.x9.standard:_props$timeout,_props$TransitionComp=props.TransitionComponent,TransitionComponent=void 0===_props$TransitionComp?esm_Transition:_props$TransitionComp,other=(0,objectWithoutProperties.Z)(props,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),theme=function useTheme_useTheme(){return(0,useTheme.Z)()||defaultTheme.Z}(),timer=react.useRef(),wrapperRef=react.useRef(null),autoTransitionDuration=react.useRef(),collapsedSize="number"==typeof(collapsedHeight||collapsedSizeProp)?"".concat(collapsedHeight||collapsedSizeProp,"px"):collapsedHeight||collapsedSizeProp;react.useEffect((function(){return function(){clearTimeout(timer.current)}}),[]);var enableStrictModeCompat=theme.unstable_strictMode&&!disableStrictModeCompat,nodeRef=react.useRef(null),handleRef=(0,useForkRef.Z)(ref,enableStrictModeCompat?nodeRef:void 0),normalizedTransitionCallback=function normalizedTransitionCallback(callback){return function(nodeOrAppearing,maybeAppearing){if(callback){var _ref=enableStrictModeCompat?[nodeRef.current,nodeOrAppearing]:[nodeOrAppearing,maybeAppearing],_ref2=(0,slicedToArray.Z)(_ref,2),node=_ref2[0],isAppearing=_ref2[1];void 0===isAppearing?callback(node):callback(node,isAppearing)}}},handleEnter=normalizedTransitionCallback((function(node,isAppearing){node.style.height=collapsedSize,onEnter&&onEnter(node,isAppearing)})),handleEntering=normalizedTransitionCallback((function(node,isAppearing){var wrapperHeight=wrapperRef.current?wrapperRef.current.clientHeight:0,transitionDuration=getTransitionProps({style,timeout},{mode:"enter"}).duration;if("auto"===timeout){var duration2=theme.transitions.getAutoHeightDuration(wrapperHeight);node.style.transitionDuration="".concat(duration2,"ms"),autoTransitionDuration.current=duration2}else node.style.transitionDuration="string"==typeof transitionDuration?transitionDuration:"".concat(transitionDuration,"ms");node.style.height="".concat(wrapperHeight,"px"),onEntering&&onEntering(node,isAppearing)})),handleEntered=normalizedTransitionCallback((function(node,isAppearing){node.style.height="auto",onEntered&&onEntered(node,isAppearing)})),handleExit=normalizedTransitionCallback((function(node){var wrapperHeight=wrapperRef.current?wrapperRef.current.clientHeight:0;node.style.height="".concat(wrapperHeight,"px"),onExit&&onExit(node)})),handleExited=normalizedTransitionCallback(onExited),handleExiting=normalizedTransitionCallback((function(node){var wrapperHeight=wrapperRef.current?wrapperRef.current.clientHeight:0,transitionDuration=getTransitionProps({style,timeout},{mode:"exit"}).duration;if("auto"===timeout){var duration2=theme.transitions.getAutoHeightDuration(wrapperHeight);node.style.transitionDuration="".concat(duration2,"ms"),autoTransitionDuration.current=duration2}else node.style.transitionDuration="string"==typeof transitionDuration?transitionDuration:"".concat(transitionDuration,"ms");node.style.height=collapsedSize,onExiting&&onExiting(node)}));return react.createElement(TransitionComponent,(0,esm_extends.Z)({in:inProp,onEnter:handleEnter,onEntered:handleEntered,onEntering:handleEntering,onExit:handleExit,onExited:handleExited,onExiting:handleExiting,addEndListener:function addEndListener(nodeOrNext,maybeNext){var next=enableStrictModeCompat?nodeOrNext:maybeNext;"auto"===timeout&&(timer.current=setTimeout(next,autoTransitionDuration.current||0))},nodeRef:enableStrictModeCompat?nodeRef:void 0,timeout:"auto"===timeout?null:timeout},other),(function(state,childProps){return react.createElement(Component,(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,classes.container,className,{entered:classes.entered,exited:!inProp&&"0px"===collapsedSize&&classes.hidden}[state]),style:(0,esm_extends.Z)({minHeight:collapsedSize},style),ref:handleRef},childProps),react.createElement("div",{className:classes.wrapper,ref:wrapperRef},react.createElement("div",{className:classes.wrapperInner},children)))}))}));Collapse.muiSupportAuto=!0;const Collapse_Collapse=(0,withStyles.Z)((function styles(theme){return{root:{height:0,overflow:"hidden",transition:theme.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Collapse);var StepContent=react.forwardRef((function StepContent(props,ref){var active=props.active,children=(props.alternativeLabel,props.children),classes=props.classes,className=props.className,expanded=(props.completed,props.expanded),last=props.last,_props$TransitionComp=(props.optional,props.orientation,props.TransitionComponent),TransitionComponent=void 0===_props$TransitionComp?Collapse_Collapse:_props$TransitionComp,_props$transitionDura=props.transitionDuration,transitionDurationProp=void 0===_props$transitionDura?"auto":_props$transitionDura,TransitionProps=props.TransitionProps,other=(0,objectWithoutProperties.Z)(props,["active","alternativeLabel","children","classes","className","completed","expanded","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]);var transitionDuration=transitionDurationProp;return"auto"!==transitionDurationProp||TransitionComponent.muiSupportAuto||(transitionDuration=void 0),react.createElement("div",(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,className,last&&classes.last),ref},other),react.createElement(TransitionComponent,(0,esm_extends.Z)({in:active||expanded,className:classes.transition,timeout:transitionDuration,unmountOnExit:!0},TransitionProps),children))}));const StepContent_StepContent=(0,withStyles.Z)((function styles(theme){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===theme.palette.type?theme.palette.grey[400]:theme.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(StepContent)},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/Stepper/Stepper.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Stepper_Stepper});var esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),clsx_m=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),withStyles=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js"),Paper=react.forwardRef((function Paper(props,ref){var classes=props.classes,className=props.className,_props$component=props.component,Component=void 0===_props$component?"div":_props$component,_props$square=props.square,square=void 0!==_props$square&&_props$square,_props$elevation=props.elevation,elevation=void 0===_props$elevation?1:_props$elevation,_props$variant=props.variant,variant=void 0===_props$variant?"elevation":_props$variant,other=(0,objectWithoutProperties.Z)(props,["classes","className","component","square","elevation","variant"]);return react.createElement(Component,(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,className,"outlined"===variant?classes.outlined:classes["elevation".concat(elevation)],!square&&classes.rounded),ref},other))}));const Paper_Paper=(0,withStyles.Z)((function styles(theme){var elevations={};return theme.shadows.forEach((function(shadow,index){elevations["elevation".concat(index)]={boxShadow:shadow}})),(0,esm_extends.Z)({root:{backgroundColor:theme.palette.background.paper,color:theme.palette.text.primary,transition:theme.transitions.create("box-shadow")},rounded:{borderRadius:theme.shape.borderRadius},outlined:{border:"1px solid ".concat(theme.palette.divider)}},elevations)}),{name:"MuiPaper"})(Paper);var StepConnector=react.forwardRef((function StepConnector(props,ref){var active=props.active,_props$alternativeLab=props.alternativeLabel,alternativeLabel=void 0!==_props$alternativeLab&&_props$alternativeLab,classes=props.classes,className=props.className,completed=props.completed,disabled=props.disabled,_props$orientation=(props.index,props.orientation),orientation=void 0===_props$orientation?"horizontal":_props$orientation,other=(0,objectWithoutProperties.Z)(props,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return react.createElement("div",(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,classes[orientation],className,alternativeLabel&&classes.alternativeLabel,active&&classes.active,completed&&classes.completed,disabled&&classes.disabled),ref},other),react.createElement("span",{className:(0,clsx_m.Z)(classes.line,{horizontal:classes.lineHorizontal,vertical:classes.lineVertical}[orientation])}))}));const StepConnector_StepConnector=(0,withStyles.Z)((function styles(theme){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===theme.palette.type?theme.palette.grey[400]:theme.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(StepConnector);var defaultConnector=react.createElement(StepConnector_StepConnector,null),Stepper=react.forwardRef((function Stepper(props,ref){var _props$activeStep=props.activeStep,activeStep=void 0===_props$activeStep?0:_props$activeStep,_props$alternativeLab=props.alternativeLabel,alternativeLabel=void 0!==_props$alternativeLab&&_props$alternativeLab,children=props.children,classes=props.classes,className=props.className,_props$connector=props.connector,connectorProp=void 0===_props$connector?defaultConnector:_props$connector,_props$nonLinear=props.nonLinear,nonLinear=void 0!==_props$nonLinear&&_props$nonLinear,_props$orientation=props.orientation,orientation=void 0===_props$orientation?"horizontal":_props$orientation,other=(0,objectWithoutProperties.Z)(props,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),connector=react.isValidElement(connectorProp)?react.cloneElement(connectorProp,{orientation}):null,childrenArray=react.Children.toArray(children),steps=childrenArray.map((function(step,index){var state={index,active:!1,completed:!1,disabled:!1};return activeStep===index?state.active=!0:!nonLinear&&activeStep>index?state.completed=!0:!nonLinear&&activeStep{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Switch_Switch});var esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),clsx_m=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),withStyles=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js"),colorManipulator=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/colorManipulator.js"),formatMuiErrorMessage=__webpack_require__("./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js");function capitalize(string){if("string"!=typeof string)throw new Error((0,formatMuiErrorMessage.Z)(7));return string.charAt(0).toUpperCase()+string.slice(1)}var slicedToArray=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var FormControlContext=react.createContext();const FormControl_FormControlContext=FormControlContext;var react_dom=__webpack_require__("./node_modules/.pnpm/react-dom@17.0.2_react@17.0.2/node_modules/react-dom/index.js"),useForkRef=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/utils/useForkRef.js"),useEnhancedEffect="undefined"!=typeof window?react.useLayoutEffect:react.useEffect;function useEventCallback(fn){var ref=react.useRef(fn);return useEnhancedEffect((function(){ref.current=fn})),react.useCallback((function(){return ref.current.apply(void 0,arguments)}),[])}var hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout=null,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function handleKeyDown(event){event.metaKey||event.altKey||event.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){"hidden"===this.visibilityState&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function isFocusVisible(event){var target=event.target;try{return target.matches(":focus-visible")}catch(error){}return hadKeyboardEvent||function focusTriggersKeyboardModality(node){var type=node.type,tagName=node.tagName;return!("INPUT"!==tagName||!inputTypesWhitelist[type]||node.readOnly)||"TEXTAREA"===tagName&&!node.readOnly||!!node.isContentEditable}(target)}function handleBlurVisible(){hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout((function(){hadFocusVisibleRecently=!1}),100)}function useIsFocusVisible(){return{isFocusVisible,onBlurVisible:handleBlurVisible,ref:react.useCallback((function(instance){var node=react_dom.findDOMNode(instance);null!=node&&function prepare(doc){doc.addEventListener("keydown",handleKeyDown,!0),doc.addEventListener("mousedown",handlePointerDown,!0),doc.addEventListener("pointerdown",handlePointerDown,!0),doc.addEventListener("touchstart",handlePointerDown,!0),doc.addEventListener("visibilitychange",handleVisibilityChange,!0)}(node.ownerDocument)}),[])}}var toConsumableArray=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),assertThisInitialized=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),inheritsLoose=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),TransitionGroupContext=__webpack_require__("./node_modules/.pnpm/react-transition-group@4.4.5_react-dom@17.0.2_react@17.0.2/node_modules/react-transition-group/esm/TransitionGroupContext.js");function getChildMapping(children,mapFn){var result=Object.create(null);return children&&react.Children.map(children,(function(c){return c})).forEach((function(child){result[child.key]=function mapper(child){return mapFn&&(0,react.isValidElement)(child)?mapFn(child):child}(child)})),result}function getProp(child,prop,props){return null!=props[prop]?props[prop]:child.props[prop]}function getNextChildMapping(nextProps,prevChildMapping,onExited){var nextChildMapping=getChildMapping(nextProps.children),children=function mergeChildMappings(prev,next){function getValueForKey(key){return key in next?next[key]:prev[key]}prev=prev||{},next=next||{};var i,nextKeysPending=Object.create(null),pendingKeys=[];for(var prevKey in prev)prevKey in next?pendingKeys.length&&(nextKeysPending[prevKey]=pendingKeys,pendingKeys=[]):pendingKeys.push(prevKey);var childMapping={};for(var nextKey in next){if(nextKeysPending[nextKey])for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},cb=arguments.length>2?arguments[2]:void 0,_options$pulsate=options.pulsate,pulsate=void 0!==_options$pulsate&&_options$pulsate,_options$center=options.center,center=void 0===_options$center?centerProp||options.pulsate:_options$center,_options$fakeElement=options.fakeElement,fakeElement=void 0!==_options$fakeElement&&_options$fakeElement;if("mousedown"===event.type&&ignoringMouseDown.current)ignoringMouseDown.current=!1;else{"touchstart"===event.type&&(ignoringMouseDown.current=!0);var rippleX,rippleY,rippleSize,element=fakeElement?null:container.current,rect=element?element.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(center||0===event.clientX&&0===event.clientY||!event.clientX&&!event.touches)rippleX=Math.round(rect.width/2),rippleY=Math.round(rect.height/2);else{var _ref=event.touches?event.touches[0]:event,clientX=_ref.clientX,clientY=_ref.clientY;rippleX=Math.round(clientX-rect.left),rippleY=Math.round(clientY-rect.top)}if(center)(rippleSize=Math.sqrt((2*Math.pow(rect.width,2)+Math.pow(rect.height,2))/3))%2==0&&(rippleSize+=1);else{var sizeX=2*Math.max(Math.abs((element?element.clientWidth:0)-rippleX),rippleX)+2,sizeY=2*Math.max(Math.abs((element?element.clientHeight:0)-rippleY),rippleY)+2;rippleSize=Math.sqrt(Math.pow(sizeX,2)+Math.pow(sizeY,2))}event.touches?null===startTimerCommit.current&&(startTimerCommit.current=function(){startCommit({pulsate,rippleX,rippleY,rippleSize,cb})},startTimer.current=setTimeout((function(){startTimerCommit.current&&(startTimerCommit.current(),startTimerCommit.current=null)}),80)):startCommit({pulsate,rippleX,rippleY,rippleSize,cb})}}),[centerProp,startCommit]),pulsate=react.useCallback((function(){start({},{pulsate:!0})}),[start]),stop=react.useCallback((function(event,cb){if(clearTimeout(startTimer.current),"touchend"===event.type&&startTimerCommit.current)return event.persist(),startTimerCommit.current(),startTimerCommit.current=null,void(startTimer.current=setTimeout((function(){stop(event,cb)})));startTimerCommit.current=null,setRipples((function(oldRipples){return oldRipples.length>0?oldRipples.slice(1):oldRipples})),rippleCallback.current=cb}),[]);return react.useImperativeHandle(ref,(function(){return{pulsate,start,stop}}),[pulsate,start,stop]),react.createElement("span",(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,className),ref:container},other),react.createElement(esm_TransitionGroup,{component:null,exit:!0},ripples))}));const ButtonBase_TouchRipple=(0,withStyles.Z)((function styles(theme){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(theme.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(theme.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(theme.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(theme.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(react.memo(TouchRipple));var ButtonBase=react.forwardRef((function ButtonBase(props,ref){var action=props.action,buttonRefProp=props.buttonRef,_props$centerRipple=props.centerRipple,centerRipple=void 0!==_props$centerRipple&&_props$centerRipple,children=props.children,classes=props.classes,className=props.className,_props$component=props.component,component=void 0===_props$component?"button":_props$component,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled,_props$disableRipple=props.disableRipple,disableRipple=void 0!==_props$disableRipple&&_props$disableRipple,_props$disableTouchRi=props.disableTouchRipple,disableTouchRipple=void 0!==_props$disableTouchRi&&_props$disableTouchRi,_props$focusRipple=props.focusRipple,focusRipple=void 0!==_props$focusRipple&&_props$focusRipple,focusVisibleClassName=props.focusVisibleClassName,onBlur=props.onBlur,onClick=props.onClick,onFocus=props.onFocus,onFocusVisible=props.onFocusVisible,onKeyDown=props.onKeyDown,onKeyUp=props.onKeyUp,onMouseDown=props.onMouseDown,onMouseLeave=props.onMouseLeave,onMouseUp=props.onMouseUp,onTouchEnd=props.onTouchEnd,onTouchMove=props.onTouchMove,onTouchStart=props.onTouchStart,onDragLeave=props.onDragLeave,_props$tabIndex=props.tabIndex,tabIndex=void 0===_props$tabIndex?0:_props$tabIndex,TouchRippleProps=props.TouchRippleProps,_props$type=props.type,type=void 0===_props$type?"button":_props$type,other=(0,objectWithoutProperties.Z)(props,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),buttonRef=react.useRef(null);var rippleRef=react.useRef(null),_React$useState=react.useState(!1),focusVisible=_React$useState[0],setFocusVisible=_React$useState[1];disabled&&focusVisible&&setFocusVisible(!1);var _useIsFocusVisible=useIsFocusVisible(),isFocusVisible=_useIsFocusVisible.isFocusVisible,onBlurVisible=_useIsFocusVisible.onBlurVisible,focusVisibleRef=_useIsFocusVisible.ref;function useRippleHandler(rippleAction,eventCallback){var skipRippleAction=arguments.length>2&&void 0!==arguments[2]?arguments[2]:disableTouchRipple;return useEventCallback((function(event){return eventCallback&&eventCallback(event),!skipRippleAction&&rippleRef.current&&rippleRef.current[rippleAction](event),!0}))}react.useImperativeHandle(action,(function(){return{focusVisible:function focusVisible(){setFocusVisible(!0),buttonRef.current.focus()}}}),[]),react.useEffect((function(){focusVisible&&focusRipple&&!disableRipple&&rippleRef.current.pulsate()}),[disableRipple,focusRipple,focusVisible]);var handleMouseDown=useRippleHandler("start",onMouseDown),handleDragLeave=useRippleHandler("stop",onDragLeave),handleMouseUp=useRippleHandler("stop",onMouseUp),handleMouseLeave=useRippleHandler("stop",(function(event){focusVisible&&event.preventDefault(),onMouseLeave&&onMouseLeave(event)})),handleTouchStart=useRippleHandler("start",onTouchStart),handleTouchEnd=useRippleHandler("stop",onTouchEnd),handleTouchMove=useRippleHandler("stop",onTouchMove),handleBlur=useRippleHandler("stop",(function(event){focusVisible&&(onBlurVisible(event),setFocusVisible(!1)),onBlur&&onBlur(event)}),!1),handleFocus=useEventCallback((function(event){buttonRef.current||(buttonRef.current=event.currentTarget),isFocusVisible(event)&&(setFocusVisible(!0),onFocusVisible&&onFocusVisible(event)),onFocus&&onFocus(event)})),isNonNativeButton=function isNonNativeButton(){var button=function getButtonNode(){return react_dom.findDOMNode(buttonRef.current)}();return component&&"button"!==component&&!("A"===button.tagName&&button.href)},keydownRef=react.useRef(!1),handleKeyDown=useEventCallback((function(event){focusRipple&&!keydownRef.current&&focusVisible&&rippleRef.current&&" "===event.key&&(keydownRef.current=!0,event.persist(),rippleRef.current.stop(event,(function(){rippleRef.current.start(event)}))),event.target===event.currentTarget&&isNonNativeButton()&&" "===event.key&&event.preventDefault(),onKeyDown&&onKeyDown(event),event.target===event.currentTarget&&isNonNativeButton()&&"Enter"===event.key&&!disabled&&(event.preventDefault(),onClick&&onClick(event))})),handleKeyUp=useEventCallback((function(event){focusRipple&&" "===event.key&&rippleRef.current&&focusVisible&&!event.defaultPrevented&&(keydownRef.current=!1,event.persist(),rippleRef.current.stop(event,(function(){rippleRef.current.pulsate(event)}))),onKeyUp&&onKeyUp(event),onClick&&event.target===event.currentTarget&&isNonNativeButton()&&" "===event.key&&!event.defaultPrevented&&onClick(event)})),ComponentProp=component;"button"===ComponentProp&&other.href&&(ComponentProp="a");var buttonProps={};"button"===ComponentProp?(buttonProps.type=type,buttonProps.disabled=disabled):("a"===ComponentProp&&other.href||(buttonProps.role="button"),buttonProps["aria-disabled"]=disabled);var handleUserRef=(0,useForkRef.Z)(buttonRefProp,ref),handleOwnRef=(0,useForkRef.Z)(focusVisibleRef,buttonRef),handleRef=(0,useForkRef.Z)(handleUserRef,handleOwnRef),_React$useState2=react.useState(!1),mountedState=_React$useState2[0],setMountedState=_React$useState2[1];react.useEffect((function(){setMountedState(!0)}),[]);var enableTouchRipple=mountedState&&!disableRipple&&!disabled;return react.createElement(ComponentProp,(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,className,focusVisible&&[classes.focusVisible,focusVisibleClassName],disabled&&classes.disabled),onBlur:handleBlur,onClick,onFocus:handleFocus,onKeyDown:handleKeyDown,onKeyUp:handleKeyUp,onMouseDown:handleMouseDown,onMouseLeave:handleMouseLeave,onMouseUp:handleMouseUp,onDragLeave:handleDragLeave,onTouchEnd:handleTouchEnd,onTouchMove:handleTouchMove,onTouchStart:handleTouchStart,ref:handleRef,tabIndex:disabled?-1:tabIndex},buttonProps,other),children,enableTouchRipple?react.createElement(ButtonBase_TouchRipple,(0,esm_extends.Z)({ref:rippleRef,center:centerRipple},TouchRippleProps)):null)}));const ButtonBase_ButtonBase=(0,withStyles.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ButtonBase);var IconButton=react.forwardRef((function IconButton(props,ref){var _props$edge=props.edge,edge=void 0!==_props$edge&&_props$edge,children=props.children,classes=props.classes,className=props.className,_props$color=props.color,color=void 0===_props$color?"default":_props$color,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled,_props$disableFocusRi=props.disableFocusRipple,disableFocusRipple=void 0!==_props$disableFocusRi&&_props$disableFocusRi,_props$size=props.size,size=void 0===_props$size?"medium":_props$size,other=(0,objectWithoutProperties.Z)(props,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return react.createElement(ButtonBase_ButtonBase,(0,esm_extends.Z)({className:(0,clsx_m.Z)(classes.root,className,"default"!==color&&classes["color".concat(capitalize(color))],disabled&&classes.disabled,"small"===size&&classes["size".concat(capitalize(size))],{start:classes.edgeStart,end:classes.edgeEnd}[edge]),centerRipple:!0,focusRipple:!disableFocusRipple,disabled,ref},other),react.createElement("span",{className:classes.label},children))}));const IconButton_IconButton=(0,withStyles.Z)((function styles(theme){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:theme.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:theme.palette.action.active,transition:theme.transitions.create("background-color",{duration:theme.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,colorManipulator.Fq)(theme.palette.action.active,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:theme.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:theme.palette.primary.main,"&:hover":{backgroundColor:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:theme.palette.secondary.main,"&:hover":{backgroundColor:(0,colorManipulator.Fq)(theme.palette.secondary.main,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:theme.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(IconButton);var SwitchBase=react.forwardRef((function SwitchBase(props,ref){var autoFocus=props.autoFocus,checkedProp=props.checked,checkedIcon=props.checkedIcon,classes=props.classes,className=props.className,defaultChecked=props.defaultChecked,disabledProp=props.disabled,icon=props.icon,id=props.id,inputProps=props.inputProps,inputRef=props.inputRef,name=props.name,onBlur=props.onBlur,onChange=props.onChange,onFocus=props.onFocus,readOnly=props.readOnly,required=props.required,tabIndex=props.tabIndex,type=props.type,value=props.value,other=(0,objectWithoutProperties.Z)(props,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),_useControlled=function useControlled(_ref){var controlled=_ref.controlled,defaultProp=_ref.default,isControlled=(_ref.name,_ref.state,react.useRef(void 0!==controlled).current),_React$useState=react.useState(defaultProp),valueState=_React$useState[0],setValue=_React$useState[1];return[isControlled?controlled:valueState,react.useCallback((function(newValue){isControlled||setValue(newValue)}),[])]}({controlled:checkedProp,default:Boolean(defaultChecked),name:"SwitchBase",state:"checked"}),_useControlled2=(0,slicedToArray.Z)(_useControlled,2),checked=_useControlled2[0],setCheckedState=_useControlled2[1],muiFormControl=function useFormControl_useFormControl(){return react.useContext(FormControl_FormControlContext)}(),disabled=disabledProp;muiFormControl&&void 0===disabled&&(disabled=muiFormControl.disabled);var hasLabelFor="checkbox"===type||"radio"===type;return react.createElement(IconButton_IconButton,(0,esm_extends.Z)({component:"span",className:(0,clsx_m.Z)(classes.root,className,checked&&classes.checked,disabled&&classes.disabled),disabled,tabIndex:null,role:void 0,onFocus:function handleFocus(event){onFocus&&onFocus(event),muiFormControl&&muiFormControl.onFocus&&muiFormControl.onFocus(event)},onBlur:function handleBlur(event){onBlur&&onBlur(event),muiFormControl&&muiFormControl.onBlur&&muiFormControl.onBlur(event)},ref},other),react.createElement("input",(0,esm_extends.Z)({autoFocus,checked:checkedProp,defaultChecked,className:classes.input,disabled,id:hasLabelFor&&id,name,onChange:function handleInputChange(event){var newChecked=event.target.checked;setCheckedState(newChecked),onChange&&onChange(event,newChecked)},readOnly,ref:inputRef,required,tabIndex,type,value},inputProps)),checked?checkedIcon:icon)}));const internal_SwitchBase=(0,withStyles.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(SwitchBase);var Switch=react.forwardRef((function Switch(props,ref){var classes=props.classes,className=props.className,_props$color=props.color,color=void 0===_props$color?"secondary":_props$color,_props$edge=props.edge,edge=void 0!==_props$edge&&_props$edge,_props$size=props.size,size=void 0===_props$size?"medium":_props$size,other=(0,objectWithoutProperties.Z)(props,["classes","className","color","edge","size"]),icon=react.createElement("span",{className:classes.thumb});return react.createElement("span",{className:(0,clsx_m.Z)(classes.root,className,{start:classes.edgeStart,end:classes.edgeEnd}[edge],"small"===size&&classes["size".concat(capitalize(size))])},react.createElement(internal_SwitchBase,(0,esm_extends.Z)({type:"checkbox",icon,checkedIcon:icon,classes:{root:(0,clsx_m.Z)(classes.switchBase,classes["color".concat(capitalize(color))]),input:classes.input,checked:classes.checked,disabled:classes.disabled},ref},other)),react.createElement("span",{className:classes.track}))}));const Switch_Switch=(0,withStyles.Z)((function styles(theme){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===theme.palette.type?theme.palette.grey[50]:theme.palette.grey[400],transition:theme.transitions.create(["left","transform"],{duration:theme.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===theme.palette.type?theme.palette.grey[400]:theme.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===theme.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:theme.palette.primary.main,"&:hover":{backgroundColor:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===theme.palette.type?theme.palette.grey[400]:theme.palette.grey[800]},"&$checked + $track":{backgroundColor:theme.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===theme.palette.type?theme.palette.common.black:theme.palette.common.white}},colorSecondary:{"&$checked":{color:theme.palette.secondary.main,"&:hover":{backgroundColor:(0,colorManipulator.Fq)(theme.palette.secondary.main,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===theme.palette.type?theme.palette.grey[400]:theme.palette.grey[800]},"&$checked + $track":{backgroundColor:theme.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===theme.palette.type?theme.palette.common.black:theme.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:theme.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:theme.transitions.create(["opacity","background-color"],{duration:theme.transitions.duration.shortest}),backgroundColor:"light"===theme.palette.type?theme.palette.common.black:theme.palette.common.white,opacity:"light"===theme.palette.type?.38:.3}}}),{name:"MuiSwitch"})(Switch)},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/colorManipulator.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$n:()=>lighten,Fq:()=>alpha,_j:()=>darken,mi:()=>getContrastRatio});var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js");function clamp(value){var min=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,max=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(min,value),max)}function decomposeColor(color){if(color.type)return color;if("#"===color.charAt(0))return decomposeColor(function hexToRgb(color){color=color.substr(1);var re=new RegExp(".{1,".concat(color.length>=6?2:1,"}"),"g"),colors=color.match(re);return colors&&1===colors[0].length&&(colors=colors.map((function(n){return n+n}))),colors?"rgb".concat(4===colors.length?"a":"","(").concat(colors.map((function(n,index){return index<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3})).join(", "),")"):""}(color));var marker=color.indexOf("("),type=color.substring(0,marker);if(-1===["rgb","rgba","hsl","hsla"].indexOf(type))throw new Error((0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__.Z)(3,color));var values=color.substring(marker+1,color.length-1).split(",");return{type,values:values=values.map((function(value){return parseFloat(value)}))}}function recomposeColor(color){var type=color.type,values=color.values;return-1!==type.indexOf("rgb")?values=values.map((function(n,i){return i<3?parseInt(n,10):n})):-1!==type.indexOf("hsl")&&(values[1]="".concat(values[1],"%"),values[2]="".concat(values[2],"%")),"".concat(type,"(").concat(values.join(", "),")")}function getContrastRatio(foreground,background){var lumA=getLuminance(foreground),lumB=getLuminance(background);return(Math.max(lumA,lumB)+.05)/(Math.min(lumA,lumB)+.05)}function getLuminance(color){var rgb="hsl"===(color=decomposeColor(color)).type?decomposeColor(function hslToRgb(color){var values=(color=decomposeColor(color)).values,h=values[0],s=values[1]/100,l=values[2]/100,a=s*Math.min(l,1-l),f=function f(n){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(n+h/30)%12;return l-a*Math.max(Math.min(k-3,9-k,1),-1)},type="rgb",rgb=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===color.type&&(type+="a",rgb.push(values[3])),recomposeColor({type,values:rgb})}(color)).values:color.values;return rgb=rgb.map((function(val){return(val/=255)<=.03928?val/12.92:Math.pow((val+.055)/1.055,2.4)})),Number((.2126*rgb[0]+.7152*rgb[1]+.0722*rgb[2]).toFixed(3))}function alpha(color,value){return color=decomposeColor(color),value=clamp(value),"rgb"!==color.type&&"hsl"!==color.type||(color.type+="a"),color.values[3]=value,recomposeColor(color)}function darken(color,coefficient){if(color=decomposeColor(color),coefficient=clamp(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]*=1-coefficient;else if(-1!==color.type.indexOf("rgb"))for(var i=0;i<3;i+=1)color.values[i]*=1-coefficient;return recomposeColor(color)}function lighten(color,coefficient){if(color=decomposeColor(color),coefficient=clamp(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]+=(100-color.values[2])*coefficient;else if(-1!==color.type.indexOf("rgb"))for(var i=0;i<3;i+=1)color.values[i]+=(255-color.values[i])*coefficient;return recomposeColor(color)}},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/defaultTheme.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>styles_defaultTheme});var objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),deepmerge=__webpack_require__("./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/deepmerge.js"),esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),keys=["xs","sm","md","lg","xl"];var defineProperty=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/defineProperty.js");function createMixins(breakpoints,spacing,mixins){var _toolbar;return(0,esm_extends.Z)({gutters:function gutters(){var styles=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,esm_extends.Z)({paddingLeft:spacing(2),paddingRight:spacing(2)},styles,(0,defineProperty.Z)({},breakpoints.up("sm"),(0,esm_extends.Z)({paddingLeft:spacing(3),paddingRight:spacing(3)},styles[breakpoints.up("sm")])))},toolbar:(_toolbar={minHeight:56},(0,defineProperty.Z)(_toolbar,"".concat(breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,defineProperty.Z)(_toolbar,breakpoints.up("sm"),{minHeight:64}),_toolbar)},mixins)}var formatMuiErrorMessage=__webpack_require__("./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js");const colors_common={black:"#000",white:"#fff"};const colors_grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const colors_indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const colors_pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const colors_red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const colors_orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const colors_blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const colors_green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var colorManipulator=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/colorManipulator.js"),light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:colors_common.white,default:colors_grey[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:colors_common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:colors_grey[800],default:"#303030"},action:{active:colors_common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(intent,direction,shade,tonalOffset){var tonalOffsetLight=tonalOffset.light||tonalOffset,tonalOffsetDark=tonalOffset.dark||1.5*tonalOffset;intent[direction]||(intent.hasOwnProperty(shade)?intent[direction]=intent[shade]:"light"===direction?intent.light=(0,colorManipulator.$n)(intent.main,tonalOffsetLight):"dark"===direction&&(intent.dark=(0,colorManipulator._j)(intent.main,tonalOffsetDark)))}function round(value){return Math.round(1e5*value)/1e5}function roundWithDeprecationWarning(value){return round(value)}var caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(palette,typography){var _ref="function"==typeof typography?typography(palette):typography,_ref$fontFamily=_ref.fontFamily,fontFamily=void 0===_ref$fontFamily?defaultFontFamily:_ref$fontFamily,_ref$fontSize=_ref.fontSize,fontSize=void 0===_ref$fontSize?14:_ref$fontSize,_ref$fontWeightLight=_ref.fontWeightLight,fontWeightLight=void 0===_ref$fontWeightLight?300:_ref$fontWeightLight,_ref$fontWeightRegula=_ref.fontWeightRegular,fontWeightRegular=void 0===_ref$fontWeightRegula?400:_ref$fontWeightRegula,_ref$fontWeightMedium=_ref.fontWeightMedium,fontWeightMedium=void 0===_ref$fontWeightMedium?500:_ref$fontWeightMedium,_ref$fontWeightBold=_ref.fontWeightBold,fontWeightBold=void 0===_ref$fontWeightBold?700:_ref$fontWeightBold,_ref$htmlFontSize=_ref.htmlFontSize,htmlFontSize=void 0===_ref$htmlFontSize?16:_ref$htmlFontSize,allVariants=_ref.allVariants,pxToRem2=_ref.pxToRem,other=(0,objectWithoutProperties.Z)(_ref,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var coef=fontSize/14,pxToRem=pxToRem2||function(size){return"".concat(size/htmlFontSize*coef,"rem")},buildVariant=function buildVariant(fontWeight,size,lineHeight,letterSpacing,casing){return(0,esm_extends.Z)({fontFamily,fontWeight,fontSize:pxToRem(size),lineHeight},fontFamily===defaultFontFamily?{letterSpacing:"".concat(round(letterSpacing/size),"em")}:{},casing,allVariants)},variants={h1:buildVariant(fontWeightLight,96,1.167,-1.5),h2:buildVariant(fontWeightLight,60,1.2,-.5),h3:buildVariant(fontWeightRegular,48,1.167,0),h4:buildVariant(fontWeightRegular,34,1.235,.25),h5:buildVariant(fontWeightRegular,24,1.334,0),h6:buildVariant(fontWeightMedium,20,1.6,.15),subtitle1:buildVariant(fontWeightRegular,16,1.75,.15),subtitle2:buildVariant(fontWeightMedium,14,1.57,.1),body1:buildVariant(fontWeightRegular,16,1.5,.15),body2:buildVariant(fontWeightRegular,14,1.43,.15),button:buildVariant(fontWeightMedium,14,1.75,.4,caseAllCaps),caption:buildVariant(fontWeightRegular,12,1.66,.4),overline:buildVariant(fontWeightRegular,12,2.66,1,caseAllCaps)};return(0,deepmerge.Z)((0,esm_extends.Z)({htmlFontSize,pxToRem,round:roundWithDeprecationWarning,fontFamily,fontSize,fontWeightLight,fontWeightRegular,fontWeightMedium,fontWeightBold},variants),other,{clone:!1})}function createShadow(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const styles_shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)];const styles_shape={borderRadius:4};var slicedToArray=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),esm_typeof=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/typeof.js"),values={xs:0,sm:600,md:960,lg:1280,xl:1920},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:function up(key){return"@media (min-width:".concat(values[key],"px)")}};const esm_merge=function merge_merge(acc,item){return item?(0,deepmerge.Z)(acc,item,{clone:!1}):acc};var properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}((function(prop){if(prop.length>2){if(!aliases[prop])return[prop];prop=aliases[prop]}var _prop$split=prop.split(""),_prop$split2=(0,slicedToArray.Z)(_prop$split,2),a=_prop$split2[0],b=_prop$split2[1],property=properties[a],direction=directions[b]||"";return Array.isArray(direction)?direction.map((function(dir){return property+dir})):[property+direction]})),spacingKeys=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function createUnarySpacing(theme){var themeSpacing=theme.spacing||8;return"number"==typeof themeSpacing?function(abs){return themeSpacing*abs}:Array.isArray(themeSpacing)?function(abs){return themeSpacing[abs]}:"function"==typeof themeSpacing?themeSpacing:function(){}}function getStyleFromPropValue(cssProperties,transformer){return function(propValue){return cssProperties.reduce((function(acc,cssProperty){return acc[cssProperty]=function getValue(transformer,propValue){if("string"==typeof propValue||null==propValue)return propValue;var transformed=transformer(Math.abs(propValue));return propValue>=0?transformed:"number"==typeof transformed?-transformed:"-".concat(transformed)}(transformer,propValue),acc}),{})}}function spacing(props){var transformer=createUnarySpacing(props.theme);return Object.keys(props).map((function(prop){if(-1===spacingKeys.indexOf(prop))return null;var styleFromPropValue=getStyleFromPropValue(getCssProperties(prop),transformer),propValue=props[prop];return function handleBreakpoints(props,propValue,styleFromPropValue){if(Array.isArray(propValue)){var themeBreakpoints=props.theme.breakpoints||defaultBreakpoints;return propValue.reduce((function(acc,item,index){return acc[themeBreakpoints.up(themeBreakpoints.keys[index])]=styleFromPropValue(propValue[index]),acc}),{})}if("object"===(0,esm_typeof.Z)(propValue)){var _themeBreakpoints=props.theme.breakpoints||defaultBreakpoints;return Object.keys(propValue).reduce((function(acc,breakpoint){return acc[_themeBreakpoints.up(breakpoint)]=styleFromPropValue(propValue[breakpoint]),acc}),{})}return styleFromPropValue(propValue)}(props,propValue,styleFromPropValue)})).reduce(esm_merge,{})}spacing.propTypes={},spacing.filterProps=spacingKeys;var transitions=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/transitions.js");const styles_zIndex={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function createTheme(){for(var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_options$breakpoints=options.breakpoints,breakpointsInput=void 0===_options$breakpoints?{}:_options$breakpoints,_options$mixins=options.mixins,mixinsInput=void 0===_options$mixins?{}:_options$mixins,_options$palette=options.palette,paletteInput=void 0===_options$palette?{}:_options$palette,spacingInput=options.spacing,_options$typography=options.typography,typographyInput=void 0===_options$typography?{}:_options$typography,other=(0,objectWithoutProperties.Z)(options,["breakpoints","mixins","palette","spacing","typography"]),palette=function createPalette(palette){var _palette$primary=palette.primary,primary=void 0===_palette$primary?{light:colors_indigo[300],main:colors_indigo[500],dark:colors_indigo[700]}:_palette$primary,_palette$secondary=palette.secondary,secondary=void 0===_palette$secondary?{light:colors_pink.A200,main:colors_pink.A400,dark:colors_pink.A700}:_palette$secondary,_palette$error=palette.error,error=void 0===_palette$error?{light:colors_red[300],main:colors_red[500],dark:colors_red[700]}:_palette$error,_palette$warning=palette.warning,warning=void 0===_palette$warning?{light:colors_orange[300],main:colors_orange[500],dark:colors_orange[700]}:_palette$warning,_palette$info=palette.info,info=void 0===_palette$info?{light:colors_blue[300],main:colors_blue[500],dark:colors_blue[700]}:_palette$info,_palette$success=palette.success,success=void 0===_palette$success?{light:colors_green[300],main:colors_green[500],dark:colors_green[700]}:_palette$success,_palette$type=palette.type,type=void 0===_palette$type?"light":_palette$type,_palette$contrastThre=palette.contrastThreshold,contrastThreshold=void 0===_palette$contrastThre?3:_palette$contrastThre,_palette$tonalOffset=palette.tonalOffset,tonalOffset=void 0===_palette$tonalOffset?.2:_palette$tonalOffset,other=(0,objectWithoutProperties.Z)(palette,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function getContrastText(background){return(0,colorManipulator.mi)(background,dark.text.primary)>=contrastThreshold?dark.text.primary:light.text.primary}var augmentColor=function augmentColor(color){var mainShade=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,lightShade=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,darkShade=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(color=(0,esm_extends.Z)({},color)).main&&color[mainShade]&&(color.main=color[mainShade]),!color.main)throw new Error((0,formatMuiErrorMessage.Z)(4,mainShade));if("string"!=typeof color.main)throw new Error((0,formatMuiErrorMessage.Z)(5,JSON.stringify(color.main)));return addLightOrDark(color,"light",lightShade,tonalOffset),addLightOrDark(color,"dark",darkShade,tonalOffset),color.contrastText||(color.contrastText=getContrastText(color.main)),color},types={dark,light};return(0,deepmerge.Z)((0,esm_extends.Z)({common:colors_common,type,primary:augmentColor(primary),secondary:augmentColor(secondary,"A400","A200","A700"),error:augmentColor(error),warning:augmentColor(warning),info:augmentColor(info),success:augmentColor(success),grey:colors_grey,contrastThreshold,getContrastText,augmentColor,tonalOffset},types[type]),other)}(paletteInput),breakpoints=function createBreakpoints(breakpoints){var _breakpoints$values=breakpoints.values,values=void 0===_breakpoints$values?{xs:0,sm:600,md:960,lg:1280,xl:1920}:_breakpoints$values,_breakpoints$unit=breakpoints.unit,unit=void 0===_breakpoints$unit?"px":_breakpoints$unit,_breakpoints$step=breakpoints.step,step=void 0===_breakpoints$step?5:_breakpoints$step,other=(0,objectWithoutProperties.Z)(breakpoints,["values","unit","step"]);function up(key){var value="number"==typeof values[key]?values[key]:key;return"@media (min-width:".concat(value).concat(unit,")")}function between(start,end){var endIndex=keys.indexOf(end);return endIndex===keys.length-1?up(start):"@media (min-width:".concat("number"==typeof values[start]?values[start]:start).concat(unit,") and ")+"(max-width:".concat((-1!==endIndex&&"number"==typeof values[keys[endIndex+1]]?values[keys[endIndex+1]]:end)-step/100).concat(unit,")")}return(0,esm_extends.Z)({keys,values,up,down:function down(key){var endIndex=keys.indexOf(key)+1,upperbound=values[keys[endIndex]];return endIndex===keys.length?up("xs"):"@media (max-width:".concat(("number"==typeof upperbound&&endIndex>0?upperbound:key)-step/100).concat(unit,")")},between,only:function only(key){return between(key,key)},width:function width(key){return values[key]}},other)}(breakpointsInput),spacing=function createSpacing(){var spacingInput=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(spacingInput.mui)return spacingInput;var transform=createUnarySpacing({spacing:spacingInput}),spacing=function spacing(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return 0===args.length?transform(1):1===args.length?transform(args[0]):args.map((function(argument){if("string"==typeof argument)return argument;var output=transform(argument);return"number"==typeof output?"".concat(output,"px"):output})).join(" ")};return Object.defineProperty(spacing,"unit",{get:function get(){return spacingInput}}),spacing.mui=!0,spacing}(spacingInput),muiTheme=(0,deepmerge.Z)({breakpoints,direction:"ltr",mixins:createMixins(breakpoints,spacing,mixinsInput),overrides:{},palette,props:{},shadows:styles_shadows,typography:createTypography(palette,typographyInput),spacing,shape:styles_shape,transitions:transitions.ZP,zIndex:styles_zIndex},other),_len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return muiTheme=args.reduce((function(acc,argument){return(0,deepmerge.Z)(acc,argument)}),muiTheme)}const styles_defaultTheme=createTheme()},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/transitions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ZP:()=>__WEBPACK_DEFAULT_EXPORT__,x9:()=>duration});var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(milliseconds){return"".concat(Math.round(milliseconds),"ms")}const __WEBPACK_DEFAULT_EXPORT__={easing,duration,create:function create(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_options$duration=options.duration,durationOption=void 0===_options$duration?duration.standard:_options$duration,_options$easing=options.easing,easingOption=void 0===_options$easing?easing.easeInOut:_options$easing,_options$delay=options.delay,delay=void 0===_options$delay?0:_options$delay;(0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__.Z)(options,["duration","easing","delay"]);return(Array.isArray(props)?props:[props]).map((function(animatedProp){return"".concat(animatedProp," ").concat("string"==typeof durationOption?durationOption:formatMs(durationOption)," ").concat(easingOption," ").concat("string"==typeof delay?delay:formatMs(delay))})).join(",")},getAutoHeightDuration:function getAutoHeightDuration(height){if(!height)return 0;var constant=height/36;return Math.round(10*(4+15*Math.pow(constant,.25)+constant/5))}}},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/withStyles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>styles_withStyles});var esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),hoist_non_react_statics_cjs=__webpack_require__("./node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),hoist_non_react_statics_cjs_default=__webpack_require__.n(hoist_non_react_statics_cjs),jss_esm=__webpack_require__("./node_modules/.pnpm/jss@10.9.2/node_modules/jss/dist/jss.esm.js");function mergeClasses(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},baseClasses=options.baseClasses,newClasses=options.newClasses;options.Component;if(!newClasses)return baseClasses;var nextClasses=(0,esm_extends.Z)({},baseClasses);return Object.keys(newClasses).forEach((function(key){newClasses[key]&&(nextClasses[key]="".concat(baseClasses[key]," ").concat(newClasses[key]))})),nextClasses}const makeStyles_multiKeyStore={set:function set(cache,key1,key2,value){var subCache=cache.get(key1);subCache||(subCache=new Map,cache.set(key1,subCache)),subCache.set(key2,value)},get:function get(cache,key1,key2){var subCache=cache.get(key1);return subCache?subCache.get(key2):void 0},delete:function _delete(cache,key1,key2){cache.get(key1).delete(key2)}};var useTheme=__webpack_require__("./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/useTheme/useTheme.js"),StylesProvider=__webpack_require__("./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js"),indexCounter=-1e9;var deepmerge=__webpack_require__("./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/deepmerge.js");const getStylesCreator_noopTheme={};function makeStyles(stylesOrCreator){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},name=options.name,classNamePrefixOption=options.classNamePrefix,Component=options.Component,_options$defaultTheme=options.defaultTheme,defaultTheme=void 0===_options$defaultTheme?getStylesCreator_noopTheme:_options$defaultTheme,stylesOptions2=(0,objectWithoutProperties.Z)(options,["name","classNamePrefix","Component","defaultTheme"]),stylesCreator=function getStylesCreator(stylesOrCreator){var themingEnabled="function"==typeof stylesOrCreator;return{create:function create(theme,name){var styles;try{styles=themingEnabled?stylesOrCreator(theme):stylesOrCreator}catch(err){throw err}if(!name||!theme.overrides||!theme.overrides[name])return styles;var overrides=theme.overrides[name],stylesWithOverrides=(0,esm_extends.Z)({},styles);return Object.keys(overrides).forEach((function(key){stylesWithOverrides[key]=(0,deepmerge.Z)(stylesWithOverrides[key],overrides[key])})),stylesWithOverrides},options:{}}}(stylesOrCreator),classNamePrefix=name||classNamePrefixOption||"makeStyles";stylesCreator.options={index:indexCounter+=1,name,meta:classNamePrefix,classNamePrefix};return function useStyles(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},theme=(0,useTheme.Z)()||defaultTheme,stylesOptions=(0,esm_extends.Z)({},react.useContext(StylesProvider.NU),stylesOptions2),instance=react.useRef(),shouldUpdate=react.useRef();!function useSynchronousEffect(func,values){var output,key=react.useRef([]),currentKey=react.useMemo((function(){return{}}),values);key.current!==currentKey&&(key.current=currentKey,output=func()),react.useEffect((function(){return function(){output&&output()}}),[currentKey])}((function(){var current={name,state:{},stylesCreator,stylesOptions,theme};return function attach(_ref2,props){var state=_ref2.state,theme=_ref2.theme,stylesOptions=_ref2.stylesOptions,stylesCreator=_ref2.stylesCreator,name=_ref2.name;if(!stylesOptions.disableGeneration){var sheetManager=makeStyles_multiKeyStore.get(stylesOptions.sheetsManager,stylesCreator,theme);sheetManager||(sheetManager={refs:0,staticSheet:null,dynamicStyles:null},makeStyles_multiKeyStore.set(stylesOptions.sheetsManager,stylesCreator,theme,sheetManager));var options=(0,esm_extends.Z)({},stylesCreator.options,stylesOptions,{theme,flip:"boolean"==typeof stylesOptions.flip?stylesOptions.flip:"rtl"===theme.direction});options.generateId=options.serverGenerateClassName||options.generateClassName;var sheetsRegistry=stylesOptions.sheetsRegistry;if(0===sheetManager.refs){var staticSheet;stylesOptions.sheetsCache&&(staticSheet=makeStyles_multiKeyStore.get(stylesOptions.sheetsCache,stylesCreator,theme));var styles=stylesCreator.create(theme,name);staticSheet||((staticSheet=stylesOptions.jss.createStyleSheet(styles,(0,esm_extends.Z)({link:!1},options))).attach(),stylesOptions.sheetsCache&&makeStyles_multiKeyStore.set(stylesOptions.sheetsCache,stylesCreator,theme,staticSheet)),sheetsRegistry&&sheetsRegistry.add(staticSheet),sheetManager.staticSheet=staticSheet,sheetManager.dynamicStyles=(0,jss_esm._$)(styles)}if(sheetManager.dynamicStyles){var dynamicSheet=stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles,(0,esm_extends.Z)({link:!0},options));dynamicSheet.update(props),dynamicSheet.attach(),state.dynamicSheet=dynamicSheet,state.classes=mergeClasses({baseClasses:sheetManager.staticSheet.classes,newClasses:dynamicSheet.classes}),sheetsRegistry&&sheetsRegistry.add(dynamicSheet)}else state.classes=sheetManager.staticSheet.classes;sheetManager.refs+=1}}(current,props),shouldUpdate.current=!1,instance.current=current,function(){!function detach(_ref4){var state=_ref4.state,theme=_ref4.theme,stylesOptions=_ref4.stylesOptions,stylesCreator=_ref4.stylesCreator;if(!stylesOptions.disableGeneration){var sheetManager=makeStyles_multiKeyStore.get(stylesOptions.sheetsManager,stylesCreator,theme);sheetManager.refs-=1;var sheetsRegistry=stylesOptions.sheetsRegistry;0===sheetManager.refs&&(makeStyles_multiKeyStore.delete(stylesOptions.sheetsManager,stylesCreator,theme),stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet),sheetsRegistry&&sheetsRegistry.remove(sheetManager.staticSheet)),state.dynamicSheet&&(stylesOptions.jss.removeStyleSheet(state.dynamicSheet),sheetsRegistry&&sheetsRegistry.remove(state.dynamicSheet))}}(current)}}),[theme,stylesCreator]),react.useEffect((function(){shouldUpdate.current&&function update(_ref3,props){var state=_ref3.state;state.dynamicSheet&&state.dynamicSheet.update(props)}(instance.current,props),shouldUpdate.current=!0}));var classes=function getClasses(_ref,classes,Component){var state=_ref.state;if(_ref.stylesOptions.disableGeneration)return classes||{};state.cacheClasses||(state.cacheClasses={value:null,lastProp:null,lastJSS:{}});var generate=!1;return state.classes!==state.cacheClasses.lastJSS&&(state.cacheClasses.lastJSS=state.classes,generate=!0),classes!==state.cacheClasses.lastProp&&(state.cacheClasses.lastProp=classes,generate=!0),generate&&(state.cacheClasses.value=mergeClasses({baseClasses:state.cacheClasses.lastJSS,newClasses:classes,Component})),state.cacheClasses.value}(instance.current,props.classes,Component);return classes}}const withStyles_withStyles=function withStyles(stylesOrCreator){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(Component){var defaultTheme=options.defaultTheme,_options$withTheme=options.withTheme,withTheme=void 0!==_options$withTheme&&_options$withTheme,name=options.name,stylesOptions=(0,objectWithoutProperties.Z)(options,["defaultTheme","withTheme","name"]);var classNamePrefix=name,useStyles=makeStyles(stylesOrCreator,(0,esm_extends.Z)({defaultTheme,Component,name:name||Component.displayName,classNamePrefix},stylesOptions)),WithStyles=react.forwardRef((function WithStyles(props,ref){props.classes;var theme,innerRef=props.innerRef,other=(0,objectWithoutProperties.Z)(props,["classes","innerRef"]),classes=useStyles((0,esm_extends.Z)({},Component.defaultProps,props)),more=other;return("string"==typeof name||withTheme)&&(theme=(0,useTheme.Z)()||defaultTheme,name&&(more=function getThemeProps(params){var theme=params.theme,name=params.name,props=params.props;if(!theme||!theme.props||!theme.props[name])return props;var propName,defaultProps=theme.props[name];for(propName in defaultProps)void 0===props[propName]&&(props[propName]=defaultProps[propName]);return props}({theme,name,props:other})),withTheme&&!more.theme&&(more.theme=theme)),react.createElement(Component,(0,esm_extends.Z)({ref:innerRef||ref,classes},more))}));return hoist_non_react_statics_cjs_default()(WithStyles,Component),WithStyles}};var defaultTheme=__webpack_require__("./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/styles/defaultTheme.js");const styles_withStyles=function styles_withStyles_withStyles(stylesOrCreator,options){return withStyles_withStyles(stylesOrCreator,(0,esm_extends.Z)({defaultTheme:defaultTheme.Z},options))}},"./node_modules/.pnpm/@material-ui+core@4.12.4_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/core/esm/utils/useForkRef.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>useForkRef});var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");function setRef(ref,value){"function"==typeof ref?ref(value):ref&&(ref.current=value)}function useForkRef(refA,refB){return react.useMemo((function(){return null==refA&&null==refB?null:function(refValue){setRef(refA,refValue),setRef(refB,refValue)}}),[refA,refB])}},"./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{NU:()=>StylesContext,ZP:()=>StylesProvider});var esm_extends=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");const nested="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var pseudoClasses=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var jss_esm=__webpack_require__("./node_modules/.pnpm/jss@10.9.2/node_modules/jss/dist/jss.esm.js"),now=Date.now(),fnValuesNs="fnValues"+now,fnRuleNs="fnStyle"+ ++now;const jss_plugin_rule_value_function_esm=function functionPlugin(){return{onCreateRule:function onCreateRule(name,decl,options){if("function"!=typeof decl)return null;var rule=(0,jss_esm.JH)(name,{},options);return rule[fnRuleNs]=decl,rule},onProcessStyle:function onProcessStyle(style,rule){if(fnValuesNs in rule||fnRuleNs in rule)return style;var fnValues={};for(var prop in style){var value=style[prop];"function"==typeof value&&(delete style[prop],fnValues[prop]=value)}return rule[fnValuesNs]=fnValues,style},onUpdate:function onUpdate(data,rule,sheet,options){var styleRule=rule,fnRule=styleRule[fnRuleNs];fnRule&&(styleRule.style=fnRule(data)||{});var fnValues=styleRule[fnValuesNs];if(fnValues)for(var _prop in fnValues)styleRule.prop(_prop,fnValues[_prop](data),options)}}};var at="@global",GlobalContainerRule=function(){function GlobalContainerRule(key,styles,options){for(var selector in this.type="global",this.at=at,this.isProcessed=!1,this.key=key,this.options=options,this.rules=new jss_esm.RB((0,esm_extends.Z)({},options,{parent:this})),styles)this.rules.add(selector,styles[selector]);this.rules.process()}var _proto=GlobalContainerRule.prototype;return _proto.getRule=function getRule(name){return this.rules.get(name)},_proto.addRule=function addRule(name,style,options){var rule=this.rules.add(name,style,options);return rule&&this.options.jss.plugins.onProcessRule(rule),rule},_proto.replaceRule=function replaceRule(name,style,options){var newRule=this.rules.replace(name,style,options);return newRule&&this.options.jss.plugins.onProcessRule(newRule),newRule},_proto.indexOf=function indexOf(rule){return this.rules.indexOf(rule)},_proto.toString=function toString(options){return this.rules.toString(options)},GlobalContainerRule}(),GlobalPrefixedRule=function(){function GlobalPrefixedRule(key,style,options){this.type="global",this.at=at,this.isProcessed=!1,this.key=key,this.options=options;var selector=key.substr(8);this.rule=options.jss.createRule(selector,style,(0,esm_extends.Z)({},options,{parent:this}))}return GlobalPrefixedRule.prototype.toString=function toString(options){return this.rule?this.rule.toString(options):""},GlobalPrefixedRule}(),separatorRegExp=/\s*,\s*/g;function addScope(selector,scope){for(var parts=selector.split(separatorRegExp),scoped="",i=0;i-1){var newProp=propMap$1[prop];if(!Array.isArray(newProp))return prefix.js+pascalize(newProp)in style&&prefix.css+newProp;if(!multiple)return!1;for(var i=0;iprop1?1:-1:prop0.length-prop1.length};return{onProcessStyle:function onProcessStyle(style,rule){if("style"!==rule.type)return style;for(var newStyle={},props=Object.keys(style).sort(sort),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},_options$disableGloba=options.disableGlobal,disableGlobal=void 0!==_options$disableGloba&&_options$disableGloba,_options$productionPr=options.productionPrefix,productionPrefix=void 0===_options$productionPr?"jss":_options$productionPr,_options$seed=options.seed,seed=void 0===_options$seed?"":_options$seed,seedPrefix=""===seed?"":"".concat(seed,"-"),ruleCounter=0,getNextCounterId=function getNextCounterId(){return ruleCounter+=1};return function(rule,styleSheet){var name=styleSheet.options.name;if(name&&0===name.indexOf("Mui")&&!styleSheet.options.link&&!disableGlobal){if(-1!==pseudoClasses.indexOf(rule.key))return"Mui-".concat(rule.key);var prefix="".concat(seedPrefix).concat(name,"-").concat(rule.key);return styleSheet.options.theme[nested]&&""===seed?"".concat(prefix,"-").concat(getNextCounterId()):prefix}return"".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId())}}(),defaultOptions={disableGeneration:!1,generateClassName,jss,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},StylesContext=react.createContext(defaultOptions);function StylesProvider(props){var children=props.children,_props$injectFirst=props.injectFirst,injectFirst=void 0!==_props$injectFirst&&_props$injectFirst,_props$disableGenerat=props.disableGeneration,disableGeneration=void 0!==_props$disableGenerat&&_props$disableGenerat,localOptions=(0,objectWithoutProperties.Z)(props,["children","injectFirst","disableGeneration"]),outerOptions=react.useContext(StylesContext),context=(0,esm_extends.Z)({},outerOptions,{disableGeneration},localOptions);if(!context.jss.options.insertionPoint&&injectFirst&&"undefined"!=typeof window){if(!injectFirstNode){var head=document.head;injectFirstNode=document.createComment("mui-inject-first"),head.insertBefore(injectFirstNode,head.firstChild)}context.jss=(0,jss_esm.Ue)({plugins:jssPreset().plugins,insertionPoint:injectFirstNode})}return react.createElement(StylesContext.Provider,{value:context},children)}},"./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/useTheme/useTheme.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>useTheme});var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");const useTheme_ThemeContext=react.createContext(null);function useTheme(){return react.useContext(useTheme_ThemeContext)}},"./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/deepmerge.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>deepmerge});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/typeof.js");function isPlainObject(item){return item&&"object"===(0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__.Z)(item)&&item.constructor===Object}function deepmerge(target,source){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},output=options.clone?(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__.Z)({},target):target;return isPlainObject(target)&&isPlainObject(source)&&Object.keys(source).forEach((function(key){"__proto__"!==key&&(isPlainObject(source[key])&&key in target?output[key]=deepmerge(target[key],source[key],options):output[key]=source[key])})),output}},"./node_modules/.pnpm/@material-ui+utils@4.11.3_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function formatMuiErrorMessage(code){for(var url="https://mui.com/production-error/?code="+code,i=1;iformatMuiErrorMessage})},"./node_modules/.pnpm/@mdx-js+react@1.6.22_react@17.0.2/node_modules/@mdx-js/react/dist/esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Zo:()=>MDXProvider,kt:()=>createElement});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({}),useMDXComponents=function useMDXComponents(components){var contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext),allComponents=contextComponents;return components&&(allComponents=function isFunction(obj){return"function"==typeof obj}(components)?components(contextComponents):_objectSpread2(_objectSpread2({},contextComponents),components)),allComponents},MDXProvider=function MDXProvider(props){var allComponents=useMDXComponents(props.components);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},props.children)},TYPE_PROP_NAME="mdxType",DEFAULTS={inlineCode:"code",wrapper:function wrapper(_ref){var children=_ref.children;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,{},children)}},MDXCreateElement=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(props,ref){var propComponents=props.components,mdxType=props.mdxType,originalType=props.originalType,parentName=props.parentName,etc=_objectWithoutProperties(props,["components","mdxType","originalType","parentName"]),components=useMDXComponents(propComponents),type=mdxType,Component=components["".concat(parentName,".").concat(type)]||components[type]||DEFAULTS[type]||originalType;return propComponents?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,_objectSpread2(_objectSpread2({ref},etc),{},{components:propComponents})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,_objectSpread2({ref},etc))}));function createElement(type,props){var args=arguments,mdxType=props&&props.mdxType;if("string"==typeof type||mdxType){var argsLength=args.length,createElementArgArray=new Array(argsLength);createElementArgArray[0]=MDXCreateElement;var newProps={};for(var key in props)hasOwnProperty.call(props,key)&&(newProps[key]=props[key]);newProps.originalType=type,newProps[TYPE_PROP_NAME]="string"==typeof type?type:mdxType,createElementArgArray[1]=newProps;for(var i=2;i{"use strict";__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js");var global_window=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js"),constants=__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js");module=__webpack_require__.hmd(module);var a11yHighlight_document=window_default().document;module&&module.hot;var channel=esm.KP.getChannel(),resetHighlight=function resetHighlight(){var id=constants.w_,sheetToBeRemoved=a11yHighlight_document.getElementById(id);sheetToBeRemoved&&sheetToBeRemoved.parentNode.removeChild(sheetToBeRemoved)};channel.on(dist_esm.STORY_CHANGED,resetHighlight),channel.on(constants.FP.HIGHLIGHT,(function highlight(infos){var id=constants.w_;resetHighlight();var elements=Array.from(new Set(infos.elements)),sheet=a11yHighlight_document.createElement("style");sheet.setAttribute("id",id),sheet.innerHTML=elements.map((function(target){return"".concat(target,"{\n ").concat(function highlightStyle(color){return"\n outline: 2px dashed ".concat(color,";\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n")}(infos.color),"\n }")})).join(" "),a11yHighlight_document.head.appendChild(sheet)}))},"./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js":(module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js");var global__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_3__),_storybook_addons__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}module=__webpack_require__.hmd(module);var document=global__WEBPACK_IMPORTED_MODULE_3___default().document,globalWindow=global__WEBPACK_IMPORTED_MODULE_3___default().window;module&&module.hot;var activeStoryId,channel=_storybook_addons__WEBPACK_IMPORTED_MODULE_5__.KP.getChannel(),active=!1,handleRequest=function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark((function _callee(storyId){var _yield$getParams;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,getParams(storyId);case 2:if(_yield$getParams=_context.sent,_yield$getParams.manual){_context.next=7;break}return _context.next=7,run(storyId);case 7:case"end":return _context.stop()}}),_callee)})));return function handleRequest(_x){return _ref.apply(this,arguments)}}(),run=function(){var _ref2=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(storyId){var input,axe,_input$element,element,config,_input$options,options,htmlElement,result;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return activeStoryId=storyId,_context2.prev=1,_context2.next=4,getParams(storyId);case 4:if(input=_context2.sent,active){_context2.next=19;break}return active=!0,channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RUNNING),_context2.next=10,__webpack_require__.e(898).then(__webpack_require__.t.bind(__webpack_require__,"./node_modules/.pnpm/axe-core@4.8.2/node_modules/axe-core/axe.js",23));case 10:return axe=_context2.sent.default,_input$element=input.element,element=void 0===_input$element?"#root":_input$element,config=input.config,_input$options=input.options,options=void 0===_input$options?{}:_input$options,htmlElement=document.querySelector(element),axe.reset(),config&&axe.configure(config),_context2.next=17,axe.run(htmlElement,options);case 17:result=_context2.sent,activeStoryId===storyId?channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RESULT,result):(active=!1,run(activeStoryId));case 19:_context2.next=24;break;case 21:_context2.prev=21,_context2.t0=_context2.catch(1),channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.ERROR,_context2.t0);case 24:return _context2.prev=24,active=!1,_context2.finish(24);case 27:case"end":return _context2.stop()}}),_callee2,null,[[1,21,24,27]])})));return function run(_x2){return _ref2.apply(this,arguments)}}(),getParams=function(){var _ref3=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(storyId){var _ref4,parameters;return regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=2,globalWindow.__STORYBOOK_STORY_STORE__.loadStory({storyId});case 2:if(_context3.t0=_context3.sent,_context3.t0){_context3.next=5;break}_context3.t0={};case 5:return _ref4=_context3.t0,parameters=_ref4.parameters,_context3.abrupt("return",parameters.a11y||{config:{},options:{restoreScroll:!0}});case 8:case"end":return _context3.stop()}}),_callee3)})));return function getParams(_x3){return _ref3.apply(this,arguments)}}();channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.REQUEST,handleRequest),channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.MANUAL,run)},"./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FP:()=>EVENTS,w_:()=>HIGHLIGHT_STYLE_ID});var ADDON_ID="storybook/a11y",HIGHLIGHT_STYLE_ID=("".concat(ADDON_ID,"/panel"),"a11yHighlight"),EVENTS={RESULT:"".concat(ADDON_ID,"/result"),REQUEST:"".concat(ADDON_ID,"/request"),RUNNING:"".concat(ADDON_ID,"/running"),ERROR:"".concat(ADDON_ID,"/error"),MANUAL:"".concat(ADDON_ID,"/manual"),HIGHLIGHT:"".concat(ADDON_ID,"/highlight")}},"./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/preview.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addon_a11y_preview_namespaceObject={};__webpack_require__.r(addon_a11y_preview_namespaceObject);var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js");__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yHighlight.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_a11y_preview_namespaceObject).forEach((function(key){var value=addon_a11y_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{action:()=>action,withActions:()=>withActions});"".concat("storybook/actions","/panel");var EVENT_ID="".concat("storybook/actions","/action-event"),v4=(__webpack_require__("./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/index.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/uuid-browser@3.1.0/node_modules/uuid-browser/v4.js")),v4_default=__webpack_require__.n(v4),esm=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),config={depth:10,clearOnStoryChange:!0,limit:50};function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var findProto=function findProto(obj,callback){var proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=function isReactSyntheticEvent(e){return Boolean("object"===_typeof(e)&&e&&findProto(e,(function(proto){return/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)}))&&"function"==typeof e.persist)},serializeArg=function serializeArg(a){if(isReactSyntheticEvent(a)){var e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();var viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=null==viewDescriptor?void 0:viewDescriptor.value;return"object"===_typeof(view)&&"Window"===(null==view?void 0:view.constructor.name)&&Object.defineProperty(e,"view",Object.assign({},viewDescriptor,{value:Object.create(view.constructor.prototype)})),e}return a};function action(name){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},actionOptions=Object.assign({},config,options);return function actionHandler(){for(var channel=esm.KP.getChannel(),id=v4_default()(),_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:Object.assign({},actionOptions,{maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1})};channel.emit(EVENT_ID,actionDisplayToEmit)}}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?_len-1:0),_key=1;_key<_len;_key++)handles[_key-1]=arguments[_key];var actionsObject=actionsFn.apply(void 0,handles);return Object.entries(actionsObject).map((function(_ref){var _ref2=withActions_slicedToArray(_ref,2),key=_ref2[0],action=_ref2[1],_key$match2=withActions_slicedToArray(key.match(delegateEventSplitter),3),eventName=(_key$match2[0],_key$match2[1]),selector=_key$match2[2];return{eventName,handler:function handler(e){selector&&!hasMatchInAncestry(e.target,selector)||action(e)}}}))},applyEventHandlers=browser_default()((function(actionsFn){for(var _len2=arguments.length,handles=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)handles[_key2-1]=arguments[_key2];(0,hooks.d4)((function(){if(null!=root){var handlers=createHandlers.apply(void 0,[actionsFn].concat(handles));return handlers.forEach((function(_ref3){var eventName=_ref3.eventName,handler=_ref3.handler;return root.addEventListener(eventName,handler)})),function(){return handlers.forEach((function(_ref4){var eventName=_ref4.eventName,handler=_ref4.handler;return root.removeEventListener(eventName,handler)}))}}}),[root,actionsFn,handles])}),(0,ts_dedent_esm.C)(withActions_templateObject||(withActions_templateObject=function withActions_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n withActions(options) is deprecated, please configure addon-actions using the addParameter api:\n\n addParameters({\n actions: {\n handles: options\n },\n });\n "])))),withActions=(0,make_decorator.h)({name:"withActions",parameterName:"actions",skipIfNoParametersOrOptions:!0,wrapper:function wrapper(getStory,context,_ref5){var parameters=_ref5.parameters,options=_ref5.options;return function applyDeprecatedOptions(actionsFn,options){options&&applyEventHandlers(actionsFn,options)}(actions,options),parameters&¶meters.handles&&applyEventHandlers.apply(void 0,[actions].concat(_toConsumableArray(parameters.handles))),getStory(context)}});(module=__webpack_require__.hmd(module))&&module.hot},"./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js":()=>{},"./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js":()=>{},"./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js");__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__.action}}),__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_0__.withActions}});var _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js");__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_1__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__.action}}),__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_1__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_1__.withActions}})},"./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/preview.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addon_actions_preview_namespaceObject={};__webpack_require__.r(addon_actions_preview_namespaceObject),__webpack_require__.d(addon_actions_preview_namespaceObject,{argsEnhancers:()=>argsEnhancers,decorators:()=>decorators});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("./node_modules/.pnpm/@storybook+addon-actions@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/index.js"),decorators=[esm.withActions];__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";var addon_backgrounds_preview_namespaceObject={};__webpack_require__.r(addon_backgrounds_preview_namespaceObject),__webpack_require__.d(addon_backgrounds_preview_namespaceObject,{decorators:()=>decorators,parameters:()=>parameters});var _templateObject,ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),hooks=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js")),global_window=("".concat("storybook/background","/update"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js");var withGrid_templateObject,helpers_document=window_default().document,helpers_window=window_default().window,getBackgroundColorByName=function getBackgroundColorByName(currentSelectedValue){var backgrounds=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],defaultName=arguments.length>2?arguments[2]:void 0;if("transparent"===currentSelectedValue)return"transparent";if(backgrounds.find((function(background){return background.value===currentSelectedValue})))return currentSelectedValue;var defaultBackground=backgrounds.find((function(background){return background.name===defaultName}));if(defaultBackground)return defaultBackground.value;if(defaultName){var availableColors=backgrounds.map((function(background){return background.name})).join(", ");dist_esm.kg.warn((0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n Backgrounds Addon: could not find the default color "','".\n These are the available colors for your story based on your configuration:\n ',".\n "])),defaultName,availableColors))}return"transparent"},clearStyles=function clearStyles(selector){(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=function clearStyle(selector){var element=helpers_document.getElementById(selector);element&&element.parentElement.removeChild(element)},browser=__webpack_require__("./node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js");var deprecatedCellSizeWarning=__webpack_require__.n(browser)()((function(){}),(0,esm.C)(withGrid_templateObject||(withGrid_templateObject=function withGrid_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Backgrounds Addon: The cell size parameter has been changed.\n\n - parameters.grid.cellSize should now be parameters.backgrounds.grid.cellSize\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-grid-parameter\n "])))),decorators=[function withGrid(StoryFn,context){var _globals$BACKGROUNDS_,_parameters$grid,_gridParameters$offse,_gridParameters$offse2,gridSize,globals=context.globals,parameters=context.parameters,gridParameters=parameters.backgrounds.grid,isActive=!0===(null===(_globals$BACKGROUNDS_=globals.backgrounds)||void 0===_globals$BACKGROUNDS_?void 0:_globals$BACKGROUNDS_.grid)&&!0!==gridParameters.disable,cellAmount=gridParameters.cellAmount,cellSize=gridParameters.cellSize,opacity=gridParameters.opacity,isInDocs="docs"===context.viewMode;null!==(_parameters$grid=parameters.grid)&&void 0!==_parameters$grid&&_parameters$grid.cellSize?(gridSize=parameters.grid.cellSize,deprecatedCellSizeWarning()):gridSize=cellSize;var defaultOffset=void 0===parameters.layout||"padded"===parameters.layout?16:0,offsetX=null!==(_gridParameters$offse=gridParameters.offsetX)&&void 0!==_gridParameters$offse?_gridParameters$offse:isInDocs?20:defaultOffset,offsetY=null!==(_gridParameters$offse2=gridParameters.offsetY)&&void 0!==_gridParameters$offse2?_gridParameters$offse2:isInDocs?20:defaultOffset,gridStyles=(0,hooks.Ye)((function(){var selector="docs"===context.viewMode?"#anchor--".concat(context.id," .docs-story"):".sb-show-main",backgroundSize=["".concat(gridSize*cellAmount,"px ").concat(gridSize*cellAmount,"px"),"".concat(gridSize*cellAmount,"px ").concat(gridSize*cellAmount,"px"),"".concat(gridSize,"px ").concat(gridSize,"px"),"".concat(gridSize,"px ").concat(gridSize,"px")].join(", ");return"\n ".concat(selector," {\n background-size: ").concat(backgroundSize," !important;\n background-position: ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ").concat(opacity,") 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ").concat(opacity,") 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ").concat(opacity/2,") 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ").concat(opacity/2,") 1px, transparent 1px) !important;\n }\n ")}),[gridSize]);return(0,hooks.d4)((function(){var selectorId="docs"===context.viewMode?"addon-backgrounds-grid-docs-".concat(context.id):"addon-backgrounds-grid";isActive?function addGridStyle(selector,css){var existingStyle=helpers_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=helpers_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,helpers_document.head.appendChild(style)}}(selectorId,gridStyles):clearStyles(selectorId)}),[isActive,gridStyles,context]),StoryFn()},function withBackground(StoryFn,context){var _globals$BACKGROUNDS_,globals=context.globals,parameters=context.parameters,globalsBackgroundColor=null===(_globals$BACKGROUNDS_=globals.backgrounds)||void 0===_globals$BACKGROUNDS_?void 0:_globals$BACKGROUNDS_.value,backgroundsConfig=parameters.backgrounds,selectedBackgroundColor=(0,hooks.Ye)((function(){return backgroundsConfig.disable?"transparent":getBackgroundColorByName(globalsBackgroundColor,backgroundsConfig.values,backgroundsConfig.default)}),[backgroundsConfig,globalsBackgroundColor]),isActive=(0,hooks.Ye)((function(){return selectedBackgroundColor&&"transparent"!==selectedBackgroundColor}),[selectedBackgroundColor]),selector="docs"===context.viewMode?"#anchor--".concat(context.id," .docs-story"):".sb-show-main",backgroundStyles=(0,hooks.Ye)((function(){return"\n ".concat(selector," {\n background: ").concat(selectedBackgroundColor," !important;\n ").concat(function isReduceMotionEnabled(){return helpers_window.matchMedia("(prefers-reduced-motion: reduce)").matches}()?"":"transition: background-color 0.3s;","\n }\n ")}),[selectedBackgroundColor,selector]);return(0,hooks.d4)((function(){var selectorId="docs"===context.viewMode?"addon-backgrounds-docs-".concat(context.id):"addon-backgrounds-color";isActive?function addBackgroundStyle(selector,css,storyId){var existingStyle=helpers_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=helpers_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css;var gridStyleSelector="addon-backgrounds-grid".concat(storyId?"-docs-".concat(storyId):""),existingGridStyle=helpers_document.getElementById(gridStyleSelector);existingGridStyle?existingGridStyle.parentElement.insertBefore(style,existingGridStyle):helpers_document.head.appendChild(style)}}(selectorId,backgroundStyles,"docs"===context.viewMode?context.id:null):clearStyles(selectorId)}),[isActive,backgroundStyles,context]),StoryFn()}],parameters={backgrounds:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_backgrounds_preview_namespaceObject).forEach((function(key){var value=addon_backgrounds_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AddContext:()=>AddContext,Anchor:()=>Anchor,AnchorMdx:()=>AnchorMdx,ArgsTable:()=>ArgsTable,CURRENT_SELECTION:()=>CURRENT_SELECTION,Canvas:()=>Canvas,CodeOrSourceMdx:()=>CodeOrSourceMdx,ColorItem:()=>index_681e4b07.aP,ColorPalette:()=>index_681e4b07.aQ,ComponentsTable:()=>ComponentsTable,Description:()=>DescriptionContainer,DescriptionType:()=>DescriptionType,DocsContainer:()=>DocsContainer,DocsContext:()=>DocsContext,DocsPage:()=>DocsPage,DocsStory:()=>DocsStory,HeaderMdx:()=>HeaderMdx,HeadersMdx:()=>HeadersMdx,Heading:()=>Heading,IconGallery:()=>index_681e4b07.aS,IconItem:()=>index_681e4b07.aR,Meta:()=>Meta,PRIMARY_STORY:()=>PRIMARY_STORY,Preview:()=>Preview,Primary:()=>Primary,Props:()=>Props,Source:()=>Source,SourceContainer:()=>SourceContainer,SourceContext:()=>SourceContext,SourceState:()=>SourceState,Stories:()=>Stories,Story:()=>Story,StoryTable:()=>StoryTable,Subheading:()=>Subheading,Subtitle:()=>Subtitle,Title:()=>Title,Typeset:()=>index_681e4b07.aO,Wrapper:()=>Wrapper,anchorBlockIdFromId:()=>anchorBlockIdFromId,assertIsFn:()=>assertIsFn,extractComponentArgTypes:()=>extractComponentArgTypes,extractTitle:()=>extractTitle,getComponent:()=>getComponent,getDescriptionProps:()=>getDescriptionProps,getSourceProps:()=>getSourceProps,getStoryId:()=>getStoryId,getStoryProps:()=>getStoryProps,lookupStoryId:()=>lookupStoryId,storyBlockIdFromId:()=>storyBlockIdFromId});var index_681e4b07=__webpack_require__("./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),anchorBlockIdFromId=function anchorBlockIdFromId(storyId){return"anchor--".concat(storyId)},Anchor=function Anchor(_ref){var storyId=_ref.storyId,children=_ref.children;return react.createElement("div",{id:anchorBlockIdFromId(storyId)},children)},mapValues=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),esm=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),filterArgTypes=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js"),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js"),global_window=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window);global_window.window&&void 0===global_window.window.__DOCS_CONTEXT__&&(global_window.window.__DOCS_CONTEXT__=(0,react.createContext)({}),global_window.window.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global_window.window?global_window.window.__DOCS_CONTEXT__:(0,react.createContext)({}),CURRENT_SELECTION=".",PRIMARY_STORY="^",getComponentName=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),function getComponentName(component){if(component)return"string"==typeof component?component.includes("-")?function titleCase(str){return str.split("-").map((function(part){return part.charAt(0).toUpperCase()+part.slice(1)})).join("")}(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name});function scrollToElement(element){var block=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js");var react_dist_esm=__webpack_require__("./node_modules/.pnpm/@mdx-js+react@1.6.22_react@17.0.2/node_modules/@mdx-js/react/dist/esm.js"),dist=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/index.js");__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}})))}Promise.all([storyFnRan,rendered]).then((function(){channel.emit(dist_esm.default.STORY_RENDERED,storyId)}))}return react.createElement("div",{id:storyBlockIdFromId(story.id)},react.createElement(react_dist_esm.Zo,{components:index_681e4b07.C},react.createElement(index_681e4b07.aL,storyProps)))};function _extends(){return _extends=Object.assign||function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,id=_ref3.id,storyById=_ref3.storyById,of=props.of,story=props.story,component=storyById(id).component;if(isShortcut(of)||isShortcut(story))return component||null;if(!of)throw new Error(index_681e4b07.aC.NO_COMPONENT);return of},addComponentTabs=function addComponentTabs(tabs,components,context,include,exclude,sort){return Object.assign({},tabs,mapValues_default()(components,(function(comp){return{rows:extractComponentArgTypes(comp,context,include,exclude),sort}})))},StoryTable=function StoryTable(props){var context=(0,react.useContext)(DocsContext),currentId=context.id,componentStories=context.componentStories,storyName=props.story,component=props.component,subcomponents=props.subcomponents,showComponent=props.showComponent,include=props.include,exclude=props.exclude,sort=props.sort;try{var storyId;switch(storyName){case CURRENT_SELECTION:storyId=currentId;break;case PRIMARY_STORY:storyId=componentStories()[0].id;break;default:storyId=lookupStoryId(storyName,context)}var story=useStory(storyId,context),_useArgs=function useArgs(storyId,context){var channel=esm.KP.getChannel(),storyContext=getContext(storyId,context),_useState2=ArgsTable_slicedToArray((0,react.useState)(storyContext.args),2),args=_useState2[0],setArgs=_useState2[1];return(0,react.useEffect)((function(){var cb=function cb(changed){changed.storyId===storyId&&setArgs(changed.args)};return channel.on(dist_esm.default.STORY_ARGS_UPDATED,cb),function(){return channel.off(dist_esm.default.STORY_ARGS_UPDATED,cb)}}),[storyId]),[args,(0,react.useCallback)((function(updatedArgs){return channel.emit(dist_esm.default.UPDATE_STORY_ARGS,{storyId,updatedArgs})}),[storyId]),(0,react.useCallback)((function(argNames){return channel.emit(dist_esm.default.RESET_STORY_ARGS,{storyId,argNames})}),[storyId])]}(storyId,context),_useArgs2=ArgsTable_slicedToArray(_useArgs,3),args=_useArgs2[0],updateArgs=_useArgs2[1],resetArgs=_useArgs2[2],_useGlobals=function useGlobals(storyId,context){var channel=esm.KP.getChannel(),storyContext=getContext(storyId,context),_useState4=ArgsTable_slicedToArray((0,react.useState)(storyContext.globals),2),globals=_useState4[0],setGlobals=_useState4[1];return(0,react.useEffect)((function(){var cb=function cb(changed){setGlobals(changed.globals)};return channel.on(dist_esm.default.GLOBALS_UPDATED,cb),function(){return channel.off(dist_esm.default.GLOBALS_UPDATED,cb)}}),[]),[globals]}(storyId,context),globals=ArgsTable_slicedToArray(_useGlobals,1)[0];if(!story)return react.createElement(index_681e4b07.aE,{isLoading:!0,updateArgs,resetArgs});var argTypes=(0,filterArgTypes.h)(story.argTypes,include,exclude),mainLabel=getComponentName(component)||"Story",tabs=ArgsTable_defineProperty({},mainLabel,{rows:argTypes,args,globals,updateArgs,resetArgs}),storyHasArgsWithControls=argTypes&&Object.values(argTypes).find((function(v){return!(null==v||!v.control)}));if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),!component||storyHasArgsWithControls&&!showComponent||(tabs=addComponentTabs(tabs,ArgsTable_defineProperty({},mainLabel,component),context,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");tabs=addComponentTabs(tabs,subcomponents,context,include,exclude)}return react.createElement(index_681e4b07.aF,{tabs,sort})}catch(err){return react.createElement(index_681e4b07.aE,{error:err.message})}},ComponentsTable=function ComponentsTable(props){var context=(0,react.useContext)(DocsContext),components=props.components,include=props.include,exclude=props.exclude,sort=props.sort,tabs=addComponentTabs({},components,context,include,exclude);return react.createElement(index_681e4b07.aF,{tabs,sort})},ArgsTable=function ArgsTable(props){var context=(0,react.useContext)(DocsContext),id=context.id,_storyById3=(0,context.storyById)(id),controls=_storyById3.parameters.controls,subcomponents=_storyById3.subcomponents,_ref6=props,include=_ref6.include,exclude=_ref6.exclude,components=_ref6.components,sortProp=_ref6.sort,storyName=props.story,sort=sortProp||(null==controls?void 0:controls.sort),main=getComponent(props,context);if(storyName)return react.createElement(StoryTable,_extends({},props,{component:main,subcomponents,sort}));if(!components&&!subcomponents){var mainProps;try{mainProps={rows:extractComponentArgTypes(main,context,include,exclude)}}catch(err){mainProps={error:err.message}}return react.createElement(index_681e4b07.aE,_extends({},mainProps,{sort}))}if(components)return react.createElement(ComponentsTable,_extends({},props,{components,sort}));var mainLabel=getComponentName(main);return react.createElement(ComponentsTable,_extends({},props,{components:Object.assign(ArgsTable_defineProperty({},mainLabel,main),subcomponents),sort}))};ArgsTable.defaultProps={of:CURRENT_SELECTION};__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js");var SourceType,fast_deep_equal=__webpack_require__("./node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),SNIPPET_RENDERED=("".concat("storybook/docs","/panel"),"".concat("storybook/docs","/snippet-rendered"));function SourceContainer_slicedToArray(arr,i){return function SourceContainer_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function SourceContainer_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function SourceContainer_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return SourceContainer_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SourceContainer_arrayLikeToArray(o,minLen)}(arr,i)||function SourceContainer_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SourceContainer_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2]&&arguments[2];sources[id]&&sources[id].code===newSource||setSources((function(current){var newSources=Object.assign({},current,function SourceContainer_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},id,{code:newSource,format}));return fast_deep_equal_default()(current,newSources)?current:newSources}))};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),function(){return channel.off(SNIPPET_RENDERED,handleSnippetRendered)}}),[]),react.createElement(SourceContext.Provider,{value:{sources}},children)},esm_parameters=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return enhanceSource_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function enhanceSource_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return enhanceSource_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return enhanceSource_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function enhanceSource_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var DescriptionType,Canvas=function Canvas(props){var _getPreviewProps=function getPreviewProps(_ref,docsContext,sourceContext){var withSource=_ref.withSource,mdxSource=_ref.mdxSource,children=_ref.children,props=_objectWithoutProperties(_ref,_excluded),mdxComponentAnnotations=docsContext.mdxComponentAnnotations,mdxStoryNameToKey=docsContext.mdxStoryNameToKey,sourceState=withSource,isLoading=!1;if(sourceState===SourceState.NONE)return{isLoading,previewProps:props};if(mdxSource)return{isLoading,previewProps:Object.assign({},props,{withSource:getSourceProps({code:decodeURI(mdxSource)},docsContext,sourceContext)})};var targetIds=(Array.isArray(children)?children:[children]).filter((function(c){return c.props&&(c.props.id||c.props.name)})).map((function(s){return s.props.id||(0,dist.toId)(mdxComponentAnnotations.id||mdxComponentAnnotations.title,(0,dist.storyNameFromExport)(mdxStoryNameToKey[s.props.name]))})),sourceProps=getSourceProps({ids:targetIds},docsContext,sourceContext);return sourceState||(sourceState=sourceProps.state),{isLoading:isLoading=useStories(targetIds.map((function(targetId){return targetId===CURRENT_SELECTION?docsContext.id:targetId})),docsContext).some((function(s){return!s})),previewProps:Object.assign({},props,{withSource:sourceProps,isExpanded:sourceState===SourceState.OPEN})}}(props,(0,react.useContext)(DocsContext),(0,react.useContext)(SourceContext)),isLoading=_getPreviewProps.isLoading,previewProps=_getPreviewProps.previewProps,children=props.children;return isLoading?react.createElement(index_681e4b07.aA,null):react.createElement(react_dist_esm.Zo,{components:index_681e4b07.C},react.createElement(index_681e4b07.az,previewProps,children))},string=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/.pnpm/@storybook+docs-tools@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js"));!function(DescriptionType){DescriptionType.INFO="info",DescriptionType.NOTES="notes",DescriptionType.DOCGEN="docgen",DescriptionType.LEGACY_5_2="legacy-5.2",DescriptionType.AUTO="auto"}(DescriptionType||(DescriptionType={}));var getNotes=function getNotes(notes){return notes&&("string"==typeof notes?notes:(0,string.B)(notes.markdown)||(0,string.B)(notes.text))},getInfo=function getInfo(info){return info&&("string"==typeof info?info:(0,string.B)(info.text))},noDescription=function noDescription(component){return null},getDescriptionProps=function getDescriptionProps(_ref,_ref2){var of=_ref.of,type=_ref.type,markdown=_ref.markdown,children=_ref.children,id=_ref2.id,_storyById=(0,_ref2.storyById)(id),component=_storyById.component,parameters=_storyById.parameters;if(children||markdown)return{markdown:children||markdown};var notes=parameters.notes,info=parameters.info,_ref3=parameters.docs||{},_ref3$extractComponen=_ref3.extractComponentDescription,extractComponentDescription=void 0===_ref3$extractComponen?noDescription:_ref3$extractComponen,description=_ref3.description,target=of===CURRENT_SELECTION?component:of,componentDescriptionParameter=null==description?void 0:description.component;if(componentDescriptionParameter)return{markdown:componentDescriptionParameter};switch(type){case DescriptionType.INFO:return{markdown:getInfo(info)};case DescriptionType.NOTES:return{markdown:getNotes(notes)};case DescriptionType.LEGACY_5_2:return{markdown:"\n".concat(getNotes(notes)||getInfo(info)||"","\n\n").concat(extractComponentDescription(target)||"","\n").trim()};case DescriptionType.DOCGEN:case DescriptionType.AUTO:default:return{markdown:extractComponentDescription(target,Object.assign({component},parameters))}}},DescriptionContainer=function DescriptionContainer(props){var context=(0,react.useContext)(DocsContext),markdown=getDescriptionProps(props,context).markdown;return markdown?react.createElement(index_681e4b07.at,{markdown}):null};DescriptionContainer.defaultProps={of:"."};var STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=function extractTitle(_ref){var title=_ref.title,groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title=function Title(_ref2){var children=_ref2.children,context=(0,react.useContext)(DocsContext),text=children;return text||(text=extractTitle(context)),text?react.createElement(index_681e4b07.au,{className:"sbdocs-title"},text):null},Subtitle=function Subtitle(_ref){var children=_ref.children,_useContext=(0,react.useContext)(DocsContext),id=_useContext.id,parameters=(0,_useContext.storyById)(id).parameters,text=children;return text||(text=null==parameters?void 0:parameters.componentSubtitle),text?react.createElement(index_681e4b07.av,{className:"sbdocs-subtitle"},text):null},browser=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js")),browser_default=__webpack_require__.n(browser),ts_dedent_esm=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),theming_dist_esm=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/.pnpm/@storybook+theming@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js")),mdx_excluded=["children"],_excluded2=["className","children"],_excluded3=["href","target","children"],_excluded4=["as","id","children"],_excluded5=["as","id","children"];function mdx_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function mdx_extends(){return mdx_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var mdx_document=window_default().document,assertIsFn=function assertIsFn(val){if("function"!=typeof val)throw new Error("Expected story function, got: ".concat(val));return val},AddContext=function AddContext(props){var children=props.children,rest=mdx_objectWithoutProperties(props,mdx_excluded),parentContext=react.useContext(DocsContext);return react.createElement(DocsContext.Provider,{value:Object.assign({},parentContext,rest)},children)},CodeOrSourceMdx=function CodeOrSourceMdx(_ref){var className=_ref.className,children=_ref.children,rest=mdx_objectWithoutProperties(_ref,_excluded2);if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react.createElement(index_681e4b07.G,null,children);var language=className&&className.split("-");return react.createElement(index_681e4b07.aI,mdx_extends({language:language&&language[1]||"plaintext",format:!1,code:children},rest))};function mdx_navigate(url){esm.KP.getChannel().emit(dist_esm.NAVIGATE_URL,url)}var _templateObject,A=index_681e4b07.B.a,AnchorInPage=function AnchorInPage(_ref2){var hash=_ref2.hash,children=_ref2.children;return react.createElement(A,{href:hash,target:"_self",onClick:function onClick(event){var id=hash.substring(1);mdx_document.getElementById(id)&&mdx_navigate(hash)}},children)},AnchorMdx=function AnchorMdx(props){var href=props.href,target=props.target,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded3);if(href){if(href.startsWith("#"))return react.createElement(AnchorInPage,{hash:href},children);if("_blank"!==target&&!href.startsWith("https://"))return react.createElement(A,mdx_extends({href,onClick:function onClick(event){event.preventDefault(),mdx_navigate(event.currentTarget.getAttribute("href"))},target},rest),children)}return react.createElement(A,props)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(0,theming_dist_esm.zo)(index_681e4b07.B[headerType])({"& svg":{visibility:"hidden"},"&:hover svg":{visibility:"visible"}})))}),{}),OcticonAnchor=theming_dist_esm.zo.a((function(){return{float:"left",paddingRight:"4px",marginLeft:"-20px",color:"inherit"}})),HeaderWithOcticonAnchor=function HeaderWithOcticonAnchor(_ref3){var as=_ref3.as,id=_ref3.id,children=_ref3.children,rest=mdx_objectWithoutProperties(_ref3,_excluded4),OcticonHeader=OcticonHeaders[as],hash="#".concat(id);return react.createElement(OcticonHeader,mdx_extends({id},rest),react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:function onClick(event){mdx_document.getElementById(id)&&mdx_navigate(hash)}},react.createElement("svg",{viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true",fill:"currentColor"},react.createElement("path",{fillRule:"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}))),children)},HeaderMdx=function HeaderMdx(props){var as=props.as,id=props.id,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded5);if(id)return react.createElement(HeaderWithOcticonAnchor,mdx_extends({as,id},rest),children);var Header=index_681e4b07.B[as];return react.createElement(Header,props)},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(function(props){return react.createElement(HeaderMdx,mdx_extends({as:headerType},props))})))}),{}),Subheading=function Subheading(_ref){var children=_ref.children;if(_ref.disableAnchor||"string"!=typeof children)return react.createElement(index_681e4b07.M,null,children);var tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)};var warnStoryDescription=browser_default()((function(){}),(0,ts_dedent_esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Deprecated parameter: docs.storyDescription => docs.description.story\n \n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#docs-description-parameter\n "])))),DocsStory=function DocsStory(_ref){var description,_docs$description,id=_ref.id,name=_ref.name,_ref$expanded=_ref.expanded,expanded=void 0===_ref$expanded||_ref$expanded,_ref$withToolbar=_ref.withToolbar,withToolbar=void 0!==_ref$withToolbar&&_ref$withToolbar,_ref$parameters=_ref.parameters,parameters=void 0===_ref$parameters?{}:_ref$parameters,docs=parameters.docs;expanded&&docs&&((description=null===(_docs$description=docs.description)||void 0===_docs$description?void 0:_docs$description.story)||(description=docs.storyDescription)&&warnStoryDescription());var subheading=expanded&&name;return react.createElement(Anchor,{storyId:id},subheading&&react.createElement(Subheading,null,subheading),description&&react.createElement(DescriptionContainer,{markdown:description}),react.createElement(Canvas,{withToolbar},react.createElement(Story,{id,parameters})))};function Primary_extends(){return Primary_extends=Object.assign||function(target){for(var i=1;i docs.theme\n\n https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/theming.md#storybook-theming\n"])))),DocsContainer=function DocsContainer(_ref){var context=_ref.context,children=_ref.children,storyId=context.id,_storyById$parameters=(0,context.storyById)(storyId).parameters,_storyById$parameters2=_storyById$parameters.options,options=void 0===_storyById$parameters2?{}:_storyById$parameters2,_storyById$parameters3=_storyById$parameters.docs,docs=void 0===_storyById$parameters3?{}:_storyById$parameters3,themeVars=docs.theme;!themeVars&&options.theme&&(warnOptionsTheme(),themeVars=options.theme);var theme=(0,theming_dist_esm.zx)(themeVars),allComponents=Object.assign({},defaultComponents,docs.components);return(0,react.useEffect)((function(){var url;try{url=new URL(globalWindow.parent.location)}catch(err){return}if(url.hash){var element=DocsContainer_document.getElementById(url.hash.substring(1));element&&setTimeout((function(){scrollToElement(element)}),200)}else{var _element=DocsContainer_document.getElementById(anchorBlockIdFromId(storyId))||DocsContainer_document.getElementById(storyBlockIdFromId(storyId));if(_element){var allStories=_element.parentElement.querySelectorAll('[id|="anchor-"]'),scrollTarget=_element;allStories&&allStories[0]===_element&&(scrollTarget=DocsContainer_document.getElementById("docs-root")),setTimeout((function(){scrollToElement(scrollTarget,"start")}),200)}}}),[storyId]),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,null,react.createElement(theming_dist_esm.f6,{theme},react.createElement(react_dist_esm.Zo,{components:allComponents},react.createElement(index_681e4b07.ax,{className:"sbdocs sbdocs-wrapper"},react.createElement(index_681e4b07.aw,{className:"sbdocs sbdocs-content"},children))))))},Meta_document=window_default().document;var Preview_templateObject,Meta=function Meta(){return"docs"===new URL(Meta_document.location).searchParams.get("viewMode")?function renderAnchor(){var context=(0,react.useContext)(DocsContext),anchorId=function getFirstStoryId(docsContext){var stories=docsContext.componentStories();return stories.length>0?stories[0].id:null}(context)||context.id;return react.createElement(Anchor,{storyId:anchorId})}():null};var Props_templateObject,Preview=browser_default()((function(props){return react.createElement(Canvas,props)}),(0,ts_dedent_esm.C)(Preview_templateObject||(Preview_templateObject=function Preview_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Preview doc block has been renamed to Canvas.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));var Props=browser_default()((function(props){return react.createElement(ArgsTable,props)}),(0,ts_dedent_esm.C)(Props_templateObject||(Props_templateObject=function Props_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Props doc block has been renamed to ArgsTable.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));Props.defaultProps={of:CURRENT_SELECTION};var Wrapper=function Wrapper(_ref){var children=_ref.children;return react.createElement("div",{style:{fontFamily:"sans-serif"}},children)}},"./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.23.2_eslint@8.51.0_react-dom@17.0.2_react@17.0.2_t_y62oaffunwxrtzopcv4hf6whjm/node_modules/@storybook/addon-docs/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$4:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.ArgsTable,Lo:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.IconGallery,VZ:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.ColorPalette,Xz:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Canvas,_R:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.IconItem,aT:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.AddContext,c6:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.ColorItem,dk:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Description,h_:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Meta,oG:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Story});var _blocks__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.23.2_eslint@8.51.0_react-dom@17.0.2_react@17.0.2_t_y62oaffunwxrtzopcv4hf6whjm/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js")},"./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.23.2_eslint@8.51.0_react-dom@17.0.2_react@17.0.2_t_y62oaffunwxrtzopcv4hf6whjm/node_modules/@storybook/addon-docs/preview.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addon_docs_preview_namespaceObject={};__webpack_require__.r(addon_docs_preview_namespaceObject),__webpack_require__.d(addon_docs_preview_namespaceObject,{parameters:()=>parameters});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js");__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var _getPage,_getContainer,parameters={docs:{getContainer:(_getContainer=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.23.2_eslint@8.51.0_react-dom@17.0.2_react@17.0.2_t_y62oaffunwxrtzopcv4hf6whjm/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js"));case 2:return _context.abrupt("return",_context.sent.DocsContainer);case 3:case"end":return _context.stop()}}),_callee)}))),function getContainer(){return _getContainer.apply(this,arguments)}),getPage:(_getPage=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+addon-docs@6.5.16_@babel+core@7.23.2_eslint@8.51.0_react-dom@17.0.2_react@17.0.2_t_y62oaffunwxrtzopcv4hf6whjm/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js"));case 2:return _context2.abrupt("return",_context2.sent.DocsPage);case 3:case"end":return _context2.stop()}}),_callee2)}))),function getPage(){return _getPage.apply(this,arguments)})}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_docs_preview_namespaceObject).forEach((function(key){var value=addon_docs_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{OX:()=>withLinks});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js");var global_window=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=(__webpack_require__("./node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.js"),__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js")),make_decorator=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/make-decorator.js"),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js");__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/index.js");"".concat("storybook/links","/navigate"),"".concat("storybook/links","/request"),"".concat("storybook/links","/receive");var utils_document=window_default().document,HTMLElement=window_default().HTMLElement,utils_navigate=function navigate(params){return esm.KP.getChannel().emit(dist_esm.SELECT_STORY,params)},linksListener=function linksListener(e){var target=e.target;if(target instanceof HTMLElement){var _element$dataset=target.dataset,kind=_element$dataset.sbKind,story=_element$dataset.sbStory;(kind||story)&&(e.preventDefault(),utils_navigate({kind,story}))}},hasListener=!1,off=function off(){hasListener&&(hasListener=!1,utils_document.removeEventListener("click",linksListener))},withLinks=(0,make_decorator.h)({name:"withLinks",parameterName:"links",wrapper:function wrapper(getStory,context){return function on(){hasListener||(hasListener=!0,utils_document.addEventListener("click",linksListener))}(),esm.KP.getChannel().once(dist_esm.STORY_CHANGED,off),getStory(context)}});module=__webpack_require__.hmd(module);module&&module.hot},"./node_modules/.pnpm/@storybook+addon-links@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-links/preview.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addon_links_preview_namespaceObject={};__webpack_require__.r(addon_links_preview_namespaceObject),__webpack_require__.d(addon_links_preview_namespaceObject,{decorators:()=>decorators});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),decorators=[__webpack_require__("./node_modules/.pnpm/@storybook+addon-links@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addon-links/dist/esm/index.js").OX];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_links_preview_namespaceObject).forEach((function(key){var value=addon_links_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var addon_measure_preview_namespaceObject={};__webpack_require__.r(addon_measure_preview_namespaceObject),__webpack_require__.d(addon_measure_preview_namespaceObject,{decorators:()=>decorators,globals:()=>globals});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),hooks=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),global_window=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window);function getDocumentWidthAndHeight(){var container=window_default().document.documentElement,height=Math.max(container.scrollHeight,container.offsetHeight);return{width:Math.max(container.scrollWidth,container.offsetWidth),height}}function setCanvasWidthAndHeight(canvas,context,_ref){var width=_ref.width,height=_ref.height;canvas.style.width="".concat(width,"px"),canvas.style.height="".concat(height,"px");var scale=window_default().window.devicePixelRatio;canvas.width=Math.floor(width*scale),canvas.height=Math.floor(height*scale),context.scale(scale,scale)}var state={};function init(){state.canvas||(state=function createCanvas(){var canvas=window_default().document.createElement("canvas");canvas.id="storybook-addon-measure";var context=canvas.getContext("2d"),_getDocumentWidthAndH=getDocumentWidthAndHeight(),width=_getDocumentWidthAndH.width,height=_getDocumentWidthAndH.height;return setCanvasWidthAndHeight(canvas,context,{width,height}),canvas.style.position="absolute",canvas.style.left="0",canvas.style.top="0",canvas.style.zIndex="2147483647",canvas.style.pointerEvents="none",window_default().document.body.appendChild(canvas),{canvas,context,width,height}}())}function clear(){state.context&&state.context.clearRect(0,0,state.width,state.height)}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js");var colors={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},labelPadding=6;function roundedRect(context,_ref){var x=_ref.x,y=_ref.y,w=_ref.w,h=_ref.h,r=_ref.r;x-=w/2,y-=h/2,w<2*r&&(r=w/2),h<2*r&&(r=h/2),context.beginPath(),context.moveTo(x+r,y),context.arcTo(x+w,y,x+w,y+h,r),context.arcTo(x+w,y+h,x,y+h,r),context.arcTo(x,y+h,x,y,r),context.arcTo(x,y,x+w,y,r),context.closePath()}function textWithRect(context,type,_ref4,text){var x=_ref4.x,y=_ref4.y,w=_ref4.w,h=_ref4.h;return roundedRect(context,{x,y,w,h,r:3}),context.fillStyle="".concat(colors[type],"dd"),context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),roundedRect(context,{x,y,w,h,r:3}),context.fillStyle="".concat(colors[type],"dd"),context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),{x,y,w,h}}function configureText(context,text){context.font="600 12px monospace",context.textBaseline="middle",context.textAlign="center";var metrics=context.measureText(text),actualHeight=metrics.actualBoundingBoxAscent+metrics.actualBoundingBoxDescent;return{w:metrics.width+2*labelPadding,h:actualHeight+2*labelPadding}}function drawLabel(context,measurements,_ref5,prevRect){var type=_ref5.type,_ref5$position=_ref5.position,position=void 0===_ref5$position?"center":_ref5$position,text=_ref5.text,external=arguments.length>4&&void 0!==arguments[4]&&arguments[4],_positionCoordinate=function positionCoordinate(position,_ref2){var padding=_ref2.padding,border=_ref2.border,width=_ref2.width,height=_ref2.height,top=_ref2.top,left=_ref2.left,contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom,x=left+border.left+padding.left,y=top+border.top+padding.top;return"top"===position?x+=contentWidth/2:"right"===position?(x+=contentWidth,y+=contentHeight/2):"bottom"===position?(x+=contentWidth/2,y+=contentHeight):"left"===position?y+=contentHeight/2:"center"===position&&(x+=contentWidth/2,y+=contentHeight/2),{x,y}}(position,measurements),x=_positionCoordinate.x,y=_positionCoordinate.y,_offset=function offset(type,position,_ref3,labelPaddingSize,external){var margin=_ref3.margin,border=_ref3.border,padding=_ref3.padding,shift=function shift(dir){return 0},offsetX=0,offsetY=0,locationMultiplier=external?1:.5,labelPaddingShift=external?2*labelPaddingSize:0;return"padding"===type?shift=function shift(dir){return padding[dir]*locationMultiplier+labelPaddingShift}:"border"===type?shift=function shift(dir){return padding[dir]+border[dir]*locationMultiplier+labelPaddingShift}:"margin"===type&&(shift=function shift(dir){return padding[dir]+border[dir]+margin[dir]*locationMultiplier+labelPaddingShift}),"top"===position?offsetY=-shift("top"):"right"===position?offsetX=shift("right"):"bottom"===position?offsetY=shift("bottom"):"left"===position&&(offsetX=-shift("left")),{offsetX,offsetY}}(type,position,measurements,labelPadding+1,external);x+=_offset.offsetX,y+=_offset.offsetY;var _configureText=configureText(context,text),w=_configureText.w,h=_configureText.h;if(prevRect&&function collide(a,b){return Math.abs(a.x-b.x)arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iMath.abs(windowExtremities_right-extremities.right)?"left":"right",y:distances_top>distances_bottom?"top":"bottom"}}function drawBoxModel(element){return function(context){if(element&&context){var measurements=function measureElement(element){var style=window_default().getComputedStyle(element),_element$getBoundingC=element.getBoundingClientRect(),top=_element$getBoundingC.top,left=_element$getBoundingC.left,right=_element$getBoundingC.right,bottom=_element$getBoundingC.bottom,width=_element$getBoundingC.width,height=_element$getBoundingC.height,marginTop=style.marginTop,marginBottom=style.marginBottom,marginLeft=style.marginLeft,marginRight=style.marginRight,paddingTop=style.paddingTop,paddingBottom=style.paddingBottom,paddingLeft=style.paddingLeft,paddingRight=style.paddingRight,borderBottomWidth=style.borderBottomWidth,borderTopWidth=style.borderTopWidth,borderLeftWidth=style.borderLeftWidth,borderRightWidth=style.borderRightWidth;top+=window_default().window.scrollY,left+=window_default().window.scrollX,bottom+=window_default().window.scrollY,right+=window_default().window.scrollX;var margin={top:pxToNumber(marginTop),bottom:pxToNumber(marginBottom),left:pxToNumber(marginLeft),right:pxToNumber(marginRight)},padding={top:pxToNumber(paddingTop),bottom:pxToNumber(paddingBottom),left:pxToNumber(paddingLeft),right:pxToNumber(paddingRight)},border={top:pxToNumber(borderTopWidth),bottom:pxToNumber(borderBottomWidth),left:pxToNumber(borderLeftWidth),right:pxToNumber(borderRightWidth)},extremities={top:top-margin.top,bottom:bottom+margin.bottom,left:left-margin.left,right:right+margin.right};return{margin,padding,border,top,left,bottom,right,width,height,extremities,floatingAlignment:floatingAlignment(extremities)}}(element),marginLabels=function drawMargin(context,_ref){var margin=_ref.margin,width=_ref.width,height=_ref.height,top=_ref.top,left=_ref.left,bottom=_ref.bottom,right=_ref.right,marginHeight=height+margin.bottom+margin.top;return context.fillStyle=visualizer_colors.margin,context.fillRect(left,top-margin.top,width,margin.top),context.fillRect(right,top-margin.top,margin.right,marginHeight),context.fillRect(left,bottom,width,margin.bottom),context.fillRect(left-margin.left,top-margin.top,margin.left,marginHeight),filterZeroValues([{type:"margin",text:round(margin.top),position:"top"},{type:"margin",text:round(margin.right),position:"right"},{type:"margin",text:round(margin.bottom),position:"bottom"},{type:"margin",text:round(margin.left),position:"left"}])}(context,measurements),paddingLabels=function drawPadding(context,_ref2){var padding=_ref2.padding,border=_ref2.border,width=_ref2.width,height=_ref2.height,top=_ref2.top,left=_ref2.left,bottom=_ref2.bottom,right=_ref2.right,paddingWidth=width-border.left-border.right,paddingHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors.padding,context.fillRect(left+border.left,top+border.top,paddingWidth,padding.top),context.fillRect(right-padding.right-border.right,top+padding.top+border.top,padding.right,paddingHeight),context.fillRect(left+border.left,bottom-padding.bottom-border.bottom,paddingWidth,padding.bottom),context.fillRect(left+border.left,top+padding.top+border.top,padding.left,paddingHeight),filterZeroValues([{type:"padding",text:padding.top,position:"top"},{type:"padding",text:padding.right,position:"right"},{type:"padding",text:padding.bottom,position:"bottom"},{type:"padding",text:padding.left,position:"left"}])}(context,measurements),borderLabels=function drawBorder(context,_ref3){var border=_ref3.border,width=_ref3.width,height=_ref3.height,top=_ref3.top,left=_ref3.left,bottom=_ref3.bottom,right=_ref3.right,borderHeight=height-border.top-border.bottom;return context.fillStyle=visualizer_colors.border,context.fillRect(left,top,width,border.top),context.fillRect(left,bottom-border.bottom,width,border.bottom),context.fillRect(left,top+border.top,border.left,borderHeight),context.fillRect(right-border.right,top+border.top,border.right,borderHeight),filterZeroValues([{type:"border",text:border.top,position:"top"},{type:"border",text:border.right,position:"right"},{type:"border",text:border.bottom,position:"bottom"},{type:"border",text:border.left,position:"left"}])}(context,measurements),contentLabels=function drawContent(context,_ref4){var padding=_ref4.padding,border=_ref4.border,width=_ref4.width,height=_ref4.height,top=_ref4.top,left=_ref4.left,contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors.content,context.fillRect(left+border.left+padding.left,top+border.top+padding.top,contentWidth,contentHeight),[{type:"content",position:"center",text:"".concat(round(contentWidth)," x ").concat(round(contentHeight))}]}(context,measurements),externalLabels=measurements.width<=3*SMALL_NODE_SIZE||measurements.height<=SMALL_NODE_SIZE;!function labelStacks(context,measurements,labels,externalLabels){var stacks=labels.reduce((function(acc,l){return Object.prototype.hasOwnProperty.call(acc,l.position)||(acc[l.position]=[]),acc[l.position].push(l),acc}),{});stacks.top&&drawStack(context,measurements,stacks.top,externalLabels),stacks.right&&drawStack(context,measurements,stacks.right,externalLabels),stacks.bottom&&drawStack(context,measurements,stacks.bottom,externalLabels),stacks.left&&drawStack(context,measurements,stacks.left,externalLabels),stacks.center&&drawStack(context,measurements,stacks.center,externalLabels)}(context,measurements,[].concat(_toConsumableArray(contentLabels),_toConsumableArray(paddingLabels),_toConsumableArray(borderLabels),_toConsumableArray(marginLabels)),externalLabels)}}}function drawSelectedElement(element){!function draw(callback){clear(),callback(state.context)}(drawBoxModel(element))}var nodeAtPointerRef,pointer={x:0,y:0};function findAndDrawElement(x,y){nodeAtPointerRef=function deepElementFromPoint(x,y){var element=window_default().document.elementFromPoint(x,y),shadowElement=function crawlShadows(node){if(node&&node.shadowRoot){var nestedElement=node.shadowRoot.elementFromPoint(x,y);return node.isEqualNode(nestedElement)?node:nestedElement.shadowRoot?crawlShadows(nestedElement):nestedElement}return node}(element);return shadowElement||element}(x,y),drawSelectedElement(nodeAtPointerRef)}var ADDON_ID="storybook/measure-addon";"".concat(ADDON_ID,"/tool"),"".concat(ADDON_ID,"/result"),"".concat(ADDON_ID,"/request"),"".concat(ADDON_ID,"/clear");var decorators=[function withMeasure(StoryFn,context){var measureEnabled=context.globals.measureEnabled;return(0,hooks.d4)((function(){var onMouseMove=function onMouseMove(event){window.requestAnimationFrame((function(){event.stopPropagation(),pointer.x=event.clientX,pointer.y=event.clientY}))};return document.addEventListener("mousemove",onMouseMove),function(){document.removeEventListener("mousemove",onMouseMove)}}),[]),(0,hooks.d4)((function(){var onResize=function onResize(){window.requestAnimationFrame((function(){!function rescale(){setCanvasWidthAndHeight(state.canvas,state.context,{width:0,height:0});var _getDocumentWidthAndH2=getDocumentWidthAndHeight(),width=_getDocumentWidthAndH2.width,height=_getDocumentWidthAndH2.height;setCanvasWidthAndHeight(state.canvas,state.context,{width,height}),state.width=width,state.height=height}()}))};return measureEnabled&&(document.addEventListener("mouseover",(function onMouseOver(event){window.requestAnimationFrame((function(){event.stopPropagation(),findAndDrawElement(event.clientX,event.clientY)}))})),init(),window.addEventListener("resize",onResize),findAndDrawElement(pointer.x,pointer.y)),function(){window.removeEventListener("resize",onResize),function destroy(){state.canvas&&(clear(),state.canvas.parentNode.removeChild(state.canvas),state={})}()}}),[measureEnabled]),StoryFn()}],globals=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"measureEnabled",!1);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function preview_js_generated_config_entry_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_measure_preview_namespaceObject).forEach((function(key){var value=addon_measure_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var addon_outline_preview_namespaceObject={};__webpack_require__.r(addon_outline_preview_namespaceObject),__webpack_require__.d(addon_outline_preview_namespaceObject,{decorators:()=>decorators,globals:()=>globals});var _templateObject,ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),hooks=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),global_window=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window),clearStyles=function clearStyles(selector){(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=function clearStyle(selector){var element=window_default().document.getElementById(selector);element&&element.parentElement&&element.parentElement.removeChild(element)},esm=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"));function outlineCSS(selector){return(0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n "," body {\n outline: 1px solid #2980b9 !important;\n }\n\n "," article {\n outline: 1px solid #3498db !important;\n }\n\n "," nav {\n outline: 1px solid #0088c3 !important;\n }\n\n "," aside {\n outline: 1px solid #33a0ce !important;\n }\n\n "," section {\n outline: 1px solid #66b8da !important;\n }\n\n "," header {\n outline: 1px solid #99cfe7 !important;\n }\n\n "," footer {\n outline: 1px solid #cce7f3 !important;\n }\n\n "," h1 {\n outline: 1px solid #162544 !important;\n }\n\n "," h2 {\n outline: 1px solid #314e6e !important;\n }\n\n "," h3 {\n outline: 1px solid #3e5e85 !important;\n }\n\n "," h4 {\n outline: 1px solid #449baf !important;\n }\n\n "," h5 {\n outline: 1px solid #c7d1cb !important;\n }\n\n "," h6 {\n outline: 1px solid #4371d0 !important;\n }\n\n "," main {\n outline: 1px solid #2f4f90 !important;\n }\n\n "," address {\n outline: 1px solid #1a2c51 !important;\n }\n\n "," div {\n outline: 1px solid #036cdb !important;\n }\n\n "," p {\n outline: 1px solid #ac050b !important;\n }\n\n "," hr {\n outline: 1px solid #ff063f !important;\n }\n\n "," pre {\n outline: 1px solid #850440 !important;\n }\n\n "," blockquote {\n outline: 1px solid #f1b8e7 !important;\n }\n\n "," ol {\n outline: 1px solid #ff050c !important;\n }\n\n "," ul {\n outline: 1px solid #d90416 !important;\n }\n\n "," li {\n outline: 1px solid #d90416 !important;\n }\n\n "," dl {\n outline: 1px solid #fd3427 !important;\n }\n\n "," dt {\n outline: 1px solid #ff0043 !important;\n }\n\n "," dd {\n outline: 1px solid #e80174 !important;\n }\n\n "," figure {\n outline: 1px solid #ff00bb !important;\n }\n\n "," figcaption {\n outline: 1px solid #bf0032 !important;\n }\n\n "," table {\n outline: 1px solid #00cc99 !important;\n }\n\n "," caption {\n outline: 1px solid #37ffc4 !important;\n }\n\n "," thead {\n outline: 1px solid #98daca !important;\n }\n\n "," tbody {\n outline: 1px solid #64a7a0 !important;\n }\n\n "," tfoot {\n outline: 1px solid #22746b !important;\n }\n\n "," tr {\n outline: 1px solid #86c0b2 !important;\n }\n\n "," th {\n outline: 1px solid #a1e7d6 !important;\n }\n\n "," td {\n outline: 1px solid #3f5a54 !important;\n }\n\n "," col {\n outline: 1px solid #6c9a8f !important;\n }\n\n "," colgroup {\n outline: 1px solid #6c9a9d !important;\n }\n\n "," button {\n outline: 1px solid #da8301 !important;\n }\n\n "," datalist {\n outline: 1px solid #c06000 !important;\n }\n\n "," fieldset {\n outline: 1px solid #d95100 !important;\n }\n\n "," form {\n outline: 1px solid #d23600 !important;\n }\n\n "," input {\n outline: 1px solid #fca600 !important;\n }\n\n "," keygen {\n outline: 1px solid #b31e00 !important;\n }\n\n "," label {\n outline: 1px solid #ee8900 !important;\n }\n\n "," legend {\n outline: 1px solid #de6d00 !important;\n }\n\n "," meter {\n outline: 1px solid #e8630c !important;\n }\n\n "," optgroup {\n outline: 1px solid #b33600 !important;\n }\n\n "," option {\n outline: 1px solid #ff8a00 !important;\n }\n\n "," output {\n outline: 1px solid #ff9619 !important;\n }\n\n "," progress {\n outline: 1px solid #e57c00 !important;\n }\n\n "," select {\n outline: 1px solid #e26e0f !important;\n }\n\n "," textarea {\n outline: 1px solid #cc5400 !important;\n }\n\n "," details {\n outline: 1px solid #33848f !important;\n }\n\n "," summary {\n outline: 1px solid #60a1a6 !important;\n }\n\n "," command {\n outline: 1px solid #438da1 !important;\n }\n\n "," menu {\n outline: 1px solid #449da6 !important;\n }\n\n "," del {\n outline: 1px solid #bf0000 !important;\n }\n\n "," ins {\n outline: 1px solid #400000 !important;\n }\n\n "," img {\n outline: 1px solid #22746b !important;\n }\n\n "," iframe {\n outline: 1px solid #64a7a0 !important;\n }\n\n "," embed {\n outline: 1px solid #98daca !important;\n }\n\n "," object {\n outline: 1px solid #00cc99 !important;\n }\n\n "," param {\n outline: 1px solid #37ffc4 !important;\n }\n\n "," video {\n outline: 1px solid #6ee866 !important;\n }\n\n "," audio {\n outline: 1px solid #027353 !important;\n }\n\n "," source {\n outline: 1px solid #012426 !important;\n }\n\n "," canvas {\n outline: 1px solid #a2f570 !important;\n }\n\n "," track {\n outline: 1px solid #59a600 !important;\n }\n\n "," map {\n outline: 1px solid #7be500 !important;\n }\n\n "," area {\n outline: 1px solid #305900 !important;\n }\n\n "," a {\n outline: 1px solid #ff62ab !important;\n }\n\n "," em {\n outline: 1px solid #800b41 !important;\n }\n\n "," strong {\n outline: 1px solid #ff1583 !important;\n }\n\n "," i {\n outline: 1px solid #803156 !important;\n }\n\n "," b {\n outline: 1px solid #cc1169 !important;\n }\n\n "," u {\n outline: 1px solid #ff0430 !important;\n }\n\n "," s {\n outline: 1px solid #f805e3 !important;\n }\n\n "," small {\n outline: 1px solid #d107b2 !important;\n }\n\n "," abbr {\n outline: 1px solid #4a0263 !important;\n }\n\n "," q {\n outline: 1px solid #240018 !important;\n }\n\n "," cite {\n outline: 1px solid #64003c !important;\n }\n\n "," dfn {\n outline: 1px solid #b4005a !important;\n }\n\n "," sub {\n outline: 1px solid #dba0c8 !important;\n }\n\n "," sup {\n outline: 1px solid #cc0256 !important;\n }\n\n "," time {\n outline: 1px solid #d6606d !important;\n }\n\n "," code {\n outline: 1px solid #e04251 !important;\n }\n\n "," kbd {\n outline: 1px solid #5e001f !important;\n }\n\n "," samp {\n outline: 1px solid #9c0033 !important;\n }\n\n "," var {\n outline: 1px solid #d90047 !important;\n }\n\n "," mark {\n outline: 1px solid #ff0053 !important;\n }\n\n "," bdi {\n outline: 1px solid #bf3668 !important;\n }\n\n "," bdo {\n outline: 1px solid #6f1400 !important;\n }\n\n "," ruby {\n outline: 1px solid #ff7b93 !important;\n }\n\n "," rt {\n outline: 1px solid #ff2f54 !important;\n }\n\n "," rp {\n outline: 1px solid #803e49 !important;\n }\n\n "," span {\n outline: 1px solid #cc2643 !important;\n }\n\n "," br {\n outline: 1px solid #db687d !important;\n }\n\n "," wbr {\n outline: 1px solid #db175b !important;\n }"])),selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector)}var decorators=[function withOutline(StoryFn,context){var isActive=!0===context.globals.outline,isInDocs="docs"===context.viewMode,outlineStyles=(0,hooks.Ye)((function(){return outlineCSS(isInDocs?"#anchor--".concat(context.id," .docs-story"):".sb-show-main")}),[context]);return(0,hooks.d4)((function(){var selectorId=isInDocs?"addon-outline-docs-".concat(context.id):"addon-outline";return isActive?function addOutlineStyles(selector,css){var existingStyle=window_default().document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=window_default().document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,window_default().document.head.appendChild(style)}}(selectorId,outlineStyles):clearStyles(selectorId),function(){clearStyles(selectorId)}}),[isActive,outlineStyles,context]),StoryFn()}],globals=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"outline",!1);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function preview_js_generated_config_entry_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addon_outline_preview_namespaceObject).forEach((function(key){var value=addon_outline_preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{D8:()=>useArgs,DM:()=>applyHooks,EM:()=>useChannel,I4:()=>useCallback,Ut:()=>useParameter,Ye:()=>useMemo,_Y:()=>useReducer,c8:()=>HooksContext,d4:()=>useEffect,e6:()=>useStoryContext,eJ:()=>useState,kO:()=>useGlobals,sO:()=>useRef});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js");var global__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_20__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js"),_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js"),_index__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return hooks.addRenderListeners(),result}}},areDepsEqual=function areDepsEqual(deps,nextDeps){return deps.length===nextDeps.length&&deps.every((function(dep,i){return dep===nextDeps[i]}))},invalidHooksError=function invalidHooksError(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function getHooksContextOrNull(){return globalWindow.STORYBOOK_HOOKS_CONTEXT||null}function getHooksContextOrThrow(){var hooks=getHooksContextOrNull();if(null==hooks)throw invalidHooksError();return hooks}function useMemoLike(name,nextCreate,deps){var _useHook=function useHook(name,callback,deps){var hooks=getHooksContextOrThrow();if("MOUNT"===hooks.currentPhase){null==deps||Array.isArray(deps)||_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("".concat(name," received a final argument that is not an array (instead, received ").concat(deps,"). When specified, the final argument must be an array."));var _hook={name,deps};return hooks.currentHooks.push(_hook),callback(_hook),_hook}if("UPDATE"===hooks.currentPhase){var _hook2=hooks.getNextHook();if(null==_hook2)throw new Error("Rendered more hooks than during the previous render.");return _hook2.name!==name&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("Storybook has detected a change in the order of Hooks".concat(hooks.currentDecoratorName?" called by ".concat(hooks.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),null!=deps&&null==_hook2.deps&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("".concat(name," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),null!=deps&&null!=_hook2.deps&&deps.length!==_hook2.deps.length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("The final argument passed to ".concat(name," changed size between renders. The order and size of this array must remain constant.\nPrevious: ").concat(_hook2.deps,"\nIncoming: ").concat(deps)),null!=deps&&null!=_hook2.deps&&areDepsEqual(deps,_hook2.deps)||(callback(_hook2),_hook2.deps=deps),_hook2}throw invalidHooksError()}(name,(function(hook){hook.memoizedState=nextCreate()}),deps);return _useHook.memoizedState}function useMemo(nextCreate,deps){return useMemoLike("useMemo",nextCreate,deps)}function useCallback(callback,deps){return useMemoLike("useCallback",(function(){return callback}),deps)}function useRefLike(name,initialValue){return useMemoLike(name,(function(){return{current:initialValue}}),[])}function useRef(initialValue){return useRefLike("useRef",initialValue)}function useStateLike(name,initialState){var stateRef=useRefLike(name,"function"==typeof initialState?initialState():initialState);return[stateRef.current,function setState(update){stateRef.current="function"==typeof update?update(stateRef.current):update,function triggerUpdate(){var hooks=getHooksContextOrNull();if(null!=hooks&&"NONE"!==hooks.currentPhase)hooks.hasUpdates=!0;else try{_index__WEBPACK_IMPORTED_MODULE_21__.KP.getChannel().emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.FORCE_RE_RENDER)}catch(e){_storybook_client_logger__WEBPACK_IMPORTED_MODULE_23__.kg.warn("State updates of Storybook preview hooks work only in browser")}}()}]}function useState(initialState){return useStateLike("useState",initialState)}function useReducer(reducer,initialArg,init){var _useStateLike2=_slicedToArray(useStateLike("useReducer",null!=init?function(){return init(initialArg)}:initialArg),2),state=_useStateLike2[0],setState=_useStateLike2[1];return[state,function dispatch(action){return setState((function(prevState){return reducer(prevState,action)}))}]}function useEffect(create,deps){var hooks=getHooksContextOrThrow(),effect=useMemoLike("useEffect",(function(){return{create}}),deps);hooks.currentEffects.includes(effect)||hooks.currentEffects.push(effect)}function useChannel(eventMap){var deps=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],channel=_index__WEBPACK_IMPORTED_MODULE_21__.KP.getChannel();return useEffect((function(){return Object.entries(eventMap).forEach((function(_ref3){var _ref4=_slicedToArray(_ref3,2),type=_ref4[0],listener=_ref4[1];return channel.on(type,listener)})),function(){Object.entries(eventMap).forEach((function(_ref5){var _ref6=_slicedToArray(_ref5,2),type=_ref6[0],listener=_ref6[1];return channel.removeListener(type,listener)}))}}),[].concat(_toConsumableArray(Object.keys(eventMap)),_toConsumableArray(deps))),useCallback(channel.emit.bind(channel),[channel])}function useStoryContext(){var currentContext=getHooksContextOrThrow().currentContext;if(null==currentContext)throw invalidHooksError();return currentContext}function useParameter(parameterKey,defaultValue){var _parameters$parameter,parameters=useStoryContext().parameters;if(parameterKey)return null!==(_parameters$parameter=parameters[parameterKey])&&void 0!==_parameters$parameter?_parameters$parameter:defaultValue}function useArgs(){var channel=_index__WEBPACK_IMPORTED_MODULE_21__.KP.getChannel(),_useStoryContext2=useStoryContext(),storyId=_useStoryContext2.id;return[_useStoryContext2.args,useCallback((function(updatedArgs){return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.UPDATE_STORY_ARGS,{storyId,updatedArgs})}),[channel,storyId]),useCallback((function(argNames){return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.RESET_STORY_ARGS,{storyId,argNames})}),[channel,storyId])]}function useGlobals(){var channel=_index__WEBPACK_IMPORTED_MODULE_21__.KP.getChannel();return[useStoryContext().globals,useCallback((function(newGlobals){return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_22__.UPDATE_GLOBALS,{globals:newGlobals})}),[channel])]}},"./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$W:()=>_storybook_channels__WEBPACK_IMPORTED_MODULE_6__.$,KP:()=>addons,P$:()=>AddonStore});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js");var global__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_5__),_storybook_channels__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/@storybook+channels@6.5.16/node_modules/@storybook/channels/dist/esm/index.js"),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js"),_storybook_channel_mock__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/storybook-channel-mock.js"),_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/types.js");function _defineProperties(target,props){for(var i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>makeDecorator});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js");var makeDecorator=function makeDecorator(_ref){var name=_ref.name,parameterName=_ref.parameterName,wrapper=_ref.wrapper,_ref$skipIfNoParamete=_ref.skipIfNoParametersOrOptions,skipIfNoParametersOrOptions=void 0!==_ref$skipIfNoParamete&&_ref$skipIfNoParamete,decorator=function decorator(options){return function(storyFn,context){var parameters=context.parameters&&context.parameters[parameterName];return parameters&¶meters.disable?storyFn(context):!skipIfNoParametersOrOptions||options||parameters?wrapper(storyFn,context,{options,parameters}):storyFn(context)}};return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return"function"==typeof args[0]?decorator().apply(void 0,args):function(){if(arguments.length>1)return args.length>1?decorator(args).apply(void 0,arguments):decorator.apply(void 0,args).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(name,"() is not allowed,\n instead use addDecorator(").concat(name,") and pass options with the '").concat(parameterName,"' parameter"))}}}},"./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/public_api.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AddonStore:()=>_index__WEBPACK_IMPORTED_MODULE_1__.P$,Channel:()=>_index__WEBPACK_IMPORTED_MODULE_1__.$W,HooksContext:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.c8,addons:()=>_index__WEBPACK_IMPORTED_MODULE_1__.KP,applyHooks:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.DM,default:()=>__WEBPACK_DEFAULT_EXPORT__,isSupportedType:()=>_types__WEBPACK_IMPORTED_MODULE_2__.Q,makeDecorator:()=>_make_decorator__WEBPACK_IMPORTED_MODULE_0__.h,mockChannel:()=>_storybook_channel_mock__WEBPACK_IMPORTED_MODULE_3__.H,types:()=>_types__WEBPACK_IMPORTED_MODULE_2__.V,useArgs:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.D8,useCallback:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.I4,useChannel:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.EM,useEffect:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.d4,useGlobals:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.kO,useMemo:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.Ye,useParameter:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.Ut,useReducer:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__._Y,useRef:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.sO,useState:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.eJ,useStoryContext:()=>_hooks__WEBPACK_IMPORTED_MODULE_4__.e6});var _index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),_make_decorator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/make-decorator.js"),_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/types.js"),_storybook_channel_mock__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/storybook-channel-mock.js"),_hooks__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js");const __WEBPACK_DEFAULT_EXPORT__=_index__WEBPACK_IMPORTED_MODULE_1__.KP},"./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/storybook-channel-mock.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>mockChannel});var _storybook_channels__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/@storybook+channels@6.5.16/node_modules/@storybook/channels/dist/esm/index.js");function mockChannel(){return new _storybook_channels__WEBPACK_IMPORTED_MODULE_0__.Z({transport:{setHandler:function setHandler(){},send:function send(){}}})}},"./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/types.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Q:()=>isSupportedType,V:()=>types});var types;__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js");function isSupportedType(type){return!!Object.values(types).find((function(typeVal){return typeVal===type}))}!function(types){types.TAB="tab",types.PANEL="panel",types.TOOL="tool",types.TOOLEXTRA="toolextra",types.PREVIEW="preview",types.NOTES_ELEMENT="notes-element"}(types||(types={}))},"./node_modules/.pnpm/@storybook+channels@6.5.16/node_modules/@storybook/channels/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>Channel,Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.immediate.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js");var _templateObject,util_deprecate__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_8__),ts_dedent__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js");function _defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},transport=_ref.transport,_ref$async=_ref.async,async=void 0!==_ref$async&&_ref$async;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Channel),this.isAsync=void 0,this.sender=function generateRandomId(){return Math.random().toString(16).slice(2)}(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=util_deprecate__WEBPACK_IMPORTED_MODULE_8___default()((function(eventName,listener){_this.addListener(eventName,listener)}),(0,ts_dedent__WEBPACK_IMPORTED_MODULE_9__.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n channel.addPeerListener is deprecated\n "])))),this.isAsync=async,transport&&(this.transport=transport,this.transport.setHandler((function(event){return _this.handleEvent(event)})))}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(Channel,[{key:"hasTransport",get:function get(){return!!this.transport}},{key:"addListener",value:function addListener(eventName,listener){this.events[eventName]=this.events[eventName]||[],this.events[eventName].push(listener)}},{key:"emit",value:function emit(eventName){for(var _this2=this,_len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var event={type:eventName,args,from:this.sender},options={};args.length>=1&&args[0]&&args[0].options&&(options=args[0].options);var handler=function handler(){_this2.transport&&_this2.transport.send(event,options),_this2.handleEvent(event)};this.isAsync?setImmediate(handler):handler()}},{key:"last",value:function last(eventName){return this.data[eventName]}},{key:"eventNames",value:function eventNames(){return Object.keys(this.events)}},{key:"listenerCount",value:function listenerCount(eventName){var listeners=this.listeners(eventName);return listeners?listeners.length:0}},{key:"listeners",value:function listeners(eventName){var listeners=this.events[eventName];return listeners||void 0}},{key:"once",value:function once(eventName,listener){var onceListener=this.onceListener(eventName,listener);this.addListener(eventName,onceListener)}},{key:"removeAllListeners",value:function removeAllListeners(eventName){eventName?this.events[eventName]&&delete this.events[eventName]:this.events={}}},{key:"removeListener",value:function removeListener(eventName,listener){var listeners=this.listeners(eventName);listeners&&(this.events[eventName]=listeners.filter((function(l){return l!==listener})))}},{key:"on",value:function on(eventName,listener){this.addListener(eventName,listener)}},{key:"off",value:function off(eventName,listener){this.removeListener(eventName,listener)}},{key:"handleEvent",value:function handleEvent(event){var listeners=this.listeners(event.type);listeners&&listeners.length&&listeners.forEach((function(fn){fn.apply(event,event.args)})),this.data[event.type]=event.args}},{key:"onceListener",value:function onceListener(eventName,listener){var _this3=this,onceListener=function onceListener(){return _this3.removeListener(eventName,onceListener),listener.apply(void 0,arguments)};return onceListener}}]),Channel}();const __WEBPACK_DEFAULT_EXPORT__=Channel},"./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ti:()=>ClientApi,v9:()=>addArgTypes,My:()=>addArgTypesEnhancer,uc:()=>addArgs,_C:()=>addArgsEnhancer,$9:()=>addDecorator,HZ:()=>addLoader,h1:()=>addParameters,$P:()=>setGlobalRender});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js");var browser=__webpack_require__("./node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),esm=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),global_window=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js"),dist=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/index.js"),esm_parameters=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"),normalizeInputTypes=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js"),synchronous_promise=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/synchronous-promise@2.0.16/node_modules/synchronous-promise/index.js")),stable=__webpack_require__("./node_modules/.pnpm/stable@0.1.8/node_modules/stable/stable.js"),stable_default=__webpack_require__.n(stable),STORY_KIND_PATH_SEPARATOR=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim.js"),/\s*\/\s*/);var autoTitle_templateObject,sortStoriesCommon=function sortStoriesCommon(stories,storySortParameter,fileNameOrder){var sortFn;storySortParameter?(sortFn="function"==typeof storySortParameter?storySortParameter:function storySort(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(a,b){if(a.title===b.title&&!options.includeNames)return 0;var method=options.method||"configure",order=options.order||[],storyTitleA=a.title.trim().split(STORY_KIND_PATH_SEPARATOR),storyTitleB=b.title.trim().split(STORY_KIND_PATH_SEPARATOR);options.includeNames&&(storyTitleA.push(a.name),storyTitleB.push(b.name));for(var depth=0;storyTitleA[depth]||storyTitleB[depth];){if(!storyTitleA[depth])return-1;if(!storyTitleB[depth])return 1;var nameA=storyTitleA[depth],nameB=storyTitleB[depth];if(nameA!==nameB){var indexA=order.indexOf(nameA),indexB=order.indexOf(nameB),indexWildcard=order.indexOf("*");return-1!==indexA||-1!==indexB?(-1===indexA&&(indexA=-1!==indexWildcard?indexWildcard:order.length),-1===indexB&&(indexB=-1!==indexWildcard?indexWildcard:order.length),indexA-indexB):"configure"===method?0:nameA.localeCompare(nameB,options.locales?options.locales:void 0,{numeric:!0,sensitivity:"accent"})}var index=order.indexOf(nameA);order=-1!==index&&Array.isArray(order[index+1])?order[index+1]:[],depth+=1}return 0}}(storySortParameter),stable_default().inplace(stories,sortFn)):stable_default().inplace(stories,(function(s1,s2){return fileNameOrder.indexOf(s1.importPath)-fileNameOrder.indexOf(s2.importPath)}));return stories},toIndexEntry=function toIndexEntry(story){return{id:story.id,title:story.title,name:story.name,importPath:story.parameters.fileName}},slash=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js")),slash_default=__webpack_require__.n(slash);function _toArray(arr){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?last.substr(0,dotIndex):last;parts[parts.length-1]=stripped;var _parts2=_toArray(parts),first=_parts2[0],rest=_parts2.slice(1);return""===first&&(parts=rest),parts}(path))).join("/")}return titlePrefix?slash_default()(pathJoin([titlePrefix,userTitle])):userTitle}},_excluded=["default","__namedExportsOrder"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _slicedToArray(arr,i){return function StoryStoreFacade_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStoreFacade_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStoreFacade_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStoreFacade_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStoreFacade_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStoreFacade_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ","\n \n Are you using a V7-style sort function in V6 compatibility mode?\n \n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort\n "])),storySortParameter,err.message));throw err}return{v:3,stories:sortedV7.reduce((function(acc,s){return acc[s.id]=_this2.stories[s.id],acc}),{})}}},{key:"clearFilenameExports",value:function clearFilenameExports(fileName){var _this3=this;this.csfExports[fileName]&&(Object.entries(this.stories).forEach((function(_ref3){var _ref4=_slicedToArray(_ref3,2),id=_ref4[0];_ref4[1].importPath===fileName&&delete _this3.stories[id]})),this.csfExports[fileName]={})}},{key:"addStoriesFromExports",value:function addStoriesFromExports(fileName,fileExports){var _this4=this;if(this.csfExports[fileName]!==fileExports){this.clearFilenameExports(fileName);var defaultExport=fileExports.default,__namedExportsOrder=fileExports.__namedExportsOrder,namedExports=_objectWithoutProperties(fileExports,_excluded),_ref5=defaultExport||{},componentId=_ref5.id,title=_ref5.title,specifiers=(window_default().STORIES||[]).map((function(specifier){return Object.assign({},specifier,{importPathMatcher:new RegExp(specifier.importPathMatcher)})}));if(title=function userOrAutoTitle(fileName,storiesEntries,userTitle){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function ClientApi_defineProperties(target,props){for(var i=0;i1&&void 0!==arguments[1])||arguments[1]),singleton.addDecorator(decorator)},addParameters=function addParameters(parameters){checkMethod("addParameters",!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),singleton.addParameters(parameters)},addLoader=function addLoader(loader){checkMethod("addLoader",!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),singleton.addLoader(loader)},addArgs=function addArgs(args){checkMethod("addArgs",!1),singleton.addArgs(args)},addArgTypes=function addArgTypes(argTypes){checkMethod("addArgTypes",!1),singleton.addArgTypes(argTypes)},addArgsEnhancer=function addArgsEnhancer(enhancer){checkMethod("addArgsEnhancer",!1),singleton.addArgsEnhancer(enhancer)},addArgTypesEnhancer=function addArgTypesEnhancer(enhancer){checkMethod("addArgTypesEnhancer",!1),singleton.addArgTypesEnhancer(enhancer)},setGlobalRender=function setGlobalRender(render){checkMethod("setGlobalRender",!1),singleton.facade.projectAnnotations.render=render},invalidStoryTypes=new Set(["string","number","boolean","symbol"]),ClientApi=function(){function ClientApi(){var _this=this,storyStore=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).storyStore;!function ClientApi_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,ClientApi),this.facade=void 0,this.storyStore=void 0,this.addons=void 0,this.onImportFnChanged=void 0,this.lastFileName=0,this.setAddon=browser_default()((function(addon){_this.addons=Object.assign({},_this.addons,addon)}),(0,esm.C)(_templateObject3||(_templateObject3=ClientApi_taggedTemplateLiteral(["\n `setAddon` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "],["\n \\`setAddon\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "])))),this.addDecorator=function(decorator){_this.facade.projectAnnotations.decorators.push(decorator)},this.clearDecorators=browser_default()((function(){_this.facade.projectAnnotations.decorators=[]}),(0,esm.C)(_templateObject4||(_templateObject4=ClientApi_taggedTemplateLiteral(["\n `clearDecorators` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "],["\n \\`clearDecorators\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "])))),this.addParameters=function(_ref2){var globals=_ref2.globals,globalTypes=_ref2.globalTypes,parameters=ClientApi_objectWithoutProperties(_ref2,ClientApi_excluded);_this.facade.projectAnnotations.parameters=(0,esm_parameters.f)(_this.facade.projectAnnotations.parameters,parameters),globals&&(_this.facade.projectAnnotations.globals=Object.assign({},_this.facade.projectAnnotations.globals,globals)),globalTypes&&(_this.facade.projectAnnotations.globalTypes=Object.assign({},_this.facade.projectAnnotations.globalTypes,(0,normalizeInputTypes.x)(globalTypes)))},this.addLoader=function(loader){_this.facade.projectAnnotations.loaders.push(loader)},this.addArgs=function(args){_this.facade.projectAnnotations.args=Object.assign({},_this.facade.projectAnnotations.args,args)},this.addArgTypes=function(argTypes){_this.facade.projectAnnotations.argTypes=Object.assign({},_this.facade.projectAnnotations.argTypes,(0,normalizeInputTypes.x)(argTypes))},this.addArgsEnhancer=function(enhancer){_this.facade.projectAnnotations.argsEnhancers.push(enhancer)},this.addArgTypesEnhancer=function(enhancer){_this.facade.projectAnnotations.argTypesEnhancers.push(enhancer)},this.storiesOf=function(kind,m){if(!kind&&"string"!=typeof kind)throw new Error("Invalid or missing kind provided for stories, should be a string");if(m||dist_esm.kg.warn("Missing 'module' parameter for story with a kind of '".concat(kind,"'. It will break your HMR")),m){var proto=Object.getPrototypeOf(m);proto.exports&&proto.exports.default&&dist_esm.kg.error("Illegal mix of CSF default export and storiesOf calls in a single file: ".concat(proto.i))}for(var baseFilename=m&&m.id?"".concat(m.id):(_this.lastFileName++).toString(),fileName=baseFilename,i=1;_this.facade.csfExports[fileName]&&Object.keys(_this.facade.csfExports[fileName]).length>0;)i+=1,fileName="".concat(baseFilename,"-").concat(i);m&&m.hot&&m.hot.accept&&(m.hot.accept(),m.hot.dispose((function(){_this.facade.clearFilenameExports(fileName),setTimeout((function(){var _this$onImportFnChang;null===(_this$onImportFnChang=_this.onImportFnChanged)||void 0===_this$onImportFnChang||_this$onImportFnChang.call(_this,{importFn:_this.importFn.bind(_this)})}),0)})));var hasAdded=!1,api={kind:kind.toString(),add:function add(){return api},addDecorator:function addDecorator(){return api},addLoader:function addLoader(){return api},addParameters:function addParameters(){return api}};Object.keys(_this.addons).forEach((function(name){var addon=_this.addons[name];api[name]=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return addon.apply(api,args),api}}));var meta={id:(0,dist.sanitize)(kind),title:kind,decorators:[],loaders:[],parameters:{}};_this.facade.csfExports[fileName]={default:meta};var counter=0;return api.add=function(storyName,storyFn){var parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(hasAdded=!0,"string"!=typeof storyName)throw new Error('Invalid or missing storyName provided for a "'.concat(kind,'" story.'));if(!storyFn||Array.isArray(storyFn)||invalidStoryTypes.has(_typeof(storyFn)))throw new Error('Cannot load story "'.concat(storyName,'" in "').concat(kind,'" due to invalid format. Storybook expected a function/object but received ').concat(_typeof(storyFn)," instead."));var decorators=parameters.decorators,loaders=parameters.loaders,component=parameters.component,args=parameters.args,argTypes=parameters.argTypes,storyParameters=ClientApi_objectWithoutProperties(parameters,_excluded2),storyId=parameters.__id||(0,dist.toId)(kind,storyName),csfExports=_this.facade.csfExports[fileName];return csfExports["story".concat(counter)]={name:storyName,parameters:Object.assign({fileName,__id:storyId},storyParameters),decorators,loaders,args,argTypes,component,render:storyFn},counter+=1,_this.facade.stories[storyId]={id:storyId,title:csfExports.default.title,name:storyName,importPath:fileName},api},api.addDecorator=function(decorator){if(hasAdded)throw new Error("You cannot add a decorator after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.decorators.push(decorator),api},api.addLoader=function(loader){if(hasAdded)throw new Error("You cannot add a loader after the first story for a kind.");return meta.loaders.push(loader),api},api.addParameters=function(_ref3){var component=_ref3.component,args=_ref3.args,argTypes=_ref3.argTypes,parameters=ClientApi_objectWithoutProperties(_ref3,_excluded3);if(hasAdded)throw new Error("You cannot add parameters after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.parameters=(0,esm_parameters.f)(meta.parameters,parameters),component&&(meta.component=component),args&&(meta.args=Object.assign({},meta.args,args)),argTypes&&(meta.argTypes=Object.assign({},meta.argTypes,argTypes)),api},api},this.getStorybook=function(){var stories=_this.storyStore.storyIndex.stories,kinds={};return Object.entries(stories).forEach((function(_ref4){var _ref5=ClientApi_slicedToArray(_ref4,2),storyId=_ref5[0],_ref5$=_ref5[1],title=_ref5$.title,name=_ref5$.name,importPath=_ref5$.importPath;kinds[title]||(kinds[title]={kind:title,fileName:importPath,stories:[]});var storyFn=_this.storyStore.fromId(storyId).storyFn;kinds[title].stories.push({name,render:storyFn})})),Object.values(kinds)},this.raw=function(){return _this.storyStore.raw()},this.facade=new StoryStoreFacade,this.addons={},this.storyStore=storyStore,singleton=this}return function ClientApi_createClass(Constructor,protoProps,staticProps){return protoProps&&ClientApi_defineProperties(Constructor.prototype,protoProps),staticProps&&ClientApi_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(ClientApi,[{key:"importFn",value:function importFn(path){return this.facade.importFn(path)}},{key:"getStoryIndex",value:function getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}},{key:"_storyStore",get:function get(){return this.storyStore}}]),ClientApi}()},"./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{IC:()=>pretty,IH:()=>once,kg:()=>logger});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js");var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__),LOGLEVEL=global__WEBPACK_IMPORTED_MODULE_8___default().LOGLEVEL,console=global__WEBPACK_IMPORTED_MODULE_8___default().console,levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelNumber=levels[LOGLEVEL]||levels.info,logger={trace:function trace(message){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];return currentLogLevelNumber<=levels.trace&&console.trace.apply(console,[message].concat(rest))},debug:function debug(message){for(var _len2=arguments.length,rest=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)rest[_key2-1]=arguments[_key2];return currentLogLevelNumber<=levels.debug&&console.debug.apply(console,[message].concat(rest))},info:function info(message){for(var _len3=arguments.length,rest=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)rest[_key3-1]=arguments[_key3];return currentLogLevelNumber<=levels.info&&console.info.apply(console,[message].concat(rest))},warn:function warn(message){for(var _len4=arguments.length,rest=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)rest[_key4-1]=arguments[_key4];return currentLogLevelNumber<=levels.warn&&console.warn.apply(console,[message].concat(rest))},error:function error(message){for(var _len5=arguments.length,rest=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)rest[_key5-1]=arguments[_key5];return currentLogLevelNumber<=levels.error&&console.error.apply(console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber1?_len7-1:0),_key7=1;_key7<_len7;_key7++)rest[_key7-1]=arguments[_key7];return logger[type].apply(logger,[message].concat(rest))}}};once.clear=function(){return logged.clear()},once.trace=once("trace"),once.debug=once("debug"),once.info=once("info"),once.warn=once("warn"),once.error=once("error"),once.log=once("log");var pretty=function pretty(type){return function(){for(var argArray=[],_len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++)args[_key8]=arguments[_key8];if(args.length){var reResultArray,startTagRe=//gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(/<\/span>/gi,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ActionBar,B:()=>components,C:()=>resetComponents,F:()=>Form,G:()=>Code,I:()=>Icons,L:()=>H2,M:()=>H3,S:()=>ScrollArea,T:()=>TooltipNote,W:()=>WithTooltip,_:()=>_objectWithoutPropertiesLoose,a:()=>_extends,aA:()=>PreviewSkeleton,aC:()=>ArgsTableError,aE:()=>ArgsTable,aF:()=>TabbedArgsTable,aH:()=>SourceError,aI:()=>Source,aL:()=>Story,aM:()=>StorySkeleton,aO:()=>Typeset,aP:()=>ColorItem,aQ:()=>ColorPalette,aR:()=>IconItem,aS:()=>IconGallery,at:()=>Description$1,au:()=>Title,av:()=>Subtitle,aw:()=>DocsContent,ax:()=>DocsWrapper,az:()=>Preview,b:()=>__awaiter,c:()=>commonjsGlobal,d:()=>__rest,e:()=>dedent,f:()=>basePlacements,g:()=>getDefaultExportFromCjs,h:()=>bottom,i:()=>end,j:()=>clippingParents,k:()=>reference,l:()=>left,m:()=>variationPlacements,n:()=>placements,o:()=>auto,p:()=>popper,q:()=>modifierPhases,r:()=>right,s:()=>start,t:()=>top,u:()=>_root,v:()=>viewport,w:()=>window_1,x:()=>isObject_1,y:()=>isSymbol_1,z:()=>getControlId});var core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.construct.js"),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js"),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.to-fixed.js"),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.bold.js"),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.constructor.js"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.global-this.js"),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.small.js"),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.constructor.js"),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim.js"),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.ends-with.js"),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim-end.js"),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.sort.js"),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.splice.js"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array-buffer.constructor.js"),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.is-nan.js"),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44___default=__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.repeat.js"),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45___default=__webpack_require__.n(core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-names.js"),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46___default=__webpack_require__.n(core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.starts-with.js"),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.url.js"),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48___default=__webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.url-search-params.js"),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49___default=__webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js"),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50___default=__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__),react__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./node_modules/.pnpm/@storybook+theming@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./node_modules/.pnpm/memoizerific@1.11.3/node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_52___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_52__),_storybook_csf__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/index.js"),_storybook_csf__WEBPACK_IMPORTED_MODULE_53___default=__webpack_require__.n(_storybook_csf__WEBPACK_IMPORTED_MODULE_53__),qs__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_54___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_54__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js"),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if("number"==typeof value&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if("object"===_typeof(value)&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)},isRgba=function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)},isHsla=function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return hsla(color);if(isHsl(color))return hsl(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=function headerCommon(_ref2){return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:_ref2.theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function codeCommon(_ref3){var theme=_ref3.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?"1px solid ".concat(theme.color.mediumlight):"1px solid ".concat(theme.color.darker),color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border}},withReset=function withReset(_ref4){var theme=_ref4.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"},Link$1=function Link$1(_a){var input=_a.href,children=_a.children,props=__rest(_a,["href","children"]),isStorybookPath=/^\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?"?path=".concat(input):input,target=isAnchorUrl?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_51__.createElement("a",Object.assign({href,target},props),children)},A$2=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Link$1)(withReset,(function(_ref5){return{fontSize:"inherit",lineHeight:"24px",color:_ref5.theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}})),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.blockquote(withReset,withMargin,(function(_ref6){var theme=_ref6.theme;return{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}})),Wrapper$8=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset,(function(_ref7){var theme=_ref7.theme;return{backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:"1px dashed ".concat(theme.appBorderColor),display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}})),EmptyBlock=function EmptyBlock(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$8,Object.assign({},props,{className:"docblock-emptyblock"}))},LazySyntaxHighlighter=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(533).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js"))})),LazySyntaxHighlighterWithFormatter=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee(){var _yield$Promise$all,_yield$Promise$all2,SyntaxHighlighter,formatter;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all([__webpack_require__.e(533).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js")),__webpack_require__.e(892).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/formatter-0d5cb0eb.js"))]);case 2:return _yield$Promise$all=_context.sent,_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2),SyntaxHighlighter=_yield$Promise$all2[0].SyntaxHighlighter,formatter=_yield$Promise$all2[1].formatter,_context.abrupt("return",{default:function _default(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SyntaxHighlighter,Object.assign({},props,{formatter}))}});case 7:case"end":return _context.stop()}}),_callee)})))})),SyntaxHighlighter=function SyntaxHighlighter(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},!1!==props.format?react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazySyntaxHighlighterWithFormatter,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazySyntaxHighlighter,Object.assign({},props)))},StyledSyntaxHighlighter=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(SyntaxHighlighter)((function(_ref8){var theme=_ref8.theme;return{fontSize:"".concat(theme.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}})),SourceError;!function(SourceError){SourceError.NO_STORY="There’s no story here.",SourceError.SOURCE_UNAVAILABLE="Oh no! The source is not available."}(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref9){var theme=_ref9.theme;return{background:theme.background.content,borderRadius:theme.appBorderRadius,border:"1px solid ".concat(theme.appBorderColor),boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}})),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref10){var theme=_ref10.theme;return _defineProperty2({animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),background:theme.appBorderColor,height:17,marginTop:1,width:"60%"},"&:first-child",{margin:0})})),SourceSkeleton=function SourceSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))},Source=function Source(props){var isLoading=props.isLoading,error=props.error;if(isLoading)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,error);var _a=props,language=_a.language,code=_a.code,dark=_a.dark,format=_a.format,rest=__rest(_a,["language","code","dark","format"]),syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,format,language,className:"docblock-source"},rest),code);if(void 0===dark)return syntaxHighlighter;var overrideTheme=dark?_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.np.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.np.light;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.f6,{theme:(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.OQ)(overrideTheme)},syntaxHighlighter)};Source.defaultProps={format:!1};var isReactChildString=function isReactChildString(child){return"string"==typeof child},isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.code((function(_ref12){return{fontFamily:_ref12.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}}),codeCommon),Code=function Code(_a){var _b,className=_a.className,children=_a.children,props=__rest(_a,["className","children"]),language=(className||"").match(/lang-(\S+)/),childrenArray=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children);return!childrenArray.filter(isReactChildString).some((function(child){return child.match(isInlineCodeRegex)}))?react__WEBPACK_IMPORTED_MODULE_51__.createElement(DefaultCodeBlock,Object.assign({},props,{className}),childrenArray):react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,language:null!==(_b=null==language?void 0:language[1])&&void 0!==_b?_b:"plaintext",format:!1},props),children)},Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.dl(withReset,Object.assign(Object.assign({},withMargin),{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h1(withReset,headerCommon,(function(_ref13){var theme=_ref13.theme;return{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black}})),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h2(withReset,headerCommon,(function(_ref14){var theme=_ref14.theme;return{fontSize:"".concat(theme.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(theme.appBorderColor)}})),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h3(withReset,headerCommon,(function(_ref15){var theme=_ref15.theme;return{fontSize:"".concat(theme.typography.size.m1,"px")}})),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h4(withReset,headerCommon,(function(_ref16){var theme=_ref16.theme;return{fontSize:"".concat(theme.typography.size.s3,"px")}})),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h5(withReset,headerCommon,(function(_ref17){var theme=_ref17.theme;return{fontSize:"".concat(theme.typography.size.s2,"px")}})),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h6(withReset,headerCommon,(function(_ref18){var theme=_ref18.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark}})),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.hr((function(_ref19){var theme=_ref19.theme;return{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0}})),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.img({maxWidth:"100%"}),LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.li(withReset,(function(_ref20){var theme=_ref20.theme;return{fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme})}})),listCommon$1={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.ol(withReset,withMargin,Object.assign(Object.assign({},listCommon$1),{listStyle:"decimal"})),P$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.p(withReset,withMargin,(function(_ref21){var theme=_ref21.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":codeCommon({theme})}})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.pre(withReset,withMargin,(function(_ref22){return{fontFamily:_ref22.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}})),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span(withReset,(function(_ref23){var theme=_ref23.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}})),Table$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.table(withReset,withMargin,(function(_ref24){var theme=_ref24.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:"1px solid ".concat(theme.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(theme.appBorderColor),color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}})),TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.title(codeCommon),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.ul(withReset,withMargin,Object.assign(Object.assign({},listCommon),{listStyle:"disc"})),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset),components$1={h1:function h1(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H1,Object.assign({},nameSpaceClassNames(props,"h1")))},h2:function h2(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H2,Object.assign({},nameSpaceClassNames(props,"h2")))},h3:function h3(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H3,Object.assign({},nameSpaceClassNames(props,"h3")))},h4:function h4(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H4,Object.assign({},nameSpaceClassNames(props,"h4")))},h5:function h5(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H5,Object.assign({},nameSpaceClassNames(props,"h5")))},h6:function h6(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(H6,Object.assign({},nameSpaceClassNames(props,"h6")))},pre:function pre(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Pre,Object.assign({},nameSpaceClassNames(props,"pre")))},a:function a(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(A$2,Object.assign({},nameSpaceClassNames(props,"a")))},hr:function hr(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(HR,Object.assign({},nameSpaceClassNames(props,"hr")))},dl:function dl(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(DL,Object.assign({},nameSpaceClassNames(props,"dl")))},blockquote:function blockquote(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Blockquote,Object.assign({},nameSpaceClassNames(props,"blockquote")))},table:function table(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Table$1,Object.assign({},nameSpaceClassNames(props,"table")))},img:function img(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Img,Object.assign({},nameSpaceClassNames(props,"img")))},div:function div(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Div,Object.assign({},nameSpaceClassNames(props,"div")))},span:function span(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Span,Object.assign({},nameSpaceClassNames(props,"span")))},li:function li(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(LI,Object.assign({},nameSpaceClassNames(props,"li")))},ul:function ul(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(UL,Object.assign({},nameSpaceClassNames(props,"ul")))},ol:function ol(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(OL,Object.assign({},nameSpaceClassNames(props,"ol")))},p:function p(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(P$1,Object.assign({},nameSpaceClassNames(props,"p")))},code:function code(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Code,Object.assign({},nameSpaceClassNames(props,"code")))},tt:function tt(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TT,Object.assign({},nameSpaceClassNames(props,"tt")))},resetwrapper:function resetwrapper(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,Object.assign({},nameSpaceClassNames(props,"resetwrapper")))}},BadgeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref25){return{display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:_ref25.theme.typography.weight.bold}}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},(function(_ref26){var theme=_ref26.theme;switch(_ref26.status){case"critical":return{color:theme.color.critical,background:theme.background.critical};case"negative":return{color:theme.color.negative,background:theme.background.negative};case"warning":return{color:theme.color.warning,background:theme.background.warning};case"neutral":return{color:theme.color.dark,background:theme.color.mediumlight};case"positive":return{color:theme.color.positive,background:theme.background.positive};default:return{}}})),Badge=function Badge(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(BadgeWrapper,Object.assign({},props))},icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"},Svg=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},(function(_ref27){return _ref27.inline?{display:"inline-block"}:{display:"block"}}));Svg.displayName="Svg";var Path=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.path({fill:"currentColor"}),Icons=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_a){var icon=_a.icon,symbol=_a.symbol,props=__rest(_a,["icon","symbol"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Svg,Object.assign({viewBox:"0 0 1024 1024"},props),symbol?react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{xlinkHref:"#icon--".concat(symbol)}):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Path,{d:icons[icon]}))})),Symbols=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref28){var _ref28$icons=_ref28.icons,keys=void 0===_ref28$icons?Object.keys(icons):_ref28$icons;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},keys.map((function(key){return react__WEBPACK_IMPORTED_MODULE_51__.createElement("symbol",{id:"icon--".concat(key),key},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Path,{d:icons[key]}))})))})),LEFT_BUTTON=0,isPlainLeftClick=function isPlainLeftClick(e){return!(e.button!==LEFT_BUTTON||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},cancelled=function cancelled(e,cb){isPlainLeftClick(e)&&(e.preventDefault(),cb(e))},LinkInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref29){return _ref29.withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}}),(function(_ref30){return _ref30.containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}})),A$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.a((function(_ref31){var theme=_ref31.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,theme.color.secondary),"svg path":{fill:curriedDarken$1(.07,theme.color.secondary)}},"&:active":{color:curriedDarken$1(.1,theme.color.secondary),"svg path":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}}),(function(_ref32){var colors,theme=_ref32.theme,secondary=_ref32.secondary,tertiary=_ref32.tertiary;return secondary&&(colors=[theme.color.mediumdark,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.color.mediumdark]),colors?{color:colors[0],"svg path":{fill:colors[0]},"&:hover":{color:colors[1],"svg path":{fill:colors[1]}},"&:active":{color:colors[2],"svg path":{fill:colors[2]}}}:{}}),(function(_ref33){return _ref33.nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}}),(function(_ref34){var theme=_ref34.theme;return _ref34.inverse?{color:theme.color.lightest,"svg path":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path":{fill:theme.color.light}}}:{}}),(function(_ref35){return _ref35.isButton?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}})),Link=function Link(_a){var cancel=_a.cancel,children=_a.children,onClick=_a.onClick,withArrow=_a.withArrow,containsIcon=_a.containsIcon,className=_a.className,rest=__rest(_a,["cancel","children","onClick","withArrow","containsIcon","className"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(A$1,Object.assign({},rest,{onClick:onClick&&cancel?function(e){return cancelled(e,onClick)}:onClick,className}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(LinkInner,{withArrow,containsIcon},children,withArrow&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"arrowright"})))};Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref36){var theme=_ref36.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),lineHeight:"1.6",h1:{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black},h2:{fontSize:"".concat(theme.typography.size.m2,"px"),borderBottom:"1px solid ".concat(theme.appBorderColor)},h3:{fontSize:"".concat(theme.typography.size.m1,"px")},h4:{fontSize:"".concat(theme.typography.size.s3,"px")},h5:{fontSize:"".concat(theme.typography.size.s2,"px")},h6:{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:theme.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:theme.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:"1px solid ".concat(theme.color.mediumlight),backgroundColor:theme.color.lighter,borderRadius:3,color:"dark"===theme.base&&theme.color.darkest}}})),Container$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref37){return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:_ref37.theme.background.content,zIndex:1}})),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref38){var theme=_ref38.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:"1px solid ".concat(theme.appBorderColor),borderLeft:"1px solid ".concat(theme.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(theme.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(theme.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}}),(function(_ref39){return _ref39.disabled&&{cursor:"not-allowed",opacity:.5}}));ActionButton.displayName="ActionButton";var ActionBar=function ActionBar(_a){var actionItems=_a.actionItems,props=__rest(_a,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Container$1,Object.assign({},props),actionItems.map((function(_ref40,index){var title=_ref40.title,className=_ref40.className,onClick=_ref40.onClick,disabled=_ref40.disabled;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionButton,{key:index,className,onClick,disabled},title)})))},toNumber=function toNumber(input){return"number"==typeof input?input:Number(input)},Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref41){var theme=_ref41.theme,col=_ref41.col,_ref41$row=_ref41.row,row=void 0===_ref41$row?1:_ref41$row;return col?_defineProperty2({display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:col*theme.layoutMargin,verticalAlign:"inherit"}},"& > *:first-child",{marginLeft:0}):_defineProperty2({"& > *":{marginTop:row*theme.layoutMargin}},"& > *:first-child",{marginTop:0})}),(function(_ref44){var theme=_ref44.theme,outer=_ref44.outer,col=_ref44.col,row=_ref44.row;switch(!0){case!(!outer||!col):return{marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!(!outer||!row):return{marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return{}}})),Spaced=function Spaced(_a){var col=_a.col,row=_a.row,outer=_a.outer,children=_a.children,rest=__rest(_a,["col","row","outer","children"]),outerAmount=toNumber("number"!=typeof outer&&outer?col||row:outer);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Container,Object.assign({col,row,outer:outerAmount},rest),children)},Title$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref45){return{fontWeight:_ref45.theme.typography.weight.bold}})),Desc$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(),Message$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref46){var theme=_ref46.theme;return{padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1}})),Placeholder=function Placeholder(_a){var children=_a.children,props=__rest(_a,["children"]),_Children$toArray2=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),title=_Children$toArray2[0],desc=_Children$toArray2[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Message$1,Object.assign({},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$3,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Desc$1,null,desc))},GlobalScrollAreaStyles=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(87).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/GlobalScrollAreaStyles-8793ce4a.js"))})),OverlayScrollbars=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(800).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/OverlayScrollbars-1355f44c.js"))})),Scroller=function Scroller(_a){var props=__rest(_a,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",Object.assign({},props))},react__WEBPACK_IMPORTED_MODULE_51__.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(OverlayScrollbars,Object.assign({options:{scrollbars:{autoHide:"leave"}}},props)))},ScrollArea=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Scroller)((function(_ref47){return _ref47.vertical?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}}),(function(_ref48){return _ref48.horizontal?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}}));ScrollArea.defaultProps={horizontal:!1,vertical:!1};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},win;function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}win="undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};var window_1=win,globalWindow$2=window_1.window;function browserSupportsCssZoom(){try{return void 0!==globalWindow$2.document.implementation.createHTMLDocument("").body.style.zoom}catch(error){return!1}}var ZoomElementWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref49){var _ref49$scale=_ref49.scale,scale=void 0===_ref49$scale?1:_ref49$scale,height=_ref49.height;return browserSupportsCssZoom()?{"> *":{zoom:1/scale}}:{height:height+50,transformOrigin:"top left",transform:"scale(".concat(1/scale,")")}}));function ZoomElement(_ref50){var scale=_ref50.scale,children=_ref50.children,componentWrapperRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(0),2),height=_useState2[0],setHeight=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){componentWrapperRef.current&&setHeight(componentWrapperRef.current.getBoundingClientRect().height)}),[scale,componentWrapperRef.current]),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomElementWrapper,{scale,height},react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}var ZoomIFrame=function(_Component){_inherits(ZoomIFrame,_Component);var _super=_createSuper(ZoomIFrame);function ZoomIFrame(){var _this2;return _classCallCheck(this,ZoomIFrame),(_this2=_super.apply(this,arguments)).iframe=null,_this2}return _createClass(ZoomIFrame,[{key:"componentDidMount",value:function componentDidMount(){var iFrameRef=this.props.iFrameRef;this.iframe=iFrameRef.current}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var _this$props=this.props,scale=_this$props.scale,active=_this$props.active;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute("data-is-storybook",nextProps.active?"true":"false"),nextProps.children.props.src!==this.props.children.props.src}},{key:"setIframeInnerZoom",value:function setIframeInnerZoom(scale){try{browserSupportsCssZoom()?Object.assign(this.iframe.contentDocument.body.style,{zoom:1/scale}):Object.assign(this.iframe.contentDocument.body.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}catch(e){this.setIframeZoom(scale)}}},{key:"setIframeZoom",value:function setIframeZoom(scale){Object.assign(this.iframe.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}},{key:"render",value:function render(){return this.props.children}}]),ZoomIFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},ButtonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref51){var small=_ref51.small,theme=_ref51.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:small?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(small?theme.typography.size.s1:theme.typography.size.s2-1,"px"),fontWeight:theme.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:small?14:16,width:small?14:16,verticalAlign:"top",marginRight:small?4:6,marginTop:small?-1:-2,marginBottom:small?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}}),(function(_ref52){return _ref52.disabled?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}}),(function(_ref53){var containsIcon=_ref53.containsIcon,small=_ref53.small;return containsIcon?Object.assign({svg:{display:"block",margin:0}},small?{padding:9}:{padding:12}):{}}),(function(_ref54){var color,theme=_ref54.theme,primary=_ref54.primary,secondary=_ref54.secondary,gray=_ref54.gray;return gray?color=theme.color.medium:secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),color?{background:color,color:gray?theme.color.darkest:theme.color.lightest,"&:hover":{background:curriedDarken$1(.05,color)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat(rgba(color,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref55){var theme=_ref55.theme,tertiary=_ref55.tertiary,inForm=_ref55.inForm,small=_ref55.small;return tertiary?Object.assign(Object.assign({background:"light"===theme.base?curriedDarken$1(.02,theme.input.background):curriedLighten$1(.02,theme.input.background),color:theme.input.color,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius},inForm&&small?{padding:"10px 16px"}:{}),{"&:hover":Object.assign({background:"light"===theme.base?curriedDarken$1(.05,theme.input.background):curriedLighten$1(.05,theme.input.background)},inForm?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:theme.input.background},"&:focus":{boxShadow:"".concat(rgba(theme.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}}),(function(_ref56){var theme=_ref56.theme;return _ref56.outline?{boxShadow:"".concat(curriedTransparentize$1(.8,theme.color.defaultText)," 0 0 0 1px inset"),color:curriedTransparentize$1(.3,theme.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 2px inset"),color:curriedTransparentize$1(0,theme.color.defaultText)}}:{}}),(function(_ref57){var theme=_ref57.theme,outline=_ref57.outline,primary=_ref57.primary,color=theme.color.primary;return outline&&primary?{boxShadow:"".concat(color," 0 0 0 1px inset"),color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref58){var color,theme=_ref58.theme,outline=_ref58.outline,primary=_ref58.primary;return _ref58.secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),outline&&color?{boxShadow:"".concat(color," 0 0 0 1px inset"),color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}})),ButtonLink=ButtonWrapper.withComponent("a"),Button$2=Object.assign((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var isLink=_a.isLink,children=_a.children,props=__rest(_a,["isLink","children"]);return isLink?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonLink,Object.assign({},props,{ref}),children):react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonWrapper,Object.assign({},props,{ref}),children)})),{defaultProps:{isLink:!1}}),Wrapper$7=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label((function(_ref59){var theme=_ref59.theme;return{display:"flex",borderBottom:"1px solid ".concat(theme.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}})),Label$4=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref60){return{minWidth:100,fontWeight:_ref60.theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}})),Field=function Field(_a){var label=_a.label,children=_a.children,props=__rest(_a,["label","children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$7,Object.assign({},props),label?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label$4,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,label)):null,children)};function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}Field.defaultProps={label:void 0};var index$1="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_51__.useEffect,useLatest=function useLatest(value){var ref=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(value);return index$1((function(){ref.current=value})),ref},updateRef=function updateRef(ref,value){"function"!=typeof ref?ref.current=value:ref(value)},useComposedRef=function useComposedRef(libRef,userRef){var prevUserRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance)}),[userRef])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function forceHiddenStyles(node){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach((function(key){node.style.setProperty(key,HIDDEN_TEXTAREA_STYLE[key],"important")}))},hiddenTextarea=null,getHeight=function getHeight(node,sizingData){var height=node.scrollHeight;return"border-box"===sizingData.sizingStyle.boxSizing?height+sizingData.borderSize:height-sizingData.paddingSize};function calculateNodeHeight(sizingData,value,minRows,maxRows){void 0===minRows&&(minRows=1),void 0===maxRows&&(maxRows=1/0),hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),null===hiddenTextarea.parentNode&&document.body.appendChild(hiddenTextarea);var paddingSize=sizingData.paddingSize,borderSize=sizingData.borderSize,sizingStyle=sizingData.sizingStyle,boxSizing=sizingStyle.boxSizing;Object.keys(sizingStyle).forEach((function(_key){var key=_key;hiddenTextarea.style[key]=sizingStyle[key]})),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=value;var height=getHeight(hiddenTextarea,sizingData);hiddenTextarea.value="x";var rowHeight=hiddenTextarea.scrollHeight-paddingSize,minHeight=rowHeight*minRows;"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height);var maxHeight=rowHeight*maxRows;return"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),[height=Math.min(maxHeight,height),rowHeight]}var noop$2=function noop(){},pick=function pick(props,obj){return props.reduce((function(acc,prop){return acc[prop]=obj[prop],acc}),{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE="undefined"!=typeof document&&!!document.documentElement.currentStyle,getSizingData=function getSizingData(node){var style=window.getComputedStyle(node);if(null===style)return null;var sizingStyle=pick(SIZING_STYLE,style),boxSizing=sizingStyle.boxSizing;return""===boxSizing?null:(isIE&&"border-box"===boxSizing&&(sizingStyle.width=parseFloat(sizingStyle.width)+parseFloat(sizingStyle.borderRightWidth)+parseFloat(sizingStyle.borderLeftWidth)+parseFloat(sizingStyle.paddingRight)+parseFloat(sizingStyle.paddingLeft)+"px"),{sizingStyle,paddingSize:parseFloat(sizingStyle.paddingBottom)+parseFloat(sizingStyle.paddingTop),borderSize:parseFloat(sizingStyle.borderBottomWidth)+parseFloat(sizingStyle.borderTopWidth)})},useWindowResizeListener=function useWindowResizeListener(listener){var latestListener=useLatest(listener);(0,react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)((function(){var handler=function handler(event){latestListener.current(event)};return window.addEventListener("resize",handler),function(){window.removeEventListener("resize",handler)}}),[])},TextareaAutosize=function TextareaAutosize(_ref,userRef){var cacheMeasurements=_ref.cacheMeasurements,maxRows=_ref.maxRows,minRows=_ref.minRows,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop$2:_ref$onChange,_ref$onHeightChange=_ref.onHeightChange,onHeightChange=void 0===_ref$onHeightChange?noop$2:_ref$onHeightChange,props=_objectWithoutPropertiesLoose(_ref,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var isControlled=void 0!==props.value,libRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),ref=useComposedRef(libRef,userRef),heightRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(0),measurementsCacheRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),resizeTextarea=function resizeTextarea(){var node=libRef.current,nodeSizingData=cacheMeasurements&&measurementsCacheRef.current?measurementsCacheRef.current:getSizingData(node);if(nodeSizingData){measurementsCacheRef.current=nodeSizingData;var _calculateNodeHeight=calculateNodeHeight(nodeSizingData,node.value||node.placeholder||"x",minRows,maxRows),height=_calculateNodeHeight[0],rowHeight=_calculateNodeHeight[1];heightRef.current!==height&&(heightRef.current=height,node.style.setProperty("height",height+"px","important"),onHeightChange(height,{rowHeight}))}};return"undefined"!=typeof document&&((0,react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(resizeTextarea),useWindowResizeListener(resizeTextarea)),(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)("textarea",_extends({},props,{onChange:function handleChange(event){isControlled||resizeTextarea(),onChange(event)},ref}))},index=(0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(TextareaAutosize),TextareaAutoResize=index,styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function styles(_ref61){var theme=_ref61.theme;return Object.assign(Object.assign({},styleResets$1),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(theme.color.lightest," inset")},"::placeholder":{color:theme.color.mediumdark}})},sizes=function sizes(_ref62){switch(_ref62.size){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},alignment=function alignment(_ref63){switch(_ref63.align){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},validation=function validation(_ref64){var valid=_ref64.valid,theme=_ref64.theme;switch(valid){case"valid":return{boxShadow:"".concat(theme.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(theme.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(theme.color.warning," 0 0 0 1px inset")};default:return{}}},Input$1=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("input",Object.assign({},props,{ref}))})))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("select",Object.assign({},props,{ref}))})))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign((0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TextareaAutoResize,Object.assign({},props,{ref}))})))(styles,sizes,alignment,validation,(function(_ref65){var _ref65$height=_ref65.height;return{overflow:"visible",maxHeight:void 0===_ref65$height?400:_ref65$height}})),{displayName:"Textarea"}),ButtonStyled=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button$2,Object.assign({},props,{ref}))})))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button$1=Object.assign((0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ButtonStyled,Object.assign({},props,{tertiary:!0,small:!0,inForm:!0},{ref}))})),{displayName:"Button"}),Form=Object.assign(_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.form({boxSizing:"border-box",width:"100%"}),{Field,Input:Input$1,Select,Textarea,Button:Button$1}),LazyWithTooltip=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(478).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/WithTooltip-167e9982.js")).then((function(mod){return{default:mod.WithTooltip}}))})),WithTooltip=function WithTooltip(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyWithTooltip,Object.assign({},props)))},LazyWithTooltipPure=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(478).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/WithTooltip-167e9982.js")).then((function(mod){return{default:mod.WithTooltipPure}}))})),WithTooltipPure=function WithTooltipPure(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyWithTooltipPure,Object.assign({},props)))},Title$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref66){return{fontWeight:_ref66.theme.typography.weight.black}})),Desc=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span(),Links=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref67){return{marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:_ref67.theme.typography.weight.black}}})),Message=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref68){return{color:_ref68.theme.textColor,lineHeight:"18px"}})),MessageWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=function TooltipMessage(_ref69){var title=_ref69.title,desc=_ref69.desc,links=_ref69.links;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(MessageWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Message,null,title&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$2,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Desc,null,desc)),links&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Links,null,links.map((function(_a){var linkTitle=_a.title,other=__rest(_a,["title"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,Object.assign({},other,{key:linkTitle}),linkTitle)}))))};TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref70){var theme=_ref70.theme;return{padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===theme.base?"rgba(60, 60, 60, 0.9)":"rgba(20, 20, 20, 0.85)",margin:6}})),TooltipNote=function TooltipNote(_a){var note=_a.note,props=__rest(_a,["note"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Note,Object.assign({},props),note)},Title$1=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((function(_a){var rest=__rest(_a,["active","loading","disabled"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",Object.assign({},rest))}))((function(_ref71){var theme=_ref71.theme;return{color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}}),(function(_ref72){var active=_ref72.active,theme=_ref72.theme;return active?{color:theme.color.primary,fontWeight:theme.typography.weight.bold}:{}}),(function(_ref73){var loading=_ref73.loading,theme=_ref73.theme;return loading?Object.assign({display:"inline-block",flex:"none"},theme.animation.inlineGlow):{}}),(function(_ref74){var disabled=_ref74.disabled,theme=_ref74.theme;return disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}})),Right=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({"& svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}},(function(_ref75){var active=_ref75.active,theme=_ref75.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Center=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({flex:1,textAlign:"left",display:"inline-flex","& > * + *":{paddingLeft:10}}),CenterText=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({flex:1,textAlign:"center"},(function(_ref76){var active=_ref76.active,theme=_ref76.theme;return active?{color:theme.color.primary}:{}}),(function(_ref77){var theme=_ref77.theme;return _ref77.disabled?{color:theme.color.mediumdark}:{}})),Left=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref78){var active=_ref78.active,theme=_ref78.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Item$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.a((function(_ref79){var theme=_ref79.theme;return{fontSize:theme.typography.size.s1,transition:"all 150ms ease-out",color:curriedTransparentize$1(.5,theme.color.defaultText),textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:theme.background.hoverable},"&:hover svg":{opacity:1}}}),(function(_ref80){return _ref80.disabled?{cursor:"not-allowed"}:{}})),getItemProps=memoizerific__WEBPACK_IMPORTED_MODULE_52___default()(100)((function(onClick,href,LinkWrapper){var result={};return onClick&&Object.assign(result,{onClick}),href&&Object.assign(result,{href}),LinkWrapper&&href&&Object.assign(result,{to:href,as:LinkWrapper}),result})),ListItem=function ListItem(_a){var loading=_a.loading,left=_a.left,title=_a.title,center=_a.center,right=_a.right,active=_a.active,disabled=_a.disabled,href=_a.href,onClick=_a.onClick,LinkWrapper=_a.LinkWrapper,rest=__rest(_a,["loading","left","title","center","right","active","disabled","href","onClick","LinkWrapper"]),itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active,disabled};return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$3,Object.assign({},commonProps,rest,itemProps),left&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Left,Object.assign({},commonProps),left),title||center?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Center,null,title&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Title$1,Object.assign({},commonProps,{loading}),title),center&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(CenterText,Object.assign({},commonProps),center)):null,right&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Right,Object.assign({},commonProps),right))};ListItem.defaultProps={loading:!1,left:null,title:react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var List$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:432},(function(_ref81){return{borderRadius:2*_ref81.theme.appBorderRadius}})),Item$2=function Item$2(props){var LinkWrapper=props.LinkWrapper,onClickFromProps=props.onClick,rest=__rest(props,["LinkWrapper","onClick"]),title=rest.title,href=rest.href,active=rest.active,onClick=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){onClickFromProps(event,rest)}),[onClickFromProps]),hasOnClick=!!onClickFromProps;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListItem,Object.assign({title,active,href,LinkWrapper},rest,hasOnClick?{onClick}:{}))},TooltipLinkList=function TooltipLinkList(_ref82){var links=_ref82.links,LinkWrapper=_ref82.LinkWrapper;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(List$2,null,links.map((function(_a){var isGatsby=_a.isGatsby,p=__rest(_a,["isGatsby"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$2,Object.assign({key:p.id,LinkWrapper:isGatsby?LinkWrapper:null},p))})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem.defaultProps.LinkWrapper};var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},(function(_ref83){return _ref83.left?{"& > *":{marginLeft:4}}:{}}),(function(_ref84){return _ref84.right?{marginLeft:30,"& > *":{marginRight:4}}:{}}));Side.displayName="Side";var Bar$1=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)((function(_ref85){var children=_ref85.children,className=_ref85.className;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ScrollArea,{horizontal:!0,vertical:!1,className},children)}))((function(_ref86){return{color:_ref86.theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}}),(function(_ref87){var theme=_ref87.theme;return _ref87.border?{boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset"),background:theme.barBg}:{}}));Bar$1.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref88){return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:_ref88.bgColor||""}})),FlexBar=function FlexBar(_a){var children=_a.children,backgroundColor=_a.backgroundColor,rest=__rest(_a,["children","backgroundColor"]),_Children$toArray4=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),left=_Children$toArray4[0],right=_Children$toArray4[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Bar$1,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51__.createElement(BarInner,{bgColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Side,{left:!0},left),right?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar";var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite],ButtonOrLink=function ButtonOrLink(_a){var children=_a.children,restProps=__rest(_a,["children"]);return null!=restProps.href?react__WEBPACK_IMPORTED_MODULE_51__.createElement("a",Object.assign({},restProps),children):react__WEBPACK_IMPORTED_MODULE_51__.createElement("button",Object.assign({type:"button"},restProps),children)},TabButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.R_})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(function(_ref89){return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:_ref89.theme.color.secondary}}}),(function(_ref90){var active=_ref90.active,textColor=_ref90.textColor,theme=_ref90.theme;return active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent"}}));TabButton.displayName="TabButton";var IconButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.R_})((function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}}),(function(_ref91){var active=_ref91.active,theme=_ref91.theme;return active?{backgroundColor:theme.background.hoverable,color:theme.color.secondary}:{}}),(function(_ref92){var disabled=_ref92.disabled,theme=_ref92.theme;return disabled?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,theme.color.secondary),color:theme.color.secondary},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}}}));IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref93){var theme=_ref93.theme;return{width:14,height:14,backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite")}})),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(){return{marginTop:6,padding:7,height:28}})),IconButtonSkeleton=function IconButtonSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconPlaceholder,null))},Wrapper$6=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref94){var theme=_ref94.theme;return _ref94.bordered?{backgroundClip:"padding-box",border:"1px solid ".concat(theme.appBorderColor),borderRadius:theme.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}}),(function(_ref95){return _ref95.absolute?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}})),TabBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden","&:first-of-type":{marginLeft:-3}}),Content=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"block",position:"relative"},(function(_ref96){var theme=_ref96.theme;return{fontSize:theme.typography.size.s2-1,background:theme.background.content}}),(function(_ref97){var bordered=_ref97.bordered,theme=_ref97.theme;return bordered?{borderRadius:"0 0 ".concat(theme.appBorderRadius-1,"px ").concat(theme.appBorderRadius-1,"px")}:{}}),(function(_ref98){var absolute=_ref98.absolute,bordered=_ref98.bordered;return absolute?_defineProperty2({height:"calc(100% - ".concat(bordered?42:40,"px)"),position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:"auto"},"& > *:first-child",{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:"calc(100% - ".concat(bordered?2:0,"px)"),overflow:"auto"}):{}})),VisuallyHidden=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref100){return _ref100.active?{display:"block"}:{display:"none"}})),TabWrapper=function TabWrapper(_ref101){var active=_ref101.active,render=_ref101.render,children=_ref101.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(VisuallyHidden,{active},render?render():children)},childrenToList=function childrenToList(children,selected){return react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children).map((function(_ref102,index){var _ref102$props=_ref102.props,title=_ref102$props.title,id=_ref102$props.id,color=_ref102$props.color,childrenOfChild=_ref102$props.children,content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return{active:selected?id===selected:0===index,title,id,color,render:"function"==typeof content?content:function(_ref103){var active=_ref103.active,key=_ref103.key;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(VisuallyHidden,{key,active,role:"tabpanel"},content)}}}))},Tabs=(0,react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref104){var children=_ref104.children,selected=_ref104.selected,actions=_ref104.actions,absolute=_ref104.absolute,bordered=_ref104.bordered,tools=_ref104.tools,backgroundColor=_ref104.backgroundColor,htmlId=_ref104.id,list=childrenToList(children,selected);return list.length?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$6,{absolute,bordered,id:htmlId},react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexBar,{border:!0,backgroundColor},react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabBar,{role:"tablist"},list.map((function(_ref105){var title=_ref105.title,id=_ref105.id,active=_ref105.active,color=_ref105.color,tabTitle="function"==typeof title?title():title;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabButton,{id:"tabbutton-".concat((0,_storybook_csf__WEBPACK_IMPORTED_MODULE_53__.sanitize)(tabTitle)),className:"tabbutton ".concat(active?"tabbutton-active":""),type:"button",key:id,active,textColor:color,onClick:function onClick(e){e.preventDefault(),actions.onSelect(id)},role:"tab"},tabTitle)}))),tools?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,tools):null),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Content,{id:"panel-tab-content",bordered,absolute},list.map((function(_ref106){var id=_ref106.id,active=_ref106.active;return(0,_ref106.render)({key:id,active})})))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Placeholder,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"title"},"Nothing found"))}));Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(_Component2){_inherits(TabsState,_Component2);var _super2=_createSuper(TabsState);function TabsState(props){var _this3;return _classCallCheck(this,TabsState),(_this3=_super2.call(this,props)).handlers={onSelect:function onSelect(id){return _this3.setState({selected:id})}},_this3.state={selected:props.initial},_this3}return _createClass(TabsState,[{key:"render",value:function render(){var _this$props2=this.props,_this$props2$bordered=_this$props2.bordered,bordered=void 0!==_this$props2$bordered&&_this$props2$bordered,_this$props2$absolute=_this$props2.absolute,absolute=void 0!==_this$props2$absolute&&_this$props2$absolute,children=_this$props2.children,backgroundColor=_this$props2.backgroundColor,selected=this.state.selected;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Tabs,{bordered,absolute,selected,backgroundColor,actions:this.handlers},children)}}]),TabsState}(react__WEBPACK_IMPORTED_MODULE_51__.Component);TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var Separator=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref107){return{width:1,height:20,background:_ref107.theme.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}}),(function(_ref108){return _ref108.force?{}:{"& + &":{display:"none"}}}));Separator.displayName="Separator";var interleaveSeparators=function interleaveSeparators(list){return list.reduce((function(acc,item,index){return item?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:item.id||item.key||"f-".concat(index)},acc,index>0?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Separator,{key:"s-".concat(index)}):null,item.render()||item):acc}),null)},usePrevious=function usePrevious(value){var ref=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){ref.current=value}),[value]),ref.current},useUpdate=function useUpdate(update,value){var previousValue=usePrevious(value);return update?value:previousValue},AddonPanel=function AddonPanel(_ref109){var active=_ref109.active,children=_ref109.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{hidden:!active,style:{transform:"translateX(0px)"}},useUpdate(active,children))},StorybookLogo=function StorybookLogo(_a){var alt=_a.alt,props=__rest(_a,["alt"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",Object.assign({width:"200px",height:"40px",viewBox:"0 0 200 40"},props,{role:"img"}),alt?react__WEBPACK_IMPORTED_MODULE_51__.createElement("title",null,alt):null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("mask",{id:"b",fill:"#fff"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{xlinkHref:"#a"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})))},StorybookIcon=function StorybookIcon(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("svg",Object.assign({viewBox:"0 0 64 64"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement("title",null,"Storybook icon"),react__WEBPACK_IMPORTED_MODULE_51__.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})))};function e(){return(e=Object.assign||function(t){for(var e=1;e",lt:"<",nbsp:" ",quot:"“"},a=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_2=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,v=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,M=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,O=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,T=/(?:^|\n)( *)$/,j=/-([a-z])?/gi,C=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,N=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,H=/^ *\| */,q=/(^ *\||\| *$)/g,U=/ *$/,V=/^ *:-+: *$/,W=/^ *:-+ *$/,Q=/^ *-+: *$/,X=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,K=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,tt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,et=/^\n+/,nt=/^([ \t]*)/,rt=/\\([^0-9A-Z\s])/gi,ot=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ut="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",it=new RegExp("^\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),lt=new RegExp("^!\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),st=[s,g,p,S,$,E,ct,at,C],_t=[].concat(st,[/^[^\n]+(?: \n|\n{2,})/,w,R]);function ft(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(t){return Q.test(t)?"right":V.test(t)?"center":W.test(t)?"left":null}function pt(t,e,n){var r=n.t;n.t=!0;var o=e(t.trim(),n);n.t=r;var c=[[]];return o.forEach((function(t,e){"tableSeparator"===t.type?0!==e&&e!==o.length-1&&c.push([]):("text"!==t.type||null!=o[e+1]&&"tableSeparator"!==o[e+1].type||(t.content=t.content.replace(U,"")),c[c.length-1].push(t))})),c}function gt(t,e,n){n.o=!0;var r=pt(t[1],e,n),o=t[2].replace(q,"").split("|").map(dt),c=function(t,e,n){return t.trim().split("\n").map((function(t){return pt(t,e,n)}))}(t[3],e,n);return n.o=!1,{align:o,cells:c,header:r,type:"table"}}function mt(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function yt(t){return function(e,n){return n.o?t.exec(e):null}}function ht(t){return function(e,n){return n.o||n.u?t.exec(e):null}}function kt(t){return function(e,n){return n.o||n.u?null:t.exec(e)}}function xt(t){return function(e){return t.exec(e)}}function vt(t,e,n){if(e.o||e.u)return null;if(n&&!n.endsWith("\n"))return null;var r="";t.split("\n").every((function(t){return!st.some((function(e){return e.test(t)}))&&(r+=t+"\n",t.trim())}));var o=r.trimEnd();return""==o?null:[r,o]}function bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(t){return null}return t}function St(t){return t.replace(rt,"$1")}function $t(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!0,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function wt(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!1,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function zt(t,e,n){return n.o=!1,t(e+"\n\n",n)}var Et=function Et(t,e,n){return{content:$t(e,t[1],n)}},Ot,t;function At(){return{}}function Rt(){return null}function It(){for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++)t[_key3]=arguments[_key3];return t.filter(Boolean).join(" ")}function Mt(t,e,n){for(var r=t,o=e.split(".");o.length&&void 0!==(r=r[o[0]]);)o.shift();return r||n}function Bt(r){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q.overrides=q.overrides||{},q.slugify=q.slugify||ft,q.namedCodesToUnicode=q.namedCodesToUnicode?e({},c,q.namedCodesToUnicode):c;var U=q.createElement||react__WEBPACK_IMPORTED_MODULE_51__.createElement;function V(t,n){for(var o=Mt(q.overrides,"".concat(t,".props"),{}),_len4=arguments.length,r=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++)r[_key4-2]=arguments[_key4];return U.apply(void 0,[function(t,e){var n=Mt(e,t);return n?"function"==typeof n||"object"==_typeof(n)&&"render"in n?n:Mt(e,"".concat(t,".component"),t):t}(t,q.overrides),e({},n,o,{className:It(null==n?void 0:n.className,o.className)||void 0})].concat(r))}function W(e){var n=!1;q.forceInline?n=!0:q.forceBlock||(n=!1===P.test(e));for(var r=pt(dt(n?e:"".concat(e.trimEnd().replace(et,""),"\n\n"),{o:n}));"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===q.wrapper)return r;var c,o=q.wrapper||(n?"span":"div");if(r.length>1||q.forceWrapper)c=r;else{if(1===r.length)return"string"==typeof(c=r[0])?V("span",{key:"outer"},c):c;c=null}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(o,{key:"outer"},c)}function Q(e){var r=e.match(u);return r?r.reduce((function(e,r,c){var t,a=r.indexOf("=");if(-1!==a){var _u=(t=r.slice(0,a),-1!==t.indexOf("-")&&null===t.match(A)&&(t=t.replace(j,(function(t,e){return e.toUpperCase()}))),t).trim(),_i2=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}(r.slice(a+1).trim()),_l=o[_u]||_u,_s2=e[_l]=function(t,e){return"style"===t?e.split(/;\s?/).reduce((function(t,e){var n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.slice(n.length+1).trim(),t}),{}):"href"===t?bt(e):(e.match(I)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(_u,_i2);"string"==typeof _s2&&(w.test(_s2)||R.test(_s2))&&(e[_l]=react__WEBPACK_IMPORTED_MODULE_51__.cloneElement(W(_s2.trim()),{key:c}))}else"style"!==r&&(e[o[r]||r]=!0);return e}),{}):void 0}var rt=[],ut={},st={blockQuote:{i:kt(s),l:Ot.HIGH,_:function _(t,e,n){return{content:e(t[0].replace(_2,""),n)}},p:function p(t,e,n){return V("blockquote",{key:n.g},e(t.content,n))}},breakLine:{i:xt(f),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("br",{key:n.g})}},breakThematic:{i:kt(d),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("hr",{key:n.g})}},codeBlock:{i:kt(g),l:Ot.MAX,_:function _(t){return{content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function p(t,e,n){return V("pre",{key:n.g},V("code",{className:t.lang?"lang-".concat(t.lang):""},t.content))}},codeFenced:{i:kt(p),l:Ot.MAX,_:function _(t){return{content:t[3],lang:t[2]||void 0,type:"codeBlock"}}},codeInline:{i:ht(m),l:Ot.LOW,_:function _(t){return{content:t[2]}},p:function p(t,e,n){return V("code",{key:n.g},t.content)}},footnote:{i:kt(k),l:Ot.MAX,_:function _(t){return rt.push({footnote:t[2],identifier:t[1]}),{}},p:Rt},footnoteReference:{i:yt(x),l:Ot.HIGH,_:function _(t){return{content:t[1],target:"#".concat(q.slugify(t[1]))}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target)},V("sup",{key:n.g},t.content))}},gfmTask:{i:yt(b),l:Ot.HIGH,_:function _(t){return{completed:"x"===t[1].toLowerCase()}},p:function p(t,e,n){return V("input",{checked:t.completed,key:n.g,readOnly:!0,type:"checkbox"})}},heading:{i:kt(S),l:Ot.HIGH,_:function _(t,e,n){return{content:$t(e,t[2],n),id:q.slugify(t[2]),level:t[1].length}},p:function p(t,e,n){return t.tag="h".concat(t.level),V(t.tag,{id:t.id,key:n.g},e(t.content,n))}},headingSetext:{i:kt($),l:Ot.MAX,_:function _(t,e,n){return{content:$t(e,t[1],n),level:"="===t[2]?1:2,type:"heading"}}},htmlComment:{i:xt(E),l:Ot.HIGH,_:function _(){return{}},p:Rt},image:{i:ht(lt),l:Ot.HIGH,_:function _(t){return{alt:t[1],target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt||void 0,title:t.title||void 0,src:bt(t.target)})}},link:{i:yt(it),l:Ot.LOW,_:function _(t,e,n){return{content:wt(e,t[1],n),target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target),title:t.title},e(t.content,n))}},linkAngleBraceStyleDetector:{i:yt(B),l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],type:"link"}}},linkBareUrlDetector:{i:function i(t,e){return e.m?null:yt(M)(t,e)},l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:yt(O),l:Ot.MAX,_:function _(t){var e=t[1],n=t[1];return i.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{i:function i(t,e,n){var r=T.exec(n);return!r||!e.h&&e.o?null:at.exec(t=r[1]+t)},l:Ot.HIGH,_:function _(t,e,n){var r=t[2],o=r.length>1,c=o?+r:void 0,a=t[0].replace(l,"\n").match(ct),u=!1;return{items:a.map((function(t,r){var o=ot.exec(t)[0].length,c=new RegExp("^ {1,"+o+"}","gm"),i=t.replace(c,"").replace(ot,""),l=r===a.length-1,s=-1!==i.indexOf("\n\n")||l&&u;u=s;var d,_=n.o,f=n.h;n.h=!0,s?(n.o=!1,d=i.replace(L,"\n\n")):(n.o=!0,d=i.replace(L,""));var p=e(d,n);return n.o=_,n.h=f,p})),ordered:o,start:c}},p:function p(t,e,n){return V(t.ordered?"ol":"ul",{key:n.g,start:t.start},t.items.map((function(t,r){return V("li",{key:r},e(t,n))})))}},newlineCoalescer:{i:kt(y),l:Ot.LOW,_:At,p:function p(){return"\n"}},paragraph:{i:vt,l:Ot.LOW,_:Et,p:function p(t,e,n){return V("p",{key:n.g},e(t.content,n))}},ref:{i:yt(D),l:Ot.MAX,_:function _(t){return ut[t[1]]={target:t[2],title:t[4]},{}},p:Rt},refImage:{i:ht(N),l:Ot.MAX,_:function _(t){return{alt:t[1]||void 0,ref:t[2]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt,src:bt(ut[t.ref].target),title:ut[t.ref].title})}},refLink:{i:yt(Z),l:Ot.MAX,_:function _(t,e,n){return{content:e(t[1],n),fallbackContent:e(t[0].replace(F,"\\$1"),n),ref:t[2]}},p:function p(t,e,n){return ut[t.ref]?V("a",{key:n.g,href:bt(ut[t.ref].target),title:ut[t.ref].title},e(t.content,n)):V("span",{key:n.g},e(t.fallbackContent,n))}},table:{i:kt(C),l:Ot.HIGH,_:gt,p:function p(t,e,n){return V("table",{key:n.g},V("thead",null,V("tr",null,t.header.map((function(r,o){return V("th",{key:o,style:mt(t,o)},e(r,n))})))),V("tbody",null,t.cells.map((function(r,o){return V("tr",{key:o},r.map((function(r,o){return V("td",{key:o,style:mt(t,o)},e(r,n))})))}))))}},tableSeparator:{i:function i(t,e){return e.t?H.exec(t):null},l:Ot.HIGH,_:function _(){return{type:"tableSeparator"}},p:function p(){return" | "}},text:{i:xt(tt),l:Ot.MIN,_:function _(t){return{content:t[0].replace(z,(function(t,e){return q.namedCodesToUnicode[e]?q.namedCodesToUnicode[e]:t}))}},p:function p(t){return t.content}},textBolded:{i:ht(X),l:Ot.MED,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("strong",{key:n.g},e(t.content,n))}},textEmphasized:{i:ht(J),l:Ot.LOW,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("em",{key:n.g},e(t.content,n))}},textEscaped:{i:ht(Y),l:Ot.HIGH,_:function _(t){return{content:t[1],type:"text"}}},textStrikethroughed:{i:ht(K),l:Ot.LOW,_:Et,p:function p(t,e,n){return V("del",{key:n.g},e(t.content,n))}}};!0!==q.disableParsingRawHTML&&(st.htmlBlock={i:xt(w),l:Ot.HIGH,_:function _(t,e,n){var i,r=_slicedToArray(t[3].match(nt),2)[1],o=new RegExp("^".concat(r),"gm"),c=t[3].replace(o,""),u=(i=c,_t.some((function(t){return t.test(i)}))?zt:$t),l=t[1].toLowerCase(),s=-1!==a.indexOf(l);n.m=n.m||"a"===l;var _=s?t[3]:u(e,c,n);return n.m=!1,{attrs:Q(t[2]),content:_,noInnerParse:s,tag:s?l:t[1]}},p:function p(t,n,r){return V(t.tag,e({key:r.g},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},st.htmlSelfClosing={i:xt(R),l:Ot.HIGH,_:function _(t){return{attrs:Q(t[2]||""),tag:t[1]}},p:function p(t,n,r){return V(t.tag,e({},t.attrs,{key:r.g}))}});var t,Bt,dt=function(t){var e=Object.keys(t);function n(r,o){for(var c=[],a="";r;)for(var _u2=0;_u21&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(e)){for(var _r=n.g,_o=[],_c=!1,_r2=0;_r2=0||(o[n]=t[n]);return o}(e,r);return react__WEBPACK_IMPORTED_MODULE_51__.cloneElement(Bt(n,o),c)},Description$1=function Description$1(_ref110){var markdown=_ref110.markdown;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Markdown,{options:{forceBlock:!0,overrides:components$1}},markdown))},breakpoint=600,Title=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h1(withReset,(function(_ref111){var theme=_ref111.theme;return _defineProperty2({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})})),Subtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.h2(withReset,(function(_ref113){var _ref114,theme=_ref113.theme;return _defineProperty2(_ref114={fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24}),_defineProperty2(_ref114,"color",curriedTransparentize$1(.25,theme.color.defaultText)),_ref114})),DocsContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({maxWidth:1e3,width:"100%"}),DocsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref115){return _defineProperty2({background:_ref115.theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(breakpoint,"px)"),{})})),DocsPageWrapper=function DocsPageWrapper(_ref117){var children=_ref117.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(DocsWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(DocsContent,null,children))},getBlockBackgroundStyle=function getBlockBackgroundStyle(theme){return{borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(theme.appBorderColor)}},getStoryHref=function getStoryHref(baseUrl,storyId){var additionalParams=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_baseUrl$split2=_slicedToArray(baseUrl.split("?"),2),url=_baseUrl$split2[0],paramsStr=_baseUrl$split2[1],params=paramsStr?Object.assign(Object.assign(Object.assign({},qs__WEBPACK_IMPORTED_MODULE_54___default().parse(paramsStr)),additionalParams),{id:storyId}):Object.assign(Object.assign({},additionalParams),{id:storyId});return"".concat(url).concat(qs__WEBPACK_IMPORTED_MODULE_54___default().stringify(params,{addQueryPrefix:!0,encode:!1}))},Zoom=function Zoom(_ref118){var zoom=_ref118.zoom,resetZoom=_ref118.resetZoom;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomin",onClick:function onClick(e){e.preventDefault(),zoom(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoom"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomout",onClick:function onClick(e){e.preventDefault(),zoom(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoomout"})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"zoomreset",onClick:function onClick(e){e.preventDefault(),resetZoom()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"zoomreset"})))},Eject=function Eject(_ref119){var baseUrl=_ref119.baseUrl,storyId=_ref119.storyId;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButton,{key:"opener",href:getStoryHref(baseUrl,storyId),target:"_blank",title:"Open canvas in new tab"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"share"}))},Bar=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(FlexBar)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function Toolbar(_a){var isLoading=_a.isLoading,storyId=_a.storyId,baseUrl=_a.baseUrl,zoom=_a.zoom,resetZoom=_a.resetZoom,rest=__rest(_a,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Bar,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"left"},isLoading?[1,2,3].map((function(key){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeleton,{key})})):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Zoom,Object.assign({},{zoom,resetZoom}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"right"},storyId&&(isLoading?react__WEBPACK_IMPORTED_MODULE_51__.createElement(IconButtonSkeleton,null):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Eject,Object.assign({},{storyId,baseUrl})))))},ZoomContext=(0,react__WEBPACK_IMPORTED_MODULE_51__.createContext)({scale:1}),globalWindow$1=window_1.window,IFrame=function(_Component3){_inherits(IFrame,_Component3);var _super3=_createSuper(IFrame);function IFrame(){var _this4;return _classCallCheck(this,IFrame),(_this4=_super3.apply(this,arguments)).iframe=null,_this4}return _createClass(IFrame,[{key:"componentDidMount",value:function componentDidMount(){var id=this.props.id;this.iframe=globalWindow$1.document.getElementById(id)}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var scale=nextProps.scale;return scale!==this.props.scale&&this.setIframeBodyStyle({width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"}),!1}},{key:"setIframeBodyStyle",value:function setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}},{key:"render",value:function render(){var _a=this.props,id=_a.id,title=_a.title,src=_a.src,allowFullScreen=_a.allowFullScreen,rest=(_a.scale,__rest(_a,["id","title","src","allowFullScreen","scale"]));return react__WEBPACK_IMPORTED_MODULE_51__.createElement("iframe",Object.assign({id,title,src,allowFullScreen,loading:"lazy"},rest))}}]),IFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),rotate360=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.F4)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),EventSource=window_1.EventSource,CONFIG_TYPE=window_1.CONFIG_TYPE,LoaderWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref120){var _ref120$size=_ref120.size,size=void 0===_ref120$size?32:_ref120$size;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-size/2,marginLeft:-size/2,height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}})),ProgressWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref121){var theme=_ref121.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"}})),ProgressBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref122){return{position:"absolute",top:0,left:0,height:"100%",background:_ref122.theme.color.secondary}})),ProgressMessage=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref123){var theme=_ref123.theme;return{minHeight:"2em",fontSize:"".concat(theme.typography.size.s1,"px"),color:theme.barTextColor}})),ErrorIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref124){return{width:20,height:20,marginBottom:"0.5rem",color:_ref124.theme.color.mediumdark}})),ellipsis=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.F4)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n from { content: "..." }\n 33% { content: "." }\n 66% { content: ".." }\n to { content: "..." }\n']))),Ellipsis=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function PureLoader(_a){var progress=_a.progress,error=_a.error,size=_a.size,props=__rest(_a,["progress","error","size"]);if(error)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressWrapper,Object.assign({"aria-label":error.toString(),"aria-live":"polite",role:"status"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ErrorIcon,{icon:"lightningoff"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressMessage,null,error.message));if(progress){var _value=progress.value,modules=progress.modules,message=progress.message;return modules&&(message+=" ".concat(modules.complete," / ").concat(modules.total," modules")),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":100*_value,"aria-valuetext":message,role:"progressbar"},props),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressTrack,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressBar,{style:{width:"".concat(100*_value,"%")}})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ProgressMessage,null,message,_value<1&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Ellipsis,{key:message})))}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(LoaderWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size},props))},Loader=function Loader(props){var _useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),progress=_useState4[0],setProgress=_useState4[1],_useState6=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),error=_useState6[0],setError=_useState6[1];return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){if("DEVELOPMENT"===CONFIG_TYPE&&EventSource){var lastProgress,eventSource=new EventSource("/progress");return eventSource.onmessage=function(event){try{lastProgress=JSON.parse(event.data),setProgress(lastProgress)}catch(e){setError(e),eventSource.close()}},eventSource.onerror=function(){lastProgress&&1!==lastProgress.value&&setError(new Error("Connection closed")),eventSource.close()},function(){return eventSource.close()}}}),[]),react__WEBPACK_IMPORTED_MODULE_51__.createElement(PureLoader,Object.assign({progress,error},props))},PREVIEW_URL=window_1.PREVIEW_URL,BASE_URL=PREVIEW_URL||"iframe.html",StoryError;!function(StoryError){StoryError.NO_STORY="No component or story to display"}(StoryError||(StoryError={}));var MISSING_STORY=function MISSING_STORY(id){return id?'Story "'.concat(id,"\" doesn't exist."):StoryError.NO_STORY},InlineStory=function InlineStory(_ref125){var storyFn=_ref125.storyFn,height=_ref125.height,id=_ref125.id;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,height?react__WEBPACK_IMPORTED_MODULE_51__.createElement("style",null,"#story--".concat(id," { min-height: ").concat(height,"; transform: translateZ(0); overflow: auto }")):null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,storyFn?(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)(storyFn):react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,MISSING_STORY(id))))},IFrameStory=function IFrameStory(_ref126){var id=_ref126.id,title=_ref126.title,_ref126$height=_ref126.height,height=void 0===_ref126$height?"500px":_ref126$height;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{style:{width:"100%",height}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomContext.Consumer,null,(function(_ref127){var scale=_ref127.scale;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(IFrame,{key:"iframe",id:"iframe--".concat(id),title,src:getStoryHref(BASE_URL,id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})})))},Story=function Story(_a){_a.children;var error=_a.error,inline=_a.inline,props=__rest(_a,["children","error","inline"]),id=props.id,title=props.title,height=props.height;return error?react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,error):inline?react__WEBPACK_IMPORTED_MODULE_51__.createElement(InlineStory,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(IFrameStory,{id,title,height})},StorySkeleton=function StorySkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Loader,null)},ChildrenContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref128){var isColumn=_ref128.isColumn,columns=_ref128.columns,layout=_ref128.layout;return{display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}}}),(function(_ref129){var _ref129$layout=_ref129.layout,layout=void 0===_ref129$layout?"padded":_ref129$layout;return"centered"===layout||"padded"===layout?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}}),(function(_ref130){var _ref130$layout=_ref130.layout;return"centered"===(void 0===_ref130$layout?"padded":_ref130$layout)?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}}),(function(_ref131){var columns=_ref131.columns;return columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(columns," - 20px)")}}:{}})),StyledSource=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Source)((function(_ref132){var theme=_ref132.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}})),PreviewContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref133){var theme=_ref133.theme,withSource=_ref133.withSource,isExpanded=_ref133.isExpanded;return Object.assign(Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(theme)),{borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0})}),(function(_ref134){return _ref134.withToolbar&&{paddingTop:40}})),getSource=function getSource(withSource,expanded,setExpanded){switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function onClick(){return setExpanded(!1)}}};case expanded:return{source:react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function onClick(){return setExpanded(!1)}}};default:return{source:react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function onClick(){return setExpanded(!0)}}}}};function getStoryId(children){if(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)){var elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden",position:"relative"}),getLayout=function getLayout(children){return children.reduce((function(result,c){return result||("string"==typeof c||"number"==typeof c?"padded":c.props&&c.props.parameters&&c.props.parameters.layout||"padded")}),void 0)},Preview=function Preview(_a){var isLoading=_a.isLoading,isColumn=_a.isColumn,columns=_a.columns,children=_a.children,withSource=_a.withSource,_a$withToolbar=_a.withToolbar,withToolbar=void 0!==_a$withToolbar&&_a$withToolbar,_a$isExpanded=_a.isExpanded,isExpanded=void 0!==_a$isExpanded&&_a$isExpanded,additionalActions=_a.additionalActions,className=_a.className,props=__rest(_a,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),_useState8=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(isExpanded),2),expanded=_useState8[0],setExpanded=_useState8[1],_getSource=getSource(withSource,expanded,setExpanded),source=_getSource.source,actionItem=_getSource.actionItem,_useState10=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(1),2),scale=_useState10[0],setScale=_useState10[1],previewClasses=[className].concat(["sbdocs","sbdocs-preview"]),defaultActionItems=withSource?[actionItem]:[],_useState12=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(additionalActions?_toConsumableArray(additionalActions):[]),2),additionalActionItems=_useState12[0],setAdditionalActionItems=_useState12[1],actionItems=[].concat(defaultActionItems,_toConsumableArray(additionalActionItems)),layout=getLayout(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)?[children]:children),globalWindow=window_1.window,copyToClipboard=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(text){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee2(){var _yield$import;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,__webpack_require__.e(533).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js"));case 2:_yield$import=_context2.sent,(0,_yield$import.createCopyToClipboardFunction)();case 5:case"end":return _context2.stop()}}),_callee2)})))}),[]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(PreviewContainer,Object.assign({},{withSource,withToolbar},props,{className:previewClasses.join(" ")}),withToolbar&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(PositionedToolbar,{isLoading,border:!0,zoom:function zoom(z){return setScale(scale*z)},resetZoom:function resetZoom(){return setScale(1)},storyId:getStoryId(children),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ZoomContext.Provider,{value:{scale}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&function onCopyCapture(e){e.preventDefault(),0===additionalActionItems.filter((function(item){return"Copied"===item.title})).length&©ToClipboard(source.props.code).then((function(){setAdditionalActionItems([].concat(_toConsumableArray(additionalActionItems),[{title:"Copied",onClick:function onClick(){}}])),globalWindow.setTimeout((function(){return setAdditionalActionItems(additionalActionItems.filter((function(item){return"Copied"!==item.title})))}),1500)}))}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Zoom$1.Element,{scale},Array.isArray(children)?children.map((function(child,i){return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{key:i},child)})):react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,children))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionBar,{actionItems}))),withSource&&expanded&&source)},StyledPreview=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Preview)((function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}})),PreviewSkeleton=function PreviewSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react__WEBPACK_IMPORTED_MODULE_51__.createElement(StorySkeleton,null))};function arrayMap$2(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(value){return isObjectLike$4(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(func){return function(value){return func(value)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};!function(module,exports){var freeGlobal=_freeGlobal,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys$2(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$6.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex$2(key,length))||result.push(key);return result}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$6=Object.prototype;function isPrototype$3(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$6)}var _isPrototype=isPrototype$3;function overArg$2(func,transform){return function(arg){return func(transform(arg))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeys$1(object){if(!isPrototype$2(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$5.call(object,key)&&"constructor"!=key&&result.push(key);return result}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(value){return null!=value&&isLength$1(value.length)&&!isFunction(value)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$4(object){return isArrayLike$1(object)?arrayLikeKeys$1(object):baseKeys(object)}var keys_1=keys$4,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;function getAllKeys$2(object){return baseGetAllKeys$1(object,keys$3,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys$1(object),objLength=objProps.length;if(objLength!=getAllKeys$1(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$4.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index1&&void 0!==arguments[1])||arguments[1]||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map((function(item){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgText,{key:item,text:""===item?'""':item})}))},ArgSummary=function ArgSummary(_ref143){var value=_ref143.value,initialExpandedArgs=_ref143.initialExpandedArgs,summary=value.summary,detail=value.detail,_useState14=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isOpen=_useState14[0],setIsOpen=_useState14[1],_useState16=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpandedArgs||!1),2),isExpanded=_useState16[0],setIsExpanded=_useState16[1];if(null==summary)return null;var summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgText,{text:summaryAsString});var summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ExpandButton,{onClick:function onClick(){return setIsExpanded(!isExpanded)}},isExpanded?"Show less...":"Show ".concat(itemsCount-ITEMS_BEFORE_EXPANSION," more..."))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Summary,null,renderSummaryItems(summaryItems))}return react__WEBPACK_IMPORTED_MODULE_51__.createElement(WithTooltipPure,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:isOpen,onVisibilityChange:function onVisibilityChange(isVisible){setIsOpen(isVisible)},tooltip:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Detail,{width:calculateDetailWidth(detail)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(SyntaxHighlighter,{language:"jsx",format:!1},detail))},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,summaryAsString),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArrowIcon,{icon:isOpen?"arrowup":"arrowdown"})))},ArgValue=function ArgValue(_ref144){var value=_ref144.value,initialExpandedArgs=_ref144.initialExpandedArgs;return null==value?react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgSummary,{value,initialExpandedArgs})},getControlId=function getControlId(value){return"control-".concat(value.replace(/\s+/g,"-"))},getControlSetterButtonId=function getControlSetterButtonId(value){return"set-".concat(value.replace(/\s+/g,"-"))},Label$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label((function(_ref145){var theme=_ref145.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat(curriedOpacify$1(.05,theme.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.4,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat(curriedOpacify$1(.3,theme.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 2px inset"),color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.background.app,boxShadow:"".concat(curriedOpacify$1(.1,theme.appBorderColor)," 0 0 2px"),color:theme.color.defaultText,padding:"7px 15px"}}})),parse$2=function parse$2(value){return"true"===value},BooleanControl=function BooleanControl(_ref146){var name=_ref146.name,value=_ref146.value,_onChange=_ref146.onChange,onBlur=_ref146.onBlur,onFocus=_ref146.onFocus,onSetFalse=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return _onChange(!1)}),[_onChange]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onSetFalse},"Set boolean");var parsedValue="string"==typeof value?parse$2(value):value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label$3,{htmlFor:name,title:parsedValue?"Change to false":"Change to true"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("input",Object.assign({id:getControlId(name),type:"checkbox",onChange:function onChange(e){return _onChange(e.target.checked)},checked:parsedValue},{name,onBlur,onFocus})),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"False"),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"True"))},parseDate=function parseDate(value){var _value$split2=_slicedToArray(value.split("-"),3),year=_value$split2[0],month=_value$split2[1],day=_value$split2[2],result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=function parseTime(value){var _value$split4=_slicedToArray(value.split(":"),2),hours=_value$split4[0],minutes=_value$split4[1],result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=function formatDate(value){var date=new Date(value),year="000".concat(date.getFullYear()).slice(-4),month="0".concat(date.getMonth()+1).slice(-2),day="0".concat(date.getDate()).slice(-2);return"".concat(year,"-").concat(month,"-").concat(day)},formatTime=function formatTime(value){var date=new Date(value),hours="0".concat(date.getHours()).slice(-2),minutes="0".concat(date.getMinutes()).slice(-2);return"".concat(hours,":").concat(minutes)},FlexSpaced=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref147){return{flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===_ref147.theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}})),DateControl=function DateControl(_ref148){var name=_ref148.name,value=_ref148.value,onChange=_ref148.onChange,onFocus=_ref148.onFocus,onBlur=_ref148.onBlur,_useState18=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!0),2),valid=_useState18[0],setValid=_useState18[1],dateRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),timeRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value)))}),[value]);var controlId=getControlId(name);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({type:"date",max:"9999-12-31",ref:dateRef,id:"".concat(controlId,"-date"),name:"".concat(controlId,"-date"),onChange:function onDateChange(e){var parsed=parseDate(e.target.value),result=new Date(value);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus,onBlur})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({type:"time",id:"".concat(controlId,"-time"),name:"".concat(controlId,"-time"),ref:timeRef,onChange:function onTimeChange(e){var parsed=parseTime(e.target.value),result=new Date(value);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus,onBlur})),valid?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,"invalid"))},Wrapper$5=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label({display:"flex"}),parse$1=function parse$1(value){var result=parseFloat(value);return Number.isNaN(result)?void 0:result},format=function format(value){return null!=value?String(value):""},NumberControl=function NumberControl(_ref149){var name=_ref149.name,value=_ref149.value,onChange=_ref149.onChange,min=_ref149.min,max=_ref149.max,step=_ref149.step,onBlur=_ref149.onBlur,onFocus=_ref149.onFocus,_useState20=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)("number"==typeof value?value:""),2),inputValue=_useState20[0],setInputValue=_useState20[1],_useState22=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState22[0],setForceVisible=_useState22[1],_useState24=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState24[0],setParseError=_useState24[1],handleChange=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){setInputValue(event.target.value);var result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error("'".concat(event.target.value,"' is not a number"))):(onChange(result),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){inputValue!==("number"==typeof value?value:"")&&setInputValue(value)}),[value]),forceVisible||void 0!==value?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$5,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Input,Object.assign({ref:htmlElRef,id:getControlId(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible},{name,min,max,step,onFocus,onBlur}))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set number")};function dedent(templ){for(var values=[],_i=1;_i .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.background.app,borderColor:theme.color.border}}})),Button=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref164){var theme=_ref164.theme,primary=_ref164.primary;return{border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}})),ActionIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref165){var theme=_ref165.theme,icon=_ref165.icon,disabled=_ref165.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.color.mediumdark,"&:hover":disabled?{}:{color:"subtract"===icon?theme.color.negative:theme.color.ancillary},"svg + &":{marginLeft:0}}})),Input=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.input((function(_ref166){var theme=_ref166.theme,placeholder=_ref166.placeholder;return{outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:"1px solid ".concat(theme.color.border),borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:"1px solid ".concat(theme.color.secondary)}}})),RawButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(IconButton)((function(_ref167){var theme=_ref167.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:"1px solid ".concat(theme.color.border),borderRadius:3,color:theme.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}})),RawInput=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Form.Textarea)((function(_ref168){var theme=_ref168.theme;return{flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function dispatchEnterKey(event){event.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function selectValue(event){event.currentTarget.select()},getCustomStyleFunction=function getCustomStyleFunction(theme){return function(){return{name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ObjectControl(_ref169){var name=_ref169.name,value=_ref169.value,onChange=_ref169.onChange,theme=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.Fg)(),data=(0,react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return value&&cloneDeep_1(value)}),[value]),hasData=null!=data,_useState28=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!hasData),2),showRaw=_useState28[0],setShowRaw=_useState28[1],_useState30=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState30[0],setParseError=_useState30[1],updateRaw=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(raw){try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e){setParseError(e)}}),[onChange]),_useState32=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState32[0],setForceVisible=_useState32[1],onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);if((0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set object");var rawJSONForm=react__WEBPACK_IMPORTED_MODULE_51__.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name,defaultValue:null===value?"":JSON.stringify(value,null,2),onBlur:function onBlur(event){return updateRaw(event.target.value)},placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null});return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$2,null,["Object","Array"].includes(getObjectType(data))&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(RawButton,{onClick:function onClick(){return setShowRaw((function(v){return!v}))}},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:showRaw?"eyeclose":"eye"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"RAW")),showRaw?rawJSONForm:react__WEBPACK_IMPORTED_MODULE_51__.createElement(JsonTree,{data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_51__.createElement(ActionIcon,{icon:"subtract"}),inputElement:function inputElement(_,__,___,key){return key?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Input,null)},fallback:rawJSONForm}))},RangeInput=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.input((function(_ref170){var theme=_ref170.theme,min=_ref170.min,max=_ref170.max,value=_ref170.value;return{"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.appBorderColor,.2)),cursor:"grab",appearance:"none",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:"0 0px 5px 0px ".concat(theme.color.secondary)}},"&::-moz-range-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:"1px solid ".concat(rgba(theme.color.border,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.color.border,.2)),cursor:"grab",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:"".concat(theme.input.background),border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}})),RangeLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(number){var match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=function RangeControl(_ref171){var name=_ref171.name,value=_ref171.value,onChange=_ref171.onChange,_ref171$min=_ref171.min,min=void 0===_ref171$min?0:_ref171$min,_ref171$max=_ref171.max,max=void 0===_ref171$max?100:_ref171$max,_ref171$step=_ref171.step,step=void 0===_ref171$step?1:_ref171$step,onBlur=_ref171.onBlur,onFocus=_ref171.onFocus,hasValue=void 0!==value,numberOFDecimalsPlaces=(0,react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return getNumberOfDecimalPlaces(step)}),[step]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeLabel,null,min),react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeInput,Object.assign({id:getControlId(name),type:"range",onChange:function handleChange(event){onChange(parse$1(event.target.value))}},{name,value,min,max,step,onFocus,onBlur})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(RangeLabel,null,"".concat(hasValue?value.toFixed(numberOFDecimalsPlaces):"--")," / ",max))},Wrapper$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.label({display:"flex"}),TextControl=function TextControl(_ref172){var name=_ref172.name,value=_ref172.value,onChange=_ref172.onChange,onFocus=_ref172.onFocus,onBlur=_ref172.onBlur,_useState34=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState34[0],setForceVisible=_useState34[1],onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set string");var isValid="string"==typeof value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper$1,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Form.Textarea,Object.assign({id:getControlId(name),onChange:function handleChange(event){onChange(event.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error"},{name,value:isValid?value:"",onFocus,onBlur})))},FileInput=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach((function(url){url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}var FilesControl=function FilesControl(_ref173){var onChange=_ref173.onChange,name=_ref173.name,_ref173$accept=_ref173.accept,accept=void 0===_ref173$accept?"image/*":_ref173$accept,value=_ref173.value;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(FileInput,{id:getControlId(name),type:"file",name,multiple:!0,onChange:function handleFileChange(e){if(e.target.files){var fileUrls=Array.from(e.target.files).map((function(file){return URL.createObjectURL(file)}));onChange(fileUrls),revokeOldUrls(value)}},accept,size:"flex"})},LazyColorControl=(0,react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(757).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+components@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/components/dist/esm/Color-f953d088.js"))})),ColorControl=function ColorControl(props){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51__.createElement(LazyColorControl,Object.assign({},props)))},Controls={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=function NoControl(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,"-")},ArgControl=function ArgControl(_ref174){var row=_ref174.row,arg=_ref174.arg,updateArgs=_ref174.updateArgs,key=row.key,control=row.control,_useState36=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isFocused=_useState36[0],setFocused=_useState36[1],_useState38=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)({value:arg}),2),boxedValue=_useState38[0],setBoxedValue=_useState38[1];(0,react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);var onChange=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(argVal){return setBoxedValue({value:argVal}),updateArgs(_defineProperty2({},key,argVal)),argVal}),[updateArgs,key]),onBlur=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!1)}),[]),onFocus=(0,react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!0)}),[]);if(!control||control.disable)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(NoControl,null);var props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls[control.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Control,Object.assign({},props,control,{controlType:control.type}))},Name=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({fontWeight:"bold"}),Required=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref175){var theme=_ref175.theme;return{color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}})),Description=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref176){var theme=_ref176.theme;return{"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:Object.assign(Object.assign({},codeCommon({theme})),{fontSize:12,fontFamily:theme.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}})),Type=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref177){var theme=_ref177.theme,hasDescription=_ref177.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}})),TypeWithJsDoc=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref178){var theme=_ref178.theme,hasDescription=_ref178.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}})),StyledTd$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref179){_ref179.theme;return{paddingLeft:_ref179.expandable?"40px !important":"20px !important"}})),ArgRow=function ArgRow(props){var _a,row=props.row,updateArgs=props.updateArgs,compact=props.compact,expandable=props.expandable,initialExpandedArgs=props.initialExpandedArgs,name=row.name,description=row.description,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=null===(_a=row.type)||void 0===_a?void 0:_a.required,hasDescription=null!=description&&""!==description;return react__WEBPACK_IMPORTED_MODULE_51__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTd$1,{expandable},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Name,null,name),required?react__WEBPACK_IMPORTED_MODULE_51__.createElement(Required,{title:"Required"},"*"):null),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,hasDescription&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(Markdown,null,description)),null!=table.jsDocTags?react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(TypeWithJsDoc,{hasDescription},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:type,initialExpandedArgs})),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgJsDoc,{tags:table.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_51__.createElement(Type,{hasDescription},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react__WEBPACK_IMPORTED_MODULE_51__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgControl,Object.assign({},props))):null)},ExpanderIcon=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo)(Icons)((function(_ref180){var theme=_ref180.theme;return{marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}})),FlexWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span((function(_ref181){_ref181.theme;return{display:"flex",lineHeight:"20px",alignItems:"center"}})),Section=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref182){var theme=_ref182.theme;return{position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.black,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:"".concat(theme.background.app," !important"),"& ~ td":{background:"".concat(theme.background.app," !important")}}})),Subsection=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref183){var theme=_ref183.theme;return{position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.content}})),StyledTd=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.td((function(_ref184){_ref184.theme;return{position:"relative"}})),StyledTr=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.tr((function(_ref185){var theme=_ref185.theme;return{"&:hover > td":{backgroundColor:"".concat(theme.background.hoverable," !important"),boxShadow:"".concat(theme.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}})),ClickIntercept=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}})),SectionRow=function SectionRow(_ref186){var _ref186$level=_ref186.level,level=void 0===_ref186$level?"section":_ref186$level,label=_ref186.label,children=_ref186.children,_ref186$initialExpand=_ref186.initialExpanded,initialExpanded=void 0===_ref186$initialExpand||_ref186$initialExpand,_ref186$colSpan=_ref186.colSpan,colSpan=void 0===_ref186$colSpan?3:_ref186$colSpan,_useState40=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpanded),2),expanded=_useState40[0],setExpanded=_useState40[1],Level="subsection"===level?Subsection:Section,itemCount=(null==children?void 0:children.length)||0,caption="subsection"===level?"".concat(itemCount," item").concat(1!==itemCount?"s":""):"",icon=expanded?"arrowdown":"arrowright",helperText="".concat(expanded?"Hide":"Show"," ").concat("subsection"===level?itemCount:label," item").concat(1!==itemCount?"s":"");return react__WEBPACK_IMPORTED_MODULE_51__.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTr,{title:helperText},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Level,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:0},helperText),react__WEBPACK_IMPORTED_MODULE_51__.createElement(FlexWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ExpanderIcon,{icon}),label)),react__WEBPACK_IMPORTED_MODULE_51__.createElement(StyledTd,{colSpan:colSpan-1},react__WEBPACK_IMPORTED_MODULE_51__.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},TableWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.table((function(_ref187){var _trFirstChild,_trLastChild,_3,theme=_ref187.theme,compact=_ref187.compact,inAddonPanel=_ref187.inAddonPanel;return{"&&":(_3={borderCollapse:"collapse",borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":Object.assign({},compact?null:{width:"35%"}),"td:nth-of-type(3)":Object.assign({},compact?null:{width:"15%"}),"th:last-of-type, td:last-of-type":Object.assign({paddingRight:20},compact?null:{width:"25%"}),th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1},_defineProperty2(_3,"tr:first-child",(_trFirstChild={},_defineProperty2(_trFirstChild,"td:first-child, th:first-child",{borderTopLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trFirstChild,"td:last-child, th:last-child",{borderTopRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trFirstChild)),_defineProperty2(_3,"tr:last-child",(_trLastChild={},_defineProperty2(_trLastChild,"td:first-child, th:first-child",{borderBottomLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trLastChild,"td:last-child, th:last-child",{borderBottomRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trLastChild)),_defineProperty2(_3,"tbody",{boxShadow:!inAddonPanel&&("light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 1px,\n ".concat(curriedTransparentize$1(.035,theme.appBorderColor)," 0 0 0 1px"):"rgba(0, 0, 0, 0.20) 0 2px 5px 1px,\n ".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 1px")),borderRadius:theme.appBorderRadius,"@media not all and (min-resolution:.001dpcm)":{"@supports (-webkit-appearance:none)":Object.assign(Object.assign({borderWidth:1,borderStyle:"solid"},inAddonPanel&&{borderColor:"transparent"}),!inAddonPanel&&{borderColor:"light"===theme.base?curriedTransparentize$1(.035,theme.appBorderColor):curriedOpacify$1(.05,theme.appBorderColor)})},tr:Object.assign({background:"transparent",overflow:"hidden"},inAddonPanel?{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)}:_defineProperty2({},"&:not(:first-child)",{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)})),td:{background:theme.background.content}}),_3)}}),(function(_ref189){var isLoading=_ref189.isLoading,theme=_ref189.theme;return isLoading?{"th span, td span, td button":{display:"inline",backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),color:"transparent",boxShadow:"none",borderRadius:0}}:{}})),ResetButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.button((function(_ref190){var theme=_ref190.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:"3px 8px",transition:"all 150ms ease-out",verticalAlign:"top",userSelect:"none",margin:0,backgroundColor:"light"===theme.base?"#EAF3FC":theme.color.border,boxShadow:"light"===theme.base?"".concat(theme.color.border," 0 0 0 1px inset"):"".concat(theme.color.darker," 0 0 0 1px inset"),color:theme.color.secondary,"&:hover":{background:"light"===theme.base?curriedDarken$1(.03,"#EAF3FC"):curriedOpacify$1(.1,theme.color.border)},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},svg:{display:"block",height:14,width:14}}})),ControlHeadingWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.span({display:"flex",justifyContent:"space-between"}),ArgsTableError;!function(ArgsTableError){ArgsTableError.NO_COMPONENT="No component found.",ArgsTableError.ARGS_UNSUPPORTED="Args unsupported. See Args documentation for your framework."}(ArgsTableError||(ArgsTableError={}));var sortFns={alpha:function alpha(a,b){return a.name.localeCompare(b.name)},requiredFirst:function requiredFirst(a,b){var _a,_b;return Number(!!(null===(_a=b.type)||void 0===_a?void 0:_a.required))-Number(!!(null===(_b=a.type)||void 0===_b?void 0:_b.required))||a.name.localeCompare(b.name)},none:void 0},rowLoadingData=function rowLoadingData(key){return{key,name:"propertyName",description:"This is a short description",control:{type:"text"},table:{type:{summary:"summary"},defaultValue:{summary:"defaultValue"}}}},argsTableLoadingData={rows:{row1:rowLoadingData("row1"),row2:rowLoadingData("row2"),row3:rowLoadingData("row3")}},groupRows=function groupRows(rows,sort){var sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((function(_ref191){var _ref192=_slicedToArray(_ref191,2),key=_ref192[0],row=_ref192[1],_ref193=(null==row?void 0:row.table)||{},category=_ref193.category,subcategory=_ref193.subcategory;if(category){var section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){var subsection=section.subsections[subcategory]||[];subsection.push(Object.assign({key},row)),section.subsections[subcategory]=subsection}else section.ungrouped.push(Object.assign({key},row));sections.sections[category]=section}else if(subcategory){var _subsection=sections.ungroupedSubsections[subcategory]||[];_subsection.push(Object.assign({key},row)),sections.ungroupedSubsections[subcategory]=_subsection}else sections.ungrouped.push(Object.assign({key},row))}));var sortFn=sortFns[sort],sortSubsection=function sortSubsection(record){return sortFn?Object.keys(record).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,record[cur].sort(sortFn)))}),{}):record};return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}))}),{})}},safeIncludeConditionalArg=function safeIncludeConditionalArg(row,args,globals){try{return(0,_storybook_csf__WEBPACK_IMPORTED_MODULE_53__.includeConditionalArg)(row,args,globals)}catch(err){return _storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__.IH.warn(err.message),!1}},ArgsTable=function ArgsTable(props){if("error"in props)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,props.error," ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var updateArgs=props.updateArgs,resetArgs=props.resetArgs,compact=props.compact,inAddonPanel=props.inAddonPanel,initialExpandedArgs=props.initialExpandedArgs,_props$sort=props.sort,sort=void 0===_props$sort?"none":_props$sort,isLoading="isLoading"in props,_ref194="rows"in props?props:argsTableLoadingData,rows=_ref194.rows,args=_ref194.args,globals=_ref194.globals,groups=groupRows(pickBy_1(rows,(function(row){var _a;return!(null===(_a=null==row?void 0:row.table)||void 0===_a?void 0:_a.disable)&&safeIncludeConditionalArg(row,args||{},globals||{})})),sort);if(0===groups.ungrouped.length&&0===Object.entries(groups.sections).length&&0===Object.entries(groups.ungroupedSubsections).length)return react__WEBPACK_IMPORTED_MODULE_51__.createElement(EmptyBlock,null,"No inputs found for this component. ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);var expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(TableWrapper,Object.assign({"aria-hidden":isLoading},{compact,inAddonPanel,isLoading},{className:"docblock-argstable"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_51__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Name")),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Description")),compact?null:react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,"Default")),updateArgs?react__WEBPACK_IMPORTED_MODULE_51__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetButton,{onClick:function onClick(){return resetArgs()},title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_51__.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row,arg:args&&args[row.key]},common))})),Object.entries(groups.ungroupedSubsections).map((function(_ref195){var _ref196=_slicedToArray(_ref195,2),subcategory=_ref196[0],subsection=_ref196[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row,arg:args&&args[row.key],expandable},common))})))})),Object.entries(groups.sections).map((function(_ref197){var _ref198=_slicedToArray(_ref197,2),category=_ref198[0],section=_ref198[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row,arg:args&&args[row.key]},common))})),Object.entries(section.subsections).map((function(_ref199){var _ref200=_slicedToArray(_ref199,2),subcategory=_ref200[0],subsection=_ref200[1];return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgRow,Object.assign({key:row.key,row,arg:args&&args[row.key],expandable},common))})))})))})))))},TabbedArgsTable=function TabbedArgsTable(_a){var tabs=_a.tabs,props=__rest(_a,["tabs"]),entries=Object.entries(tabs);return 1===entries.length?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgsTable,Object.assign({},entries[0][1],props)):react__WEBPACK_IMPORTED_MODULE_51__.createElement(TabsState,null,entries.map((function(entry){var _entry=_slicedToArray(entry,2),label=_entry[0],table=_entry[1],id="prop_table_div_".concat(label);return react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",{key:id,id,title:label},(function(_ref201){return _ref201.active?react__WEBPACK_IMPORTED_MODULE_51__.createElement(ArgsTable,Object.assign({key:"prop_table_".concat(label)},table,props)):null}))})))},NoControlsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref202){var theme=_ref202.theme;return{background:theme.background.warning,color:theme.color.darkest,padding:"10px 15px",lineHeight:"20px",boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset")}})),NoControlsWarning=function NoControlsWarning(){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(NoControlsWrapper,null,"This story is not configured to handle controls."," ",react__WEBPACK_IMPORTED_MODULE_51__.createElement(Link,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",cancel:!1,withArrow:!0},"Learn how to add controls"))},Label=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref203){var theme=_ref203.theme;return{marginRight:30,fontSize:"".concat(theme.typography.size.s1,"px"),color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),Sample=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div(withReset,(function(_ref204){var theme=_ref204.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{margin:"25px 0 40px",padding:"30px 20px"})})),Typeset=function Typeset(_a){var fontFamily=_a.fontFamily,fontSizes=_a.fontSizes,fontWeight=_a.fontWeight,sampleText=_a.sampleText,props=__rest(_a,["fontFamily","fontSizes","fontWeight","sampleText"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Wrapper,Object.assign({},props,{className:"docblock-typeset"}),fontSizes.map((function(size){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(TypeSpecimen,{key:size},react__WEBPACK_IMPORTED_MODULE_51__.createElement(Label,null,size),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))})))},ItemTitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref205){var theme=_ref205.theme;return{fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}})),ItemSubtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref206){var theme=_ref206.theme;return{color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),ItemDescription=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref207){var theme=_ref207.theme;return{flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}})),SwatchLabels=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"row"}),Swatch=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref208){return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:_ref208.background,content:'""'}}})),SwatchColors=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref209){var theme=_ref209.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})})),SwatchSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:1,display:"flex",flexDirection:"row"}),Item$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",alignItems:"flex-start"}),ListName=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:"0 0 30%"}),ListSwatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({flex:1}),ListHeading=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref210){var theme=_ref210.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),List$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref211){return{fontSize:_ref211.theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}}));function renderSwatch(color,index){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Swatch,{key:"".concat(color,"-").concat(index),title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabel,{key:"".concat(color,"-").concat(index),title:color},react__WEBPACK_IMPORTED_MODULE_51__.createElement("div",null,color,colorDescription&&react__WEBPACK_IMPORTED_MODULE_51__.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchColors,null,colors.map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabels,null,colors.map((function(color,index){return renderSwatchLabel(color,index)})))):react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchColors,null,Object.values(colors).map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51__.createElement(SwatchLabels,null,Object.keys(colors).map((function(color,index){return renderSwatchLabel(color,index,colors[color])}))))}var ColorItem=function ColorItem(_ref212){var title=_ref212.title,subtitle=_ref212.subtitle,colors=_ref212.colors;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item$1,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemDescription,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemTitle,null,title),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemSubtitle,null,subtitle)),react__WEBPACK_IMPORTED_MODULE_51__.createElement(Swatches,null,renderSwatchSpecimen(colors)))},ColorPalette=function ColorPalette(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(List$1,Object.assign({},props,{className:"docblock-colorpalette"}),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListHeading,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListName,null,"Name"),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ListSwatches,null,"Swatches")),children))},ItemLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref213){var theme=_ref213.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}})),ItemSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div((function(_ref214){var theme=_ref214.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})})),Item=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List=_storybook_theming__WEBPACK_IMPORTED_MODULE_55__.zo.div({display:"flex",flexFlow:"row wrap"}),IconItem=function IconItem(_ref215){var name=_ref215.name,children=_ref215.children;return react__WEBPACK_IMPORTED_MODULE_51__.createElement(Item,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemSpecimen,null,children),react__WEBPACK_IMPORTED_MODULE_51__.createElement(ItemLabel,null,name))},IconGallery=function IconGallery(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51__.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51__.createElement(List,Object.assign({},props,{className:"docblock-icongallery"}),children))},components=components$1,resetComponents={};Object.keys(components$1).forEach((function(key){resetComponents[key]=(0,react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return(0,react__WEBPACK_IMPORTED_MODULE_51__.createElement)(key,Object.assign(Object.assign({},props),{ref}))}))}))},"./node_modules/.pnpm/@storybook+core-client@6.5.16_react-dom@17.0.2_react@17.0.2_typescript@4.9.5_webpack@4.46.0/node_modules/@storybook/core-client/dist/esm/globals/globals.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var global__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js");__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_0__)().window.STORYBOOK_REACT_CLASSES={}},"./node_modules/.pnpm/@storybook+core-client@6.5.16_react-dom@17.0.2_react@17.0.2_typescript@4.9.5_webpack@4.46.0/node_modules/@storybook/core-client/dist/esm/globals/polyfills.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/index.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/features/symbol/index.js")},"./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var events;__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CHANNEL_CREATED:()=>CHANNEL_CREATED,CONFIG_ERROR:()=>CONFIG_ERROR,CURRENT_STORY_WAS_SET:()=>CURRENT_STORY_WAS_SET,DOCS_RENDERED:()=>DOCS_RENDERED,FORCE_REMOUNT:()=>FORCE_REMOUNT,FORCE_RE_RENDER:()=>FORCE_RE_RENDER,GLOBALS_UPDATED:()=>GLOBALS_UPDATED,IGNORED_EXCEPTION:()=>IGNORED_EXCEPTION,NAVIGATE_URL:()=>NAVIGATE_URL,PRELOAD_STORIES:()=>PRELOAD_STORIES,PREVIEW_KEYDOWN:()=>PREVIEW_KEYDOWN,REGISTER_SUBSCRIPTION:()=>REGISTER_SUBSCRIPTION,RESET_STORY_ARGS:()=>RESET_STORY_ARGS,SELECT_STORY:()=>SELECT_STORY,SET_CURRENT_STORY:()=>SET_CURRENT_STORY,SET_GLOBALS:()=>SET_GLOBALS,SET_STORIES:()=>SET_STORIES,SHARED_STATE_CHANGED:()=>SHARED_STATE_CHANGED,SHARED_STATE_SET:()=>SHARED_STATE_SET,STORIES_COLLAPSE_ALL:()=>STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL:()=>STORIES_EXPAND_ALL,STORY_ARGS_UPDATED:()=>STORY_ARGS_UPDATED,STORY_CHANGED:()=>STORY_CHANGED,STORY_ERRORED:()=>STORY_ERRORED,STORY_INDEX_INVALIDATED:()=>STORY_INDEX_INVALIDATED,STORY_MISSING:()=>STORY_MISSING,STORY_PREPARED:()=>STORY_PREPARED,STORY_RENDERED:()=>STORY_RENDERED,STORY_RENDER_PHASE_CHANGED:()=>STORY_RENDER_PHASE_CHANGED,STORY_SPECIFIED:()=>STORY_SPECIFIED,STORY_THREW_EXCEPTION:()=>STORY_THREW_EXCEPTION,STORY_UNCHANGED:()=>STORY_UNCHANGED,UPDATE_GLOBALS:()=>UPDATE_GLOBALS,UPDATE_QUERY_PARAMS:()=>UPDATE_QUERY_PARAMS,UPDATE_STORY_ARGS:()=>UPDATE_STORY_ARGS,default:()=>__WEBPACK_DEFAULT_EXPORT__}),function(events){events.CHANNEL_CREATED="channelCreated",events.CONFIG_ERROR="configError",events.STORY_INDEX_INVALIDATED="storyIndexInvalidated",events.STORY_SPECIFIED="storySpecified",events.SET_STORIES="setStories",events.SET_CURRENT_STORY="setCurrentStory",events.CURRENT_STORY_WAS_SET="currentStoryWasSet",events.FORCE_RE_RENDER="forceReRender",events.FORCE_REMOUNT="forceRemount",events.PRELOAD_STORIES="preloadStories",events.STORY_PREPARED="storyPrepared",events.STORY_CHANGED="storyChanged",events.STORY_UNCHANGED="storyUnchanged",events.STORY_RENDERED="storyRendered",events.STORY_MISSING="storyMissing",events.STORY_ERRORED="storyErrored",events.STORY_THREW_EXCEPTION="storyThrewException",events.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",events.UPDATE_STORY_ARGS="updateStoryArgs",events.STORY_ARGS_UPDATED="storyArgsUpdated",events.RESET_STORY_ARGS="resetStoryArgs",events.SET_GLOBALS="setGlobals",events.UPDATE_GLOBALS="updateGlobals",events.GLOBALS_UPDATED="globalsUpdated",events.REGISTER_SUBSCRIPTION="registerSubscription",events.PREVIEW_KEYDOWN="previewKeydown",events.SELECT_STORY="selectStory",events.STORIES_COLLAPSE_ALL="storiesCollapseAll",events.STORIES_EXPAND_ALL="storiesExpandAll",events.DOCS_RENDERED="docsRendered",events.SHARED_STATE_CHANGED="sharedStateChanged",events.SHARED_STATE_SET="sharedStateSet",events.NAVIGATE_URL="navigateUrl",events.UPDATE_QUERY_PARAMS="updateQueryParams"}(events||(events={}));const __WEBPACK_DEFAULT_EXPORT__=events;var CHANNEL_CREATED=events.CHANNEL_CREATED,CONFIG_ERROR=events.CONFIG_ERROR,STORY_INDEX_INVALIDATED=events.STORY_INDEX_INVALIDATED,STORY_SPECIFIED=events.STORY_SPECIFIED,SET_STORIES=events.SET_STORIES,SET_CURRENT_STORY=events.SET_CURRENT_STORY,CURRENT_STORY_WAS_SET=events.CURRENT_STORY_WAS_SET,FORCE_RE_RENDER=events.FORCE_RE_RENDER,FORCE_REMOUNT=events.FORCE_REMOUNT,STORY_PREPARED=events.STORY_PREPARED,STORY_CHANGED=events.STORY_CHANGED,STORY_UNCHANGED=events.STORY_UNCHANGED,PRELOAD_STORIES=events.PRELOAD_STORIES,STORY_RENDERED=events.STORY_RENDERED,STORY_MISSING=events.STORY_MISSING,STORY_ERRORED=events.STORY_ERRORED,STORY_THREW_EXCEPTION=events.STORY_THREW_EXCEPTION,STORY_RENDER_PHASE_CHANGED=events.STORY_RENDER_PHASE_CHANGED,UPDATE_STORY_ARGS=events.UPDATE_STORY_ARGS,STORY_ARGS_UPDATED=events.STORY_ARGS_UPDATED,RESET_STORY_ARGS=events.RESET_STORY_ARGS,SET_GLOBALS=events.SET_GLOBALS,UPDATE_GLOBALS=events.UPDATE_GLOBALS,GLOBALS_UPDATED=events.GLOBALS_UPDATED,REGISTER_SUBSCRIPTION=events.REGISTER_SUBSCRIPTION,PREVIEW_KEYDOWN=events.PREVIEW_KEYDOWN,SELECT_STORY=events.SELECT_STORY,STORIES_COLLAPSE_ALL=events.STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL=events.STORIES_EXPAND_ALL,DOCS_RENDERED=events.DOCS_RENDERED,SHARED_STATE_CHANGED=events.SHARED_STATE_CHANGED,SHARED_STATE_SET=events.SHARED_STATE_SET,NAVIGATE_URL=events.NAVIGATE_URL,UPDATE_QUERY_PARAMS=events.UPDATE_QUERY_PARAMS,IGNORED_EXCEPTION=new Error("ignoredException")},"./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/SBType.js":()=>{},"./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/includeConditionalArg.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.includeConditionalArg=exports.testValue=void 0;var _isEqual=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"));var count=function count(vals){return vals.map((function(v){return void 0!==v})).filter(Boolean).length},testValue=function testValue(cond,value){var _ref=cond,exists=_ref.exists,eq=_ref.eq,neq=_ref.neq,truthy=_ref.truthy;if(count([exists,eq,neq,truthy])>1)throw new Error("Invalid conditional test ".concat(JSON.stringify({exists,eq,neq})));if(void 0!==eq)return(0,_isEqual.default)(value,eq);if(void 0!==neq)return!(0,_isEqual.default)(value,neq);if(void 0!==exists){var valueExists=void 0!==value;return exists?valueExists:!valueExists}return void 0===truthy||truthy?!!value:!value};exports.testValue=testValue;exports.includeConditionalArg=function includeConditionalArg(argType,args,globals){if(!argType.if)return!0;var _ref2=argType.if,arg=_ref2.arg,global=_ref2.global;if(1!==count([arg,global]))throw new Error("Invalid conditional value ".concat(JSON.stringify({arg,global})));var value=arg?args[arg]:globals[global];return testValue(argType.if,value)}},"./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0,includeConditionalArg:!0};exports.isExportStory=function isExportStory(key,_ref){var includeStories=_ref.includeStories,excludeStories=_ref.excludeStories;return"__esModule"!==key&&(!includeStories||matches(key,includeStories))&&(!excludeStories||!matches(key,excludeStories))},Object.defineProperty(exports,"includeConditionalArg",{enumerable:!0,get:function get(){return _includeConditionalArg.includeConditionalArg}}),exports.parseKind=exports.storyNameFromExport=exports.toId=exports.sanitize=void 0;var _startCase=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/startCase.js")),_includeConditionalArg=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/includeConditionalArg.js"),_story=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/story.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};exports.sanitize=sanitize;var sanitizeSafe=function sanitizeSafe(string,part){var sanitized=sanitize(string);if(""===sanitized)throw new Error("Invalid ".concat(part," '").concat(string,"', must include alphanumeric characters"));return sanitized};exports.toId=function toId(kind,name){return"".concat(sanitizeSafe(kind,"kind")).concat(name?"--".concat(sanitizeSafe(name,"name")):"")};function matches(storyKey,arrayOrRegex){return Array.isArray(arrayOrRegex)?arrayOrRegex.includes(storyKey):storyKey.match(arrayOrRegex)}exports.storyNameFromExport=function storyNameFromExport(key){return(0,_startCase.default)(key)};exports.parseKind=function parseKind(kind,_ref2){var rootSeparator=_ref2.rootSeparator,groupSeparator=_ref2.groupSeparator,_kind$split2=_slicedToArray(kind.split(rootSeparator,2),2),root=_kind$split2[0],remainder=_kind$split2[1];return{root:remainder?root:null,groups:(remainder||kind).split(groupSeparator).filter((function(i){return!!i}))}}},"./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/story.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _SBType=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.0.2--canary.4566f4d.1/node_modules/@storybook/csf/dist/SBType.js");Object.keys(_SBType).forEach((function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SBType[key]}})}))},"./node_modules/.pnpm/@storybook+docs-tools@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>str});var str=function str(obj){if(!obj)return"";if("string"==typeof obj)return obj;throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)))}},"./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.23.2_@storybook+builder-webpack5@6.5.16_@storybook+mana_6igq53wtst2lyche5j4qd7r4ty/node_modules/@storybook/react/dist/esm/client/docs/config-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{argTypesEnhancers:()=>argTypesEnhancers,decorators:()=>decorators,parameters:()=>config_parameters});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),doctrine=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/lib/doctrine.js"));var TypeSystem,DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore"]},parseJsDoc=function parseJsDoc(value){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DEFAULT_OPTIONS;if(!function containsJsDoc(value){return null!=value&&value.includes("@")}(value))return{includesJsDoc:!1,ignore:!1};var jsDocAst=function parse(content,tags){var ast;try{ast=doctrine.parse(content,{tags,sloppy:!0})}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}(value,options.tags),extractedTags=function extractJsDocTags(ast){for(var extractedTags={params:null,returns:null,ignore:!1},i=0;iMAX_TYPE_SUMMARY_LENGTH}function isTooLongForDefaultValueSummary(value){return value.length>MAX_DEFAULT_VALUE_SUMMARY_LENGTH}function createSummaryValue(summary,detail){return summary===detail?{summary}:{summary,detail}}var FlowTypesType;function generateUnionElement(_ref){var name=_ref.name,value=_ref.value,elements=_ref.elements,raw=_ref.raw;return null!=value?value:null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw:name}function generateSignature(flowType){return"object"===flowType.type?function generateObjectSignature(_ref4){var type=_ref4.type,raw=_ref4.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(type,raw):createSummaryValue(raw):createSummaryValue(type)}(flowType):function generateFuncSignature(_ref3){var type=_ref3.type,raw=_ref3.raw;return createSummaryValue(null!=raw?raw:type)}(flowType)}function createType(type){if(null==type)return null;switch(type.name){case FlowTypesType.UNION:return function generateUnion(_ref2){var name=_ref2.name,raw=_ref2.raw,elements=_ref2.elements;return createSummaryValue(null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw.replace(/^\|\s*/,""):name)}(type);case FlowTypesType.SIGNATURE:return generateSignature(type);default:return function generateDefault(_ref5){var name=_ref5.name,raw=_ref5.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(name,raw):createSummaryValue(raw):createSummaryValue(name)}(type)}}!function(FlowTypesType){FlowTypesType.UNION="union",FlowTypesType.SIGNATURE="signature"}(FlowTypesType||(FlowTypesType={}));var BLACKLIST=["null","undefined"];function isDefaultValueBlacklisted(value){return BLACKLIST.some((function(x){return x===value}))}function createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return isTooLongForDefaultValueSummary(value)?createSummaryValue(type.name,value):createSummaryValue(value)}return null}function createType_createType(_ref){var tsType=_ref.tsType,required=_ref.required;return null==tsType?null:createSummaryValue(required?tsType.name:tsType.name.replace(" | undefined",""))}function createDefaultValue_createDefaultValue(_ref){var defaultValue=_ref.defaultValue;if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return createSummaryValue(value)}return null}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js");var convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":case"intersection":return Object.assign({},base,{name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},isLiteral=function isLiteral(type){return"literal"===type.name},toEnumOption=function toEnumOption(element){return element.value.replace(/['|"]/g,"")},flow_convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"literal":return Object.assign({},base,{name:"other",value:type.value});case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=flow_convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":return type.elements.every(isLiteral)?Object.assign({},base,{name:"enum",value:type.elements.map(toEnumOption)}):Object.assign({},base,{name,value:type.elements.map(convert)});case"intersection":return Object.assign({},base,{name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},mapValues=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),QUOTE_REGEX=/^['"]|['"]$/g,SIGNATURE_REGEXP=/^\(.*\) => /,proptypes_convert_convert=function convert(type){var name=type.name,raw=type.raw,computed=type.computed,value=type.value,base={};switch(void 0!==raw&&(base.raw=raw),name){case"enum":var _values=computed?value:value.map((function(v){var trimmedValue=function trimQuotes(str){return str.replace(QUOTE_REGEX,"")}(v.value);return function includesQuotes(str){return QUOTE_REGEX.test(str)}(v.value)||Number.isNaN(Number(trimmedValue))?trimmedValue:Number(trimmedValue)}));return Object.assign({},base,{name,value:_values});case"string":case"number":case"symbol":case"object":return Object.assign({},base,{name});case"func":return Object.assign({},base,{name:"function"});case"bool":case"boolean":return Object.assign({},base,{name:"boolean"});case"arrayOf":case"array":return Object.assign({},base,{name:"array",value:value&&convert(value)});case"objectOf":return Object.assign({},base,{name,value:convert(value)});case"shape":case"exact":var values=mapValues_default()(value,(function(field){return convert(field)}));return Object.assign({},base,{name:"object",value:values});case"union":return Object.assign({},base,{name:"union",value:value.map((function(v){return convert(v)}))});default:if((null==name?void 0:name.indexOf("|"))>0)try{var literalValues=name.split("|").map((function(v){return JSON.parse(v)}));return Object.assign({},base,{name:"enum",value:literalValues})}catch(err){}var otherVal=value?"".concat(name,"(").concat(value,")"):name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return Object.assign({},base,{name:otherName,value:otherVal})}},convert=function convert(docgenInfo){var type=docgenInfo.type,tsType=docgenInfo.tsType,flowType=docgenInfo.flowType;return null!=type?proptypes_convert_convert(type):null!=tsType?convert_convert(tsType):null!=flowType?flow_convert_convert(flowType):null};function createPropDef_createType(type){return null!=type?createSummaryValue(type.name):null}function createPropDef_createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return function isReactDocgenTypescript(defaultValue){var computed=defaultValue.computed,func=defaultValue.func;return void 0===computed&&void 0===func}(defaultValue)&&function isStringValued(type){return!!type&&("string"===type.name||"enum"===type.name&&Array.isArray(type.value)&&type.value.every((function(_ref){var tv=_ref.value;return"string"==typeof tv&&'"'===tv[0]&&'"'===tv[tv.length-1]})))}(type)?createSummaryValue(JSON.stringify(value)):createSummaryValue(value)}return null}function createBasicPropDef(name,type,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name,type:createPropDef_createType(type),required,description,defaultValue:createPropDef_createDefaultValue(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){var description=jsDocParsingResult.description,extractedTags=jsDocParsingResult.extractedTags;null!=description&&(propDef.description=jsDocParsingResult.description);var hasParams=null!=extractedTags.params,hasReturns=null!=extractedTags.returns&&null!=extractedTags.returns.type;(hasParams||hasReturns)&&(propDef.jsDocTags={params:hasParams&&extractedTags.params.map((function(x){return{name:x.getPrettyName(),description:x.description}})),returns:hasReturns&&{description:extractedTags.returns.description}})}return propDef}var javaScriptFactory=function javaScriptFactory(propName,docgenInfo,jsDocParsingResult){var propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},tsFactory=function tsFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createTsPropDef(propName,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required;return{name:propName,type:createType_createType(docgenInfo),required,description,defaultValue:createDefaultValue_createDefaultValue(docgenInfo)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},flowFactory=function flowFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createFlowPropDef(propName,docgenInfo){var flowType=docgenInfo.flowType,description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:propName,type:createType(flowType),required,description,defaultValue:createDefaultValue(defaultValue,flowType)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=function unknownFactory(propName,docgenInfo,jsDocParsingResult){return applyJsDocResult(createBasicPropDef(propName,{name:"unknown"},docgenInfo),jsDocParsingResult)},getPropDefFactory=function getPropDefFactory(typeSystem){switch(typeSystem){case TypeSystem.JAVASCRIPT:return javaScriptFactory;case TypeSystem.TYPESCRIPT:return tsFactory;case TypeSystem.FLOW:return flowFactory;default:return unknownFactory}},getTypeSystem=function getTypeSystem(docgenInfo){return null!=docgenInfo.type?TypeSystem.JAVASCRIPT:null!=docgenInfo.flowType?TypeSystem.FLOW:null!=docgenInfo.tsType?TypeSystem.TYPESCRIPT:TypeSystem.UNKNOWN},extractComponentProps=function extractComponentProps(component,section){var docgenSection=getDocgenSection(component,section);return function isValidDocgenSection(docgenSection){return null!=docgenSection&&Object.keys(docgenSection).length>0}(docgenSection)?Array.isArray(docgenSection)?function extractComponentSectionArray(docgenSection){var typeSystem=getTypeSystem(docgenSection[0]),createPropDef=getPropDefFactory(typeSystem);return docgenSection.map((function(item){var _item$type,sanitizedItem=item;return null!==(_item$type=item.type)&&void 0!==_item$type&&_item$type.elements&&(sanitizedItem=Object.assign({},item,{type:Object.assign({},item.type,{value:item.type.elements})})),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)}))}(docgenSection):function extractComponentSectionObject(docgenSection){var docgenPropsKeys=Object.keys(docgenSection),typeSystem=getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=getPropDefFactory(typeSystem);return docgenPropsKeys.map((function(propName){var docgenInfo=docgenSection[propName];return null!=docgenInfo?extractProp(propName,docgenInfo,typeSystem,createPropDef):null})).filter(Boolean)}(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){var jsDocParsingResult=parseJsDoc(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo,typeSystem}}var parameters=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"),prop_types=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types);function generateFuncSignature_generateFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];if(hasParams){var funcParams=params.map((function(x){var prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?"".concat(prettyName,": ").concat(typeName):prettyName}));funcParts.push("(".concat(funcParams.join(", "),")"))}else funcParts.push("()");return hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}function generateShortFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}var CUSTOM_CAPTION="custom",OBJECT_CAPTION="object",ARRAY_CAPTION="array",CLASS_CAPTION="class",FUNCTION_CAPTION="func",ELEMENT_CAPTION="element",html_tags=__webpack_require__("./node_modules/.pnpm/html-tags@3.2.0/node_modules/html-tags/index.js");function isHtmlTag(tagName){return html_tags.includes(tagName.toLowerCase())}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.starts-with.js");var escodegen=__webpack_require__("./node_modules/.pnpm/escodegen@2.0.0/node_modules/escodegen/escodegen.js"),esm=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS=Object.assign({},BASIC_OPTIONS,{format:{newline:""}}),PRETTY_OPTIONS=Object.assign({},BASIC_OPTIONS);function generateCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,escodegen.R_)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function generateCompactObjectCode(ast){var result=generateCode(ast,!0);result.endsWith(" }")||(result="".concat(result.slice(0,-1)," }"));return result}(ast):generateCode(ast)}function generateArrayCode(ast){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function generateCompactArrayCode(ast){var result=generateCode(ast,!0);result.startsWith("[ ")&&(result=result.replace("[ ","["));return result}(ast):function generateMultilineArrayCode(ast){var result=generateCode(ast);result.endsWith(" }]")&&(result=(0,esm.C)(result));return result}(ast)}var InspectionType,isMemo=function isMemo(component){return component.$$typeof===Symbol.for("react.memo")};!function(InspectionType){InspectionType.IDENTIFIER="Identifier",InspectionType.LITERAL="Literal",InspectionType.OBJECT="Object",InspectionType.ARRAY="Array",InspectionType.FUNCTION="Function",InspectionType.CLASS="Class",InspectionType.ELEMENT="Element",InspectionType.UNKNOWN="Unknown"}(InspectionType||(InspectionType={}));var acorn=__webpack_require__("./node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs"),acorn_jsx=__webpack_require__("./node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/index.js"),acorn_jsx_default=__webpack_require__.n(acorn_jsx);function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type];baseVisitor[type](node,st,c),found&&found(node,st)}(node,state,override)}Object.create;function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i1&&void 0!==arguments[1]&&arguments[1]))}function prettyArray(ast){return cleanPropTypes(generateCode(ast,arguments.length>1&&void 0!==arguments[1]&&arguments[1]))}function generateTypeFromString(value,originalTypeName){var short,compact,full,_inspectValue=inspectValue(value),inferredType=_inspectValue.inferredType,ast=_inspectValue.ast,type=inferredType.type;switch(type){case InspectionType.IDENTIFIER:case InspectionType.LITERAL:short=value,compact=value;break;case InspectionType.OBJECT:var depth=inferredType.depth;short=OBJECT_CAPTION,compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break;case InspectionType.ELEMENT:var identifier=inferredType.identifier;short=null==identifier||isHtmlTag(identifier)?ELEMENT_CAPTION:identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break;case InspectionType.ARRAY:var _depth=inferredType.depth;short=ARRAY_CAPTION,compact=_depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break;default:short=function getCaptionForInspectionType(type){switch(type){case InspectionType.OBJECT:return OBJECT_CAPTION;case InspectionType.ARRAY:return ARRAY_CAPTION;case InspectionType.CLASS:return CLASS_CAPTION;case InspectionType.FUNCTION:return FUNCTION_CAPTION;case InspectionType.ELEMENT:return ELEMENT_CAPTION;default:return CUSTOM_CAPTION}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short,compact,full,inferredType:type})}function objectOf(of){return"objectOf(".concat(of,")")}function generateEnum(type){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateEnumValue=function generateEnumValue(_ref7){var value=_ref7.value;return _ref7.computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v),short=_generateEnumValue.short,compact=_generateEnumValue.compact,full=_generateEnumValue.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.ENUM,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.ENUM,short:type.value,compact:type.value})}function braceAfter(of){return"".concat(of,"[]")}function braceAround(of){return"[".concat(of,"]")}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case PropTypesType.CUSTOM:return function generateCustom(_ref5){var raw=_ref5.raw;return null!=raw?generateTypeFromString(raw,PropTypesType.CUSTOM):createTypeDef({name:PropTypesType.CUSTOM,short:CUSTOM_CAPTION,compact:CUSTOM_CAPTION})}(type);case PropTypesType.FUNC:return function generateFunc(extractedProp){var jsDocTags=extractedProp.jsDocTags;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:PropTypesType.FUNC,short:FUNCTION_CAPTION,compact:FUNCTION_CAPTION}):createTypeDef({name:PropTypesType.FUNC,short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature_generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case PropTypesType.SHAPE:return function generateShape(type,extractedProp){var fields=Object.keys(type.value).map((function(key){return"".concat(key,": ").concat(generateType(type.value[key],extractedProp).full)})).join(", "),_inspectValue2=inspectValue("{ ".concat(fields," }")),inferredType=_inspectValue2.inferredType,ast=_inspectValue2.ast,depth=inferredType.depth;return createTypeDef({name:PropTypesType.SHAPE,short:OBJECT_CAPTION,compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case PropTypesType.INSTANCEOF:return createTypeDef({name:PropTypesType.INSTANCEOF,short:type.value,compact:type.value});case PropTypesType.OBJECTOF:return function generateObjectOf(type,extractedProp){var _generateType=generateType(type.value,extractedProp),short=_generateType.short,compact=_generateType.compact,full=_generateType.full;return createTypeDef({name:PropTypesType.OBJECTOF,short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:objectOf(full)})}(type,extractedProp);case PropTypesType.UNION:return function createType_generateUnion(type,extractedProp){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateType2=generateType(v,extractedProp),short=_generateType2.short,compact=_generateType2.compact,full=_generateType2.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.UNION,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.UNION,short:type.value,compact:null})}(type,extractedProp);case PropTypesType.ENUM:return generateEnum(type);case PropTypesType.ARRAYOF:return function generateArray(type,extractedProp){var _generateType3=generateType(type.value,extractedProp),name=_generateType3.name,short=_generateType3.short,compact=_generateType3.compact,full=_generateType3.full,inferredType=_generateType3.inferredType;if(name===PropTypesType.CUSTOM){if(inferredType===InspectionType.OBJECT)return createArrayOfObjectTypeDef(short,compact,full)}else if(name===PropTypesType.SHAPE)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}function generateObject(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(1===inferredType.depth){var compactObject=generateObjectCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactObject))return createSummaryValue(compactObject)}return createSummaryValue(OBJECT_CAPTION,generateObjectCode(ast))}function generateArray_generateArray(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(inferredType.depth<=2){var compactArray=generateArrayCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactArray))return createSummaryValue(compactArray)}return createSummaryValue(ARRAY_CAPTION,generateArrayCode(ast))}function getPrettyIdentifier(inferredType){var type=inferredType.type,identifier=inferredType.identifier;switch(type){case InspectionType.FUNCTION:return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case InspectionType.ELEMENT:return getPrettyElementIdentifier(identifier);default:return identifier}}function getPrettyFuncIdentifier(identifier,hasArguments){return"".concat(identifier,hasArguments?"( ... )":"()")}function getPrettyElementIdentifier(identifier){return"<".concat(identifier," />")}function defaultValues_createDefaultValue_createDefaultValue(defaultValue){try{var inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case InspectionType.OBJECT:return generateObject(inspectionResult);case InspectionType.FUNCTION:return function createDefaultValue_generateFunc(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(null!=inferredType.identifier)return createSummaryValue(getPrettyIdentifier(inferredType),generateCode(ast));var prettyCaption=generateCode(ast,!0);return isTooLongForDefaultValueSummary(prettyCaption)?createSummaryValue(FUNCTION_CAPTION,generateCode(ast)):createSummaryValue(prettyCaption)}(inspectionResult);case InspectionType.ELEMENT:return function generateElement(defaultValue,inspectionResult){var inferredType=inspectionResult.inferredType,identifier=inferredType.identifier;return null==identifier||isHtmlTag(identifier)?isTooLongForDefaultValueSummary(defaultValue)?createSummaryValue(ELEMENT_CAPTION,defaultValue):createSummaryValue(defaultValue):createSummaryValue(getPrettyIdentifier(inferredType),defaultValue)}(defaultValue,inspectionResult);case InspectionType.ARRAY:return generateArray_generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}!function(PropTypesType){PropTypesType.CUSTOM="custom",PropTypesType.ANY="any",PropTypesType.FUNC="func",PropTypesType.SHAPE="shape",PropTypesType.OBJECT="object",PropTypesType.INSTANCEOF="instanceOf",PropTypesType.OBJECTOF="objectOf",PropTypesType.UNION="union",PropTypesType.ENUM="enum",PropTypesType.ARRAYOF="arrayOf",PropTypesType.ELEMENT="element",PropTypesType.ELEMENTTYPE="elementType",PropTypesType.NODE="node"}(PropTypesType||(PropTypesType={}));__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js");var isPlainObject=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject),isFunction=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"),isFunction_default=__webpack_require__.n(isFunction),isString=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"),isString_default=__webpack_require__.n(isString),cjs=__webpack_require__("./node_modules/.pnpm/react-element-to-jsx-string@14.3.4_react-dom@17.0.2_react@17.0.2/node_modules/react-element-to-jsx-string/dist/cjs/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){var name=func.name;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:function stringResolver(rawDefaultProp){return createSummaryValue(JSON.stringify(rawDefaultProp))},object:function objectResolver(rawDefaultProp){return isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type?function generateReactObject(rawDefaultProp){var type=rawDefaultProp.type,displayName=type.displayName,jsx=(0,cjs.ZP)(rawDefaultProp,{});if(null!=displayName)return createSummaryValue(getPrettyElementIdentifier(displayName),jsx);if(isString_default()(type)&&isHtmlTag(type)){var jsxSummary=(0,cjs.ZP)(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!isTooLongForDefaultValueSummary(jsxSummary))return createSummaryValue(jsxSummary)}return createSummaryValue(ELEMENT_CAPTION,jsx)}(rawDefaultProp):isPlainObject_default()(rawDefaultProp)?generateObject(inspectValue(JSON.stringify(rawDefaultProp))):Array.isArray(rawDefaultProp)?generateArray_generateArray(inspectValue(JSON.stringify(rawDefaultProp))):createSummaryValue(OBJECT_CAPTION)},function:function functionResolver(rawDefaultProp,propDef){var inspectionResult,isElement=!1;if(isFunction_default()(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction_default()(rawDefaultProp.prototype.render))isElement=!0;else{var innerElement;try{var _ref=(inspectionResult=inspectValue(rawDefaultProp.toString())).inferredType,hasParams=_ref.hasParams,params=_ref.params;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch(e){}}var funcName=extractFunctionName(rawDefaultProp,propDef.name);return null!=funcName?isElement?createSummaryValue(getPrettyElementIdentifier(funcName)):(null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString())),createSummaryValue(getPrettyFuncIdentifier(funcName,inspectionResult.inferredType.hasParams))):createSummaryValue(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)},default:function defaultResolver(rawDefaultProp){return createSummaryValue(rawDefaultProp.toString())}};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef){var typeResolvers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DEFAULT_TYPE_RESOLVERS;try{switch(_typeof(rawDefaultProp)){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js");var rawDefaultPropTypeResolvers=function createTypeResolvers(){var customResolvers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},DEFAULT_TYPE_RESOLVERS,customResolvers)}({function:function funcResolver(rawDefaultProp,_ref){var name=_ref.name,type=_ref.type,isElement="element"===type.summary||"elementType"===type.summary,funcName=extractFunctionName(rawDefaultProp,name);return createSummaryValue(null!=funcName?isElement?getPrettyElementIdentifier(funcName):getPrettyFuncIdentifier(funcName,inspectValue(rawDefaultProp.toString()).inferredType.hasParams):isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)}});function enhancePropTypesProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,newtype=function propTypes_createType_createType(extractedProp){var type=extractedProp.docgenInfo.type;if(null==type)return null;try{switch(type.name){case PropTypesType.CUSTOM:case PropTypesType.SHAPE:case PropTypesType.INSTANCEOF:case PropTypesType.OBJECTOF:case PropTypesType.UNION:case PropTypesType.ENUM:case PropTypesType.ARRAYOF:var _generateType4=generateType(type,extractedProp),short=_generateType4.short,compact=_generateType4.compact,full=_generateType4.full;return null==compact||isTooLongForTypeSummary(compact)?createSummaryValue(short,full):createSummaryValue(compact);case PropTypesType.FUNC:var detail,_generateType5=generateType(type,extractedProp),_short=_generateType5.short,_full=_generateType5.full,summary=_short;return _full.lengtharr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var applyBeforeRender=function applyBeforeRender(domString,options){return"function"!=typeof options.onBeforeRender?domString:browser_default()(options.onBeforeRender,(0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n StoryFn.parameters.jsx.onBeforeRender was deprecated.\n Prefer StoryFn.parameters.jsx.transformSource instead.\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-onbeforerender for details.\n "]))))(domString)},renderJsx=function renderJsx(code,options){if(void 0===code)return client_logger_dist_esm.kg.warn("Too many skip or undefined component"),null;for(var renderedJSX=code,Type=renderedJSX.type,i=0;i1)return client_logger_dist_esm.kg.warn("Trying to skip an array of elements"),null;void 0===renderedJSX.props.children?(client_logger_dist_esm.kg.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,renderedJSX.props))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}var displayNameDefaults="string"==typeof options.displayName?{showFunctions:!0,displayName:function displayName(){return options.displayName}}:{displayName:function displayName(el){return el.type.displayName||getDocgenSection(el.type,"displayName")||("_default"!==el.type.name?el.type.name:null)||("function"==typeof el.type?"No Display Name":null)||(function isForwardRef(component){return component.$$typeof===Symbol.for("react.forward_ref")}(el.type)?el.type.render.name:null)||(isMemo(el.type)?el.type.type.name:null)||el.type}},filterDefaults={filterProps:function filterProps(value,key){return void 0!==value}},opts=Object.assign({},displayNameDefaults,filterDefaults,options),result=react.Children.map(code,(function(c){var child="number"==typeof c?c.toString():c,string=applyBeforeRender((0,cjs.ZP)(child,opts),options);if(string.indexOf(""")>-1){var matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((function(match){string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n");return result.replace(/function\s+noRefCheck\(\)\s+\{\}/,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=function mdxToJsx(node){if(!function isMdx(node){var _node$type,_node$props;return"MDXCreateElement"===(null===(_node$type=node.type)||void 0===_node$type?void 0:_node$type.displayName)&&!(null===(_node$props=node.props)||void 0===_node$props||!_node$props.mdxType)}(node))return node;var _node$props2=node.props,originalType=(_node$props2.mdxType,_node$props2.originalType),children=_node$props2.children,rest=_objectWithoutProperties(_node$props2,_excluded),jsxChildren=[];children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx));return react.createElement.apply(void 0,[originalType,rest].concat(_toConsumableArray(jsxChildren)))},config_parameters={docs:{inlineStories:!0,prepareForInline:function prepareForInline(storyFn){return storyFn()},extractArgTypes:function extractArgTypes(component){if(component){var _extractProps=function extractProps(component){return{rows:getPropDefs(component,"props")}}(component),rows=_extractProps.rows;if(rows)return rows.reduce((function(acc,row){var name=row.name,description=row.description,type=row.type,sbType=row.sbType,defaultSummary=row.defaultValue,jsDocTags=row.jsDocTags,required=row.required;return acc[name]={name,description,type:Object.assign({required},sbType),table:{type,jsDocTags,defaultValue:defaultSummary}},acc}),{})}return null},extractComponentDescription:function extractComponentDescription(component){return null!=component&&function getDocgenDescription(component){return hasDocgen(component)&&(0,string.B)(component.__docgenInfo.description)}(component)}}},decorators=[function jsxDecorator(storyFn,context){var _context$parameters$d2,_context$parameters$d3,channel=dist_esm.KP.getChannel(),skip=function skipJsxRender(context){var _context$parameters$d,sourceParams=null==context||null===(_context$parameters$d=context.parameters.docs)||void 0===_context$parameters$d?void 0:_context$parameters$d.source,isArgsStory=null==context?void 0:context.parameters.__isArgsStory;return(null==sourceParams?void 0:sourceParams.type)!==SourceType.DYNAMIC&&(!isArgsStory||(null==sourceParams?void 0:sourceParams.code)||(null==sourceParams?void 0:sourceParams.type)===SourceType.CODE)}(context),story=storyFn(),jsx="";if((0,hooks.d4)((function(){skip||channel.emit(SNIPPET_RENDERED,(context||{}).id,jsx)})),skip)return story;var options=Object.assign({},defaultOpts,(null==context?void 0:context.parameters.jsx)||{}),storyJsx=null!=context&&null!==(_context$parameters$d2=context.parameters.docs)&&void 0!==_context$parameters$d2&&null!==(_context$parameters$d3=_context$parameters$d2.source)&&void 0!==_context$parameters$d3&&_context$parameters$d3.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);return rendered&&(jsx=function applyTransformSource(domString,options,context){return"function"!=typeof options.transformSource?domString:options.transformSource(domString,context)}(rendered,options,context)),story}],argTypesEnhancers=[function enhanceArgTypes(context){var component=context.component,userArgTypes=context.argTypes,_context$parameters$d=context.parameters.docs,extractArgTypes=(void 0===_context$parameters$d?{}:_context$parameters$d).extractArgTypes,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?(0,parameters.f)(extractedArgTypes,userArgTypes):userArgTypes}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{addDecorator:()=>addDecorator,addParameters:()=>addParameters,composeStories:()=>testing_composeStories,composeStory:()=>testing_composeStory,configure:()=>configure,forceReRender:()=>forceReRender,getStorybook:()=>getStorybook,raw:()=>raw,setAddon:()=>setAddon,setGlobalConfig:()=>setGlobalConfig,setProjectAnnotations:()=>testing_setProjectAnnotations,storiesOf:()=>storiesOf});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js");var _templateObject,ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),memoizerific=(__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/memoizerific@1.11.3/node_modules/memoizerific/memoizerific.js")),memoizerific_default=__webpack_require__.n(memoizerific),mapValues=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),mapValues_default=__webpack_require__.n(mapValues),pick=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js"),pick_default=__webpack_require__.n(pick),global_window=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),synchronous_promise=__webpack_require__("./node_modules/.pnpm/synchronous-promise@2.0.16/node_modules/synchronous-promise/index.js"),esm=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{v:3,stories:{}}).stories;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,StoryIndexStore),this.channel=void 0,this.stories=void 0,this.stories=stories}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(StoryIndexStore,[{key:"storyIdFromSpecifier",value:function storyIdFromSpecifier(specifier){var storyIds=Object.keys(this.stories);if("*"===specifier)return storyIds[0];if("string"==typeof specifier)return storyIds.indexOf(specifier)>=0?specifier:storyIds.find((function(storyId){return storyId.startsWith(specifier)}));var name=specifier.name,title=specifier.title,match=Object.entries(this.stories).find((function(_ref2){var _ref3=_slicedToArray(_ref2,2),story=(_ref3[0],_ref3[1]);return story.name===name&&story.title===title}));return match&&match[0]}},{key:"storyIdToEntry",value:function storyIdToEntry(storyId){var storyEntry=this.stories[storyId];if(!storyEntry)throw new Error((0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["Couldn't find story matching '","' after HMR.\n - Did you remove it from your CSF file?\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages."])),storyId));return storyEntry}}]),StoryIndexStore}(),fast_deep_equal=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js")),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js"),isPlainObject=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject);function args_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return args_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||args_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function args_slicedToArray(arr,i){return function args_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function args_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||args_unsupportedIterableToArray(arr,i)||function args_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function args_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return args_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?args_arrayLikeToArray(o,minLen):void 0}}function args_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=value.length?res:res.concat(new Array(value.length-update.length).fill(void 0))}return isPlainObject_default()(value)&&isPlainObject_default()(update)?Object.keys(Object.assign({},value,update)).reduce((function(acc,key){var diff=deepDiff(null==value?void 0:value[key],null==update?void 0:update[key]);return diff===DEEPLY_EQUAL?acc:Object.assign(acc,_defineProperty({},key,diff))}),{}):update},NO_TARGET_NAME="";function groupArgsByTarget(_ref7){var args=_ref7.args,argTypes=_ref7.argTypes,groupedArgs={};return Object.entries(args).forEach((function(_ref8){var _ref9=args_slicedToArray(_ref8,2),name=_ref9[0],value=_ref9[1],_ref10$target=(argTypes[name]||{}).target,target=void 0===_ref10$target?NO_TARGET_NAME:_ref10$target;groupedArgs[target]=groupedArgs[target]||{},groupedArgs[target][name]=value})),groupedArgs}function ArgsStore_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(argTypes).reduce((function(acc,_ref){var _ref2=getValuesFromArgTypes_slicedToArray(_ref,2),arg=_ref2[0],defaultValue=_ref2[1].defaultValue;return void 0!==defaultValue&&(acc[arg]=defaultValue),acc}),{})};function GlobalsStore_slicedToArray(arr,i){return function GlobalsStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function GlobalsStore_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||GlobalsStore_unsupportedIterableToArray(arr,i)||function GlobalsStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GlobalsStore_toConsumableArray(arr){return function GlobalsStore_arrayWithoutHoles(arr){if(Array.isArray(arr))return GlobalsStore_arrayLikeToArray(arr)}(arr)||function GlobalsStore_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||GlobalsStore_unsupportedIterableToArray(arr)||function GlobalsStore_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GlobalsStore_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return GlobalsStore_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GlobalsStore_arrayLikeToArray(o,minLen):void 0}}function GlobalsStore_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i StoryFn.storyName\n- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.\n"]))),deprecatedStoryAnnotationWarning=browser_default()((function(){}),deprecatedStoryAnnotation);function normalizeStory(key,storyAnnotations,meta){var userStoryFn,storyObject;"function"==typeof storyAnnotations?(userStoryFn=storyAnnotations,storyObject=storyAnnotations):storyObject=storyAnnotations;var story=storyObject.story;story&&(dist_esm.kg.debug("deprecated story",story),deprecatedStoryAnnotationWarning());var exportName=(0,dist.storyNameFromExport)(key),name="function"!=typeof storyObject&&storyObject.name||storyObject.storyName||(null==story?void 0:story.name)||exportName,decorators=[].concat(normalizeStory_toConsumableArray(storyObject.decorators||[]),normalizeStory_toConsumableArray((null==story?void 0:story.decorators)||[])),parameters=Object.assign({},null==story?void 0:story.parameters,storyObject.parameters),args=Object.assign({},null==story?void 0:story.args,storyObject.args),argTypes=Object.assign({},null==story?void 0:story.argTypes,storyObject.argTypes),loaders=[].concat(normalizeStory_toConsumableArray(storyObject.loaders||[]),normalizeStory_toConsumableArray((null==story?void 0:story.loaders)||[])),_storyObject2=storyObject,render=_storyObject2.render,play=_storyObject2.play,id=parameters.__id||(0,dist.toId)(meta.id||meta.title,exportName);return Object.assign({id,name,decorators,parameters,args,argTypes:(0,normalizeInputTypes.x)(argTypes),loaders},render&&{render},userStoryFn&&{userStoryFn},play&&{play})}function normalizeComponentAnnotations(defaultExport){var title=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultExport.title,importPath=arguments.length>2?arguments[2]:void 0,id=defaultExport.id,argTypes=defaultExport.argTypes;return Object.assign({id:(0,dist.sanitize)(id||title)},defaultExport,{title},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},{parameters:Object.assign({fileName:importPath},defaultExport.parameters)})}var _excluded=["default","__namedExportsOrder"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var checkDisallowedParameters=function checkDisallowedParameters(parameters){parameters&&(function checkGlobals(parameters){var globals=parameters.globals,globalTypes=parameters.globalTypes;(globals||globalTypes)&&dist_esm.kg.error("Global args/argTypes can only be set globally",JSON.stringify({globals,globalTypes}))}(parameters),function checkStorySort(parameters){var options=parameters.options;null!=options&&options.storySort&&dist_esm.kg.error("The storySort option parameter can only be set globally")}(parameters))};function processCSFFile(moduleExports,importPath,title){var defaultExport=moduleExports.default,namedExports=(moduleExports.__namedExportsOrder,_objectWithoutProperties(moduleExports,_excluded)),meta=normalizeComponentAnnotations(defaultExport,title,importPath);checkDisallowedParameters(meta.parameters);var csfFile={meta,stories:{}};return Object.keys(namedExports).forEach((function(key){if((0,dist.isExportStory)(key,meta)){var storyMeta=normalizeStory(key,namedExports[key],meta);checkDisallowedParameters(storyMeta.parameters),csfFile.stories[storyMeta.id]=storyMeta}})),csfFile}var prepareStory_templateObject,esm_parameters=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"),hooks=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),decorators_excluded=["componentId","title","kind","id","name","story","parameters","initialArgs","argTypes"];function decorators_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function decorators_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function defaultDecorateStory(storyFn,decorators){var contextStore={},bindWithContext=function bindWithContext(decoratedStoryFn){return function(update){return contextStore.value=Object.assign({},contextStore.value,function sanitizeStoryContextUpdate(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _ref.componentId,_ref.title,_ref.kind,_ref.id,_ref.name,_ref.story,_ref.parameters,_ref.initialArgs,_ref.argTypes,decorators_objectWithoutProperties(_ref,decorators_excluded)}(update)),decoratedStoryFn(contextStore.value)}},decoratedWithContextStore=decorators.reduce((function(story,decorator){return function decorateStory(storyFn,decorator,bindWithContext){var boundStoryFunction=bindWithContext(storyFn);return function(context){return decorator(boundStoryFunction,context)}}(story,decorator,bindWithContext)}),storyFn);return function(context){return contextStore.value=context,decoratedWithContextStore(context)}}function prepareStory_slicedToArray(arr,i){return function prepareStory_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function prepareStory_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||prepareStory_unsupportedIterableToArray(arr,i)||function prepareStory_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function prepareStory_toConsumableArray(arr){return function prepareStory_arrayWithoutHoles(arr){if(Array.isArray(arr))return prepareStory_arrayLikeToArray(arr)}(arr)||function prepareStory_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||prepareStory_unsupportedIterableToArray(arr)||function prepareStory_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function prepareStory_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return prepareStory_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?prepareStory_arrayLikeToArray(o,minLen):void 0}}function prepareStory_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0;var passedArgs=Object.assign({},projectAnnotations.args,componentAnnotations.args,storyAnnotations.args),contextForEnhancers={componentId:componentAnnotations.id,title,kind:title,id,name,story:name,component:componentAnnotations.component,subcomponents:componentAnnotations.subcomponents,parameters,initialArgs:passedArgs,argTypes:passedArgTypes};contextForEnhancers.argTypes=argTypesEnhancers.reduce((function(accumulatedArgTypes,enhancer){return enhancer(Object.assign({},contextForEnhancers,{argTypes:accumulatedArgTypes}))}),contextForEnhancers.argTypes);var defaultArgs=getValuesFromArgTypes(contextForEnhancers.argTypes);Object.keys(defaultArgs).length>0&&argTypeDefaultValueWarning();var initialArgsBeforeEnhancers=Object.assign({},defaultArgs,passedArgs);contextForEnhancers.initialArgs=argsEnhancers.reduce((function(accumulatedArgs,enhancer){return Object.assign({},accumulatedArgs,enhancer(Object.assign({},contextForEnhancers,{initialArgs:accumulatedArgs})))}),initialArgsBeforeEnhancers),null!==(_global$FEATURES=window_default().FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.breakingChangesV7||(contextForEnhancers.parameters=Object.assign({},contextForEnhancers.parameters,{__id:id,globals:projectAnnotations.globals,globalTypes:projectAnnotations.globalTypes,args:contextForEnhancers.initialArgs,argTypes:contextForEnhancers.argTypes}));var applyLoaders=function(){var _ref=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(context){var loadResults,loaded;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all(loaders.map((function(loader){return loader(context)})));case 2:return loadResults=_context.sent,loaded=Object.assign.apply(Object,[{}].concat(prepareStory_toConsumableArray(loadResults))),_context.abrupt("return",Object.assign({},context,{loaded}));case 5:case"end":return _context.stop()}}),_callee)})));return function applyLoaders(_x){return _ref.apply(this,arguments)}}(),undecoratedStoryFn=function undecoratedStoryFn(context){var mappedArgs=Object.entries(context.args).reduce((function(acc,_ref2){var _context$argTypes$key,_ref3=prepareStory_slicedToArray(_ref2,2),key=_ref3[0],val=_ref3[1],mapping=null===(_context$argTypes$key=context.argTypes[key])||void 0===_context$argTypes$key?void 0:_context$argTypes$key.mapping;return acc[key]=mapping&&val in mapping?mapping[val]:val,acc}),{}),includedArgs=Object.entries(mappedArgs).reduce((function(acc,_ref4){var _ref5=prepareStory_slicedToArray(_ref4,2),key=_ref5[0],val=_ref5[1],argType=context.argTypes[key]||{};return(0,dist.includeConditionalArg)(argType,mappedArgs,context.globals)&&(acc[key]=val),acc}),{}),includedContext=Object.assign({},context,{args:includedArgs}),_context$parameters$p=context.parameters.passArgsFirst;return void 0===_context$parameters$p||_context$parameters$p?render(includedContext.args,includedContext):render(includedContext)},decoratedStoryFn=(0,hooks.DM)(applyDecorators)(undecoratedStoryFn,decorators),playFunction=storyAnnotations.play;return Object.freeze(Object.assign({},contextForEnhancers,{originalStoryFn:render,undecoratedStoryFn,unboundStoryFn:function unboundStoryFn(context){var _global$FEATURES2,finalContext=context;if(null!==(_global$FEATURES2=window_default().FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.argTypeTargetsV7){var argsByTarget=groupArgsByTarget(Object.assign({args:context.args},context));finalContext=Object.assign({},context,{allArgs:context.args,argsByTarget,args:argsByTarget[NO_TARGET_NAME]||{}})}return decoratedStoryFn(finalContext)},applyLoaders,playFunction}))}function inferArgTypes_typeof(obj){return inferArgTypes_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},inferArgTypes_typeof(obj)}var inferType=function inferType(value,name,visited){var type=inferArgTypes_typeof(value);switch(type){case"boolean":case"string":case"number":case"function":case"symbol":return{name:type}}return value?visited.has(value)?(dist_esm.kg.warn((0,esm.C)(inferArgTypes_templateObject||(inferArgTypes_templateObject=function inferArgTypes_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n We've detected a cycle in arg '","'. Args should be JSON-serializable.\n\n Consider using the mapping feature or fully custom args:\n - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values\n - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args\n "])),name)),{name:"other",value:"cyclic object"}):(visited.add(value),Array.isArray(value)?{name:"array",value:value.length>0?inferType(value[0],name,new Set(visited)):{name:"other",value:"unknown"}}:{name:"object",value:mapValues_default()(value,(function(field){return inferType(field,name,new Set(visited))}))}):{name:"object",value:{}}},inferArgTypes=function inferArgTypes(context){var id=context.id,_context$argTypes=context.argTypes,userArgTypes=void 0===_context$argTypes?{}:_context$argTypes,_context$initialArgs=context.initialArgs,initialArgs=void 0===_context$initialArgs?{}:_context$initialArgs,argTypes=mapValues_default()(initialArgs,(function(arg,key){return{name:key,type:inferType(arg,"".concat(id,".").concat(key),new Set)}})),userArgTypesNames=mapValues_default()(userArgTypes,(function(argType,key){return{name:key}}));return(0,esm_parameters.f)(argTypes,userArgTypesNames,userArgTypes)};inferArgTypes.secondPass=!0;var filterArgTypes=__webpack_require__("./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js"),inferControls=function inferControls(context){var argTypes=context.argTypes,_context$parameters=context.parameters,__isArgsStory=_context$parameters.__isArgsStory,_context$parameters$c=_context$parameters.controls,_context$parameters$c2=(_context$parameters$c=void 0===_context$parameters$c?{}:_context$parameters$c).include,include=void 0===_context$parameters$c2?null:_context$parameters$c2,_context$parameters$c3=_context$parameters$c.exclude,exclude=void 0===_context$parameters$c3?null:_context$parameters$c3,_context$parameters$c4=_context$parameters$c.matchers,matchers=void 0===_context$parameters$c4?{}:_context$parameters$c4;if(!__isArgsStory)return argTypes;var filteredArgTypes=(0,filterArgTypes.h)(argTypes,include,exclude),withControls=mapValues_default()(filteredArgTypes,(function(argType,name){return(null==argType?void 0:argType.type)&&function inferControl(argType,name,matchers){var type=argType.type,options=argType.options;if(type||options){if(matchers.color&&matchers.color.test(name)){var controlType=argType.type.name;if("string"===controlType)return{control:{type:"color"}};dist_esm.kg.warn('Addon controls: Control of type color only supports string, received "'.concat(controlType,'" instead'))}if(matchers.date&&matchers.date.test(name))return{control:{type:"date"}};switch(type.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":var value=type.value;return{control:{type:(null==value?void 0:value.length)<=5?"radio":"select"},options:value};case"function":case"symbol":return null;default:return{control:{type:options?"select":"object"}}}}}(argType,name,matchers)}));return(0,esm_parameters.f)(withControls,filteredArgTypes)};inferControls.secondPass=!0;var normalizeProjectAnnotations_excluded=["argTypes","globalTypes","argTypesEnhancers"];function normalizeProjectAnnotations_toConsumableArray(arr){return function normalizeProjectAnnotations_arrayWithoutHoles(arr){if(Array.isArray(arr))return normalizeProjectAnnotations_arrayLikeToArray(arr)}(arr)||function normalizeProjectAnnotations_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function normalizeProjectAnnotations_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return normalizeProjectAnnotations_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return normalizeProjectAnnotations_arrayLikeToArray(o,minLen)}(arr)||function normalizeProjectAnnotations_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function normalizeProjectAnnotations_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function normalizeProjectAnnotations(_ref){var argTypes=_ref.argTypes,globalTypes=_ref.globalTypes,argTypesEnhancers=_ref.argTypesEnhancers,annotations=normalizeProjectAnnotations_objectWithoutProperties(_ref,normalizeProjectAnnotations_excluded);return Object.assign({},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},globalTypes&&{globalTypes:(0,normalizeInputTypes.x)(globalTypes)},{argTypesEnhancers:[].concat(normalizeProjectAnnotations_toConsumableArray(argTypesEnhancers||[]),[inferArgTypes,inferControls])},annotations)}function StoryStore_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function StoryStore_slicedToArray(arr,i){return function StoryStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function StoryStore_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStore_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStore_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStore_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStore_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{includeDocsOnly:!1};if(!this.cachedCSFFiles)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.stories).reduce((function(acc,_ref11){var _ref12=StoryStore_slicedToArray(_ref11,2),storyId=_ref12[0],importPath=_ref12[1].importPath,csfFile=_this6.cachedCSFFiles[importPath],story=_this6.storyFromCSFFile({storyId,csfFile});return!options.includeDocsOnly&&story.parameters.docsOnly||(acc[storyId]=Object.entries(story).reduce((function(storyAcc,_ref13){var _ref14=StoryStore_slicedToArray(_ref13,2),key=_ref14[0],value=_ref14[1];return"function"==typeof value?storyAcc:Array.isArray(value)?Object.assign(storyAcc,StoryStore_defineProperty({},key,value.slice().sort())):Object.assign(storyAcc,StoryStore_defineProperty({},key,value))}),{args:story.initialArgs})),acc}),{})}},{key:"getSetStoriesPayload",value:function getSetStoriesPayload(){var stories=this.extract({includeDocsOnly:!0}),kindParameters=Object.values(stories).reduce((function(acc,_ref15){return acc[_ref15.title]={},acc}),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters,stories}}},{key:"raw",value:function raw(){var _this7=this;return Object.values(this.extract()).map((function(_ref16){var id=_ref16.id;return _this7.fromId(id)}))}},{key:"fromId",value:function fromId(storyId){var importPath,_this8=this;if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");try{importPath=this.storyIndex.storyIdToEntry(storyId).importPath}catch(err){return null}var csfFile=this.cachedCSFFiles[importPath],story=this.storyFromCSFFile({storyId,csfFile});return Object.assign({},story,{storyFn:function storyFn(update){var context=Object.assign({},_this8.getStoryContext(story),{viewMode:"story"});return story.unboundStoryFn(Object.assign({},context,update))}})}}]),StoryStore}(),core_events_dist_esm=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.get.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/.pnpm/@storybook+core-events@6.5.16/node_modules/@storybook/core-events/dist/esm/index.js")),addons_dist_esm=__webpack_require__("./node_modules/.pnpm/@storybook+addons@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js");function StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function StoryRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function StoryRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args9[0]?_args9[0]:{}).initial,initial=void 0!==_ref2$initial&&_ref2$initial,_ref2$forceRemount=_ref2.forceRemount,forceRemount=void 0!==_ref2$forceRemount&&_ref2$forceRemount,this.story){_context9.next=3;break}throw new Error("cannot render when not prepared");case 3:return _this$story=this.story,id=_this$story.id,componentId=_this$story.componentId,title=_this$story.title,name=_this$story.name,applyLoaders=_this$story.applyLoaders,unboundStoryFn=_this$story.unboundStoryFn,playFunction=_this$story.playFunction,forceRemount&&!initial&&(this.cancelRender(),this.abortController=createController()),abortSignal=this.abortController.signal,_context9.prev=6,_context9.next=9,this.runPhase(abortSignal,"loading",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){return regeneratorRuntime.wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.next=2,applyLoaders(Object.assign({},_this2.context(),{viewMode:_this2.viewMode}));case 2:loadedContext=_context5.sent;case 3:case"end":return _context5.stop()}}),_callee5)}))));case 9:if(!abortSignal.aborted){_context9.next=11;break}return _context9.abrupt("return");case 11:return renderStoryContext=Object.assign({},loadedContext,this.context(),{abortSignal,canvasElement:this.canvasElement}),_renderContext=Object.assign({componentId,title,kind:title,id,name,story:name},this.callbacks,{forceRemount:forceRemount||this.notYetRendered,storyContext:renderStoryContext,storyFn:function storyFn(){return unboundStoryFn(renderStoryContext)},unboundStoryFn}),_context9.next=15,this.runPhase(abortSignal,"rendering",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){return regeneratorRuntime.wrap((function _callee6$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:return _context6.abrupt("return",_this2.renderToScreen(_renderContext,_this2.canvasElement));case 1:case"end":return _context6.stop()}}),_callee6)}))));case 15:if(this.notYetRendered=!1,!abortSignal.aborted){_context9.next=18;break}return _context9.abrupt("return");case 18:if(!forceRemount||!playFunction){_context9.next=27;break}return this.disableKeyListeners=!0,_context9.next=22,this.runPhase(abortSignal,"playing",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){return regeneratorRuntime.wrap((function _callee7$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.abrupt("return",playFunction(_renderContext.storyContext));case 1:case"end":return _context7.stop()}}),_callee7)}))));case 22:return _context9.next=24,this.runPhase(abortSignal,"played");case 24:if(this.disableKeyListeners=!1,!abortSignal.aborted){_context9.next=27;break}return _context9.abrupt("return");case 27:return _context9.next=29,this.runPhase(abortSignal,"completed",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){return regeneratorRuntime.wrap((function _callee8$(_context8){for(;;)switch(_context8.prev=_context8.next){case 0:return _context8.abrupt("return",_this2.channel.emit(core_events_dist_esm.STORY_RENDERED,id));case 1:case"end":return _context8.stop()}}),_callee8)}))));case 29:_context9.next=34;break;case 31:_context9.prev=31,_context9.t0=_context9.catch(6),this.callbacks.showException(_context9.t0);case 34:case"end":return _context9.stop()}}),_callee9,this,[[6,31]])}))),function render(){return _render.apply(this,arguments)})},{key:"rerender",value:(_rerender=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return _context10.abrupt("return",this.render());case 1:case"end":return _context10.stop()}}),_callee10,this)}))),function rerender(){return _rerender.apply(this,arguments)})},{key:"remount",value:(_remount=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",this.render({forceRemount:!0}));case 1:case"end":return _context11.stop()}}),_callee11,this)}))),function remount(){return _remount.apply(this,arguments)})},{key:"cancelRender",value:function cancelRender(){this.abortController.abort()}},{key:"teardown",value:(_teardown=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){var i;return regeneratorRuntime.wrap((function _callee12$(_context12){for(;;)switch(_context12.prev=_context12.next){case 0:this.cancelRender(),this.story&&this.store.cleanupStory(this.story),i=0;case 4:if(!(i<3)){_context12.next=12;break}if(this.isPending()){_context12.next=7;break}return _context12.abrupt("return");case 7:return _context12.next=9,new Promise((function(resolve){return setTimeout(resolve,0)}));case 9:i+=1,_context12.next=4;break;case 12:return window_default().window.location.reload(),_context12.next=15,new Promise((function(){}));case 15:case"end":return _context12.stop()}}),_callee12,this)}))),function teardown(){return _teardown.apply(this,arguments)})}]),StoryRender}();function Preview_toConsumableArray(arr){return function Preview_arrayWithoutHoles(arr){if(Array.isArray(arr))return Preview_arrayLikeToArray(arr)}(arr)||function Preview_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function Preview_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return Preview_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Preview_arrayLikeToArray(o,minLen)}(arr)||function Preview_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Preview_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==_args12[1]?_args12[1]:{}).viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context12.next=4,null==render?void 0:render.teardown({viewModeChanged});case 4:case"end":return _context12.stop()}}),_callee12,this)}))),function teardownRender(_x7){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=Preview_asyncToGenerator(regeneratorRuntime.mark((function _callee13(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee13$(_context13){for(;;)switch(_context13.prev=_context13.next){case 0:if(!this.previewEntryError){_context13.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context13.next=4;break}throw new Error((0,esm.C)(Preview_templateObject2||(Preview_templateObject2=Preview_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default().FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context13.next=7;break}return _context13.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context13.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context13.stop()}}),_callee13,this)}))),function extract(_x8){return _extract.apply(this,arguments)})},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){this.previewEntryError=err,dist_esm.kg.error(reason),dist_esm.kg.error(err),this.channel.emit(core_events_dist_esm.CONFIG_ERROR,err)}}]),Preview}(),lib=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib);__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js");function parseArgsParam_slicedToArray(arr,i){return function parseArgsParam_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function parseArgsParam_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function parseArgsParam_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return parseArgsParam_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return parseArgsParam_arrayLikeToArray(o,minLen)}(arr,i)||function parseArgsParam_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function parseArgsParam_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"",value=arguments.length>1?arguments[1]:void 0;return null!==key&&(!(""===key||!VALIDATION_REGEXP.test(key))&&(null==value||(value instanceof Date||("number"==typeof value||"boolean"==typeof value||("string"==typeof value?VALIDATION_REGEXP.test(value)||NUMBER_REGEXP.test(value)||HEX_REGEXP.test(value)||COLOR_REGEXP.test(value):Array.isArray(value)?value.every((function(v){return validateArgs(key,v)})):!!isPlainObject_default()(value)&&Object.entries(value).every((function(_ref){var _ref2=parseArgsParam_slicedToArray(_ref,2),k=_ref2[0],v=_ref2[1];return validateArgs(k,v)})))))))},QS_OPTIONS={delimiter:";",allowDots:!0,allowSparse:!0,decoder:function(_decoder){function decoder(_x,_x2,_x3,_x4){return _decoder.apply(this,arguments)}return decoder.toString=function(){return _decoder.toString()},decoder}((function(str,defaultDecoder,charset,type){if("value"===type&&str.startsWith("!")){if("!undefined"===str)return;if("!null"===str)return null;if(str.startsWith("!date(")&&str.endsWith(")"))return new Date(str.slice(6,-1));if(str.startsWith("!hex(")&&str.endsWith(")"))return"#".concat(str.slice(5,-1));var color=str.slice(1).match(COLOR_REGEXP);if(color)return str.startsWith("!rgba")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],", ").concat(color[5],")"):str.startsWith("!hsla")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%, ").concat(color[5],")"):str.startsWith("!rgb")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],")"):"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%)")}return"value"===type&&NUMBER_REGEXP.test(str)?Number(str):defaultDecoder(str,defaultDecoder,charset)}))},parseArgsParam=function parseArgsParam(argsString){var parts=argsString.split(";").map((function(part){return part.replace("=","~").replace(":","=")}));return Object.entries(lib_default().parse(parts.join(";"),QS_OPTIONS)).reduce((function(acc,_ref3){var _ref4=parseArgsParam_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return validateArgs(key,value)?Object.assign(acc,function parseArgsParam_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,value)):(dist_esm.IH.warn((0,esm.C)(parseArgsParam_templateObject||(parseArgsParam_templateObject=function parseArgsParam_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Omitted potentially unsafe URL args.\n\n More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url\n "])))),acc)}),{})},UrlStore_excluded=["path","selectedKind","selectedStory"];function UrlStore_defineProperties(target,props){for(var i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var UrlStore_history=window_default().history,UrlStore_document=window_default().document;var WebView_templateObject,getQueryString=function getQueryString(_ref){var selection=_ref.selection,extraParams=_ref.extraParams,_document$location$se=UrlStore_document.location.search,search=void 0===_document$location$se?"":_document$location$se,_qs$parse=lib_default().parse(search,{ignoreQueryPrefix:!0}),rest=(_qs$parse.path,_qs$parse.selectedKind,_qs$parse.selectedStory,UrlStore_objectWithoutProperties(_qs$parse,UrlStore_excluded));return lib_default().stringify(Object.assign({},rest,extraParams,selection&&{id:selection.storyId,viewMode:selection.viewMode}),{encode:!1,addQueryPrefix:!0})},getFirstString=function getFirstString(v){return"string"==typeof v?v:Array.isArray(v)?getFirstString(v[0]):function isObject(val){return null!=val&&"object"===UrlStore_typeof(val)&&!1===Array.isArray(val)}(v)?getFirstString(Object.values(v)):void 0},deprecatedLegacyQuery=browser_default()((function(){return 0}),"URL formats with `selectedKind` and `selectedName` query parameters are deprecated.\nUse `id=$storyId` instead.\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-url-structure"),getSelectionSpecifierFromPath=function getSelectionSpecifierFromPath(){var query=lib_default().parse(UrlStore_document.location.search,{ignoreQueryPrefix:!0}),args="string"==typeof query.args?parseArgsParam(query.args):void 0,globals="string"==typeof query.globals?parseArgsParam(query.globals):void 0,viewMode=getFirstString(query.viewMode);"string"==typeof viewMode&&viewMode.match(/docs|story/)||(viewMode="story");var path=getFirstString(query.path),storyId=path?function pathToId(path){var match=(path||"").match(/^\/story\/(.+)/);if(!match)throw new Error("Invalid path '".concat(path,"', must start with '/story/'"));return match[1]}(path):getFirstString(query.id);if(storyId)return{storySpecifier:storyId,args,globals,viewMode};var title=getFirstString(query.selectedKind),name=getFirstString(query.selectedStory);return title&&name?(deprecatedLegacyQuery(),{storySpecifier:{title,name},args,globals,viewMode}):null},UrlStore=function(){function UrlStore(){!function UrlStore_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,UrlStore),this.selectionSpecifier=void 0,this.selection=void 0,this.selectionSpecifier=getSelectionSpecifierFromPath()}return function UrlStore_createClass(Constructor,protoProps,staticProps){return protoProps&&UrlStore_defineProperties(Constructor.prototype,protoProps),staticProps&&UrlStore_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(UrlStore,[{key:"setSelection",value:function setSelection(selection){this.selection=selection,function setPath(selection){if(selection){var query=getQueryString({selection}),_document$location$ha=UrlStore_document.location.hash,hash=void 0===_document$location$ha?"":_document$location$ha;UrlStore_document.title=selection.storyId,UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}(this.selection)}},{key:"setQueryParams",value:function setQueryParams(queryParams){var query=getQueryString({extraParams:queryParams}),_document$location$ha2=UrlStore_document.location.hash,hash=void 0===_document$location$ha2?"":_document$location$ha2;UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}]),UrlStore}(),ansi_to_html=__webpack_require__("./node_modules/.pnpm/ansi-to-html@0.6.15/node_modules/ansi-to-html/lib/ansi_to_html.js"),ansi_to_html_default=__webpack_require__.n(ansi_to_html);function WebView_slicedToArray(arr,i){return function WebView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function WebView_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function WebView_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return WebView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WebView_arrayLikeToArray(o,minLen)}(arr,i)||function WebView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WebView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"padded";if("none"===layout)return WebView_document.body.classList.remove(this.currentLayoutClass),void(this.currentLayoutClass=null);this.checkIfLayoutExists(layout);var layoutClass=layoutClassMap[layout];WebView_document.body.classList.remove(this.currentLayoutClass),WebView_document.body.classList.add(layoutClass),this.currentLayoutClass=layoutClass}},{key:"checkIfLayoutExists",value:function checkIfLayoutExists(layout){layoutClassMap[layout]||dist_esm.kg.warn((0,esm.C)(WebView_templateObject||(WebView_templateObject=function WebView_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["The desired layout: "," is not a valid option.\n The possible options are: ",", none."])),layout,Object.keys(layoutClassMap).join(", ")))}},{key:"showMode",value:function showMode(mode){clearTimeout(this.preparingTimeout),Object.keys(Mode).forEach((function(otherMode){otherMode===mode?WebView_document.body.classList.add(classes[otherMode]):WebView_document.body.classList.remove(classes[otherMode])}))}},{key:"showErrorDisplay",value:function showErrorDisplay(_ref){var _ref$message=_ref.message,message=void 0===_ref$message?"":_ref$message,_ref$stack=_ref.stack,header=message,detail=void 0===_ref$stack?"":_ref$stack,parts=message.split("\n");parts.length>1&&(header=WebView_slicedToArray(parts,1)[0],detail=parts.slice(1).join("\n"));WebView_document.getElementById("error-message").innerHTML=ansiConverter.toHtml(header),WebView_document.getElementById("error-stack").innerHTML=ansiConverter.toHtml(detail),this.showMode(Mode.ERROR)}},{key:"showNoPreview",value:function showNoPreview(){var _this$storyRoot,_this$docsRoot;this.testing||(this.showMode(Mode.NOPREVIEW),null===(_this$storyRoot=this.storyRoot())||void 0===_this$storyRoot||_this$storyRoot.setAttribute("hidden","true"),null===(_this$docsRoot=this.docsRoot())||void 0===_this$docsRoot||_this$docsRoot.setAttribute("hidden","true"))}},{key:"showPreparingStory",value:function showPreparingStory(){var _this=this,_ref2$immediate=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).immediate,immediate=void 0!==_ref2$immediate&&_ref2$immediate;clearTimeout(this.preparingTimeout),immediate?this.showMode(Mode.PREPARING_STORY):this.preparingTimeout=setTimeout((function(){return _this.showMode(Mode.PREPARING_STORY)}),100)}},{key:"showPreparingDocs",value:function showPreparingDocs(){var _this2=this;clearTimeout(this.preparingTimeout),this.preparingTimeout=setTimeout((function(){return _this2.showMode(Mode.PREPARING_DOCS)}),100)}},{key:"showMain",value:function showMain(){this.showMode(Mode.MAIN)}},{key:"showDocs",value:function showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}},{key:"showStory",value:function showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}},{key:"showStoryDuringRender",value:function showStoryDuringRender(){WebView_document.body.classList.add(classes.MAIN)}}]),WebView}();function DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function DocsRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function DocsRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args4[0]?_args4[0]:{}).viewModeChanged&&this.canvasElement){_context4.next=3;break}return _context4.abrupt("return");case 3:return _context4.next=5,__webpack_require__.e(199).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+preview-web@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/preview-web/dist/esm/renderDocs.js"));case 5:_context4.sent.unmountDocs(this.canvasElement);case 7:case"end":return _context4.stop()}}),_callee4,this)}))),function teardown(){return _teardown.apply(this,arguments)})}],[{key:"fromStoryRender",value:function fromStoryRender(storyRender){return new DocsRender(storyRender.channel,storyRender.store,storyRender.id,storyRender.story)}}]),DocsRender}();function PreviewWeb_typeof(obj){return PreviewWeb_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},PreviewWeb_typeof(obj)}function PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function PreviewWeb_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function PreviewWeb_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function PreviewWeb_defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new UrlStore,webview=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WebView;return function PreviewWeb_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,PreviewWeb),(_this=_super.call(this)).urlStore=void 0,_this.view=void 0,_this.previewEntryError=void 0,_this.currentSelection=void 0,_this.currentRender=void 0,_this.view=webview,_this.urlStore=urlStore,_this.storyStore.getSelection=browser_default()((function(){return _this.urlStore.selection}),(0,esm.C)(PreviewWeb_templateObject||(PreviewWeb_templateObject=PreviewWeb_taggedTemplateLiteral(["\n `__STORYBOOK_STORY_STORE__.getSelection()` is deprecated and will be removed in 7.0.\n \n To get the current selection, use the `useStoryContext()` hook from `@storybook/addons`.\n "],["\n \\`__STORYBOOK_STORY_STORE__.getSelection()\\` is deprecated and will be removed in 7.0.\n \n To get the current selection, use the \\`useStoryContext()\\` hook from \\`@storybook/addons\\`.\n "])))),_this}return function PreviewWeb_createClass(Constructor,protoProps,staticProps){return protoProps&&PreviewWeb_defineProperties(Constructor.prototype,protoProps),staticProps&&PreviewWeb_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(PreviewWeb,[{key:"setupListeners",value:function setupListeners(){_get(_getPrototypeOf(PreviewWeb.prototype),"setupListeners",this).call(this),globalWindow.onkeydown=this.onKeydown.bind(this),this.channel.on(core_events_dist_esm.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(core_events_dist_esm.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(core_events_dist_esm.PRELOAD_STORIES,this.onPreloadStories.bind(this))}},{key:"initializeWithProjectAnnotations",value:function initializeWithProjectAnnotations(projectAnnotations){var _this2=this;return _get(_getPrototypeOf(PreviewWeb.prototype),"initializeWithProjectAnnotations",this).call(this,projectAnnotations).then((function(){return _this2.setInitialGlobals()}))}},{key:"setInitialGlobals",value:(_setInitialGlobals=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var _ref,globals;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:_ref=this.urlStore.selectionSpecifier||{},(globals=_ref.globals)&&this.storyStore.globals.updateFromPersisted(globals),this.emitGlobals();case 3:case"end":return _context.stop()}}),_callee,this)}))),function setInitialGlobals(){return _setInitialGlobals.apply(this,arguments)})},{key:"initializeWithStoryIndex",value:function initializeWithStoryIndex(storyIndex){var _this3=this;return _get(_getPrototypeOf(PreviewWeb.prototype),"initializeWithStoryIndex",this).call(this,storyIndex).then((function(){var _global$FEATURES;return null!==(_global$FEATURES=window_default().FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.storyStoreV7||_this3.channel.emit(core_events_dist_esm.SET_STORIES,_this3.storyStore.getSetStoriesPayload()),_this3.selectSpecifiedStory()}))}},{key:"selectSpecifiedStory",value:(_selectSpecifiedStory=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var _this$urlStore$select,storySpecifier,viewMode,args,storyId;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(this.urlStore.selectionSpecifier){_context2.next=3;break}return this.renderMissingStory(),_context2.abrupt("return");case 3:if(_this$urlStore$select=this.urlStore.selectionSpecifier,storySpecifier=_this$urlStore$select.storySpecifier,viewMode=_this$urlStore$select.viewMode,args=_this$urlStore$select.args,storyId=this.storyStore.storyIndex.storyIdFromSpecifier(storySpecifier)){_context2.next=8;break}return"*"===storySpecifier?this.renderStoryLoadingException(storySpecifier,new Error((0,esm.C)(PreviewWeb_templateObject2||(PreviewWeb_templateObject2=PreviewWeb_taggedTemplateLiteral(["\n Couldn't find any stories in your Storybook.\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages.\n "]))))):this.renderStoryLoadingException(storySpecifier,new Error((0,esm.C)(_templateObject3||(_templateObject3=PreviewWeb_taggedTemplateLiteral(["\n Couldn't find story matching '","'.\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages.\n "])),storySpecifier))),_context2.abrupt("return");case 8:return this.urlStore.setSelection({storyId,viewMode}),this.channel.emit(core_events_dist_esm.STORY_SPECIFIED,this.urlStore.selection),this.channel.emit(core_events_dist_esm.CURRENT_STORY_WAS_SET,this.urlStore.selection),_context2.next=13,this.renderSelection({persistedArgs:args});case 13:case"end":return _context2.stop()}}),_callee2,this)}))),function selectSpecifiedStory(){return _selectSpecifiedStory.apply(this,arguments)})},{key:"onGetProjectAnnotationsChanged",value:(_onGetProjectAnnotationsChanged=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee3(_ref2){var getProjectAnnotations;return regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return getProjectAnnotations=_ref2.getProjectAnnotations,_context3.next=3,_get(_getPrototypeOf(PreviewWeb.prototype),"onGetProjectAnnotationsChanged",this).call(this,{getProjectAnnotations});case 3:this.renderSelection();case 4:case"end":return _context3.stop()}}),_callee3,this)}))),function onGetProjectAnnotationsChanged(_x){return _onGetProjectAnnotationsChanged.apply(this,arguments)})},{key:"onStoriesChanged",value:(_onStoriesChanged=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee4(_ref3){var _global$FEATURES2,importFn,storyIndex;return regeneratorRuntime.wrap((function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:if(importFn=_ref3.importFn,storyIndex=_ref3.storyIndex,_get(_getPrototypeOf(PreviewWeb.prototype),"onStoriesChanged",this).call(this,{importFn,storyIndex}),null!==(_global$FEATURES2=window_default().FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.storyStoreV7){_context4.next=9;break}return _context4.t0=this.channel,_context4.t1=core_events_dist_esm.SET_STORIES,_context4.next=7,this.storyStore.getSetStoriesPayload();case 7:_context4.t2=_context4.sent,_context4.t0.emit.call(_context4.t0,_context4.t1,_context4.t2);case 9:if(!this.urlStore.selection){_context4.next=14;break}return _context4.next=12,this.renderSelection();case 12:_context4.next=16;break;case 14:return _context4.next=16,this.selectSpecifiedStory();case 16:case"end":return _context4.stop()}}),_callee4,this)}))),function onStoriesChanged(_x2){return _onStoriesChanged.apply(this,arguments)})},{key:"onKeydown",value:function onKeydown(event){var _this$currentRender;if(!(null!==(_this$currentRender=this.currentRender)&&void 0!==_this$currentRender&&_this$currentRender.disableKeyListeners||function focusInInput(event){var target=event.target;return/input|textarea/i.test(target.tagName)||null!==target.getAttribute("contenteditable")}(event))){var altKey=event.altKey,ctrlKey=event.ctrlKey,metaKey=event.metaKey,shiftKey=event.shiftKey,key=event.key,code=event.code,keyCode=event.keyCode;this.channel.emit(core_events_dist_esm.PREVIEW_KEYDOWN,{event:{altKey,ctrlKey,metaKey,shiftKey,key,code,keyCode}})}}},{key:"onSetCurrentStory",value:function onSetCurrentStory(selection){this.urlStore.setSelection(Object.assign({viewMode:"story"},selection)),this.channel.emit(core_events_dist_esm.CURRENT_STORY_WAS_SET,this.urlStore.selection),this.renderSelection()}},{key:"onUpdateQueryParams",value:function onUpdateQueryParams(queryParams){this.urlStore.setQueryParams(queryParams)}},{key:"onUpdateGlobals",value:(_onUpdateGlobals=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee5(_ref4){var globals;return regeneratorRuntime.wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:if(globals=_ref4.globals,_get(_getPrototypeOf(PreviewWeb.prototype),"onUpdateGlobals",this).call(this,{globals}),!(this.currentRender instanceof DocsRender)){_context5.next=5;break}return _context5.next=5,this.currentRender.rerender(!0);case 5:case"end":return _context5.stop()}}),_callee5,this)}))),function onUpdateGlobals(_x3){return _onUpdateGlobals.apply(this,arguments)})},{key:"onUpdateArgs",value:(_onUpdateArgs=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee6(_ref5){var storyId,updatedArgs;return regeneratorRuntime.wrap((function _callee6$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:if(storyId=_ref5.storyId,updatedArgs=_ref5.updatedArgs,_get(_getPrototypeOf(PreviewWeb.prototype),"onUpdateArgs",this).call(this,{storyId,updatedArgs}),!(this.currentRender instanceof DocsRender)){_context6.next=5;break}return _context6.next=5,this.currentRender.rerender(!1);case 5:case"end":return _context6.stop()}}),_callee6,this)}))),function onUpdateArgs(_x4){return _onUpdateArgs.apply(this,arguments)})},{key:"onPreloadStories",value:(_onPreloadStories=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee7(ids){var _this4=this;return regeneratorRuntime.wrap((function _callee7$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.next=2,Promise.all(ids.map((function(id){return _this4.storyStore.loadStory({storyId:id})})));case 2:case"end":return _context7.stop()}}),_callee7)}))),function onPreloadStories(_x5){return _onPreloadStories.apply(this,arguments)})},{key:"renderSelection",value:(_renderSelection=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var _this$currentSelectio,_this$currentSelectio2,_lastRender,_global$FEATURES3,persistedArgs,selection,storyId,storyIdChanged,viewModeChanged,lastSelection,lastRender,storyRender,implementationChanged,_storyRender$context,parameters,initialArgs,argTypes,args,_this5=this,_args8=arguments;return regeneratorRuntime.wrap((function _callee8$(_context8){for(;;)switch(_context8.prev=_context8.next){case 0:if(persistedArgs=(_args8.length>0&&void 0!==_args8[0]?_args8[0]:{}).persistedArgs,selection=this.urlStore.selection){_context8.next=4;break}throw new Error("Cannot render story as no selection was made");case 4:if(storyId=selection.storyId,storyIdChanged=(null===(_this$currentSelectio=this.currentSelection)||void 0===_this$currentSelectio?void 0:_this$currentSelectio.storyId)!==storyId,viewModeChanged=(null===(_this$currentSelectio2=this.currentSelection)||void 0===_this$currentSelectio2?void 0:_this$currentSelectio2.viewMode)!==selection.viewMode,"story"===selection.viewMode?this.view.showPreparingStory({immediate:viewModeChanged}):this.view.showPreparingDocs(),lastSelection=this.currentSelection,lastRender=this.currentRender,null===(_lastRender=lastRender)||void 0===_lastRender||!_lastRender.isPreparing()){_context8.next=14;break}return _context8.next=13,this.teardownRender(lastRender);case 13:lastRender=null;case 14:return storyRender=new StoryRender(this.channel,this.storyStore,(function(){return _this5.view.showStoryDuringRender(),_this5.renderToDOM.apply(_this5,arguments)}),this.mainStoryCallbacks(storyId),storyId,"story"),this.currentSelection=selection,this.currentRender=storyRender,_context8.prev=17,_context8.next=20,storyRender.prepare();case 20:_context8.next=29;break;case 22:if(_context8.prev=22,_context8.t0=_context8.catch(17),_context8.t0===PREPARE_ABORTED){_context8.next=28;break}return _context8.next=27,this.teardownRender(lastRender);case 27:this.renderStoryLoadingException(storyId,_context8.t0);case 28:return _context8.abrupt("return");case 29:if(implementationChanged=!storyIdChanged&&!storyRender.isEqual(lastRender),persistedArgs&&this.storyStore.args.updateFromPersisted(storyRender.story,persistedArgs),_storyRender$context=storyRender.context(),parameters=_storyRender$context.parameters,initialArgs=_storyRender$context.initialArgs,argTypes=_storyRender$context.argTypes,args=_storyRender$context.args,!lastRender||storyIdChanged||implementationChanged||viewModeChanged){_context8.next=37;break}return this.currentRender=lastRender,this.channel.emit(core_events_dist_esm.STORY_UNCHANGED,storyId),this.view.showMain(),_context8.abrupt("return");case 37:return _context8.next=39,this.teardownRender(lastRender,{viewModeChanged});case 39:lastSelection&&(storyIdChanged||viewModeChanged)&&this.channel.emit(core_events_dist_esm.STORY_CHANGED,storyId),null!==(_global$FEATURES3=window_default().FEATURES)&&void 0!==_global$FEATURES3&&_global$FEATURES3.storyStoreV7&&this.channel.emit(core_events_dist_esm.STORY_PREPARED,{id:storyId,parameters,initialArgs,argTypes,args}),(implementationChanged||persistedArgs)&&this.channel.emit(core_events_dist_esm.STORY_ARGS_UPDATED,{storyId,args}),"docs"===selection.viewMode||parameters.docsOnly?(this.currentRender=DocsRender.fromStoryRender(storyRender),this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))):(this.storyRenders.push(storyRender),this.currentRender.renderToElement(this.view.prepareForStory(storyRender.story)));case 43:case"end":return _context8.stop()}}),_callee8,this,[[17,22]])}))),function renderSelection(){return _renderSelection.apply(this,arguments)})},{key:"renderStoryToElement",value:function renderStoryToElement(story,element){var _this6=this,render=new StoryRender(this.channel,this.storyStore,this.renderToDOM,this.inlineStoryCallbacks(story.id),story.id,"docs",story);return render.renderToElement(element),this.storyRenders.push(render),PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){return regeneratorRuntime.wrap((function _callee9$(_context9){for(;;)switch(_context9.prev=_context9.next){case 0:return _context9.next=2,_this6.teardownRender(render);case 2:case"end":return _context9.stop()}}),_callee9)})))}},{key:"teardownRender",value:(_teardownRender=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee10(render){var viewModeChanged,_args10=arguments;return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return viewModeChanged=(_args10.length>1&&void 0!==_args10[1]?_args10[1]:{}).viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context10.next=4,null==render?void 0:render.teardown({viewModeChanged});case 4:case"end":return _context10.stop()}}),_callee10,this)}))),function teardownRender(_x6){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee11(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:if(!this.previewEntryError){_context11.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context11.next=4;break}throw new Error((0,esm.C)(_templateObject4||(_templateObject4=PreviewWeb_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default().FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context11.next=7;break}return _context11.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context11.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context11.stop()}}),_callee11,this)}))),function extract(_x7){return _extract.apply(this,arguments)})},{key:"mainStoryCallbacks",value:function mainStoryCallbacks(storyId){var _this7=this;return{showMain:function showMain(){return _this7.view.showMain()},showError:function showError(err){return _this7.renderError(storyId,err)},showException:function showException(err){return _this7.renderException(storyId,err)}}}},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.kg.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){_get(_getPrototypeOf(PreviewWeb.prototype),"renderPreviewEntryError",this).call(this,reason,err),this.view.showErrorDisplay(err)}},{key:"renderMissingStory",value:function renderMissingStory(){this.view.showNoPreview(),this.channel.emit(core_events_dist_esm.STORY_MISSING)}},{key:"renderStoryLoadingException",value:function renderStoryLoadingException(storySpecifier,err){dist_esm.kg.error("Unable to load story '".concat(storySpecifier,"':")),dist_esm.kg.error(err),this.view.showErrorDisplay(err),this.channel.emit(core_events_dist_esm.STORY_MISSING,storySpecifier)}},{key:"renderException",value:function renderException(storyId,err){this.channel.emit(core_events_dist_esm.STORY_THREW_EXCEPTION,err),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId}),err!==core_events_dist_esm.IGNORED_EXCEPTION&&(this.view.showErrorDisplay(err),dist_esm.kg.error("Error rendering story '".concat(storyId,"':")),dist_esm.kg.error(err))}},{key:"renderError",value:function renderError(storyId,_ref9){var title=_ref9.title,description=_ref9.description;dist_esm.kg.error("Error rendering story ".concat(title,": ").concat(description)),this.channel.emit(core_events_dist_esm.STORY_ERRORED,{title,description}),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId}),this.view.showErrorDisplay({message:title,stack:description})}}]),PreviewWeb}(Preview),channels_dist_esm=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/.pnpm/@storybook+channels@6.5.16/node_modules/@storybook/channels/dist/esm/index.js")),telejson_dist_esm=__webpack_require__("./node_modules/.pnpm/telejson@6.0.8/node_modules/telejson/dist/esm/index.js");function esm_toConsumableArray(arr){return function esm_arrayWithoutHoles(arr){if(Array.isArray(arr))return esm_arrayLikeToArray(arr)}(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||function esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function esm_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function esm_slicedToArray(arr,i){return esm_arrayWithHoles(arr)||function esm_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||esm_unsupportedIterableToArray(arr,i)||esm_nonIterableRest()}function esm_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function esm_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return esm_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?esm_arrayLikeToArray(o,minLen):void 0}}function esm_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i manager ':' preview ',eventString=Object.values(core_events_dist_esm).includes(event.type)?''.concat(event.type,""):''.concat(event.type,"");if(refId&&(event.refId=refId),event.source="preview"===this.config.page?rawEvent.origin:getEventSourceUrl(rawEvent),!event.source)return void dist_esm.IC.error("".concat(pageString," received ").concat(eventString," but was unable to determine the source of the event"));var message="".concat(pageString," received ").concat(eventString," (").concat(data.length,")");dist_esm.IC.debug.apply(dist_esm.IC,[esm_location.origin!==event.source?message:"".concat(message,' (on ').concat(esm_location.origin," from ").concat(event.source,")")].concat(esm_toConsumableArray(event.args))),this.handler(event)}}catch(error){dist_esm.kg.error(error)}}}]),PostmsgTransport}(),getEventSourceUrl=function getEventSourceUrl(event){var _frames$filter=esm_toConsumableArray(esm_document.querySelectorAll("iframe[data-is-storybook]")).filter((function(element){try{return element.contentWindow===event.source}catch(err){}var origin,src=element.getAttribute("src");try{origin=new URL(src,esm_document.location).origin}catch(err){return!1}return origin===event.origin})),_frames$filter2=function _toArray(arr){return esm_arrayWithHoles(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||esm_nonIterableRest()}(_frames$filter),frame=_frames$filter2[0],remainder=_frames$filter2.slice(1);if(frame&&0===remainder.length){var src=frame.getAttribute("src"),_URL2=new URL(src,esm_document.location),protocol=_URL2.protocol,host=_URL2.host,pathname=_URL2.pathname;return"".concat(protocol,"//").concat(host).concat(pathname)}return remainder.length>0&&dist_esm.kg.error("found multiple candidates for event source"),null};__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js");function executeLoadable_slicedToArray(arr,i){return function executeLoadable_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function executeLoadable_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function executeLoadable_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return executeLoadable_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return executeLoadable_arrayLikeToArray(o,minLen)}(arr,i)||function executeLoadable_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function executeLoadable_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},decorateStory=_ref.decorateStory,render=_ref.render;if(start_globalWindow&&(start_globalWindow.IS_STORYBOOK=!0),null!=FEATURES&&FEATURES.storyStoreV7)return{forceReRender:removedApi("forceReRender"),getStorybook:removedApi("getStorybook"),configure:removedApi("configure"),clientApi:{addDecorator:removedApi("clientApi.addDecorator"),addParameters:removedApi("clientApi.addParameters"),clearDecorators:removedApi("clientApi.clearDecorators"),addLoader:removedApi("clientApi.addLoader"),setAddon:removedApi("clientApi.setAddon"),getStorybook:removedApi("clientApi.getStorybook"),storiesOf:removedApi("clientApi.storiesOf"),raw:removedApi("raw")}};var channel=function createChannel(_ref5){var page=_ref5.page,transport=new PostmsgTransport({page});return new channels_dist_esm.Z({transport})}({page:"preview"});addons_dist_esm.KP.setChannel(channel);var clientApi=new ClientApi.ti,preview=new PreviewWeb,initialized=!1,importFn=function importFn(path){return clientApi.importFn(path)};function onStoriesChanged(){var storyIndex=clientApi.getStoryIndex();preview.onStoriesChanged({storyIndex,importFn})}return clientApi.onImportFnChanged=onStoriesChanged,clientApi.storyStore=preview.storyStore,start_globalWindow&&(start_globalWindow.__STORYBOOK_CLIENT_API__=clientApi,start_globalWindow.__STORYBOOK_ADDONS_CHANNEL__=channel,start_globalWindow.__STORYBOOK_PREVIEW__=preview,start_globalWindow.__STORYBOOK_STORY_STORE__=preview.storyStore),{forceReRender:function forceReRender(){return channel.emit(core_events_dist_esm.default.FORCE_RE_RENDER)},getStorybook:function getStorybook(){return[]},raw:function raw(){},clientApi,configure:function configure(framework,loadable,m){(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])&&configureDeprecationWarning(),clientApi.addParameters({framework});var getProjectAnnotations=function getProjectAnnotations(){var _executeLoadableForCh=executeLoadableForChanges(loadable,m),added=_executeLoadableForCh.added,removed=_executeLoadableForCh.removed;return Array.from(added.entries()).forEach((function(_ref2){var _ref3=start_slicedToArray(_ref2,2),fileName=_ref3[0],fileExports=_ref3[1];return clientApi.facade.addStoriesFromExports(fileName,fileExports)})),Array.from(removed.entries()).forEach((function(_ref4){var fileName=start_slicedToArray(_ref4,1)[0];return clientApi.facade.clearFilenameExports(fileName)})),Object.assign({render},clientApi.facade.projectAnnotations,{renderToDOM,applyDecorators:decorateStory})};initialized?(getProjectAnnotations(),onStoriesChanged()):(preview.initialize({getStoryIndex:function getStoryIndex(){return clientApi.getStoryIndex()},importFn,getProjectAnnotations}),initialized=!0)}}}dist.toId,ClientApi.ti;var globals_globalWindow=window_default().window;globals_globalWindow&&(globals_globalWindow.STORYBOOK_ENV="react");var render=__webpack_require__("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.23.2_@storybook+builder-webpack5@6.5.16_@storybook+mana_6igq53wtst2lyche5j4qd7r4ty/node_modules/@storybook/react/dist/esm/client/preview/render.js"),framework="react",api=start(render.A,{render:render.s}),storiesOf=function storiesOf(kind,m){return api.clientApi.storiesOf(kind,m).addParameters({framework})},configure=function configure(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return api.configure.apply(api,[framework].concat(args))},addDecorator=api.clientApi.addDecorator,addParameters=api.clientApi.addParameters,setAddon=(api.clientApi.clearDecorators,api.clientApi.setAddon),forceReRender=api.forceReRender,getStorybook=api.clientApi.getStorybook,raw=api.clientApi.raw;function composeConfigs_toConsumableArray(arr){return function composeConfigs_arrayWithoutHoles(arr){if(Array.isArray(arr))return composeConfigs_arrayLikeToArray(arr)}(arr)||function composeConfigs_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function composeConfigs_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return composeConfigs_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return composeConfigs_arrayLikeToArray(o,minLen)}(arr)||function composeConfigs_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function composeConfigs_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS={};function setProjectAnnotations(projectAnnotations){var annotations=Array.isArray(projectAnnotations)?projectAnnotations:[projectAnnotations];GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS=function composeConfigs(moduleExportList){var allArgTypeEnhancers=getArrayField(moduleExportList,"argTypesEnhancers");return{parameters:esm_parameters.f.apply(void 0,composeConfigs_toConsumableArray(getField(moduleExportList,"parameters"))),decorators:getArrayField(moduleExportList,"decorators"),args:getObjectField(moduleExportList,"args"),argsEnhancers:getArrayField(moduleExportList,"argsEnhancers"),argTypes:getObjectField(moduleExportList,"argTypes"),argTypesEnhancers:[].concat(composeConfigs_toConsumableArray(allArgTypeEnhancers.filter((function(e){return!e.secondPass}))),composeConfigs_toConsumableArray(allArgTypeEnhancers.filter((function(e){return e.secondPass})))),globals:getObjectField(moduleExportList,"globals"),globalTypes:getObjectField(moduleExportList,"globalTypes"),loaders:getArrayField(moduleExportList,"loaders"),render:getSingletonField(moduleExportList,"render"),renderToDOM:getSingletonField(moduleExportList,"renderToDOM"),applyDecorators:getSingletonField(moduleExportList,"applyDecorators")}}(annotations)}function composeStories(storiesImport,globalConfig,composeStoryFn){var meta=storiesImport.default,stories=(storiesImport.__esModule,storiesImport.__namedExportsOrder,testing_utils_objectWithoutProperties(storiesImport,testing_utils_excluded));return Object.entries(stories).reduce((function(storiesMap,_ref){var _ref2=testing_utils_slicedToArray(_ref,2),exportsName=_ref2[0],story=_ref2[1];return(0,dist.isExportStory)(exportsName,meta)?Object.assign(storiesMap,function testing_utils_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},exportsName,composeStoryFn(story,meta,globalConfig,exportsName))):storiesMap}),{})}function testing_setProjectAnnotations(projectAnnotations){setProjectAnnotations(projectAnnotations)}function setGlobalConfig(projectAnnotations){dist_esm.IH.warn("setGlobalConfig is deprecated. Use setProjectAnnotations instead."),testing_setProjectAnnotations(projectAnnotations)}var defaultProjectAnnotations={render:render.s};function testing_composeStory(story,componentAnnotations,projectAnnotations,exportsName){return function composeStory(storyAnnotations,componentAnnotations){var _componentAnnotations,_storyAnnotations$sto,projectAnnotations=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS,defaultConfig=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},exportsName=arguments.length>4?arguments[4]:void 0;if(void 0===storyAnnotations)throw new Error("Expected a story but received undefined.");componentAnnotations.title=null!==(_componentAnnotations=componentAnnotations.title)&&void 0!==_componentAnnotations?_componentAnnotations:"ComposedStory";var normalizedComponentAnnotations=normalizeComponentAnnotations(componentAnnotations),storyName=exportsName||storyAnnotations.storyName||(null===(_storyAnnotations$sto=storyAnnotations.story)||void 0===_storyAnnotations$sto?void 0:_storyAnnotations$sto.name)||storyAnnotations.name,story=prepareStory(normalizeStory(storyName,storyAnnotations,normalizedComponentAnnotations),normalizedComponentAnnotations,normalizeProjectAnnotations(Object.assign({},projectAnnotations,defaultConfig))),defaultGlobals=getValuesFromArgTypes(projectAnnotations.globalTypes),composedStory=function composedStory(extraArgs){var context=Object.assign({},story,{hooks:new hooks.c8,globals:defaultGlobals,args:Object.assign({},story.initialArgs,extraArgs)});return story.unboundStoryFn(context)};return composedStory.storyName=storyName,composedStory.args=story.initialArgs,composedStory.play=story.playFunction,composedStory.parameters=story.parameters,composedStory}(story,componentAnnotations,projectAnnotations,defaultProjectAnnotations,exportsName)}function testing_composeStories(csfExports,projectAnnotations){return composeStories(csfExports,projectAnnotations,testing_composeStory)}(module=__webpack_require__.hmd(module))&&module.hot},"./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.23.2_@storybook+builder-webpack5@6.5.16_@storybook+mana_6igq53wtst2lyche5j4qd7r4ty/node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{parameters:()=>parameters,render:()=>render.s,renderToDOM:()=>render.A});var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),render=__webpack_require__("./node_modules/.pnpm/@storybook+react@6.5.16_@babel+core@7.23.2_@storybook+builder-webpack5@6.5.16_@storybook+mana_6igq53wtst2lyche5j4qd7r4ty/node_modules/@storybook/react/dist/esm/client/preview/render.js"),parameters={framework:"react"};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>renderToDOM,s:()=>render});__webpack_require__("./node_modules/.pnpm/regenerator-runtime@0.13.11/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js");var global__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_14__),react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/.pnpm/react-dom@17.0.2_react@17.0.2/node_modules/react-dom/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>normalizeInputTypes});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js");var lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__),_excluded=["type","control"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var normalizeInputType=function normalizeInputType(inputType,key){var type=inputType.type,control=inputType.control,rest=_objectWithoutProperties(inputType,_excluded),normalized=Object.assign({name:key},rest);return type&&(normalized.type=function normalizeType(type){return"string"==typeof type?{name:type}:type}(type)),control?normalized.control=function normalizeControl(control){return"string"==typeof control?{type:control}:control}(control):!1===control&&(normalized.control={disable:!0}),normalized},normalizeInputTypes=function normalizeInputTypes(inputTypes){return lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default()(inputTypes,normalizeInputType)}},"./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>filterArgTypes});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js");var lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js"),lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__),matches=function matches(name,descriptor){return Array.isArray(descriptor)?descriptor.includes(name):name.match(descriptor)},filterArgTypes=function filterArgTypes(argTypes,include,exclude){return include||exclude?argTypes&&lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default()(argTypes,(function(argType,key){var name=argType.name||key;return(!include||matches(name,include))&&(!exclude||!matches(name,exclude))})):argTypes}},"./node_modules/.pnpm/@storybook+store@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>combineParameters});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js");var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";var react__WEBPACK_IMPORTED_MODULE_37___namespace_cache;__webpack_require__.d(__webpack_exports__,{$n:()=>lightenColor,F4:()=>keyframes,Fg:()=>useTheme,OQ:()=>convert,R_:()=>isPropValid,_j:()=>darkenColor,f6:()=>ThemeProvider,np:()=>themes,xB:()=>Global,zo:()=>styled,zx:()=>ensure});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.global-this.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-names.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/.pnpm/memoizerific@1.11.3/node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_38__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/.pnpm/@storybook+client-logger@6.5.16/node_modules/@storybook/client-logger/dist/esm/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&32==peek()&&32==next()))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:34!==type&&39!==type&&delimiter(character);break;case 40:41===type&&delimiter(type);break;case 92:next()}return position}function commenter(type,index){for(;next()&&type+character!==57&&(type+character!==84||47!==peek()););return"/*"+slice(index,position-1)+"*"+from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character=0,type="",props=rules,children=rulesets,reference=rule,characters=type;scanning;)switch(previous=character,character=next()){case 40:if(108!=previous&&58==characters.charCodeAt(length-1)){-1!=indexof(characters+=replace(delimit(character),"&","&\f"),"&\f")&&(ampersand=-1);break}case 34:case 39:case 91:characters+=delimit(character);break;case 9:case 10:case 13:case 32:characters+=whitespace(previous);break;case 92:characters+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters+="/"}break;case 123*variable:points[index++]=strlen(characters)*ampersand;case 125*variable:case 59:case 0:switch(character){case 0:case 125:scanning=0;case 59+offset:property>0&&strlen(characters)-length&&append(property>32?declaration(characters+";",rule,parent,length-1):declaration(replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(append(reference=ruleset(characters,root,parent,index,offset,rules,points,type,props=[],children=[],length),rulesets),123===character)if(0===offset)parse(characters,root,reference,reference,props,rulesets,length,points,children);else switch(atrule){case 100:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length),children),rules,children,length,points,rule?props:children);break;default:parse(characters,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters="",length=pseudo;break;case 58:length=1+strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==strlen(characters)&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length){for(var post=offset-1,rule=0===offset?rules:[""],size=sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(function char(){return character}()),substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,DECLARATION,substr(value,0,length),substr(value,length+1,-1),length)}function prefix(value,length){switch(function hash(value,length){return(((length<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3)}(value,length)){case 5103:return WEBKIT+"print-"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length>6)switch(charat(value,length+1)){case 109:if(45!==charat(value,length+4))break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==charat(value,length+1))break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(value,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}function serialize(children,callback){for(var output="",length=sizeof(children),i=0;i-1&&!element.return)switch(element.type){case DECLARATION:element.return=prefix(element.value,element.length);break;case"@keyframes":return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return function combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if(isBrowser$6&&"css"===key){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node){-1!==node.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(node),node.setAttribute("data-s",""))}))}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;var container,_insert,inserted={},nodesToHydrate=[];isBrowser$6&&(container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node){for(var attrib=node.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue$1=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName$1=memoize((function(styleName){return isCustomProperty$1(styleName)?styleName:styleName.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex$1,(function(match,p1,p2){return cursor$1={name:p1,styles:p2,next:cursor$1},p1}))}return 1===unitlessKeys[key]||isCustomProperty$1(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation$1(mergedProps,registered,interpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles)return interpolation;switch(_typeof(interpolation)){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor$1={name:interpolation.name,styles:interpolation.styles,next:cursor$1},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor$1={name:next.name,styles:next.styles,next:cursor$1},next=next.next;return interpolation.styles+";"}return function createStringFromObject$1(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},isBrowser="undefined"!=typeof document,useInsertionEffect=(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_37__,2))).useInsertionEffect?(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_37___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_37__,2))).useInsertionEffect:function useInsertionEffect(create){create()};var isBrowser$1="undefined"!=typeof document,Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;registerStyles(cache,serialized,isStringTag);var rules=function useInsertionEffectMaybe(create){if(!isBrowser)return create();useInsertionEffect(create)}((function(){return function insertStyles(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(void 0===cache.inserted[serialized.name]){var stylesForSSR="",current=serialized;do{var maybeStyles=cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0);isBrowser$2||void 0===maybeStyles||(stylesForSSR+=maybeStyles),current=current.next}while(void 0!==current);if(!isBrowser$2&&0!==stylesForSSR.length)return stylesForSSR}}(cache,serialized,isStringTag)}));if(!isBrowser$1&&void 0!==rules){for(var _ref2,serializedNames=serialized.name,next=serialized.next;void 0!==next;)serializedNames+=" "+next.name,next=next.next;return(0,react__WEBPACK_IMPORTED_MODULE_37__.createElement)("style",((_ref2={})["data-emotion"]=cache.key+" "+serializedNames,_ref2.dangerouslySetInnerHTML={__html:rules},_ref2.nonce=cache.sheet.nonce,_ref2))}return null},newStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)},isRgba=function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)},isHsla=function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return function hsla(value,saturation,lightness,alpha){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}(color);if(isHsl(color))return function hsl(value,saturation,lightness){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value,saturation,lightness);if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness)return hslToHex(value.hue,value.saturation,value.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken$1=curry(darken);function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten$1=curry(lighten);function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify$1=curry(opacify);function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var color_secondary="#1EA7FD",color_tertiary="#FAFBFC",color_ancillary="#22a699",color_orange="#FC521F",color_gold="#FFAE00",color_green="#66BF3C",color_seafoam="#37D5D3",color_purple="#6F2CAC",color_ultraviolet="#2A0481",color_lightest="#FFFFFF",color_lighter="#F8F8F8",color_light="#F3F3F3",color_mediumlight="#EEEEEE",color_medium="#DDDDDD",color_mediumdark="#999999",color_dark="#666666",color_darker="#444444",color_darkest="#333333",color_border="rgba(0,0,0,.1)",color_positive="#66BF3C",color_negative="#FF4400",color_warning="#E69D00",color_critical="#FFFFFF",background={app:"#F6F9FC",bar:"#FFFFFF",content:color_lightest,gridCellSize:10,hoverable:curry(transparentize)(.93,color_secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},createReset=memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref3){var typography=_ref3.typography;return{body:{fontFamily:typography.fonts.base,fontSize:typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:typography.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:typography.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}})),theme$1=(memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref4){var color=_ref4.color,background=_ref4.background,typography=_ref4.typography,resetStyles=createReset({typography});return Object.assign(Object.assign({},resetStyles),{body:Object.assign(Object.assign({},resetStyles.body),{color:color.defaultText,background:background.app,overflow:"hidden"}),hr:Object.assign(Object.assign({},resetStyles.hr),{borderTop:"1px solid ".concat(color.border)})})})),{base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:background.app,appContentBg:color_lightest,appBorderColor:color_border,appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_darkest,textInverseColor:color_lightest,textMutedColor:color_dark,barTextColor:color_mediumdark,barSelectedColor:color_secondary,barBg:color_lightest,inputBg:color_lightest,inputBorder:color_border,inputTextColor:color_darkest,inputBorderRadius:4}),theme={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:color_darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_lightest,textInverseColor:color_darkest,textMutedColor:color_mediumdark,barTextColor:"#999999",barSelectedColor:color_secondary,barBg:color_darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:color_lightest,inputBorderRadius:4},globalWindow=("undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{}).window,colorFactory=function colorFactory(type){return function(color){if(!function isColorString(color){return"string"==typeof color||(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.kg.warn("Color passed to theme object should be a string. Instead "+"".concat(color,"(").concat(_typeof(color),") was passed.")),!1)}(color))return color;if(!function isValidColorForPolished(color){return!/(gradient|var|calc)/.test(color)}(color))return color;try{return function applyPolished(type,color){return"darken"===type?rgba("".concat(curriedDarken$1(1,color)),.95):"lighten"===type?rgba("".concat(curriedLighten$1(1,color)),.95):color}(type,color)}catch(error){return color}}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=function getPreferredColorScheme(){return globalWindow&&globalWindow.matchMedia&&globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},themes={light:theme$1,dark:theme,normal:theme$1};getPreferredColorScheme();var easing={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},rotate360=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),glow=keyframes(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n"]))),animation={rotate360,glow,float:keyframes(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n"]))),jiggle:keyframes(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n"]))),inlineGlow:css(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n animation: "," 1.5s ease-in-out infinite;\n color: transparent;\n cursor: progress;\n"])),glow),hoverable:css(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n transition: all 150ms ease-out;\n transform: translate3d(0, 0, 0);\n\n &:hover {\n transform: translate3d(0, -2px, 0);\n }\n\n &:active {\n transform: translate3d(0, 0, 0);\n }\n"])))},chromeDark={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},chromeLight={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},convertColors=function convertColors(colors){return Object.entries(colors).reduce((function(acc,_ref5){var _ref6=_slicedToArray(_ref5,2),k=_ref6[0],v=_ref6[1];return Object.assign(Object.assign({},acc),function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},k,function mkColor(color){return{color}}(v)))}),{})},create=function create(_ref7){var colors=_ref7.colors,mono=_ref7.mono,colorsObjs=convertColors(colors);return{token:{fontFamily:mono,WebkitFontSmoothing:"antialiased","&.tag":colorsObjs.red3,"&.comment":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.prolog":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.doctype":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.cdata":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.string":colorsObjs.red1,"&.url":colorsObjs.cyan1,"&.symbol":colorsObjs.cyan1,"&.number":colorsObjs.cyan1,"&.boolean":colorsObjs.cyan1,"&.variable":colorsObjs.cyan1,"&.constant":colorsObjs.cyan1,"&.inserted":colorsObjs.cyan1,"&.atrule":colorsObjs.blue1,"&.keyword":colorsObjs.blue1,"&.attr-value":colorsObjs.blue1,"&.punctuation":colorsObjs.gray1,"&.operator":colorsObjs.gray1,"&.function":colorsObjs.gray1,"&.deleted":colorsObjs.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":colorsObjs.cyan2,"&.selector":colorsObjs.red3,"&.attr-name":colorsObjs.red4,"&.property":colorsObjs.red4,"&.regex":colorsObjs.red4,"&.entity":colorsObjs.red4,"&.directive.tag .tag":Object.assign({background:"#ffff00"},colorsObjs.gray1)},"language-json .token.boolean":colorsObjs.blue1,"language-json .token.number":colorsObjs.blue1,"language-json .token.property":colorsObjs.cyan2,namespace:{opacity:.7}}},lightSyntaxColors={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},darkSyntaxColors={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},createColors=function createColors(vars){return{primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:color_tertiary,ancillary:color_ancillary,orange:color_orange,gold:color_gold,green:color_green,seafoam:color_seafoam,purple:color_purple,ultraviolet:color_ultraviolet,lightest:color_lightest,lighter:color_lighter,light:color_light,mediumlight:color_mediumlight,medium:color_medium,mediumdark:color_mediumdark,dark:color_dark,darker:color_darker,darkest:color_darkest,border:color_border,positive:color_positive,negative:color_negative,warning:color_warning,critical:color_critical,defaultText:vars.textColor||color_darkest,inverseText:vars.textInverseColor||color_lightest}},convert=function convert(){var inherit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:themes[getPreferredColorScheme()],base=inherit.base,colorSecondary=(inherit.colorPrimary,inherit.colorSecondary),appBg=inherit.appBg,appContentBg=inherit.appContentBg,appBorderColor=inherit.appBorderColor,appBorderRadius=inherit.appBorderRadius,fontBase=inherit.fontBase,fontCode=inherit.fontCode,textColor=inherit.textColor,barTextColor=(inherit.textInverseColor,inherit.barTextColor),barSelectedColor=inherit.barSelectedColor,barBg=inherit.barBg,inputBg=inherit.inputBg,inputBorder=inherit.inputBorder,inputTextColor=inherit.inputTextColor,inputBorderRadius=inherit.inputBorderRadius,brandTitle=inherit.brandTitle,brandUrl=inherit.brandUrl,brandImage=inherit.brandImage,brandTarget=inherit.brandTarget,gridCellSize=inherit.gridCellSize,rest=function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return(_Object$prototype$has=Object.prototype.hasOwnProperty).call.apply(_Object$prototype$has,[o].concat(args))}(r,key)){var difference=deletedDiff(l[key],r[key]);return isObject(difference)&&function isEmpty(o){return 0===Object.keys(o).length}(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc}),{})};var ensure=function ensure(input){if(!input)return convert(theme$1);var missing=deletedDiff(theme$1,input);return Object.keys(missing).length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.kg.warn(function dedent(templ){for(var values=[],_i=1;_i{"use strict";__webpack_require__.d(__webpack_exports__,{Ro:()=>BadgeCounter,ZP:()=>ButtonLink});var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),clsx__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),process=(__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"),__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),__webpack_require__("./node_modules/.pnpm/lodash.chunk@4.2.0/node_modules/lodash.chunk/index.js"),__webpack_require__("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js")),_excluded$1q=["appearance","busy","disabled","children","className","hint","pressed","type"];function ownKeys$1r(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1r(e){for(var r=1;r=0?buttonRefs[index]:void 0,nextSection=buttonRef?function nextItem(items,item){var currentIndex=item?items.indexOf(item):-1;return currentIndex>=0&¤tIndex+1<=items.length-1?items[currentIndex+1]:void 0}(buttonRefs,buttonRef):void 0;null==nextSection||null===(_nextSection$current=nextSection.current)||void 0===_nextSection$current||_nextSection$current.focus()},focusFirstSection:function focusFirstSection(){var _firstSection$current,firstSection=function firstItem(items){return items.length>=1?items[0]:void 0}(buttonRefs);console.log(refs),null==firstSection||null===(_firstSection$current=firstSection.current)||void 0===_firstSection$current||_firstSection$current.focus()},focusPreviousSection:function focusPreviousSection(activeElement){var _previousSection$curr,index=refs.indexOf(activeElement),buttonRef=index>=0?buttonRefs[index]:void 0,previousSection=buttonRef?function previousItem(items,item){var currentIndex=item?items.indexOf(item):-1;return currentIndex>=0&¤tIndex-1<=items.length-1?items[currentIndex-1]:void 0}(buttonRefs,buttonRef):void 0;null==previousSection||null===(_previousSection$curr=previousSection.current)||void 0===_previousSection$curr||_previousSection$curr.focus()},focusLastSection:function focusLastSection(){var _firstSection$current2,firstSection=function lastItem(items){return items.length>=1?items[items.length-1]:void 0}(buttonRefs);null==firstSection||null===(_firstSection$current2=firstSection.current)||void 0===_firstSection$current2||_firstSection$current2.focus()}}}(sections,ref),refs=_useAccordion.refs,buttonRefs=_useAccordion.buttonRefs,focusNextSection=_useAccordion.focusNextSection,focusFirstSection=_useAccordion.focusFirstSection,focusLastSection=_useAccordion.focusLastSection,focusPreviousSection=_useAccordion.focusPreviousSection,_useState=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),_useState2=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_8__.Z)(_useState,2),activeElement=_useState2[0],setActiveElement=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(sections),_useState4=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_8__.Z)(_useState3,2),sectionsState=_useState4[0],setSectionsState=_useState4[1],handleButtonFocus=function handleButtonFocus(ref){setActiveElement(ref)},handleButtonBlur=function handleButtonBlur(_){setActiveElement(null)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Accordion,{onKeyDown:function handleKeyDown(evt){if("End"===evt.code)focusLastSection();else if("Home"===evt.code)focusFirstSection();else if("ArrowDown"===evt.code)activeElement&&focusNextSection(activeElement);else{if("ArrowUp"!==evt.code)return;activeElement&&focusPreviousSection(activeElement)}evt.preventDefault()},ref,children:sectionsState.map((function(section,index){return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(AccordionSection,_objectSpread$1p(_objectSpread$1p({},section),{},{ref:refs[index],buttonRef:buttonRefs[index],key:index,onButtonFocus:handleButtonFocus,onButtonBlur:handleButtonBlur,onActivate:function handleActivate(ref){var activatedIndex=refs.indexOf(ref);setSectionsState(sectionsState.map((function(section,index){return index===activatedIndex?_objectSpread$1p(_objectSpread$1p({},section),{},{expanded:!section.expanded}):section})))}}),section.body)}))})}).displayName="AccordionProvider";var _excluded$1n=["children","className","icon","type"];function ownKeys$1o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1o(e){for(var r=1;r0&&"utrecht-currency-data--positive",className),"aria-label":labelFormatted,children:children||visuallyFormatted}))}));CurrencyData.displayName="CurrencyData";var _excluded$W=["children","className","dateTime","value"];function ownKeys$X(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$X(e){for(var r=1;ra[key]===b[key]))}var extendStatics,__extends=(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}),_hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwnProperty(obj,key){return _hasOwnProperty.call(obj,key)}function _objectKeys(obj){if(Array.isArray(obj)){for(var keys_1=new Array(obj.length),k=0;k=48&&charCode<=57))return!1;i++}return!0}function escapePathComponent(path){return-1===path.indexOf("/")&&-1===path.indexOf("~")?path:path.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapePathComponent(path){return path.replace(/~1/g,"/").replace(/~0/g,"~")}function hasUndefined(obj){if(void 0===obj)return!0;if(obj)if(Array.isArray(obj)){for(var i_1=0,len=obj.length;i_10&&"constructor"==keys[t-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(validateOperation&&void 0===existingPathFragment&&(void 0===obj[key]?existingPathFragment=keys.slice(0,t).join("/"):t==len-1&&(existingPathFragment=operation.path),void 0!==existingPathFragment&&validateFunction(operation,0,document,existingPathFragment)),t++,Array.isArray(obj)){if("-"===key)key=obj.length;else{if(validateOperation&&!isInteger$1(key))throw new JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",index,operation,document);isInteger$1(key)&&(key=~~key)}if(t>=len){if(validateOperation&&"add"===operation.op&&key>obj.length)throw new JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",index,operation,document);if(!1===(returnValue=arrOps[operation.op].call(operation,obj,key,document)).test)throw new JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",index,operation,document);return returnValue}}else if(t>=len){if(!1===(returnValue=objOps[operation.op].call(operation,obj,key,document)).test)throw new JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",index,operation,document);return returnValue}if(obj=obj[key],validateOperation&&t0)throw new JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",index,operation,document);if(("move"===operation.op||"copy"===operation.op)&&"string"!=typeof operation.from)throw new JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",index,operation,document);if(("add"===operation.op||"replace"===operation.op||"test"===operation.op)&&void 0===operation.value)throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",index,operation,document);if(("add"===operation.op||"replace"===operation.op||"test"===operation.op)&&hasUndefined(operation.value))throw new JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",index,operation,document);if(document)if("add"==operation.op){var pathLen=operation.path.split("/").length,existingPathLen=existingPathFragment.split("/").length;if(pathLen!==existingPathLen+1&&pathLen!==existingPathLen)throw new JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",index,operation,document)}else if("replace"===operation.op||"remove"===operation.op||"_get"===operation.op){if(operation.path!==existingPathFragment)throw new JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",index,operation,document)}else if("move"===operation.op||"copy"===operation.op){var error=validate([{op:"_get",path:operation.from,value:void 0}],document);if(error&&"OPERATION_PATH_UNRESOLVABLE"===error.name)throw new JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",index,operation,document)}}function validate(sequence,document,externalValidator){try{if(!Array.isArray(sequence))throw new JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(document)applyPatch(_deepClone(document),_deepClone(sequence),externalValidator||!0);else{externalValidator=externalValidator||validator;for(var i=0;i0&&(observer.patches=[],observer.callback&&observer.callback(temp)),temp}function _generate(mirror,obj,patches,path,invertible){if(obj!==mirror){"function"==typeof obj.toJSON&&(obj=obj.toJSON());for(var newKeys=_objectKeys(obj),oldKeys=_objectKeys(mirror),deleted=!1,t=oldKeys.length-1;t>=0;t--){var oldVal=mirror[key=oldKeys[t]];if(!hasOwnProperty(obj,key)||void 0===obj[key]&&void 0!==oldVal&&!1===Array.isArray(obj))Array.isArray(mirror)===Array.isArray(obj)?(invertible&&patches.push({op:"test",path:path+"/"+escapePathComponent(key),value:_deepClone(oldVal)}),patches.push({op:"remove",path:path+"/"+escapePathComponent(key)}),deleted=!0):(invertible&&patches.push({op:"test",path,value:mirror}),patches.push({op:"replace",path,value:obj}));else{var newVal=obj[key];"object"==typeof oldVal&&null!=oldVal&&"object"==typeof newVal&&null!=newVal&&Array.isArray(oldVal)===Array.isArray(newVal)?_generate(oldVal,newVal,patches,path+"/"+escapePathComponent(key),invertible):oldVal!==newVal&&(invertible&&patches.push({op:"test",path:path+"/"+escapePathComponent(key),value:_deepClone(oldVal)}),patches.push({op:"replace",path:path+"/"+escapePathComponent(key),value:_deepClone(newVal)}))}}if(deleted||newKeys.length!=oldKeys.length)for(t=0;t0)return[start,indent+items.join(",\n"+nextIndent),end].join("\n"+currentIndent)}return string}(passedObj,"",0)},stringify$2=getDefaultExportFromCjs$1(jsonStringifyPrettyCompact);function accessor(fn,fields,name){return fn.fields=fields||[],fn.fname=name,fn}function accessorName(fn){return null==fn?null:fn.fname}function accessorFields(fn){return null==fn?null:fn.fields}function getter(path){return 1===path.length?get1(path[0]):getN(path)}const get1=field=>function(obj){return obj[field]},getN=path=>{const len=path.length;return function(obj){for(let i=0;ii&&push(),b=i=j+1):"]"===c&&(b||error("Access path missing open bracket: "+p),b>0&&push(),b=0,i=j+1):j>i?push():i=j+1}return b&&error("Access path missing closing bracket: "+p),q&&error("Access path missing closing quote: "+p),j>i&&(j++,push()),path}function field$1(field,name,opt){const path=splitAccessPath(field);return field=1===path.length?path[0]:field,accessor((opt&&opt.get||getter)(path),[field],name||field)}const id=field$1("id"),identity$6=accessor((_=>_),[],"identity"),zero$5=accessor((()=>0),[],"zero"),one$2=accessor((()=>1),[],"one"),truthy=accessor((()=>!0),[],"true"),falsy=accessor((()=>!1),[],"false");function log$1$1(method,level,input){const args=[level].concat([].slice.call(input));console[method].apply(console,args)}const None$2=0,Error$1=1,Warn=2,Info=3,Debug=4;function logger(_,method){let handler=arguments.length>2&&void 0!==arguments[2]?arguments[2]:log$1$1,level=_||None$2;return{level(_){return arguments.length?(level=+_,this):level},error(){return level>=Error$1&&handler(method||"error","ERROR",arguments),this},warn(){return level>=Warn&&handler(method||"warn","WARN",arguments),this},info(){return level>=Info&&handler(method||"log","INFO",arguments),this},debug(){return level>=Debug&&handler(method||"log","DEBUG",arguments),this}}}var isArray=Array.isArray;function isObject(_){return _===Object(_)}const isLegalKey=key=>"__proto__"!==key;function mergeConfig(){for(var _len=arguments.length,configs=new Array(_len),_key=0;_key<_len;_key++)configs[_key]=arguments[_key];return configs.reduce(((out,source)=>{for(const key in source)if("signals"===key)out.signals=mergeNamed(out.signals,source.signals);else{const r="legend"===key?{layout:1}:"style"===key||null;writeConfig(out,key,source[key],r)}return out}),{})}function writeConfig(output,key,value,recurse){if(!isLegalKey(key))return;let k,o;if(isObject(value)&&!isArray(value))for(k in o=isObject(output[key])?output[key]:output[key]={},value)recurse&&(!0===recurse||recurse[k])?writeConfig(o,k,value[k]):isLegalKey(k)&&(o[k]=value[k]);else output[key]=value}function mergeNamed(a,b){if(null==a)return b;const map={},out=[];function add(_){map[_.name]||(map[_.name]=1,out.push(_))}return b.forEach(add),a.forEach(add),out}function peek$1(array){return array[array.length-1]}function toNumber(_){return null==_||""===_?null:+_}const exp$2=sign=>x=>sign*Math.exp(x),log$4=sign=>x=>Math.log(sign*x),symlog$1=c=>x=>Math.sign(x)*Math.log1p(Math.abs(x/c)),symexp=c=>x=>Math.sign(x)*Math.expm1(Math.abs(x))*c,pow$4=exponent=>x=>x<0?-Math.pow(-x,exponent):Math.pow(x,exponent);function pan(domain,delta,lift,ground){const d0=lift(domain[0]),d1=lift(peek$1(domain)),dd=(d1-d0)*delta;return[ground(d0-dd),ground(d1-dd)]}function panLinear(domain,delta){return pan(domain,delta,toNumber,identity$6)}function panLog(domain,delta){var sign=Math.sign(domain[0]);return pan(domain,delta,log$4(sign),exp$2(sign))}function panPow(domain,delta,exponent){return pan(domain,delta,pow$4(exponent),pow$4(1/exponent))}function panSymlog(domain,delta,constant){return pan(domain,delta,symlog$1(constant),symexp(constant))}function zoom$2(domain,anchor,scale,lift,ground){const d0=lift(domain[0]),d1=lift(peek$1(domain)),da=null!=anchor?lift(anchor):(d0+d1)/2;return[ground(da+(d0-da)*scale),ground(da+(d1-da)*scale)]}function zoomLinear(domain,anchor,scale){return zoom$2(domain,anchor,scale,toNumber,identity$6)}function zoomLog(domain,anchor,scale){const sign=Math.sign(domain[0]);return zoom$2(domain,anchor,scale,log$4(sign),exp$2(sign))}function zoomPow(domain,anchor,scale,exponent){return zoom$2(domain,anchor,scale,pow$4(exponent),pow$4(1/exponent))}function zoomSymlog(domain,anchor,scale,constant){return zoom$2(domain,anchor,scale,symlog$1(constant),symexp(constant))}function quarter(date){return 1+~~(new Date(date).getMonth()/3)}function utcquarter(date){return 1+~~(new Date(date).getUTCMonth()/3)}function array$5(_){return null!=_?isArray(_)?_:[_]:[]}function clampRange(range,min,max){let span,lo=range[0],hi=range[1];return hi=max-min?[min,max]:[lo=Math.min(Math.max(lo,min),max-span),lo+span]}function isFunction$1(_){return"function"==typeof _}const DESCENDING="descending";function compare$8(fields,orders,opt){opt=opt||{},orders=array$5(orders)||[];const ord=[],get=[],fmap={},gen=opt.comparator||comparator$1;return array$5(fields).forEach(((f,i)=>{null!=f&&(ord.push(orders[i]===DESCENDING?-1:1),get.push(f=isFunction$1(f)?f:field$1(f,null,opt)),(accessorFields(f)||[]).forEach((_=>fmap[_]=1)))})),0===get.length?null:accessor(gen(get,ord),Object.keys(fmap))}const ascending$3=(u,v)=>(uv||null==v)&&null!=u?1:(v=v instanceof Date?+v:v,(u=u instanceof Date?+u:u)!==u&&v==v?-1:v!=v&&u==u?1:0),comparator$1=(fields,orders)=>1===fields.length?compare1(fields[0],orders[0]):compareN(fields,orders,fields.length),compare1=(field,order)=>function(a,b){return ascending$3(field(a),field(b))*order},compareN=(fields,orders,n)=>(orders.push(0),function(a,b){let f,c=0,i=-1;for(;0===c&&++i_}function debounce(delay,handler){let tid;return e=>{tid&&clearTimeout(tid),tid=setTimeout((()=>(handler(e),tid=null)),delay)}}function extend$1(_){for(let x,k,i=1,len=arguments.length;imax&&(max=v))}else{for(v=f(array[i]);imax&&(max=v))}return[min,max]}function extentIndex(array,f){const n=array.length;let a,b,c,u,v,i=-1;if(null==f){for(;++i=b){a=c=b;break}if(i===n)return[-1,-1];for(u=v=i;++ib&&(a=b,u=i),c=b){a=c=b;break}if(i===n)return[-1,-1];for(u=v=i;++ib&&(a=b,u=i),chas$1$1(key)?obj[key]:void 0,set(key,value){return has$1$1(key)||(++map.size,obj[key]===NULL&&--map.empty),obj[key]=value,this},delete(key){return has$1$1(key)&&(--map.size,++map.empty,obj[key]=NULL),this},clear(){map.size=map.empty=0,map.object=obj={}},test(_){return arguments.length?(test=_,map):test},clean(){const next={};let size=0;for(const key in obj){const value=obj[key];value===NULL||test&&test(value)||(next[key]=value,++size)}map.size=size,map.empty=0,map.object=obj=next}};return input&&Object.keys(input).forEach((key=>{map.set(key,input[key])})),map}function flush(range,value,threshold,left,right,center){if(!threshold&&0!==threshold)return center;const t=+threshold;let l,a=range[0],b=peek$1(range);br1&&(t=r0,r0=r1,r1=t),right=void 0===right||right,((left=void 0===left||left)?r0<=value:r0f.replace(/\\(.)/g,"$1"))):array$5(fields));const len=fields&&fields.length,gen=opt&&opt.get||getter,map=f=>gen(flat?[f]:splitAccessPath(f));let fn;if(len)if(1===len){const get=map(fields[0]);fn=function(_){return""+get(_)}}else{const get=fields.map(map);fn=function(_){let s=""+get[0](_),i=0;for(;++i{curr={},prev={},size=0},update=(key,value)=>(++size>maxsize&&(prev=curr,curr={},size=1),curr[key]=value);return clear(),{clear,has:key=>has$1(curr,key)||has$1(prev,key),get:key=>has$1(curr,key)?curr[key]:has$1(prev,key)?update(key,prev[key]):void 0,set:(key,value)=>has$1(curr,key)?curr[key]=value:update(key,value)}}function merge$3(compare,array0,array1,output){const n0=array0.length,n1=array1.length;if(!n1)return array0;if(!n0)return array1;const merged=output||new array0.constructor(n0+n1);let i0=0,i1=0,i=0;for(;i00?array1[i1++]:array0[i0++];for(;i0=0;)s+=str;return s}function pad$2(str,length,padchar,align){const c=padchar||" ",s=str+"",n=length-s.length;return n<=0?s:"left"===align?repeat(c,n)+s:"center"===align?repeat(c,~~(n/2))+s+repeat(c,Math.ceil(n/2)):s+repeat(c,n)}function span(array){return array&&peek$1(array)-array[0]||0}function $(x){return isArray(x)?"["+x.map($)+"]":isObject(x)||isString(x)?JSON.stringify(x).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):x}function toBoolean(_){return null==_||""===_?null:!(!_||"false"===_||"0"===_)&&!!_}const defaultParser=_=>isNumber$1(_)||isDate$1(_)?_:Date.parse(_);function toDate(_,parser){return parser=parser||defaultParser,null==_||""===_?null:parser(_)}function toString(_){return null==_||""===_?null:_+""}function toSet(_){const s={},n=_.length;for(let i=0;i9999?"+"+pad$1(year,6):pad$1(year,4)}(date.getUTCFullYear())+"-"+pad$1(date.getUTCMonth()+1,2)+"-"+pad$1(date.getUTCDate(),2)+(milliseconds?"T"+pad$1(hours,2)+":"+pad$1(minutes,2)+":"+pad$1(seconds,2)+"."+pad$1(milliseconds,3)+"Z":seconds?"T"+pad$1(hours,2)+":"+pad$1(minutes,2)+":"+pad$1(seconds,2)+"Z":minutes||hours?"T"+pad$1(hours,2)+":"+pad$1(minutes,2)+"Z":"")}function dsvFormat(delimiter){var reFormat=new RegExp('["'+delimiter+"\n\r]"),DELIMITER=delimiter.charCodeAt(0);function parseRows(text,f){var t,rows=[],N=text.length,I=0,n=0,eof=N<=0,eol=!1;function token(){if(eof)return EOF;if(eol)return eol=!1,EOL;var i,c,j=I;if(text.charCodeAt(j)===QUOTE){for(;I++=N?eof=!0:(c=text.charCodeAt(I++))===NEWLINE?eol=!0:c===RETURN&&(eol=!0,text.charCodeAt(I)===NEWLINE&&++I),text.slice(j+1,i-1).replace(/""/g,'"')}for(;I1)arcs=function extractArcs(topology,object,filter){var geom,arcs=[],geomsByArc=[];function extract0(i){var j=i<0?~i:i;(geomsByArc[j]||(geomsByArc[j]=[])).push({i,g:geom})}function extract1(arcs){arcs.forEach(extract0)}function extract2(arcs){arcs.forEach(extract1)}function extract3(arcs){arcs.forEach(extract2)}function geometry(o){switch(geom=o,o.type){case"GeometryCollection":o.geometries.forEach(geometry);break;case"LineString":extract1(o.arcs);break;case"MultiLineString":case"Polygon":extract2(o.arcs);break;case"MultiPolygon":extract3(o.arcs)}}return geometry(object),geomsByArc.forEach(null==filter?function(geoms){arcs.push(geoms[0].i)}:function(geoms){filter(geoms[0].g,geoms[geoms.length-1].g)&&arcs.push(geoms[0].i)}),arcs}(0,object,filter);else for(i=0,arcs=new Array(n=topology.arcs.length);ib?1:a>=b?0:NaN}function descending$2(a,b){return null==a||null==b?NaN:ba?1:b>=a?0:NaN}function bisector$1(f){let compare1,compare2,delta;function left(a,x,lo=0,hi=a.length){if(lo>>1;compare2(a[mid],x)<0?lo=mid+1:hi=mid}while(loascending$2(f(d),x),delta=(d,x)=>f(d)-x):(compare1=f===ascending$2||f===descending$2?f:zero$4,compare2=f,delta=f),{left,center:function center(a,x,lo=0,hi=a.length){const i=left(a,x,lo,hi-1);return i>lo&&delta(a[i-1],x)>-delta(a[i],x)?i-1:i},right:function right(a,x,lo=0,hi=a.length){if(lo>>1;compare2(a[mid],x)<=0?lo=mid+1:hi=mid}while(lo0){for(hi=p[--n];n>0&&(x=hi,y=p[--n],hi=x+y,lo=y-(hi-x),!lo););n>0&&(lo<0&&p[n-1]<0||lo>0&&p[n-1]>0)&&(y=2*lo,x=hi+y,y==x-hi&&(hi=x))}return hi}}class InternMap extends Map{constructor(entries,key=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:key}}),null!=entries)for(const[key,value]of entries)this.set(key,value)}get(key){return super.get(intern_get(this,key))}has(key){return super.has(intern_get(this,key))}set(key,value){return super.set(intern_set(this,key),value)}delete(key){return super.delete(intern_delete(this,key))}}class InternSet extends Set{constructor(values,key=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:key}}),null!=values)for(const value of values)this.add(value)}has(value){return super.has(intern_get(this,value))}add(value){return super.add(intern_set(this,value))}delete(value){return super.delete(intern_delete(this,value))}}function intern_get({_intern,_key},value){const key=_key(value);return _intern.has(key)?_intern.get(key):value}function intern_set({_intern,_key},value){const key=_key(value);return _intern.has(key)?_intern.get(key):(_intern.set(key,value),value)}function intern_delete({_intern,_key},value){const key=_key(value);return _intern.has(key)&&(value=_intern.get(key),_intern.delete(key)),value}function keyof(value){return null!==value&&"object"==typeof value?value.valueOf():value}function ascendingDefined(a,b){return(null==a||!(a>=a))-(null==b||!(b>=b))||(ab?1:0)}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(start,stop,count){const step=(stop-start)/Math.max(0,count),power=Math.floor(Math.log10(step)),error=step/Math.pow(10,power),factor=error>=e10?10:error>=e5?5:error>=e2?2:1;let i1,i2,inc;return power<0?(inc=Math.pow(10,-power)/factor,i1=Math.round(start*inc),i2=Math.round(stop*inc),i1/incstop&&--i2,inc=-inc):(inc=Math.pow(10,power)*factor,i1=Math.round(start/inc),i2=Math.round(stop/inc),i1*incstop&&--i2),i20))return[];if((start=+start)===(stop=+stop))return[start];const reverse=stop=i1))return[];const n=i2-i1+1,ticks=new Array(n);if(reverse)if(inc<0)for(let i=0;i=value)&&(max=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(max=value)&&(max=value)}return max}function min$2(values,valueof){let min;if(void 0===valueof)for(const value of values)null!=value&&(min>value||void 0===min&&value>=value)&&(min=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(min>value||void 0===min&&value>=value)&&(min=value)}return min}function quickselect(array,k,left=0,right=1/0,compare){if(k=Math.floor(k),left=Math.floor(Math.max(0,left)),right=Math.floor(Math.min(array.length-1,right)),!(left<=k&&k<=right))return array;for(compare=void 0===compare?ascendingDefined:function compareDefined(compare=ascending$2){if(compare===ascending$2)return ascendingDefined;if("function"!=typeof compare)throw new TypeError("compare is not a function");return(a,b)=>{const x=compare(a,b);return x||0===x?x:(0===compare(b,b))-(0===compare(a,a))}}(compare);right>left;){if(right-left>600){const n=right-left+1,m=k-left+1,z=Math.log(n),s=.5*Math.exp(2*z/3),sd=.5*Math.sqrt(z*s*(n-s)/n)*(m-n/2<0?-1:1);quickselect(array,k,Math.max(left,Math.floor(k-m*s/n+sd)),Math.min(right,Math.floor(k+(n-m)*s/n+sd)),compare)}const t=array[k];let i=left,j=right;for(swap$1(array,left,k),compare(array[right],t)>0&&swap$1(array,left,right);i0;)--j}0===compare(array[left],t)?swap$1(array,left,j):(++j,swap$1(array,j,right)),j<=k&&(left=j+1),k<=j&&(right=j-1)}return array}function swap$1(array,i,j){const t=array[i];array[i]=array[j],array[j]=t}function quantile$1(values,p,valueof){if(values=Float64Array.from(function*numbers$2(values,valueof){if(void 0===valueof)for(let value of values)null!=value&&(value=+value)>=value&&(yield value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(value=+value)>=value&&(yield value)}}(values,valueof)),(n=values.length)&&!isNaN(p=+p)){if(p<=0||n<2)return min$2(values);if(p>=1)return max$2(values);var n,i=(n-1)*p,i0=Math.floor(i),value0=max$2(quickselect(values,i0).subarray(0,i0+1));return value0+(min$2(values.subarray(i0+1))-value0)*(i-i0)}}function quantileSorted(values,p,valueof=number$6){if((n=values.length)&&!isNaN(p=+p)){if(p<=0||n<2)return+valueof(values[0],0,values);if(p>=1)return+valueof(values[n-1],n-1,values);var n,i=(n-1)*p,i0=Math.floor(i),value0=+valueof(values[i0],i0,values);return value0+(+valueof(values[i0+1],i0+1,values)-value0)*(i-i0)}}function median(values,valueof){return quantile$1(values,.5,valueof)}function merge$2(arrays){return Array.from(function*flatten(arrays){for(const array of arrays)yield*array}(arrays))}function range$5(start,stop,step){start=+start,stop=+stop,step=(n=arguments.length)<2?(stop=start,start=0,1):n<3?1:+step;for(var i=-1,n=0|Math.max(0,Math.ceil((stop-start)/step)),range=new Array(n);++i1?coefficient[0]+coefficient.slice(2):coefficient,+x.slice(i+1)]}function exponent(x){return(x=formatDecimalParts(Math.abs(x)))?x[1]:NaN}var prefixExponent,re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(specifier){if(!(match=re$2.exec(specifier)))throw new Error("invalid format: "+specifier);var match;return new FormatSpecifier({fill:match[1],align:match[2],sign:match[3],symbol:match[4],zero:match[5],width:match[6],comma:match[7],precision:match[8]&&match[8].slice(1),trim:match[9],type:match[10]})}function FormatSpecifier(specifier){this.fill=void 0===specifier.fill?" ":specifier.fill+"",this.align=void 0===specifier.align?">":specifier.align+"",this.sign=void 0===specifier.sign?"-":specifier.sign+"",this.symbol=void 0===specifier.symbol?"":specifier.symbol+"",this.zero=!!specifier.zero,this.width=void 0===specifier.width?void 0:+specifier.width,this.comma=!!specifier.comma,this.precision=void 0===specifier.precision?void 0:+specifier.precision,this.trim=!!specifier.trim,this.type=void 0===specifier.type?"":specifier.type+""}function formatRounded(x,p){var d=formatDecimalParts(x,p);if(!d)return x+"";var coefficient=d[0],exponent=d[1];return exponent<0?"0."+new Array(-exponent).join("0")+coefficient:coefficient.length>exponent+1?coefficient.slice(0,exponent+1)+"."+coefficient.slice(exponent+1):coefficient+new Array(exponent-coefficient.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":(x,p)=>(100*x).toFixed(p),b:x=>Math.round(x).toString(2),c:x=>x+"",d:function formatDecimal(x){return Math.abs(x=Math.round(x))>=1e21?x.toLocaleString("en").replace(/,/g,""):x.toString(10)},e:(x,p)=>x.toExponential(p),f:(x,p)=>x.toFixed(p),g:(x,p)=>x.toPrecision(p),o:x=>Math.round(x).toString(8),p:(x,p)=>formatRounded(100*x,p),r:formatRounded,s:function formatPrefixAuto(x,p){var d=formatDecimalParts(x,p);if(!d)return x+"";var coefficient=d[0],exponent=d[1],i=exponent-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(exponent/3))))+1,n=coefficient.length;return i===n?coefficient:i>n?coefficient+new Array(i-n+1).join("0"):i>0?coefficient.slice(0,i)+"."+coefficient.slice(i):"0."+new Array(1-i).join("0")+formatDecimalParts(x,Math.max(0,p+i-1))[0]},X:x=>Math.round(x).toString(16).toUpperCase(),x:x=>Math.round(x).toString(16)};function identity$4(x){return x}var locale$2,format$3,formatPrefix,map$1=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(locale){var group=void 0===locale.grouping||void 0===locale.thousands?identity$4:function formatGroup(grouping,thousands){return function(value,width){for(var i=value.length,t=[],j=0,g=grouping[0],length=0;i>0&&g>0&&(length+g+1>width&&(g=Math.max(1,width-length)),t.push(value.substring(i-=g,i+g)),!((length+=g+1)>width));)g=grouping[j=(j+1)%grouping.length];return t.reverse().join(thousands)}}(map$1.call(locale.grouping,Number),locale.thousands+""),currencyPrefix=void 0===locale.currency?"":locale.currency[0]+"",currencySuffix=void 0===locale.currency?"":locale.currency[1]+"",decimal=void 0===locale.decimal?".":locale.decimal+"",numerals=void 0===locale.numerals?identity$4:function formatNumerals(numerals){return function(value){return value.replace(/[0-9]/g,(function(i){return numerals[+i]}))}}(map$1.call(locale.numerals,String)),percent=void 0===locale.percent?"%":locale.percent+"",minus=void 0===locale.minus?"−":locale.minus+"",nan=void 0===locale.nan?"NaN":locale.nan+"";function newFormat(specifier){var fill=(specifier=formatSpecifier(specifier)).fill,align=specifier.align,sign=specifier.sign,symbol=specifier.symbol,zero=specifier.zero,width=specifier.width,comma=specifier.comma,precision=specifier.precision,trim=specifier.trim,type=specifier.type;"n"===type?(comma=!0,type="g"):formatTypes[type]||(void 0===precision&&(precision=12),trim=!0,type="g"),(zero||"0"===fill&&"="===align)&&(zero=!0,fill="0",align="=");var prefix="$"===symbol?currencyPrefix:"#"===symbol&&/[boxX]/.test(type)?"0"+type.toLowerCase():"",suffix="$"===symbol?currencySuffix:/[%p]/.test(type)?percent:"",formatType=formatTypes[type],maybeSuffix=/[defgprs%]/.test(type);function format(value){var i,n,c,valuePrefix=prefix,valueSuffix=suffix;if("c"===type)valueSuffix=formatType(value)+valueSuffix,value="";else{var valueNegative=(value=+value)<0||1/value<0;if(value=isNaN(value)?nan:formatType(Math.abs(value),precision),trim&&(value=function formatTrim(s){out:for(var i1,n=s.length,i=1,i0=-1;i0&&(i0=0)}return i0>0?s.slice(0,i0)+s.slice(i1+1):s}(value)),valueNegative&&0==+value&&"+"!==sign&&(valueNegative=!1),valuePrefix=(valueNegative?"("===sign?sign:minus:"-"===sign||"("===sign?"":sign)+valuePrefix,valueSuffix=("s"===type?prefixes[8+prefixExponent/3]:"")+valueSuffix+(valueNegative&&"("===sign?")":""),maybeSuffix)for(i=-1,n=value.length;++i(c=value.charCodeAt(i))||c>57){valueSuffix=(46===c?decimal+value.slice(i+1):value.slice(i))+valueSuffix,value=value.slice(0,i);break}}comma&&!zero&&(value=group(value,1/0));var length=valuePrefix.length+value.length+valueSuffix.length,padding=length>1)+valuePrefix+value+valueSuffix+padding.slice(length);break;default:value=padding+valuePrefix+value+valueSuffix}return numerals(value)}return precision=void 0===precision?6:/[gprs]/.test(type)?Math.max(1,Math.min(21,precision)):Math.max(0,Math.min(20,precision)),format.toString=function(){return specifier+""},format}return{format:newFormat,formatPrefix:function formatPrefix(specifier,value){var f=newFormat(((specifier=formatSpecifier(specifier)).type="f",specifier)),e=3*Math.max(-8,Math.min(8,Math.floor(exponent(value)/3))),k=Math.pow(10,-e),prefix=prefixes[8+e/3];return function(value){return f(k*value)+prefix}}}}function precisionFixed(step){return Math.max(0,-exponent(Math.abs(step)))}function precisionPrefix(step,value){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(value)/3)))-exponent(Math.abs(step)))}function precisionRound(step,max){return step=Math.abs(step),max=Math.abs(max)-step,Math.max(0,exponent(max)-exponent(step))+1}!function defaultLocale$2(definition){return locale$2=formatLocale$1(definition),format$3=locale$2.format,formatPrefix=locale$2.formatPrefix,locale$2}({thousands:",",grouping:[3],currency:["$",""]});const t0$2=new Date,t1$1=new Date;function timeInterval$1(floori,offseti,count,field){function interval(date){return floori(date=0===arguments.length?new Date:new Date(+date)),date}return interval.floor=date=>(floori(date=new Date(+date)),date),interval.ceil=date=>(floori(date=new Date(date-1)),offseti(date,1),floori(date),date),interval.round=date=>{const d0=interval(date),d1=interval.ceil(date);return date-d0(offseti(date=new Date(+date),null==step?1:Math.floor(step)),date),interval.range=(start,stop,step)=>{const range=[];if(start=interval.ceil(start),step=null==step?1:Math.floor(step),!(start0))return range;let previous;do{range.push(previous=new Date(+start)),offseti(start,step),floori(start)}while(previoustimeInterval$1((date=>{if(date>=date)for(;floori(date),!test(date);)date.setTime(date-1)}),((date,step)=>{if(date>=date)if(step<0)for(;++step<=0;)for(;offseti(date,-1),!test(date););else for(;--step>=0;)for(;offseti(date,1),!test(date););})),count&&(interval.count=(start,end)=>(t0$2.setTime(+start),t1$1.setTime(+end),floori(t0$2),floori(t1$1),Math.floor(count(t0$2,t1$1))),interval.every=step=>(step=Math.floor(step),isFinite(step)&&step>0?step>1?interval.filter(field?d=>field(d)%step==0:d=>interval.count(0,d)%step==0):interval:null)),interval}const millisecond=timeInterval$1((()=>{}),((date,step)=>{date.setTime(+date+step)}),((start,end)=>end-start));millisecond.every=k=>(k=Math.floor(k),isFinite(k)&&k>0?k>1?timeInterval$1((date=>{date.setTime(Math.floor(date/k)*k)}),((date,step)=>{date.setTime(+date+step*k)}),((start,end)=>(end-start)/k)):millisecond:null),millisecond.range;const durationMinute$1=6e4,durationHour$1=60*durationMinute$1,durationDay$1=24*durationHour$1,durationWeek$1=7*durationDay$1,durationMonth$1=30*durationDay$1,durationYear$1=365*durationDay$1,second=timeInterval$1((date=>{date.setTime(date-date.getMilliseconds())}),((date,step)=>{date.setTime(+date+1e3*step)}),((start,end)=>(end-start)/1e3),(date=>date.getUTCSeconds()));second.range;const timeMinute=timeInterval$1((date=>{date.setTime(date-date.getMilliseconds()-1e3*date.getSeconds())}),((date,step)=>{date.setTime(+date+step*durationMinute$1)}),((start,end)=>(end-start)/durationMinute$1),(date=>date.getMinutes()));timeMinute.range;const utcMinute=timeInterval$1((date=>{date.setUTCSeconds(0,0)}),((date,step)=>{date.setTime(+date+step*durationMinute$1)}),((start,end)=>(end-start)/durationMinute$1),(date=>date.getUTCMinutes()));utcMinute.range;const timeHour=timeInterval$1((date=>{date.setTime(date-date.getMilliseconds()-1e3*date.getSeconds()-date.getMinutes()*durationMinute$1)}),((date,step)=>{date.setTime(+date+step*durationHour$1)}),((start,end)=>(end-start)/durationHour$1),(date=>date.getHours()));timeHour.range;const utcHour=timeInterval$1((date=>{date.setUTCMinutes(0,0,0)}),((date,step)=>{date.setTime(+date+step*durationHour$1)}),((start,end)=>(end-start)/durationHour$1),(date=>date.getUTCHours()));utcHour.range;const timeDay=timeInterval$1((date=>date.setHours(0,0,0,0)),((date,step)=>date.setDate(date.getDate()+step)),((start,end)=>(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute$1)/durationDay$1),(date=>date.getDate()-1));timeDay.range;const utcDay=timeInterval$1((date=>{date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCDate(date.getUTCDate()+step)}),((start,end)=>(end-start)/durationDay$1),(date=>date.getUTCDate()-1));utcDay.range;const unixDay=timeInterval$1((date=>{date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCDate(date.getUTCDate()+step)}),((start,end)=>(end-start)/durationDay$1),(date=>Math.floor(date/durationDay$1)));function timeWeekday(i){return timeInterval$1((date=>{date.setDate(date.getDate()-(date.getDay()+7-i)%7),date.setHours(0,0,0,0)}),((date,step)=>{date.setDate(date.getDate()+7*step)}),((start,end)=>(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute$1)/durationWeek$1))}unixDay.range;const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);function utcWeekday(i){return timeInterval$1((date=>{date.setUTCDate(date.getUTCDate()-(date.getUTCDay()+7-i)%7),date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCDate(date.getUTCDate()+7*step)}),((start,end)=>(end-start)/durationWeek$1))}timeSunday.range,timeMonday.range,timeTuesday.range,timeWednesday.range,timeThursday.range,timeFriday.range,timeSaturday.range;const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;const timeMonth=timeInterval$1((date=>{date.setDate(1),date.setHours(0,0,0,0)}),((date,step)=>{date.setMonth(date.getMonth()+step)}),((start,end)=>end.getMonth()-start.getMonth()+12*(end.getFullYear()-start.getFullYear())),(date=>date.getMonth()));timeMonth.range;const utcMonth=timeInterval$1((date=>{date.setUTCDate(1),date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCMonth(date.getUTCMonth()+step)}),((start,end)=>end.getUTCMonth()-start.getUTCMonth()+12*(end.getUTCFullYear()-start.getUTCFullYear())),(date=>date.getUTCMonth()));utcMonth.range;const timeYear=timeInterval$1((date=>{date.setMonth(0,1),date.setHours(0,0,0,0)}),((date,step)=>{date.setFullYear(date.getFullYear()+step)}),((start,end)=>end.getFullYear()-start.getFullYear()),(date=>date.getFullYear()));timeYear.every=k=>isFinite(k=Math.floor(k))&&k>0?timeInterval$1((date=>{date.setFullYear(Math.floor(date.getFullYear()/k)*k),date.setMonth(0,1),date.setHours(0,0,0,0)}),((date,step)=>{date.setFullYear(date.getFullYear()+step*k)})):null,timeYear.range;const utcYear=timeInterval$1((date=>{date.setUTCMonth(0,1),date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCFullYear(date.getUTCFullYear()+step)}),((start,end)=>end.getUTCFullYear()-start.getUTCFullYear()),(date=>date.getUTCFullYear()));function ticker(year,month,week,day,hour,minute){const tickIntervals=[[second,1,1e3],[second,5,5e3],[second,15,15e3],[second,30,3e4],[minute,1,durationMinute$1],[minute,5,5*durationMinute$1],[minute,15,15*durationMinute$1],[minute,30,30*durationMinute$1],[hour,1,durationHour$1],[hour,3,3*durationHour$1],[hour,6,6*durationHour$1],[hour,12,12*durationHour$1],[day,1,durationDay$1],[day,2,2*durationDay$1],[week,1,durationWeek$1],[month,1,durationMonth$1],[month,3,3*durationMonth$1],[year,1,durationYear$1]];function tickInterval(start,stop,count){const target=Math.abs(stop-start)/count,i=bisector$1((([,,step])=>step)).right(tickIntervals,target);if(i===tickIntervals.length)return year.every(tickStep(start/durationYear$1,stop/durationYear$1,count));if(0===i)return millisecond.every(Math.max(tickStep(start,stop,count),1));const[t,step]=tickIntervals[target/tickIntervals[i-1][2]isFinite(k=Math.floor(k))&&k>0?timeInterval$1((date=>{date.setUTCFullYear(Math.floor(date.getUTCFullYear()/k)*k),date.setUTCMonth(0,1),date.setUTCHours(0,0,0,0)}),((date,step)=>{date.setUTCFullYear(date.getUTCFullYear()+step*k)})):null,utcYear.range;const[utcTicks,utcTickInterval]=ticker(utcYear,utcMonth,utcSunday,unixDay,utcHour,utcMinute),[timeTicks,timeTickInterval]=ticker(timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute),YEAR="year",QUARTER="quarter",MONTH="month",WEEK="week",DATE="date",DAY="day",DAYOFYEAR="dayofyear",HOURS="hours",MINUTES="minutes",SECONDS="seconds",MILLISECONDS="milliseconds",TIME_UNITS=[YEAR,QUARTER,MONTH,WEEK,DATE,DAY,DAYOFYEAR,HOURS,MINUTES,SECONDS,MILLISECONDS],UNITS=TIME_UNITS.reduce(((o,u,i)=>(o[u]=1+i,o)),{});function timeUnits(units){const u=array$5(units).slice(),m={};u.length||error("Missing time unit."),u.forEach((unit=>{has$1(UNITS,unit)?m[unit]=1:error(`Invalid time unit: ${unit}.`)}));return(m[WEEK]||m[DAY]?1:0)+(m[QUARTER]||m[MONTH]||m[DATE]?1:0)+(m[DAYOFYEAR]?1:0)>1&&error(`Incompatible time units: ${units}`),u.sort(((a,b)=>UNITS[a]-UNITS[b])),u}const defaultSpecifiers={[YEAR]:"%Y ",[QUARTER]:"Q%q ",[MONTH]:"%b ",[DATE]:"%d ",[WEEK]:"W%U ",[DAY]:"%a ",[DAYOFYEAR]:"%j ",[HOURS]:"%H:00",[MINUTES]:"00:%M",[SECONDS]:":%S",[MILLISECONDS]:".%L",[`${YEAR}-${MONTH}`]:"%Y-%m ",[`${YEAR}-${MONTH}-${DATE}`]:"%Y-%m-%d ",[`${HOURS}-${MINUTES}`]:"%H:%M"};function timeUnitSpecifier(units,specifiers){const s=extend$1({},defaultSpecifiers,specifiers),u=timeUnits(units),n=u.length;let end,key,fmt="",start=0;for(start=0;startstart;--end)if(key=u.slice(start,end).join("-"),null!=s[key]){fmt+=s[key],start=end;break}return fmt.trim()}const t0$1=new Date;function localYear(y){return t0$1.setFullYear(y),t0$1.setMonth(0),t0$1.setDate(1),t0$1.setHours(0,0,0,0),t0$1}function dayofyear(d){return localDayOfYear(new Date(d))}function week(d){return localWeekNum(new Date(d))}function localDayOfYear(d){return timeDay.count(localYear(d.getFullYear())-1,d)}function localWeekNum(d){return timeSunday.count(localYear(d.getFullYear())-1,d)}function localFirst(y){return localYear(y).getDay()}function localDate$1(y,m,d,H,M,S,L){if(0<=y&&y<100){const date=new Date(-1,m,d,H,M,S,L);return date.setFullYear(y),date}return new Date(y,m,d,H,M,S,L)}function utcdayofyear(d){return utcDayOfYear(new Date(d))}function utcweek(d){return utcWeekNum(new Date(d))}function utcDayOfYear(d){const y=Date.UTC(d.getUTCFullYear(),0,1);return utcDay.count(y-1,d)}function utcWeekNum(d){const y=Date.UTC(d.getUTCFullYear(),0,1);return utcSunday.count(y-1,d)}function utcFirst(y){return t0$1.setTime(Date.UTC(y,0,1)),t0$1.getUTCDay()}function utcDate$1(y,m,d,H,M,S,L){if(0<=y&&y<100){const date=new Date(Date.UTC(-1,m,d,H,M,S,L));return date.setUTCFullYear(d.y),date}return new Date(Date.UTC(y,m,d,H,M,S,L))}function floor(units,step,get,inv,newDate){const s=step||1,b=peek$1(units),_=(unit,p,key)=>function getUnit(f,inv,step,phase){const u=step<=1?f:phase?(d,y)=>phase+step*Math.floor((f(d,y)-phase)/step):(d,y)=>step*Math.floor(f(d,y)/step);return inv?(d,y)=>inv(u(d,y),y):u}(get[key=key||unit],inv[key],unit===b&&s,p),t=new Date,u=toSet(units),y=u[YEAR]?_(YEAR):constant$5(2012),m=u[MONTH]?_(MONTH):u[QUARTER]?_(QUARTER):zero$5,d=u[WEEK]&&u[DAY]?_(DAY,1,WEEK+DAY):u[WEEK]?_(WEEK,1):u[DAY]?_(DAY,1):u[DATE]?_(DATE,1):u[DAYOFYEAR]?_(DAYOFYEAR,1):one$2,H=u[HOURS]?_(HOURS):zero$5,M=u[MINUTES]?_(MINUTES):zero$5,S=u[SECONDS]?_(SECONDS):zero$5,L=u[MILLISECONDS]?_(MILLISECONDS):zero$5;return function(v){t.setTime(+v);const year=y(t);return newDate(year,m(t),d(t,year),H(t),M(t),S(t),L(t))}}function weekday(week,day,firstDay){return day+7*week-(firstDay+6)%7}const localGet={[YEAR]:d=>d.getFullYear(),[QUARTER]:d=>Math.floor(d.getMonth()/3),[MONTH]:d=>d.getMonth(),[DATE]:d=>d.getDate(),[HOURS]:d=>d.getHours(),[MINUTES]:d=>d.getMinutes(),[SECONDS]:d=>d.getSeconds(),[MILLISECONDS]:d=>d.getMilliseconds(),[DAYOFYEAR]:d=>localDayOfYear(d),[WEEK]:d=>localWeekNum(d),[WEEK+DAY]:(d,y)=>weekday(localWeekNum(d),d.getDay(),localFirst(y)),[DAY]:(d,y)=>weekday(1,d.getDay(),localFirst(y))},localInv={[QUARTER]:q=>3*q,[WEEK]:(w,y)=>weekday(w,0,localFirst(y))};function timeFloor(units,step){return floor(units,step||1,localGet,localInv,localDate$1)}const utcGet={[YEAR]:d=>d.getUTCFullYear(),[QUARTER]:d=>Math.floor(d.getUTCMonth()/3),[MONTH]:d=>d.getUTCMonth(),[DATE]:d=>d.getUTCDate(),[HOURS]:d=>d.getUTCHours(),[MINUTES]:d=>d.getUTCMinutes(),[SECONDS]:d=>d.getUTCSeconds(),[MILLISECONDS]:d=>d.getUTCMilliseconds(),[DAYOFYEAR]:d=>utcDayOfYear(d),[WEEK]:d=>utcWeekNum(d),[DAY]:(d,y)=>weekday(1,d.getUTCDay(),utcFirst(y)),[WEEK+DAY]:(d,y)=>weekday(utcWeekNum(d),d.getUTCDay(),utcFirst(y))},utcInv={[QUARTER]:q=>3*q,[WEEK]:(w,y)=>weekday(w,0,utcFirst(y))};function utcFloor(units,step){return floor(units,step||1,utcGet,utcInv,utcDate$1)}const timeIntervals={[YEAR]:timeYear,[QUARTER]:timeMonth.every(3),[MONTH]:timeMonth,[WEEK]:timeSunday,[DATE]:timeDay,[DAY]:timeDay,[DAYOFYEAR]:timeDay,[HOURS]:timeHour,[MINUTES]:timeMinute,[SECONDS]:second,[MILLISECONDS]:millisecond},utcIntervals={[YEAR]:utcYear,[QUARTER]:utcMonth.every(3),[MONTH]:utcMonth,[WEEK]:utcSunday,[DATE]:utcDay,[DAY]:utcDay,[DAYOFYEAR]:utcDay,[HOURS]:utcHour,[MINUTES]:utcMinute,[SECONDS]:second,[MILLISECONDS]:millisecond};function timeInterval(unit){return timeIntervals[unit]}function utcInterval(unit){return utcIntervals[unit]}function offset$3(ival,date,step){return ival?ival.offset(date,step):void 0}function timeOffset(unit,date,step){return offset$3(timeInterval(unit),date,step)}function utcOffset(unit,date,step){return offset$3(utcInterval(unit),date,step)}function sequence$1(ival,start,stop,step){return ival?ival.range(start,stop,step):void 0}function timeSequence(unit,start,stop,step){return sequence$1(timeInterval(unit),start,stop,step)}function utcSequence(unit,start,stop,step){return sequence$1(utcInterval(unit),start,stop,step)}const Milli=[YEAR,MONTH,DATE,HOURS,MINUTES,SECONDS,MILLISECONDS],Seconds=Milli.slice(0,-1),Minutes=Seconds.slice(0,-1),Hours=Minutes.slice(0,-1),Day=Hours.slice(0,-1),Month=[YEAR,MONTH],Year=[YEAR],intervals=[[Seconds,1,1e3],[Seconds,5,5e3],[Seconds,15,15e3],[Seconds,30,3e4],[Minutes,1,6e4],[Minutes,5,3e5],[Minutes,15,9e5],[Minutes,30,18e5],[Hours,1,36e5],[Hours,3,108e5],[Hours,6,216e5],[Hours,12,432e5],[Day,1,864e5],[[YEAR,WEEK],1,6048e5],[Month,1,2592e6],[Month,3,7776e6],[Year,1,31536e6]];function bin$2(opt){const ext=opt.extent,max=opt.maxbins||40,target=Math.abs(span(ext))/max;let units,step,i=bisector$1((i=>i[2])).right(intervals,target);return i===intervals.length?(units=Year,step=tickStep(ext[0]/31536e6,ext[1]/31536e6,max)):i?(i=intervals[target/intervals[i-1][2]=12)]},q:function formatQuarter(d){return 1+~~(d.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},utcFormats={a:function formatUTCShortWeekday(d){return locale_shortWeekdays[d.getUTCDay()]},A:function formatUTCWeekday(d){return locale_weekdays[d.getUTCDay()]},b:function formatUTCShortMonth(d){return locale_shortMonths[d.getUTCMonth()]},B:function formatUTCMonth(d){return locale_months[d.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function formatUTCPeriod(d){return locale_periods[+(d.getUTCHours()>=12)]},q:function formatUTCQuarter(d){return 1+~~(d.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},parses={a:function parseShortWeekday(d,string,i){var n=shortWeekdayRe.exec(string.slice(i));return n?(d.w=shortWeekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},A:function parseWeekday(d,string,i){var n=weekdayRe.exec(string.slice(i));return n?(d.w=weekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},b:function parseShortMonth(d,string,i){var n=shortMonthRe.exec(string.slice(i));return n?(d.m=shortMonthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},B:function parseMonth(d,string,i){var n=monthRe.exec(string.slice(i));return n?(d.m=monthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},c:function parseLocaleDateTime(d,string,i){return parseSpecifier(d,locale_dateTime,string,i)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function parsePeriod(d,string,i){var n=periodRe.exec(string.slice(i));return n?(d.p=periodLookup.get(n[0].toLowerCase()),i+n[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function parseLocaleDate(d,string,i){return parseSpecifier(d,locale_date,string,i)},X:function parseLocaleTime(d,string,i){return parseSpecifier(d,locale_time,string,i)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(specifier,formats){return function(date){var c,pad,format,string=[],i=-1,j=0,n=specifier.length;for(date instanceof Date||(date=new Date(+date));++i53)return null;"w"in d||(d.w=1),"Z"in d?(day=(week=utcDate(newDate(d.y,0,1))).getUTCDay(),week=day>4||0===day?utcMonday.ceil(week):utcMonday(week),week=utcDay.offset(week,7*(d.V-1)),d.y=week.getUTCFullYear(),d.m=week.getUTCMonth(),d.d=week.getUTCDate()+(d.w+6)%7):(day=(week=localDate(newDate(d.y,0,1))).getDay(),week=day>4||0===day?timeMonday.ceil(week):timeMonday(week),week=timeDay.offset(week,7*(d.V-1)),d.y=week.getFullYear(),d.m=week.getMonth(),d.d=week.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),day="Z"in d?utcDate(newDate(d.y,0,1)).getUTCDay():localDate(newDate(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(day+5)%7:d.w+7*d.U-(day+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,utcDate(d)):localDate(d)}}function parseSpecifier(d,specifier,string,j){for(var c,parse,i=0,n=specifier.length,m=string.length;i=m)return-1;if(37===(c=specifier.charCodeAt(i++))){if(c=specifier.charAt(i++),!(parse=parses[c in pads?specifier.charAt(i++):c])||(j=parse(d,string,j))<0)return-1}else if(c!=string.charCodeAt(j++))return-1}return j}return formats.x=newFormat(locale_date,formats),formats.X=newFormat(locale_time,formats),formats.c=newFormat(locale_dateTime,formats),utcFormats.x=newFormat(locale_date,utcFormats),utcFormats.X=newFormat(locale_time,utcFormats),utcFormats.c=newFormat(locale_dateTime,utcFormats),{format:function(specifier){var f=newFormat(specifier+="",formats);return f.toString=function(){return specifier},f},parse:function(specifier){var p=newParse(specifier+="",!1);return p.toString=function(){return specifier},p},utcFormat:function(specifier){var f=newFormat(specifier+="",utcFormats);return f.toString=function(){return specifier},f},utcParse:function(specifier){var p=newParse(specifier+="",!0);return p.toString=function(){return specifier},p}}}var locale$1,timeFormat$2,timeParse$1,utcFormat$1,utcParse$1,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(value,fill,width){var sign=value<0?"-":"",string=(sign?-value:value)+"",length=string.length;return sign+(length[name.toLowerCase(),i])))}function parseWeekdayNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.w=+n[0],i+n[0].length):-1}function parseWeekdayNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.u=+n[0],i+n[0].length):-1}function parseWeekNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.U=+n[0],i+n[0].length):-1}function parseWeekNumberISO(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.V=+n[0],i+n[0].length):-1}function parseWeekNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.W=+n[0],i+n[0].length):-1}function parseFullYear(d,string,i){var n=numberRe.exec(string.slice(i,i+4));return n?(d.y=+n[0],i+n[0].length):-1}function parseYear(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.y=+n[0]+(+n[0]>68?1900:2e3),i+n[0].length):-1}function parseZone(d,string,i){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i,i+6));return n?(d.Z=n[1]?0:-(n[2]+(n[3]||"00")),i+n[0].length):-1}function parseQuarter(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.q=3*n[0]-3,i+n[0].length):-1}function parseMonthNumber(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.m=n[0]-1,i+n[0].length):-1}function parseDayOfMonth(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.d=+n[0],i+n[0].length):-1}function parseDayOfYear(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.m=0,d.d=+n[0],i+n[0].length):-1}function parseHour24(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.H=+n[0],i+n[0].length):-1}function parseMinutes(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.M=+n[0],i+n[0].length):-1}function parseSeconds(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.S=+n[0],i+n[0].length):-1}function parseMilliseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.L=+n[0],i+n[0].length):-1}function parseMicroseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+6));return n?(d.L=Math.floor(n[0]/1e3),i+n[0].length):-1}function parseLiteralPercent(d,string,i){var n=percentRe.exec(string.slice(i,i+1));return n?i+n[0].length:-1}function parseUnixTimestamp(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.Q=+n[0],i+n[0].length):-1}function parseUnixTimestampSeconds(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.s=+n[0],i+n[0].length):-1}function formatDayOfMonth(d,p){return pad(d.getDate(),p,2)}function formatHour24(d,p){return pad(d.getHours(),p,2)}function formatHour12(d,p){return pad(d.getHours()%12||12,p,2)}function formatDayOfYear(d,p){return pad(1+timeDay.count(timeYear(d),d),p,3)}function formatMilliseconds(d,p){return pad(d.getMilliseconds(),p,3)}function formatMicroseconds(d,p){return formatMilliseconds(d,p)+"000"}function formatMonthNumber(d,p){return pad(d.getMonth()+1,p,2)}function formatMinutes(d,p){return pad(d.getMinutes(),p,2)}function formatSeconds(d,p){return pad(d.getSeconds(),p,2)}function formatWeekdayNumberMonday(d){var day=d.getDay();return 0===day?7:day}function formatWeekNumberSunday(d,p){return pad(timeSunday.count(timeYear(d)-1,d),p,2)}function dISO(d){var day=d.getDay();return day>=4||0===day?timeThursday(d):timeThursday.ceil(d)}function formatWeekNumberISO(d,p){return d=dISO(d),pad(timeThursday.count(timeYear(d),d)+(4===timeYear(d).getDay()),p,2)}function formatWeekdayNumberSunday(d){return d.getDay()}function formatWeekNumberMonday(d,p){return pad(timeMonday.count(timeYear(d)-1,d),p,2)}function formatYear(d,p){return pad(d.getFullYear()%100,p,2)}function formatYearISO(d,p){return pad((d=dISO(d)).getFullYear()%100,p,2)}function formatFullYear(d,p){return pad(d.getFullYear()%1e4,p,4)}function formatFullYearISO(d,p){var day=d.getDay();return pad((d=day>=4||0===day?timeThursday(d):timeThursday.ceil(d)).getFullYear()%1e4,p,4)}function formatZone(d){var z=d.getTimezoneOffset();return(z>0?"-":(z*=-1,"+"))+pad(z/60|0,"0",2)+pad(z%60,"0",2)}function formatUTCDayOfMonth(d,p){return pad(d.getUTCDate(),p,2)}function formatUTCHour24(d,p){return pad(d.getUTCHours(),p,2)}function formatUTCHour12(d,p){return pad(d.getUTCHours()%12||12,p,2)}function formatUTCDayOfYear(d,p){return pad(1+utcDay.count(utcYear(d),d),p,3)}function formatUTCMilliseconds(d,p){return pad(d.getUTCMilliseconds(),p,3)}function formatUTCMicroseconds(d,p){return formatUTCMilliseconds(d,p)+"000"}function formatUTCMonthNumber(d,p){return pad(d.getUTCMonth()+1,p,2)}function formatUTCMinutes(d,p){return pad(d.getUTCMinutes(),p,2)}function formatUTCSeconds(d,p){return pad(d.getUTCSeconds(),p,2)}function formatUTCWeekdayNumberMonday(d){var dow=d.getUTCDay();return 0===dow?7:dow}function formatUTCWeekNumberSunday(d,p){return pad(utcSunday.count(utcYear(d)-1,d),p,2)}function UTCdISO(d){var day=d.getUTCDay();return day>=4||0===day?utcThursday(d):utcThursday.ceil(d)}function formatUTCWeekNumberISO(d,p){return d=UTCdISO(d),pad(utcThursday.count(utcYear(d),d)+(4===utcYear(d).getUTCDay()),p,2)}function formatUTCWeekdayNumberSunday(d){return d.getUTCDay()}function formatUTCWeekNumberMonday(d,p){return pad(utcMonday.count(utcYear(d)-1,d),p,2)}function formatUTCYear(d,p){return pad(d.getUTCFullYear()%100,p,2)}function formatUTCYearISO(d,p){return pad((d=UTCdISO(d)).getUTCFullYear()%100,p,2)}function formatUTCFullYear(d,p){return pad(d.getUTCFullYear()%1e4,p,4)}function formatUTCFullYearISO(d,p){var day=d.getUTCDay();return pad((d=day>=4||0===day?utcThursday(d):utcThursday.ceil(d)).getUTCFullYear()%1e4,p,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(d){return+d}function formatUnixTimestampSeconds(d){return Math.floor(+d/1e3)}function memoize(method){const cache={};return spec=>cache[spec]||(cache[spec]=method(spec))}function numberLocale(locale){const format=memoize(locale.format),formatPrefix=locale.formatPrefix;return{format,formatPrefix,formatFloat(spec){const s=formatSpecifier(spec||",");if(null==s.precision){switch(s.precision=12,s.type){case"%":s.precision-=2;break;case"e":s.precision-=1}return function trimZeroes(numberFormat,decimalChar){return x=>{const str=numberFormat(x),dec=str.indexOf(decimalChar);if(dec<0)return str;let idx=function rightmostDigit(str,dec){let c,i=str.lastIndexOf("e");if(i>0)return i;for(i=str.length;--i>dec;)if(c=str.charCodeAt(i),c>=48&&c<=57)return i+1}(str,dec);const end=idxdec;)if("0"!==str[idx]){++idx;break}return str.slice(0,idx)+end}}(format(s),format(".1f")(1)[1])}return format(s)},formatSpan(start,stop,count,specifier){specifier=formatSpecifier(null==specifier?",f":specifier);const step=tickStep(start,stop,count),value=Math.max(Math.abs(start),Math.abs(stop));let precision;if(null==specifier.precision)switch(specifier.type){case"s":return isNaN(precision=precisionPrefix(step,value))||(specifier.precision=precision),formatPrefix(specifier,value);case"":case"e":case"g":case"p":case"r":isNaN(precision=precisionRound(step,value))||(specifier.precision=precision-("e"===specifier.type));break;case"f":case"%":isNaN(precision=precisionFixed(step))||(specifier.precision=precision-2*("%"===specifier.type))}return format(specifier)}}}let defaultNumberLocale,defaultTimeLocale;function resetNumberFormatDefaultLocale(){return defaultNumberLocale=numberLocale({format:format$3,formatPrefix})}function numberFormatLocale(definition){return numberLocale(formatLocale$1(definition))}function numberFormatDefaultLocale(definition){return arguments.length?defaultNumberLocale=numberFormatLocale(definition):defaultNumberLocale}function timeMultiFormat(format,interval,spec){isObject(spec=spec||{})||error(`Invalid time multi-format specifier: ${spec}`);const second=interval(SECONDS),minute=interval(MINUTES),hour=interval(HOURS),day=interval(DATE),week=interval(WEEK),month=interval(MONTH),quarter=interval(QUARTER),year=interval(YEAR),L=format(spec[MILLISECONDS]||".%L"),S=format(spec[SECONDS]||":%S"),M=format(spec[MINUTES]||"%I:%M"),H=format(spec[HOURS]||"%I %p"),d=format(spec[DATE]||spec[DAY]||"%a %d"),w=format(spec[WEEK]||"%b %d"),m=format(spec[MONTH]||"%B"),q=format(spec[QUARTER]||"%B"),y=format(spec[YEAR]||"%Y");return date=>(second(date)isString(spec)?timeFormat(spec):timeMultiFormat(timeFormat,timeInterval,spec),utcFormat:spec=>isString(spec)?utcFormat(spec):timeMultiFormat(utcFormat,utcInterval,spec),timeParse:memoize(locale.parse),utcParse:memoize(locale.utcParse)}}function resetTimeFormatDefaultLocale(){return defaultTimeLocale=timeLocale({format:timeFormat$2,parse:timeParse$1,utcFormat:utcFormat$1,utcParse:utcParse$1})}function timeFormatLocale(definition){return timeLocale(formatLocale(definition))}function timeFormatDefaultLocale(definition){return arguments.length?defaultTimeLocale=timeFormatLocale(definition):defaultTimeLocale}!function defaultLocale$1(definition){return locale$1=formatLocale(definition),timeFormat$2=locale$1.format,timeParse$1=locale$1.parse,utcFormat$1=locale$1.utcFormat,utcParse$1=locale$1.utcParse,locale$1}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),resetNumberFormatDefaultLocale(),resetTimeFormatDefaultLocale();const createLocale=(number,time)=>extend$1({},number,time);function locale(numberSpec,timeSpec){const number=numberSpec?numberFormatLocale(numberSpec):numberFormatDefaultLocale(),time=timeSpec?timeFormatLocale(timeSpec):timeFormatDefaultLocale();return createLocale(number,time)}function defaultLocale(numberSpec,timeSpec){const args=arguments.length;return args&&2!==args&&error("defaultLocale expects either zero or two arguments."),args?createLocale(numberFormatDefaultLocale(numberSpec),timeFormatDefaultLocale(timeSpec)):createLocale(numberFormatDefaultLocale(),timeFormatDefaultLocale())}const protocol_re=/^(data:|([A-Za-z]+:)?\/\/)/,allowed_re=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,whitespace_re=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,fileProtocol="file://";async function load$1(uri,options){const opt=await this.sanitize(uri,options),url=opt.href;return opt.localFile?this.file(url):this.http(url,options)}async function sanitize(uri,options){options=extend$1({},this.options,options);const fileAccess=this.fileAccess,result={href:null};let isFile,loadFile,base;const isAllowed=allowed_re.test(uri.replace(whitespace_re,""));null!=uri&&"string"==typeof uri&&isAllowed||error("Sanitize failure, invalid URI: "+$(uri));const hasProtocol=protocol_re.test(uri);return(base=options.baseURL)&&!hasProtocol&&(uri.startsWith("/")||base.endsWith("/")||(uri="/"+uri),uri=base+uri),loadFile=(isFile=uri.startsWith(fileProtocol))||"file"===options.mode||"http"!==options.mode&&!hasProtocol&&fileAccess,isFile?uri=uri.slice(fileProtocol.length):uri.startsWith("//")&&("file"===options.defaultProtocol?(uri=uri.slice(2),loadFile=!0):uri=(options.defaultProtocol||"http")+":"+uri),Object.defineProperty(result,"localFile",{value:!!loadFile}),result.href=uri,options.target&&(result.target=options.target+""),options.rel&&(result.rel=options.rel+""),"image"===options.context&&options.crossOrigin&&(result.crossOrigin=options.crossOrigin+""),result}function fileLoader(fs){return fs?filename=>new Promise(((accept,reject)=>{fs.readFile(filename,((error,data)=>{error?reject(error):accept(data)}))})):fileReject}async function fileReject(){error("No file system access.")}function httpLoader(fetch){return fetch?async function(url,options){const opt=extend$1({},this.options.http,options),type=options&&options.response,response=await fetch(url,opt);return response.ok?isFunction$1(response[type])?response[type]():response.text():error(response.status+""+response.statusText)}:httpReject}async function httpReject(){error("No HTTP fetch method available.")}const isValid=_=>null!=_&&_==_,isNumber=_=>!(Number.isNaN(+_)||_ instanceof Date),typeParsers={boolean:toBoolean,integer:toNumber,number:toNumber,date:toDate,string:toString,unknown:identity$6},typeTests=[_=>"true"===_||"false"===_||!0===_||!1===_,_=>isNumber(_)&&Number.isInteger(+_),isNumber,_=>!Number.isNaN(Date.parse(_))],typeList=["boolean","integer","number","date"];function inferType(values,field){if(!values||!values.length)return"unknown";const n=values.length,m=typeTests.length,a=typeTests.map(((_,i)=>i+1));for(let j,value,i=0,t=0;i0===u?v:u),0)-1]}function inferTypes(data,fields){return fields.reduce(((types,field)=>(types[field]=inferType(data,field),types)),{})}function delimitedFormat(delimiter){const parse=function(data,format){const delim={delimiter};return dsv(data,format?extend$1(format,delim):delim)};return parse.responseType="text",parse}function dsv(data,format){return format.header&&(data=format.header.map($).join(format.delimiter)+"\n"+data),dsvFormat(format.delimiter).parse(data+"")}function json(data,format){const prop=format&&format.property?field$1(format.property):identity$6;return isObject(data)&&!function isBuffer(_){return!("function"!=typeof Buffer||!isFunction$1(Buffer.isBuffer))&&Buffer.isBuffer(_)}(data)?function parseJSON(data,format){!isArray(data)&&isIterable(data)&&(data=[...data]);return format&&format.copy?JSON.parse(JSON.stringify(data)):data}(prop(data),format):prop(JSON.parse(data))}dsv.responseType="text",json.responseType="json";const filters={interior:(a,b)=>a!==b,exterior:(a,b)=>a===b};function topojson(data,format){let method,object,property,filter;return data=json(data,format),format&&format.feature?(method=feature,property=format.feature):format&&format.mesh?(method=mesh,property=format.mesh,filter=filters[format.filter]):error("Missing TopoJSON feature or mesh parameter."),object=(object=data.objects[property])?method(data,object,filter):error("Invalid TopoJSON object: "+property),object&&object.features||[object]}topojson.responseType="json";const format$2={dsv,csv:delimitedFormat(","),tsv:delimitedFormat("\t"),json,topojson};function formats$1(name,reader){return arguments.length>1?(format$2[name]=reader,this):has$1(format$2,name)?format$2[name]:null}function responseType(type){const f=formats$1(type);return f&&f.responseType||"text"}function read(data,schema,timeParser,utcParser){const reader=formats$1((schema=schema||{}).type||"json");return reader||error("Unknown data format type: "+schema.type),data=reader(data,schema),schema.parse&&function parse$6(data,types,timeParser,utcParser){if(!data.length)return;const locale=timeFormatDefaultLocale();timeParser=timeParser||locale.timeParse,utcParser=utcParser||locale.utcParse;let datum,field,i,j,n,m,fields=data.columns||Object.keys(data[0]);"auto"===types&&(types=inferTypes(data,fields));fields=Object.keys(types);const parsers=fields.map((field=>{const type=types[field];let parts,pattern;if(type&&(type.startsWith("date:")||type.startsWith("utc:"))){parts=type.split(/:(.+)?/,2),pattern=parts[1],("'"===pattern[0]&&"'"===pattern[pattern.length-1]||'"'===pattern[0]&&'"'===pattern[pattern.length-1])&&(pattern=pattern.slice(1,-1));return("utc"===parts[0]?utcParser:timeParser)(pattern)}if(!typeParsers[type])throw Error("Illegal format pattern: "+field+":"+type);return typeParsers[type]}));for(i=0,n=data.length,m=fields.length;i({options:options||{},sanitize,load:load$1,fileAccess:!!fs,file:fileLoader(fs),http:httpLoader(fetch)})}("undefined"!=typeof fetch&&fetch,null);function UniqueList(idFunc){const $=idFunc||identity$6,list=[],ids={};return list.add=_=>{const id=$(_);return ids[id]||(ids[id]=1,list.push(_)),list},list.remove=_=>{const id=$(_);if(ids[id]){ids[id]=0;const idx=list.indexOf(_);idx>=0&&list.splice(idx,1)}return list},list}async function asyncCallback(df,callback){try{await callback(df)}catch(err){df.error(err)}}const TUPLE_ID_KEY=Symbol("vega_id");let TUPLE_ID=1;function isTuple(t){return!(!t||!tupleid(t))}function tupleid(t){return t[TUPLE_ID_KEY]}function setid(t,id){return t[TUPLE_ID_KEY]=id,t}function ingest$1(datum){const t=datum===Object(datum)?datum:{data:datum};return tupleid(t)?t:setid(t,TUPLE_ID++)}function derive(t){return rederive(t,ingest$1({}))}function rederive(t,d){for(const k in t)d[k]=t[k];return d}function replace$1(t,d){return setid(d,tupleid(t))}function stableCompare(cmp,f){return cmp?f?(a,b)=>cmp(a,b)||tupleid(f(a))-tupleid(f(b)):(a,b)=>cmp(a,b)||tupleid(a)-tupleid(b):null}function isChangeSet(v){return v&&v.constructor===changeset}function changeset(){const add=[],rem=[],mod=[],remp=[],modp=[];let clean=null,reflow=!1;return{constructor:changeset,insert(t){const d=array$5(t),n=d.length;for(let i=0;i{f(t)&&(cur[tupleid(t)]=-1)}));for(i=0,n=add.length;i0&&(modify(t,f,m.value),pulse.modifies(f));for(i=0,n=modp.length;i{f(t)&&cur[tupleid(t)]>0&&modify(t,m.field,m.value)})),pulse.modifies(m.field);if(reflow)pulse.mod=rem.length||remp.length?tuples.filter((t=>cur[tupleid(t)]>0)):tuples.slice();else for(id in out)pulse.mod.push(out[id]);return(clean||null==clean&&(rem.length||remp.length))&&pulse.clean(!0),pulse}}}const CACHE$1="_:mod:_";function Parameters(){Object.defineProperty(this,CACHE$1,{writable:!0,value:{}})}Parameters.prototype={set(name,index,value,force){const o=this,v=o[name],mod=o[CACHE$1];return null!=index&&index>=0?(v[index]!==value||force)&&(v[index]=value,mod[index+":"+name]=-1,mod[name]=-1):(v!==value||force)&&(o[name]=value,mod[name]=isArray(value)?1+value.length:-1),o},modified(name,index){const mod=this[CACHE$1];if(!arguments.length){for(const k in mod)if(mod[k])return!0;return!1}if(isArray(name)){for(let k=0;k=0?index+1{value instanceof Operator?(value!==this&&(react&&value.targets().add(this),deps.push(value)),argops.push({op:value,name,index})):argval.set(name,index,value)};for(name in params)if(value=params[name],"pulse"===name)array$5(value).forEach((op=>{op instanceof Operator?op!==this&&(op.targets().add(this),deps.push(op)):error("Pulse parameters must be operator instances.")})),this.source=value;else if(isArray(value))for(argval.set(name,-1,Array(n=value.length)),i=0;i{const now=Date.now();return now-t>pause?(t=now,1):0}))},debounce(delay){const s=stream();return this.targets().add(stream(null,null,debounce(delay,(e=>{const df=e.dataflow;s.receive(e),df&&df.run&&df.run()})))),s},between(a,b){let active=!1;return a.targets().add(stream(null,null,(()=>active=!0))),b.targets().add(stream(null,null,(()=>active=!1))),this.filter((()=>active))},detach(){this._filter=truthy,this._targets=null}};const SKIP$2={skip:!0};function onStream(df,stream,target,update,params,options){const opt=extend$1({},options,SKIP$2);let func,op;isFunction$1(target)||(target=constant$5(target)),void 0===update?func=e=>df.touch(target(e)):isFunction$1(update)?(op=new Operator(null,update,params,!1),func=e=>{op.evaluate(e);const t=target(e),v=op.value;isChangeSet(v)?df.pulse(t,v,options):df.update(t,v,opt)}):func=e=>df.update(target(e),update,opt),stream.apply(func)}function onOperator(df,source,target,update,params,options){if(void 0===update)source.targets().add(target);else{const opt=options||{},op=new Operator(null,function updater(target,update){return update=isFunction$1(update)?update:constant$5(update),target?function(_,pulse){const value=update(_,pulse);return target.skip()||(target.skip(value!==this.value).value=value),value}:update}(target,update),params,!1);op.modified(opt.force),op.rank=source.rank,source.targets().add(op),target&&(op.skip(!0),op.value=target.value,op.targets().add(target),df.connect(target,[op]))}}const StopPropagation={};function Pulse(dataflow,stamp,encode){this.dataflow=dataflow,this.stamp=null==stamp?-1:stamp,this.add=[],this.rem=[],this.mod=[],this.fields=null,this.encode=encode||null}function materialize(data,filter){const out=[];return visitArray(data,filter,(_=>out.push(_))),out}function filter$1(pulse,flags){const map={};return pulse.visit(flags,(t=>{map[tupleid(t)]=1})),t=>map[tupleid(t)]?null:t}function addFilter(a,b){return a?(t,i)=>a(t,i)&&b(t,i):b}function MultiPulse(dataflow,stamp,pulses,encode){const p=this;let c=0;this.dataflow=dataflow,this.stamp=stamp,this.fields=null,this.encode=encode||null,this.pulses=pulses;for(const pulse of pulses)if(pulse.stamp===stamp){if(pulse.fields){const hash=p.fields||(p.fields={});for(const f in pulse.fields)hash[f]=1}pulse.changed(p.ADD)&&(c|=p.ADD),pulse.changed(p.REM)&&(c|=p.REM),pulse.changed(p.MOD)&&(c|=p.MOD)}this.changes=c}function reentrant(df){return df.error("Dataflow already running. Use runAsync() to chain invocations."),df}Pulse.prototype={StopPropagation,ADD:1,REM:2,MOD:4,ADD_REM:3,ADD_MOD:5,ALL:7,REFLOW:8,SOURCE:16,NO_SOURCE:32,NO_FIELDS:64,fork(flags){return new Pulse(this.dataflow).init(this,flags)},clone(){const p=this.fork(7);return p.add=p.add.slice(),p.rem=p.rem.slice(),p.mod=p.mod.slice(),p.source&&(p.source=p.source.slice()),p.materialize(23)},addAll(){let p=this;return!p.source||p.add===p.rem||!p.rem.length&&p.source.length===p.add.length||(p=new Pulse(this.dataflow).init(this),p.add=p.source,p.rem=[]),p},init(src,flags){const p=this;return p.stamp=src.stamp,p.encode=src.encode,!src.fields||64&flags||(p.fields=src.fields),1&flags?(p.addF=src.addF,p.add=src.add):(p.addF=null,p.add=[]),2&flags?(p.remF=src.remF,p.rem=src.rem):(p.remF=null,p.rem=[]),4&flags?(p.modF=src.modF,p.mod=src.mod):(p.modF=null,p.mod=[]),32&flags?(p.srcF=null,p.source=null):(p.srcF=src.srcF,p.source=src.source,src.cleans&&(p.cleans=src.cleans)),p},runAfter(func){this.dataflow.runAfter(func)},changed(flags){const f=flags||7;return 1&f&&this.add.length||2&f&&this.rem.length||4&f&&this.mod.length},reflow(fork){if(fork)return this.fork(7).reflow();const len=this.add.length,src=this.source&&this.source.length;return src&&src!==len&&(this.mod=this.source,len&&this.filter(4,filter$1(this,1))),this},clean(value){return arguments.length?(this.cleans=!!value,this):this.cleans},modifies(_){const hash=this.fields||(this.fields={});return isArray(_)?_.forEach((f=>hash[f]=!0)):hash[_]=!0,this},modified(_,nomod){const fields=this.fields;return!(!nomod&&!this.mod.length||!fields)&&(arguments.length?isArray(_)?_.some((f=>fields[f])):fields[_]:!!fields)},filter(flags,filter){const p=this;return 1&flags&&(p.addF=addFilter(p.addF,filter)),2&flags&&(p.remF=addFilter(p.remF,filter)),4&flags&&(p.modF=addFilter(p.modF,filter)),16&flags&&(p.srcF=addFilter(p.srcF,filter)),p},materialize(flags){const p=this;return 1&(flags=flags||7)&&p.addF&&(p.add=materialize(p.add,p.addF),p.addF=null),2&flags&&p.remF&&(p.rem=materialize(p.rem,p.remF),p.remF=null),4&flags&&p.modF&&(p.mod=materialize(p.mod,p.modF),p.modF=null),16&flags&&p.srcF&&(p.source=p.source.filter(p.srcF),p.srcF=null),p},visit(flags,visitor){const p=this,v=visitor;if(16&flags)return visitArray(p.source,p.srcF,v),p;1&flags&&visitArray(p.add,p.addF,v),2&flags&&visitArray(p.rem,p.remF,v),4&flags&&visitArray(p.mod,p.modF,v);const src=p.source;if(8&flags&&src){const sum=p.add.length+p.mod.length;sum===src.length||visitArray(src,sum?filter$1(p,5):p.srcF,v)}return p}},inherits(MultiPulse,Pulse,{fork(flags){const p=new Pulse(this.dataflow).init(this,flags&this.NO_FIELDS);return void 0!==flags&&(flags&p.ADD&&this.visit(p.ADD,(t=>p.add.push(t))),flags&p.REM&&this.visit(p.REM,(t=>p.rem.push(t))),flags&p.MOD&&this.visit(p.MOD,(t=>p.mod.push(t)))),p},changed(flags){return this.changes&flags},modified(_){const p=this,fields=p.fields;return fields&&p.changes&p.MOD?isArray(_)?_.some((f=>fields[f])):fields[_]:0},filter(){error("MultiPulse does not support filtering.")},materialize(){error("MultiPulse does not support materialization.")},visit(flags,visitor){const p=this,pulses=p.pulses,n=pulses.length;let i=0;if(flags&p.SOURCE)for(;inodes=[],size:()=>nodes.length,peek:()=>nodes[0],push:x=>(nodes.push(x),siftdown(nodes,0,nodes.length-1,cmp)),pop:()=>{const last=nodes.pop();let item;return nodes.length?(item=nodes[0],nodes[0]=last,function siftup(array,idx,cmp){const start=idx,end=array.length,item=array[idx];let ridx,cidx=1+(idx<<1);for(;cidx=0&&(cidx=ridx),array[idx]=array[cidx],cidx=1+((idx=cidx)<<1);return array[idx]=item,siftdown(array,start,idx,cmp)}(nodes,0,cmp)):item=last,item}}}function siftdown(array,start,idx,cmp){let parent,pidx;const item=array[idx];for(;idx>start&&(pidx=idx-1>>1,parent=array[pidx],cmp(item,parent)<0);)array[idx]=parent,idx=pidx;return array[idx]=item}function Dataflow(){this.logger(logger()),this.logLevel(Error$1),this._clock=0,this._rank=0,this._locale=defaultLocale();try{this._loader=loader()}catch(e){}this._touched=UniqueList(id),this._input={},this._pulse=null,this._heap=Heap(((a,b)=>a.qrank-b.qrank)),this._postrun=[]}function logMethod(method){return function(){return this._log[method].apply(this,arguments)}}function Transform(init,params){Operator.call(this,init,null,params)}Dataflow.prototype={stamp(){return this._clock},loader(_){return arguments.length?(this._loader=_,this):this._loader},locale(_){return arguments.length?(this._locale=_,this):this._locale},logger(logger){return arguments.length?(this._log=logger,this):this._log},error:logMethod("error"),warn:logMethod("warn"),info:logMethod("info"),debug:logMethod("debug"),logLevel:logMethod("level"),cleanThreshold:1e4,add:function add$4(init,update,params,react){let op,shift=1;return init instanceof Operator?op=init:init&&init.prototype instanceof Operator?op=new init:isFunction$1(init)?op=new Operator(null,init):(shift=0,op=new Operator(init,update)),this.rank(op),shift&&(react=params,params=update),params&&this.connect(op,op.parameters(params,react)),this.touch(op),op},connect:function connect(target,sources){const targetRank=target.rank,n=sources.length;for(let i=0;i=0;)queue.push(cur=list[i]),cur===op&&error("Cycle detected in dataflow graph.")},pulse:function pulse(op,changeset,options){this.touch(op,options||NO_OPT);const p=new Pulse(this,this._clock+(this._pulse?0:1)),t=op.pulse&&op.pulse.source||[];return p.target=op,this._input[op.id]=changeset.pulse(p,t),this},touch:function touch(op,options){const opt=options||NO_OPT;return this._pulse?this._enqueue(op):this._touched.add(op),opt.skip&&op.skip(!0),this},update:function update$6(op,value,options){const opt=options||NO_OPT;return(op.set(value)||opt.force)&&this.touch(op,opt),this},changeset,ingest:function ingest(target,data,format){return data=this.parse(data,format),this.pulse(target,this.changeset().insert(data))},parse:function parse$5(data,format){const locale=this.locale();return read(data,format,locale.timeParse,locale.utcParse)},preload:async function preload(target,url,format){const df=this,pending=df._pending||function loadPending(df){let accept;const pending=new Promise((a=>accept=a));return pending.requests=0,pending.done=()=>{0==--pending.requests&&(df._pending=null,accept(df))},df._pending=pending}(df);pending.requests+=1;const res=await df.request(url,format);return df.pulse(target,df.changeset().remove(truthy).insert(res.data||[])),pending.done(),res},request:async function request(url,format){const df=this;let data,status=0;try{data=await df.loader().load(url,{context:"dataflow",response:responseType(format&&format.type)});try{data=df.parse(data,format)}catch(err){status=-2,df.warn("Data ingestion failed",url,err)}}catch(err){status=-1,df.warn("Loading failed",url,err)}return{data,status}},events:function events$1(source,type,filter,apply){const df=this,s=stream(filter,apply),send=function(e){e.dataflow=df;try{s.receive(e)}catch(error){df.error(error)}finally{df.run()}};let sources;sources="string"==typeof source&&"undefined"!=typeof document?document.querySelectorAll(source):array$5(source);const n=sources.length;for(let i=0;idf._enqueue(op,!0))),df._touched=UniqueList(id);let op,next,error,count=0;try{for(;df._heap.size()>0;)op=df._heap.pop(),op.rank===op.qrank?(next=op.run(df._getPulse(op,encode)),next.then?next=await next:next.async&&(async.push(next.async),next=StopPropagation),next!==StopPropagation&&op._targets&&op._targets.forEach((op=>df._enqueue(op))),++count):df._enqueue(op,!0)}catch(err){df._heap.clear(),error=err}if(df._input={},df._pulse=null,df.debug(`Pulse ${stamp}: ${count} operators`),error&&(df._postrun=[],df.error(error)),df._postrun.length){const pr=df._postrun.sort(((a,b)=>b.priority-a.priority));df._postrun=[];for(let i=0;idf.runAsync(null,(()=>{cb.forEach((f=>{try{f(df)}catch(err){df.error(err)}}))})))),df},run:function run(encode,prerun,postrun){return this._pulse?reentrant(this):(this.evaluate(encode,prerun,postrun),this)},runAsync:async function runAsync(encode,prerun,postrun){for(;this._running;)await this._running;const clear=()=>this._running=null;return(this._running=this.evaluate(encode,prerun,postrun)).then(clear,clear),this._running},runAfter:function runAfter(callback,enqueue,priority){if(this._pulse||enqueue)this._postrun.push({priority:priority||0,callback});else try{callback(this)}catch(err){this.error(err)}},_enqueue:function enqueue(op,force){const q=op.stamp_.pulse)),encode):this._input[op.id]||function singlePulse(p,s){if(s&&s.stamp===p.stamp)return s;p=p.fork(),s&&s!==StopPropagation&&(p.source=s.source);return p}(this._pulse,s&&s.pulse)}},inherits(Transform,Operator,{run(pulse){if(pulse.stampthis.pulse=_)):rv!==pulse.StopPropagation&&(this.pulse=rv),rv},evaluate(pulse){const params=this.marshall(pulse.stamp),out=this.transform(params,pulse);return params.clear(),out},transform(){}});const transforms={};function definition$1(type){const t=transform$2(type);return t&&t.Definition||null}function transform$2(type){return type=type&&type.toLowerCase(),has$1(transforms,type)?transforms[type]:null}function*numbers$1(values,valueof){if(null==valueof)for(let value of values)null!=value&&""!==value&&(value=+value)>=value&&(yield value);else{let index=-1;for(let value of values)value=valueof(value,++index,values),null!=value&&""!==value&&(value=+value)>=value&&(yield value)}}function quantiles(array,p,f){const values=Float64Array.from(numbers$1(array,f));return values.sort(ascending$2),p.map((_=>quantileSorted(values,_)))}function quartiles(array,f){return quantiles(array,[.25,.5,.75],f)}function estimateBandwidth(array,f){const n=array.length,d=function deviation(values,valueof){const v=function variance(values,valueof){let delta,count=0,mean=0,sum=0;if(void 0===valueof)for(let value of values)null!=value&&(value=+value)>=value&&(delta=value-mean,mean+=delta/++count,sum+=delta*(value-mean));else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(value=+value)>=value&&(delta=value-mean,mean+=delta/++count,sum+=delta*(value-mean))}if(count>1)return sum/(count-1)}(values,valueof);return v?Math.sqrt(v):v}(array,f),q=quartiles(array,f),h=(q[2]-q[0])/1.34;return 1.06*(Math.min(d,h)||d||Math.abs(q[0])||1)*Math.pow(n,-.2)}function bin$1(_){const maxb=_.maxbins||20,base=_.base||10,logb=Math.log(base),div=_.divide||[5,2];let step,level,minstep,v,i,n,min=_.extent[0],max=_.extent[1];const span=_.span||max-min||Math.abs(min)||1;if(_.step)step=_.step;else if(_.steps){for(v=span/maxb,i=0,n=_.steps.length;imaxb;)step*=base;for(i=0,n=div.length;i=minstep&&span/v<=maxb&&(step=v)}v=Math.log(step);const precision=v>=0?0:1+~~(-v/logb),eps=Math.pow(base,-precision-1);return(_.nice||void 0===_.nice)&&(v=Math.floor(min/step+eps)*step,min=min_);const n=array.length,v=new Float64Array(n);let x,i=0,j=1,a=f(array[0]),b=a,w=a+step;for(;j=w){for(b=(a+b)/2;i>1);db;)v[d--]=v[a]}a=b,b=c}return v}(v,step+step/4):v}const SQRT2PI=Math.sqrt(2*Math.PI),SQRT2=Math.SQRT2;let nextSample=NaN;function sampleNormal(mean,stdev){mean=mean||0,stdev=null==stdev?1:stdev;let rds,c,x=0,y=0;if(nextSample==nextSample)x=nextSample,nextSample=NaN;else{do{x=2*random()-1,y=2*random()-1,rds=x*x+y*y}while(0===rds||rds>1);c=Math.sqrt(-2*Math.log(rds)/rds),x*=c,nextSample=y*c}return mean+x*stdev}function densityNormal(value,mean,stdev){const z=(value-(mean||0))/(stdev=null==stdev?1:stdev);return Math.exp(-.5*z*z)/(stdev*SQRT2PI)}function cumulativeNormal(value,mean,stdev){const z=(value-(mean=mean||0))/(stdev=null==stdev?1:stdev),Z=Math.abs(z);let cd;if(Z>37)cd=0;else{const exp=Math.exp(-Z*Z/2);let sum;Z<7.07106781186547?(sum=.0352624965998911*Z+.700383064443688,sum=sum*Z+6.37396220353165,sum=sum*Z+33.912866078383,sum=sum*Z+112.079291497871,sum=sum*Z+221.213596169931,sum=sum*Z+220.206867912376,cd=exp*sum,sum=.0883883476483184*Z+1.75566716318264,sum=sum*Z+16.064177579207,sum=sum*Z+86.7807322029461,sum=sum*Z+296.564248779674,sum=sum*Z+637.333633378831,sum=sum*Z+793.826512519948,sum=sum*Z+440.413735824752,cd/=sum):(sum=Z+.65,sum=Z+4/sum,sum=Z+3/sum,sum=Z+2/sum,sum=Z+1/sum,cd=exp/sum/2.506628274631)}return z>0?1-cd:cd}function quantileNormal(p,mean,stdev){return p<0||p>1?NaN:(mean||0)+(null==stdev?1:stdev)*SQRT2*function erfinv(x){let p,w=-Math.log((1-x)*(1+x));w<6.25?(w-=3.125,p=-364441206401782e-35,p=p*w-16850591381820166e-35,p=128584807152564e-32+p*w,p=11157877678025181e-33+p*w,p=p*w-1333171662854621e-31,p=20972767875968562e-33+p*w,p=6637638134358324e-30+p*w,p=p*w-4054566272975207e-29,p=p*w-8151934197605472e-29,p=26335093153082323e-28+p*w,p=p*w-12975133253453532e-27,p=p*w-5415412054294628e-26,p=1.0512122733215323e-9+p*w,p=p*w-4.112633980346984e-9,p=p*w-2.9070369957882005e-8,p=4.2347877827932404e-7+p*w,p=p*w-13654692000834679e-22,p=p*w-13882523362786469e-21,p=.00018673420803405714+p*w,p=p*w-.000740702534166267,p=p*w-.006033670871430149,p=.24015818242558962+p*w,p=1.6536545626831027+p*w):w<16?(w=Math.sqrt(w)-3.25,p=2.2137376921775787e-9,p=9.075656193888539e-8+p*w,p=p*w-2.7517406297064545e-7,p=1.8239629214389228e-8+p*w,p=15027403968909828e-22+p*w,p=p*w-4013867526981546e-21,p=29234449089955446e-22+p*w,p=12475304481671779e-21+p*w,p=p*w-47318229009055734e-21,p=6828485145957318e-20+p*w,p=24031110387097894e-21+p*w,p=p*w-.0003550375203628475,p=.0009532893797373805+p*w,p=p*w-.0016882755560235047,p=.002491442096107851+p*w,p=p*w-.003751208507569241,p=.005370914553590064+p*w,p=1.0052589676941592+p*w,p=3.0838856104922208+p*w):Number.isFinite(w)?(w=Math.sqrt(w)-5,p=-27109920616438573e-27,p=p*w-2.555641816996525e-10,p=1.5076572693500548e-9+p*w,p=p*w-3.789465440126737e-9,p=7.61570120807834e-9+p*w,p=p*w-1.496002662714924e-8,p=2.914795345090108e-8+p*w,p=p*w-6.771199775845234e-8,p=2.2900482228026655e-7+p*w,p=p*w-9.9298272942317e-7,p=4526062597223154e-21+p*w,p=p*w-1968177810553167e-20,p=7599527703001776e-20+p*w,p=p*w-.00021503011930044477,p=p*w-.00013871931833623122,p=1.0103004648645344+p*w,p=4.849906401408584+p*w):p=1/0;return p*x}(2*p-1)}function gaussian(mean,stdev){let mu,sigma;const dist={mean(_){return arguments.length?(mu=_||0,dist):mu},stdev(_){return arguments.length?(sigma=null==_?1:_,dist):sigma},sample:()=>sampleNormal(mu,sigma),pdf:value=>densityNormal(value,mu,sigma),cdf:value=>cumulativeNormal(value,mu,sigma),icdf:p=>quantileNormal(p,mu,sigma)};return dist.mean(mean).stdev(stdev)}function kde(support,bandwidth){const kernel=gaussian();let n=0;const dist={data(_){return arguments.length?(support=_,n=_?_.length:0,dist.bandwidth(bandwidth)):support},bandwidth(_){return arguments.length?(!(bandwidth=_)&&support&&(bandwidth=estimateBandwidth(support)),dist):bandwidth},sample:()=>support[~~(random()*n)]+bandwidth*kernel.sample(),pdf(x){let y=0,i=0;for(;isampleLogNormal(mu,sigma),pdf:value=>densityLogNormal(value,mu,sigma),cdf:value=>cumulativeLogNormal(value,mu,sigma),icdf:p=>quantileLogNormal(p,mu,sigma)};return dist.mean(mean).stdev(stdev)}function mixture$1(dists,weights){let w,m=0;const dist={weights(_){return arguments.length?(w=function normalize(x){const w=[];let i,sum=0;for(i=0;i=min&&value<=max?1/(max-min):0}function cumulativeUniform(value,min,max){return null==max&&(max=null==min?1:min,min=0),valuemax?1:(value-min)/(max-min)}function quantileUniform(p,min,max){return null==max&&(max=null==min?1:min,min=0),p>=0&&p<=1?min+p*(max-min):NaN}function uniform(min,max){let a,b;const dist={min(_){return arguments.length?(a=_||0,dist):a},max(_){return arguments.length?(b=null==_?1:_,dist):b},sample:()=>sampleUniform(a,b),pdf:value=>densityUniform(value,a,b),cdf:value=>cumulativeUniform(value,a,b),icdf:p=>quantileUniform(p,a,b)};return null==max&&(max=null==min?1:min,min=0),dist.min(min).max(max)}function constant$4(data,x,y){let mean=0,n=0;for(const d of data){const val=y(d);null==x(d)||null==val||isNaN(val)||(mean+=(val-mean)/++n)}return{coef:[mean],predict:()=>mean,rSquared:0}}function ols(uX,uY,uXY,uX2){const delta=uX2-uX*uX,slope=Math.abs(delta)<1e-24?0:(uXY-uX*uY)/delta;return[uY-slope*uX,slope]}function points(data,x,y,sort){data=data.filter((d=>{let u=x(d),v=y(d);return null!=u&&(u=+u)>=u&&null!=v&&(v=+v)>=v})),sort&&data.sort(((a,b)=>x(a)-x(b)));const n=data.length,X=new Float64Array(n),Y=new Float64Array(n);let xv,yv,d,i=0,ux=0,uy=0;for(d of data)X[i]=xv=+x(d),Y[i]=yv=+y(d),++i,ux+=(xv-ux)/i,uy+=(yv-uy)/i;for(i=0;i=u&&null!=v&&(v=+v)>=v&&callback(u,v,++i)}function rSquared(data,x,y,uY,predict){let SSE=0,SST=0;return visitPoints(data,x,y,((dx,dy)=>{const sse=dy-predict(dx),sst=dy-uY;SSE+=sse*sse,SST+=sst*sst})),1-SSE/SST}function linear$2(data,x,y){let X=0,Y=0,XY=0,X2=0,n=0;visitPoints(data,x,y,((dx,dy)=>{++n,X+=(dx-X)/n,Y+=(dy-Y)/n,XY+=(dx*dy-XY)/n,X2+=(dx*dx-X2)/n}));const coef=ols(X,Y,XY,X2),predict=x=>coef[0]+coef[1]*x;return{coef,predict,rSquared:rSquared(data,x,y,Y,predict)}}function log$3(data,x,y){let X=0,Y=0,XY=0,X2=0,n=0;visitPoints(data,x,y,((dx,dy)=>{++n,dx=Math.log(dx),X+=(dx-X)/n,Y+=(dy-Y)/n,XY+=(dx*dy-XY)/n,X2+=(dx*dx-X2)/n}));const coef=ols(X,Y,XY,X2),predict=x=>coef[0]+coef[1]*Math.log(x);return{coef,predict,rSquared:rSquared(data,x,y,Y,predict)}}function exp$1(data,x,y){const[xv,yv,ux,uy]=points(data,x,y);let dx,ly,xy,YL=0,XY=0,XYL=0,X2Y=0,n=0;visitPoints(data,x,y,((_,dy)=>{dx=xv[n++],ly=Math.log(dy),xy=dx*dy,YL+=(dy*ly-YL)/n,XY+=(xy-XY)/n,XYL+=(xy*ly-XYL)/n,X2Y+=(dx*xy-X2Y)/n}));const[c0,c1]=ols(XY/uy,YL/uy,XYL/uy,X2Y/uy),predict=x=>Math.exp(c0+c1*(x-ux));return{coef:[Math.exp(c0-c1*ux),c1],predict,rSquared:rSquared(data,x,y,uy,predict)}}function pow$3(data,x,y){let X=0,Y=0,XY=0,X2=0,YS=0,n=0;visitPoints(data,x,y,((dx,dy)=>{const lx=Math.log(dx),ly=Math.log(dy);++n,X+=(lx-X)/n,Y+=(ly-Y)/n,XY+=(lx*ly-XY)/n,X2+=(lx*lx-X2)/n,YS+=(dy-YS)/n}));const coef=ols(X,Y,XY,X2),predict=x=>coef[0]*Math.pow(x,coef[1]);return coef[0]=Math.exp(coef[0]),{coef,predict,rSquared:rSquared(data,x,y,YS,predict)}}function quad(data,x,y){const[xv,yv,ux,uy]=points(data,x,y),n=xv.length;let i,dx,dy,x2,X2=0,X3=0,X4=0,XY=0,X2Y=0;for(i=0;ia*(x-=ux)*x+b*x+c+uy;return{coef:[c-b*ux+a*ux*ux+uy,b-2*a*ux,a],predict,rSquared:rSquared(data,x,y,uy,predict)}}function poly(data,x,y,order){if(0===order)return constant$4(data,x,y);if(1===order)return linear$2(data,x,y);if(2===order)return quad(data,x,y);const[xv,yv,ux,uy]=points(data,x,y),n=xv.length,lhs=[],rhs=[],k=order+1;let i,j,l,v,c;for(i=0;iMath.abs(matrix[i][r])&&(r=j);for(k=i;k=i;k--)matrix[k][j]-=matrix[k][i]*matrix[i][j]/matrix[i][i]}for(j=n-1;j>=0;--j){for(t=0,k=j+1;k{x-=ux;let y=uy+coef[0]+coef[1]*x+coef[2]*x*x;for(i=3;i=0;--i)for(v=a[i],c=1,z[i]+=v,j=1;j<=i;++j)c*=(i+1-j)/j,z[i-j]+=v*Math.pow(x,j)*c;return z[0]+=y,z}function loess(data,x,y,bandwidth){const[xv,yv,ux,uy]=points(data,x,y,!0),n=xv.length,bw=Math.max(2,~~(bandwidth*n)),yhat=new Float64Array(n),residuals=new Float64Array(n),robustWeights=new Float64Array(n).fill(1);for(let iter=-1;++iter<=2;){const interval=[0,bw-1];for(let i=0;ixv[i1]-dx?i0:i1;let W=0,X=0,Y=0,XY=0,X2=0;const denom=1/Math.abs(xv[edge]-dx||1);for(let k=i0;k<=i1;++k){const xk=xv[k],yk=yv[k],w=tricube(Math.abs(dx-xk)*denom)*robustWeights[k],xkw=xk*w;W+=w,X+=xkw,Y+=yk*w,XY+=yk*xkw,X2+=xk*xkw}const[a,b]=ols(X/W,Y/W,XY/W,X2/W);yhat[i]=a+b*dx,residuals[i]=Math.abs(yv[i]-yhat[i]),updateInterval(xv,i+1,interval)}if(2===iter)break;const medianResidual=median(residuals);if(Math.abs(medianResidual)<1e-12)break;for(let arg,w,i=0;i=1?1e-12:(w=1-arg*arg)*w}return function output$1(xv,yhat,ux,uy){const n=xv.length,out=[];let v,i=0,cnt=0,prev=[];for(;i=xv.length))for(;i>left&&xv[right]-val<=val-xv[left];)interval[0]=++left,interval[1]=right,++right}const MIN_RADIANS=.5*Math.PI/180;function sampleCurve(f,extent,minSteps,maxSteps){minSteps=minSteps||25,maxSteps=Math.max(minSteps,maxSteps||200);const point=x=>[x,f(x)],minX=extent[0],maxX=extent[1],span=maxX-minX,stop=span/maxSteps,prev=[point(minX)],next=[];if(minSteps===maxSteps){for(let i=1;i0;)next.push(point(minX+i/minSteps*span));let p0=prev[0],p1=next[next.length-1];const sx=1/span,sy=function scaleY(init,points){let ymin=init,ymax=init;const n=points.length;for(let i=0;iymax&&(ymax=y)}return 1/(ymax-ymin)}(p0[1],next);for(;p1;){const pm=point((p0[0]+p1[0])/2);pm[0]-p0[0]>=stop&&angleDelta(p0,pm,p1,sx,sy)>MIN_RADIANS?next.push(pm):(p0=p1,prev.push(p1),next.pop()),p1=next[next.length-1]}return prev}function angleDelta(p,q,r,sx,sy){const a0=Math.atan2(sy*(r[1]-p[1]),sx*(r[0]-p[0])),a1=Math.atan2(sy*(q[1]-p[1]),sx*(q[0]-p[0]));return Math.abs(a0-a1)}function groupkey(fields){return fields&&fields.length?1===fields.length?fields[0]:function multikey(f){return x=>{const n=f.length;let i=1,k=String(f[0](x));for(;i{},base_op={init:noop$4,add:noop$4,rem:noop$4,idx:0},AggregateOps={values:{init:m=>m.cell.store=!0,value:m=>m.cell.data.values(),idx:-1},count:{value:m=>m.cell.num},__count__:{value:m=>m.missing+m.valid},missing:{value:m=>m.missing},valid:{value:m=>m.valid},sum:{init:m=>m.sum=0,value:m=>m.sum,add:(m,v)=>m.sum+=+v,rem:(m,v)=>m.sum-=v},product:{init:m=>m.product=1,value:m=>m.valid?m.product:void 0,add:(m,v)=>m.product*=v,rem:(m,v)=>m.product/=v},mean:{init:m=>m.mean=0,value:m=>m.valid?m.mean:void 0,add:(m,v)=>(m.mean_d=v-m.mean,m.mean+=m.mean_d/m.valid),rem:(m,v)=>(m.mean_d=v-m.mean,m.mean-=m.valid?m.mean_d/m.valid:m.mean)},average:{value:m=>m.valid?m.mean:void 0,req:["mean"],idx:1},variance:{init:m=>m.dev=0,value:m=>m.valid>1?m.dev/(m.valid-1):void 0,add:(m,v)=>m.dev+=m.mean_d*(v-m.mean),rem:(m,v)=>m.dev-=m.mean_d*(v-m.mean),req:["mean"],idx:1},variancep:{value:m=>m.valid>1?m.dev/m.valid:void 0,req:["variance"],idx:2},stdev:{value:m=>m.valid>1?Math.sqrt(m.dev/(m.valid-1)):void 0,req:["variance"],idx:2},stdevp:{value:m=>m.valid>1?Math.sqrt(m.dev/m.valid):void 0,req:["variance"],idx:2},stderr:{value:m=>m.valid>1?Math.sqrt(m.dev/(m.valid*(m.valid-1))):void 0,req:["variance"],idx:2},distinct:{value:m=>m.cell.data.distinct(m.get),req:["values"],idx:3},ci0:{value:m=>m.cell.data.ci0(m.get),req:["values"],idx:3},ci1:{value:m=>m.cell.data.ci1(m.get),req:["values"],idx:3},median:{value:m=>m.cell.data.q2(m.get),req:["values"],idx:3},q1:{value:m=>m.cell.data.q1(m.get),req:["values"],idx:3},q3:{value:m=>m.cell.data.q3(m.get),req:["values"],idx:3},min:{init:m=>m.min=void 0,value:m=>m.min=Number.isNaN(m.min)?m.cell.data.min(m.get):m.min,add:(m,v)=>{(v{v<=m.min&&(m.min=NaN)},req:["values"],idx:4},max:{init:m=>m.max=void 0,value:m=>m.max=Number.isNaN(m.max)?m.cell.data.max(m.get):m.max,add:(m,v)=>{(v>m.max||void 0===m.max)&&(m.max=v)},rem:(m,v)=>{v>=m.max&&(m.max=NaN)},req:["values"],idx:4},argmin:{init:m=>m.argmin=void 0,value:m=>m.argmin||m.cell.data.argmin(m.get),add:(m,v,t)=>{v{v<=m.min&&(m.argmin=void 0)},req:["min","values"],idx:3},argmax:{init:m=>m.argmax=void 0,value:m=>m.argmax||m.cell.data.argmax(m.get),add:(m,v,t)=>{v>m.max&&(m.argmax=t)},rem:(m,v)=>{v>=m.max&&(m.argmax=void 0)},req:["max","values"],idx:3}},ValidAggregateOps=Object.keys(AggregateOps).filter((d=>"__count__"!==d));function createMeasure(op,name){return AggregateOps[op](name)}function compareIndex(a,b){return a.idx-b.idx}function init(){this.valid=0,this.missing=0,this._ops.forEach((op=>op.init(this)))}function add$3(v,t){null!=v&&""!==v?v==v&&(++this.valid,this._ops.forEach((op=>op.add(this,v,t)))):++this.missing}function rem(v,t){null!=v&&""!==v?v==v&&(--this.valid,this._ops.forEach((op=>op.rem(this,v,t)))):--this.missing}function set$5(t){return this._out.forEach((op=>t[op.out]=op.value(this))),t}function compileMeasures(agg,field){const get=field||identity$6,ops=function resolve(agg){const map={};agg.forEach((a=>map[a.name]=a));const getreqs=a=>{a.req&&a.req.forEach((key=>{map[key]||getreqs(map[key]=AggregateOps[key]())}))};return agg.forEach(getreqs),Object.values(map).sort(compareIndex)}(agg),out=agg.slice().sort(compareIndex);function ctr(cell){this._ops=ops,this._out=out,this.cell=cell,this.init()}return ctr.prototype.init=init,ctr.prototype.add=add$3,ctr.prototype.rem=rem,ctr.prototype.set=set$5,ctr.prototype.get=get,ctr.fields=agg.map((op=>op.out)),ctr}function TupleStore(key){this._key=key?field$1(key):tupleid,this.reset()}[...ValidAggregateOps,"__count__"].forEach((key=>{AggregateOps[key]=function measure(key,value){return out=>extend$1({name:key,out:out||key},base_op,value)}(key,AggregateOps[key])}));const prototype$1=TupleStore.prototype;function Aggregate$1(params){Transform.call(this,null,params),this._adds=[],this._mods=[],this._alen=0,this._mlen=0,this._drop=!0,this._cross=!1,this._dims=[],this._dnames=[],this._measures=[],this._countOnly=!1,this._counts=null,this._prev=null,this._inputs=null,this._outputs=null}prototype$1.reset=function(){this._add=[],this._rem=[],this._ext=null,this._get=null,this._q=null},prototype$1.add=function(v){this._add.push(v)},prototype$1.rem=function(v){this._rem.push(v)},prototype$1.values=function(){if(this._get=null,0===this._rem.length)return this._add;const a=this._add,r=this._rem,k=this._key,n=a.length,m=r.length,x=Array(n-m),map={};let i,j,v;for(i=0;i=0;)s=get(v[n])+"",has$1(map,s)||(map[s]=1,++count);return count},prototype$1.extent=function(get){if(this._get!==get||!this._ext){const v=this.values(),i=extentIndex(v,get);this._ext=[v[i[0]],v[i[1]]],this._get=get}return this._ext},prototype$1.argmin=function(get){return this.extent(get)[0]||{}},prototype$1.argmax=function(get){return this.extent(get)[1]||{}},prototype$1.min=function(get){const m=this.extent(get)[0];return null!=m?get(m):void 0},prototype$1.max=function(get){const m=this.extent(get)[1];return null!=m?get(m):void 0},prototype$1.quartile=function(get){return this._get===get&&this._q||(this._q=quartiles(this.values(),get),this._get=get),this._q},prototype$1.q1=function(get){return this.quartile(get)[0]},prototype$1.q2=function(get){return this.quartile(get)[1]},prototype$1.q3=function(get){return this.quartile(get)[2]},prototype$1.ci=function(get){return this._get===get&&this._ci||(this._ci=bootstrapCI(this.values(),1e3,.05,get),this._get=get),this._ci},prototype$1.ci0=function(get){return this.ci(get)[0]},prototype$1.ci1=function(get){return this.ci(get)[1]},Aggregate$1.Definition={type:"Aggregate",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:ValidAggregateOps},{name:"fields",type:"field",null:!0,array:!0},{name:"as",type:"string",null:!0,array:!0},{name:"drop",type:"boolean",default:!0},{name:"cross",type:"boolean",default:!1},{name:"key",type:"field"}]},inherits(Aggregate$1,Transform,{transform(_,pulse){const aggr=this,out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),mod=_.modified();return aggr.stamp=out.stamp,aggr.value&&(mod||pulse.modified(aggr._inputs,!0))?(aggr._prev=aggr.value,aggr.value=mod?aggr.init(_):Object.create(null),pulse.visit(pulse.SOURCE,(t=>aggr.add(t)))):(aggr.value=aggr.value||aggr.init(_),pulse.visit(pulse.REM,(t=>aggr.rem(t))),pulse.visit(pulse.ADD,(t=>aggr.add(t)))),out.modifies(aggr._outputs),aggr._drop=!1!==_.drop,_.cross&&aggr._dims.length>1&&(aggr._drop=!1,aggr.cross()),pulse.clean()&&aggr._drop&&out.clean(!0).runAfter((()=>this.clean())),aggr.changes(out)},cross(){const aggr=this,curr=aggr.value,dims=aggr._dnames,vals=dims.map((()=>({}))),n=dims.length;function collect(cells){let key,i,t,v;for(key in cells)for(t=cells[key].tuple,i=0;i{const dname=accessorName(d);return inputVisit(d),outputs.push(dname),dname})),this.cellkey=_.key?_.key:groupkey(this._dims),this._countOnly=!0,this._counts=[],this._measures=[];const fields=_.fields||[null],ops=_.ops||["count"],as=_.as||[],n=fields.length,map={};let field,op,m,mname,outname,i;for(n!==ops.length&&error("Unmatched number of fields and aggregate ops."),i=0;icompileMeasures(m,m.field))),Object.create(null)},cellkey:groupkey(),cell(key,t){let cell=this.value[key];return cell?0===cell.num&&this._drop&&cell.stampadd.push(t),remove:t=>rem[$(t)]=++cnt,size:()=>data.length,data:(compare,resort)=>(cnt&&(data=data.filter((t=>!rem[$(t)])),rem={},cnt=0),resort&&compare&&data.sort(compare),add.length&&(data=compare?merge$3(compare,data,add.sort(compare)):data.concat(add),add=[]),data)}}function Collect$1(params){Transform.call(this,[],params)}function Compare$1(params){Operator.call(this,null,update$5,params)}function update$5(_){return this.value&&!_.modified()?this.value:compare$8(_.fields,_.orders)}function CountPattern(params){Transform.call(this,null,params)}function Cross(params){Transform.call(this,null,params)}Bin.Definition={type:"Bin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"anchor",type:"number"},{name:"maxbins",type:"number",default:20},{name:"base",type:"number",default:10},{name:"divide",type:"number",array:!0,default:[5,2]},{name:"extent",type:"number",array:!0,length:2,required:!0},{name:"span",type:"number"},{name:"step",type:"number"},{name:"steps",type:"number",array:!0},{name:"minstep",type:"number",default:0},{name:"nice",type:"boolean",default:!0},{name:"name",type:"string"},{name:"as",type:"string",array:!0,length:2,default:["bin0","bin1"]}]},inherits(Bin,Transform,{transform(_,pulse){const band=!1!==_.interval,bins=this._bins(_),start=bins.start,step=bins.step,as=_.as||["bin0","bin1"],b0=as[0],b1=as[1];let flag;return flag=_.modified()?(pulse=pulse.reflow(!0)).SOURCE:pulse.modified(accessorFields(_.field))?pulse.ADD_MOD:pulse.ADD,pulse.visit(flag,band?t=>{const v=bins(t);t[b0]=v,t[b1]=null==v?null:start+step*(1+(v-start)/step)}:t=>t[b0]=bins(t)),pulse.modifies(band?as:b0)},_bins(_){if(this.value&&!_.modified())return this.value;const field=_.field,bins=bin$1(_),step=bins.step;let a,d,start=bins.start,stop=start+Math.ceil((bins.stop-start)/step)*step;null!=(a=_.anchor)&&(d=a-(start+step*Math.floor((a-start)/step)),start+=d,stop+=d);const f=function(t){let v=toNumber(field(t));return null==v?null:vstop?1/0:(v=Math.max(start,Math.min(v,stop-step)),start+step*Math.floor(1e-14+(v-start)/step))};return f.start=start,f.stop=bins.stop,f.step=step,this.value=accessor(f,accessorFields(field),_.name||"bin_"+accessorName(field))}}),Collect$1.Definition={type:"Collect",metadata:{source:!0},params:[{name:"sort",type:"compare"}]},inherits(Collect$1,Transform,{transform(_,pulse){const out=pulse.fork(pulse.ALL),list=SortedList(tupleid,this.value,out.materialize(out.ADD).add),sort=_.sort,mod=pulse.changed()||sort&&(_.modified("sort")||pulse.modified(sort.fields));return out.visit(out.REM,list.remove),this.modified(mod),this.value=out.source=list.data(stableCompare(sort),mod),pulse.source&&pulse.source.root&&(this.value.root=pulse.source.root),out}}),inherits(Compare$1,Operator),CountPattern.Definition={type:"CountPattern",metadata:{generates:!0,changes:!0},params:[{name:"field",type:"field",required:!0},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:!0,length:2,default:["text","count"]}]},inherits(CountPattern,Transform,{transform(_,pulse){const process=update=>tuple=>{for(var t,tokens=function tokenize(text,tcase,match){switch(tcase){case"upper":text=text.toUpperCase();break;case"lower":text=text.toLowerCase()}return text.match(match)}(get(tuple),_.case,match)||[],i=0,n=tokens.length;icounts[t]=1+(counts[t]||0))),rem=process((t=>counts[t]-=1));return init?pulse.visit(pulse.SOURCE,add):(pulse.visit(pulse.ADD,add),pulse.visit(pulse.REM,rem)),this._finish(pulse,as)},_parameterCheck(_,pulse){let init=!1;return!_.modified("stopwords")&&this._stop||(this._stop=new RegExp("^"+(_.stopwords||"")+"$","i"),init=!0),!_.modified("pattern")&&this._match||(this._match=new RegExp(_.pattern||"[\\w']+","g"),init=!0),(_.modified("field")||pulse.modified(_.field.fields))&&(init=!0),init&&(this._counts={}),init},_finish(pulse,as){const counts=this._counts,tuples=this._tuples||(this._tuples={}),text=as[0],count=as[1],out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS);let w,t,c;for(w in counts)t=tuples[w],c=counts[w]||0,!t&&c?(tuples[w]=t=ingest$1({}),t[text]=w,t[count]=c,out.add.push(t)):0===c?(t&&out.rem.push(t),counts[w]=null,tuples[w]=null):t[count]!==c&&(t[count]=c,out.mod.push(t));return out.modifies(as)}}),Cross.Definition={type:"Cross",metadata:{generates:!0},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:!0,length:2,default:["a","b"]}]},inherits(Cross,Transform,{transform(_,pulse){const out=pulse.fork(pulse.NO_SOURCE),as=_.as||["a","b"],a=as[0],b=as[1],reset=!this.value||pulse.changed(pulse.ADD_REM)||_.modified("as")||_.modified("filter");let data=this.value;return reset?(data&&(out.rem=data),data=pulse.materialize(pulse.SOURCE).source,out.add=this.value=function cross(input,a,b,filter){for(var j,left,data=[],t={},n=input.length,i=0;iparse$4(_,data)))):"function"==typeof d[name]&&d[name](def[name]);return d}function Density(params){Transform.call(this,null,params)}const distributions=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:!0},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}],mixture={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:!0,params:distributions},{name:"weights",type:"number",array:!0}]};function fieldNames(fields,as){return fields?fields.map(((f,i)=>as[i]||accessorName(f))):null}function partition$1$1(data,groupby,field){const groups=[],get=f=>f(t);let map,i,n,t,k,g;if(null==groupby)groups.push(data.map(field));else for(map={},i=0,n=data.length;ipulse.materialize(pulse.SOURCE).source}(pulse)),minsteps=_.steps||_.minsteps||25,maxsteps=_.steps||_.maxsteps||200;let method=_.method||"pdf";"pdf"!==method&&"cdf"!==method&&error("Invalid density method: "+method),_.extent||dist.data||error("Missing density extent parameter."),method=dist[method];const as=_.as||["value","density"],values=sampleCurve(method,_.extent||extent(dist.data()),minsteps,maxsteps).map((v=>{const tuple={};return tuple[as[0]]=v[0],tuple[as[1]]=v[1],ingest$1(tuple)}));this.value&&(out.rem=this.value),this.value=out.add=out.source=values}return out}});function DotBin(params){Transform.call(this,null,params)}DotBin.Definition={type:"DotBin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"step",type:"number"},{name:"smooth",type:"boolean",default:!1},{name:"as",type:"string",default:"bin"}]};function Expression$1(params){Operator.call(this,null,update$4,params),this.modified(!0)}function update$4(_){const expr=_.expr;return this.value&&!_.modified("expr")?this.value:accessor((datum=>expr(datum,_)),accessorFields(expr),accessorName(expr))}function Extent(params){Transform.call(this,[void 0,void 0],params)}function Subflow(pulse,parent){Operator.call(this,pulse),this.parent=parent,this.count=0}function Facet$1(params){Transform.call(this,{},params),this._keys=fastmap();const a=this._targets=[];a.active=0,a.forEach=f=>{for(let i=0,n=a.active;ifield$1(f))):field$1(_.name,_.as)}function Filter(params){Transform.call(this,fastmap(),params)}function Flatten(params){Transform.call(this,[],params)}function Fold(params){Transform.call(this,[],params)}function Formula(params){Transform.call(this,null,params)}function Generate(params){Transform.call(this,[],params)}inherits(DotBin,Transform,{transform(_,pulse){if(this.value&&!_.modified()&&!pulse.changed())return pulse;const source=pulse.materialize(pulse.SOURCE).source,groups=partition$1$1(pulse.source,_.groupby,identity$6),smooth=_.smooth||!1,field=_.field,step=_.step||((data,field)=>span(extent(data,field))/30)(source,field),sort=stableCompare(((a,b)=>field(a)-field(b))),as=_.as||"bin",n=groups.length;let j,min=1/0,max=-1/0,i=0;for(;imax&&(max=v),g[++j][as]=v}return this.value={start:min,stop:max,step},pulse.reflow(!0).modifies(as)}}),inherits(Expression$1,Operator),Extent.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},inherits(Extent,Transform,{transform(_,pulse){const extent=this.value,field=_.field,mod=pulse.changed()||pulse.modified(field.fields)||_.modified("field");let min=extent[0],max=extent[1];if((mod||null==min)&&(min=1/0,max=-1/0),pulse.visit(mod?pulse.SOURCE:pulse.ADD,(t=>{const v=toNumber(field(t));null!=v&&(vmax&&(max=v))})),!Number.isFinite(min)||!Number.isFinite(max)){let name=accessorName(field);name&&(name=` for field "${name}"`),pulse.dataflow.warn(`Infinite extent${name}: [${min}, ${max}]`),min=max=void 0}this.value=[min,max]}}),inherits(Subflow,Operator,{connect(target){return this.detachSubflow=target.detachSubflow,this.targets().add(target),target.source=this},add(t){this.count+=1,this.value.add.push(t)},rem(t){this.count-=1,this.value.rem.push(t)},mod(t){this.value.mod.push(t)},init(pulse){this.value.init(pulse,pulse.NO_SOURCE)},evaluate(){return this.value}}),inherits(Facet$1,Transform,{activate(flow){this._targets[this._targets.active++]=flow},subflow(key,flow,pulse,parent){const flows=this.value;let df,p,sf=has$1(flows,key)&&flows[key];return sf?sf.value.stampsf&&sf.count>0));this.initTargets(active)}},initTargets(act){const a=this._targets,n=a.length,m=act?act.length:0;let i=0;for(;ithis.subflow(key,flow,pulse);return this._group=_.group||{},this.initTargets(),pulse.visit(pulse.REM,(t=>{const id=tupleid(t),k=cache.get(id);void 0!==k&&(cache.delete(id),subflow(k).rem(t))})),pulse.visit(pulse.ADD,(t=>{const k=key(t);cache.set(tupleid(t),k),subflow(k).add(t)})),rekey||pulse.modified(key.fields)?pulse.visit(pulse.MOD,(t=>{const id=tupleid(t),k0=cache.get(id),k1=key(t);k0===k1?subflow(k1).mod(t):(cache.set(id,k1),subflow(k0).rem(t),subflow(k1).add(t))})):pulse.changed(pulse.MOD)&&pulse.visit(pulse.MOD,(t=>{subflow(cache.get(tupleid(t))).mod(t)})),rekey&&pulse.visit(pulse.REFLOW,(t=>{const id=tupleid(t),k0=cache.get(id),k1=key(t);k0!==k1&&(cache.set(id,k1),subflow(k0).rem(t),subflow(k1).add(t))})),pulse.clean()?df.runAfter((()=>{this.clean(),cache.clean()})):cache.empty>df.cleanThreshold&&df.runAfter(cache.clean),pulse}}),inherits(Field$1,Operator),Filter.Definition={type:"Filter",metadata:{changes:!0},params:[{name:"expr",type:"expr",required:!0}]},inherits(Filter,Transform,{transform(_,pulse){const df=pulse.dataflow,cache=this.value,output=pulse.fork(),add=output.add,rem=output.rem,mod=output.mod,test=_.expr;let isMod=!0;function revisit(t){const id=tupleid(t),b=test(t,_),s=cache.get(id);b&&s?(cache.delete(id),add.push(t)):b||s?isMod&&b&&!s&&mod.push(t):(cache.set(id,1),rem.push(t))}return pulse.visit(pulse.REM,(t=>{const id=tupleid(t);cache.has(id)?cache.delete(id):rem.push(t)})),pulse.visit(pulse.ADD,(t=>{test(t,_)?add.push(t):cache.set(tupleid(t),1)})),pulse.visit(pulse.MOD,revisit),_.modified()&&(isMod=!1,pulse.visit(pulse.REFLOW,revisit)),cache.empty>df.cleanThreshold&&df.runAfter(cache.clean),output}}),Flatten.Definition={type:"Flatten",metadata:{generates:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"index",type:"string"},{name:"as",type:"string",array:!0}]},inherits(Flatten,Transform,{transform(_,pulse){const out=pulse.fork(pulse.NO_SOURCE),fields=_.fields,as=fieldNames(fields,_.as||[]),index=_.index||null,m=as.length;return out.rem=this.value,pulse.visit(pulse.SOURCE,(t=>{const arrays=fields.map((f=>f(t))),maxlen=arrays.reduce(((l,a)=>Math.max(l,a.length)),0);let j,d,v,i=0;for(;i{for(let d,i=0;it[as]=func(t,_)))}}),inherits(Generate,Transform,{transform(_,pulse){const out=pulse.fork(pulse.ALL),gen=_.generator;let add,rem,t,data=this.value,num=_.size-data.length;if(num>0){for(add=[];--num>=0;)add.push(t=ingest$1(gen(_))),data.push(t);out.add=out.add.length?out.materialize(out.ADD).add.concat(add):add}else rem=data.slice(0,-num),out.rem=out.rem.length?out.materialize(out.REM).rem.concat(rem):rem,data=data.slice(-num);return out.source=this.value=data,out}});const Methods$1={value:"value",median,mean:function mean(values,valueof){let count=0,sum=0;if(void 0===valueof)for(let value of values)null!=value&&(value=+value)>=value&&(++count,sum+=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(value=+value)>=value&&(++count,sum+=value)}if(count)return sum/count},min:min$2,max:max$2},Empty$1=[];function Impute(params){Transform.call(this,[],params)}function JoinAggregate(params){Aggregate$1.call(this,params)}function KDE(params){Transform.call(this,null,params)}function Key$1(params){Operator.call(this,null,update$2,params)}function update$2(_){return this.value&&!_.modified()?this.value:key(_.fields,_.flat)}function Load$1(params){Transform.call(this,[],params),this._pending=null}function output(op,pulse,data){data.forEach(ingest$1);const out=pulse.fork(pulse.NO_FIELDS&pulse.NO_SOURCE);return out.rem=op.value,op.value=out.source=out.add=data,op._pending=null,out.rem.length&&out.clean(!0),out}function Lookup(params){Transform.call(this,{},params)}function MultiExtent$1(params){Operator.call(this,null,update$1,params)}function update$1(_){if(this.value&&!_.modified())return this.value;const ext=_.extents,n=ext.length;let i,e,min=1/0,max=-1/0;for(i=0;imax&&(max=e[1]);return[min,max]}function MultiValues$1(params){Operator.call(this,null,update,params)}function update(_){return this.value&&!_.modified()?this.value:_.values.reduce(((data,_)=>data.concat(_)),[])}function Params$2(params){Transform.call(this,null,params)}function Pivot(params){Aggregate$1.call(this,params)}function PreFacet$1(params){Facet$1.call(this,params)}function Project(params){Transform.call(this,null,params)}function Proxy$1(params){Transform.call(this,null,params)}function Quantile$1(params){Transform.call(this,null,params)}Impute.Definition={type:"Impute",metadata:{changes:!0},params:[{name:"field",type:"field",required:!0},{name:"key",type:"field",required:!0},{name:"keyvals",array:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]},inherits(Impute,Transform,{transform(_,pulse){var group,value,gVals,kVal,g,i,j,l,n,t,out=pulse.fork(pulse.ALL),impute=function getValue(_){var v,m=_.method||Methods$1.value;if(null!=Methods$1[m])return m===Methods$1.value?(v=void 0!==_.value?_.value:0,()=>v):Methods$1[m];error("Unrecognized imputation method: "+m)}(_),field=function getField$1(_){const f=_.field;return t=>t?f(t):NaN}(_),fName=accessorName(_.field),kName=accessorName(_.key),gNames=(_.groupby||[]).map(accessorName),groups=function partition$4(data,groupby,key,keyvals){var gVals,gKey,group,i,j,k,n,t,get=f=>f(t),groups=[],domain=keyvals?keyvals.slice():[],kMap={},gMap={};for(domain.forEach(((k,i)=>kMap[k]=i+1)),i=0,n=data.length;iaggr.add(t)))):(cells=aggr.value=aggr.value||this.init(_),pulse.visit(pulse.REM,(t=>aggr.rem(t))),pulse.visit(pulse.ADD,(t=>aggr.add(t)))),aggr.changes(),pulse.visit(pulse.SOURCE,(t=>{extend$1(t,cells[aggr.cellkey(t)].tuple)})),pulse.reflow(mod).modifies(this._outputs)},changes(){const adds=this._adds,mods=this._mods;let i,n;for(i=0,n=this._alen;i{const density=kde(g,bandwidth)[method],scale=_.counts?g.length:1;sampleCurve(density,domain||extent(g),minsteps,maxsteps).forEach((v=>{const t={};for(let i=0;i(this._pending=array$5(res.data),df=>df.touch(this))));return{async:p}}return df.request(_.url,_.format).then((res=>output(this,pulse,array$5(res.data))))}}),Lookup.Definition={type:"Lookup",metadata:{modifies:!0},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:!0},{name:"key",type:"field",required:!0}]},{name:"values",type:"field",array:!0},{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0},{name:"default",default:null}]},inherits(Lookup,Transform,{transform(_,pulse){const keys=_.fields,index=_.index,values=_.values,defaultValue=null==_.default?null:_.default,reset=_.modified(),n=keys.length;let set,m,mods,flag=reset?pulse.SOURCE:pulse.ADD,out=pulse,as=_.as;return values?(m=values.length,n>1&&!as&&error('Multi-field lookup requires explicit "as" parameter.'),as&&as.length!==n*m&&error('The "as" parameter has too few output field names.'),as=as||values.map(accessorName),set=function(t){for(var j,v,i=0,k=0;ipulse.modified(k.fields))),flag|=mods?pulse.MOD:0),pulse.visit(flag,set),out.modifies(as)}}),inherits(MultiExtent$1,Operator),inherits(MultiValues$1,Operator),inherits(Params$2,Transform,{transform(_,pulse){return this.modified(_.modified()),this.value=_,pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS)}}),Pivot.Definition={type:"Pivot",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"value",type:"field",required:!0},{name:"op",type:"enum",values:ValidAggregateOps,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]},inherits(Pivot,Aggregate$1,{_transform:Aggregate$1.prototype.transform,transform(_,pulse){return this._transform(function aggregateParams(_,pulse){const key=_.field,value=_.value,op=("count"===_.op?"__count__":_.op)||"sum",fields=accessorFields(key).concat(accessorFields(value)),keys=function pivotKeys(key,limit,pulse){const map={},list=[];return pulse.visit(pulse.SOURCE,(t=>{const k=key(t);map[k]||(map[k]=1,list.push(k))})),list.sort(ascending$3),limit?list.slice(0,limit):list}(key,_.limit||0,pulse);pulse.changed()&&_.set("__pivot__",null,null,!0);return{key:_.key,groupby:_.groupby,ops:keys.map((()=>op)),fields:keys.map((k=>function get$5(k,key,value,fields){return accessor((d=>key(d)===k?value(d):NaN),fields,k+"")}(k,key,value,fields))),as:keys.map((k=>k+"")),modified:_.modified.bind(_)}}(_,pulse),pulse)}}),inherits(PreFacet$1,Facet$1,{transform(_,pulse){const flow=_.subflow,field=_.field,subflow=t=>this.subflow(tupleid(t),flow,pulse,t);return(_.modified("field")||field&&pulse.modified(accessorFields(field)))&&error("PreFacet does not support field modification."),this.initTargets(),field?(pulse.visit(pulse.MOD,(t=>{const sf=subflow(t);field(t).forEach((_=>sf.mod(_)))})),pulse.visit(pulse.ADD,(t=>{const sf=subflow(t);field(t).forEach((_=>sf.add(ingest$1(_))))})),pulse.visit(pulse.REM,(t=>{const sf=subflow(t);field(t).forEach((_=>sf.rem(_)))}))):(pulse.visit(pulse.MOD,(t=>subflow(t).mod(t))),pulse.visit(pulse.ADD,(t=>subflow(t).add(t))),pulse.visit(pulse.REM,(t=>subflow(t).rem(t)))),pulse.clean()&&pulse.runAfter((()=>this.clean())),pulse}}),Project.Definition={type:"Project",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0},{name:"as",type:"string",null:!0,array:!0}]},inherits(Project,Transform,{transform(_,pulse){const out=pulse.fork(pulse.NO_SOURCE),fields=_.fields,as=fieldNames(_.fields,_.as||[]),derive=fields?(s,t)=>function project$1(s,t,fields,as){for(let i=0,n=fields.length;i{const id=tupleid(t);out.rem.push(lut[id]),lut[id]=null})),pulse.visit(pulse.ADD,(t=>{const dt=derive(t,ingest$1({}));lut[tupleid(t)]=dt,out.add.push(dt)})),pulse.visit(pulse.MOD,(t=>{out.mod.push(derive(t,lut[tupleid(t)]))})),out}}),inherits(Proxy$1,Transform,{transform(_,pulse){return this.value=_.value,_.modified("value")?pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS):pulse.StopPropagation}}),Quantile$1.Definition={type:"Quantile",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"probs",type:"number",array:!0},{name:"step",type:"number",default:.01},{name:"as",type:"string",array:!0,default:["prob","value"]}]};function Relay$1(params){Transform.call(this,null,params)}function Sample(params){Transform.call(this,[],params),this.count=0}function Sequence(params){Transform.call(this,null,params)}function Sieve$1(params){Transform.call(this,null,params),this.modified(!0)}function TimeUnit(params){Transform.call(this,null,params)}inherits(Quantile$1,Transform,{transform(_,pulse){const out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),as=_.as||["prob","value"];if(this.value&&!_.modified()&&!pulse.changed())return out.source=this.value,out;const groups=partition$1$1(pulse.materialize(pulse.SOURCE).source,_.groupby,_.field),names=(_.groupby||[]).map(accessorName),values=[],step=_.step||.01,p=_.probs||range$5(step/2,1-1e-14,step),n=p.length;return groups.forEach((g=>{const q=quantiles(g,p);for(let i=0;i{const id=tupleid(t);out.rem.push(lut[id]),lut[id]=null})),pulse.visit(pulse.ADD,(t=>{const dt=derive(t);lut[tupleid(t)]=dt,out.add.push(dt)})),pulse.visit(pulse.MOD,(t=>{const dt=lut[tupleid(t)];for(const k in t)dt[k]=t[k],out.modifies(k);out.mod.push(dt)}))),out}}),Sample.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]},inherits(Sample,Transform,{transform(_,pulse){const out=pulse.fork(pulse.NO_SOURCE),mod=_.modified("size"),num=_.size,map=this.value.reduce(((m,t)=>(m[tupleid(t)]=1,m)),{});let res=this.value,cnt=this.count,cap=0;function update(t){let p,idx;res.length=cap&&(p=res[idx],map[tupleid(p)]&&out.rem.push(p),res[idx]=t)),++cnt}if(pulse.rem.length&&(pulse.visit(pulse.REM,(t=>{const id=tupleid(t);map[id]&&(map[id]=-1,out.rem.push(t)),--cnt})),res=res.filter((t=>-1!==map[tupleid(t)]))),(pulse.rem.length||mod)&&res.length{map[tupleid(t)]||update(t)})),cap=-1),mod&&res.length>num){const n=res.length-num;for(let i=0;i{map[tupleid(t)]&&out.mod.push(t)})),pulse.add.length&&pulse.visit(pulse.ADD,update),(pulse.add.length||cap<0)&&(out.add=res.filter((t=>!map[tupleid(t)]))),this.count=cnt,this.value=out.source=res,out}}),Sequence.Definition={type:"Sequence",metadata:{generates:!0,changes:!0},params:[{name:"start",type:"number",required:!0},{name:"stop",type:"number",required:!0},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]},inherits(Sequence,Transform,{transform(_,pulse){if(this.value&&!_.modified())return;const out=pulse.materialize().fork(pulse.MOD),as=_.as||"data";return out.rem=this.value?pulse.rem.concat(this.value):pulse.rem,this.value=range$5(_.start,_.stop,_.step||1).map((v=>{const t={};return t[as]=v,ingest$1(t)})),out.add=pulse.add.concat(this.value),out}}),inherits(Sieve$1,Transform,{transform(_,pulse){return this.value=pulse.source,pulse.changed()?pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS):pulse.StopPropagation}});const OUTPUT=["unit0","unit1"];function TupleIndex(params){Transform.call(this,fastmap(),params)}function Values$1(params){Transform.call(this,null,params)}TimeUnit.Definition={type:"TimeUnit",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"units",type:"enum",values:TIME_UNITS,array:!0},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:!0},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:!0,length:2,default:OUTPUT}]},inherits(TimeUnit,Transform,{transform(_,pulse){const field=_.field,band=!1!==_.interval,utc="utc"===_.timezone,floor=this._floor(_,pulse),offset=(utc?utcInterval:timeInterval)(floor.unit).offset,as=_.as||OUTPUT,u0=as[0],u1=as[1],step=floor.step;let min=floor.start||1/0,max=floor.stop||-1/0,flag=pulse.ADD;return(_.modified()||pulse.changed(pulse.REM)||pulse.modified(accessorFields(field)))&&(flag=(pulse=pulse.reflow(!0)).SOURCE,min=1/0,max=-1/0),pulse.visit(flag,(t=>{const v=field(t);let a,b;null==v?(t[u0]=null,band&&(t[u1]=null)):(t[u0]=a=b=floor(v),band&&(t[u1]=b=offset(a,step)),amax&&(max=b))})),floor.start=min,floor.stop=max,pulse.modifies(band?as:u0)},_floor(_,pulse){const utc="utc"===_.timezone,{units,step}=_.units?{units:_.units,step:_.step||1}:bin$2({extent:_.extent||extent(pulse.materialize(pulse.SOURCE).source,_.field),maxbins:_.maxbins}),tunits=timeUnits(units),prev=this.value||{},floor=(utc?utcFloor:timeFloor)(tunits,step);return floor.unit=peek$1(tunits),floor.units=tunits,floor.step=step,floor.start=prev.start,floor.stop=prev.stop,this.value=floor}}),inherits(TupleIndex,Transform,{transform(_,pulse){const df=pulse.dataflow,field=_.field,index=this.value,set=t=>index.set(field(t),t);let mod=!0;return _.modified("field")||pulse.modified(field.fields)?(index.clear(),pulse.visit(pulse.SOURCE,set)):pulse.changed()?(pulse.visit(pulse.REM,(t=>index.delete(field(t)))),pulse.visit(pulse.ADD,set)):mod=!1,this.modified(mod),index.empty>df.cleanThreshold&&df.runAfter(index.clean),pulse.fork()}}),inherits(Values$1,Transform,{transform(_,pulse){(!this.value||_.modified("field")||_.modified("sort")||pulse.changed()||_.sort&&pulse.modified(_.sort.fields))&&(this.value=(_.sort?pulse.source.slice().sort(stableCompare(_.sort)):pulse.source).map(_.field))}});const WindowOps={row_number:function(){return{next:w=>w.index+1}},rank:function(){let rank;return{init:()=>rank=1,next:w=>{const i=w.index,data=w.data;return i&&w.compare(data[i-1],data[i])?rank=i+1:rank}}},dense_rank:function(){let drank;return{init:()=>drank=1,next:w=>{const i=w.index,d=w.data;return i&&w.compare(d[i-1],d[i])?++drank:drank}}},percent_rank:function(){const rank=WindowOps.rank(),next=rank.next;return{init:rank.init,next:w=>(next(w)-1)/(w.data.length-1)}},cume_dist:function(){let cume;return{init:()=>cume=0,next:w=>{const d=w.data,c=w.compare;let i=w.index;if(cume0||error("ntile num must be greater than zero.");const cume=WindowOps.cume_dist(),next=cume.next;return{init:cume.init,next:w=>Math.ceil(num*next(w))}},lag:function(field,offset){return offset=+offset||1,{next:w=>{const i=w.index-offset;return i>=0?field(w.data[i]):null}}},lead:function(field,offset){return offset=+offset||1,{next:w=>{const i=w.index+offset,d=w.data;return ifield(w.data[w.i0])}},last_value:function(field){return{next:w=>field(w.data[w.i1-1])}},nth_value:function(field,nth){return(nth=+nth)>0||error("nth_value nth must be greater than zero."),{next:w=>{const i=w.i0+(nth-1);return iprev=null,next:w=>{const v=field(w.data[w.index]);return null!=v?prev=v:prev}}},next_value:function(field){let v,i;return{init:()=>(v=null,i=-1),next:w=>{const d=w.data;return w.index<=i?v:(i=function find$2(field,data,index){for(let n=data.length;indexinputs[_]=1))}visitInputs(_.sort),ops.forEach(((op,i)=>{const field=fields[i],mname=accessorName(field),name=measureName(op,mname,as[i]);if(visitInputs(field),outputs.push(name),has$1(WindowOps,op))windows.push(function WindowOp(op,field,param,as){const fn=WindowOps[op](field,param);return{init:fn.init||zero$5,update:function(w,t){t[as]=fn.next(w)}}}(op,fields[i],params[i],name));else{if(null==field&&"count"!==op&&error("Null aggregate field specified."),"count"===op)return void counts.push(name);countOnly=!1;let m=map[mname];m||(m=map[mname]=[],m.field=field,measures.push(m)),m.push(createMeasure(op,name))}})),(counts.length||measures.length)&&(this.cell=function cell(measures,counts,countOnly){measures=measures.map((m=>compileMeasures(m,m.field)));const cell={num:0,agg:null,store:!1,count:counts};if(!countOnly)for(var n=measures.length,a=cell.agg=Array(n),i=0;i0&&!c(d[r0],d[r0-1])&&(w.i0=bisect.left(d,d[r0])),r1_.init())),this.cell&&this.cell.init()},prototype.update=function(w,t){const cell=this.cell,wind=this.windows,data=w.data,m=wind&&wind.length;let j;if(cell){for(j=w.p0;jthis.group(key(t));let state=this.state;state&&!mod||(state=this.state=new WindowState(_)),mod||pulse.modified(state.inputs)?(this.value={},pulse.visit(pulse.SOURCE,(t=>group(t).add(t)))):(pulse.visit(pulse.REM,(t=>group(t).remove(t))),pulse.visit(pulse.ADD,(t=>group(t).add(t))));for(let i=0,n=this._mlen;i=1?halfPi$2:x<=-1?-halfPi$2:Math.asin(x)}const pi$2=Math.PI,tau$2=2*pi$2,tauEpsilon=tau$2-1e-6;function append$1(strings){this._+=strings[0];for(let i=1,n=strings.length;i=0))throw new Error(`invalid digits: ${digits}`);if(d>15)return append$1;const k=10**d;return function(strings){this._+=strings[0];for(let i=1,n=strings.length;i1e-6)if(Math.abs(y01*x21-y21*x01)>1e-6&&r){let x20=x2-x0,y20=y2-y0,l21_2=x21*x21+y21*y21,l20_2=x20*x20+y20*y20,l21=Math.sqrt(l21_2),l01=Math.sqrt(l01_2),l=r*Math.tan((pi$2-Math.acos((l21_2+l01_2-l20_2)/(2*l21*l01)))/2),t01=l/l01,t21=l/l21;Math.abs(t01-1)>1e-6&&this._append`L${x1+t01*x01},${y1+t01*y01}`,this._append`A${r},${r},0,0,${+(y01*x20>x01*y20)},${this._x1=x1+t21*x21},${this._y1=y1+t21*y21}`}else this._append`L${this._x1=x1},${this._y1=y1}`;else;}arc(x,y,r,a0,a1,ccw){if(x=+x,y=+y,ccw=!!ccw,(r=+r)<0)throw new Error(`negative radius: ${r}`);let dx=r*Math.cos(a0),dy=r*Math.sin(a0),x0=x+dx,y0=y+dy,cw=1^ccw,da=ccw?a0-a1:a1-a0;null===this._x1?this._append`M${x0},${y0}`:(Math.abs(this._x1-x0)>1e-6||Math.abs(this._y1-y0)>1e-6)&&this._append`L${x0},${y0}`,r&&(da<0&&(da=da%tau$2+tau$2),da>tauEpsilon?this._append`A${r},${r},0,1,${cw},${x-dx},${y-dy}A${r},${r},0,1,${cw},${this._x1=x0},${this._y1=y0}`:da>1e-6&&this._append`A${r},${r},0,${+(da>=pi$2)},${cw},${this._x1=x+r*Math.cos(a1)},${this._y1=y+r*Math.sin(a1)}`)}rect(x,y,w,h){this._append`M${this._x0=this._x1=+x},${this._y0=this._y1=+y}h${w=+w}v${+h}h${-w}Z`}toString(){return this._}};function path$3(){return new Path$1}function withPath(shape){let digits=3;return shape.digits=function(_){if(!arguments.length)return digits;if(null==_)digits=null;else{const d=Math.floor(_);if(!(d>=0))throw new RangeError(`invalid digits: ${_}`);digits=d}return shape},()=>new Path$1(digits)}function arcInnerRadius(d){return d.innerRadius}function arcOuterRadius(d){return d.outerRadius}function arcStartAngle(d){return d.startAngle}function arcEndAngle(d){return d.endAngle}function arcPadAngle(d){return d&&d.padAngle}function cornerTangents(x0,y0,x1,y1,r1,rc,cw){var x01=x0-x1,y01=y0-y1,lo=(cw?rc:-rc)/sqrt$3(x01*x01+y01*y01),ox=lo*y01,oy=-lo*x01,x11=x0+ox,y11=y0+oy,x10=x1+ox,y10=y1+oy,x00=(x11+x10)/2,y00=(y11+y10)/2,dx=x10-x11,dy=y10-y11,d2=dx*dx+dy*dy,r=r1-rc,D=x11*y10-x10*y11,d=(dy<0?-1:1)*sqrt$3(max$1(0,r*r*d2-D*D)),cx0=(D*dy-dx*d)/d2,cy0=(-D*dx-dy*d)/d2,cx1=(D*dy+dx*d)/d2,cy1=(-D*dx+dy*d)/d2,dx0=cx0-x00,dy0=cy0-y00,dx1=cx1-x00,dy1=cy1-y00;return dx0*dx0+dy0*dy0>dx1*dx1+dy1*dy1&&(cx0=cx1,cy0=cy1),{cx:cx0,cy:cy0,x01:-ox,y01:-oy,x11:cx0*(r1/r-1),y11:cy0*(r1/r-1)}}function array$4(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}function Linear$1(context){this._context=context}function curveLinear(context){return new Linear$1(context)}function x$3(p){return p[0]}function y$3(p){return p[1]}function line$2$1(x,y){var defined=constant$3(!0),context=null,curve=curveLinear,output=null,path=withPath(line);function line(data){var i,d,buffer,n=(data=array$4(data)).length,defined0=!1;for(null==context&&(output=curve(buffer=path())),i=0;i<=n;++i)!(i=j;--k)output.point(x0z[k],y0z[k]);output.lineEnd(),output.areaEnd()}defined0&&(x0z[i]=+x0(d,i,data),y0z[i]=+y0(d,i,data),output.point(x1?+x1(d,i,data):x0z[i],y1?+y1(d,i,data):y0z[i]))}if(buffer)return output=null,buffer+""||null}function arealine(){return line$2$1().defined(defined).curve(curve).context(context)}return x0="function"==typeof x0?x0:void 0===x0?x$3:constant$3(+x0),y0="function"==typeof y0?y0:constant$3(void 0===y0?0:+y0),y1="function"==typeof y1?y1:void 0===y1?y$3:constant$3(+y1),area.x=function(_){return arguments.length?(x0="function"==typeof _?_:constant$3(+_),x1=null,area):x0},area.x0=function(_){return arguments.length?(x0="function"==typeof _?_:constant$3(+_),area):x0},area.x1=function(_){return arguments.length?(x1=null==_?null:"function"==typeof _?_:constant$3(+_),area):x1},area.y=function(_){return arguments.length?(y0="function"==typeof _?_:constant$3(+_),y1=null,area):y0},area.y0=function(_){return arguments.length?(y0="function"==typeof _?_:constant$3(+_),area):y0},area.y1=function(_){return arguments.length?(y1=null==_?null:"function"==typeof _?_:constant$3(+_),area):y1},area.lineX0=area.lineY0=function(){return arealine().x(x0).y(y0)},area.lineY1=function(){return arealine().x(x0).y(y1)},area.lineX1=function(){return arealine().x(x1).y(y0)},area.defined=function(_){return arguments.length?(defined="function"==typeof _?_:constant$3(!!_),area):defined},area.curve=function(_){return arguments.length?(curve=_,null!=context&&(output=curve(context)),area):curve},area.context=function(_){return arguments.length?(null==_?context=output=null:output=curve(context=_),area):context},area}path$3.prototype=Path$1.prototype,Linear$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._line?this._context.lineTo(x,y):this._context.moveTo(x,y);break;case 1:this._point=2;default:this._context.lineTo(x,y)}}};var circle$1={draw(context,size){const r=sqrt$3(size/pi$3);context.moveTo(r,0),context.arc(0,0,r,0,tau$3)}};function noop$3(){}function point$7(that,x,y){that._context.bezierCurveTo((2*that._x0+that._x1)/3,(2*that._y0+that._y1)/3,(that._x0+2*that._x1)/3,(that._y0+2*that._y1)/3,(that._x0+4*that._x1+x)/6,(that._y0+4*that._y1+y)/6)}function Basis(context){this._context=context}function BasisClosed(context){this._context=context}function BasisOpen(context){this._context=context}function Bundle(context,beta){this._basis=new Basis(context),this._beta=beta}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$7(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._line?this._context.lineTo(x,y):this._context.moveTo(x,y);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$7(this,x,y)}this._x0=this._x1,this._x1=x,this._y0=this._y1,this._y1=y}},BasisClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._x2=x,this._y2=y;break;case 1:this._point=2,this._x3=x,this._y3=y;break;case 2:this._point=3,this._x4=x,this._y4=y,this._context.moveTo((this._x0+4*this._x1+x)/6,(this._y0+4*this._y1+y)/6);break;default:point$7(this,x,y)}this._x0=this._x1,this._x1=x,this._y0=this._y1,this._y1=y}},BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var x0=(this._x0+4*this._x1+x)/6,y0=(this._y0+4*this._y1+y)/6;this._line?this._context.lineTo(x0,y0):this._context.moveTo(x0,y0);break;case 3:this._point=4;default:point$7(this,x,y)}this._x0=this._x1,this._x1=x,this._y0=this._y1,this._y1=y}},Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var x=this._x,y=this._y,j=x.length-1;if(j>0)for(var t,x0=x[0],y0=y[0],dx=x[j]-x0,dy=y[j]-y0,i=-1;++i<=j;)t=i/j,this._basis.point(this._beta*x[i]+(1-this._beta)*(x0+t*dx),this._beta*y[i]+(1-this._beta)*(y0+t*dy));this._x=this._y=null,this._basis.lineEnd()},point:function(x,y){this._x.push(+x),this._y.push(+y)}};var curveBundle=function custom(beta){function bundle(context){return 1===beta?new Basis(context):new Bundle(context,beta)}return bundle.beta=function(beta){return custom(+beta)},bundle}(.85);function point$6(that,x,y){that._context.bezierCurveTo(that._x1+that._k*(that._x2-that._x0),that._y1+that._k*(that._y2-that._y0),that._x2+that._k*(that._x1-x),that._y2+that._k*(that._y1-y),that._x2,that._y2)}function Cardinal(context,tension){this._context=context,this._k=(1-tension)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$6(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._line?this._context.lineTo(x,y):this._context.moveTo(x,y);break;case 1:this._point=2,this._x1=x,this._y1=y;break;case 2:this._point=3;default:point$6(this,x,y)}this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCardinal=function custom(tension){function cardinal(context){return new Cardinal(context,tension)}return cardinal.tension=function(tension){return custom(+tension)},cardinal}(0);function CardinalClosed(context,tension){this._context=context,this._k=(1-tension)/6}CardinalClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._x3=x,this._y3=y;break;case 1:this._point=2,this._context.moveTo(this._x4=x,this._y4=y);break;case 2:this._point=3,this._x5=x,this._y5=y;break;default:point$6(this,x,y)}this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCardinalClosed=function custom(tension){function cardinal(context){return new CardinalClosed(context,tension)}return cardinal.tension=function(tension){return custom(+tension)},cardinal}(0);function CardinalOpen(context,tension){this._context=context,this._k=(1-tension)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$6(this,x,y)}this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCardinalOpen=function custom(tension){function cardinal(context){return new CardinalOpen(context,tension)}return cardinal.tension=function(tension){return custom(+tension)},cardinal}(0);function point$5(that,x,y){var x1=that._x1,y1=that._y1,x2=that._x2,y2=that._y2;if(that._l01_a>epsilon$5){var a=2*that._l01_2a+3*that._l01_a*that._l12_a+that._l12_2a,n=3*that._l01_a*(that._l01_a+that._l12_a);x1=(x1*a-that._x0*that._l12_2a+that._x2*that._l01_2a)/n,y1=(y1*a-that._y0*that._l12_2a+that._y2*that._l01_2a)/n}if(that._l23_a>epsilon$5){var b=2*that._l23_2a+3*that._l23_a*that._l12_a+that._l12_2a,m=3*that._l23_a*(that._l23_a+that._l12_a);x2=(x2*b+that._x1*that._l23_2a-x*that._l12_2a)/m,y2=(y2*b+that._y1*that._l23_2a-y*that._l12_2a)/m}that._context.bezierCurveTo(x1,y1,x2,y2,that._x2,that._y2)}function CatmullRom(context,alpha){this._context=context,this._alpha=alpha}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){if(x=+x,y=+y,this._point){var x23=this._x2-x,y23=this._y2-y;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(x23*x23+y23*y23,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(x,y):this._context.moveTo(x,y);break;case 1:this._point=2;break;case 2:this._point=3;default:point$5(this,x,y)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCatmullRom=function custom(alpha){function catmullRom(context){return alpha?new CatmullRom(context,alpha):new Cardinal(context,0)}return catmullRom.alpha=function(alpha){return custom(+alpha)},catmullRom}(.5);function CatmullRomClosed(context,alpha){this._context=context,this._alpha=alpha}CatmullRomClosed.prototype={areaStart:noop$3,areaEnd:noop$3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(x,y){if(x=+x,y=+y,this._point){var x23=this._x2-x,y23=this._y2-y;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(x23*x23+y23*y23,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=x,this._y3=y;break;case 1:this._point=2,this._context.moveTo(this._x4=x,this._y4=y);break;case 2:this._point=3,this._x5=x,this._y5=y;break;default:point$5(this,x,y)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCatmullRomClosed=function custom(alpha){function catmullRom(context){return alpha?new CatmullRomClosed(context,alpha):new CardinalClosed(context,0)}return catmullRom.alpha=function(alpha){return custom(+alpha)},catmullRom}(.5);function CatmullRomOpen(context,alpha){this._context=context,this._alpha=alpha}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(x,y){if(x=+x,y=+y,this._point){var x23=this._x2-x,y23=this._y2-y;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(x23*x23+y23*y23,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$5(this,x,y)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=x,this._y0=this._y1,this._y1=this._y2,this._y2=y}};var curveCatmullRomOpen=function custom(alpha){function catmullRom(context){return alpha?new CatmullRomOpen(context,alpha):new CardinalOpen(context,0)}return catmullRom.alpha=function(alpha){return custom(+alpha)},catmullRom}(.5);function LinearClosed(context){this._context=context}function sign$1(x){return x<0?-1:1}function slope3(that,x2,y2){var h0=that._x1-that._x0,h1=x2-that._x1,s0=(that._y1-that._y0)/(h0||h1<0&&-0),s1=(y2-that._y1)/(h1||h0<0&&-0),p=(s0*h1+s1*h0)/(h0+h1);return(sign$1(s0)+sign$1(s1))*Math.min(Math.abs(s0),Math.abs(s1),.5*Math.abs(p))||0}function slope2(that,t){var h=that._x1-that._x0;return h?(3*(that._y1-that._y0)/h-t)/2:t}function point$4(that,t0,t1){var x0=that._x0,y0=that._y0,x1=that._x1,y1=that._y1,dx=(x1-x0)/3;that._context.bezierCurveTo(x0+dx,y0+dx*t0,x1-dx,y1-dx*t1,x1,y1)}function MonotoneX(context){this._context=context}function MonotoneY(context){this._context=new ReflectContext(context)}function ReflectContext(context){this._context=context}function Natural(context){this._context=context}function controlPoints(x){var i,m,n=x.length-1,a=new Array(n),b=new Array(n),r=new Array(n);for(a[0]=0,b[0]=2,r[0]=x[0]+2*x[1],i=1;i=0;--i)a[i]=(r[i]-a[i+1])/b[i];for(b[n-1]=(x[n]+a[n-1])/2,i=0;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(x,y){switch(x=+x,y=+y,this._point){case 0:this._point=1,this._line?this._context.lineTo(x,y):this._context.moveTo(x,y);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,y),this._context.lineTo(x,y);else{var x1=this._x*(1-this._t)+x*this._t;this._context.lineTo(x1,this._y),this._context.lineTo(x1,y)}}this._x=x,this._y=y}};const domImage=()=>"undefined"!=typeof Image?Image:null;function initRange(domain,range){switch(arguments.length){case 0:break;case 1:this.range(domain);break;default:this.range(range).domain(domain)}return this}function initInterpolator(domain,interpolator){switch(arguments.length){case 0:break;case 1:"function"==typeof domain?this.interpolator(domain):this.range(domain);break;default:this.domain(domain),"function"==typeof interpolator?this.interpolator(interpolator):this.range(interpolator)}return this}const implicit=Symbol("implicit");function ordinal(){var index=new InternMap,domain=[],range=[],unknown=implicit;function scale(d){let i=index.get(d);if(void 0===i){if(unknown!==implicit)return unknown;index.set(d,i=domain.push(d)-1)}return range[i%range.length]}return scale.domain=function(_){if(!arguments.length)return domain.slice();domain=[],index=new InternMap;for(const value of _)index.has(value)||index.set(value,domain.push(value)-1);return scale},scale.range=function(_){return arguments.length?(range=Array.from(_),scale):range.slice()},scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown},scale.copy=function(){return ordinal(domain,range).unknown(unknown)},initRange.apply(scale,arguments),scale}function define(constructor,factory,prototype){constructor.prototype=factory.prototype=prototype,prototype.constructor=constructor}function extend(parent,definition){var prototype=Object.create(parent.prototype);for(var key in definition)prototype[key]=definition[key];return prototype}function Color(){}var brighter=1/.7,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color$3(format){var m,l;return format=(format+"").trim().toLowerCase(),(m=reHex.exec(format))?(l=m[1].length,m=parseInt(m[1],16),6===l?rgbn(m):3===l?new Rgb(m>>8&15|m>>4&240,m>>4&15|240&m,(15&m)<<4|15&m,1):8===l?rgba(m>>24&255,m>>16&255,m>>8&255,(255&m)/255):4===l?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|240&m,((15&m)<<4|15&m)/255):null):(m=reRgbInteger.exec(format))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(format))?new Rgb(255*m[1]/100,255*m[2]/100,255*m[3]/100,1):(m=reRgbaInteger.exec(format))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(format))?rgba(255*m[1]/100,255*m[2]/100,255*m[3]/100,m[4]):(m=reHslPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(format)?rgbn(named[format]):"transparent"===format?new Rgb(NaN,NaN,NaN,0):null}function rgbn(n){return new Rgb(n>>16&255,n>>8&255,255&n,1)}function rgba(r,g,b,a){return a<=0&&(r=g=b=NaN),new Rgb(r,g,b,a)}function rgbConvert(o){return o instanceof Color||(o=color$3(o)),o?new Rgb((o=o.rgb()).r,o.g,o.b,o.opacity):new Rgb}function rgb$1(r,g,b,opacity){return 1===arguments.length?rgbConvert(r):new Rgb(r,g,b,null==opacity?1:opacity)}function Rgb(r,g,b,opacity){this.r=+r,this.g=+g,this.b=+b,this.opacity=+opacity}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatRgb(){const a=clampa(this.opacity);return`${1===a?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===a?")":`, ${a})`}`}function clampa(opacity){return isNaN(opacity)?1:Math.max(0,Math.min(1,opacity))}function clampi(value){return Math.max(0,Math.min(255,Math.round(value)||0))}function hex(value){return((value=clampi(value))<16?"0":"")+value.toString(16)}function hsla(h,s,l,a){return a<=0?h=s=l=NaN:l<=0||l>=1?h=s=NaN:s<=0&&(h=NaN),new Hsl(h,s,l,a)}function hslConvert(o){if(o instanceof Hsl)return new Hsl(o.h,o.s,o.l,o.opacity);if(o instanceof Color||(o=color$3(o)),!o)return new Hsl;if(o instanceof Hsl)return o;var r=(o=o.rgb()).r/255,g=o.g/255,b=o.b/255,min=Math.min(r,g,b),max=Math.max(r,g,b),h=NaN,s=max-min,l=(max+min)/2;return s?(h=r===max?(g-b)/s+6*(g0&&l<1?0:h,new Hsl(h,s,l,o.opacity)}function hsl$2(h,s,l,opacity){return 1===arguments.length?hslConvert(h):new Hsl(h,s,l,null==opacity?1:opacity)}function Hsl(h,s,l,opacity){this.h=+h,this.s=+s,this.l=+l,this.opacity=+opacity}function clamph(value){return(value=(value||0)%360)<0?value+360:value}function clampt(value){return Math.max(0,Math.min(1,value||0))}function hsl2rgb(h,m1,m2){return 255*(h<60?m1+(m2-m1)*h/60:h<180?m2:h<240?m1+(m2-m1)*(240-h)/60:m1)}define(Color,color$3,{copy(channels){return Object.assign(new this.constructor,this,channels)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function color_formatHex8(){return this.rgb().formatHex8()},formatHsl:function color_formatHsl(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),define(Rgb,rgb$1,extend(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker(k){return k=null==k?.7:Math.pow(.7,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),define(Hsl,hsl$2,extend(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},darker(k){return k=null==k?.7:Math.pow(.7,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb(){var h=this.h%360+360*(this.h<0),s=isNaN(h)||isNaN(this.s)?0:this.s,l=this.l,m2=l+(l<.5?l:1-l)*s,m1=2*l-m2;return new Rgb(hsl2rgb(h>=240?h-240:h+120,m1,m2),hsl2rgb(h,m1,m2),hsl2rgb(h<120?h+240:h-120,m1,m2),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const a=clampa(this.opacity);return`${1===a?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===a?")":`, ${a})`}`}}));const radians$1=Math.PI/180,degrees$2=180/Math.PI,Xn=.96422,Yn=1,Zn=.82521,t0=4/29,t1=6/29,t2=3*t1*t1,t3=t1*t1*t1;function labConvert(o){if(o instanceof Lab)return new Lab(o.l,o.a,o.b,o.opacity);if(o instanceof Hcl)return hcl2lab(o);o instanceof Rgb||(o=rgbConvert(o));var x,z,r=rgb2lrgb(o.r),g=rgb2lrgb(o.g),b=rgb2lrgb(o.b),y=xyz2lab((.2225045*r+.7168786*g+.0606169*b)/Yn);return r===g&&g===b?x=z=y:(x=xyz2lab((.4360747*r+.3850649*g+.1430804*b)/Xn),z=xyz2lab((.0139322*r+.0971045*g+.7141733*b)/Zn)),new Lab(116*y-16,500*(x-y),200*(y-z),o.opacity)}function lab$1(l,a,b,opacity){return 1===arguments.length?labConvert(l):new Lab(l,a,b,null==opacity?1:opacity)}function Lab(l,a,b,opacity){this.l=+l,this.a=+a,this.b=+b,this.opacity=+opacity}function xyz2lab(t){return t>t3?Math.pow(t,1/3):t/t2+t0}function lab2xyz(t){return t>t1?t*t*t:t2*(t-t0)}function lrgb2rgb(x){return 255*(x<=.0031308?12.92*x:1.055*Math.pow(x,1/2.4)-.055)}function rgb2lrgb(x){return(x/=255)<=.04045?x/12.92:Math.pow((x+.055)/1.055,2.4)}function hcl$2(h,c,l,opacity){return 1===arguments.length?function hclConvert(o){if(o instanceof Hcl)return new Hcl(o.h,o.c,o.l,o.opacity);if(o instanceof Lab||(o=labConvert(o)),0===o.a&&0===o.b)return new Hcl(NaN,0=1?(t=1,n-1):Math.floor(t*n),v1=values[i],v2=values[i+1],v0=i>0?values[i-1]:2*v1-v2,v3=i()=>x;function linear$1(a,d){return function(t){return a+t*d}}function hue$1(a,b){var d=b-a;return d?linear$1(a,d>180||d<-180?d-360*Math.round(d/360):d):constant$2(isNaN(a)?b:a)}function gamma(y){return 1==(y=+y)?nogamma:function(a,b){return b-a?function exponential(a,b,y){return a=Math.pow(a,y),b=Math.pow(b,y)-a,y=1/y,function(t){return Math.pow(a+t*b,y)}}(a,b,y):constant$2(isNaN(a)?b:a)}}function nogamma(a,b){var d=b-a;return d?linear$1(a,d):constant$2(isNaN(a)?b:a)}var rgb=function rgbGamma(y){var color=gamma(y);function rgb(start,end){var r=color((start=rgb$1(start)).r,(end=rgb$1(end)).r),g=color(start.g,end.g),b=color(start.b,end.b),opacity=nogamma(start.opacity,end.opacity);return function(t){return start.r=r(t),start.g=g(t),start.b=b(t),start.opacity=opacity(t),start+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(spline){return function(colors){var i,color,n=colors.length,r=new Array(n),g=new Array(n),b=new Array(n);for(i=0;ibi&&(bs=b.slice(bi,bs),s[i]?s[i]+=bs:s[++i]=bs),(am=am[0])===(bm=bm[0])?s[i]?s[i]+=bm:s[++i]=bm:(s[++i]=null,q.push({i,x:interpolateNumber(am,bm)})),bi=reB.lastIndex;return bi180?b+=360:b-a>180&&(a+=360),q.push({i:s.push(pop(s)+"rotate(",null,degParen)-2,x:interpolateNumber(a,b)})):b&&s.push(pop(s)+"rotate("+b+degParen)}(a.rotate,b.rotate,s,q),function skewX(a,b,s,q){a!==b?q.push({i:s.push(pop(s)+"skewX(",null,degParen)-2,x:interpolateNumber(a,b)}):b&&s.push(pop(s)+"skewX("+b+degParen)}(a.skewX,b.skewX,s,q),function scale(xa,ya,xb,yb,s,q){if(xa!==xb||ya!==yb){var i=s.push(pop(s)+"scale(",null,",",null,")");q.push({i:i-4,x:interpolateNumber(xa,xb)},{i:i-2,x:interpolateNumber(ya,yb)})}else 1===xb&&1===yb||s.push(pop(s)+"scale("+xb+","+yb+")")}(a.scaleX,a.scaleY,b.scaleX,b.scaleY,s,q),a=b=null,function(t){for(var o,i=-1,n=q.length;++ib&&(t=a,a=b,b=t),function(x){return Math.max(a,Math.min(b,x))}}(domain[0],domain[n-1])),piecewise=n>2?polymap:bimap,output=input=null,scale}function scale(x){return null==x||isNaN(x=+x)?unknown:(output||(output=piecewise(domain.map(transform),range,interpolate)))(transform(clamp(x)))}return scale.invert=function(y){return clamp(untransform((input||(input=piecewise(range,domain.map(transform),interpolateNumber)))(y)))},scale.domain=function(_){return arguments.length?(domain=Array.from(_,number$5),rescale()):domain.slice()},scale.range=function(_){return arguments.length?(range=Array.from(_),rescale()):range.slice()},scale.rangeRound=function(_){return range=Array.from(_),interpolate=interpolateRound,rescale()},scale.clamp=function(_){return arguments.length?(clamp=!!_||identity$2,rescale()):clamp!==identity$2},scale.interpolate=function(_){return arguments.length?(interpolate=_,rescale()):interpolate},scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown},function(t,u){return transform=t,untransform=u,rescale()}}function continuous$1(){return transformer$3()(identity$2,identity$2)}function tickFormat$1(start,stop,count,specifier){var precision,step=tickStep(start,stop,count);switch((specifier=formatSpecifier(null==specifier?",f":specifier)).type){case"s":var value=Math.max(Math.abs(start),Math.abs(stop));return null!=specifier.precision||isNaN(precision=precisionPrefix(step,value))||(specifier.precision=precision),formatPrefix(specifier,value);case"":case"e":case"g":case"p":case"r":null!=specifier.precision||isNaN(precision=precisionRound(step,Math.max(Math.abs(start),Math.abs(stop))))||(specifier.precision=precision-("e"===specifier.type));break;case"f":case"%":null!=specifier.precision||isNaN(precision=precisionFixed(step))||(specifier.precision=precision-2*("%"===specifier.type))}return format$3(specifier)}function linearish(scale){var domain=scale.domain;return scale.ticks=function(count){var d=domain();return ticks(d[0],d[d.length-1],null==count?10:count)},scale.tickFormat=function(count,specifier){var d=domain();return tickFormat$1(d[0],d[d.length-1],null==count?10:count,specifier)},scale.nice=function(count){null==count&&(count=10);var prestep,step,d=domain(),i0=0,i1=d.length-1,start=d[i0],stop=d[i1],maxIter=10;for(stop0;){if((step=tickIncrement(start,stop,count))===prestep)return d[i0]=start,d[i1]=stop,domain(d);if(step>0)start=Math.floor(start/step)*step,stop=Math.ceil(stop/step)*step;else{if(!(step<0))break;start=Math.ceil(start*step)/step,stop=Math.floor(stop*step)/step}prestep=step}return scale},scale}function nice$1(domain,interval){var t,i0=0,i1=(domain=domain.slice()).length-1,x0=domain[i0],x1=domain[i1];return x1-f(-x,k)}function loggish(transform){const scale=transform(transformLog,transformExp),domain=scale.domain;let logs,pows,base=10;function rescale(){return logs=function logp(base){return base===Math.E?Math.log:10===base&&Math.log10||2===base&&Math.log2||(base=Math.log(base),x=>Math.log(x)/base)}(base),pows=function powp(base){return 10===base?pow10:base===Math.E?Math.exp:x=>Math.pow(base,x)}(base),domain()[0]<0?(logs=reflect(logs),pows=reflect(pows),transform(transformLogn,transformExpn)):transform(transformLog,transformExp),scale}return scale.base=function(_){return arguments.length?(base=+_,rescale()):base},scale.domain=function(_){return arguments.length?(domain(_),rescale()):domain()},scale.ticks=count=>{const d=domain();let u=d[0],v=d[d.length-1];const r=v0){for(;i<=j;++i)for(k=1;kv)break;z.push(t)}}else for(;i<=j;++i)for(k=base-1;k>=1;--k)if(t=i>0?k/pows(-i):k*pows(i),!(tv)break;z.push(t)}2*z.length{if(null==count&&(count=10),null==specifier&&(specifier=10===base?"s":","),"function"!=typeof specifier&&(base%1||null!=(specifier=formatSpecifier(specifier)).precision||(specifier.trim=!0),specifier=format$3(specifier)),count===1/0)return specifier;const k=Math.max(1,base*count/scale.ticks().length);return d=>{let i=d/pows(Math.round(logs(d)));return i*basedomain(nice$1(domain(),{floor:x=>pows(Math.floor(logs(x))),ceil:x=>pows(Math.ceil(logs(x)))})),scale}function transformSymlog(c){return function(x){return Math.sign(x)*Math.log1p(Math.abs(x/c))}}function transformSymexp(c){return function(x){return Math.sign(x)*Math.expm1(Math.abs(x))*c}}function symlogish(transform){var c=1,scale=transform(transformSymlog(c),transformSymexp(c));return scale.constant=function(_){return arguments.length?transform(transformSymlog(c=+_),transformSymexp(c)):c},linearish(scale)}function transformPow(exponent){return function(x){return x<0?-Math.pow(-x,exponent):Math.pow(x,exponent)}}function transformSqrt(x){return x<0?-Math.sqrt(-x):Math.sqrt(x)}function transformSquare(x){return x<0?-x*x:x*x}function powish(transform){var scale=transform(identity$2,identity$2),exponent=1;return scale.exponent=function(_){return arguments.length?(exponent=+_,function rescale(){return 1===exponent?transform(identity$2,identity$2):.5===exponent?transform(transformSqrt,transformSquare):transform(transformPow(exponent),transformPow(1/exponent))}()):exponent},linearish(scale)}function pow$2(){var scale=powish(transformer$3());return scale.copy=function(){return copy$2(scale,pow$2()).exponent(scale.exponent())},initRange.apply(scale,arguments),scale}function date(t){return new Date(t)}function number$4(t){return t instanceof Date?+t:+new Date(+t)}function calendar(ticks,tickInterval,year,month,week,day,hour,minute,second,format){var scale=continuous$1(),invert=scale.invert,domain=scale.domain,formatMillisecond=format(".%L"),formatSecond=format(":%S"),formatMinute=format("%I:%M"),formatHour=format("%I %p"),formatDay=format("%a %d"),formatWeek=format("%b %d"),formatMonth=format("%B"),formatYear=format("%Y");function tickFormat(date){return(second(date)0?space:1:0}const Linear="linear",Log="log",Pow="pow",Sqrt="sqrt",Symlog="symlog",Time="time",UTC="utc",Sequential="sequential",Quantile="quantile",Quantize="quantize",Threshold="threshold",Ordinal="ordinal",Point="point",Band="band",BinOrdinal="bin-ordinal",Continuous="continuous",Discrete$1="discrete",Discretizing="discretizing",Interpolating="interpolating",Temporal="temporal";function band(){const scale=ordinal().unknown(void 0),domain=scale.domain,ordinalRange=scale.range;let step,bandwidth,range$1=[0,1],round=!1,paddingInner=0,paddingOuter=0,align=.5;function rescale(){const n=domain().length,reverse=range$1[1]start+step*i));return ordinalRange(reverse?values.reverse():values)}return delete scale.unknown,scale.domain=function(_){return arguments.length?(domain(_),rescale()):domain()},scale.range=function(_){return arguments.length?(range$1=[+_[0],+_[1]],rescale()):range$1.slice()},scale.rangeRound=function(_){return range$1=[+_[0],+_[1]],round=!0,rescale()},scale.bandwidth=function(){return bandwidth},scale.step=function(){return step},scale.round=function(_){return arguments.length?(round=!!_,rescale()):round},scale.padding=function(_){return arguments.length?(paddingOuter=Math.max(0,Math.min(1,_)),paddingInner=paddingOuter,rescale()):paddingInner},scale.paddingInner=function(_){return arguments.length?(paddingInner=Math.max(0,Math.min(1,_)),rescale()):paddingInner},scale.paddingOuter=function(_){return arguments.length?(paddingOuter=Math.max(0,Math.min(1,_)),rescale()):paddingOuter},scale.align=function(_){return arguments.length?(align=Math.max(0,Math.min(1,_)),rescale()):align},scale.invertRange=function(_){if(null==_[0]||null==_[1])return;const reverse=range$1[1]range$1[1-reverse])?void 0:(a=Math.max(0,bisectRight$1(values,lo)-1),b=lo===hi?a:bisectRight$1(values,hi)-1,lo-values[a]>bandwidth+1e-10&&++a,reverse&&(t=a,a=n-b,b=n-t),a>b?void 0:domain().slice(a,b+1))},scale.invert=function(_){const value=scale.invertRange([_,_]);return value?value[0]:value},scale.copy=function(){return band().domain(domain()).range(range$1).round(round).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align)},rescale()}function pointish(scale){const copy=scale.copy;return scale.padding=scale.paddingOuter,delete scale.paddingInner,scale.copy=function(){return pointish(copy())},scale}var map=Array.prototype.map;const slice$2=Array.prototype.slice;const scales=new Map,VEGA_SCALE=Symbol("vega_scale");function registerScale(scale){return scale[VEGA_SCALE]=!0,scale}function scale$4(type,scale,metadata){return arguments.length>1?(scales.set(type,function create$2(type,constructor,metadata){const ctr=function scale(){const s=constructor();return s.invertRange||(s.invertRange=s.invert?function invertRange(scale){return function(_){let t,lo=_[0],hi=_[1];return hi=lo&&range[i]<=hi&&(min<0&&(min=i),max=i);if(!(min<0))return lo=scale.invertExtent(range[min]),hi=scale.invertExtent(range[max]),[void 0===lo[0]?lo[1]:lo[0],void 0===hi[1]?hi[0]:hi[1]]}}(s):void 0),s.type=type,registerScale(s)};return ctr.metadata=toSet(array$5(metadata)),ctr}(type,scale,metadata)),this):isValidScaleType(type)?scales.get(type):void 0}function isValidScaleType(type){return scales.has(type)}function hasType(key,type){const s=scales.get(key);return s&&s.metadata[type]}function isContinuous$1(key){return hasType(key,Continuous)}function isDiscrete$2(key){return hasType(key,Discrete$1)}function isDiscretizing$1(key){return hasType(key,Discretizing)}function isLogarithmic(key){return hasType(key,Log)}function isInterpolating(key){return hasType(key,Interpolating)}function isQuantile$1(key){return hasType(key,Quantile)}scale$4("identity",(function identity$1(domain){var unknown;function scale(x){return null==x||isNaN(x=+x)?unknown:x}return scale.invert=scale,scale.domain=scale.range=function(_){return arguments.length?(domain=Array.from(_,number$5),scale):domain.slice()},scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown},scale.copy=function(){return identity$1(domain).unknown(unknown)},domain=arguments.length?Array.from(domain,number$5):[0,1],linearish(scale)})),scale$4(Linear,(function linear(){var scale=continuous$1();return scale.copy=function(){return copy$2(scale,linear())},initRange.apply(scale,arguments),linearish(scale)}),Continuous),scale$4(Log,(function log$2(){const scale=loggish(transformer$3()).domain([1,10]);return scale.copy=()=>copy$2(scale,log$2()).base(scale.base()),initRange.apply(scale,arguments),scale}),[Continuous,Log]),scale$4(Pow,pow$2,Continuous),scale$4(Sqrt,(function sqrt$2(){return pow$2.apply(null,arguments).exponent(.5)}),Continuous),scale$4(Symlog,(function symlog(){var scale=symlogish(transformer$3());return scale.copy=function(){return copy$2(scale,symlog()).constant(scale.constant())},initRange.apply(scale,arguments)}),Continuous),scale$4(Time,(function time$1(){return initRange.apply(calendar(timeTicks,timeTickInterval,timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute,second,timeFormat$2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}),[Continuous,Temporal]),scale$4(UTC,(function utcTime(){return initRange.apply(calendar(utcTicks,utcTickInterval,utcYear,utcMonth,utcSunday,utcDay,utcHour,utcMinute,second,utcFormat$1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}),[Continuous,Temporal]),scale$4(Sequential,sequential,[Continuous,Interpolating]),scale$4(`${Sequential}-${Linear}`,sequential,[Continuous,Interpolating]),scale$4(`${Sequential}-${Log}`,(function sequentialLog(){var scale=loggish(transformer$2()).domain([1,10]);return scale.copy=function(){return copy$1(scale,sequentialLog()).base(scale.base())},initInterpolator.apply(scale,arguments)}),[Continuous,Interpolating,Log]),scale$4(`${Sequential}-${Pow}`,sequentialPow,[Continuous,Interpolating]),scale$4(`${Sequential}-${Sqrt}`,(function sequentialSqrt(){return sequentialPow.apply(null,arguments).exponent(.5)}),[Continuous,Interpolating]),scale$4(`${Sequential}-${Symlog}`,(function sequentialSymlog(){var scale=symlogish(transformer$2());return scale.copy=function(){return copy$1(scale,sequentialSymlog()).constant(scale.constant())},initInterpolator.apply(scale,arguments)}),[Continuous,Interpolating]),scale$4(`diverging-${Linear}`,(function diverging(){var scale=linearish(transformer$1()(identity$2));return scale.copy=function(){return copy$1(scale,diverging())},initInterpolator.apply(scale,arguments)}),[Continuous,Interpolating]),scale$4(`diverging-${Log}`,(function divergingLog(){var scale=loggish(transformer$1()).domain([.1,1,10]);return scale.copy=function(){return copy$1(scale,divergingLog()).base(scale.base())},initInterpolator.apply(scale,arguments)}),[Continuous,Interpolating,Log]),scale$4(`diverging-${Pow}`,divergingPow,[Continuous,Interpolating]),scale$4(`diverging-${Sqrt}`,(function divergingSqrt(){return divergingPow.apply(null,arguments).exponent(.5)}),[Continuous,Interpolating]),scale$4(`diverging-${Symlog}`,(function divergingSymlog(){var scale=symlogish(transformer$1());return scale.copy=function(){return copy$1(scale,divergingSymlog()).constant(scale.constant())},initInterpolator.apply(scale,arguments)}),[Continuous,Interpolating]),scale$4(Quantile,(function quantile(){var unknown,domain=[],range=[],thresholds=[];function rescale(){var i=0,n=Math.max(1,range.length);for(thresholds=new Array(n-1);++i0?thresholds[i-1]:domain[0],i=n?[domain[n-1],x1]:[domain[i-1],domain[i]]},scale.unknown=function(_){return arguments.length?(unknown=_,scale):scale},scale.thresholds=function(){return domain.slice()},scale.copy=function(){return quantize$1().domain([x0,x1]).range(range).unknown(unknown)},initRange.apply(linearish(scale),arguments)}),Discretizing),scale$4(Threshold,(function threshold(){var unknown,domain=[.5],range=[0,1],n=1;function scale(x){return null!=x&&x<=x?range[bisect$1(domain,x,0,n)]:unknown}return scale.domain=function(_){return arguments.length?(domain=Array.from(_),n=Math.min(domain.length,range.length-1),scale):domain.slice()},scale.range=function(_){return arguments.length?(range=Array.from(_),n=Math.min(domain.length,range.length-1),scale):range.slice()},scale.invertExtent=function(y){var i=range.indexOf(y);return[domain[i-1],domain[i]]},scale.unknown=function(_){return arguments.length?(unknown=_,scale):unknown},scale.copy=function(){return threshold().domain(domain).range(range).unknown(unknown)},initRange.apply(scale,arguments)}),Discretizing),scale$4(BinOrdinal,(function scaleBinOrdinal(){let domain=[],range=[];function scale(x){return null==x||x!=x?void 0:range[(bisect$1(domain,x)-1)%range.length]}return scale.domain=function(_){return arguments.length?(domain=function numbers(_){return map.call(_,toNumber)}(_),scale):domain.slice()},scale.range=function(_){return arguments.length?(range=slice$2.call(_),scale):range.slice()},scale.tickFormat=function(count,specifier){return tickFormat$1(domain[0],peek$1(domain),null==count?10:count,specifier)},scale.copy=function(){return scaleBinOrdinal().domain(scale.domain()).range(scale.range())},scale}),[Discrete$1,Discretizing]),scale$4(Ordinal,ordinal,Discrete$1),scale$4(Band,band,Discrete$1),scale$4(Point,(function point$3(){return pointish(band().paddingInner(1))}),Discrete$1);const scaleProps=["clamp","base","constant","exponent"];function interpolateRange$1(interpolator,range){const start=range[0],span=peek$1(range)-start;return function(i){return interpolator(start+i*span)}}function interpolateColors(colors,type,gamma){return piecewise(interpolate$1(type||"rgb",gamma),colors)}function quantizeInterpolator(interpolator,count){const samples=new Array(count),n=count+1;for(let i=0;iscale$1[m]?s[m](scale$1[m]()):0)),s):constant$5(.5)}function interpolate$1(type,gamma){const interp=$$1[function method(type){return"interpolate"+type.toLowerCase().split("-").map((s=>s[0].toUpperCase()+s.slice(1))).join("")}(type)];return null!=gamma&&interp&&interp.gamma?interp.gamma(gamma):interp}function colors(palette){const n=palette.length/6|0,c=new Array(n);for(let i=0;i1?(schemes[name]=scheme,this):schemes[name]}apply$1({category10:"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf",category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5",accent:"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666",dark2:"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666",paired:"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928",pastel1:"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2",pastel2:"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc",set1:"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999",set2:"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3",set3:"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"},colors),apply$1({blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},(_=>interpolateColors(colors(_))));const SymbolLegend="symbol",DiscreteLegend="discrete",defaultFormatter=value=>isArray(value)?value.map((v=>String(v))):String(value),ascending$1=(a,b)=>a[1]-b[1],descending$1=(a,b)=>b[1]-a[1];function tickCount(scale,count,minStep){let step;return isNumber$1(count)&&(scale.bins&&(count=Math.max(count,scale.bins.length)),null!=minStep&&(count=Math.min(count,Math.floor(span(scale.domain())/minStep||1)))),isObject(count)&&(step=count.step,count=count.interval),isString(count)&&(count=scale.type===Time?timeInterval(count):scale.type==UTC?utcInterval(count):error("Only time and utc scales accept interval strings."),step&&(count=count.every(step))),count}function validTicks(scale,ticks,count){let range=scale.range(),lo=range[0],hi=peek$1(range),cmp=ascending$1;if(lo>hi&&(range=hi,hi=lo,lo=range,cmp=descending$1),lo=Math.floor(lo),hi=Math.ceil(hi),ticks=ticks.map((v=>[v,scale(v)])).filter((_=>lo<=_[1]&&_[1]<=hi)).sort(cmp).map((_=>_[0])),count>0&&ticks.length>1){const endpoints=[ticks[0],peek$1(ticks)];for(;ticks.length>count&&ticks.length>=3;)ticks=ticks.filter(((_,i)=>!(i%2)));ticks.length<3&&(ticks=endpoints)}return ticks}function tickValues(scale,count){return scale.bins?validTicks(scale,scale.bins):scale.ticks?scale.ticks(count):scale.domain()}function tickFormat(locale,scale,count,specifier,formatType,noSkip){const type=scale.type;let format=defaultFormatter;if(type===Time||formatType===Time)format=locale.timeFormat(specifier);else if(type===UTC||formatType===UTC)format=locale.utcFormat(specifier);else if(isLogarithmic(type)){const varfmt=locale.formatFloat(specifier);if(noSkip||scale.bins)format=varfmt;else{const test=tickLog(scale,count,!1);format=_=>test(_)?varfmt(_):""}}else if(scale.tickFormat){const d=scale.domain();format=locale.formatSpan(d[0],d[d.length-1],count,specifier)}else specifier&&(format=locale.format(specifier));return format}function tickLog(scale,count,values){const ticks=tickValues(scale,count),base=scale.base(),logb=Math.log(base),k=Math.max(1,base*count/ticks.length),test=d=>{let i=d/Math.pow(base,Math.round(Math.log(d)/logb));return i*basesymbols$2[scale.type]||scale.bins;function labelFormat(locale,scale,count,type,specifier,formatType,noSkip){const format=formats[scale.type]&&formatType!==Time&&formatType!==UTC?function thresholdFormat(locale,scale,specifier){const _=scale[formats[scale.type]](),n=_.length;let i,d=n>1?_[1]-_[0]:_[0];for(i=1;i(value,index,array)=>{const limit=get$4(array[index+1],get$4(array.max,1/0)),lo=formatValue$2(value,format),hi=formatValue$2(limit,format);return lo&&hi?lo+" – "+hi:hi?"< "+hi:"≥ "+lo},get$4=(value,dflt)=>null!=value?value:dflt,formatDiscrete=format=>(value,index)=>index?format(value):null,formatPoint=format=>value=>format(value),formatValue$2=(value,format)=>Number.isFinite(value)?format(value):null;function format$1(locale,scale,specifier,formatType){const type=formatType||scale.type;return isString(specifier)&&function isTemporal(key){return hasType(key,Temporal)}(type)&&(specifier=specifier.replace(/%a/g,"%A").replace(/%b/g,"%B")),specifier||type!==Time?specifier||type!==UTC?labelFormat(locale,scale,5,null,specifier,formatType,!0):locale.utcFormat("%A, %d %B %Y, %X UTC"):locale.timeFormat("%A, %d %B %Y, %X")}function domainCaption(locale,scale,opt){opt=opt||{};const max=Math.max(3,opt.maxlen||7),fmt=format$1(locale,scale,opt.format,opt.formatType);if(isDiscretizing$1(scale.type)){const v=labelValues(scale).slice(1).map(fmt),n=v.length;return`${n} boundar${1===n?"y":"ies"}: ${v.join(", ")}`}if(isDiscrete$2(scale.type)){const d=scale.domain(),n=d.length;return`${n} value${1===n?"":"s"}: ${n>max?d.slice(0,max-2).map(fmt).join(", ")+", ending with "+d.slice(-1).map(fmt):d.map(fmt).join(", ")}`}{const d=scale.domain();return`values from ${fmt(d[0])} to ${fmt(peek$1(d))}`}}let gradient_id=0;const patternPrefix="p_";function isGradient(value){return value&&value.gradient}function gradientRef(g,defs,base){const type=g.gradient;let id=g.id,prefix="radial"===type?patternPrefix:"";return id||(id=g.id="gradient_"+gradient_id++,"radial"===type?(g.x1=get$3(g.x1,.5),g.y1=get$3(g.y1,.5),g.r1=get$3(g.r1,0),g.x2=get$3(g.x2,.5),g.y2=get$3(g.y2,.5),g.r2=get$3(g.r2,.5),prefix=patternPrefix):(g.x1=get$3(g.x1,0),g.y1=get$3(g.y1,0),g.x2=get$3(g.x2,1),g.y2=get$3(g.y2,0))),defs[id]=g,"url("+(base||"")+"#"+prefix+id+")"}function get$3(val,def){return null!=val?val:def}function Gradient$1(p0,p1){var gradient,stops=[];return gradient={gradient:"linear",x1:p0?p0[0]:0,y1:p0?p0[1]:0,x2:p1?p1[0]:1,y2:p1?p1[1]:0,stops,stop:function(offset,color){return stops.push({offset,color}),gradient}}}const lookup$4={basis:{curve:function curveBasis(context){return new Basis(context)}},"basis-closed":{curve:function curveBasisClosed(context){return new BasisClosed(context)}},"basis-open":{curve:function curveBasisOpen(context){return new BasisOpen(context)}},bundle:{curve:curveBundle,tension:"beta",value:.85},cardinal:{curve:curveCardinal,tension:"tension",value:0},"cardinal-open":{curve:curveCardinalOpen,tension:"tension",value:0},"cardinal-closed":{curve:curveCardinalClosed,tension:"tension",value:0},"catmull-rom":{curve:curveCatmullRom,tension:"alpha",value:.5},"catmull-rom-closed":{curve:curveCatmullRomClosed,tension:"alpha",value:.5},"catmull-rom-open":{curve:curveCatmullRomOpen,tension:"alpha",value:.5},linear:{curve:curveLinear},"linear-closed":{curve:function curveLinearClosed(context){return new LinearClosed(context)}},monotone:{horizontal:function monotoneY(context){return new MonotoneY(context)},vertical:function monotoneX(context){return new MonotoneX(context)}},natural:{curve:function curveNatural(context){return new Natural(context)}},step:{curve:function curveStep(context){return new Step(context,.5)}},"step-after":{curve:function stepAfter(context){return new Step(context,1)}},"step-before":{curve:function stepBefore(context){return new Step(context,0)}}};function curves(type,orientation,tension){var entry=has$1(lookup$4,type)&&lookup$4[type],curve=null;return entry&&(curve=entry.curve||entry[orientation||"vertical"],entry.tension&&null!=tension&&(curve=curve[entry.tension](tension))),curve}const paramCounts={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7},commandPattern=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi,numberPattern=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/,spacePattern=/^((\s+,?\s*)|(,\s*))/,flagPattern=/^[01]/;function parse$3(path){const commands=[];return(path.match(commandPattern)||[]).forEach((str=>{let cmd=str[0];const type=cmd.toLowerCase(),paramCount=paramCounts[type],params=function parseParams(type,paramCount,segment){const params=[];for(let index=0;paramCount&&index1&&(pl=Math.sqrt(pl),rx*=pl,ry*=pl);const a00=cos_th/rx,a01=sin_th/rx,a10=-sin_th/ry,a11=cos_th/ry,x0=a00*ox+a01*oy,y0=a10*ox+a11*oy,x1=a00*x+a01*y,y1=a10*x+a11*y;let sfactor_sq=1/((x1-x0)*(x1-x0)+(y1-y0)*(y1-y0))-.25;sfactor_sq<0&&(sfactor_sq=0);let sfactor=Math.sqrt(sfactor_sq);sweep==large&&(sfactor=-sfactor);const xc=.5*(x0+x1)-sfactor*(y1-y0),yc=.5*(y0+y1)+sfactor*(x1-x0),th0=Math.atan2(y0-yc,x0-xc);let th_arc=Math.atan2(y1-yc,x1-xc)-th0;th_arc<0&&1===sweep?th_arc+=Tau:th_arc>0&&0===sweep&&(th_arc-=Tau);const segs=Math.ceil(Math.abs(th_arc/(HalfPi+.001))),result=[];for(let i=0;i+_}function clamp(value,min,max){return Math.max(min,Math.min(value,max))}function vg_rect(){var x=rectangleX,y=rectangleY,width=rectangleWidth,height=rectangleHeight,crTL=number$3(0),crTR=crTL,crBL=crTL,crBR=crTL,context=null;function rectangle(_,x0,y0){var buffer,x1=null!=x0?x0:+x.call(this,_),y1=null!=y0?y0:+y.call(this,_),w=+width.call(this,_),h=+height.call(this,_),s=Math.min(w,h)/2,tl=clamp(+crTL.call(this,_),0,s),tr=clamp(+crTR.call(this,_),0,s),bl=clamp(+crBL.call(this,_),0,s),br=clamp(+crBR.call(this,_),0,s);if(context||(context=buffer=path$3()),tl<=0&&tr<=0&&bl<=0&&br<=0)context.rect(x1,y1,w,h);else{var x2=x1+w,y2=y1+h;context.moveTo(x1+tl,y1),context.lineTo(x2-tr,y1),context.bezierCurveTo(x2-C*tr,y1,x2,y1+C*tr,x2,y1+tr),context.lineTo(x2,y2-br),context.bezierCurveTo(x2,y2-C*br,x2-C*br,y2,x2-br,y2),context.lineTo(x1+bl,y2),context.bezierCurveTo(x1+C*bl,y2,x1,y2-C*bl,x1,y2-bl),context.lineTo(x1,y1+tl),context.bezierCurveTo(x1,y1+C*tl,x1+C*tl,y1,x1+tl,y1),context.closePath()}if(buffer)return context=null,buffer+""||null}return rectangle.x=function(_){return arguments.length?(x=number$3(_),rectangle):x},rectangle.y=function(_){return arguments.length?(y=number$3(_),rectangle):y},rectangle.width=function(_){return arguments.length?(width=number$3(_),rectangle):width},rectangle.height=function(_){return arguments.length?(height=number$3(_),rectangle):height},rectangle.cornerRadius=function(tl,tr,br,bl){return arguments.length?(crTL=number$3(tl),crTR=null!=tr?number$3(tr):crTL,crBR=null!=br?number$3(br):crTL,crBL=null!=bl?number$3(bl):crTR,rectangle):crTL},rectangle.context=function(_){return arguments.length?(context=null==_?null:_,rectangle):context},rectangle}function vg_trail(){var x,y,size,defined,ready,x1,y1,r1,context=null;function point(x2,y2,w2){const r2=w2/2;if(ready){var ux=y1-y2,uy=x2-x1;if(ux||uy){var ud=Math.sqrt(ux*ux+uy*uy),rx=(ux/=ud)*r1,ry=(uy/=ud)*r1,t=Math.atan2(uy,ux);context.moveTo(x1-rx,y1-ry),context.lineTo(x2-ux*r2,y2-uy*r2),context.arc(x2,y2,r2,t-Math.PI,t),context.lineTo(x1+rx,y1+ry),context.arc(x1,y1,r1,t,t+Math.PI)}else context.arc(x2,y2,r2,0,Tau);context.closePath()}else ready=1;x1=x2,y1=y2,r1=r2}function trail(data){var i,d,buffer,n=data.length,defined0=!1;for(null==context&&(context=buffer=path$3()),i=0;i<=n;++i)!(iitem.x||0,y$2=item=>item.y||0,def=item=>!(!1===item.defined),arcShape=function arc$2$1(){var innerRadius=arcInnerRadius,outerRadius=arcOuterRadius,cornerRadius=constant$3(0),padRadius=null,startAngle=arcStartAngle,endAngle=arcEndAngle,padAngle=arcPadAngle,context=null,path=withPath(arc);function arc(){var buffer,r,r0=+innerRadius.apply(this,arguments),r1=+outerRadius.apply(this,arguments),a0=startAngle.apply(this,arguments)-halfPi$2,a1=endAngle.apply(this,arguments)-halfPi$2,da=abs$2(a1-a0),cw=a1>a0;if(context||(context=buffer=path()),r1epsilon$5)if(da>tau$3-epsilon$5)context.moveTo(r1*cos$2(a0),r1*sin$2(a0)),context.arc(0,0,r1,a0,a1,!cw),r0>epsilon$5&&(context.moveTo(r0*cos$2(a1),r0*sin$2(a1)),context.arc(0,0,r0,a1,a0,cw));else{var t0,t1,a01=a0,a11=a1,a00=a0,a10=a1,da0=da,da1=da,ap=padAngle.apply(this,arguments)/2,rp=ap>epsilon$5&&(padRadius?+padRadius.apply(this,arguments):sqrt$3(r0*r0+r1*r1)),rc=min$1(abs$2(r1-r0)/2,+cornerRadius.apply(this,arguments)),rc0=rc,rc1=rc;if(rp>epsilon$5){var p0=asin$2(rp/r0*sin$2(ap)),p1=asin$2(rp/r1*sin$2(ap));(da0-=2*p0)>epsilon$5?(a00+=p0*=cw?1:-1,a10-=p0):(da0=0,a00=a10=(a0+a1)/2),(da1-=2*p1)>epsilon$5?(a01+=p1*=cw?1:-1,a11-=p1):(da1=0,a01=a11=(a0+a1)/2)}var x01=r1*cos$2(a01),y01=r1*sin$2(a01),x10=r0*cos$2(a10),y10=r0*sin$2(a10);if(rc>epsilon$5){var oc,x11=r1*cos$2(a11),y11=r1*sin$2(a11),x00=r0*cos$2(a00),y00=r0*sin$2(a00);if(da1?0:x<-1?pi$3:Math.acos(x)}((ax*bx+ay*by)/(sqrt$3(ax*ax+ay*ay)*sqrt$3(bx*bx+by*by)))/2),lc=sqrt$3(oc[0]*oc[0]+oc[1]*oc[1]);rc0=min$1(rc,(r0-lc)/(kc-1)),rc1=min$1(rc,(r1-lc)/(kc+1))}else rc0=rc1=0}da1>epsilon$5?rc1>epsilon$5?(t0=cornerTangents(x00,y00,x01,y01,r1,rc1,cw),t1=cornerTangents(x11,y11,x10,y10,r1,rc1,cw),context.moveTo(t0.cx+t0.x01,t0.cy+t0.y01),rc1epsilon$5&&da0>epsilon$5?rc0>epsilon$5?(t0=cornerTangents(x10,y10,x11,y11,r0,-rc0,cw),t1=cornerTangents(x01,y01,x00,y00,r0,-rc0,cw),context.lineTo(t0.cx+t0.x01,t0.cy+t0.y01),rc0item.startAngle||0)).endAngle((item=>item.endAngle||0)).padAngle((item=>item.padAngle||0)).innerRadius((item=>item.innerRadius||0)).outerRadius((item=>item.outerRadius||0)).cornerRadius((item=>item.cornerRadius||0)),areavShape=area$2$1().x(x$2).y1(y$2).y0((item=>(item.y||0)+(item.height||0))).defined(def),areahShape=area$2$1().y(y$2).x1(x$2).x0((item=>(item.x||0)+(item.width||0))).defined(def),lineShape=line$2$1().x(x$2).y(y$2).defined(def),rectShape=vg_rect().x(x$2).y(y$2).width((item=>item.width||0)).height((item=>item.height||0)).cornerRadius((item=>value$1(item.cornerRadiusTopLeft,item.cornerRadius)||0),(item=>value$1(item.cornerRadiusTopRight,item.cornerRadius)||0),(item=>value$1(item.cornerRadiusBottomRight,item.cornerRadius)||0),(item=>value$1(item.cornerRadiusBottomLeft,item.cornerRadius)||0)),symbolShape=function Symbol$1(type,size){let context=null,path=withPath(symbol);function symbol(){let buffer;if(context||(context=buffer=path()),type.apply(this,arguments).draw(context,+size.apply(this,arguments)),buffer)return context=null,buffer+""||null}return type="function"==typeof type?type:constant$3(type||circle$1),size="function"==typeof size?size:constant$3(void 0===size?64:+size),symbol.type=function(_){return arguments.length?(type="function"==typeof _?_:constant$3(_),symbol):type},symbol.size=function(_){return arguments.length?(size="function"==typeof _?_:constant$3(+_),symbol):size},symbol.context=function(_){return arguments.length?(context=null==_?null:_,symbol):context},symbol}().type((item=>symbols$1(item.shape||"circle"))).size((item=>value$1(item.size,64))),trailShape=vg_trail().x(x$2).y(y$2).defined(def).size((item=>item.size||1));function hasCornerRadius(item){return item.cornerRadius||item.cornerRadiusTopLeft||item.cornerRadiusTopRight||item.cornerRadiusBottomRight||item.cornerRadiusBottomLeft}function rectangle(context,item,x,y){return rectShape.context(context)(item,x,y)}var clip_id=1;function resetSVGClipId(){clip_id=1}function clip$1$1(renderer,item,size){var clip=item.clip,defs=renderer._defs,id=item.clip_id||(item.clip_id="clip"+clip_id++),c=defs.clipping[id]||(defs.clipping[id]={id});return isFunction$1(clip)?c.path=clip(null):hasCornerRadius(size)?c.path=rectangle(null,size,0,0):(c.width=size.width||0,c.height=size.height||0),"url(#"+id+")"}function Bounds(b){this.clear(),b&&this.union(b)}function Item(mark){this.mark=mark,this.bounds=this.bounds||new Bounds}function GroupItem(mark){Item.call(this,mark),this.items=this.items||[]}function ResourceLoader(customLoader){this._pending=0,this._loader=customLoader||loader()}function increment(loader){loader._pending+=1}function decrement(loader){loader._pending-=1}function boundStroke(bounds,item,miter){if(item.stroke&&0!==item.opacity&&0!==item.strokeOpacity){const sw=null!=item.strokeWidth?+item.strokeWidth:1;bounds.expand(sw+(miter?function miterAdjustment(item,strokeWidth){return item.strokeJoin&&"miter"!==item.strokeJoin?0:strokeWidth}(item,sw):0))}return bounds}Bounds.prototype={clone(){return new Bounds(this)},clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(b){return this.x1===b.x1&&this.y1===b.y1&&this.x2===b.x2&&this.y2===b.y2},set(x1,y1,x2,y2){return x2this.x2&&(this.x2=x),y>this.y2&&(this.y2=y),this},expand(d){return this.x1-=d,this.y1-=d,this.x2+=d,this.y2+=d,this},round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this},scale(s){return this.x1*=s,this.y1*=s,this.x2*=s,this.y2*=s,this},translate(dx,dy){return this.x1+=dx,this.x2+=dx,this.y1+=dy,this.y2+=dy,this},rotate(angle,x,y){const p=this.rotatedPoints(angle,x,y);return this.clear().add(p[0],p[1]).add(p[2],p[3]).add(p[4],p[5]).add(p[6],p[7])},rotatedPoints(angle,x,y){var{x1,y1,x2,y2}=this,cos=Math.cos(angle),sin=Math.sin(angle),cx=x-x*cos+y*sin,cy=y-x*sin-y*cos;return[cos*x1-sin*y1+cx,sin*x1+cos*y1+cy,cos*x1-sin*y2+cx,sin*x1+cos*y2+cy,cos*x2-sin*y1+cx,sin*x2+cos*y1+cy,cos*x2-sin*y2+cx,sin*x2+cos*y2+cy]},union(b){return b.x1this.x2&&(this.x2=b.x2),b.y2>this.y2&&(this.y2=b.y2),this},intersect(b){return b.x1>this.x1&&(this.x1=b.x1),b.y1>this.y1&&(this.y1=b.y1),b.x2=b.x2&&this.y1<=b.y1&&this.y2>=b.y2},alignsWith(b){return b&&(this.x1==b.x1||this.x2==b.x2||this.y1==b.y1||this.y2==b.y2)},intersects(b){return b&&!(this.x2b.x2||this.y2b.y2)},contains(x,y){return!(xthis.x2||ythis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}},inherits(GroupItem,Item),ResourceLoader.prototype={pending(){return this._pending},sanitizeURL(uri){const loader=this;return increment(loader),loader._loader.sanitize(uri,{context:"href"}).then((opt=>(decrement(loader),opt))).catch((()=>(decrement(loader),null)))},loadImage(uri){const loader=this,Image=domImage();return increment(loader),loader._loader.sanitize(uri,{context:"image"}).then((opt=>{const url=opt.href;if(!url||!Image)throw{url};const img=new Image,cors=has$1(opt,"crossOrigin")?opt.crossOrigin:"anonymous";return null!=cors&&(img.crossOrigin=cors),img.onload=()=>decrement(loader),img.onerror=()=>decrement(loader),img.src=url,img})).catch((e=>(decrement(loader),{complete:!1,width:0,height:0,src:e&&e.url||""})))},ready(){const loader=this;return new Promise((accept=>{!function poll(value){loader.pending()?setTimeout((()=>{poll(!0)}),10):accept(value)}(!1)}))}};const circleThreshold=Tau-1e-8;let bounds,lx,ly,rot,ma,mb,mc,md;const add$2=(x,y)=>bounds.add(x,y),addL=(x,y)=>add$2(lx=x,ly=y),addX=x=>add$2(x,bounds.y1),addY=y=>add$2(bounds.x1,y),px=(x,y)=>ma*x+mc*y,py=(x,y)=>mb*x+md*y,addp=(x,y)=>add$2(px(x,y),py(x,y)),addpL=(x,y)=>addL(px(x,y),py(x,y));function boundContext(_,deg){return bounds=_,deg?(rot=deg*DegToRad,ma=md=Math.cos(rot),mb=Math.sin(rot),mc=-mb):(ma=md=1,rot=mb=mc=0),context$1}const context$1={beginPath(){},closePath(){},moveTo:addpL,lineTo:addpL,rect(x,y,w,h){rot?(addp(x+w,y),addp(x+w,y+h),addp(x,y+h),addpL(x,y)):(add$2(x+w,y+h),addL(x,y))},quadraticCurveTo(x1,y1,x2,y2){const px1=px(x1,y1),py1=py(x1,y1),px2=px(x2,y2),py2=py(x2,y2);quadExtrema(lx,px1,px2,addX),quadExtrema(ly,py1,py2,addY),addL(px2,py2)},bezierCurveTo(x1,y1,x2,y2,x3,y3){const px1=px(x1,y1),py1=py(x1,y1),px2=px(x2,y2),py2=py(x2,y2),px3=px(x3,y3),py3=py(x3,y3);cubicExtrema(lx,px1,px2,px3,addX),cubicExtrema(ly,py1,py2,py3,addY),addL(px3,py3)},arc(cx,cy,r,sa,ea,ccw){if(sa+=rot,ea+=rot,lx=r*Math.cos(ea)+cx,ly=r*Math.sin(ea)+cy,Math.abs(ea-sa)>circleThreshold)add$2(cx-r,cy-r),add$2(cx+r,cy+r);else{const update=a=>add$2(r*Math.cos(a)+cx,r*Math.sin(a)+cy);let s,i;if(update(sa),update(ea),ea!==sa)if((sa%=Tau)<0&&(sa+=Tau),(ea%=Tau)<0&&(ea+=Tau),eaea;++i,s-=HalfPi)update(s);else for(s=sa-sa%HalfPi+HalfPi,i=0;i<4&&s1e-14?(r=b*b+c*a,r>=0&&(r=Math.sqrt(r),t0=(-b+r)/a,t1=(-b-r)/a)):t0=.5*c/b,0t1)return!1;r>t0&&(t0=r)}else if(p>0){if(r0&&(context.globalAlpha=opacity,context.fillStyle=color$2(context,item,item.fill),!0)}var Empty=[];function stroke(context,item,opacity){var lw=null!=(lw=item.strokeWidth)?lw:1;return!(lw<=0)&&((opacity*=null==item.strokeOpacity?1:item.strokeOpacity)>0&&(context.globalAlpha=opacity,context.strokeStyle=color$2(context,item,item.stroke),context.lineWidth=lw,context.lineCap=item.strokeCap||"butt",context.lineJoin=item.strokeJoin||"miter",context.miterLimit=item.strokeMiterLimit||10,context.setLineDash&&(context.setLineDash(item.strokeDash||Empty),context.lineDashOffset=item.strokeDashOffset||0),!0))}function compare$7(a,b){return a.zindex-b.zindex||a.index-b.index}function zorder(scene){if(!scene.zdirty)return scene.zitems;var item,i,n,items=scene.items,output=[];for(i=0,n=items.length;i=0;)if(hit=visitor(items[i]))return hit;if(items===zitems)for(i=(items=scene.items).length;--i>=0;)if(!items[i].zindex&&(hit=visitor(items[i])))return hit;return null}function drawAll(path){return function(context,scene,bounds){visit(scene,(item=>{bounds&&!bounds.intersects(item.bounds)||drawPath(path,context,item,item)}))}}function drawOne(path){return function(context,scene,bounds){!scene.items.length||bounds&&!bounds.intersects(scene.bounds)||drawPath(path,context,scene.items[0],scene.items)}}function drawPath(path,context,item,items){var opacity=null==item.opacity?1:item.opacity;0!==opacity&&(path(context,items)||(blend(context,item),item.fill&&fill(context,item,opacity)&&context.fill(),item.stroke&&stroke(context,item,opacity)&&context.stroke()))}function pick$1(test){return test=test||truthy,function(context,scene,x,y,gx,gy){return x*=context.pixelRatio,y*=context.pixelRatio,pickVisit(scene,(item=>{const b=item.bounds;if((!b||b.contains(gx,gy))&&b)return test(context,item,x,y,gx,gy)?item:void 0}))}}function hitPath(path,filled){return function(context,o,x,y){var lw,lc,item=Array.isArray(o)?o[0]:o,fill=null==filled?item.fill:filled,stroke=item.stroke&&context.isPointInStroke;return stroke&&(lw=item.strokeWidth,lc=item.strokeCap,context.lineWidth=null!=lw?lw:1,context.lineCap=null!=lc?lc:"butt"),!path(context,o)&&(fill&&context.isPointInPath(x,y)||stroke&&context.isPointInStroke(x,y))}}function pickPath(path){return pick$1(hitPath(path))}function translate$2(x,y){return"translate("+x+","+y+")"}function rotate(a){return"rotate("+a+")"}function translateItem(item){return translate$2(item.x||0,item.y||0)}function markItemPath(type,shape,isect){function draw(context,item){var x=item.x||0,y=item.y||0,a=item.angle||0;context.translate(x,y),a&&context.rotate(a*=DegToRad),context.beginPath(),shape(context,item),a&&context.rotate(-a),context.translate(-x,-y)}return{type,tag:"path",nested:!1,attr:function attr(emit,item){emit("transform",function rotateItem(item){return translate$2(item.x||0,item.y||0)+(item.angle?" "+rotate(item.angle):"")}(item)),emit("d",shape(null,item))},bound:function bound(bounds,item){return shape(boundContext(bounds,item.angle),item),boundStroke(bounds,item).translate(item.x||0,item.y||0)},draw:drawAll(draw),pick:pickPath(draw),isect:isect||intersectPath(draw)}}var arc$2=markItemPath("arc",(function arc$1$1(context,item){return arcShape.context(context)(item)}));function markMultiItemPath(type,shape,tip){function draw(context,items){context.beginPath(),shape(context,items)}const hit=hitPath(draw);return{type,tag:"path",nested:!0,attr:function attr(emit,item){var items=item.mark.items;items.length&&emit("d",shape(null,items))},bound:function bound(bounds,mark){var items=mark.items;return 0===items.length?bounds:(shape(boundContext(bounds),items),boundStroke(bounds,items[0]))},draw:drawOne(draw),pick:function pick(context,scene,x,y,gx,gy){var items=scene.items,b=scene.bounds;return!items||!items.length||b&&!b.contains(gx,gy)?null:(x*=context.pixelRatio,y*=context.pixelRatio,hit(context,items,x,y)?items[0]:null)},isect:intersectPoint,tip}}var area$2=markMultiItemPath("area",(function area$1$1(context,items){const item=items[0],interp=item.interpolate||"linear";return("horizontal"===item.orient?areahShape:areavShape).curve(curves(interp,item.orient,item.tension)).context(context)(items)}),(function pickArea(a,p){for(var hit,d,v="horizontal"===a[0].orient?p[1]:p[0],z="horizontal"===a[0].orient?"y":"x",i=a.length,min=1/0;--i>=0;)!1!==a[i].defined&&(d=Math.abs(a[i][z]-v)).5&&sw<1.5?.5-Math.abs(sw-1):0}function emitRectangle(emit,item){const off=offset$1(item);emit("d",rectangle(null,item,off,off))}function rectanglePath(context,group,x,y){const off=offset$1(group);context.beginPath(),rectangle(context,group,(x||0)+off,(y||0)+off)}const hitBackground=hitPath(rectanglePath),hitForeground=hitPath(rectanglePath,!1),hitCorner=hitPath(rectanglePath,!0);var group={type:"group",tag:"g",nested:!1,attr:function attr$5(emit,item){emit("transform",translateItem(item))},bound:function bound$5(bounds,group){if(!group.clip&&group.items){const items=group.items,m=items.length;for(let j=0;j{const gx=group.x||0,gy=group.y||0,fore=group.strokeForeground,opacity=null==group.opacity?1:group.opacity;(group.stroke||group.fill)&&opacity&&(rectanglePath(context,group,gx,gy),blend(context,group),group.fill&&fill(context,group,opacity)&&context.fill(),group.stroke&&!fore&&stroke(context,group,opacity)&&context.stroke()),context.save(),context.translate(gx,gy),group.clip&&clipGroup(context,group),bounds&&bounds.translate(-gx,-gy),visit(group,(item=>{this.draw(context,item,bounds)})),bounds&&bounds.translate(gx,gy),context.restore(),fore&&group.stroke&&opacity&&(rectanglePath(context,group,gx,gy),blend(context,group),stroke(context,group,opacity)&&context.stroke())}))},pick:function pick$2(context,scene,x,y,gx,gy){if(scene.bounds&&!scene.bounds.contains(gx,gy)||!scene.items)return null;const cx=x*context.pixelRatio,cy=y*context.pixelRatio;return pickVisit(scene,(group=>{let hit,dx,dy;const b=group.bounds;if(b&&!b.contains(gx,gy))return;dx=group.x||0,dy=group.y||0;const dw=dx+(group.width||0),dh=dy+(group.height||0),c=group.clip;if(c&&(gxdw||gydh))return;if(context.save(),context.translate(dx,dy),dx=gx-dx,dy=gy-dy,c&&hasCornerRadius(group)&&!hitCorner(context,group,cx,cy))return context.restore(),null;const fore=group.strokeForeground,ix=!1!==scene.interactive;return ix&&fore&&group.stroke&&hitForeground(context,group,cx,cy)?(context.restore(),group):(hit=pickVisit(group,(mark=>function pickMark(mark,x,y){return(!1!==mark.interactive||"group"===mark.marktype)&&mark.bounds&&mark.bounds.contains(x,y)}(mark,dx,dy)?this.pick(mark,x,y,dx,dy):null)),!hit&&ix&&(group.fill||!fore&&group.stroke)&&hitBackground(context,group,cx,cy)&&(hit=group),context.restore(),hit||null)}))},isect:intersectRect,content:function content(emit,item,renderer){emit("clip-path",item.clip?clip$1$1(renderer,item,item):null)},background:function background$1(emit,item){emit("class","background"),emit("aria-hidden",!0),emitRectangle(emit,item)},foreground:function foreground(emit,item){emit("class","foreground"),emit("aria-hidden",!0),item.strokeForeground?emitRectangle(emit,item):emit("d","")}},metadata={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function getImage(item,renderer){var image=item.image;return(!image||item.url&&item.url!==image.url)&&(image={complete:!1,width:0,height:0},renderer.loadImage(item.url).then((image=>{item.image=image,item.image.url=item.url}))),image}function imageWidth(item,image){return null!=item.width?item.width:image&&image.width?!1!==item.aspect&&item.height?item.height*image.width/image.height:image.width:0}function imageHeight(item,image){return null!=item.height?item.height:image&&image.height?!1!==item.aspect&&item.width?item.width*image.height/image.width:image.height:0}function imageXOffset(align,w){return"center"===align?w/2:"right"===align?w:0}function imageYOffset(baseline,h){return"middle"===baseline?h/2:"bottom"===baseline?h:0}var image$1={type:"image",tag:"image",nested:!1,attr:function attr$4(emit,item,renderer){const img=getImage(item,renderer),w=imageWidth(item,img),h=imageHeight(item,img),x=(item.x||0)-imageXOffset(item.align,w),y=(item.y||0)-imageYOffset(item.baseline,h);emit("href",!img.src&&img.toDataURL?img.toDataURL():img.src||"",metadata["xmlns:xlink"],"xlink:href"),emit("transform",translate$2(x,y)),emit("width",w),emit("height",h),emit("preserveAspectRatio",!1===item.aspect?"none":"xMidYMid")},bound:function bound$4(bounds,item){const img=item.image,w=imageWidth(item,img),h=imageHeight(item,img),x=(item.x||0)-imageXOffset(item.align,w),y=(item.y||0)-imageYOffset(item.baseline,h);return bounds.set(x,y,x+w,y+h)},draw:function draw$3(context,scene,bounds){visit(scene,(item=>{if(bounds&&!bounds.intersects(item.bounds))return;const img=getImage(item,this);let w=imageWidth(item,img),h=imageHeight(item,img);if(0===w||0===h)return;let opacity,ar0,ar1,t,x=(item.x||0)-imageXOffset(item.align,w),y=(item.y||0)-imageYOffset(item.baseline,h);!1!==item.aspect&&(ar0=img.width/img.height,ar1=item.width/item.height,ar0==ar0&&ar1==ar1&&ar0!==ar1&&(ar1=0;)if(!1!==a[i].defined&&(dx=a[i].x-p[0])*dx+(dy=a[i].y-p[1])*dy{if(!bounds||bounds.intersects(item.bounds)){var opacity=null==item.opacity?1:item.opacity;opacity&&path(context,item,opacity)&&(blend(context,item),context.stroke())}}))},pick:pick$1((function hit$1(context,item,x,y){return!!context.isPointInStroke&&(path(context,item,1)&&context.isPointInStroke(x,y))})),isect:intersectRule},shape=markItemPath("shape",(function shape$1(context,item){return(item.mark.shape||item.shape).context(context)(item)})),symbol=markItemPath("symbol",(function symbol$1(context,item){return symbolShape.context(context)(item)}),intersectPoint);const widthCache=lruCache$1();var textMetrics={height:fontSize,measureWidth,estimateWidth,width:estimateWidth,canvas:useCanvas};function useCanvas(use){textMetrics.width=use&&context$2?measureWidth:estimateWidth}function estimateWidth(item,text){return _estimateWidth(textValue(item,text),fontSize(item))}function _estimateWidth(text,currentFontHeight){return~~(.8*text.length*currentFontHeight)}function measureWidth(item,text){return fontSize(item)<=0||!(text=textValue(item,text))?0:_measureWidth(text,font$1(item))}function _measureWidth(text,currentFont){const key=`(${currentFont}) ${text}`;let width=widthCache.get(key);return void 0===width&&(context$2.font=currentFont,width=context$2.measureText(text).width,widthCache.set(key,width)),width}function fontSize(item){return null!=item.fontSize?+item.fontSize||0:11}function lineHeight(item){return null!=item.lineHeight?item.lineHeight:fontSize(item)+2}function textLines(item){return function lineArray(_){return isArray(_)?_.length>1?_:_[0]:_}(item.lineBreak&&item.text&&!isArray(item.text)?item.text.split(item.lineBreak):item.text)}function multiLineOffset(item){const tl=textLines(item);return(isArray(tl)?tl.length-1:0)*lineHeight(item)}function textValue(item,line){const text=null==line?"":(line+"").trim();return item.limit>0&&text.length?function truncate(item,text){var limit=+item.limit,width=function widthGetter(item){if(textMetrics.width===measureWidth){const currentFont=font$1(item);return text=>_measureWidth(text,currentFont)}{const currentFontHeight=fontSize(item);return text=>_estimateWidth(text,currentFontHeight)}}(item);if(width(text)>>1,width(text.slice(mid))>limit?lo=mid+1:hi=mid;return ellipsis+text.slice(lo)}for(;lo>>1),width(text.slice(0,mid))Math.max(w,textMetrics.width(item,t))),0)):w=textMetrics.width(item,tl),"center"===a?dx-=w/2:"right"===a&&(dx-=w),bounds.set(dx+=x,dy+=y,dx+w,dy+h),item.angle&&!mode)bounds.rotate(item.angle*DegToRad,x,y);else if(2===mode)return bounds.rotatedPoints(item.angle*DegToRad,x,y);return bounds}var text$2={type:"text",tag:"text",nested:!1,attr:function attr(emit,item){var t,dx=item.dx||0,dy=(item.dy||0)+offset$2(item),p=anchorPoint(item),x=p.x1,y=p.y1,a=item.angle||0;emit("text-anchor",textAlign[item.align]||"start"),a?(t=translate$2(x,y)+" "+rotate(a),(dx||dy)&&(t+=" "+translate$2(dx,dy))):t=translate$2(x+dx,y+dy),emit("transform",t)},bound,draw:function draw$5(context,scene,bounds){visit(scene,(item=>{var p,x,y,i,lh,tl,str,opacity=null==item.opacity?1:item.opacity;if(!(bounds&&!bounds.intersects(item.bounds)||0===opacity||item.fontSize<=0||null==item.text||0===item.text.length)){if(context.font=font$1(item),context.textAlign=item.align||"left",x=(p=anchorPoint(item)).x1,y=p.y1,item.angle&&(context.save(),context.translate(x,y),context.rotate(item.angle*DegToRad),x=y=0),x+=item.dx||0,y+=(item.dy||0)+offset$2(item),tl=textLines(item),blend(context,item),isArray(tl))for(lh=lineHeight(item),i=0;i=0;)if(!1!==a[i].defined&&(dx=a[i].x-p[0])*dx+(dy=a[i].y-p[1])*dy<(dx=a[i].size||1)*dx)return a[i];return null})),Marks={arc:arc$2,area:area$2,group,image:image$1,line:line$2,path:path$2,rect:rect$1,rule:rule$2,shape,symbol,text:text$2,trail:trail$2};function boundItem$1(item,func,opt){var type=Marks[item.mark.marktype],bound=func||type.bound;return type.nested&&(item=item.mark),bound(item.bounds||(item.bounds=new Bounds),item,opt)}var DUMMY={mark:null};function boundMark(mark,bounds,opt){var i,n,item,b,type=Marks[mark.marktype],bound=type.bound,items=mark.items,hasItems=items&&items.length;if(type.nested)return hasItems?item=items[0]:(DUMMY.mark=mark,item=DUMMY),b=boundItem$1(item,bound,opt),bounds=bounds&&bounds.union(b)||b;if(bounds=bounds||mark.bounds&&mark.bounds.clear()||new Bounds,hasItems)for(i=0,n=items.length;iindex;)el.removeChild(nodes[--curr]);return el}function cssClass(mark){return"mark-"+mark.marktype+(mark.role?" role-"+mark.role:"")+(mark.name?" "+mark.name:"")}function point$2(event,el){const rect=el.getBoundingClientRect();return[event.clientX-rect.left-(el.clientLeft||0),event.clientY-rect.top-(el.clientTop||0)]}function Handler$1(customLoader,customTooltip){this._active=null,this._handlers={},this._loader=customLoader||loader(),this._tooltip=customTooltip||defaultTooltip$1}function defaultTooltip$1(handler,event,item,value){handler.element().setAttribute("title",value||"")}function Renderer(loader){this._el=null,this._bgcolor=null,this._loader=new ResourceLoader(loader)}Scenegraph.prototype={toJSON(indent){return sceneToJSON(this.root,indent||0)},mark(markdef,group,index){const mark=createMark(markdef,group=group||this.root.items[0]);return group.items[index]=mark,mark.zindex&&(mark.group.zdirty=!0),mark}},Handler$1.prototype={initialize(el,origin,obj){return this._el=el,this._obj=obj||null,this.origin(origin)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},origin(origin){return arguments.length?(this._origin=origin||[0,0],this):this._origin.slice()},scene(scene){return arguments.length?(this._scene=scene,this):this._scene},on(){},off(){},_handlerIndex(h,type,handler){for(let i=h?h.length:0;--i>=0;)if(h[i].type===type&&(!handler||h[i].handler===handler))return i;return-1},handlers(type){const h=this._handlers,a=[];if(type)a.push(...h[this.eventName(type)]);else for(const k in h)a.push(...h[k]);return a},eventName(name){const i=name.indexOf(".");return i<0?name:name.slice(0,i)},handleHref(event,item,href){this._loader.sanitize(href,{context:"href"}).then((opt=>{const e=new MouseEvent(event.type,event),a=domCreate(null,"a");for(const name in opt)a.setAttribute(name,opt[name]);a.dispatchEvent(e)})).catch((()=>{}))},handleTooltip(event,item,show){if(item&&null!=item.tooltip){item=function resolveItem(item,event,el,origin){var mdef,p,mark=item&&item.mark;if(mark&&(mdef=Marks[mark.marktype]).tip){for((p=point$2(event,el))[0]-=origin[0],p[1]-=origin[1];item=item.mark.group;)p[0]-=item.x||0,p[1]-=item.y||0;item=mdef.tip(mark.items,p)}return item}(item,event,this.canvas(),this._origin);const value=show&&item&&item.tooltip||null;this._tooltip.call(this._obj,this,event,item,value)}},getItemBoundingClientRect(item){const el=this.canvas();if(!el)return;const rect=el.getBoundingClientRect(),origin=this._origin,bounds=item.bounds,width=bounds.width(),height=bounds.height();let x=bounds.x1+origin[0]+rect.left,y=bounds.y1+origin[1]+rect.top;for(;item.mark&&(item=item.mark.group);)x+=item.x||0,y+=item.y||0;return{x,y,width,height,left:x,top:y,right:x+width,bottom:y+height}}},Renderer.prototype={initialize(el,width,height,origin,scaleFactor){return this._el=el,this.resize(width,height,origin,scaleFactor)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},background(bgcolor){return 0===arguments.length?this._bgcolor:(this._bgcolor=bgcolor,this)},resize(width,height,origin,scaleFactor){return this._width=width,this._height=height,this._origin=origin||[0,0],this._scale=scaleFactor||1,this},dirty(){},render(scene){const r=this;return r._call=function(){r._render(scene)},r._call(),r._call=null,r},_render(){},renderAsync(scene){const r=this.render(scene);return this._ready?this._ready.then((()=>r)):Promise.resolve(r)},_load(method,uri){var r=this,p=r._loader[method](uri);if(!r._ready){const call=r._call;r._ready=r._loader.ready().then((redraw=>{redraw&&call(),r._ready=null}))}return p},sanitizeURL(uri){return this._load("sanitizeURL",uri)},loadImage(uri){return this._load("loadImage",uri)}};const DragLeaveEvent="dragleave",MouseDownEvent="mousedown",MouseMoveEvent="mousemove",MouseOutEvent="mouseout",ClickEvent="click",TooltipShowEvent=MouseMoveEvent,TooltipHideEvent=MouseOutEvent,HrefEvent=ClickEvent;function CanvasHandler(loader,tooltip){Handler$1.call(this,loader,tooltip),this._down=null,this._touch=null,this._first=!0,this._events={}}function eventListenerCheck(handler,type){(type=>"touchstart"===type||"touchmove"===type||"touchend"===type?["touchstart","touchmove","touchend"]:[type])(type).forEach((_=>function addEventListener(handler,type){const canvas=handler.canvas();canvas&&!handler._events[type]&&(handler._events[type]=1,canvas.addEventListener(type,handler[type]?evt=>handler[type](evt):evt=>handler.fire(type,evt)))}(handler,_)))}function move(moveEvent,overEvent,outEvent){return function(evt){const a=this._active,p=this.pickEvent(evt);p===a||(a&&a.exit||this.fire(outEvent,evt),this._active=p,this.fire(overEvent,evt)),this.fire(moveEvent,evt)}}function inactive(type){return function(evt){this.fire(type,evt),this._active=null}}inherits(CanvasHandler,Handler$1,{initialize(el,origin,obj){return this._canvas=el&&domFind(el,"canvas"),[ClickEvent,MouseDownEvent,MouseMoveEvent,MouseOutEvent,DragLeaveEvent].forEach((type=>eventListenerCheck(this,type))),Handler$1.prototype.initialize.call(this,el,origin,obj)},canvas(){return this._canvas},context(){return this._canvas.getContext("2d")},events:["keydown","keypress","keyup","dragenter",DragLeaveEvent,"dragover",MouseDownEvent,"mouseup",MouseMoveEvent,MouseOutEvent,"mouseover",ClickEvent,"dblclick","wheel","mousewheel","touchstart","touchmove","touchend"],DOMMouseScroll(evt){this.fire("mousewheel",evt)},mousemove:move(MouseMoveEvent,"mouseover",MouseOutEvent),dragover:move("dragover","dragenter",DragLeaveEvent),mouseout:inactive(MouseOutEvent),dragleave:inactive(DragLeaveEvent),mousedown(evt){this._down=this._active,this.fire(MouseDownEvent,evt)},click(evt){this._down===this._active&&(this.fire(ClickEvent,evt),this._down=null)},touchstart(evt){this._touch=this.pickEvent(evt.changedTouches[0]),this._first&&(this._active=this._touch,this._first=!1),this.fire("touchstart",evt,!0)},touchmove(evt){this.fire("touchmove",evt,!0)},touchend(evt){this.fire("touchend",evt,!0),this._touch=null},fire(type,evt,touch){const a=touch?this._touch:this._active,h=this._handlers[type];if(evt.vegaType=type,type===HrefEvent&&a&&a.href?this.handleHref(evt,a,a.href):type!==TooltipShowEvent&&type!==TooltipHideEvent||this.handleTooltip(evt,a,type!==TooltipHideEvent),h)for(let i=0,len=h.length;i=0&&h.splice(i,1),this},pickEvent(evt){const p=point$2(evt,this._canvas),o=this._origin;return this.pick(this._scene,p[0],p[1],p[0]-o[0],p[1]-o[1])},pick(scene,x,y,gx,gy){const g=this.context();return Marks[scene.marktype].pick.call(this,g,scene,x,y,gx,gy)}});var pixelRatio=function devicePixelRatio(){return"undefined"!=typeof window&&window.devicePixelRatio||1}();function CanvasRenderer(loader){Renderer.call(this,loader),this._options={},this._redraw=!1,this._dirty=new Bounds,this._tempb=new Bounds}const base$1=Renderer.prototype;function SVGHandler(loader,tooltip){Handler$1.call(this,loader,tooltip);const h=this;h._hrefHandler=listener(h,((evt,item)=>{item&&item.href&&h.handleHref(evt,item,item.href)})),h._tooltipHandler=listener(h,((evt,item)=>{h.handleTooltip(evt,item,evt.type!==TooltipHideEvent)}))}inherits(CanvasRenderer,Renderer,{initialize(el,width,height,origin,scaleFactor,options){return this._options=options||{},this._canvas=this._options.externalContext?null:domCanvas(1,1,this._options.type),el&&this._canvas&&(domClear(el,0).appendChild(this._canvas),this._canvas.setAttribute("class","marks")),base$1.initialize.call(this,el,width,height,origin,scaleFactor)},resize(width,height,origin,scaleFactor){if(base$1.resize.call(this,width,height,origin,scaleFactor),this._canvas)!function resize(canvas,width,height,origin,scaleFactor,opt){const inDOM="undefined"!=typeof HTMLElement&&canvas instanceof HTMLElement&&null!=canvas.parentNode,context=canvas.getContext("2d"),ratio=inDOM?pixelRatio:scaleFactor;canvas.width=width*ratio,canvas.height=height*ratio;for(const key in opt)context[key]=opt[key];return inDOM&&1!==ratio&&(canvas.style.width=width+"px",canvas.style.height=height+"px"),context.pixelRatio=ratio,context.setTransform(ratio,0,0,ratio,ratio*origin[0],ratio*origin[1]),canvas}(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context);else{const ctx=this._options.externalContext;ctx||error("CanvasRenderer is missing a valid canvas or context"),ctx.scale(this._scale,this._scale),ctx.translate(this._origin[0],this._origin[1])}return this._redraw=!0,this},canvas(){return this._canvas},context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)},dirty(item){const b=this._tempb.clear().union(item.bounds);let g=item.mark.group;for(;g;)b.translate(g.x||0,g.y||0),g=g.mark.group;this._dirty.union(b)},_render(scene){const g=this.context(),o=this._origin,w=this._width,h=this._height,db=this._dirty,vb=((origin,width,height)=>(new Bounds).set(0,0,width,height).translate(-origin[0],-origin[1]))(o,w,h);g.save();const b=this._redraw||db.empty()?(this._redraw=!1,vb.expand(1)):function clipToBounds(g,b,origin){return b.expand(1).round(),g.pixelRatio%1&&b.scale(g.pixelRatio).round().scale(1/g.pixelRatio),b.translate(-origin[0]%1,-origin[1]%1),g.beginPath(),g.rect(b.x1,b.y1,b.width(),b.height()),g.clip(),b}(g,vb.intersect(db),o);return this.clear(-o[0],-o[1],w,h),this.draw(g,scene,b),g.restore(),db.clear(),this},draw(ctx,scene,bounds){const mark=Marks[scene.marktype];scene.clip&&function clip$2(context,scene){var clip=scene.clip;context.save(),isFunction$1(clip)?(context.beginPath(),clip(context),context.clip()):clipGroup(context,scene.group)}(ctx,scene),mark.draw.call(this,ctx,scene,bounds),scene.clip&&ctx.restore()},clear(x,y,w,h){const opt=this._options,g=this.context();"pdf"===opt.type||opt.externalContext||g.clearRect(x,y,w,h),null!=this._bgcolor&&(g.fillStyle=this._bgcolor,g.fillRect(x,y,w,h))}});const listener=(context,handler)=>evt=>{let item=evt.target.__data__;item=Array.isArray(item)?item[0]:item,evt.vegaType=evt.type,handler.call(context._obj,evt,item)};inherits(SVGHandler,Handler$1,{initialize(el,origin,obj){let svg=this._svg;return svg&&(svg.removeEventListener(HrefEvent,this._hrefHandler),svg.removeEventListener(TooltipShowEvent,this._tooltipHandler),svg.removeEventListener(TooltipHideEvent,this._tooltipHandler)),this._svg=svg=el&&domFind(el,"svg"),svg&&(svg.addEventListener(HrefEvent,this._hrefHandler),svg.addEventListener(TooltipShowEvent,this._tooltipHandler),svg.addEventListener(TooltipHideEvent,this._tooltipHandler)),Handler$1.prototype.initialize.call(this,el,origin,obj)},canvas(){return this._svg},on(type,handler){const name=this.eventName(type),h=this._handlers;if(this._handlerIndex(h[name],type,handler)<0){const x={type,handler,listener:listener(this,handler)};(h[name]||(h[name]=[])).push(x),this._svg&&this._svg.addEventListener(name,x.listener)}return this},off(type,handler){const name=this.eventName(type),h=this._handlers[name],i=this._handlerIndex(h,type,handler);return i>=0&&(this._svg&&this._svg.removeEventListener(name,h[i].listener),h.splice(i,1)),this}});const GRAPHICS_OBJECT="graphics-object",GRAPHICS_SYMBOL="graphics-symbol",bundle=(role,roledesc,label)=>({role,"aria-roledescription":roledesc,"aria-label":label||void 0}),AriaIgnore=toSet(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]),AriaGuides={axis:{desc:"axis",caption:function axisCaption(item){const datum=item.datum,orient=item.orient,title=datum.title?extractTitle(item):null,ctx=item.context,scale=ctx.scales[datum.scale].value,locale=ctx.dataflow.locale(),type=scale.type,xy="left"===orient||"right"===orient?"Y":"X";return`${xy}-axis`+(title?` titled '${title}'`:"")+` for a ${isDiscrete$2(type)?"discrete":type} scale`+` with ${domainCaption(locale,scale,item)}`}},legend:{desc:"legend",caption:function legendCaption(item){const datum=item.datum,title=datum.title?extractTitle(item):null,type=`${datum.type||""} legend`.trim(),scales=datum.scales,props=Object.keys(scales),ctx=item.context,scale=ctx.scales[scales[props[0]]].value,locale=ctx.dataflow.locale();return function capitalize(s){return s.length?s[0].toUpperCase()+s.slice(1):s}(type)+(title?` titled '${title}'`:"")+` for ${function channelCaption(props){return props=props.map((p=>p+("fill"===p||"stroke"===p?" color":""))),props.length<2?props[0]:props.slice(0,-1).join(", ")+" and "+peek$1(props)}(props)}`+` with ${domainCaption(locale,scale,item)}`}},"title-text":{desc:"title",caption:item=>`Title text '${titleCaption(item)}'`},"title-subtitle":{desc:"subtitle",caption:item=>`Subtitle text '${titleCaption(item)}'`}},AriaEncode={ariaRole:"role",ariaRoleDescription:"aria-roledescription",description:"aria-label"};function ariaItemAttributes(emit,item){const hide=!1===item.aria;if(emit("aria-hidden",hide||void 0),hide||null==item.description)for(const prop in AriaEncode)emit(AriaEncode[prop],void 0);else{const type=item.mark.marktype;emit("aria-label",item.description),emit("role",item.ariaRole||("group"===type?GRAPHICS_OBJECT:GRAPHICS_SYMBOL)),emit("aria-roledescription",item.ariaRoleDescription||`${type} mark`)}}function ariaMarkAttributes(mark){return!1===mark.aria?{"aria-hidden":!0}:AriaIgnore[mark.role]?null:AriaGuides[mark.role]?function ariaGuide(mark,opt){try{const item=mark.items[0],caption=opt.caption||(()=>"");return bundle(opt.role||GRAPHICS_SYMBOL,opt.desc,item.description||caption(item))}catch(err){return null}}(mark,AriaGuides[mark.role]):function ariaMark(mark){const type=mark.marktype,recurse="group"===type||"text"===type||mark.items.some((_=>null!=_.description&&!1!==_.aria));return bundle(recurse?GRAPHICS_OBJECT:GRAPHICS_SYMBOL,`${type} mark container`,mark.description)}(mark)}function titleCaption(item){return array$5(item.text).join(" ")}function extractTitle(item){try{return array$5(peek$1(item.items).items[0].text).join(" ")}catch(err){return null}}const innerText=val=>(val+"").replace(/&/g,"&").replace(//g,">");function markup(){let buf="",outer="",inner="";const stack=[],clear=()=>outer=inner="",attr=(name,value)=>{var val;return null!=value&&(outer+=` ${name}="${val=value,innerText(val).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ")}"`),m},m={open(tag){(tag=>{outer&&(buf+=`${outer}>${inner}`,clear()),stack.push(tag)})(tag),outer="<"+tag;for(var _len=arguments.length,attrs=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)attrs[_key-1]=arguments[_key];for(const set of attrs)for(const key in set)attr(key,set[key]);return m},close(){const tag=stack.pop();return buf+=outer?outer+(inner?`>${inner}`:"/>"):``,clear(),m},attr,text:t=>(inner+=innerText(t),m),toString:()=>buf};return m}const serializeXML=node=>_serialize(markup(),node)+"";function _serialize(m,node){if(m.open(node.tagName),node.hasAttributes()){const attrs=node.attributes,n=attrs.length;for(let i=0;i1&&node.previousSibling!=sibling}(node,sibling))&&el.insertBefore(node,sibling?sibling.nextSibling:el.firstChild),node}inherits(SVGRenderer,Renderer,{initialize(el,width,height,origin,scaleFactor){return this._defs={},this._clearDefs(),el&&(this._svg=domChild(el,0,"svg",svgns),this._svg.setAttributeNS(xmlns,"xmlns",svgns),this._svg.setAttributeNS(xmlns,"xmlns:xlink",metadata["xmlns:xlink"]),this._svg.setAttribute("version",metadata.version),this._svg.setAttribute("class","marks"),domClear(el,1),this._root=domChild(this._svg,0,"g",svgns),setAttributes(this._root,rootAttributes),domClear(this._svg,1)),this.background(this._bgcolor),base.initialize.call(this,el,width,height,origin,scaleFactor)},background(bgcolor){return arguments.length&&this._svg&&this._svg.style.setProperty("background-color",bgcolor),base.background.apply(this,arguments)},resize(width,height,origin,scaleFactor){return base.resize.call(this,width,height,origin,scaleFactor),this._svg&&(setAttributes(this._svg,{width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}),this._root.setAttribute("transform",`translate(${this._origin})`)),this._dirty=[],this},canvas(){return this._svg},svg(){const svg=this._svg,bg=this._bgcolor;if(!svg)return null;let node;bg&&(svg.removeAttribute("style"),node=domChild(svg,0,"rect",svgns),setAttributes(node,{width:this._width,height:this._height,fill:bg}));const text=serializeXML(svg);return bg&&(svg.removeChild(node),this._svg.style.setProperty("background-color",bg)),text},_render(scene){return this._dirtyCheck()&&(this._dirtyAll&&this._clearDefs(),this.mark(this._root,scene),domClear(this._root,1)),this.defs(),this._dirty=[],++this._dirtyID,this},dirty(item){item.dirty!==this._dirtyID&&(item.dirty=this._dirtyID,this._dirty.push(item))},isDirty(item){return this._dirtyAll||!item._svg||!item._svg.ownerSVGElement||item.dirty===this._dirtyID},_dirtyCheck(){this._dirtyAll=!0;const items=this._dirty;if(!items.length||!this._dirtyID)return!0;const id=++this._dirtyID;let item,mark,type,mdef,i,n,o;for(i=0,n=items.length;i{i.dirty=id}))),mark.zdirty||(item.exit?(mdef.nested&&mark.items.length?(o=mark.items[0],o._svg&&this._update(mdef,o._svg,o)):item._svg&&(o=item._svg.parentNode,o&&o.removeChild(item._svg)),item._svg=null):(item=mdef.nested?mark.items[0]:item,item._update!==id&&(item._svg&&item._svg.ownerSVGElement?this._update(mdef,item._svg,item):(this._dirtyAll=!1,dirtyParents(item,id)),item._update=id)));return!this._dirtyAll},mark(el,scene,prev){if(!this.isDirty(scene))return scene._svg;const svg=this._svg,mdef=Marks[scene.marktype],events=!1===scene.interactive?"none":null,isGroup="g"===mdef.tag,parent=bind$1(scene,el,prev,"g",svg);parent.setAttribute("class",cssClass(scene));const aria=ariaMarkAttributes(scene);for(const key in aria)setAttribute(parent,key,aria[key]);isGroup||setAttribute(parent,"pointer-events",events),setAttribute(parent,"clip-path",scene.clip?clip$1$1(this,scene,scene.group):null);let sibling=null,i=0;const process=item=>{const dirty=this.isDirty(item),node=bind$1(item,parent,sibling,mdef.tag,svg);dirty&&(this._update(mdef,node,item),isGroup&&function recurse(renderer,el,group){el=el.lastChild.previousSibling;let prev,idx=0;visit(group,(item=>{prev=renderer.mark(el,item,prev),++idx})),domClear(el,1+idx)}(this,node,item)),sibling=node,++i};return mdef.nested?scene.items.length&&process(scene.items[0]):visit(scene,process),domClear(parent,i),parent},_update(mdef,el,item){element$1=el,values$2=el.__values__,ariaItemAttributes(emit,item),mdef.attr(emit,item,this);const extra=mark_extras[mdef.type];extra&&extra.call(this,mdef,el,item),element$1&&this.style(element$1,item)},style(el,item){if(null!=item){for(const prop in stylesAttr){let value="font"===prop?fontFamily(item):item[prop];if(value===values$2[prop])continue;const name=stylesAttr[prop];null==value?el.removeAttribute(name):(isGradient(value)&&(value=gradientRef(value,this._defs.gradient,href())),el.setAttribute(name,value+"")),values$2[prop]=value}for(const prop in stylesCss)setStyle(el,stylesCss[prop],item[prop])}},defs(){const svg=this._svg,defs=this._defs;let el=defs.el,index=0;for(const id in defs.gradient)el||(defs.el=el=domChild(svg,1,"defs",svgns)),index=updateGradient(el,defs.gradient[id],index);for(const id in defs.clipping)el||(defs.el=el=domChild(svg,1,"defs",svgns)),index=updateClipping(el,defs.clipping[id],index);el&&(0===index?(svg.removeChild(el),defs.el=null):domClear(el,index))},_clearDefs(){const def=this._defs;def.gradient={},def.clipping={}}});let element$1=null,values$2=null;const mark_extras={group(mdef,el,item){const fg=element$1=el.childNodes[2];values$2=fg.__values__,mdef.foreground(emit,item,this),values$2=el.__values__,element$1=el.childNodes[1],mdef.content(emit,item,this);const bg=element$1=el.childNodes[0];mdef.background(emit,item,this);const value=!1===item.mark.interactive?"none":null;if(value!==values$2.events&&(setAttribute(fg,"pointer-events",value),setAttribute(bg,"pointer-events",value),values$2.events=value),item.strokeForeground&&item.stroke){const fill=item.fill;setAttribute(fg,"display",null),this.style(bg,item),setAttribute(bg,"stroke",null),fill&&(item.fill=null),values$2=fg.__values__,this.style(fg,item),fill&&(item.fill=fill),element$1=null}else setAttribute(fg,"display","none")},image(mdef,el,item){!1===item.smooth?(setStyle(el,"image-rendering","optimizeSpeed"),setStyle(el,"image-rendering","pixelated")):setStyle(el,"image-rendering",null)},text(mdef,el,item){const tl=textLines(item);let key,value,doc,lh;isArray(tl)?(value=tl.map((_=>textValue(item,_))),key=value.join("\n"),key!==values$2.text&&(domClear(el,0),doc=el.ownerDocument,lh=lineHeight(item),value.forEach(((t,i)=>{const ts=domCreate(doc,"tspan",svgns);ts.__data__=item,ts.textContent=t,i&&(ts.setAttribute("x",0),ts.setAttribute("dy",lh)),el.appendChild(ts)})),values$2.text=key)):(value=textValue(item,tl),value!==values$2.text&&(el.textContent=value,values$2.text=value)),setAttribute(el,"font-family",fontFamily(item)),setAttribute(el,"font-size",fontSize(item)+"px"),setAttribute(el,"font-style",item.fontStyle),setAttribute(el,"font-variant",item.fontVariant),setAttribute(el,"font-weight",item.fontWeight)}};function emit(name,value,ns){value!==values$2[name]&&(ns?function setAttributeNS(el,name,value,ns){null!=value?el.setAttributeNS(ns,name,value):el.removeAttributeNS(ns,name)}(element$1,name,value,ns):setAttribute(element$1,name,value),values$2[name]=value)}function setStyle(el,name,value){value!==values$2[name]&&(null==value?el.style.removeProperty(name):el.style.setProperty(name,value+""),values$2[name]=value)}function setAttributes(el,attrs){for(const key in attrs)setAttribute(el,key,attrs[key])}function setAttribute(el,name,value){null!=value?el.setAttribute(name,value):el.removeAttribute(name)}function href(){let loc;return"undefined"==typeof window?"":(loc=window.location).hash?loc.href.slice(0,-loc.hash.length):loc.href}function SVGStringRenderer(loader){Renderer.call(this,loader),this._text=null,this._defs={gradient:{},clipping:{}}}inherits(SVGStringRenderer,Renderer,{svg(){return this._text},_render(scene){const m=markup();m.open("svg",extend$1({},metadata,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const bg=this._bgcolor;return bg&&"transparent"!==bg&&"none"!==bg&&m.open("rect",{width:this._width,height:this._height,fill:bg}).close(),m.open("g",rootAttributes,{transform:"translate("+this._origin+")"}),this.mark(m,scene),m.close(),this.defs(m),this._text=m.close()+"",this},mark(m,scene){const mdef=Marks[scene.marktype],tag=mdef.tag,attrList=[ariaItemAttributes,mdef.attr];m.open("g",{class:cssClass(scene),"clip-path":scene.clip?clip$1$1(this,scene,scene.group):null},ariaMarkAttributes(scene),{"pointer-events":"g"!==tag&&!1===scene.interactive?"none":null});const process=item=>{const href=this.href(item);if(href&&m.open("a",href),m.open(tag,this.attr(scene,item,attrList,"g"!==tag?tag:null)),"text"===tag){const tl=textLines(item);if(isArray(tl)){const attrs={x:0,dy:lineHeight(item)};for(let i=0;ithis.mark(m,scene))),m.close(),fore&&stroke?(fill&&(item.fill=null),item.stroke=stroke,m.open("path",this.attr(scene,item,mdef.foreground,"bgrect")).close(),fill&&(item.fill=fill)):m.open("path",this.attr(scene,item,mdef.foreground,"bgfore")).close()}m.close(),href&&m.close()};return mdef.nested?scene.items&&scene.items.length&&process(scene.items[0]):visit(scene,process),m.close()},href(item){const href=item.href;let attr;if(href){if(attr=this._hrefs&&this._hrefs[href])return attr;this.sanitizeURL(href).then((attr=>{attr["xlink:href"]=attr.href,attr.href=null,(this._hrefs||(this._hrefs={}))[href]=attr}))}return null},attr(scene,item,attrs,tag){const object={},emit=(name,value,ns,prefixed)=>{object[prefixed||name]=value};return Array.isArray(attrs)?attrs.forEach((fn=>fn(emit,item,this))):attrs(emit,item,this),tag&&function style(s,item,scene,tag,defs){let styleList;if(null==item)return s;"bgrect"===tag&&!1===scene.interactive&&(s["pointer-events"]="none");if("bgfore"===tag&&(!1===scene.interactive&&(s["pointer-events"]="none"),s.display="none",null!==item.fill))return s;"image"===tag&&!1===item.smooth&&(styleList=["image-rendering: optimizeSpeed;","image-rendering: pixelated;"]);"text"===tag&&(s["font-family"]=fontFamily(item),s["font-size"]=fontSize(item)+"px",s["font-style"]=item.fontStyle,s["font-variant"]=item.fontVariant,s["font-weight"]=item.fontWeight);for(const prop in stylesAttr){let value=item[prop];const name=stylesAttr[prop];("transparent"!==value||"fill"!==name&&"stroke"!==name)&&null!=value&&(isGradient(value)&&(value=gradientRef(value,defs.gradient,"")),s[name]=value)}for(const prop in stylesCss){const value=item[prop];null!=value&&(styleList=styleList||[],styleList.push(`${stylesCss[prop]}: ${value};`))}styleList&&(s.style=styleList.join(" "));return s}(object,item,scene,tag,this._defs),object},defs(m){const gradient=this._defs.gradient,clipping=this._defs.clipping;if(0!==Object.keys(gradient).length+Object.keys(clipping).length){m.open("defs");for(const id in gradient){const def=gradient[id],stops=def.stops;"radial"===def.gradient?(m.open("pattern",{id:patternPrefix+id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),m.open("rect",{width:"1",height:"1",fill:"url(#"+id+")"}).close(),m.close(),m.open("radialGradient",{id,fx:def.x1,fy:def.y1,fr:def.r1,cx:def.x2,cy:def.y2,r:def.r2})):m.open("linearGradient",{id,x1:def.x1,x2:def.x2,y1:def.y1,y2:def.y2});for(let i=0;i1?(modules[name]=_,this):modules[name]}function intersect$2(scene,bounds,filter){const hits=[],box=(new Bounds).union(bounds),type=scene.marktype;return type?intersectMark(scene,box,filter,hits):"group"===type?intersectGroup(scene,box,filter,hits):error("Intersect scene must be mark node or group item.")}function intersectMark(mark,box,filter,hits){if(function visitMark(mark,box,filter){return mark.bounds&&box.intersects(mark.bounds)&&("group"===mark.marktype||!1!==mark.interactive&&(!filter||filter(mark)))}(mark,box,filter)){const items=mark.items,type=mark.marktype,n=items.length;let i=0;if("group"===type)for(;i=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(!sceneEqual(a[key=ka[i]],b[key],key))return!1;return typeof a==typeof b}(a,b):a==b)}function pathEqual(a,b){return sceneEqual(parse$3(a),parse$3(b))}const Top$1="top",Left$1="left",Right$1="right",Bottom$1="bottom",TopLeft="top-left",TopRight="top-right",BottomLeft="bottom-left",BottomRight="bottom-right",Start$1="start",Middle$1="middle",End$1="end",X$1="x",Y$1="y",Group="group",AxisRole$1="axis",TitleRole$1="title",LegendRole$1="legend",RowHeader="row-header",RowFooter="row-footer",RowTitle="row-title",ColHeader="column-header",ColFooter="column-footer",ColTitle="column-title",Padding$1="padding",Symbols$1="symbol",Fit="fit",FitX="fit-x",FitY="fit-y",Pad="pad",None="none",All="all",Each="each",Flush="flush",Column="column",Row="row";function Bound$1(params){Transform.call(this,null,params)}function boundItem(item,bound,opt){return bound(item.bounds.clear(),item,opt)}inherits(Bound$1,Transform,{transform(_,pulse){const view=pulse.dataflow,mark=_.mark,type=mark.marktype,entry=Marks[type],bound=entry.bound;let rebound,markBounds=mark.bounds;if(entry.nested)mark.items.length&&view.dirty(mark.items[0]),markBounds=boundItem(mark,bound),mark.items.forEach((item=>{item.bounds.clear().union(markBounds)}));else if(type===Group||_.modified())switch(pulse.visit(pulse.MOD,(item=>view.dirty(item))),markBounds.clear(),mark.items.forEach((item=>markBounds.union(boundItem(item,bound)))),mark.role){case AxisRole$1:case LegendRole$1:case TitleRole$1:pulse.reflow()}else rebound=pulse.changed(pulse.REM),pulse.visit(pulse.ADD,(item=>{markBounds.union(boundItem(item,bound))})),pulse.visit(pulse.MOD,(item=>{rebound=rebound||markBounds.alignsWith(item.bounds),view.dirty(item),markBounds.union(boundItem(item,bound))})),rebound&&(markBounds.clear(),mark.items.forEach((item=>markBounds.union(item.bounds))));return boundClip(mark),pulse.modifies("bounds")}});function Identifier$1(params){Transform.call(this,0,params)}function Mark$2(params){Transform.call(this,null,params)}function Overlap$1(params){Transform.call(this,null,params)}Identifier$1.Definition={type:"Identifier",metadata:{modifies:!0},params:[{name:"as",type:"string",required:!0}]},inherits(Identifier$1,Transform,{transform(_,pulse){const counter=function getCounter(view){return view._signals[":vega_identifier:"]||(view._signals[":vega_identifier:"]=view.add(0))}(pulse.dataflow),as=_.as;let id=counter.value;return pulse.visit(pulse.ADD,(t=>t[as]=t[as]||++id)),counter.set(this.value=id),pulse}}),inherits(Mark$2,Transform,{transform(_,pulse){let mark=this.value;mark||(mark=pulse.dataflow.scenegraph().mark(_.markdef,function lookup$1$1(_){const g=_.groups,p=_.parent;return g&&1===g.size?g.get(Object.keys(g.object)[0]):g&&p?g.lookup(p):null}(_),_.index),mark.group.context=_.context,_.context.group||(_.context.group=mark.group),mark.source=this.source,mark.clip=_.clip,mark.interactive=_.interactive,this.value=mark);const Init=mark.marktype===Group?GroupItem:Item;return pulse.visit(pulse.ADD,(item=>Init.call(item,mark))),(_.modified("clip")||_.modified("interactive"))&&(mark.clip=_.clip,mark.interactive=!!_.interactive,mark.zdirty=!0,pulse.reflow()),mark.items=pulse.source,pulse}});const methods={parity:items=>items.filter(((item,i)=>i%2?item.opacity=0:1)),greedy:(items,sep)=>{let a;return items.filter(((b,i)=>i&&intersect$1(a.bounds,b.bounds,sep)?b.opacity=0:(a=b,1)))}},intersect$1=(a,b,sep)=>sep>Math.max(b.x1-a.x2,a.x1-b.x2,b.y1-a.y2,a.y1-b.y2),hasOverlap=(items,pad)=>{for(var b,i=1,n=items.length,a=items[0].bounds;i{const b=item.bounds;return b.width()>1&&b.height()>1},reset$1=source=>(source.forEach((item=>item.opacity=1)),source),reflow=(pulse,_)=>pulse.reflow(_.modified()).modifies("opacity");function Render$1(params){Transform.call(this,null,params)}inherits(Overlap$1,Transform,{transform(_,pulse){const reduce=methods[_.method]||methods.parity,sep=_.separation||0;let items,test,source=pulse.materialize(pulse.SOURCE).source;if(!source||!source.length)return;if(!_.method)return _.modified("method")&&(reset$1(source),pulse=reflow(pulse,_)),pulse;if(source=source.filter(hasBounds),!source.length)return;if(_.sort&&(source=source.slice().sort(_.sort)),items=reset$1(source),pulse=reflow(pulse,_),items.length>=3&&hasOverlap(items,sep)){do{items=reduce(items,sep)}while(items.length>=3&&hasOverlap(items,sep));items.length<3&&!peek$1(source).opacity&&(items.length>1&&(peek$1(items).opacity=0),peek$1(source).opacity=1)}_.boundScale&&_.boundTolerance>=0&&(test=((scale,orient,tolerance)=>{var range=scale.range(),b=new Bounds;return orient===Top$1||orient===Bottom$1?b.set(range[0],-1/0,range[1],1/0):b.set(-1/0,range[0],1/0,range[1]),b.expand(tolerance||1),item=>b.encloses(item.bounds)})(_.boundScale,_.boundOrient,+_.boundTolerance),source.forEach((item=>{test(item)||(item.opacity=0)})));const bounds=items[0].mark.bounds.clear();return source.forEach((item=>{item.opacity&&bounds.union(item.bounds)})),pulse}}),inherits(Render$1,Transform,{transform(_,pulse){const view=pulse.dataflow;if(pulse.visit(pulse.ALL,(item=>view.dirty(item))),pulse.fields&&pulse.fields.zindex){const item=pulse.source&&pulse.source[0];item&&(item.mark.zdirty=!0)}}});const tempBounds=new Bounds;function set$4(item,property,value){return item[property]===value?0:(item[property]=value,1)}function isYAxis(mark){var orient=mark.items[0].orient;return orient===Left$1||orient===Right$1}function axisLayout(view,axis,width,height){var i,s,item=axis.items[0],datum=item.datum,delta=null!=item.translate?item.translate:.5,orient=item.orient,indices=function axisIndices(datum){let index=+datum.grid;return[datum.ticks?index++:-1,datum.labels?index++:-1,index+ +datum.domain]}(datum),range=item.range,offset=item.offset,position=item.position,minExtent=item.minExtent,maxExtent=item.maxExtent,title=datum.title&&item.items[indices[2]].items[0],titlePadding=item.titlePadding,bounds=item.bounds,dl=title&&multiLineOffset(title),x=0,y=0;switch(tempBounds.clear().union(bounds),bounds.clear(),(i=indices[0])>-1&&bounds.union(item.items[i].bounds),(i=indices[1])>-1&&bounds.union(item.items[i].bounds),orient){case Top$1:x=position||0,y=-offset,s=Math.max(minExtent,Math.min(maxExtent,-bounds.y1)),bounds.add(0,-s).add(range,0),title&&axisTitleLayout(view,title,s,titlePadding,dl,0,-1,bounds);break;case Left$1:x=-offset,y=position||0,s=Math.max(minExtent,Math.min(maxExtent,-bounds.x1)),bounds.add(-s,0).add(0,range),title&&axisTitleLayout(view,title,s,titlePadding,dl,1,-1,bounds);break;case Right$1:x=width+offset,y=position||0,s=Math.max(minExtent,Math.min(maxExtent,bounds.x2)),bounds.add(0,0).add(s,range),title&&axisTitleLayout(view,title,s,titlePadding,dl,1,1,bounds);break;case Bottom$1:x=position||0,y=height+offset,s=Math.max(minExtent,Math.min(maxExtent,bounds.y2)),bounds.add(0,0).add(range,s),title&&axisTitleLayout(view,title,s,titlePadding,0,0,1,bounds);break;default:x=item.x,y=item.y}return boundStroke(bounds.translate(x,y),item),set$4(item,"x",x+delta)|set$4(item,"y",y+delta)&&(item.bounds=tempBounds,view.dirty(item),item.bounds=bounds,view.dirty(item)),item.mark.bounds.clear().union(bounds)}function axisTitleLayout(view,title,offset,pad,dl,isYAxis,sign,bounds){const b=title.bounds;if(title.auto){const v=sign*(offset+dl+pad);let dx=0,dy=0;view.dirty(title),isYAxis?dx=(title.x||0)-(title.x=v):dy=(title.y||0)-(title.y=v),title.mark.bounds.clear().union(b.translate(-dx,-dy)),view.dirty(title)}bounds.union(b)}const min=(a,b)=>Math.floor(Math.min(a,b)),max=(a,b)=>Math.ceil(Math.max(a,b));function bboxFlush(item){return(new Bounds).set(0,0,item.width||0,item.height||0)}function bboxFull(item){const b=item.bounds.clone();return b.empty()?b.set(0,0,0,0):b.translate(-(item.x||0),-(item.y||0))}function get$2(opt,key,d){const v=isObject(opt)?opt[key]:opt;return null!=v?v:void 0!==d?d:0}function offsetValue$1(v){return v<0?Math.ceil(-v):0}function gridLayout(view,groups,opt){var m,i,c,r,b,g,px,py,x,y,offset,dirty=!opt.nodirty,bbox=opt.bounds===Flush?bboxFlush:bboxFull,bounds=tempBounds.set(0,0,0,0),alignCol=get$2(opt.align,Column),alignRow=get$2(opt.align,Row),padCol=get$2(opt.padding,Column),padRow=get$2(opt.padding,Row),ncols=opt.columns||groups.length,nrows=ncols<=0?1:Math.ceil(groups.length/ncols),n=groups.length,xOffset=Array(n),xExtent=Array(ncols),xMax=0,yOffset=Array(n),yExtent=Array(nrows),yMax=0,dx=Array(n),dy=Array(n),boxes=Array(n);for(i=0;i1)for(i=0;i0&&(dx[i]+=x/2);if(alignRow&&get$2(opt.center,Row)&&1!==ncols)for(i=0;i0&&(dy[i]+=y/2);for(i=0;ilimit&&(view.warn("Grid headers exceed limit: "+limit),headers=headers.slice(0,limit)),init+=offset,j=0,m=headers.length;j=0&&null==(g=groups[k]);k-=back);isX?(x=null==band?g.x:Math.round(g.bounds.x1+band*g.bounds.width()),y=init):(x=init,y=null==band?g.y:Math.round(g.bounds.y1+band*g.bounds.height())),b.union(h.bounds.translate(x-(h.x||0),y-(h.y||0))),h.x=x,h.y=y,view.dirty(h),edge=agg(edge,b[bf])}return edge}function layoutTitle(view,g,offset,isX,bounds,band){if(g){view.dirty(g);var x=offset,y=offset;isX?x=Math.round(bounds.x1+band*bounds.width()):y=Math.round(bounds.y1+band*bounds.height()),g.bounds.translate(x-(g.x||0),y-(g.y||0)),g.mark.bounds.clear().union(g.bounds),g.x=x,g.y=y,view.dirty(g)}}function legendParams(g,orient,config,xb,yb,w,h){const _=function lookup$3(config,orient){const opt=config[orient]||{};return(key,d)=>null!=opt[key]?opt[key]:null!=config[key]?config[key]:d}(config,orient),offset=function offsets(legends,value){let max=-1/0;return legends.forEach((item=>{null!=item.offset&&(max=Math.max(max,item.offset))})),max>-1/0?max:value}(g,_("offset",0)),anchor=_("anchor",Start$1),mult=anchor===End$1?1:anchor===Middle$1?.5:0,p={align:Each,bounds:_("bounds",Flush),columns:"vertical"===_("direction")?1:g.length,padding:_("margin",8),center:_("center"),nodirty:!0};switch(orient){case Left$1:p.anchor={x:Math.floor(xb.x1)-offset,column:End$1,y:mult*(h||xb.height()+2*xb.y1),row:anchor};break;case Right$1:p.anchor={x:Math.ceil(xb.x2)+offset,y:mult*(h||xb.height()+2*xb.y1),row:anchor};break;case Top$1:p.anchor={y:Math.floor(yb.y1)-offset,row:End$1,x:mult*(w||yb.width()+2*yb.x1),column:anchor};break;case Bottom$1:p.anchor={y:Math.ceil(yb.y2)+offset,x:mult*(w||yb.width()+2*yb.x1),column:anchor};break;case TopLeft:p.anchor={x:offset,y:offset};break;case TopRight:p.anchor={x:w-offset,y:offset,column:End$1};break;case BottomLeft:p.anchor={x:offset,y:h-offset,row:End$1};break;case BottomRight:p.anchor={x:w-offset,y:h-offset,column:End$1,row:End$1}}return p}function legendLayout(view,legend){var w,h,item=legend.items[0],datum=item.datum,orient=item.orient,bounds=item.bounds,x=item.x,y=item.y;return item._bounds?item._bounds.clear().union(bounds):item._bounds=bounds.clone(),bounds.clear(),function legendGroupLayout(view,item,entry){var pad=item.padding,ex=pad-entry.x,ey=pad-entry.y;if(item.datum.title){var title=item.items[1].items[0],anchor=title.anchor,tpad=item.titlePadding||0,tx=pad-title.x,ty=pad-title.y;switch(title.orient){case Left$1:ex+=Math.ceil(title.bounds.width())+tpad;break;case Right$1:case Bottom$1:break;default:ey+=title.bounds.height()+tpad}switch((ex||ey)&&translate$1(view,entry,ex,ey),title.orient){case Left$1:ty+=legendTitleOffset(item,entry,title,anchor,1,1);break;case Right$1:tx+=legendTitleOffset(item,entry,title,End$1,0,0)+tpad,ty+=legendTitleOffset(item,entry,title,anchor,1,1);break;case Bottom$1:tx+=legendTitleOffset(item,entry,title,anchor,0,0),ty+=legendTitleOffset(item,entry,title,End$1,-1,0,1)+tpad;break;default:tx+=legendTitleOffset(item,entry,title,anchor,0,0)}(tx||ty)&&translate$1(view,title,tx,ty),(tx=Math.round(title.bounds.x1-pad))<0&&(translate$1(view,entry,-tx,0),translate$1(view,title,-tx,0))}else(ex||ey)&&translate$1(view,entry,ex,ey)}(view,item,item.items[0].items[0]),bounds=function legendBounds(item,b){return item.items.forEach((_=>b.union(_.bounds))),b.x1=item.padding,b.y1=item.padding,b}(item,bounds),w=2*item.padding,h=2*item.padding,bounds.empty()||(w=Math.ceil(bounds.width()+w),h=Math.ceil(bounds.height()+h)),datum.type===Symbols$1&&function legendEntryLayout(entries){const widths=entries.reduce(((w,g)=>(w[g.column]=Math.max(g.bounds.x2-g.x,w[g.column]||0),w)),{});entries.forEach((g=>{g.width=widths[g.column],g.height=g.bounds.y2-g.y}))}(item.items[0].items[0].items[0].items),orient!==None&&(item.x=x=0,item.y=y=0),item.width=w,item.height=h,boundStroke(bounds.set(x,y,x+w,y+h),item),item.mark.bounds.clear().union(bounds),item}function legendTitleOffset(item,entry,title,anchor,y,lr,noBar){const grad="symbol"!==item.datum.type,vgrad=title.datum.vgrad,s=(!grad||!lr&&vgrad||noBar?entry:entry.items[0]).bounds[y?"y2":"x2"]-item.padding,u=vgrad&&lr?s:0,v=vgrad&&lr?0:s,o=y<=0?0:multiLineOffset(title);return Math.round(anchor===Start$1?u:anchor===End$1?v-o:.5*(s-o))}function translate$1(view,item,dx,dy){item.x+=dx,item.y+=dy,item.bounds.translate(dx,dy),item.mark.bounds.translate(dx,dy),view.dirty(item)}function ViewLayout$1(params){Transform.call(this,null,params)}inherits(ViewLayout$1,Transform,{transform(_,pulse){const view=pulse.dataflow;return _.mark.items.forEach((group=>{_.layout&&trellisLayout(view,group,_.layout),function layoutGroup(view,group,_){var title,mark,orient,i,n,items=group.items,width=Math.max(0,group.width||0),height=Math.max(0,group.height||0),viewBounds=(new Bounds).set(0,0,width,height),xBounds=viewBounds.clone(),yBounds=viewBounds.clone(),legends=[];for(i=0,n=items.length;i{(orient=item.orient||Right$1)!==None&&(l[orient]||(l[orient]=[])).push(item)}));for(const orient in l){const g=l[orient];gridLayout(view,g,legendParams(g,orient,_.legends,xBounds,yBounds,width,height))}legends.forEach((item=>{const b=item.bounds;if(b.equals(item._bounds)||(item.bounds=item._bounds,view.dirty(item),item.bounds=b,view.dirty(item)),!_.autosize||_.autosize.type!==Fit&&_.autosize.type!==FitX&&_.autosize.type!==FitY)viewBounds.union(b);else switch(item.orient){case Left$1:case Right$1:viewBounds.add(b.x1,0).add(b.x2,0);break;case Top$1:case Bottom$1:viewBounds.add(0,b.y1).add(0,b.y2)}}))}viewBounds.union(xBounds).union(yBounds),title&&viewBounds.union(function titleLayout(view,mark,width,height,viewBounds){var pos,group=mark.items[0],frame=group.frame,orient=group.orient,anchor=group.anchor,offset=group.offset,padding=group.padding,title=group.items[0].items[0],subtitle=group.items[1]&&group.items[1].items[0],end=orient===Left$1||orient===Right$1?height:width,start=0,x=0,y=0,sx=0,sy=0;if(frame!==Group?orient===Left$1?(start=viewBounds.y2,end=viewBounds.y1):orient===Right$1?(start=viewBounds.y1,end=viewBounds.y2):(start=viewBounds.x1,end=viewBounds.x2):orient===Left$1&&(start=height,end=0),pos=anchor===Start$1?start:anchor===End$1?end:(start+end)/2,subtitle&&subtitle.text){switch(orient){case Top$1:case Bottom$1:sy=title.bounds.height()+padding;break;case Left$1:sx=title.bounds.width()+padding;break;case Right$1:sx=-title.bounds.width()-padding}tempBounds.clear().union(subtitle.bounds),tempBounds.translate(sx-(subtitle.x||0),sy-(subtitle.y||0)),set$4(subtitle,"x",sx)|set$4(subtitle,"y",sy)&&(view.dirty(subtitle),subtitle.bounds.clear().union(tempBounds),subtitle.mark.bounds.clear().union(tempBounds),view.dirty(subtitle)),tempBounds.clear().union(subtitle.bounds)}else tempBounds.clear();switch(tempBounds.union(title.bounds),orient){case Top$1:x=pos,y=viewBounds.y1-tempBounds.height()-offset;break;case Left$1:x=viewBounds.x1-tempBounds.width()-offset,y=pos;break;case Right$1:x=viewBounds.x2+tempBounds.width()+offset,y=pos;break;case Bottom$1:x=pos,y=viewBounds.y2+offset;break;default:x=group.x,y=group.y}return set$4(group,"x",x)|set$4(group,"y",y)&&(tempBounds.translate(x,y),view.dirty(group),group.bounds.clear().union(tempBounds),mark.bounds.clear().union(tempBounds),view.dirty(group)),group.bounds}(view,title,width,height,viewBounds));group.clip&&viewBounds.set(0,0,group.width||0,group.height||0);!function viewSizeLayout(view,group,viewBounds,_){const auto=_.autosize||{},type=auto.type;if(view._autosize<1||!type)return;let viewWidth=view._width,viewHeight=view._height,width=Math.max(0,group.width||0),left=Math.max(0,Math.ceil(-viewBounds.x1)),height=Math.max(0,group.height||0),top=Math.max(0,Math.ceil(-viewBounds.y1));const right=Math.max(0,Math.ceil(viewBounds.x2-width)),bottom=Math.max(0,Math.ceil(viewBounds.y2-height));if(auto.contains===Padding$1){const padding=view.padding();viewWidth-=padding.left+padding.right,viewHeight-=padding.top+padding.bottom}type===None?(left=0,top=0,width=viewWidth,height=viewHeight):type===Fit?(width=Math.max(0,viewWidth-left-right),height=Math.max(0,viewHeight-top-bottom)):type===FitX?(width=Math.max(0,viewWidth-left-right),viewHeight=height+top+bottom):type===FitY?(viewWidth=width+left+right,height=Math.max(0,viewHeight-top-bottom)):type===Pad&&(viewWidth=width+left+right,viewHeight=height+top+bottom);view._resizeView(viewWidth,viewHeight,width,height,[left,top],auto.resize)}(view,group,viewBounds,_)}(view,group,_)})),function shouldReflow(group){return group&&"legend-entry"!==group.mark.role}(_.mark.group)?pulse.reflow():pulse}});var vtx=Object.freeze({__proto__:null,bound:Bound$1,identifier:Identifier$1,mark:Mark$2,overlap:Overlap$1,render:Render$1,viewlayout:ViewLayout$1});function AxisTicks$1(params){Transform.call(this,null,params)}function DataJoin$1(params){Transform.call(this,null,params)}function defaultItemCreate(){return ingest$1({})}function Encode$1(params){Transform.call(this,null,params)}function LegendEntries$1(params){Transform.call(this,[],params)}inherits(AxisTicks$1,Transform,{transform(_,pulse){if(this.value&&!_.modified())return pulse.StopPropagation;var locale=pulse.dataflow.locale(),out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),ticks=this.value,scale=_.scale,count=tickCount(scale,null==_.count?_.values?_.values.length:10:_.count,_.minstep),format=_.format||tickFormat(locale,scale,count,_.formatSpecifier,_.formatType,!!_.values),values=_.values?validTicks(scale,_.values,count):tickValues(scale,count);return ticks&&(out.rem=ticks),ticks=values.map(((value,i)=>ingest$1({index:i/(values.length-1||1),value,label:format(value)}))),_.extra&&ticks.length&&ticks.push(ingest$1({index:-1,extra:{value:ticks[0].value},label:""})),out.source=ticks,out.add=ticks,this.value=ticks,out}}),inherits(DataJoin$1,Transform,{transform(_,pulse){var df=pulse.dataflow,out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),item=_.item||defaultItemCreate,key=_.key||tupleid,map=this.value;return isArray(out.encode)&&(out.encode=null),map&&(_.modified("key")||pulse.modified(key))&&error("DataJoin does not support modified key function or fields."),map||(pulse=pulse.addAll(),this.value=map=function newMap(key){const map=fastmap().test((t=>t.exit));return map.lookup=t=>map.get(key(t)),map}(key)),pulse.visit(pulse.ADD,(t=>{const k=key(t);let x=map.get(k);x?x.exit?(map.empty--,out.add.push(x)):out.mod.push(x):(x=item(t),map.set(k,x),out.add.push(x)),x.datum=t,x.exit=!1})),pulse.visit(pulse.MOD,(t=>{const k=key(t),x=map.get(k);x&&(x.datum=t,out.mod.push(x))})),pulse.visit(pulse.REM,(t=>{const k=key(t),x=map.get(k);t!==x.datum||x.exit||(out.rem.push(x),x.exit=!0,++map.empty)})),pulse.changed(pulse.ADD_MOD)&&out.modifies("datum"),(pulse.clean()||_.clean&&map.empty>df.cleanThreshold)&&df.runAfter(map.clean),out}}),inherits(Encode$1,Transform,{transform(_,pulse){var out=pulse.fork(pulse.ADD_REM),fmod=_.mod||!1,encoders=_.encoders,encode=pulse.encode;if(isArray(encode)){if(!out.changed()&&!encode.every((e=>encoders[e])))return pulse.StopPropagation;encode=encode[0],out.encode=null}var reenter="enter"===encode,update=encoders.update||falsy,enter=encoders.enter||falsy,exit=encoders.exit||falsy,set=(encode&&!reenter?encoders[encode]:update)||falsy;if(pulse.changed(pulse.ADD)&&(pulse.visit(pulse.ADD,(t=>{enter(t,_),update(t,_)})),out.modifies(enter.output),out.modifies(update.output),set!==falsy&&set!==update&&(pulse.visit(pulse.ADD,(t=>{set(t,_)})),out.modifies(set.output))),pulse.changed(pulse.REM)&&exit!==falsy&&(pulse.visit(pulse.REM,(t=>{exit(t,_)})),out.modifies(exit.output)),reenter||set!==falsy){const flag=pulse.MOD|(_.modified()?pulse.REFLOW:0);reenter?(pulse.visit(flag,(t=>{const mod=enter(t,_)||fmod;(set(t,_)||mod)&&out.mod.push(t)})),out.mod.length&&out.modifies(enter.output)):pulse.visit(flag,(t=>{(set(t,_)||fmod)&&out.mod.push(t)})),out.mod.length&&out.modifies(set.output)}return out.changed()?out:pulse.StopPropagation}}),inherits(LegendEntries$1,Transform,{transform(_,pulse){if(null!=this.value&&!_.modified())return pulse.StopPropagation;var domain,fraction,size,offset,ellipsis,locale=pulse.dataflow.locale(),out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),items=this.value,type=_.type||SymbolLegend,scale=_.scale,limit=+_.limit,count=tickCount(scale,null==_.count?5:_.count,_.minstep),lskip=!!_.values||type===SymbolLegend,format=_.format||labelFormat(locale,scale,count,type,_.formatSpecifier,_.formatType,lskip),values=_.values||labelValues(scale,count);return items&&(out.rem=items),type===SymbolLegend?(limit&&values.length>limit?(pulse.dataflow.warn("Symbol legend count exceeds limit, filtering items."),items=values.slice(0,limit-1),ellipsis=!0):items=values,isFunction$1(size=_.size)?(_.values||0!==scale(items[0])||(items=items.slice(1)),offset=items.reduce(((max,value)=>Math.max(max,size(value,_))),0)):size=constant$5(offset=size||8),items=items.map(((value,index)=>ingest$1({index,label:format(value,index,items),value,offset,size:size(value,_)}))),ellipsis&&(ellipsis=values[items.length],items.push(ingest$1({index:items.length,label:`…${values.length-items.length} entries`,value:ellipsis,offset,size:size(ellipsis,_)})))):"gradient"===type?(domain=scale.domain(),fraction=scaleFraction(scale,domain[0],peek$1(domain)),values.length<3&&!_.values&&domain[0]!==peek$1(domain)&&(values=[domain[0],peek$1(domain)]),items=values.map(((value,index)=>ingest$1({index,label:format(value,index,values),value,perc:fraction(value)})))):(size=values.length-1,fraction=function labelFraction(scale){const domain=scale.domain(),count=domain.length-1;let lo=+domain[0],hi=+peek$1(domain),span=hi-lo;if(scale.type===Threshold){const adjust=count?span/count:.1;lo-=adjust,hi+=adjust,span=hi-lo}return value=>(value-lo)/span}(scale),items=values.map(((value,index)=>ingest$1({index,label:format(value,index,values),value,perc:index?fraction(value):0,perc2:index===size?1:fraction(values[index+1])})))),out.source=items,out.add=items,this.value=items,out}});const sourceX=t=>t.source.x,sourceY=t=>t.source.y,targetX=t=>t.target.x,targetY=t=>t.target.y;function LinkPath(params){Transform.call(this,{},params)}LinkPath.Definition={type:"LinkPath",metadata:{modifies:!0},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]},inherits(LinkPath,Transform,{transform(_,pulse){var sx=_.sourceX||sourceX,sy=_.sourceY||sourceY,tx=_.targetX||targetX,ty=_.targetY||targetY,as=_.as||"path",orient=_.orient||"vertical",shape=_.shape||"line",path=Paths.get(shape+"-"+orient)||Paths.get(shape);return path||error("LinkPath unsupported type: "+_.shape+(_.orient?"-"+_.orient:"")),pulse.visit(pulse.SOURCE,(t=>{t[as]=path(sx(t),sy(t),tx(t),ty(t))})),pulse.reflow(_.modified()).modifies(as)}});const line$1=(sx,sy,tx,ty)=>"M"+sx+","+sy+"L"+tx+","+ty,arc$1=(sx,sy,tx,ty)=>{var dx=tx-sx,dy=ty-sy,rr=Math.hypot(dx,dy)/2;return"M"+sx+","+sy+"A"+rr+","+rr+" "+180*Math.atan2(dy,dx)/Math.PI+" 0 1 "+tx+","+ty},curve=(sx,sy,tx,ty)=>{const dx=tx-sx,dy=ty-sy,ix=.2*(dx+dy),iy=.2*(dy-dx);return"M"+sx+","+sy+"C"+(sx+ix)+","+(sy+iy)+" "+(tx+iy)+","+(ty-ix)+" "+tx+","+ty},Paths=fastmap({line:line$1,"line-radial":(sa,sr,ta,tr)=>line$1(sr*Math.cos(sa),sr*Math.sin(sa),tr*Math.cos(ta),tr*Math.sin(ta)),arc:arc$1,"arc-radial":(sa,sr,ta,tr)=>arc$1(sr*Math.cos(sa),sr*Math.sin(sa),tr*Math.cos(ta),tr*Math.sin(ta)),curve,"curve-radial":(sa,sr,ta,tr)=>curve(sr*Math.cos(sa),sr*Math.sin(sa),tr*Math.cos(ta),tr*Math.sin(ta)),"orthogonal-horizontal":(sx,sy,tx,ty)=>"M"+sx+","+sy+"V"+ty+"H"+tx,"orthogonal-vertical":(sx,sy,tx,ty)=>"M"+sx+","+sy+"H"+tx+"V"+ty,"orthogonal-radial":(sa,sr,ta,tr)=>{const sc=Math.cos(sa),ss=Math.sin(sa),tc=Math.cos(ta),ts=Math.sin(ta);return"M"+sr*sc+","+sr*ss+"A"+sr+","+sr+" 0 0,"+((Math.abs(ta-sa)>Math.PI?ta<=sa:ta>sa)?1:0)+" "+sr*tc+","+sr*ts+"L"+tr*tc+","+tr*ts},"diagonal-horizontal":(sx,sy,tx,ty)=>{const m=(sx+tx)/2;return"M"+sx+","+sy+"C"+m+","+sy+" "+m+","+ty+" "+tx+","+ty},"diagonal-vertical":(sx,sy,tx,ty)=>{const m=(sy+ty)/2;return"M"+sx+","+sy+"C"+sx+","+m+" "+tx+","+m+" "+tx+","+ty},"diagonal-radial":(sa,sr,ta,tr)=>{const sc=Math.cos(sa),ss=Math.sin(sa),tc=Math.cos(ta),ts=Math.sin(ta),mr=(sr+tr)/2;return"M"+sr*sc+","+sr*ss+"C"+mr*sc+","+mr*ss+" "+mr*tc+","+mr*ts+" "+tr*tc+","+tr*ts}});function Pie(params){Transform.call(this,null,params)}Pie.Definition={type:"Pie",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:!1},{name:"as",type:"string",array:!0,length:2,default:["startAngle","endAngle"]}]},inherits(Pie,Transform,{transform(_,pulse){var i,t,v,as=_.as||["startAngle","endAngle"],startAngle=as[0],endAngle=as[1],field=_.field||one$2,start=_.startAngle||0,stop=null!=_.endAngle?_.endAngle:2*Math.PI,data=pulse.source,values=data.map(field),n=values.length,a=start,k=(stop-start)/sum$1(values),index=range$5(n);for(_.sort&&index.sort(((a,b)=>values[a]-values[b])),i=0;is+(v<0?-1:v>0?1:0)),0))!==domain.length&&df.warn("Log scale domain includes zero: "+$(domain)));return domain}function adjustScheme(scheme,extent,reverse){return isFunction$1(scheme)&&(extent||reverse)?interpolateRange$1(scheme,flip(extent||[0,1],reverse)):scheme}function flip(array,reverse){return reverse?array.slice().reverse():array}function SortItems$1(params){Transform.call(this,null,params)}inherits(Scale$1,Transform,{transform(_,pulse){var df=pulse.dataflow,scale$1=this.value,key=function scaleKey(_){var n,t=_.type,d="";if(t===Sequential)return Sequential+"-"+Linear;(function isContinuousColor(_){const t=_.type;return isContinuous$1(t)&&t!==Time&&t!==UTC&&(_.scheme||_.range&&_.range.length&&_.range.every(isString))})(_)&&(d=2===(n=_.rawDomain?_.rawDomain.length:_.domain?_.domain.length+ +(null!=_.domainMid):0)?Sequential+"-":3===n?"diverging-":"");return(d+t||Linear).toLowerCase()}(_);for(key in scale$1&&key===scale$1.type||(this.value=scale$1=scale$4(key)()),_)if(!SKIP$1[key]){if("padding"===key&&includePad(scale$1.type))continue;isFunction$1(scale$1[key])?scale$1[key](_[key]):df.warn("Unsupported scale property: "+key)}return function configureRange(scale,_,count){var type=scale.type,round=_.round||!1,range=_.range;if(null!=_.rangeStep)range=function configureRangeStep(type,_,count){type!==Band&&type!==Point&&error("Only band and point scales support rangeStep.");var outer=(null!=_.paddingOuter?_.paddingOuter:_.padding)||0,inner=type===Point?1:(null!=_.paddingInner?_.paddingInner:_.padding)||0;return[0,_.rangeStep*bandSpace(count,inner,outer)]}(type,_,count);else if(_.scheme&&(range=function configureScheme(type,_,count){var scheme$1$1,extent=_.schemeExtent;isArray(_.scheme)?scheme$1$1=interpolateColors(_.scheme,_.interpolate,_.interpolateGamma):(scheme$1$1=scheme$1(_.scheme.toLowerCase()))||error(`Unrecognized scheme name: ${_.scheme}`);return count=type===Threshold?count+1:type===BinOrdinal?count-1:type===Quantile||type===Quantize?+_.schemeCount||DEFAULT_COUNT:count,isInterpolating(type)?adjustScheme(scheme$1$1,extent,_.reverse):isFunction$1(scheme$1$1)?quantizeInterpolator(adjustScheme(scheme$1$1,extent),count):type===Ordinal?scheme$1$1:scheme$1$1.slice(0,count)}(type,_,count),isFunction$1(range))){if(scale.interpolator)return scale.interpolator(range);error(`Scale type ${type} does not support interpolating color schemes.`)}if(range&&isInterpolating(type))return scale.interpolator(interpolateColors(flip(range,_.reverse),_.interpolate,_.interpolateGamma));range&&_.interpolate&&scale.interpolate?scale.interpolate(interpolate$1(_.interpolate,_.interpolateGamma)):isFunction$1(scale.round)?scale.round(round):isFunction$1(scale.rangeRound)&&scale.interpolate(round?interpolateRound:interpolate$1$1);range&&scale.range(flip(range,_.reverse))}(scale$1,_,function configureBins(scale,_,count){let bins=_.bins;if(bins&&!isArray(bins)){const domain=scale.domain(),lo=domain[0],hi=peek$1(domain),step=bins.step;let start=null==bins.start?lo:bins.start,stop=null==bins.stop?hi:bins.stop;step||error("Scale bins parameter missing step property."),starthi&&(stop=step*Math.floor(hi/step)),bins=range$5(start,stop+step/2,step)}bins?scale.bins=bins:scale.bins&&delete scale.bins;scale.type===BinOrdinal&&(bins?_.domain||_.domainRaw||(scale.domain(bins),count=bins.length):scale.bins=scale.domain());return count}(scale$1,_,function configureDomain(scale,_,df){const raw=function rawDomain(scale,raw,df){return raw?(scale.domain(domainCheck(scale.type,raw,df)),raw.length):-1}(scale,_.domainRaw,df);if(raw>-1)return raw;var n,mid,domain=_.domain,type=scale.type,zero=_.zero||void 0===_.zero&&function includeZero(scale){const type=scale.type;return!scale.bins&&(type===Linear||type===Pow||type===Sqrt)}(scale);if(!domain)return 0;includePad(type)&&_.padding&&domain[0]!==peek$1(domain)&&(domain=function padDomain(type,domain,range,pad,exponent,constant){var span=Math.abs(peek$1(range)-range[0]),frac=span/(span-2*pad),d=type===Log?zoomLog(domain,null,frac):type===Sqrt?zoomPow(domain,null,frac,.5):type===Pow?zoomPow(domain,null,frac,exponent||1):type===Symlog?zoomSymlog(domain,null,frac,constant||1):zoomLinear(domain,null,frac);return domain=domain.slice(),domain[0]=d[0],domain[domain.length-1]=d[1],domain}(type,domain,_.range,_.padding,_.exponent,_.constant));if((zero||null!=_.domainMin||null!=_.domainMax||null!=_.domainMid)&&(n=(domain=domain.slice()).length-1||1,zero&&(domain[0]>0&&(domain[0]=0),domain[n]<0&&(domain[n]=0)),null!=_.domainMin&&(domain[0]=_.domainMin),null!=_.domainMax&&(domain[n]=_.domainMax),null!=_.domainMid)){const i=(mid=_.domainMid)>domain[n]?n+1:midf(t);if(null==groupby)groups.push(data.slice());else for(map={},i=0,n=data.length;imax&&(max=s),sort&&g.sort(sort)}return groups.max=max,groups}(pulse.source,_.groupby,sort,field),i=0,n=groups.length,max=groups.max;i0?1:x<0?-1:0},sqrt$1=Math.sqrt,tan=Math.tan;function acos(x){return x>1?0:x<-1?pi$1:Math.acos(x)}function asin$1(x){return x>1?halfPi$1:x<-1?-halfPi$1:Math.asin(x)}function noop$2(){}function streamGeometry(geometry,stream){geometry&&streamGeometryType.hasOwnProperty(geometry.type)&&streamGeometryType[geometry.type](geometry,stream)}var streamObjectType={Feature:function(object,stream){streamGeometry(object.geometry,stream)},FeatureCollection:function(object,stream){for(var features=object.features,i=-1,n=features.length;++i=0?1:-1,adLambda=sdLambda*dLambda,cosPhi=cos$1(phi=(phi*=radians)/2+quarterPi),sinPhi=sin$1(phi),k=sinPhi0*sinPhi,u=cosPhi0*cosPhi+k*cos$1(adLambda),v=k*sdLambda*sin$1(adLambda);areaRingSum$1.add(atan2(v,u)),lambda0$1=lambda,cosPhi0=cosPhi,sinPhi0=sinPhi}function spherical(cartesian){return[atan2(cartesian[1],cartesian[0]),asin$1(cartesian[2])]}function cartesian(spherical){var lambda=spherical[0],phi=spherical[1],cosPhi=cos$1(phi);return[cosPhi*cos$1(lambda),cosPhi*sin$1(lambda),sin$1(phi)]}function cartesianDot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function cartesianCross(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function cartesianAddInPlace(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function cartesianScale(vector,k){return[vector[0]*k,vector[1]*k,vector[2]*k]}function cartesianNormalizeInPlace(d){var l=sqrt$1(d[0]*d[0]+d[1]*d[1]+d[2]*d[2]);d[0]/=l,d[1]/=l,d[2]/=l}var W0,W1,X0$1,Y0$1,Z0$1,X1$1,Y1$1,Z1$1,X2$2,Y2$2,Z2$1,lambda00,phi00,x0$4,y0$4,z0,boundsStream$2={point:boundsPoint$1,lineStart:boundsLineStart,lineEnd:boundsLineEnd,polygonStart:function(){boundsStream$2.point=boundsRingPoint,boundsStream$2.lineStart=boundsRingStart,boundsStream$2.lineEnd=boundsRingEnd,deltaSum=new Adder,areaStream$1.polygonStart()},polygonEnd:function(){areaStream$1.polygonEnd(),boundsStream$2.point=boundsPoint$1,boundsStream$2.lineStart=boundsLineStart,boundsStream$2.lineEnd=boundsLineEnd,areaRingSum$1<0?(lambda0=-(lambda1=180),phi0=-(phi1=90)):deltaSum>epsilon$3?phi1=90:deltaSum<-epsilon$3&&(phi0=-90),range$4[0]=lambda0,range$4[1]=lambda1},sphere:function(){lambda0=-(lambda1=180),phi0=-(phi1=90)}};function boundsPoint$1(lambda,phi){ranges.push(range$4=[lambda0=lambda,lambda1=lambda]),phiphi1&&(phi1=phi)}function linePoint(lambda,phi){var p=cartesian([lambda*radians,phi*radians]);if(p0){var normal=cartesianCross(p0,p),inflection=cartesianCross([normal[1],-normal[0],0],normal);cartesianNormalizeInPlace(inflection),inflection=spherical(inflection);var phii,delta=lambda-lambda2,sign=delta>0?1:-1,lambdai=inflection[0]*degrees*sign,antimeridian=abs$1(delta)>180;antimeridian^(sign*lambda2phi1&&(phi1=phii):antimeridian^(sign*lambda2<(lambdai=(lambdai+360)%360-180)&&lambdaiphi1&&(phi1=phi)),antimeridian?lambdaangle(lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(lambda0,lambda1)&&(lambda0=lambda):lambda1>=lambda0?(lambdalambda1&&(lambda1=lambda)):lambda>lambda2?angle(lambda0,lambda)>angle(lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(lambda0,lambda1)&&(lambda0=lambda)}else ranges.push(range$4=[lambda0=lambda,lambda1=lambda]);phiphi1&&(phi1=phi),p0=p,lambda2=lambda}function boundsLineStart(){boundsStream$2.point=linePoint}function boundsLineEnd(){range$4[0]=lambda0,range$4[1]=lambda1,boundsStream$2.point=boundsPoint$1,p0=null}function boundsRingPoint(lambda,phi){if(p0){var delta=lambda-lambda2;deltaSum.add(abs$1(delta)>180?delta+(delta>0?360:-360):delta)}else lambda00$1=lambda,phi00$1=phi;areaStream$1.point(lambda,phi),linePoint(lambda,phi)}function boundsRingStart(){areaStream$1.lineStart()}function boundsRingEnd(){boundsRingPoint(lambda00$1,phi00$1),areaStream$1.lineEnd(),abs$1(deltaSum)>epsilon$3&&(lambda0=-(lambda1=180)),range$4[0]=lambda0,range$4[1]=lambda1,p0=null}function angle(lambda0,lambda1){return(lambda1-=lambda0)<0?lambda1+360:lambda1}function rangeCompare(a,b){return a[0]-b[0]}function rangeContains(range,x){return range[0]<=range[1]?range[0]<=x&&x<=range[1]:xpi$1&&(lambda-=Math.round(lambda/tau$1)*tau$1),[lambda,phi]}function rotateRadians(deltaLambda,deltaPhi,deltaGamma){return(deltaLambda%=tau$1)?deltaPhi||deltaGamma?compose(rotationLambda(deltaLambda),rotationPhiGamma(deltaPhi,deltaGamma)):rotationLambda(deltaLambda):deltaPhi||deltaGamma?rotationPhiGamma(deltaPhi,deltaGamma):rotationIdentity}function forwardRotationLambda(deltaLambda){return function(lambda,phi){return abs$1(lambda+=deltaLambda)>pi$1&&(lambda-=Math.round(lambda/tau$1)*tau$1),[lambda,phi]}}function rotationLambda(deltaLambda){var rotation=forwardRotationLambda(deltaLambda);return rotation.invert=forwardRotationLambda(-deltaLambda),rotation}function rotationPhiGamma(deltaPhi,deltaGamma){var cosDeltaPhi=cos$1(deltaPhi),sinDeltaPhi=sin$1(deltaPhi),cosDeltaGamma=cos$1(deltaGamma),sinDeltaGamma=sin$1(deltaGamma);function rotation(lambda,phi){var cosPhi=cos$1(phi),x=cos$1(lambda)*cosPhi,y=sin$1(lambda)*cosPhi,z=sin$1(phi),k=z*cosDeltaPhi+x*sinDeltaPhi;return[atan2(y*cosDeltaGamma-k*sinDeltaGamma,x*cosDeltaPhi-z*sinDeltaPhi),asin$1(k*cosDeltaGamma+y*sinDeltaGamma)]}return rotation.invert=function(lambda,phi){var cosPhi=cos$1(phi),x=cos$1(lambda)*cosPhi,y=sin$1(lambda)*cosPhi,z=sin$1(phi),k=z*cosDeltaGamma-y*sinDeltaGamma;return[atan2(y*cosDeltaGamma+z*sinDeltaGamma,x*cosDeltaPhi+k*sinDeltaPhi),asin$1(k*cosDeltaPhi-x*sinDeltaPhi)]},rotation}function circleRadius(cosRadius,point){(point=cartesian(point))[0]-=cosRadius,cartesianNormalizeInPlace(point);var radius=acos(-point[1]);return((-point[2]<0?-radius:radius)+tau$1-epsilon$3)%tau$1}function clipBuffer(){var line,lines=[];return{point:function(x,y,m){line.push([x,y,m])},lineStart:function(){lines.push(line=[])},lineEnd:noop$2,rejoin:function(){lines.length>1&&lines.push(lines.pop().concat(lines.shift()))},result:function(){var result=lines;return lines=[],line=null,result}}}function pointEqual(a,b){return abs$1(a[0]-b[0])=0;--i)stream.point((point=points[i])[0],point[1]);else interpolate(current.x,current.p.x,-1,stream);current=current.p}points=(current=current.o).z,isSubject=!isSubject}while(!current.v);stream.lineEnd()}}}function link(array){if(n=array.length){for(var n,b,i=0,a=array[0];++i=0?1:-1,absDelta=sign*delta,antimeridian=absDelta>pi$1,k=sinPhi0*sinPhi1;if(sum.add(atan2(k*sign*sin$1(absDelta),cosPhi0*cosPhi1+k*cos$1(absDelta))),angle+=antimeridian?delta+sign*tau$1:delta,antimeridian^lambda0>=lambda^lambda1>=lambda){var arc=cartesianCross(cartesian(point0),cartesian(point1));cartesianNormalizeInPlace(arc);var intersection=cartesianCross(normal,arc);cartesianNormalizeInPlace(intersection);var phiArc=(antimeridian^delta>=0?-1:1)*asin$1(intersection[2]);(phi>phiArc||phi===phiArc&&(arc[0]||arc[1]))&&(winding+=antimeridian^delta>=0?1:-1)}}return(angle<-epsilon$3||angle0){for(polygonStarted||(sink.polygonStart(),polygonStarted=!0),sink.lineStart(),i=0;i1&&2&clean&&ringSegments.push(ringSegments.pop().concat(ringSegments.shift())),segments.push(ringSegments.filter(validSegment))}return clip}}function validSegment(segment){return segment.length>1}function compareIntersection(a,b){return((a=a.x)[0]<0?a[1]-halfPi$1-epsilon$3:halfPi$1-a[1])-((b=b.x)[0]<0?b[1]-halfPi$1-epsilon$3:halfPi$1-b[1])}rotationIdentity.invert=rotationIdentity;var clipAntimeridian=clip$1((function(){return!0}),(function clipAntimeridianLine(stream){var clean,lambda0=NaN,phi0=NaN,sign0=NaN;return{lineStart:function(){stream.lineStart(),clean=1},point:function(lambda1,phi1){var sign1=lambda1>0?pi$1:-pi$1,delta=abs$1(lambda1-lambda0);abs$1(delta-pi$1)0?halfPi$1:-halfPi$1),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),stream.point(lambda1,phi0),clean=0):sign0!==sign1&&delta>=pi$1&&(abs$1(lambda0-sign0)epsilon$3?atan((sin$1(phi0)*(cosPhi1=cos$1(phi1))*sin$1(lambda1)-sin$1(phi1)*(cosPhi0=cos$1(phi0))*sin$1(lambda0))/(cosPhi0*cosPhi1*sinLambda0Lambda1)):(phi0+phi1)/2}(lambda0,phi0,lambda1,phi1),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),clean=0),stream.point(lambda0=lambda1,phi0=phi1),sign0=sign1},lineEnd:function(){stream.lineEnd(),lambda0=phi0=NaN},clean:function(){return 2-clean}}}),(function clipAntimeridianInterpolate(from,to,direction,stream){var phi;if(null==from)phi=direction*halfPi$1,stream.point(-pi$1,phi),stream.point(0,phi),stream.point(pi$1,phi),stream.point(pi$1,0),stream.point(pi$1,-phi),stream.point(0,-phi),stream.point(-pi$1,-phi),stream.point(-pi$1,0),stream.point(-pi$1,phi);else if(abs$1(from[0]-to[0])>epsilon$3){var lambda=from[0]0,notHemisphere=abs$1(cr)>epsilon$3;function visible(lambda,phi){return cos$1(lambda)*cos$1(phi)>cr}function intersect(a,b,two){var n1=[1,0,0],n2=cartesianCross(cartesian(a),cartesian(b)),n2n2=cartesianDot(n2,n2),n1n2=n2[0],determinant=n2n2-n1n2*n1n2;if(!determinant)return!two&&a;var c1=cr*n2n2/determinant,c2=-cr*n1n2/determinant,n1xn2=cartesianCross(n1,n2),A=cartesianScale(n1,c1);cartesianAddInPlace(A,cartesianScale(n2,c2));var u=n1xn2,w=cartesianDot(A,u),uu=cartesianDot(u,u),t2=w*w-uu*(cartesianDot(A,A)-1);if(!(t2<0)){var t=sqrt$1(t2),q=cartesianScale(u,(-w-t)/uu);if(cartesianAddInPlace(q,A),q=spherical(q),!two)return q;var z,lambda0=a[0],lambda1=b[0],phi0=a[1],phi1=b[1];lambda10^q[1]<(abs$1(q[0]-lambda0)pi$1^(lambda0<=q[0]&&q[0]<=lambda1)){var q1=cartesianScale(u,(-w+t)/uu);return cartesianAddInPlace(q1,A),[q,spherical(q1)]}}}function code(lambda,phi){var r=smallRadius?radius:pi$1-radius,code=0;return lambda<-r?code|=1:lambda>r&&(code|=2),phi<-r?code|=4:phi>r&&(code|=8),code}return clip$1(visible,(function clipLine(stream){var point0,c0,v0,v00,clean;return{lineStart:function(){v00=v0=!1,clean=1},point:function(lambda,phi){var point2,point1=[lambda,phi],v=visible(lambda,phi),c=smallRadius?v?0:code(lambda,phi):v?code(lambda+(lambda<0?pi$1:-pi$1),phi):0;if(!point0&&(v00=v0=v)&&stream.lineStart(),v!==v0&&(!(point2=intersect(point0,point1))||pointEqual(point0,point2)||pointEqual(point1,point2))&&(point1[2]=1),v!==v0)clean=0,v?(stream.lineStart(),point2=intersect(point1,point0),stream.point(point2[0],point2[1])):(point2=intersect(point0,point1),stream.point(point2[0],point2[1],2),stream.lineEnd()),point0=point2;else if(notHemisphere&&point0&&smallRadius^v){var t;c&c0||!(t=intersect(point1,point0,!0))||(clean=0,smallRadius?(stream.lineStart(),stream.point(t[0][0],t[0][1]),stream.point(t[1][0],t[1][1]),stream.lineEnd()):(stream.point(t[1][0],t[1][1]),stream.lineEnd(),stream.lineStart(),stream.point(t[0][0],t[0][1],3)))}!v||point0&&pointEqual(point0,point1)||stream.point(point1[0],point1[1]),point0=point1,v0=v,c0=c},lineEnd:function(){v0&&stream.lineEnd(),point0=null},clean:function(){return clean|(v00&&v0)<<1}}}),(function interpolate(from,to,direction,stream){!function circleStream(stream,radius,delta,direction,t0,t1){if(delta){var cosRadius=cos$1(radius),sinRadius=sin$1(radius),step=direction*delta;null==t0?(t0=radius+direction*tau$1,t1=radius-step/2):(t0=circleRadius(cosRadius,t0),t1=circleRadius(cosRadius,t1),(direction>0?t0t1)&&(t0+=direction*tau$1));for(var point,t=t0;direction>0?t>t1:t0)do{stream.point(0===a||3===a?x0:x1,a>1?y1:y0)}while((a=(a+direction+4)%4)!==a1);else stream.point(to[0],to[1])}function corner(p,direction){return abs$1(p[0]-x0)0?0:3:abs$1(p[0]-x1)0?2:1:abs$1(p[1]-y0)0?1:0:direction>0?3:2}function compareIntersection(a,b){return comparePoint(a.x,b.x)}function comparePoint(a,b){var ca=corner(a,1),cb=corner(b,1);return ca!==cb?ca-cb:0===ca?b[1]-a[1]:1===ca?a[0]-b[0]:2===ca?a[1]-b[1]:b[0]-a[0]}return function(stream){var segments,polygon,ring,x__,y__,v__,x_,y_,v_,first,clean,activeStream=stream,bufferStream=clipBuffer(),clipStream={point,lineStart:function lineStart(){clipStream.point=linePoint,polygon&&polygon.push(ring=[]);first=!0,v_=!1,x_=y_=NaN},lineEnd:function lineEnd(){segments&&(linePoint(x__,y__),v__&&v_&&bufferStream.rejoin(),segments.push(bufferStream.result()));clipStream.point=point,v_&&activeStream.lineEnd()},polygonStart:function polygonStart(){activeStream=bufferStream,segments=[],polygon=[],clean=!0},polygonEnd:function polygonEnd(){var startInside=function polygonInside(){for(var winding=0,i=0,n=polygon.length;iy1&&(b0-a0)*(y1-a1)>(b1-a1)*(x0-a0)&&++winding:b1<=y1&&(b0-a0)*(y1-a1)<(b1-a1)*(x0-a0)&&--winding;return winding}(),cleanInside=clean&&startInside,visible=(segments=merge$2(segments)).length;(cleanInside||visible)&&(stream.polygonStart(),cleanInside&&(stream.lineStart(),interpolate(null,null,1,stream),stream.lineEnd()),visible&&clipRejoin(segments,compareIntersection,startInside,interpolate,stream),stream.polygonEnd());activeStream=stream,segments=polygon=ring=null}};function point(x,y){visible(x,y)&&activeStream.point(x,y)}function linePoint(x,y){var v=visible(x,y);if(polygon&&ring.push([x,y]),first)x__=x,y__=y,v__=v,first=!1,v&&(activeStream.lineStart(),activeStream.point(x,y));else if(v&&v_)activeStream.point(x,y);else{var a=[x_=Math.max(clipMin,Math.min(clipMax,x_)),y_=Math.max(clipMin,Math.min(clipMax,y_))],b=[x=Math.max(clipMin,Math.min(clipMax,x)),y=Math.max(clipMin,Math.min(clipMax,y))];!function clipLine(a,b,x0,y0,x1,y1){var r,ax=a[0],ay=a[1],t0=0,t1=1,dx=b[0]-ax,dy=b[1]-ay;if(r=x0-ax,dx||!(r>0)){if(r/=dx,dx<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=x1-ax,dx||!(r<0)){if(r/=dx,dx<0){if(r>t1)return;r>t0&&(t0=r)}else if(dx>0){if(r0)){if(r/=dy,dy<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=y1-ay,dy||!(r<0)){if(r/=dy,dy<0){if(r>t1)return;r>t0&&(t0=r)}else if(dy>0){if(r0&&(a[0]=ax+t0*dx,a[1]=ay+t0*dy),t1<1&&(b[0]=ax+t1*dx,b[1]=ay+t1*dy),!0}}}}}(a,b,x0,y0,x1,y1)?v&&(activeStream.lineStart(),activeStream.point(x,y),clean=!1):(v_||(activeStream.lineStart(),activeStream.point(a[0],a[1])),activeStream.point(b[0],b[1]),v||activeStream.lineEnd(),clean=!1)}x_=x,y_=y,v_=v}return clipStream}}function graticuleX(y0,y1,dy){var y=range$5(y0,y1-epsilon$3,dy).concat(y1);return function(x){return y.map((function(y){return[x,y]}))}}function graticuleY(x0,x1,dx){var x=range$5(x0,x1-epsilon$3,dx).concat(x1);return function(y){return x.map((function(x){return[x,y]}))}}var x00$2,y00$2,x0$3,y0$3,identity=x=>x,areaSum=new Adder,areaRingSum=new Adder,areaStream={point:noop$2,lineStart:noop$2,lineEnd:noop$2,polygonStart:function(){areaStream.lineStart=areaRingStart,areaStream.lineEnd=areaRingEnd},polygonEnd:function(){areaStream.lineStart=areaStream.lineEnd=areaStream.point=noop$2,areaSum.add(abs$1(areaRingSum)),areaRingSum=new Adder},result:function(){var area=areaSum/2;return areaSum=new Adder,area}};function areaRingStart(){areaStream.point=areaPointFirst}function areaPointFirst(x,y){areaStream.point=areaPoint,x00$2=x0$3=x,y00$2=y0$3=y}function areaPoint(x,y){areaRingSum.add(y0$3*x-x0$3*y),x0$3=x,y0$3=y}function areaRingEnd(){areaPoint(x00$2,y00$2)}var pathArea=areaStream,x0$2=1/0,y0$2=x0$2,x1=-x0$2,y1=x1,boundsStream={point:function boundsPoint(x,y){xx1&&(x1=x);yy1&&(y1=y)},lineStart:noop$2,lineEnd:noop$2,polygonStart:noop$2,polygonEnd:noop$2,result:function(){var bounds=[[x0$2,y0$2],[x1,y1]];return x1=y1=-(y0$2=x0$2=1/0),bounds}};var x00$1,y00$1,x0$1,y0$1,boundsStream$1=boundsStream,X0=0,Y0=0,Z0=0,X1=0,Y1=0,Z1=0,X2$1=0,Y2$1=0,Z2=0,centroidStream={point:centroidPoint,lineStart:centroidLineStart,lineEnd:centroidLineEnd,polygonStart:function(){centroidStream.lineStart=centroidRingStart,centroidStream.lineEnd=centroidRingEnd},polygonEnd:function(){centroidStream.point=centroidPoint,centroidStream.lineStart=centroidLineStart,centroidStream.lineEnd=centroidLineEnd},result:function(){var centroid=Z2?[X2$1/Z2,Y2$1/Z2]:Z1?[X1/Z1,Y1/Z1]:Z0?[X0/Z0,Y0/Z0]:[NaN,NaN];return X0=Y0=Z0=X1=Y1=Z1=X2$1=Y2$1=Z2=0,centroid}};function centroidPoint(x,y){X0+=x,Y0+=y,++Z0}function centroidLineStart(){centroidStream.point=centroidPointFirstLine}function centroidPointFirstLine(x,y){centroidStream.point=centroidPointLine,centroidPoint(x0$1=x,y0$1=y)}function centroidPointLine(x,y){var dx=x-x0$1,dy=y-y0$1,z=sqrt$1(dx*dx+dy*dy);X1+=z*(x0$1+x)/2,Y1+=z*(y0$1+y)/2,Z1+=z,centroidPoint(x0$1=x,y0$1=y)}function centroidLineEnd(){centroidStream.point=centroidPoint}function centroidRingStart(){centroidStream.point=centroidPointFirstRing}function centroidRingEnd(){centroidPointRing(x00$1,y00$1)}function centroidPointFirstRing(x,y){centroidStream.point=centroidPointRing,centroidPoint(x00$1=x0$1=x,y00$1=y0$1=y)}function centroidPointRing(x,y){var dx=x-x0$1,dy=y-y0$1,z=sqrt$1(dx*dx+dy*dy);X1+=z*(x0$1+x)/2,Y1+=z*(y0$1+y)/2,Z1+=z,X2$1+=(z=y0$1*x-x0$1*y)*(x0$1+x),Y2$1+=z*(y0$1+y),Z2+=3*z,centroidPoint(x0$1=x,y0$1=y)}var pathCentroid=centroidStream;function PathContext(context){this._context=context}PathContext.prototype={_radius:4.5,pointRadius:function(_){return this._radius=_,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(x,y){switch(this._point){case 0:this._context.moveTo(x,y),this._point=1;break;case 1:this._context.lineTo(x,y);break;default:this._context.moveTo(x+this._radius,y),this._context.arc(x,y,this._radius,0,tau$1)}},result:noop$2};var lengthRing,x00,y00,x0,y0,lengthSum=new Adder,lengthStream={point:noop$2,lineStart:function(){lengthStream.point=lengthPointFirst},lineEnd:function(){lengthRing&&lengthPoint(x00,y00),lengthStream.point=noop$2},polygonStart:function(){lengthRing=!0},polygonEnd:function(){lengthRing=null},result:function(){var length=+lengthSum;return lengthSum=new Adder,length}};function lengthPointFirst(x,y){lengthStream.point=lengthPoint,x00=x0=x,y00=y0=y}function lengthPoint(x,y){x0-=x,y0-=y,lengthSum.add(sqrt$1(x0*x0+y0*y0)),x0=x,y0=y}var pathMeasure=lengthStream;let cacheDigits,cacheAppend,cacheRadius,cacheCircle;class PathString{constructor(digits){this._append=null==digits?append:function appendRound(digits){const d=Math.floor(digits);if(!(d>=0))throw new RangeError(`invalid digits: ${digits}`);if(d>15)return append;if(d!==cacheDigits){const k=10**d;cacheDigits=d,cacheAppend=function append(strings){let i=1;this._+=strings[0];for(const j=strings.length;i=0))throw new RangeError(`invalid digits: ${_}`);digits=d}return null===context&&(contextStream=new PathString(digits)),path},path.projection(projection).digits(digits).context(context)}function transformer(methods){return function(stream){var s=new TransformStream;for(var key in methods)s[key]=methods[key];return s.stream=stream,s}}function TransformStream(){}function fit$1(projection,fitBounds,object){var clip=projection.clipExtent&&projection.clipExtent();return projection.scale(150).translate([0,0]),null!=clip&&projection.clipExtent(null),geoStream(object,projection.stream(boundsStream$1)),fitBounds(boundsStream$1.result()),null!=clip&&projection.clipExtent(clip),projection}function fitExtent(projection,extent,object){return fit$1(projection,(function(b){var w=extent[1][0]-extent[0][0],h=extent[1][1]-extent[0][1],k=Math.min(w/(b[1][0]-b[0][0]),h/(b[1][1]-b[0][1])),x=+extent[0][0]+(w-k*(b[1][0]+b[0][0]))/2,y=+extent[0][1]+(h-k*(b[1][1]+b[0][1]))/2;projection.scale(150*k).translate([x,y])}),object)}function fitSize(projection,size,object){return fitExtent(projection,[[0,0],size],object)}function fitWidth(projection,width,object){return fit$1(projection,(function(b){var w=+width,k=w/(b[1][0]-b[0][0]),x=(w-k*(b[1][0]+b[0][0]))/2,y=-k*b[0][1];projection.scale(150*k).translate([x,y])}),object)}function fitHeight(projection,height,object){return fit$1(projection,(function(b){var h=+height,k=h/(b[1][1]-b[0][1]),x=-k*b[0][0],y=(h-k*(b[1][1]+b[0][1]))/2;projection.scale(150*k).translate([x,y])}),object)}TransformStream.prototype={constructor:TransformStream,point:function(x,y){this.stream.point(x,y)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var maxDepth=16,cosMinDistance=cos$1(30*radians);function resample(project,delta2){return+delta2?function resample$1(project,delta2){function resampleLineTo(x0,y0,lambda0,a0,b0,c0,x1,y1,lambda1,a1,b1,c1,depth,stream){var dx=x1-x0,dy=y1-y0,d2=dx*dx+dy*dy;if(d2>4*delta2&&depth--){var a=a0+a1,b=b0+b1,c=c0+c1,m=sqrt$1(a*a+b*b+c*c),phi2=asin$1(c/=m),lambda2=abs$1(abs$1(c)-1)delta2||abs$1((dx*dx2+dy*dy2)/d2-.5)>.3||a0*a1+b0*b1+c0*c12?_[2]%360*radians:0,recenter()):[deltaLambda*degrees,deltaPhi*degrees,deltaGamma*degrees]},projection.angle=function(_){return arguments.length?(alpha=_%360*radians,recenter()):alpha*degrees},projection.reflectX=function(_){return arguments.length?(sx=_?-1:1,recenter()):sx<0},projection.reflectY=function(_){return arguments.length?(sy=_?-1:1,recenter()):sy<0},projection.precision=function(_){return arguments.length?(projectResample=resample(projectTransform,delta2=_*_),reset()):sqrt$1(delta2)},projection.fitExtent=function(extent,object){return fitExtent(projection,extent,object)},projection.fitSize=function(size,object){return fitSize(projection,size,object)},projection.fitWidth=function(width,object){return fitWidth(projection,width,object)},projection.fitHeight=function(height,object){return fitHeight(projection,height,object)},function(){return project=projectAt.apply(this,arguments),projection.invert=project.invert&&invert,recenter()}}function conicProjection(projectAt){var phi0=0,phi1=pi$1/3,m=projectionMutator(projectAt),p=m(phi0,phi1);return p.parallels=function(_){return arguments.length?m(phi0=_[0]*radians,phi1=_[1]*radians):[phi0*degrees,phi1*degrees]},p}function conicEqualAreaRaw(y0,y1){var sy0=sin$1(y0),n=(sy0+sin$1(y1))/2;if(abs$1(n)2?rotate[2]*radians:0),forward.invert=function(coordinates){return(coordinates=rotate.invert(coordinates[0]*radians,coordinates[1]*radians))[0]*=degrees,coordinates[1]*=degrees,coordinates},forward}(m.rotate()).invert([0,0]));return clipExtent(null==x0?[[t[0]-k,t[1]-k],[t[0]+k,t[1]+k]]:project===mercatorRaw?[[Math.max(t[0]-k,x0),y0],[Math.min(t[0]+k,x1),y1]]:[[x0,Math.max(t[1]-k,y0)],[x1,Math.min(t[1]+k,y1)]])}return m.scale=function(_){return arguments.length?(scale(_),reclip()):scale()},m.translate=function(_){return arguments.length?(translate(_),reclip()):translate()},m.center=function(_){return arguments.length?(center(_),reclip()):center()},m.clipExtent=function(_){return arguments.length?(null==_?x0=y0=x1=y1=null:(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1]),reclip()):null==x0?null:[[x0,y0],[x1,y1]]},reclip()}function tany(y){return tan((halfPi$1+y)/2)}function conicConformalRaw(y0,y1){var cy0=cos$1(y0),n=y0===y1?sin$1(y0):log$1(cy0/cos$1(y1))/log$1(tany(y1)/tany(y0)),f=cy0*pow$1(tany(y0),n)/n;if(!n)return mercatorRaw;function project(x,y){f>0?y<-halfPi$1+epsilon$3&&(y=-halfPi$1+epsilon$3):y>halfPi$1-epsilon$3&&(y=halfPi$1-epsilon$3);var r=f/pow$1(tany(y),n);return[r*sin$1(n*x),f-r*cos$1(n*x)]}return project.invert=function(x,y){var fy=f-y,r=sign(n)*sqrt$1(x*x+fy*fy),l=atan2(x,abs$1(fy))*sign(fy);return fy*n<0&&(l-=pi$1*sign(x)*sign(fy)),[l/n,2*atan(pow$1(f/r,1/n))-halfPi$1]},project}function equirectangularRaw(lambda,phi){return[lambda,phi]}function conicEquidistantRaw(y0,y1){var cy0=cos$1(y0),n=y0===y1?sin$1(y0):(cy0-cos$1(y1))/(y1-y0),g=cy0/n+y0;if(abs$1(n)epsilon$3&&--i>0);return[x/(.8707+(phi2=phi*phi)*(phi2*(phi2*phi2*phi2*(.003971-.001529*phi2)-.013791)-.131979)),phi]},orthographicRaw.invert=azimuthalInvert(asin$1),stereographicRaw.invert=azimuthalInvert((function(z){return 2*atan(z)})),transverseMercatorRaw.invert=function(x,y){return[-y,2*atan(exp(x))-halfPi$1]};var abs=Math.abs,cos=Math.cos,sin=Math.sin,epsilon$2=1e-6,pi=Math.PI,halfPi=pi/2,sqrt2=function sqrt(x){return x>0?Math.sqrt(x):0}(2);function asin(x){return x>1?halfPi:x<-1?-halfPi:Math.asin(x)}function mollweideBromleyTheta(cp,phi){var delta,cpsinPhi=cp*sin(phi),i=30;do{phi-=delta=(phi+sin(phi)-cpsinPhi)/(1+cos(phi))}while(abs(delta)>epsilon$2&&--i>0);return phi/2}var mollweideRaw=function mollweideBromleyRaw(cx,cy,cp){function forward(lambda,phi){return[cx*lambda*cos(phi=mollweideBromleyTheta(cp,phi)),cy*sin(phi)]}return forward.invert=function(x,y){return y=asin(y/cy),[x/(cx*cos(y)),asin((2*y+sin(2*y))/cp)]},forward}(sqrt2/halfPi,sqrt2,pi);const defaultPath=geoPath(),projectionProperties=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function projection(type,proj){if(!type||"string"!=typeof type)throw new Error("Projection type must be a name string.");return type=type.toLowerCase(),arguments.length>1?(projections[type]=function create$1(type,constructor){return function projection(){const p=constructor();return p.type=type,p.path=geoPath().projection(p),p.copy=p.copy||function(){const c=projection();return projectionProperties.forEach((prop=>{p[prop]&&c[prop](p[prop]())})),c.path.pointRadius(p.path.pointRadius()),c},registerScale(p)}}(type,proj),this):projections[type]||null}function getProjectionPath(proj){return proj&&proj.path||defaultPath}const projections={albers:geoAlbers,albersusa:function geoAlbersUsa(){var cache,cacheStream,lower48Point,alaskaPoint,hawaiiPoint,point,lower48=geoAlbers(),alaska=geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),hawaii=geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),pointStream={point:function(x,y){point=[x,y]}};function albersUsa(coordinates){var x=coordinates[0],y=coordinates[1];return point=null,lower48Point.point(x,y),point||(alaskaPoint.point(x,y),point)||(hawaiiPoint.point(x,y),point)}function reset(){return cache=cacheStream=null,albersUsa}return albersUsa.invert=function(coordinates){var k=lower48.scale(),t=lower48.translate(),x=(coordinates[0]-t[0])/k,y=(coordinates[1]-t[1])/k;return(y>=.12&&y<.234&&x>=-.425&&x<-.214?alaska:y>=.166&&y<.234&&x>=-.214&&x<-.115?hawaii:lower48).invert(coordinates)},albersUsa.stream=function(stream){return cache&&cacheStream===stream?cache:cache=function multiplex(streams){var n=streams.length;return{point:function(x,y){for(var i=-1;++i2?_[2]+90:90]):[(_=rotate())[0],_[1],_[2]-90]},rotate([0,0,90]).scale(159.155)}};for(const key in projections)projection(key,projections[key]);function noop$1(){}const cases=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function contours(){var dx=1,dy=1,smooth=smoothLinear;function contours(values,tz){return tz.map((value=>contour(values,value)))}function contour(values,value){var polygons=[],holes=[];return function isorings(values,value,callback){var x,y,t0,t1,t2,t3,fragmentByStart=new Array,fragmentByEnd=new Array;x=y=-1,t1=values[0]>=value,cases[t1<<1].forEach(stitch);for(;++x=value,cases[t0|t1<<1].forEach(stitch);cases[t1<<0].forEach(stitch);for(;++y=value,t2=values[y*dx]>=value,cases[t1<<1|t2<<2].forEach(stitch);++x=value,t3=t2,t2=values[y*dx+x+1]>=value,cases[t0|t1<<1|t2<<2|t3<<3].forEach(stitch);cases[t1|t2<<3].forEach(stitch)}x=-1,t2=values[y*dx]>=value,cases[t2<<2].forEach(stitch);for(;++x=value,cases[t2<<2|t3<<3].forEach(stitch);function stitch(line){var f,g,start=[line[0][0]+x,line[0][1]+y],end=[line[1][0]+x,line[1][1]+y],startIndex=index(start),endIndex=index(end);(f=fragmentByEnd[startIndex])?(g=fragmentByStart[endIndex])?(delete fragmentByEnd[f.end],delete fragmentByStart[g.start],f===g?(f.ring.push(end),callback(f.ring)):fragmentByStart[f.start]=fragmentByEnd[g.end]={start:f.start,end:g.end,ring:f.ring.concat(g.ring)}):(delete fragmentByEnd[f.end],f.ring.push(end),fragmentByEnd[f.end=endIndex]=f):(f=fragmentByStart[endIndex])?(g=fragmentByEnd[startIndex])?(delete fragmentByStart[f.start],delete fragmentByEnd[g.end],f===g?(f.ring.push(end),callback(f.ring)):fragmentByStart[g.start]=fragmentByEnd[f.end]={start:g.start,end:f.end,ring:g.ring.concat(f.ring)}):(delete fragmentByStart[f.start],f.ring.unshift(start),fragmentByStart[f.start=startIndex]=f):fragmentByStart[startIndex]=fragmentByEnd[endIndex]={start:startIndex,end:endIndex,ring:[start,end]}}cases[t2<<3].forEach(stitch)}(values,value,(ring=>{smooth(ring,values,value),function area$1(ring){var i=0,n=ring.length,area=ring[n-1][1]*ring[0][0]-ring[n-1][0]*ring[0][1];for(;++i0?polygons.push([ring]):holes.push(ring)})),holes.forEach((hole=>{for(var polygon,i=0,n=polygons.length;i{var v0,x=point[0],y=point[1],xt=0|x,yt=0|y,v1=values[yt*dx+xt];x>0&&x0&&y=0&&_1>=0||error("invalid size"),dx=_0,dy=_1,contours},contours.smooth=function(_){return arguments.length?(smooth=_?smoothLinear:noop$1,contours):smooth===smoothLinear},contours}function contains$1(ring,hole){for(var c,i=-1,n=hole.length;++iy!=yj>y&&x<(xj-xi)*(y-yi)/(yj-yi)+xi&&(contains=-contains)}return contains}function segmentContains(a,b,c){var i;return function collinear$1(a,b,c){return(b[0]-a[0])*(c[1]-a[1])==(c[0]-a[0])*(b[1]-a[1])}(a,b,c)&&function within(p,q,r){return p<=q&&q<=r||r<=q&&q<=p}(a[i=+(a[0]===b[0])],c[i],b[i])}function quantize(k,nice,zero){return function(values){var ex=extent(values),start=zero?Math.min(ex[0],0):ex[0],stop=ex[1],span=stop-start,step=nice?tickStep(start,stop,k):span/(k+1);return range$5(start+step,stop,step)}}function Isocontour(params){Transform.call(this,null,params)}function transform$1(grid,sx,sy,tx,ty){const x1=grid.x1||0,y1=grid.y1||0,flip=sx*sy<0;function transformPolygon(coordinates){coordinates.forEach(transformRing)}function transformRing(coordinates){flip&&coordinates.reverse(),coordinates.forEach(transformPoint)}function transformPoint(coordinates){coordinates[0]=(coordinates[0]-x1)*sx+tx,coordinates[1]=(coordinates[1]-y1)*sy+ty}return function(geometry){return geometry.coordinates.forEach(transformPolygon),geometry}}function radius(bw,data,f){const v=bw>=0?bw:estimateBandwidth(data,f);return Math.round((Math.sqrt(4*v*v+1)-1)/2)}function number$2(_){return isFunction$1(_)?_:constant$5(+_)}function density2D(){var x=d=>d[0],y=d=>d[1],weight=one$2,bandwidth=[-1,-1],dx=960,dy=500,k=2;function density(data,counts){const rx=radius(bandwidth[0],data,x)>>k,ry=radius(bandwidth[1],data,y)>>k,ox=rx?rx+2:0,oy=ry?ry+2:0,n=2*ox+(dx>>k),m=2*oy+(dy>>k),values0=new Float32Array(n*m),values1=new Float32Array(n*m);let values=values0;data.forEach((d=>{const xi=ox+(+x(d)>>k),yi=oy+(+y(d)>>k);xi>=0&&xi=0&&yi0&&ry>0?(blurX(n,m,values0,values1,rx),blurY(n,m,values1,values0,ry),blurX(n,m,values0,values1,rx),blurY(n,m,values1,values0,ry),blurX(n,m,values0,values1,rx),blurY(n,m,values1,values0,ry)):rx>0?(blurX(n,m,values0,values1,rx),blurX(n,m,values1,values0,rx),blurX(n,m,values0,values1,rx),values=values1):ry>0&&(blurY(n,m,values0,values1,ry),blurY(n,m,values1,values0,ry),blurY(n,m,values0,values1,ry),values=values1);const s=counts?Math.pow(2,-2*k):1/sum$1(values);for(let i=0,sz=n*m;i>k),y2:oy+(dy>>k)}}return density.x=function(_){return arguments.length?(x=number$2(_),density):x},density.y=function(_){return arguments.length?(y=number$2(_),density):y},density.weight=function(_){return arguments.length?(weight=number$2(_),density):weight},density.size=function(_){if(!arguments.length)return[dx,dy];var _0=+_[0],_1=+_[1];return _0>=0&&_1>=0||error("invalid size"),dx=_0,dy=_1,density},density.cellSize=function(_){return arguments.length?((_=+_)>=1||error("invalid cell size"),k=Math.floor(Math.log(_)/Math.LN2),density):1<=r&&(i>=w&&(sr-=source[i-w+j*n]),target[i-r+j*n]=sr/Math.min(i+1,n-1+w-i,w))}function blurY(n,m,source,target,r){const w=1+(r<<1);for(let i=0;i=r&&(j>=w&&(sr-=source[i+(j-w)*n]),target[i+(j-r)*n]=sr/Math.min(j+1,m-1+w-j,w))}function KDE2D(params){Transform.call(this,null,params)}Isocontour.Definition={type:"Isocontour",metadata:{generates:!0},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:!0},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:!1},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:!0},{name:"smooth",type:"boolean",default:!0},{name:"scale",type:"number",expr:!0},{name:"translate",type:"number",array:!0,expr:!0},{name:"as",type:"string",null:!0,default:"contour"}]},inherits(Isocontour,Transform,{transform(_,pulse){if(this.value&&!pulse.changed()&&!_.modified())return pulse.StopPropagation;var out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),source=pulse.materialize(pulse.SOURCE).source,field=_.field||identity$6,contour=contours().smooth(!1!==_.smooth),tz=_.thresholds||function levels(values,f,_){const q=quantize(_.levels||10,_.nice,!1!==_.zero);return"shared"!==_.resolve?q:q(values.map((t=>max$2(f(t).values))))}(source,field,_),as=null===_.as?null:_.as||"contour",values=[];return source.forEach((t=>{const grid=field(t),paths=contour.size([grid.width,grid.height])(grid.values,isArray(tz)?tz:tz(grid.values));!function transformPaths(paths,grid,datum,_){let s=_.scale||grid.scale,t=_.translate||grid.translate;isFunction$1(s)&&(s=s(datum,_));isFunction$1(t)&&(t=t(datum,_));if((1===s||null==s)&&!t)return;const sx=(isNumber$1(s)?s:s[0])||1,sy=(isNumber$1(s)?s:s[1])||1,tx=t&&t[0]||0,ty=t&&t[1]||0;paths.forEach(transform$1(grid,sx,sy,tx,ty))}(paths,grid,t,_),paths.forEach((p=>{values.push(rederive(t,ingest$1(null!=as?{[as]:p}:p)))}))})),this.value&&(out.rem=this.value),this.value=out.source=out.add=values,out}}),KDE2D.Definition={type:"KDE2D",metadata:{generates:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"weight",type:"field"},{name:"groupby",type:"field",array:!0},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:!0,length:2},{name:"counts",type:"boolean",default:!1},{name:"as",type:"string",default:"grid"}]};const PARAMS=["x","y","weight","size","cellSize","bandwidth"];function params(obj,_){return PARAMS.forEach((param=>null!=_[param]?obj[param](_[param]):0)),obj}function Contour(params){Transform.call(this,null,params)}inherits(KDE2D,Transform,{transform(_,pulse){if(this.value&&!pulse.changed()&&!_.modified())return pulse.StopPropagation;var values,out=pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS),groups=function partition$2(data,groupby){var map,i,n,t,k,g,groups=[],get=f=>f(t);if(null==groupby)groups.push(data);else for(map={},i=0,n=data.length;iingest$1(function set(t,vals){for(let i=0;iepsilon$3})).map(x)).concat(range$5(ceil(y0/dy)*dy,y1,dy).filter((function(y){return abs$1(y%DY)>epsilon$3})).map(y))}return graticule.lines=function(){return lines().map((function(coordinates){return{type:"LineString",coordinates}}))},graticule.outline=function(){return{type:"Polygon",coordinates:[X(X0).concat(Y(Y1).slice(1),X(X1).reverse().slice(1),Y(Y0).reverse().slice(1))]}},graticule.extent=function(_){return arguments.length?graticule.extentMajor(_).extentMinor(_):graticule.extentMinor()},graticule.extentMajor=function(_){return arguments.length?(X0=+_[0][0],X1=+_[1][0],Y0=+_[0][1],Y1=+_[1][1],X0>X1&&(_=X0,X0=X1,X1=_),Y0>Y1&&(_=Y0,Y0=Y1,Y1=_),graticule.precision(precision)):[[X0,Y0],[X1,Y1]]},graticule.extentMinor=function(_){return arguments.length?(x0=+_[0][0],x1=+_[1][0],y0=+_[0][1],y1=+_[1][1],x0>x1&&(_=x0,x0=x1,x1=_),y0>y1&&(_=y0,y0=y1,y1=_),graticule.precision(precision)):[[x0,y0],[x1,y1]]},graticule.step=function(_){return arguments.length?graticule.stepMajor(_).stepMinor(_):graticule.stepMinor()},graticule.stepMajor=function(_){return arguments.length?(DX=+_[0],DY=+_[1],graticule):[DX,DY]},graticule.stepMinor=function(_){return arguments.length?(dx=+_[0],dy=+_[1],graticule):[dx,dy]},graticule.precision=function(_){return arguments.length?(precision=+_,x=graticuleX(y0,y1,90),y=graticuleY(x0,x1,precision),X=graticuleX(Y0,Y1,90),Y=graticuleY(X0,X1,precision),graticule):precision},graticule.extentMajor([[-180,-90+epsilon$3],[180,90-epsilon$3]]).extentMinor([[-180,-80-epsilon$3],[180,80+epsilon$3]])}()}function Heatmap(params){Transform.call(this,null,params)}function dependency(f){if(!isFunction$1(f))return!1;const set=toSet(accessorFields(f));return set.$x||set.$y||set.$value||set.$max}function Projection$1(params){Transform.call(this,null,params),this.modified(!0)}function set$3(proj,key,value){isFunction$1(proj[key])&&proj[key](value)}GeoJSON.Definition={type:"GeoJSON",metadata:{},params:[{name:"fields",type:"field",array:!0,length:2},{name:"geojson",type:"field"}]},inherits(GeoJSON,Transform,{transform(_,pulse){var mod,features=this._features,points=this._points,fields=_.fields,lon=fields&&fields[0],lat=fields&&fields[1],geojson=_.geojson||!fields&&identity$6,flag=pulse.ADD;mod=_.modified()||pulse.changed(pulse.REM)||pulse.modified(accessorFields(geojson))||lon&&pulse.modified(accessorFields(lon))||lat&&pulse.modified(accessorFields(lat)),this.value&&!mod||(flag=pulse.SOURCE,this._features=features=[],this._points=points=[]),geojson&&pulse.visit(flag,(t=>features.push(geojson(t)))),lon&&lat&&(pulse.visit(flag,(t=>{var x=lon(t),y=lat(t);null!=x&&null!=y&&(x=+x)===x&&(y=+y)===y&&points.push([x,y])})),features=features.concat({type:Feature,geometry:{type:"MultiPoint",coordinates:points}})),this.value={type:FeatureCollection,features}}}),GeoPath.Definition={type:"GeoPath",metadata:{modifies:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"path"}]},inherits(GeoPath,Transform,{transform(_,pulse){var out=pulse.fork(pulse.ALL),path=this.value,field=_.field||identity$6,as=_.as||"path",flag=out.SOURCE;!path||_.modified()?(this.value=path=getProjectionPath(_.projection),out.materialize().reflow()):flag=field===identity$6||pulse.modified(field.fields)?out.ADD_MOD:out.ADD;const prev=function initPath(path,pointRadius){const prev=path.pointRadius();path.context(null),null!=pointRadius&&path.pointRadius(pointRadius);return prev}(path,_.pointRadius);return out.visit(flag,(t=>t[as]=path(field(t)))),path.pointRadius(prev),out.modifies(as)}}),GeoPoint.Definition={type:"GeoPoint",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"fields",type:"field",array:!0,required:!0,length:2},{name:"as",type:"string",array:!0,length:2,default:["x","y"]}]},inherits(GeoPoint,Transform,{transform(_,pulse){var mod,proj=_.projection,lon=_.fields[0],lat=_.fields[1],as=_.as||["x","y"],x=as[0],y=as[1];function set(t){const xy=proj([lon(t),lat(t)]);xy?(t[x]=xy[0],t[y]=xy[1]):(t[x]=void 0,t[y]=void 0)}return _.modified()?pulse=pulse.materialize().reflow(!0).visit(pulse.SOURCE,set):(mod=pulse.modified(lon.fields)||pulse.modified(lat.fields),pulse.visit(mod?pulse.ADD_MOD:pulse.ADD,set)),pulse.modifies(as)}}),GeoShape.Definition={type:"GeoShape",metadata:{modifies:!0,nomod:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"shape"}]},inherits(GeoShape,Transform,{transform(_,pulse){var out=pulse.fork(pulse.ALL),shape=this.value,as=_.as||"shape",flag=out.ADD;return shape&&!_.modified()||(this.value=shape=function shapeGenerator(path,field,pointRadius){const shape=null==pointRadius?_=>path(field(_)):_=>{var prev=path.pointRadius(),value=path.pointRadius(pointRadius)(field(_));return path.pointRadius(prev),value};return shape.context=_=>(path.context(_),shape),shape}(getProjectionPath(_.projection),_.field||field$1("datum"),_.pointRadius),out.materialize().reflow(),flag=out.SOURCE),out.visit(flag,(t=>t[as]=shape)),out.modifies(as)}}),Graticule.Definition={type:"Graticule",metadata:{changes:!0,generates:!0},params:[{name:"extent",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMajor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMinor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"step",type:"number",array:!0,length:2},{name:"stepMajor",type:"number",array:!0,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:!0,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]},inherits(Graticule,Transform,{transform(_,pulse){var t,src=this.value,gen=this.generator;if(!src.length||_.modified())for(const prop in _)isFunction$1(gen[prop])&&gen[prop](_[prop]);return t=gen(),src.length?pulse.mod.push(replace$1(src[0],t)):pulse.add.push(ingest$1(t)),src[0]=t,pulse}}),Heatmap.Definition={type:"heatmap",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:!0},{name:"opacity",type:"number",expr:!0},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]},inherits(Heatmap,Transform,{transform(_,pulse){if(!pulse.changed()&&!_.modified())return pulse.StopPropagation;var source=pulse.materialize(pulse.SOURCE).source,shared="shared"===_.resolve,field=_.field||identity$6,opacity=function opacity_(opacity,_){let f;isFunction$1(opacity)?(f=obj=>opacity(obj,_),f.dep=dependency(opacity)):opacity?f=constant$5(opacity):(f=obj=>obj.$value/obj.$max||0,f.dep=!0);return f}(_.opacity,_),color=function color_(color,_){let f;isFunction$1(color)?(f=obj=>rgb$1(color(obj,_)),f.dep=dependency(color)):f=constant$5(rgb$1(color||"#888"));return f}(_.color,_),as=_.as||"image",obj={$x:0,$y:0,$value:0,$max:shared?max$2(source.map((t=>max$2(field(t).values)))):0};return source.forEach((t=>{const v=field(t),o=extend$1({},t,obj);shared||(o.$max=max$2(v.values||[])),t[as]=function toCanvas(grid,obj,color,opacity){const n=grid.width,m=grid.height,x1=grid.x1||0,y1=grid.y1||0,x2=grid.x2||n,y2=grid.y2||m,val=grid.values,value=val?i=>val[i]:zero$5,can=domCanvas(x2-x1,y2-y1),ctx=can.getContext("2d"),img=ctx.getImageData(0,0,x2-x1,y2-y1),pix=img.data;for(let j=y1,k=0;j{null!=_[prop]&&set$3(proj,prop,_[prop])}))):projectionProperties.forEach((prop=>{_.modified(prop)&&set$3(proj,prop,_[prop])})),null!=_.pointRadius&&proj.path.pointRadius(_.pointRadius),_.fit&&function fit(proj,_){const data=function collectGeoJSON(data){return data=array$5(data),1===data.length?data[0]:{type:FeatureCollection,features:data.reduce(((a,f)=>a.concat(function featurize(f){return f.type===FeatureCollection?f.features:array$5(f).filter((d=>null!=d)).map((d=>d.type===Feature?d:{type:Feature,geometry:d}))}(f))),[])}}(_.fit);_.extent?proj.fitExtent(_.extent,data):_.size&&proj.fitSize(_.size,data)}(proj,_),pulse.fork(pulse.NO_SOURCE|pulse.NO_FIELDS)}});var geo=Object.freeze({__proto__:null,contour:Contour,geojson:GeoJSON,geopath:GeoPath,geopoint:GeoPoint,geoshape:GeoShape,graticule:Graticule,heatmap:Heatmap,isocontour:Isocontour,kde2d:KDE2D,projection:Projection$1});function add$1(tree,x,y,d){if(isNaN(x)||isNaN(y))return tree;var parent,xm,ym,xp,yp,right,bottom,i,j,node=tree._root,leaf={data:d},x0=tree._x0,y0=tree._y0,x1=tree._x1,y1=tree._y1;if(!node)return tree._root=leaf,tree;for(;node.length;)if((right=x>=(xm=(x0+x1)/2))?x0=xm:x1=xm,(bottom=y>=(ym=(y0+y1)/2))?y0=ym:y1=ym,parent=node,!(node=node[i=bottom<<1|right]))return parent[i]=leaf,tree;if(xp=+tree._x.call(null,node.data),yp=+tree._y.call(null,node.data),x===xp&&y===yp)return leaf.next=node,parent?parent[i]=leaf:tree._root=leaf,tree;do{parent=parent?parent[i]=new Array(4):tree._root=new Array(4),(right=x>=(xm=(x0+x1)/2))?x0=xm:x1=xm,(bottom=y>=(ym=(y0+y1)/2))?y0=ym:y1=ym}while((i=bottom<<1|right)==(j=(yp>=ym)<<1|xp>=xm));return parent[j]=node,parent[i]=leaf,tree}function Quad(node,x0,y0,x1,y1){this.node=node,this.x0=x0,this.y0=y0,this.x1=x1,this.y1=y1}function defaultX(d){return d[0]}function defaultY(d){return d[1]}function quadtree(nodes,x,y){var tree=new Quadtree(null==x?defaultX:x,null==y?defaultY:y,NaN,NaN,NaN,NaN);return null==nodes?tree:tree.addAll(nodes)}function Quadtree(x,y,x0,y0,x1,y1){this._x=x,this._y=y,this._x0=x0,this._y0=y0,this._x1=x1,this._y1=y1,this._root=void 0}function leaf_copy(leaf){for(var copy={data:leaf.data},next=copy;leaf=leaf.next;)next=next.next={data:leaf.data};return copy}var treeProto=quadtree.prototype=Quadtree.prototype;function constant$1(x){return function(){return x}}function jiggle(random){return 1e-6*(random()-.5)}function x$1(d){return d.x+d.vx}function y$1(d){return d.y+d.vy}function index$1(d){return d.index}function find$1(nodeById,nodeId){var node=nodeById.get(nodeId);if(!node)throw new Error("node not found: "+nodeId);return node}treeProto.copy=function(){var nodes,child,copy=new Quadtree(this._x,this._y,this._x0,this._y0,this._x1,this._y1),node=this._root;if(!node)return copy;if(!node.length)return copy._root=leaf_copy(node),copy;for(nodes=[{source:node,target:copy._root=new Array(4)}];node=nodes.pop();)for(var i=0;i<4;++i)(child=node.source[i])&&(child.length?nodes.push({source:child,target:node.target[i]=new Array(4)}):node.target[i]=leaf_copy(child));return copy},treeProto.add=function tree_add(d){const x=+this._x.call(null,d),y=+this._y.call(null,d);return add$1(this.cover(x,y),x,y,d)},treeProto.addAll=function addAll(data){var d,i,x,y,n=data.length,xz=new Array(n),yz=new Array(n),x0=1/0,y0=1/0,x1=-1/0,y1=-1/0;for(i=0;ix1&&(x1=x),yy1&&(y1=y));if(x0>x1||y0>y1)return this;for(this.cover(x0,y0).cover(x1,y1),i=0;ix||x>=x1||y0>y||y>=y1;)switch(i=(yx3||(y1=q.y0)>y3||(x2=q.x1)=ym)<<1|x>=xm)&&(q=quads[quads.length-1],quads[quads.length-1]=quads[quads.length-1-i],quads[quads.length-1-i]=q)}else{var dx=x-+this._x.call(null,node.data),dy=y-+this._y.call(null,node.data),d2=dx*dx+dy*dy;if(d2=(xm=(x0+x1)/2))?x0=xm:x1=xm,(bottom=y>=(ym=(y0+y1)/2))?y0=ym:y1=ym,parent=node,!(node=node[i=bottom<<1|right]))return this;if(!node.length)break;(parent[i+1&3]||parent[i+2&3]||parent[i+3&3])&&(retainer=parent,j=i)}for(;node.data!==d;)if(previous=node,!(node=node.next))return this;return(next=node.next)&&delete node.next,previous?(next?previous.next=next:delete previous.next,this):parent?(next?parent[i]=next:delete parent[i],(node=parent[0]||parent[1]||parent[2]||parent[3])&&node===(parent[3]||parent[2]||parent[1]||parent[0])&&!node.length&&(retainer?retainer[j]=node:this._root=node),this):(this._root=next,this)},treeProto.removeAll=function removeAll(data){for(var i=0,n=data.length;i{}};function dispatch(){for(var t,i=0,n=arguments.length,_={};i=0&&(name=t.slice(i+1),t=t.slice(0,i)),t&&!types.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name}}))}(typename+"",_),i=-1,n=T.length;if(!(arguments.length<2)){if(null!=callback&&"function"!=typeof callback)throw new Error("invalid callback: "+callback);for(;++i0)for(var n,t,args=new Array(n),i=0;i=0&&t._call.call(void 0,e),t=t._next;--frame}()}finally{frame=0,function nap(){var t0,t2,t1=taskHead,time=1/0;for(;t1;)t1._call?(time>t1._time&&(time=t1._time),t0=t1,t1=t1._next):(t2=t1._next,t1._next=null,t1=t0?t0._next=t2:taskHead=t2);taskTail=t0,sleep(time)}(),clockNow=0}}function poke(){var now=clock.now(),delay=now-clockLast;delay>pokeDelay&&(clockSkew-=delay,clockLast=now)}function sleep(time){frame||(timeout&&(timeout=clearTimeout(timeout)),time-clockNow>24?(time<1/0&&(timeout=setTimeout(wake,time-clock.now()-clockSkew)),interval$2&&(interval$2=clearInterval(interval$2))):(interval$2||(clockLast=clock.now(),interval$2=setInterval(poke,pokeDelay)),frame=1,setFrame(wake)))}Timer$1.prototype=timer$1.prototype={constructor:Timer$1,restart:function(callback,delay,time){if("function"!=typeof callback)throw new TypeError("callback is not a function");time=(null==time?now():+time)+(null==delay?0:+delay),this._next||taskTail===this||(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=callback,this._time=time,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};const a$1=1664525,c$1=1013904223,m$1=4294967296;function x(d){return d.x}function y(d){return d.y}var initialRadius=10,initialAngle=Math.PI*(3-Math.sqrt(5));function forceSimulation(nodes){var simulation,alpha=1,alphaMin=.001,alphaDecay=1-Math.pow(alphaMin,1/300),alphaTarget=0,velocityDecay=.6,forces=new Map,stepper=timer$1(step),event=dispatch("tick","end"),random=function lcg$1(){let s=1;return()=>(s=(a$1*s+c$1)%m$1)/m$1}();function step(){tick(),event.call("tick",simulation),alpha1?(null==_?forces.delete(name):forces.set(name,initializeForce(_)),simulation):forces.get(name)},find:function(x,y,radius){var dx,dy,d2,node,closest,i=0,n=nodes.length;for(null==radius?radius=1/0:radius*=radius,i=0;i1?(event.on(name,_),simulation):event.on(name)}}}const ForceMap={center:function forceCenter(x,y){var nodes,strength=1;function force(){var i,node,n=nodes.length,sx=0,sy=0;for(i=0;ixi+r||x1yi+r||y1node.index){var x=xi-data.x-data.vx,y=yi-data.y-data.vy,l=x*x+y*y;lquad.r&&(quad.r=quad[i].r)}function initialize(){if(nodes){var i,node,n=nodes.length;for(radii=new Array(n),i=0;i=distanceMax2)){(quad.data!==node||quad.next)&&(0===x&&(l+=(x=jiggle(random))*x),0===y&&(l+=(y=jiggle(random))*y),l[id(d,i,nodes),d])));for(i=0,count=new Array(n);iv(d,_):v)}Force.Definition={type:"Force",metadata:{modifies:!0},params:[{name:"static",type:"boolean",default:!1},{name:"restart",type:"boolean",default:!1},{name:"iterations",type:"number",default:300},{name:"alpha",type:"number",default:1},{name:"alphaMin",type:"number",default:.001},{name:"alphaTarget",type:"number",default:0},{name:"velocityDecay",type:"number",default:.4},{name:"forces",type:"param",array:!0,params:[{key:{force:"center"},params:[{name:"x",type:"number",default:0},{name:"y",type:"number",default:0}]},{key:{force:"collide"},params:[{name:"radius",type:"number",expr:!0},{name:"strength",type:"number",default:.7},{name:"iterations",type:"number",default:1}]},{key:{force:"nbody"},params:[{name:"strength",type:"number",default:-30,expr:!0},{name:"theta",type:"number",default:.9},{name:"distanceMin",type:"number",default:1},{name:"distanceMax",type:"number"}]},{key:{force:"link"},params:[{name:"links",type:"data"},{name:"id",type:"field"},{name:"distance",type:"number",default:30,expr:!0},{name:"strength",type:"number",expr:!0},{name:"iterations",type:"number",default:1}]},{key:{force:"x"},params:[{name:"strength",type:"number",default:.1},{name:"x",type:"field"}]},{key:{force:"y"},params:[{name:"strength",type:"number",default:.1},{name:"y",type:"field"}]}]},{name:"as",type:"string",array:!0,modify:!1,default:ForceOutput}]},inherits(Force,Transform,{transform(_,pulse){var sim=this.value,change=pulse.changed(pulse.ADD_REM),params=_.modified(ForceParams),iters=_.iterations||300;if(sim?(change&&(pulse.modifies("index"),sim.nodes(pulse.source)),(params||pulse.changed(pulse.MOD))&&setup(sim,_,0,pulse)):(this.value=sim=function simulation(nodes,_){const sim=forceSimulation(nodes),stop=sim.stop,restart=sim.restart;let stopped=!1;return sim.stopped=()=>stopped,sim.restart=()=>(stopped=!1,restart()),sim.stop=()=>(stopped=!0,stop()),setup(sim,_,!0).on("end",(()=>stopped=!0))}(pulse.source,_),sim.on("tick",function rerun(df,op){return()=>df.touch(op).run()}(pulse.dataflow,this)),_.static||(change=!0,sim.tick()),pulse.modifies("index")),params||change||_.modified(ForceConfig)||pulse.changed()&&_.restart)if(sim.alpha(Math.max(sim.alpha(),_.alpha||1)).alphaDecay(1-Math.pow(sim.alphaMin(),1/iters)),_.static)for(sim.stop();--iters>=0;)sim.tick();else if(sim.stopped()&&sim.restart(),!change)return pulse.StopPropagation;return this.finish(_,pulse)},finish(_,pulse){const dataflow=pulse.dataflow;for(let arg,args=this._argops,j=0,m=args.length;j=0;)sum+=children[i].value;else sum=1;node.value=sum}function hierarchy(data,children){data instanceof Map?(data=[void 0,data],void 0===children&&(children=mapChildren)):void 0===children&&(children=objectChildren);for(var node,child,childs,i,n,root=new Node$2(data),nodes=[root];node=nodes.pop();)if((childs=children(node.data))&&(n=(childs=Array.from(childs)).length))for(node.children=childs,i=n-1;i>=0;--i)nodes.push(child=childs[i]=new Node$2(childs[i])),child.parent=node,child.depth=node.depth+1;return root.eachBefore(computeHeight)}function objectChildren(d){return d.children}function mapChildren(d){return Array.isArray(d)?d[1]:null}function copyData(node){void 0!==node.data.value&&(node.value=node.data.value),node.data=node.data.data}function computeHeight(node){var height=0;do{node.height=height}while((node=node.parent)&&node.height<++height)}function Node$2(data){this.data=data,this.depth=this.height=0,this.parent=null}function optional(f){return null==f?null:required(f)}function required(f){if("function"!=typeof f)throw new Error;return f}function constantZero(){return 0}function constant(x){return function(){return x}}Node$2.prototype=hierarchy.prototype={constructor:Node$2,count:function node_count(){return this.eachAfter(count)},each:function node_each(callback,that){let index=-1;for(const node of this)callback.call(that,node,++index,this);return this},eachAfter:function node_eachAfter(callback,that){for(var children,i,n,node=this,nodes=[node],next=[],index=-1;node=nodes.pop();)if(next.push(node),children=node.children)for(i=0,n=children.length;i=0;--i)nodes.push(children[i]);return this},find:function node_find(callback,that){let index=-1;for(const node of this)if(callback.call(that,node,++index,this))return node},sum:function node_sum(value){return this.eachAfter((function(node){for(var sum=+value(node.data)||0,children=node.children,i=children&&children.length;--i>=0;)sum+=children[i].value;node.value=sum}))},sort:function node_sort(compare){return this.eachBefore((function(node){node.children&&node.children.sort(compare)}))},path:function node_path(end){for(var start=this,ancestor=function leastCommonAncestor(a,b){if(a===b)return a;var aNodes=a.ancestors(),bNodes=b.ancestors(),c=null;a=aNodes.pop(),b=bNodes.pop();for(;a===b;)c=a,a=aNodes.pop(),b=bNodes.pop();return c}(start,end),nodes=[start];start!==ancestor;)start=start.parent,nodes.push(start);for(var k=nodes.length;end!==ancestor;)nodes.splice(k,0,end),end=end.parent;return nodes},ancestors:function node_ancestors(){for(var node=this,nodes=[node];node=node.parent;)nodes.push(node);return nodes},descendants:function node_descendants(){return Array.from(this)},leaves:function node_leaves(){var leaves=[];return this.eachBefore((function(node){node.children||leaves.push(node)})),leaves},links:function node_links(){var root=this,links=[];return root.each((function(node){node!==root&&links.push({source:node.parent,target:node})})),links},copy:function node_copy(){return hierarchy(this).eachBefore(copyData)},[Symbol.iterator]:function*node_iterator(){var current,children,i,n,node=this,next=[node];do{for(current=next.reverse(),next=[];node=current.pop();)if(yield node,children=node.children)for(i=0,n=children.length;i0&&dr*dr>dx*dx+dy*dy}function enclosesWeakAll(a,B){for(var i=0;i1e-6?(B+Math.sqrt(B*B-4*A*C))/(2*A):C/B);return{x:x1+xa+xb*r,y:y1+ya+yb*r,r}}function place(b,a,c){var x,a2,y,b2,dx=b.x-a.x,dy=b.y-a.y,d2=dx*dx+dy*dy;d2?(a2=a.r+c.r,a2*=a2,b2=b.r+c.r,a2>(b2*=b2)?(x=(d2+b2-a2)/(2*d2),y=Math.sqrt(Math.max(0,b2/d2-x*x)),c.x=b.x-x*dx-y*dy,c.y=b.y-x*dy+y*dx):(x=(d2+a2-b2)/(2*d2),y=Math.sqrt(Math.max(0,a2/d2-x*x)),c.x=a.x+x*dx-y*dy,c.y=a.y+x*dy+y*dx)):(c.x=a.x+c.r,c.y=a.y)}function intersects(a,b){var dr=a.r+b.r-1e-6,dx=b.x-a.x,dy=b.y-a.y;return dr>0&&dr*dr>dx*dx+dy*dy}function score(node){var a=node._,b=node.next._,ab=a.r+b.r,dx=(a.x*b.r+b.x*a.r)/ab,dy=(a.y*b.r+b.y*a.r)/ab;return dx*dx+dy*dy}function Node$1(circle){this._=circle,this.next=null,this.previous=null}function packSiblingsRandom(circles,random){if(!(n=(circles=function array$2(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}(circles)).length))return 0;var a,b,c,n,aa,ca,i,j,k,sj,sk;if((a=circles[0]).x=0,a.y=0,!(n>1))return a.r;if(b=circles[1],a.x=-b.r,b.x=a.r,b.y=0,!(n>2))return a.r+b.r;place(b,a,c=circles[2]),a=new Node$1(a),b=new Node$1(b),c=new Node$1(c),a.next=c.previous=b,b.next=a.previous=c,c.next=b.previous=a;pack:for(i=3;ifunction normalize$1(path){path=`${path}`;let i=path.length;slash(path,i-1)&&!slash(path,i-2)&&(path=path.slice(0,-1));return"/"===path[0]?path:`/${path}`}(path(d,i,data)))),P=I.map(parentof),S=new Set(I).add("");for(const i of P)S.has(i)||(S.add(i),I.push(i),P.push(parentof(i)),nodes.push(imputed));currentId=(_,i)=>I[i],currentParentId=(_,i)=>P[i]}for(i=0,n=nodes.length;i=0&&(node=nodes[i]).data===imputed;--i)node.data=null}if(root.parent=preroot,root.eachBefore((function(node){node.depth=node.parent.depth+1,--n})).eachBefore(computeHeight),root.parent=null,n>0)throw new Error("cycle");return root}return stratify.id=function(x){return arguments.length?(id=optional(x),stratify):id},stratify.parentId=function(x){return arguments.length?(parentId=optional(x),stratify):parentId},stratify.path=function(x){return arguments.length?(path=optional(x),stratify):path},stratify}function parentof(path){let i=path.length;if(i<2)return"";for(;--i>1&&!slash(path,i););return path.slice(0,i)}function slash(path,i){if("/"===path[i]){let k=0;for(;i>0&&"\\"===path[--i];)++k;if(0==(1&k))return!0}return!1}function defaultSeparation$1(a,b){return a.parent===b.parent?1:2}function nextLeft(v){var children=v.children;return children?children[0]:v.t}function nextRight(v){var children=v.children;return children?children[children.length-1]:v.t}function moveSubtree(wm,wp,shift){var change=shift/(wp.i-wm.i);wp.c-=change,wp.s+=shift,wm.c+=change,wp.z+=shift,wp.m+=shift}function nextAncestor(vim,v,ancestor){return vim.a.parent===v.parent?vim.a:ancestor}function TreeNode(node,i){this._=node,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function treemapSlice(parent,x0,y0,x1,y1){for(var node,nodes=parent.children,i=-1,n=nodes.length,k=parent.value&&(y1-y0)/parent.value;++imaxValue&&(maxValue=nodeValue),beta=sumValue*sumValue*alpha,(newRatio=Math.max(maxValue/beta,beta/minValue))>minRatio){sumValue-=nodeValue;break}minRatio=newRatio}rows.push(row={value:sumValue,dice:dx1?x:1)},squarify}(phi);var treemapResquarify=function custom(ratio){function resquarify(parent,x0,y0,x1,y1){if((rows=parent._squarify)&&rows.ratio===ratio)for(var rows,row,nodes,i,n,j=-1,m=rows.length,value=parent.value;++j1?x:1)},resquarify}(phi);function lookup$2(tree,key,filter){const map={};return tree.each((node=>{const t=node.data;filter(t)&&(map[key(t)]=node)})),tree.lookup=map,tree}function Nest(params){Transform.call(this,null,params)}Nest.Definition={type:"Nest",metadata:{treesource:!0,changes:!0},params:[{name:"keys",type:"field",array:!0},{name:"generate",type:"boolean"}]};const children$1=n=>n.values;function nest(){const keys=[],nest={entries:array=>entries(apply(array,0),0),key:d=>(keys.push(d),nest)};function apply(array,depth){if(depth>=keys.length)return array;const n=array.length,key=keys[depth++],valuesByKey={},result={};let keyValue,value,values,i=-1;for(;++ikeys.length)return map;const array=[];for(const key in map)array.push({key,values:entries(map[key],depth)});return array}return nest}function HierarchyLayout(params){Transform.call(this,null,params)}inherits(Nest,Transform,{transform(_,pulse){pulse.source||error("Nest transform requires an upstream data source.");var gen=_.generate,mod=_.modified(),out=pulse.clone(),tree=this.value;return(!tree||mod||pulse.changed())&&(tree&&tree.each((node=>{node.children&&isTuple(node.data)&&out.rem.push(node.data)})),this.value=tree=hierarchy({values:array$5(_.keys).reduce(((n,k)=>(n.key(k),n)),nest()).entries(out.source)},children$1),gen&&tree.each((node=>{node.children&&(node=ingest$1(node.data),out.add.push(node),out.source.push(node))})),lookup$2(tree,tupleid,tupleid)),out.source.root=tree,out}});const defaultSeparation=(a,b)=>a.parent===b.parent?1:2;inherits(HierarchyLayout,Transform,{transform(_,pulse){pulse.source&&pulse.source.root||error(this.constructor.name+" transform requires a backing tree data source.");const layout=this.layout(_.method),fields=this.fields,root=pulse.source.root,as=_.as||fields;_.field?root.sum(_.field):root.count(),_.sort&&root.sort(stableCompare(_.sort,(d=>d.data))),function setParams(layout,params,_){for(let p,i=0,n=params.length;ifunction setFields(node,fields,as){const t=node.data,n=fields.length-1;for(let i=0;i(s=(a*s+c)%m)/m}();return root.x=dx/2,root.y=dy/2,radius?root.eachBefore(radiusLeaf(radius)).eachAfter(packChildrenRandom(padding,.5,random)).eachBefore(translateChild(1)):root.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildrenRandom(constantZero,1,random)).eachAfter(packChildrenRandom(padding,root.r/Math.min(dx,dy),random)).eachBefore(translateChild(Math.min(dx,dy)/(2*root.r))),root}return pack.radius=function(x){return arguments.length?(radius=optional(x),pack):radius},pack.size=function(x){return arguments.length?(dx=+x[0],dy=+x[1],pack):[dx,dy]},pack.padding=function(x){return arguments.length?(padding="function"==typeof x?x:constant(+x),pack):padding},pack},params:["radius","size","padding"],fields:Output$3});const Output$2=["x0","y0","x1","y1","depth","children"];function Partition(params){HierarchyLayout.call(this,params)}function Stratify(params){Transform.call(this,null,params)}Partition.Definition={type:"Partition",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"padding",type:"number",default:0},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:Output$2.length,default:Output$2}]},inherits(Partition,HierarchyLayout,{layout:function partition$1(){var dx=1,dy=1,padding=0,round=!1;function partition(root){var n=root.height+1;return root.x0=root.y0=padding,root.x1=dx,root.y1=dy/n,root.eachBefore(function positionNode(dy,n){return function(node){node.children&&treemapDice(node,node.x0,dy*(node.depth+1)/n,node.x1,dy*(node.depth+2)/n);var x0=node.x0,y0=node.y0,x1=node.x1-padding,y1=node.y1-padding;x1=0;--i)nodes.push(child=node.children[i]=new TreeNode(children[i],i)),child.parent=node;return(tree.parent=new TreeNode(null,0)).children=[tree],tree}(root);if(t.eachAfter(firstWalk),t.parent.m=-t.z,t.eachBefore(secondWalk),nodeSize)root.eachBefore(sizeNode);else{var left=root,right=root,bottom=root;root.eachBefore((function(node){node.xright.x&&(right=node),node.depth>bottom.depth&&(bottom=node)}));var s=left===right?1:separation(left,right)/2,tx=s-left.x,kx=dx/(right.x+s+tx),ky=dy/(bottom.depth||1);root.eachBefore((function(node){node.x=(node.x+tx)*kx,node.y=node.depth*ky}))}return root}function firstWalk(v){var children=v.children,siblings=v.parent.children,w=v.i?siblings[v.i-1]:null;if(children){!function executeShifts(v){for(var w,shift=0,change=0,children=v.children,i=children.length;--i>=0;)(w=children[i]).z+=shift,w.m+=shift,shift+=w.s+(change+=w.c)}(v);var midpoint=(children[0].z+children[children.length-1].z)/2;w?(v.z=w.z+separation(v._,w._),v.m=v.z-midpoint):v.z=midpoint}else w&&(v.z=w.z+separation(v._,w._));v.parent.A=function apportion(v,w,ancestor){if(w){for(var shift,vip=v,vop=v,vim=w,vom=vip.parent.children[0],sip=vip.m,sop=vop.m,sim=vim.m,som=vom.m;vim=nextRight(vim),vip=nextLeft(vip),vim&&vip;)vom=nextLeft(vom),(vop=nextRight(vop)).a=v,(shift=vim.z+sim-vip.z-sip+separation(vim._,vip._))>0&&(moveSubtree(nextAncestor(vim,v,ancestor),v,shift),sip+=shift,sop+=shift),sim+=vim.m,sip+=vip.m,som+=vom.m,sop+=vop.m;vim&&!nextRight(vop)&&(vop.t=vim,vop.m+=sim-sop),vip&&!nextLeft(vom)&&(vom.t=vip,vom.m+=sip-som,ancestor=v)}return ancestor}(v,w,v.parent.A||siblings[0])}function secondWalk(v){v._.x=v.z+v.parent.m,v.m+=v.parent.m}function sizeNode(node){node.x*=dx,node.y=node.depth*dy}return tree.separation=function(x){return arguments.length?(separation=x,tree):separation},tree.size=function(x){return arguments.length?(nodeSize=!1,dx=+x[0],dy=+x[1],tree):nodeSize?null:[dx,dy]},tree.nodeSize=function(x){return arguments.length?(nodeSize=!0,dx=+x[0],dy=+x[1],tree):nodeSize?[dx,dy]:null},tree},cluster:function cluster(){var separation=defaultSeparation$2,dx=1,dy=1,nodeSize=!1;function cluster(root){var previousNode,x=0;root.eachAfter((function(node){var children=node.children;children?(node.x=function meanX(children){return children.reduce(meanXReduce,0)/children.length}(children),node.y=function maxY(children){return 1+children.reduce(maxYReduce,0)}(children)):(node.x=previousNode?x+=separation(node,previousNode):0,node.y=0,previousNode=node)}));var left=function leafLeft(node){for(var children;children=node.children;)node=children[0];return node}(root),right=function leafRight(node){for(var children;children=node.children;)node=children[children.length-1];return node}(root),x0=left.x-separation(left,right)/2,x1=right.x+separation(right,left)/2;return root.eachAfter(nodeSize?function(node){node.x=(node.x-root.x)*dx,node.y=(root.y-node.y)*dy}:function(node){node.x=(node.x-x0)/(x1-x0)*dx,node.y=(1-(root.y?node.y/root.y:1))*dy})}return cluster.separation=function(x){return arguments.length?(separation=x,cluster):separation},cluster.size=function(x){return arguments.length?(nodeSize=!1,dx=+x[0],dy=+x[1],cluster):nodeSize?null:[dx,dy]},cluster.nodeSize=function(x){return arguments.length?(nodeSize=!0,dx=+x[0],dy=+x[1],cluster):nodeSize?[dx,dy]:null},cluster}},Output$1$1=["x","y","depth","children"];function Tree(params){HierarchyLayout.call(this,params)}function TreeLinks(params){Transform.call(this,[],params)}Tree.Definition={type:"Tree",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"tidy",values:["tidy","cluster"]},{name:"size",type:"number",array:!0,length:2},{name:"nodeSize",type:"number",array:!0,length:2},{name:"separation",type:"boolean",default:!0},{name:"as",type:"string",array:!0,length:Output$1$1.length,default:Output$1$1}]},inherits(Tree,HierarchyLayout,{layout(method){const m=method||"tidy";if(has$1(Layouts,m))return Layouts[m]();error("Unrecognized Tree layout method: "+m)},params:["size","nodeSize"],fields:Output$1$1}),TreeLinks.Definition={type:"TreeLinks",metadata:{tree:!0,generates:!0,changes:!0},params:[]},inherits(TreeLinks,Transform,{transform(_,pulse){const links=this.value,tree=pulse.source&&pulse.source.root,out=pulse.fork(pulse.NO_SOURCE),lut={};return tree||error("TreeLinks transform requires a tree data source."),pulse.changed(pulse.ADD_REM)?(out.rem=links,pulse.visit(pulse.SOURCE,(t=>lut[tupleid(t)]=1)),tree.each((node=>{const t=node.data,p=node.parent&&node.parent.data;p&&lut[tupleid(t)]&&lut[tupleid(p)]&&out.add.push(ingest$1({source:p,target:t}))})),this.value=out.add):pulse.changed(pulse.MOD)&&(pulse.visit(pulse.MOD,(t=>lut[tupleid(t)]=1)),links.forEach((link=>{(lut[tupleid(link.source)]||lut[tupleid(link.target)])&&out.mod.push(link)}))),out}});const Tiles={binary:function treemapBinary(parent,x0,y0,x1,y1){var i,sum,nodes=parent.children,n=nodes.length,sums=new Array(n+1);for(sums[0]=sum=i=0;i=j-1){var node=nodes[i];return node.x0=x0,node.y0=y0,node.x1=x1,void(node.y1=y1)}var valueOffset=sums[i],valueTarget=value/2+valueOffset,k=i+1,hi=j-1;for(;k>>1;sums[mid]y1-y0){var xk=value?(x0*valueRight+x1*valueLeft)/value:x1;partition(i,k,valueLeft,x0,y0,xk,y1),partition(k,j,valueRight,xk,y0,x1,y1)}else{var yk=value?(y0*valueRight+y1*valueLeft)/value:y1;partition(i,k,valueLeft,x0,y0,x1,yk),partition(k,j,valueRight,x0,yk,x1,y1)}}(0,n,parent.value,x0,y0,x1,y1)},dice:treemapDice,slice:treemapSlice,slicedice:function treemapSliceDice(parent,x0,y0,x1,y1){(1&parent.depth?treemapSlice:treemapDice)(parent,x0,y0,x1,y1)},squarify:treemapSquarify,resquarify:treemapResquarify},Output$4=["x0","y0","x1","y1","depth","children"];function Treemap(params){HierarchyLayout.call(this,params)}Treemap.Definition={type:"Treemap",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:Output$4.length,default:Output$4}]},inherits(Treemap,HierarchyLayout,{layout(){const x=function treemap(){var tile=treemapSquarify,round=!1,dx=1,dy=1,paddingStack=[0],paddingInner=constantZero,paddingTop=constantZero,paddingRight=constantZero,paddingBottom=constantZero,paddingLeft=constantZero;function treemap(root){return root.x0=root.y0=0,root.x1=dx,root.y1=dy,root.eachBefore(positionNode),paddingStack=[0],round&&root.eachBefore(roundNode),root}function positionNode(node){var p=paddingStack[node.depth],x0=node.x0+p,y0=node.y0+p,x1=node.x1-p,y1=node.y1-p;x1{const t=x.tile();t.ratio&&x.tile(t.ratio(_))},x.method=_=>{has$1(Tiles,_)?x.tile(Tiles[_]):error("Unrecognized Treemap layout method: "+_)},x},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:Output$4});var tree=Object.freeze({__proto__:null,nest:Nest,pack:Pack,partition:Partition,stratify:Stratify,tree:Tree,treelinks:TreeLinks,treemap:Treemap});const ALPHA_MASK=4278190080;function getBuffer(context,width,height){return new Uint32Array(context.getImageData(0,0,width,height).data.buffer)}function draw(context,items,interior){if(!items.length)return;const type=items[0].mark.marktype;"group"===type?items.forEach((group=>{group.items.forEach((mark=>draw(context,mark.items,interior)))})):Marks[type].draw(context,{items:interior?items.map(prepare):items})}function prepare(source){const item=rederive(source,{});return item.stroke&&0!==item.strokeOpacity||item.fill&&0!==item.fillOpacity?{...item,strokeOpacity:1,stroke:"#000",fillOpacity:0}:item}const DIV=5,MOD=31,SIZE$1=32,RIGHT0=new Uint32Array(SIZE$1+1),RIGHT1=new Uint32Array(SIZE$1+1);RIGHT1[0]=0,RIGHT0[0]=~RIGHT1[0];for(let i=1;i<=SIZE$1;++i)RIGHT1[i]=RIGHT1[i-1]<<1|1,RIGHT0[i]=~RIGHT1[i];function scaler(width,height,padding){const ratio=Math.max(1,Math.sqrt(width*height/1e6)),w=~~((width+2*padding+ratio)/ratio),h=~~((height+2*padding+ratio)/ratio),scale=_=>~~((_+padding)/ratio);return scale.invert=_=>_*ratio-padding,scale.bitmap=()=>function Bitmap(w,h){const array=new Uint32Array(~~((w*h+SIZE$1)/SIZE$1));function _set(index,mask){array[index]|=mask}function _clear(index,mask){array[index]&=mask}return{array,get:(x,y)=>{const index=y*w+x;return array[index>>>DIV]&1<<(index&MOD)},set:(x,y)=>{const index=y*w+x;_set(index>>>DIV,1<<(index&MOD))},clear:(x,y)=>{const index=y*w+x;_clear(index>>>DIV,~(1<<(index&MOD)))},getRange:(x,y,x2,y2)=>{let start,end,indexStart,indexEnd,r=y2;for(;r>=y;--r)if(start=r*w+x,end=r*w+x2,indexStart=start>>>DIV,indexEnd=end>>>DIV,indexStart===indexEnd){if(array[indexStart]&RIGHT0[start&MOD]&RIGHT1[1+(end&MOD)])return!0}else{if(array[indexStart]&RIGHT0[start&MOD])return!0;if(array[indexEnd]&RIGHT1[1+(end&MOD)])return!0;for(let i=indexStart+1;i{let start,end,indexStart,indexEnd,i;for(;y<=y2;++y)if(start=y*w+x,end=y*w+x2,indexStart=start>>>DIV,indexEnd=end>>>DIV,indexStart===indexEnd)_set(indexStart,RIGHT0[start&MOD]&RIGHT1[1+(end&MOD)]);else for(_set(indexStart,RIGHT0[start&MOD]),_set(indexEnd,RIGHT1[1+(end&MOD)]),i=indexStart+1;i{let start,end,indexStart,indexEnd,i;for(;y<=y2;++y)if(start=y*w+x,end=y*w+x2,indexStart=start>>>DIV,indexEnd=end>>>DIV,indexStart===indexEnd)_clear(indexStart,RIGHT1[start&MOD]|RIGHT0[1+(end&MOD)]);else for(_clear(indexStart,RIGHT1[start&MOD]),_clear(indexEnd,RIGHT0[1+(end&MOD)]),i=indexStart+1;ix<0||y<0||y2>=h||x2>=w}}(w,h),scale.ratio=ratio,scale.padding=padding,scale.width=width,scale.height=height,scale}function outOfBounds(x,y,textWidth,textHeight,width,height){let r=textWidth/2;return x-r<0||x+r>width||y-(r=textHeight/2)<0||y+r>height}function collision($,x,y,textHeight,textWidth,h,bm0,bm1){const w=textWidth*h/(2*textHeight),x1=$(x-w),x2=$(x+w),y1=$(y-(h/=2)),y2=$(y+h);return bm0.outOfBounds(x1,y1,x2,y2)||bm0.getRange(x1,y1,x2,y2)||bm1&&bm1.getRange(x1,y1,x2,y2)}const X_DIR=[-1,-1,1,1],Y_DIR=[-1,1,-1,1];const Aligns=["right","center","left"],Baselines=["bottom","middle","top"];function test(_x1,_x2,_y1,_y2,bm0,bm1,x1,x2,y1,y2,boundary,isInside){return!(bm0.outOfBounds(_x1,_y1,_x2,_y2)||(isInside&&bm1||bm0).getRange(_x1,_y1,_x2,_y2))}const anchorCode={"top-left":0,top:1,"top-right":2,left:4,middle:5,right:6,"bottom-left":8,bottom:9,"bottom-right":10},placeAreaLabel={naive:function placeAreaLabelNaive($,bitmaps,avoidBaseMark,markIndex){const width=$.width,height=$.height;return function(d){const items=d.datum.datum.items[markIndex].items,n=items.length,textHeight=d.datum.fontSize,textWidth=textMetrics.width(d.datum,d.datum.text);let x1,x2,y1,y2,x,y,areaWidth,maxAreaWidth=0;for(let i=0;i=maxAreaWidth&&(maxAreaWidth=areaWidth,d.x=x,d.y=y);return x=textWidth/2,y=textHeight/2,x1=d.x-x,x2=d.x+x,y1=d.y-y,y2=d.y+y,d.align="center",x1<0&&x2<=width?d.align="left":0<=x1&&width=1;)mid=(lo+hi)/2,collision($,x,y,textHeight,textWidth,mid,bm0,bm1)?hi=mid:lo=mid;if(lo>maxSize)return[x,y,lo,!0]}}return function(d){const items=d.datum.datum.items[markIndex].items,n=items.length,textHeight=d.datum.fontSize,textWidth=textMetrics.width(d.datum,d.datum.text);let x1,x2,y1,y2,x,y,_x,_y,_x1,_xMid,_x2,_y1,_yMid,_y2,areaWidth,result,swapTmp,maxSize=avoidBaseMark?textHeight:0,labelPlaced=!1,labelPlaced2=!1,maxAreaWidth=0;for(let i=0;ix2&&(swapTmp=x1,x1=x2,x2=swapTmp),y1>y2&&(swapTmp=y1,y1=y2,y2=swapTmp),_x1=$(x1),_x2=$(x2),_xMid=~~((_x1+_x2)/2),_y1=$(y1),_y2=$(y2),_yMid=~~((_y1+_y2)/2),_x=_xMid;_x>=_x1;--_x)for(_y=_yMid;_y>=_y1;--_y)result=tryLabel(_x,_y,maxSize,textWidth,textHeight),result&&([d.x,d.y,maxSize,labelPlaced]=result);for(_x=_xMid;_x<=_x2;++_x)for(_y=_yMid;_y<=_y2;++_y)result=tryLabel(_x,_y,maxSize,textWidth,textHeight),result&&([d.x,d.y,maxSize,labelPlaced]=result);labelPlaced||avoidBaseMark||(areaWidth=Math.abs(x2-x1+y2-y1),x=(x1+x2)/2,y=(y1+y2)/2,areaWidth>=maxAreaWidth&&!outOfBounds(x,y,textWidth,textHeight,width,height)&&!collision($,x,y,textHeight,textWidth,textHeight,bm0,null)&&(maxAreaWidth=areaWidth,d.x=x,d.y=y,labelPlaced2=!0))}return!(!labelPlaced&&!labelPlaced2)&&(x=textWidth/2,y=textHeight/2,bm0.setRange($(d.x-x),$(d.y-y),$(d.x+x),$(d.y+y)),d.align="center",d.baseline="middle",!0)}},floodfill:function placeAreaLabelFloodFill($,bitmaps,avoidBaseMark,markIndex){const width=$.width,height=$.height,bm0=bitmaps[0],bm1=bitmaps[1],bm2=$.bitmap();return function(d){const items=d.datum.datum.items[markIndex].items,n=items.length,textHeight=d.datum.fontSize,textWidth=textMetrics.width(d.datum,d.datum.text),stack=[];let x1,x2,y1,y2,x,y,_x,_y,lo,hi,mid,areaWidth,maxSize=avoidBaseMark?textHeight:0,labelPlaced=!1,labelPlaced2=!1,maxAreaWidth=0;for(let i=0;i=1;)mid=(lo+hi)/2,collision($,x,y,textHeight,textWidth,mid,bm0,bm1)?hi=mid:lo=mid;lo>maxSize&&(d.x=x,d.y=y,maxSize=lo,labelPlaced=!0)}}labelPlaced||avoidBaseMark||(areaWidth=Math.abs(x2-x1+y2-y1),x=(x1+x2)/2,y=(y1+y2)/2,areaWidth>=maxAreaWidth&&!outOfBounds(x,y,textWidth,textHeight,width,height)&&!collision($,x,y,textHeight,textWidth,textHeight,bm0,null)&&(maxAreaWidth=areaWidth,d.x=x,d.y=y,labelPlaced2=!0))}return!(!labelPlaced&&!labelPlaced2)&&(x=textWidth/2,y=textHeight/2,bm0.setRange($(d.x-x),$(d.y-y),$(d.x+x),$(d.y+y)),d.align="center",d.baseline="middle",!0)}}};function labelLayout(texts,size,compare,offset,anchor,avoidMarks,avoidBaseMark,lineAnchor,markIndex,padding,method){if(!texts.length)return texts;const positions=Math.max(offset.length,anchor.length),offsets=function getOffsets(_,count){const offsets=new Float64Array(count),n=_.length;for(let i=0;i[d.x,d.x,d.x,d.y,d.y,d.y];return marktype?"line"===marktype||"area"===marktype?d=>xy(d.datum):"line"===grouptype?d=>{const items=d.datum.items[markIndex].items;return xy(items.length?items["start"===lineAnchor?0:items.length-1]:{x:NaN,y:NaN})}:d=>{const b=d.datum.bounds;return[b.x1,(b.x1+b.x2)/2,b.x2,b.y1,(b.y1+b.y2)/2,b.y2]}:xy}(marktype,grouptype,lineAnchor,markIndex),infPadding=null===padding||padding===1/0,isNaiveGroupArea=isGroupArea&&"naive"===method;let maxTextWidth=-1,maxTextHeight=-1;const data=texts.map((d=>{const textWidth=infPadding?textMetrics.width(d,d.text):void 0;return maxTextWidth=Math.max(maxTextWidth,textWidth),maxTextHeight=Math.max(maxTextHeight,d.fontSize),{datum:d,opacity:0,x:void 0,y:void 0,align:void 0,baseline:void 0,boundary:boundary(d),textWidth}}));padding=null===padding||padding===1/0?Math.max(maxTextWidth,maxTextHeight)+Math.max(...offset):padding;const $=scaler(size[0],size[1],padding);let bitmaps;if(!isNaiveGroupArea){compare&&data.sort(((a,b)=>compare(a.datum,b.datum)));let labelInside=!1;for(let i=0;id.datum));bitmaps=avoidMarks.length||baseMark?function markBitmaps($,baseMark,avoidMarks,labelInside,isGroupArea){const width=$.width,height=$.height,border=labelInside||isGroupArea,context=domCanvas(width,height).getContext("2d"),baseMarkContext=domCanvas(width,height).getContext("2d"),strokeContext=border&&domCanvas(width,height).getContext("2d");avoidMarks.forEach((items=>draw(context,items,!1))),draw(baseMarkContext,baseMark,!1),border&&draw(strokeContext,baseMark,!0);const buffer=getBuffer(context,width,height),baseMarkBuffer=getBuffer(baseMarkContext,width,height),strokeBuffer=border&&getBuffer(strokeContext,width,height),layer1=$.bitmap(),layer2=border&&$.bitmap();let x,y,u,v,index,alpha,strokeAlpha,baseMarkAlpha;for(y=0;ybitmap.set($(d.boundary[0]),$(d.boundary[3])))),[bitmap,void 0]}($,avoidBaseMark&&data)}const place=isGroupArea?placeAreaLabel[method]($,bitmaps,avoidBaseMark,markIndex):function placeMarkLabel($,bitmaps,anchors,offsets){const width=$.width,height=$.height,bm0=bitmaps[0],bm1=bitmaps[1],n=offsets.length;return function(d){const boundary=d.boundary,textHeight=d.datum.fontSize;if(boundary[2]<0||boundary[5]<0||boundary[0]>width||boundary[3]>height)return!1;let dx,dy,isInside,sizeFactor,insideFactor,x1,x2,y1,y2,xc,yc,_x1,_x2,_y1,_y2,textWidth=d.textWidth??0;for(let i=0;i>>2&3)-1,isInside=0===dx&&0===dy||offsets[i]<0,sizeFactor=dx&&dy?Math.SQRT1_2:1,insideFactor=offsets[i]<0?-1:1,x1=boundary[1+dx]+offsets[i]*dx*sizeFactor,yc=boundary[4+dy]+insideFactor*textHeight*dy/2+offsets[i]*dy*sizeFactor,y1=yc-textHeight/2,y2=yc+textHeight/2,_x1=$(x1),_y1=$(y1),_y2=$(y2),!textWidth){if(!test(_x1,_x1,_y1,_y2,bm0,bm1,0,0,0,0,0,isInside))continue;textWidth=textMetrics.width(d.datum,d.datum.text)}if(xc=x1+insideFactor*textWidth*dx/2,x1=xc-textWidth/2,x2=xc+textWidth/2,_x1=$(x1),_x2=$(x2),test(_x1,_x2,_y1,_y2,bm0,bm1,0,0,0,0,0,isInside))return d.x=dx?dx*insideFactor<0?x2:x1:xc,d.y=dy?dy*insideFactor<0?y2:y1:yc,d.align=Aligns[dx*insideFactor+1],d.baseline=Baselines[dy*insideFactor+1],bm0.setRange(_x1,_y1,_x2,_y2),!0}return!1}}($,bitmaps,anchors,offsets);return data.forEach((d=>d.opacity=+place(d))),data}const Output$1=["x","y","opacity","align","baseline"],Anchors=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function Label$1(params){Transform.call(this,null,params)}Label$1.Definition={type:"Label",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:!0,default:Anchors},{name:"offset",type:"number",array:!0,default:[1]},{name:"padding",type:"number",default:0,null:!0},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:!0},{name:"avoidMarks",type:"data",array:!0},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:!0,length:Output$1.length,default:Output$1}]},inherits(Label$1,Transform,{transform(_,pulse){const mod=_.modified();if(!(mod||pulse.changed(pulse.ADD_REM)||function modp(param){const p=_[param];return isFunction$1(p)&&pulse.modified(p.fields)}("sort")))return;_.size&&2===_.size.length||error("Size parameter should be specified as a [width, height] array.");const as=_.as||Output$1;return labelLayout(pulse.materialize(pulse.SOURCE).source||[],_.size,_.sort,array$5(null==_.offset?1:_.offset),array$5(_.anchor||Anchors),_.avoidMarks||[],!1!==_.avoidBaseMark,_.lineAnchor||"end",_.markIndex||0,void 0===_.padding?0:_.padding,_.method||"naive").forEach((l=>{const t=l.datum;t[as[0]]=l.x,t[as[1]]=l.y,t[as[2]]=l.opacity,t[as[3]]=l.align,t[as[4]]=l.baseline})),pulse.reflow(mod).modifies(as)}});var label=Object.freeze({__proto__:null,label:Label$1});function partition(data,groupby){var map,i,n,t,k,g,groups=[],get=function(f){return f(t)};if(null==groupby)groups.push(data);else for(map={},i=0,n=data.length;i{loess(g,_.x,_.y,_.bandwidth||.3).forEach((p=>{const t={};for(let i=0;i"poly"===method?order:"quad"===method?2:1)(method,order),as=_.as||[accessorName(_.x),accessorName(_.y)],fit=Methods[method],values=[];let domain=_.extent;has$1(Methods,method)||error("Invalid regression method: "+method),null!=domain&&"log"===method&&domain[0]<=0&&(pulse.dataflow.warn("Ignoring extent with values <= 0 for log regression."),domain=null),groups.forEach((g=>{if(g.length<=dof)return void pulse.dataflow.warn("Skipping regression with more parameters than data points.");const model=fit(g,_.x,_.y,order);if(_.params)return void values.push(ingest$1({keys:g.dims,coef:model.coef,rSquared:model.rSquared}));const dom=domain||extent(g,_.x),add=p=>{const t={};for(let i=0;iadd([x,model.predict(x)]))):sampleCurve(model.predict,dom,25,200).forEach(add)})),this.value&&(out.rem=this.value),this.value=out.add=out.source=values}return out}});var reg=Object.freeze({__proto__:null,loess:Loess,regression:Regression});const splitter=134217729,resulterrbound=33306690738754706e-32;function sum(elen,e,flen,f,h){let Q,Qnew,hh,bvirt,enow=e[0],fnow=f[0],eindex=0,findex=0;fnow>enow==fnow>-enow?(Q=enow,enow=e[++eindex]):(Q=fnow,fnow=f[++findex]);let hindex=0;if(eindexenow==fnow>-enow?(Qnew=enow+Q,hh=Q-(Qnew-enow),enow=e[++eindex]):(Qnew=fnow+Q,hh=Q-(Qnew-fnow),fnow=f[++findex]),Q=Qnew,0!==hh&&(h[hindex++]=hh);eindexenow==fnow>-enow?(Qnew=Q+enow,bvirt=Qnew-Q,hh=Q-(Qnew-bvirt)+(enow-bvirt),enow=e[++eindex]):(Qnew=Q+fnow,bvirt=Qnew-Q,hh=Q-(Qnew-bvirt)+(fnow-bvirt),fnow=f[++findex]),Q=Qnew,0!==hh&&(h[hindex++]=hh);for(;eindex=33306690738754716e-32*detsum?det:-function orient2dadapt(ax,ay,bx,by,cx,cy,detsum){let acxtail,acytail,bcxtail,bcytail,bvirt,c,ahi,alo,bhi,blo,_i,_j,_0,s1,s0,t1,t0,u3;const acx=ax-cx,bcx=bx-cx,acy=ay-cy,bcy=by-cy;s1=acx*bcy,c=splitter*acx,ahi=c-(c-acx),alo=acx-ahi,c=splitter*bcy,bhi=c-(c-bcy),blo=bcy-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acy*bcx,c=splitter*acy,ahi=c-(c-acy),alo=acy-ahi,c=splitter*bcx,bhi=c-(c-bcx),blo=bcx-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,B[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,B[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,B[2]=_j-(u3-bvirt)+(_i-bvirt),B[3]=u3;let det=function estimate(elen,e){let Q=e[0];for(let i=1;i=errbound||-det>=errbound)return det;if(bvirt=ax-acx,acxtail=ax-(acx+bvirt)+(bvirt-cx),bvirt=bx-bcx,bcxtail=bx-(bcx+bvirt)+(bvirt-cx),bvirt=ay-acy,acytail=ay-(acy+bvirt)+(bvirt-cy),bvirt=by-bcy,bcytail=by-(bcy+bvirt)+(bvirt-cy),0===acxtail&&0===acytail&&0===bcxtail&&0===bcytail)return det;if(errbound=ccwerrboundC*detsum+resulterrbound*Math.abs(det),det+=acx*bcytail+bcy*acxtail-(acy*bcxtail+bcx*acytail),det>=errbound||-det>=errbound)return det;s1=acxtail*bcy,c=splitter*acxtail,ahi=c-(c-acxtail),alo=acxtail-ahi,c=splitter*bcy,bhi=c-(c-bcy),blo=bcy-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acytail*bcx,c=splitter*acytail,ahi=c-(c-acytail),alo=acytail-ahi,c=splitter*bcx,bhi=c-(c-bcx),blo=bcx-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const C1len=sum(4,B,4,u,C1);s1=acx*bcytail,c=splitter*acx,ahi=c-(c-acx),alo=acx-ahi,c=splitter*bcytail,bhi=c-(c-bcytail),blo=bcytail-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acy*bcxtail,c=splitter*acy,ahi=c-(c-acy),alo=acy-ahi,c=splitter*bcxtail,bhi=c-(c-bcxtail),blo=bcxtail-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const C2len=sum(C1len,C1,4,u,C2);s1=acxtail*bcytail,c=splitter*acxtail,ahi=c-(c-acxtail),alo=acxtail-ahi,c=splitter*bcytail,bhi=c-(c-bcytail),blo=bcytail-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acytail*bcxtail,c=splitter*acytail,ahi=c-(c-acytail),alo=acytail-ahi,c=splitter*bcxtail,bhi=c-(c-bcxtail),blo=bcxtail-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const Dlen=sum(C2len,C2,4,u,D);return D[Dlen-1]}(ax,ay,bx,by,cx,cy,detsum)}const EPSILON=Math.pow(2,-52),EDGE_STACK=new Uint32Array(512);class Delaunator{static from(points,getX=defaultGetX,getY=defaultGetY){const n=points.length,coords=new Float64Array(2*n);for(let i=0;i>1;if(n>0&&"number"!=typeof coords[0])throw new Error("Expected coords to contain numbers.");this.coords=coords;const maxTriangles=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*maxTriangles),this._halfedges=new Int32Array(3*maxTriangles),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords,_hullPrev:hullPrev,_hullNext:hullNext,_hullTri:hullTri,_hullHash:hullHash}=this,n=coords.length>>1;let minX=1/0,minY=1/0,maxX=-1/0,maxY=-1/0;for(let i=0;imaxX&&(maxX=x),y>maxY&&(maxY=y),this._ids[i]=i}const cx=(minX+maxX)/2,cy=(minY+maxY)/2;let i0,i1,i2,minDist=1/0;for(let i=0;i0&&(i1=i,minDist=d)}let i1x=coords[2*i1],i1y=coords[2*i1+1],minRadius=1/0;for(let i=0;id0&&(hull[j++]=id,d0=this._dists[id])}return this.hull=hull.subarray(0,j),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(orient2d(i0x,i0y,i1x,i1y,i2x,i2y)<0){const i=i1,x=i1x,y=i1y;i1=i2,i1x=i2x,i1y=i2y,i2=i,i2x=x,i2y=y}const center=function circumcenter(ax,ay,bx,by,cx,cy){const dx=bx-ax,dy=by-ay,ex=cx-ax,ey=cy-ay,bl=dx*dx+dy*dy,cl=ex*ex+ey*ey,d=.5/(dx*ey-dy*ex),x=ax+(ey*bl-dy*cl)*d,y=ay+(dx*cl-ex*bl)*d;return{x,y}}(i0x,i0y,i1x,i1y,i2x,i2y);this._cx=center.x,this._cy=center.y;for(let i=0;i0&&Math.abs(x-xp)<=EPSILON&&Math.abs(y-yp)<=EPSILON)continue;if(xp=x,yp=y,i===i0||i===i1||i===i2)continue;let start=0;for(let j=0,key=this._hashKey(x,y);j=0;)if(e=q,e===start){e=-1;break}if(-1===e)continue;let t=this._addTriangle(e,i,hullNext[e],-1,-1,hullTri[e]);hullTri[i]=this._legalize(t+2),hullTri[e]=t,hullSize++;let n=hullNext[e];for(;q=hullNext[n],orient2d(x,y,coords[2*n],coords[2*n+1],coords[2*q],coords[2*q+1])<0;)t=this._addTriangle(n,i,q,hullTri[i],-1,hullTri[n]),hullTri[i]=this._legalize(t+2),hullNext[n]=n,hullSize--,n=q;if(e===start)for(;q=hullPrev[e],orient2d(x,y,coords[2*q],coords[2*q+1],coords[2*e],coords[2*e+1])<0;)t=this._addTriangle(q,i,e,-1,hullTri[e],hullTri[q]),this._legalize(t+2),hullTri[q]=t,hullNext[e]=e,hullSize--,e=q;this._hullStart=hullPrev[i]=e,hullNext[e]=hullPrev[n]=i,hullNext[i]=n,hullHash[this._hashKey(x,y)]=i,hullHash[this._hashKey(coords[2*e],coords[2*e+1])]=e}this.hull=new Uint32Array(hullSize);for(let i=0,e=this._hullStart;i0?3-p:1+p)/4}(x-this._cx,y-this._cy)*this._hashSize)%this._hashSize}_legalize(a){const{_triangles:triangles,_halfedges:halfedges,coords}=this;let i=0,ar=0;for(;;){const b=halfedges[a],a0=a-a%3;if(ar=a0+(a+2)%3,-1===b){if(0===i)break;a=EDGE_STACK[--i];continue}const b0=b-b%3,al=a0+(a+1)%3,bl=b0+(b+2)%3,p0=triangles[ar],pr=triangles[a],pl=triangles[al],p1=triangles[bl];if(inCircle(coords[2*p0],coords[2*p0+1],coords[2*pr],coords[2*pr+1],coords[2*pl],coords[2*pl+1],coords[2*p1],coords[2*p1+1])){triangles[a]=p1,triangles[b]=p0;const hbl=halfedges[bl];if(-1===hbl){let e=this._hullStart;do{if(this._hullTri[e]===bl){this._hullTri[e]=a;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(a,hbl),this._link(b,halfedges[ar]),this._link(ar,bl);const br=b0+(b+1)%3;i=left&&dists[ids[j]]>tempDist;)ids[j+1]=ids[j--];ids[j+1]=temp}else{let i=left+1,j=right;swap(ids,left+right>>1,i),dists[ids[left]]>dists[ids[right]]&&swap(ids,left,right),dists[ids[i]]>dists[ids[right]]&&swap(ids,i,right),dists[ids[left]]>dists[ids[i]]&&swap(ids,left,i);const temp=ids[i],tempDist=dists[temp];for(;;){do{i++}while(dists[ids[i]]tempDist);if(j=j-left?(quicksort(ids,dists,i,right),quicksort(ids,dists,left,j-1)):(quicksort(ids,dists,left,j-1),quicksort(ids,dists,i,right))}}function swap(arr,i,j){const tmp=arr[i];arr[i]=arr[j],arr[j]=tmp}function defaultGetX(p){return p[0]}function defaultGetY(p){return p[1]}class Path{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(x,y){this._+=`M${this._x0=this._x1=+x},${this._y0=this._y1=+y}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(x,y){this._+=`L${this._x1=+x},${this._y1=+y}`}arc(x,y,r){const x0=(x=+x)+(r=+r),y0=y=+y;if(r<0)throw new Error("negative radius");null===this._x1?this._+=`M${x0},${y0}`:(Math.abs(this._x1-x0)>1e-6||Math.abs(this._y1-y0)>1e-6)&&(this._+="L"+x0+","+y0),r&&(this._+=`A${r},${r},0,1,1,${x-r},${y}A${r},${r},0,1,1,${this._x1=x0},${this._y1=y0}`)}rect(x,y,w,h){this._+=`M${this._x0=this._x1=+x},${this._y0=this._y1=+y}h${+w}v${+h}h${-w}Z`}value(){return this._||null}}class Polygon{constructor(){this._=[]}moveTo(x,y){this._.push([x,y])}closePath(){this._.push(this._[0].slice())}lineTo(x,y){this._.push([x,y])}value(){return this._.length?this._:null}}const tau=2*Math.PI,pow=Math.pow;function pointX(p){return p[0]}function pointY(p){return p[1]}function jitter(x,y,r){return[x+Math.sin(x+y)*r,y+Math.cos(x-y)*r]}class Delaunay{static from(points,fx=pointX,fy=pointY,that){return new Delaunay("length"in points?function flatArray(points,fx,fy,that){const n=points.length,array=new Float64Array(2*n);for(let i=0;i2&&function collinear(d){const{triangles,coords}=d;for(let i=0;i1e-10)return!1}return!0}(d)){this.collinear=Int32Array.from({length:points.length/2},((_,i)=>i)).sort(((i,j)=>points[2*i]-points[2*j]||points[2*i+1]-points[2*j+1]));const e=this.collinear[0],f=this.collinear[this.collinear.length-1],bounds=[points[2*e],points[2*e+1],points[2*f],points[2*f+1]],r=1e-8*Math.hypot(bounds[3]-bounds[1],bounds[2]-bounds[0]);for(let i=0,n=points.length/2;i0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=hull[0],inedges[hull[0]]=1,2===hull.length&&(inedges[hull[1]]=0,this.triangles[1]=hull[1],this.triangles[2]=hull[1]))}voronoi(bounds){return new class Voronoi{constructor(delaunay,[xmin,ymin,xmax,ymax]=[0,0,960,500]){if(!((xmax=+xmax)>=(xmin=+xmin)&&(ymax=+ymax)>=(ymin=+ymin)))throw new Error("invalid bounds");this.delaunay=delaunay,this._circumcenters=new Float64Array(2*delaunay.points.length),this.vectors=new Float64Array(2*delaunay.points.length),this.xmax=xmax,this.xmin=xmin,this.ymax=ymax,this.ymin=ymin,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points,hull,triangles},vectors}=this;let bx,by;const circumcenters=this.circumcenters=this._circumcenters.subarray(0,triangles.length/3*2);for(let x,y,i=0,j=0,n=triangles.length;i1;)n-=2;for(let i=2;i0){if(y0>=this.ymax)return null;(c=(this.ymax-y0)/vy)0){if(x0>=this.xmax)return null;(c=(this.xmax-x0)/vx)this.xmax?2:0)|(ythis.ymax?8:0)}_simplify(P){if(P&&P.length>4){for(let i=0;i0&&(yield collinear[l-1]),void(l=0&&c!==i&&c!==i0;)i=c;return c}_step(i,x,y){const{inedges,hull,_hullIndex,halfedges,triangles,points}=this;if(-1===inedges[i]||!points.length)return(i+1)%(points.length>>1);let c=i,dc=pow(x-points[2*i],2)+pow(y-points[2*i+1],2);const e0=inedges[i];let e=e0;do{let t=triangles[e];const dt=pow(x-points[2*t],2)+pow(y-points[2*t+1],2);if(dt=maxDelta));)if(tag.x=startX+dx,tag.y=startY+dy,!(tag.x+tag.x0<0||tag.y+tag.y0<0||tag.x+tag.x1>size[0]||tag.y+tag.y1>size[1])&&(!bounds||!cloudCollide(tag,board,size[0]))&&(!bounds||collideRects(tag,bounds))){for(var last,sprite=tag.sprite,w=tag.width>>5,sw=size[0]>>5,lx=tag.x-(w<<4),sx=127&lx,msx=32-sx,h=tag.y1-tag.y0,x=(tag.y+tag.y0)*sw+(lx>>5),j=0;j>>sx:0);x+=sw}return tag.sprite=null,!0}return!1}return cloud.layout=function(){for(var contextAndRatio=function getContext(canvas){canvas.width=canvas.height=1;var ratio=Math.sqrt(canvas.getContext("2d").getImageData(0,0,1,1).data.length>>2);canvas.width=(cw<<5)/ratio,canvas.height=ch/ratio;var context=canvas.getContext("2d");return context.fillStyle=context.strokeStyle="red",context.textAlign="center",{context,ratio}}(domCanvas()),board=function zeroArray(n){var a=[],i=-1;for(;++i>5)*size[1]),bounds=null,n=words.length,i=-1,tags=[],data=words.map((d=>({text:text(d),font:font(d),style:fontStyle(d),weight:fontWeight(d),rotate:rotate(d),size:~~(fontSize(d)+1e-14),padding:padding(d),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:d}))).sort(((a,b)=>b.size-a.size));++i>1,d.y=size[1]*(random()+.5)>>1,cloudSprite(contextAndRatio,d,data,i),d.hasText&&place(board,d,bounds)&&(tags.push(d),bounds?cloudBounds(bounds,d):bounds=[{x:d.x+d.x0,y:d.y+d.y0},{x:d.x+d.x1,y:d.y+d.y1}],d.x-=size[0]>>1,d.y-=size[1]>>1)}return tags},cloud.words=function(_){return arguments.length?(words=_,cloud):words},cloud.size=function(_){return arguments.length?(size=[+_[0],+_[1]],cloud):size},cloud.font=function(_){return arguments.length?(font=functor(_),cloud):font},cloud.fontStyle=function(_){return arguments.length?(fontStyle=functor(_),cloud):fontStyle},cloud.fontWeight=function(_){return arguments.length?(fontWeight=functor(_),cloud):fontWeight},cloud.rotate=function(_){return arguments.length?(rotate=functor(_),cloud):rotate},cloud.text=function(_){return arguments.length?(text=functor(_),cloud):text},cloud.spiral=function(_){return arguments.length?(spiral=spirals[_]||_,cloud):spiral},cloud.fontSize=function(_){return arguments.length?(fontSize=functor(_),cloud):fontSize},cloud.padding=function(_){return arguments.length?(padding=functor(_),cloud):padding},cloud.random=function(_){return arguments.length?(random=_,cloud):random},cloud}function cloudSprite(contextAndRatio,d,data,di){if(!d.sprite){var c=contextAndRatio.context,ratio=contextAndRatio.ratio;c.clearRect(0,0,(cw<<5)/ratio,ch/ratio);var w,w32,h,i,j,x=0,y=0,maxh=0,n=data.length;for(--di;++di>5<<5,h=~~Math.max(Math.abs(wsr+hcr),Math.abs(wsr-hcr))}else w=w+31>>5<<5;if(h>maxh&&(maxh=h),x+w>=cw<<5&&(x=0,y+=maxh,maxh=0),y+h>=ch)break;c.translate((x+(w>>1))/ratio,(y+(h>>1))/ratio),d.rotate&&c.rotate(d.rotate*cloudRadians),c.fillText(d.text,0,0),d.padding&&(c.lineWidth=2*d.padding,c.strokeText(d.text,0,0)),c.restore(),d.width=w,d.height=h,d.xoff=x,d.yoff=y,d.x1=w>>1,d.y1=h>>1,d.x0=-d.x1,d.y0=-d.y1,d.hasText=!0,x+=w}for(var pixels=c.getImageData(0,0,(cw<<5)/ratio,ch/ratio).data,sprite=[];--di>=0;)if((d=data[di]).hasText){for(w32=(w=d.width)>>5,h=d.y1-d.y0,i=0;i>5),m=pixels[(y+j)*(cw<<5)+(x+i)<<2]?1<<31-i%32:0;sprite[k]|=m,seen|=m}seen?seenRow=j:(d.y0++,h--,j--,y++)}d.y1=d.y0+seenRow,d.sprite=sprite.slice(0,(d.y1-d.y0)*w32)}}}function cloudCollide(tag,board,sw){sw>>=5;for(var last,sprite=tag.sprite,w=tag.width>>5,lx=tag.x-(w<<4),sx=127&lx,msx=32-sx,h=tag.y1-tag.y0,x=(tag.y+tag.y0)*sw+(lx>>5),j=0;j>>sx:0))&board[x+i])return!0;x+=sw}return!1}function cloudBounds(bounds,d){var b0=bounds[0],b1=bounds[1];d.x+d.x0b1.x&&(b1.x=d.x+d.x1),d.y+d.y1>b1.y&&(b1.y=d.y+d.y1)}function collideRects(a,b){return a.x+a.x1>b[0].x&&a.x+a.x0b[0].y&&a.y+a.y0sizeScale(fsize(x))}data.forEach((t=>{t[as[0]]=NaN,t[as[1]]=NaN,t[as[3]]=0}));const words=layout.words(data).text(_.text).size(_.size||[500,500]).padding(_.padding||1).spiral(_.spiral||"archimedean").rotate(_.rotate||0).font(_.font||"sans-serif").fontStyle(_.fontStyle||"normal").fontWeight(_.fontWeight||"normal").fontSize(fontSize).random(random).layout(),size=layout.size(),dx=size[0]>>1,dy=size[1]>>1,n=words.length;for(let w,t,i=0;inew Uint8Array(n),array16=n=>new Uint16Array(n),array32=n=>new Uint32Array(n);function array$1(n,m,array){const copy=(m<257?array8:m<65537?array16:array32)(n);return array&©.set(array),copy}function Dimension(index,i,query){const bit=1<{const x=values[a],y=values[b];return xy?1:0})),function permute(source,keys){return Array.from(keys,(key=>source[key]))}(values,index)}(addv,addi),n0)oldv=value,oldi=index,value=Array(n0+n1),index=array32(n0+n1),function merge$1(base,value0,index0,n0,value1,index1,n1,value,index){let i,i0=0,i1=0;for(i=0;i00)for(i=0;iindex,size:()=>size}}function CrossFilter(params){Transform.call(this,function Bitmaps(){let width=8,data=[],seen=array32(0),curr=array$1(0,width),prev=array$1(0,width);return{data:()=>data,seen:()=>seen=function lengthen(array,length,copy){return array.length>=length?array:((copy=copy||new array.constructor(length)).set(array),copy)}(seen,data.length),add(array){for(let t,i=0,j=data.length,n=array.length;idata.length,curr:()=>curr,prev:()=>prev,reset:k=>prev[k]=curr[k],all:()=>width<257?255:width<65537?65535:4294967295,set(k,one){curr[k]|=one},clear(k,one){curr[k]&=~one},resize(n,m){(n>curr.length||m>width)&&(width=Math.max(m,width),curr=array$1(n,width,curr),prev=array$1(n,width))}}}(),params),this._indices=null,this._dims=null}function ResolveFilter(params){Transform.call(this,null,params)}CrossFilter.Definition={type:"CrossFilter",metadata:{},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"query",type:"array",array:!0,required:!0,content:{type:"number",array:!0,length:2}}]},inherits(CrossFilter,Transform,{transform(_,pulse){return this._dims?_.modified("fields")||_.fields.some((f=>pulse.modified(f.fields)))?this.reinit(_,pulse):this.eval(_,pulse):this.init(_,pulse)},init(_,pulse){const fields=_.fields,query=_.query,indices=this._indices={},dims=this._dims=[],m=query.length;let key,index,i=0;for(;i{const indexMap=bits.remove(num,map);for(const key in indices)indices[key].reindex(indexMap)}))},update(_,pulse,output){const dims=this._dims,query=_.query,stamp=pulse.stamp,m=dims.length;let i,q,mask=0;for(output.filters=0,q=0;qlo0)for(i=lo0,j=Math.min(lo1,hi0);ihi0)for(i=Math.max(lo1,hi0),j=hi1;ilo0)for(i=lo0,j=Math.min(lo1,hi0);ihi0)for(i=Math.max(lo1,hi0),j=hi1;icurr[k]&ignore?null:data[k];return output.filter(output.MOD,pass),mask&mask-1?(output.filter(output.ADD,(k=>{const c=curr[k]&ignore;return!c&&c^prev[k]&ignore?data[k]:null})),output.filter(output.REM,(k=>{const c=curr[k]&ignore;return c&&!(c^c^prev[k]&ignore)?data[k]:null}))):(output.filter(output.ADD,pass),output.filter(output.REM,(k=>(curr[k]&ignore)===mask?data[k]:null))),output.filter(output.SOURCE,(t=>pass(t._index)))}});var xf=Object.freeze({__proto__:null,crossfilter:CrossFilter,resolvefilter:ResolveFilter});const Literal="Literal",CallExpression="CallExpression";function ASTNode(type){this.type=type}var TokenName,source,index,length,lookahead;ASTNode.prototype.visit=function(visitor){let c,i,n;if(visitor(this))return 1;for(c=function children(node){switch(node.type){case"ArrayExpression":return node.elements;case"BinaryExpression":case"LogicalExpression":return[node.left,node.right];case CallExpression:return[node.callee].concat(node.arguments);case"ConditionalExpression":return[node.test,node.consequent,node.alternate];case"MemberExpression":return[node.object,node.property];case"ObjectExpression":return node.properties;case"Property":return[node.key,node.value];case"UnaryExpression":return[node.argument];default:return[]}}(this),i=0,n=c.length;i",TokenName[TokenIdentifier]="Identifier",TokenName[TokenKeyword]="Keyword",TokenName[TokenNullLiteral]="Null",TokenName[TokenNumericLiteral]="Numeric",TokenName[TokenPunctuator]="Punctuator",TokenName[TokenStringLiteral]="String",TokenName[9]="RegularExpression";var SyntaxArrayExpression="ArrayExpression",SyntaxBinaryExpression="BinaryExpression",SyntaxCallExpression="CallExpression",SyntaxConditionalExpression="ConditionalExpression",SyntaxIdentifier="Identifier",SyntaxLiteral="Literal",SyntaxLogicalExpression="LogicalExpression",SyntaxMemberExpression="MemberExpression",SyntaxObjectExpression="ObjectExpression",SyntaxProperty="Property",SyntaxUnaryExpression="UnaryExpression",MessageUnexpectedToken="Unexpected token %0",MessageUnexpectedNumber="Unexpected number",MessageUnexpectedString="Unexpected string",MessageUnexpectedIdentifier="Unexpected identifier",MessageUnexpectedReserved="Unexpected reserved word",MessageUnexpectedEOS="Unexpected end of input",MessageInvalidRegExp="Invalid regular expression",MessageUnterminatedRegExp="Invalid regular expression: missing /",MessageStrictOctalLiteral="Octal literals are not allowed in strict mode.",MessageStrictDuplicateProperty="Duplicate data property in object literal not allowed in strict mode",ILLEGAL$1="ILLEGAL",DISABLED="Disabled.",RegexNonAsciiIdentifierStart=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),RegexNonAsciiIdentifierPart=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function assert(condition,message){if(!condition)throw new Error("ASSERT: "+message)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return"0123456789abcdefABCDEF".indexOf(ch)>=0}function isOctalDigit(ch){return"01234567".indexOf(ch)>=0}function isWhiteSpace(ch){return 32===ch||9===ch||11===ch||12===ch||160===ch||ch>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(ch)>=0}function isLineTerminator(ch){return 10===ch||13===ch||8232===ch||8233===ch}function isIdentifierStart(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||92===ch||ch>=128&&RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch))}function isIdentifierPart(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=48&&ch<=57||92===ch||ch>=128&&RegexNonAsciiIdentifierPart.test(String.fromCharCode(ch))}const keywords$2={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function skipComment(){for(;index1114111||"}"!==ch)&&throwError({},MessageUnexpectedToken,ILLEGAL$1),code<=65535?String.fromCharCode(code):(cu1=55296+(code-65536>>10),cu2=56320+(code-65536&1023),String.fromCharCode(cu1,cu2))}function getEscapedIdentifier(){var ch,id;for(ch=source.charCodeAt(index++),id=String.fromCharCode(ch),92===ch&&(117!==source.charCodeAt(index)&&throwError({},MessageUnexpectedToken,ILLEGAL$1),++index,(ch=scanHexEscape("u"))&&"\\"!==ch&&isIdentifierStart(ch.charCodeAt(0))||throwError({},MessageUnexpectedToken,ILLEGAL$1),id=ch);index>>="===(ch4=source.substr(index,4))?{type:TokenPunctuator,value:ch4,start,end:index+=4}:">>>"===(ch3=ch4.substr(0,3))||"<<="===ch3||">>="===ch3?{type:TokenPunctuator,value:ch3,start,end:index+=3}:ch1===(ch2=ch3.substr(0,2))[1]&&"+-<>&|".indexOf(ch1)>=0||"=>"===ch2?{type:TokenPunctuator,value:ch2,start,end:index+=2}:("//"===ch2&&throwError({},MessageUnexpectedToken,ILLEGAL$1),"<>=!+-*%&|^/".indexOf(ch1)>=0?(++index,{type:TokenPunctuator,value:ch1,start,end:index}):void throwError({},MessageUnexpectedToken,ILLEGAL$1))}function scanNumericLiteral(){var number,start,ch;if(assert(isDecimalDigit((ch=source[index]).charCodeAt(0))||"."===ch,"Numeric literal must start with a decimal digit or a decimal point"),start=index,number="","."!==ch){if(number=source[index++],ch=source[index],"0"===number){if("x"===ch||"X"===ch)return++index,function scanHexLiteral(start){let number="";for(;index=0&&throwError({},MessageInvalidRegExp,flags),{value:flags,literal:str}}(),value=function testRegExp(pattern,flags){let tmp=pattern;flags.indexOf("u")>=0&&(tmp=tmp.replace(/\\u\{([0-9a-fA-F]+)\}/g,(($0,$1)=>{if(parseInt($1,16)<=1114111)return"x";throwError({},MessageInvalidRegExp)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(tmp)}catch(e){throwError({},MessageInvalidRegExp)}try{return new RegExp(pattern,flags)}catch(exception){return null}}(body.value,flags.value),{literal:body.literal+flags.literal,value,regex:{pattern:body.value,flags:flags.value},start,end:index}}function advance(){if(skipComment(),index>=length)return{type:TokenEOF,start:index,end:index};const ch=source.charCodeAt(index);return isIdentifierStart(ch)?scanIdentifier():40===ch||41===ch||59===ch?scanPunctuator():39===ch||34===ch?function scanStringLiteral(){var quote,start,ch,code,str="",octal=!1;for(assert("'"===(quote=source[index])||'"'===quote,"String literal must starts with a quote"),start=index,++index;index=0&&index(assert(index":case"<=":case">=":case"instanceof":case"in":prec=7;break;case"<<":case">>":case">>>":prec=8;break;case"+":case"-":prec=9;break;case"*":case"/":case"%":prec=11}return prec}function parseConditionalExpression(){var expr,consequent;return expr=function parseBinaryExpression(){var marker,markers,expr,token,prec,stack,right,operator,left,i;if(marker=lookahead,left=parseUnaryExpression(),0===(prec=binaryPrecedence(token=lookahead)))return left;for(token.prec=prec,lex(),markers=[marker,lookahead],stack=[left,token,right=parseUnaryExpression()];(prec=binaryPrecedence(lookahead))>0;){for(;stack.length>2&&prec<=stack[stack.length-2].prec;)right=stack.pop(),operator=stack.pop().value,left=stack.pop(),markers.pop(),expr=finishBinaryExpression(operator,left,right),stack.push(expr);(token=lex()).prec=prec,stack.push(token),markers.push(lookahead),expr=parseUnaryExpression(),stack.push(expr)}for(expr=stack[i=stack.length-1],markers.pop();i>1;)markers.pop(),expr=finishBinaryExpression(stack[i-1].value,stack[i-2],expr),i-=2;return expr}(),match("?")&&(lex(),consequent=parseConditionalExpression(),expect(":"),expr=function finishConditionalExpression(test,consequent,alternate){const node=new ASTNode(SyntaxConditionalExpression);return node.test=test,node.consequent=consequent,node.alternate=alternate,node}(expr,consequent,parseConditionalExpression())),expr}function parseExpression$1(){const expr=parseConditionalExpression();if(match(","))throw new Error(DISABLED);return expr}function parser$1(code){index=0,length=(source=code).length,lookahead=null,peek();const expr=parseExpression$1();if(lookahead.type!==TokenEOF)throw new Error("Unexpect token after expression.");return expr}var Constants$1={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function Functions$1(codegen){function fn(name,cast,type){return args=>function fncall(name,args,cast,type){let obj=codegen(args[0]);return cast&&(obj=cast+"("+obj+")",0===cast.lastIndexOf("new ",0)&&(obj="("+obj+")")),obj+"."+name+(type<0?"":0===type?"()":"("+args.slice(1).map(codegen).join(",")+")")}(name,args,cast,type)}const DATE="new Date";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(args){args.length<3&&error("Missing arguments to clamp function."),args.length>3&&error("Too many arguments to clamp function.");const a=args.map(codegen);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:DATE,date:fn("getDate",DATE,0),day:fn("getDay",DATE,0),year:fn("getFullYear",DATE,0),month:fn("getMonth",DATE,0),hours:fn("getHours",DATE,0),minutes:fn("getMinutes",DATE,0),seconds:fn("getSeconds",DATE,0),milliseconds:fn("getMilliseconds",DATE,0),time:fn("getTime",DATE,0),timezoneoffset:fn("getTimezoneOffset",DATE,0),utcdate:fn("getUTCDate",DATE,0),utcday:fn("getUTCDay",DATE,0),utcyear:fn("getUTCFullYear",DATE,0),utcmonth:fn("getUTCMonth",DATE,0),utchours:fn("getUTCHours",DATE,0),utcminutes:fn("getUTCMinutes",DATE,0),utcseconds:fn("getUTCSeconds",DATE,0),utcmilliseconds:fn("getUTCMilliseconds",DATE,0),length:fn("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:fn("toUpperCase","String",0),lower:fn("toLowerCase","String",0),substring:fn("substring","String"),split:fn("split","String"),trim:fn("trim","String",0),regexp:"RegExp",test:fn("test","RegExp"),if:function(args){args.length<3&&error("Missing arguments to if function."),args.length>3&&error("Too many arguments to if function.");const a=args.map(codegen);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function codegen(opt){const allowed=(opt=opt||{}).allowed?toSet(opt.allowed):{},forbidden=opt.forbidden?toSet(opt.forbidden):{},constants=opt.constants||Constants$1,functions=(opt.functions||Functions$1)(visit),globalvar=opt.globalvar,fieldvar=opt.fieldvar,outputGlobal=isFunction$1(globalvar)?globalvar:id=>`${globalvar}["${id}"]`;let globals={},fields={},memberDepth=0;function visit(ast){if(isString(ast))return ast;const generator=Generators[ast.type];return null==generator&&error("Unsupported type: "+ast.type),generator(ast)}const Generators={Literal:n=>n.raw,Identifier:n=>{const id=n.name;return memberDepth>0?id:has$1(forbidden,id)?error("Illegal identifier: "+id):has$1(constants,id)?constants[id]:has$1(allowed,id)?id:(globals[id]=1,outputGlobal(id))},MemberExpression:n=>{const d=!n.computed,o=visit(n.object);d&&(memberDepth+=1);const p=visit(n.property);return o===fieldvar&&(fields[function stripQuotes(s){const n=s&&s.length-1;return n&&('"'===s[0]&&'"'===s[n]||"'"===s[0]&&"'"===s[n])?s.slice(1,-1):s}(p)]=1),d&&(memberDepth-=1),o+(d?"."+p:"["+p+"]")},CallExpression:n=>{"Identifier"!==n.callee.type&&error("Illegal callee type: "+n.callee.type);const callee=n.callee.name,args=n.arguments,fn=has$1(functions,callee)&&functions[callee];return fn||error("Unrecognized function: "+callee),isFunction$1(fn)?fn(args):fn+"("+args.map(visit).join(",")+")"},ArrayExpression:n=>"["+n.elements.map(visit).join(",")+"]",BinaryExpression:n=>"("+visit(n.left)+" "+n.operator+" "+visit(n.right)+")",UnaryExpression:n=>"("+n.operator+visit(n.argument)+")",ConditionalExpression:n=>"("+visit(n.test)+"?"+visit(n.consequent)+":"+visit(n.alternate)+")",LogicalExpression:n=>"("+visit(n.left)+n.operator+visit(n.right)+")",ObjectExpression:n=>"{"+n.properties.map(visit).join(",")+"}",Property:n=>{memberDepth+=1;const k=visit(n.key);return memberDepth-=1,k+":"+visit(n.value)}};function codegen(ast){const result={code:visit(ast),globals:Object.keys(globals),fields:Object.keys(fields)};return globals={},fields={},result}return codegen.functions=functions,codegen.constants=constants,codegen}function ascending(a,b){return null==a||null==b?NaN:ab?1:a>=b?0:NaN}function descending(a,b){return null==a||null==b?NaN:ba?1:b>=a?0:NaN}function zero$2(){return 0}function set$1(values){return values instanceof InternSet?values:new InternSet(values)}const $selectionId=field$1("_vgsid_"),TYPE_ENUM="E",TYPE_RANGE_INC="R",TYPE_RANGE_EXC="R-E",TYPE_RANGE_LE="R-LE",TYPE_RANGE_RE="R-RE";function testPoint(datum,entry){for(var dval,f,fields=entry.fields,values=entry.values,n=fields.length,i=0;i>>1;compare2(a[mid],x)<0?lo=mid+1:hi=mid}while(loascending(f(d),x),delta=(d,x)=>f(d)-x):(compare1=f===ascending||f===descending?f:zero$2,compare2=f,delta=f),{left,center:function center(a,x,lo=0,hi=a.length){const i=left(a,x,lo,hi-1);return i>lo&&delta(a[i-1],x)>-delta(a[i],x)?i-1:i},right:function right(a,x,lo=0,hi=a.length){if(lo>>1;compare2(a[mid],x)<=0?lo=mid+1:hi=mid}while(lovalue.indexOf(v)>=0)):value},R_union:function(base,value){var lo=toNumber(value[0]),hi=toNumber(value[1]);return lo>hi&&(lo=value[1],hi=value[0]),base.length?(base[0]>lo&&(base[0]=lo),base[1]hi&&(lo=value[1],hi=value[0]),base.length?hihi&&(base[1]=hi),base):[lo,hi]}};function selectionVisitor(name,args,scope,params){args[0].type!==Literal&&error("First argument to selection functions must be a string literal.");const data=args[0].value,dataName=":"+data;"intersect"!==(args.length>=2&&peek$1(args).value)||has$1(params,"@unit")||(params["@unit"]=scope.getData(data).indataRef(scope,"unit")),has$1(params,dataName)||(params[dataName]=scope.getData(data).tuplesRef())}function data$1(name){const data=this.context.data[name];return data?data.values.value:[]}const wrap=method=>function(value,spec){return this.context.dataflow.locale()[method](spec)(value)},format=wrap("format"),timeFormat$1=wrap("timeFormat"),utcFormat=wrap("utcFormat"),timeParse=wrap("timeParse"),utcParse=wrap("utcParse"),dateObj=new Date(2e3,0,1);function time(month,day,specifier){return Number.isInteger(month)&&Number.isInteger(day)?(dateObj.setYear(2e3),dateObj.setMonth(month),dateObj.setDate(day),timeFormat$1.call(this,dateObj,specifier)):""}const ScalePrefix="%",SignalPrefix="$";function dataVisitor(name,args,scope,params){args[0].type!==Literal&&error("First argument to data functions must be a string literal.");const data=args[0].value,dataName=":"+data;if(!has$1(dataName,params))try{params[dataName]=scope.getData(data).tuplesRef()}catch(err){}}function scaleVisitor(name,args,scope,params){if(args[0].type===Literal)addScaleDependency(scope,params,args[0].value);else for(name in scope.scales)addScaleDependency(scope,params,name)}function addScaleDependency(scope,params,name){const scaleName=ScalePrefix+name;if(!has$1(params,scaleName))try{params[scaleName]=scope.scaleRef(name)}catch(err){}}function getScale(nameOrFunction,ctx){if(isFunction$1(nameOrFunction))return nameOrFunction;if(isString(nameOrFunction)){const maybeScale=ctx.scales[nameOrFunction];return maybeScale&&function isRegisteredScale(scale){return scale&&!0===scale[VEGA_SCALE]}(maybeScale.value)?maybeScale.value:void 0}}function internalScaleFunctions(codegen,fnctx,visitors){fnctx.__bandwidth=s=>s&&s.bandwidth?s.bandwidth():0,visitors._bandwidth=scaleVisitor,visitors._range=scaleVisitor,visitors._scale=scaleVisitor;const ref=arg=>"_["+(arg.type===Literal?$(ScalePrefix+arg.value):$(ScalePrefix)+"+"+codegen(arg))+"]";return{_bandwidth:args=>`this.__bandwidth(${ref(args[0])})`,_range:args=>`${ref(args[0])}.range()`,_scale:args=>`${ref(args[0])}(${codegen(args[1])})`}}function geoMethod(methodName,globalMethod){return function(projection,geojson,group){if(projection){const p=getScale(projection,(group||this).context);return p&&p.path[methodName](geojson)}return globalMethod(geojson)}}const geoArea=geoMethod("area",(function geoArea$1(object){return areaSum$1=new Adder,geoStream(object,areaStream$1),2*areaSum$1})),geoBounds=geoMethod("bounds",(function geoBounds$1(feature){var i,n,a,b,merged,deltaMax,delta;if(phi1=lambda1=-(lambda0=phi0=1/0),ranges=[],geoStream(feature,boundsStream$2),n=ranges.length){for(ranges.sort(rangeCompare),i=1,merged=[a=ranges[0]];iangle(a[0],a[1])&&(a[1]=b[1]),angle(b[0],a[1])>angle(a[0],a[1])&&(a[0]=b[0])):merged.push(a=b);for(deltaMax=-1/0,i=0,a=merged[n=merged.length-1];i<=n;a=b,++i)b=merged[i],(delta=angle(a[1],b[0]))>deltaMax&&(deltaMax=delta,lambda0=b[0],lambda1=a[1])}return ranges=range$4=null,lambda0===1/0||phi0===1/0?[[NaN,NaN],[NaN,NaN]]:[[lambda0,phi0],[lambda1,phi1]]})),geoCentroid=geoMethod("centroid",(function geoCentroid$1(object){W0=W1=X0$1=Y0$1=Z0$1=X1$1=Y1$1=Z1$1=0,X2$2=new Adder,Y2$2=new Adder,Z2$1=new Adder,geoStream(object,centroidStream$1);var x=+X2$2,y=+Y2$2,z=+Z2$1,m=hypot(x,y,z);return mequalObject(props,_)}const accessors={};function array(seq){return isArray(seq)||ArrayBuffer.isView(seq)?seq:null}function sequence(seq){return array(seq)||(isString(seq)?seq:null)}const datum=d=>d.data;function treeNodes(name,context){const tree=data$1.call(context,name);return tree.root&&tree.root.lookup||{}}const _window=()=>"undefined"!=typeof window&&window||null;function intersect(b,opt,group){if(!b)return[];const[u,v]=b,box=(new Bounds).set(u[0],u[1],v[0],v[1]);return intersect$2(group||this.context.dataflow.scenegraph().root,box,function filter(opt){let p=null;if(opt){const types=array$5(opt.marktype),names=array$5(opt.markname);p=_=>(!types.length||types.some((t=>_.marktype===t)))&&(!names.length||names.some((s=>_.name===s)))}return p}(opt))}const functionContext={random:()=>random(),cumulativeNormal,cumulativeLogNormal,cumulativeUniform,densityNormal,densityLogNormal,densityUniform,quantileNormal,quantileLogNormal,quantileUniform,sampleNormal,sampleLogNormal,sampleUniform,isArray,isBoolean:isBoolean$2,isDate:isDate$1,isDefined:_=>void 0!==_,isNumber:isNumber$1,isObject,isRegExp,isString,isTuple,isValid:_=>null!=_&&_==_,toBoolean,toDate:_=>toDate(_),toNumber,toString,indexof:function indexof(seq){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return sequence(seq).indexOf(...args)},join:function join(seq){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return array(seq).join(...args)},lastindexof:function lastindexof(seq){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return sequence(seq).lastIndexOf(...args)},replace:function replace(str,pattern,repl){return isFunction$1(repl)&&error("Function argument passed to replace."),String(str).replace(pattern,repl)},reverse:function reverse$1(seq){return array(seq).slice().reverse()},slice:function slice$1(seq){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];return sequence(seq).slice(...args)},flush,lerp,merge:function merge(){const args=[].slice.call(arguments);return args.unshift({}),extend$1(...args)},pad:pad$2,peek:peek$1,pluck:function pluck(data,name){const accessor=accessors[name]||(accessors[name]=field$1(name));return isArray(data)?data.map(accessor):accessor(data)},span,inrange,truncate:truncate$1,rgb:rgb$1,lab:lab$1,hcl:hcl$2,hsl:hsl$2,luminance,contrast:function contrast(color1,color2){const lum1=luminance(color1),lum2=luminance(color2);return(Math.max(lum1,lum2)+.05)/(Math.min(lum1,lum2)+.05)},sequence:range$5,format,utcFormat,utcParse,utcOffset,utcSequence,timeFormat:timeFormat$1,timeParse,timeOffset,timeSequence,timeUnitSpecifier,monthFormat:function monthFormat(month){return time.call(this,month,1,"%B")},monthAbbrevFormat:function monthAbbrevFormat(month){return time.call(this,month,1,"%b")},dayFormat:function dayFormat(day){return time.call(this,0,2+day,"%A")},dayAbbrevFormat:function dayAbbrevFormat(day){return time.call(this,0,2+day,"%a")},quarter,utcquarter,week,utcweek,dayofyear,utcdayofyear,warn:function warn$1(){return log(this.context.dataflow,"warn",arguments)},info:function info(){return log(this.context.dataflow,"info",arguments)},debug:function debug$3(){return log(this.context.dataflow,"debug",arguments)},extent:_=>extent(_),inScope:function inScope(item){const group=this.context.group;let value=!1;if(group)for(;item;){if(item===group){value=!0;break}item=item.mark.group}return value},intersect,clampRange,pinchDistance:function pinchDistance(event){const t=event.touches,dx=t[0].clientX-t[1].clientX,dy=t[0].clientY-t[1].clientY;return Math.hypot(dx,dy)},pinchAngle:function pinchAngle(event){const t=event.touches;return Math.atan2(t[0].clientY-t[1].clientY,t[0].clientX-t[1].clientX)},screen:function screen(){const w=_window();return w?w.screen:{}},containerSize:function containerSize(){const view=this.context.dataflow,el=view.container&&view.container();return el?[el.clientWidth,el.clientHeight]:[void 0,void 0]},windowSize:function windowSize(){const w=_window();return w?[w.innerWidth,w.innerHeight]:[void 0,void 0]},bandspace:function bandspace(count,paddingInner,paddingOuter){return bandSpace(count||0,paddingInner||0,paddingOuter||0)},setdata:function setdata(name,tuples){const df=this.context.dataflow,input=this.context.data[name].input;return df.pulse(input,df.changeset().remove(truthy).insert(tuples)),1},pathShape:function pathShape(path){let p=null;return function(context){return context?pathRender(context,p=p||parse$3(path)):path}},panLinear,panLog,panPow,panSymlog,zoomLinear,zoomLog,zoomPow,zoomSymlog,encode:function encode(item,name,retval){if(item){const df=this.context.dataflow,target=item.mark.source;df.pulse(target,df.changeset().encode(item,name))}return void 0!==retval?retval:item},modify:function modify(name,insert,remove,toggle,modify,values){const df=this.context.dataflow,data=this.context.data[name],input=data.input,stamp=df.stamp();let predicate,key,changes=data.changes;if(!1===df._trigger||!(input.value.length||insert||toggle))return 0;if((!changes||changes.stamp{data.modified=!0,df.pulse(input,changes).run()}),!0,1)),remove&&(predicate=!0===remove?truthy:isArray(remove)||isTuple(remove)?remove:removePredicate(remove),changes.remove(predicate)),insert&&changes.insert(insert),toggle&&(predicate=removePredicate(toggle),input.value.some(predicate)?changes.remove(predicate):changes.insert(toggle)),modify)for(key in values)changes.modify(modify,key,values[key]);return 1},lassoAppend:function lassoAppend(lasso,x,y){let minDist=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5;const last=(lasso=array$5(lasso))[lasso.length-1];return void 0===last||Math.hypot(last[0]-x,last[1]-y)>minDist?[...lasso,[x,y]]:lasso},lassoPath:function lassoPath(lasso){return array$5(lasso).reduce(((svg,_ref,i)=>{let[x,y]=_ref;return svg+(0==i?`M ${x},${y} `:i===lasso.length-1?" Z":`L ${x},${y} `)}),"")},intersectLasso:function intersectLasso(markname,pixelLasso,unit){const{x,y,mark}=unit,bb=(new Bounds).set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);for(const[px,py]of pixelLasso)pxbb.x2&&(bb.x2=px),pybb.y2&&(bb.y2=py);return bb.translate(x,y),intersect([[bb.x1,bb.y1],[bb.x2,bb.y2]],markname,mark).filter((tuple=>function pointInPolygon(testx,testy,polygon){let intersections=0;for(let i=0,j=polygon.length-1;itesty!=prevY>testy&&testx<(prevX-x)*(testy-y)/(prevY-y)+x&&intersections++}return 1&intersections}(tuple.x,tuple.y,pixelLasso)))}},eventFunctions=["view","item","group","xy","x","y"],thisPrefix="this.",astVisitors={},codegenParams={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:id=>`_[${$(SignalPrefix+id)}]`,functions:function buildFunctions(codegen){const fn=Functions$1(codegen);eventFunctions.forEach((name=>fn[name]="event.vega."+name));for(const name in functionContext)fn[name]=thisPrefix+name;return extend$1(fn,internalScaleFunctions(codegen,functionContext,astVisitors)),fn},constants:Constants$1,visitors:astVisitors},codeGenerator=codegen(codegenParams);function expressionFunction(name,fn,visitor){return 1===arguments.length?functionContext[name]:(functionContext[name]=fn,visitor&&(astVisitors[name]=visitor),codeGenerator&&(codeGenerator.functions[name]=thisPrefix+name),this)}function parser(expr,scope){const params={};let ast;try{ast=parser$1(expr=isString(expr)?expr:$(expr)+"")}catch(err){error("Expression parse error: "+expr)}ast.visit((node=>{if(node.type!==CallExpression)return;const name=node.callee.name,visit=codegenParams.visitors[name];visit&&visit(name,node.arguments,scope,params)}));const gen=codeGenerator(ast);return gen.globals.forEach((name=>{const signalName=SignalPrefix+name;!has$1(params,signalName)&&scope.getSignal(name)&&(params[signalName]=scope.signalRef(name))})),{$expr:extend$1({code:gen.code},scope.options.ast?{ast}:null),$fields:gen.fields,$params:params}}expressionFunction("bandwidth",(function bandwidth(name,group){const s=getScale(name,(group||this).context);return s&&s.bandwidth?s.bandwidth():0}),scaleVisitor),expressionFunction("copy",(function copy(name,group){const s=getScale(name,(group||this).context);return s?s.copy():void 0}),scaleVisitor),expressionFunction("domain",(function domain$2(name,group){const s=getScale(name,(group||this).context);return s?s.domain():[]}),scaleVisitor),expressionFunction("range",(function range$3(name,group){const s=getScale(name,(group||this).context);return s&&s.range?s.range():[]}),scaleVisitor),expressionFunction("invert",(function invert(name,range,group){const s=getScale(name,(group||this).context);return s?isArray(range)?(s.invertRange||s.invert)(range):(s.invert||s.invertExtent)(range):void 0}),scaleVisitor),expressionFunction("scale",(function scale$2(name,value,group){const s=getScale(name,(group||this).context);return s?s(value):void 0}),scaleVisitor),expressionFunction("gradient",(function scaleGradient(scale,p0,p1,count,group){scale=getScale(scale,(group||this).context);const gradient=Gradient$1(p0,p1);let stops=scale.domain(),min=stops[0],max=peek$1(stops),fraction=identity$6;return max-min?fraction=scaleFraction(scale,min,max):scale=(scale.interpolator?scale$4("sequential")().interpolator(scale.interpolator()):scale$4("linear")().interpolate(scale.interpolate()).range(scale.range())).domain([min=0,max=1]),scale.ticks&&(stops=scale.ticks(+count||15),min!==stops[0]&&stops.unshift(min),max!==peek$1(stops)&&stops.push(max)),stops.forEach((_=>gradient.stop(fraction(_),scale(_)))),gradient}),scaleVisitor),expressionFunction("geoArea",geoArea,scaleVisitor),expressionFunction("geoBounds",geoBounds,scaleVisitor),expressionFunction("geoCentroid",geoCentroid,scaleVisitor),expressionFunction("geoShape",(function geoShape(projection,geojson,group){const p=getScale(projection,(group||this).context);return function(context){return p?p.path.context(context)(geojson):""}}),scaleVisitor),expressionFunction("indata",(function indata(name,field,value){const index=this.context.data[name]["index:"+field],entry=index?index.value.get(value):void 0;return entry?entry.count:entry}),(function indataVisitor(name,args,scope,params){args[0].type!==Literal&&error("First argument to indata must be a string literal."),args[1].type!==Literal&&error("Second argument to indata must be a string literal.");const data=args[0].value,field=args[1].value,indexName="@"+field;has$1(indexName,params)||(params[indexName]=scope.getData(data).indataRef(scope,field))})),expressionFunction("data",data$1,dataVisitor),expressionFunction("treePath",(function treePath(name,source,target){const nodes=treeNodes(name,this),s=nodes[source],t=nodes[target];return s&&t?s.path(t).map(datum):void 0}),dataVisitor),expressionFunction("treeAncestors",(function treeAncestors(name,node){const n=treeNodes(name,this)[node];return n?n.ancestors().map(datum):void 0}),dataVisitor),expressionFunction("vlSelectionTest",(function selectionTest(name,datum,op){for(var entry,miss,count,unit,b,data=this.context.data[name],entries=data?data.values.value:[],unitIdx=data?data["index:unit"]&&data["index:unit"].value:void 0,intersect="intersect"===op,n=entries.length,i=0;i(obj[fields[j].field]=curr,obj)),{}))}else field="_vgsid_",value=$selectionId(entry),(resUnit=(res=resolved[field]||(resolved[field]={}))[unit]||(res[unit]=[])).push(value),isMulti&&(resUnit=multiRes[unit]||(multiRes[unit]=[])).push({_vgsid_:value});if(op=op||"union",resolved._vgsid_?resolved._vgsid_=ops[`_vgsid__${op}`](...Object.values(resolved._vgsid_)):Object.keys(resolved).forEach((field=>{resolved[field]=Object.keys(resolved[field]).map((unit=>resolved[field][unit])).reduce(((acc,curr)=>void 0===acc?curr:ops[`${types[field]}_${op}`](acc,curr)))})),entries=Object.keys(multiRes),isMulti&&entries.length){resolved[vl5?"vlPoint":"vlMulti"]="union"===op?{or:entries.reduce(((acc,k)=>(acc.push(...multiRes[k]),acc)),[])}:{and:entries.map((k=>({or:multiRes[k]})))}}return resolved}),selectionVisitor),expressionFunction("vlSelectionTuples",(function selectionTuples(array,base){return array.map((x=>extend$1(base.fields?{values:base.fields.map((f=>(f.getter||(f.getter=field$1(f.field)))(x.datum)))}:{_vgsid_:$selectionId(x.datum)},base)))}));const Skip$2=toSet(["rule"]),Swap=toSet(["group","image","rect"]);function canonicalType(type){return(type+"").toLowerCase()}function expression$2(ctx,args,code){code.endsWith(";")||(code="return("+code+");");const fn=Function(...args.concat(code));return ctx&&ctx.functions?fn.bind(ctx.functions):fn}var expressionCodegen={operator:(ctx,expr)=>expression$2(ctx,["_"],expr.code),parameter:(ctx,expr)=>expression$2(ctx,["datum","_"],expr.code),event:(ctx,expr)=>expression$2(ctx,["event"],expr.code),handler:(ctx,expr)=>expression$2(ctx,["_","event"],`var datum=event.item&&event.item.datum;return ${expr.code};`),encode:(ctx,encode)=>{const{marktype,channels}=encode;let code="var o=item,datum=o.datum,m=0,$;";for(const name in channels){const o="o["+$(name)+"]";code+=`$=${channels[name].code};if(${o}!==$)${o}=$,m=1;`}return code+=function adjustSpatial$1(encode,marktype){let code="";return Skip$2[marktype]||(encode.x2&&(encode.x?(Swap[marktype]&&(code+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"),code+="o.width=o.x2-o.x;"):code+="o.x=o.x2-(o.width||0);"),encode.xc&&(code+="o.x=o.xc-(o.width||0)/2;"),encode.y2&&(encode.y?(Swap[marktype]&&(code+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"),code+="o.height=o.y2-o.y;"):code+="o.y=o.y2-(o.height||0);"),encode.yc&&(code+="o.y=o.yc-(o.height||0)/2;")),code}(channels,marktype),code+="return m;",expression$2(ctx,["item","_"],code)},codegen:{get(path){const ref=`[${path.map($).join("][")}]`,get=Function("_",`return _${ref};`);return get.path=ref,get},comparator(fields,orders){let t;const fn=Function("a","b","var u, v; return "+fields.map(((f,i)=>{const o=orders[i];let u,v;return f.path?(u=`a${f.path}`,v=`b${f.path}`):((t=t||{})["f"+i]=f,u=`this.f${i}(a)`,v=`this.f${i}(b)`),function _compare(u,v,lt,gt){return`((u = ${u}) < (v = ${v}) || u == null) && v != null ? ${lt}\n : (u > v || v == null) && u != null ? ${gt}\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ${lt}\n : v !== v && u === u ? ${gt} : `}(u,v,-o,o)})).join("")+"0;");return t?fn.bind(t):fn}}};function parseParameter$2(spec,ctx,params){if(!spec||!isObject(spec))return spec;for(let p,i=0,n=PARSERS.length;i_&&_.$tupleid?tupleid:_));return ctx.fn[k]||(ctx.fn[k]=compare$8(c,_.$order,ctx.expr.codegen))}},{key:"$context",parse:function getContext(_,ctx){return ctx}},{key:"$subflow",parse:function getSubflow(_,ctx){const spec=_.$subflow;return function(dataflow,key,parent){const subctx=ctx.fork().parse(spec),op=subctx.get(spec.operators[0].id),p=subctx.signals.parent;return p&&p.set(parent),op.detachSubflow=()=>ctx.detach(subctx),op}}},{key:"$tupleid",parse:function getTupleId(){return tupleid}}];const SKIP={skip:!0};function context(df,transforms,functions,expr){return new Context(df,transforms,functions,expr)}function Context(df,transforms,functions,expr){this.dataflow=df,this.transforms=transforms,this.events=df.events.bind(df),this.expr=expr||expressionCodegen,this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},functions&&(this.functions=Object.create(functions),this.functions.context=this)}function Subcontext(ctx){this.dataflow=ctx.dataflow,this.transforms=ctx.transforms,this.events=ctx.events,this.expr=ctx.expr,this.signals=Object.create(ctx.signals),this.scales=Object.create(ctx.scales),this.nodes=Object.create(ctx.nodes),this.data=Object.create(ctx.data),this.fn=Object.create(ctx.fn),ctx.functions&&(this.functions=Object.create(ctx.functions),this.functions.context=this)}function ariaLabel(el,desc){el&&(null==desc?el.removeAttribute("aria-label"):el.setAttribute("aria-label",desc))}Context.prototype=Subcontext.prototype={fork(){const ctx=new Subcontext(this);return(this.subcontext||(this.subcontext=[])).push(ctx),ctx},detach(ctx){this.subcontext=this.subcontext.filter((c=>c!==ctx));const keys=Object.keys(ctx.nodes);for(const key of keys)ctx.nodes[key]._targets=null;for(const key of keys)ctx.nodes[key].detach();ctx.nodes=null},get(id){return this.nodes[id]},set(id,node){return this.nodes[id]=node},add(spec,op){const ctx=this,df=ctx.dataflow,data=spec.value;if(ctx.set(spec.id,op),function isCollect(type){return"collect"===canonicalType(type)}(spec.type)&&data&&(data.$ingest?df.ingest(op,data.$ingest,data.$format):data.$request?df.preload(op,data.$request,data.$format):df.pulse(op,df.changeset().insert(data))),spec.root&&(ctx.root=op),spec.parent){let p=ctx.get(spec.parent.$ref);p?(df.connect(p,[op]),op.targets().add(p)):(ctx.unresolved=ctx.unresolved||[]).push((()=>{p=ctx.get(spec.parent.$ref),df.connect(p,[op]),op.targets().add(p)}))}if(spec.signal&&(ctx.signals[spec.signal]=op),spec.scale&&(ctx.scales[spec.scale]=op),spec.data)for(const name in spec.data){const data=ctx.data[name]||(ctx.data[name]={});spec.data[name].forEach((role=>data[role]=op))}},resolve(){return(this.unresolved||[]).forEach((fn=>fn())),delete this.unresolved,this},operator(spec,update){this.add(spec,this.dataflow.add(spec.value,update))},transform(spec,type){this.add(spec,this.dataflow.add(this.transforms[canonicalType(type)]))},stream(spec,stream){this.set(spec.id,stream)},update(spec,stream,target,update,params){this.dataflow.on(stream,target,update,params,spec.options)},operatorExpression(expr){return this.expr.operator(this,expr)},parameterExpression(expr){return this.expr.parameter(this,expr)},eventExpression(expr){return this.expr.event(this,expr)},handlerExpression(expr){return this.expr.handler(this,expr)},encodeExpression(encode){return this.expr.encode(this,encode)},parse:function parse$2(spec){const ctx=this,operators=spec.operators||[];return spec.background&&(ctx.background=spec.background),spec.eventConfig&&(ctx.eventConfig=spec.eventConfig),spec.locale&&(ctx.locale=spec.locale),operators.forEach((entry=>ctx.parseOperator(entry))),operators.forEach((entry=>ctx.parseOperatorParameters(entry))),(spec.streams||[]).forEach((entry=>ctx.parseStream(entry))),(spec.updates||[]).forEach((entry=>ctx.parseUpdate(entry))),ctx.resolve()},parseOperator:function parseOperator(spec){const ctx=this;!function isOperator(type){return"operator"===canonicalType(type)}(spec.type)&&spec.type?ctx.transform(spec,spec.type):ctx.operator(spec,spec.update?ctx.operatorExpression(spec.update):null)},parseOperatorParameters:function parseOperatorParameters(spec){const ctx=this;if(spec.params){const op=ctx.get(spec.id);op||error("Invalid operator id: "+spec.id),ctx.dataflow.connect(op,op.parameters(ctx.parseParameters(spec.params),spec.react,spec.initonly))}},parseParameters:function parseParameters$1(spec,params){params=params||{};const ctx=this;for(const key in spec){const value=spec[key];params[key]=isArray(value)?value.map((v=>parseParameter$2(v,ctx,params))):parseParameter$2(value,ctx,params)}return params},parseStream:function parseStream$2(spec){var args,ctx=this,filter=null!=spec.filter?ctx.eventExpression(spec.filter):void 0,stream=null!=spec.stream?ctx.get(spec.stream):void 0;spec.source?stream=ctx.events(spec.source,spec.type,filter):spec.merge&&(stream=(args=spec.merge.map((_=>ctx.get(_))))[0].merge.apply(args[0],args.slice(1))),spec.between&&(args=spec.between.map((_=>ctx.get(_))),stream=stream.between(args[0],args[1])),spec.filter&&(stream=stream.filter(filter)),null!=spec.throttle&&(stream=stream.throttle(+spec.throttle)),null!=spec.debounce&&(stream=stream.debounce(+spec.debounce)),null==stream&&error("Invalid stream definition: "+JSON.stringify(spec)),spec.consume&&stream.consume(!0),ctx.stream(spec,stream)},parseUpdate:function parseUpdate$1(spec){var target,srcid=isObject(srcid=spec.source)?srcid.$ref:srcid,source=this.get(srcid),update=spec.update,params=void 0;source||error("Source not defined: "+spec.source),target=spec.target&&spec.target.$expr?this.eventExpression(spec.target.$expr):this.get(spec.target),update&&update.$expr&&(update.$params&&(params=this.parseParameters(update.$params)),update=this.handlerExpression(update.$expr)),this.update(spec,source,target,update,params)},getState:function getState$1(options){var ctx=this,state={};if(options.signals){var signals=state.signals={};Object.keys(ctx.signals).forEach((key=>{const op=ctx.signals[key];options.signals(key,op)&&(signals[key]=op.value)}))}if(options.data){var data=state.data={};Object.keys(ctx.data).forEach((key=>{const dataset=ctx.data[key];options.data(key,dataset)&&(data[key]=dataset.input.value)}))}return ctx.subcontext&&!1!==options.recurse&&(state.subcontext=ctx.subcontext.map((ctx=>ctx.getState(options)))),state},setState:function setState$1(state){var ctx=this,df=ctx.dataflow,data=state.data,signals=state.signals;Object.keys(signals||{}).forEach((key=>{df.update(ctx.signals[key],signals[key],SKIP)})),Object.keys(data||{}).forEach((key=>{df.pulse(ctx.data[key].input,df.changeset().remove(truthy).insert(data[key]))})),(state.subcontext||[]).forEach(((substate,i)=>{const subctx=ctx.subcontext[i];subctx&&subctx.setState(substate)}))}};const Default="default";function setCursor(view,cursor){const el=view.globalCursor()?"undefined"!=typeof document&&document.body:view.container();if(el)return null==cursor?el.style.removeProperty("cursor"):el.style.cursor=cursor}function dataref(view,name){var data=view._runtime.data;return has$1(data,name)||error("Unrecognized data set: "+name),data[name]}function change(name,changes){isChangeSet(changes)||error("Second argument to changes must be a changeset.");const dataset=dataref(this,name);return dataset.modified=!0,this.pulse(dataset.input,changes)}function width(view){var padding=view.padding();return Math.max(0,view._viewWidth+padding.left+padding.right)}function height(view){var padding=view.padding();return Math.max(0,view._viewHeight+padding.top+padding.bottom)}function offset(view){var padding=view.padding(),origin=view._origin;return[padding.left+origin[0],padding.top+origin[1]]}function eventExtend(view,event,item){var p,translate,r=view._renderer,el=r&&r.canvas();return el&&(translate=offset(view),(p=point$2(event.changedTouches?event.changedTouches[0]:event,el))[0]-=translate[0],p[1]-=translate[1]),event.dataflow=view,event.item=item,event.vega=function extension(view,item,point){const itemGroup=item?"group"===item.mark.marktype?item:item.mark.group:null;function group(name){var i,g=itemGroup;if(name)for(i=item;i;i=i.mark.group)if(i.mark.name===name){g=i;break}return g&&g.mark&&g.mark.interactive?g:{}}function xy(item){if(!item)return point;isString(item)&&(item=group(item));const p=point.slice();for(;item;)p[0]-=item.x||0,p[1]-=item.y||0,item=item.mark&&item.mark.group;return p}return{view:constant$5(view),item:constant$5(item||{}),group,xy,x:item=>xy(item)[0],y:item=>xy(item)[1]}}(view,item,p),event}const NO_TRAP={trap:!1};function trackEventListener(view,sources,type,handler){view._eventListeners.push({type,sources:array$5(sources),handler})}function permit(view,key,type){const rule=view._eventConfig&&view._eventConfig[key];return!(!1===rule||isObject(rule)&&!rule[type])||(view.warn(`Blocked ${key} ${type} event listener.`),!1)}function itemFilter(event){return event.item}function markTarget(event){return event.item.mark.source}function invoke(name){return function(_,event){return event.vega.view().changeset().encode(event.item,name)}}function element(tag,attr,text){const el=document.createElement(tag);for(const key in attr)el.setAttribute(key,attr[key]);return null!=text&&(el.textContent=text),el}const BindClass="vega-bind",NameClass="vega-bind-name",RadioClass="vega-bind-radio";function target(bind,node,param,view){const type=param.event||"input",handler=()=>bind.update(node.value);view.signal(param.signal,node.value),node.addEventListener(type,handler),trackEventListener(view,node,type,handler),bind.set=value=>{node.value=value,node.dispatchEvent(function event(type){return"undefined"!=typeof Event?new Event(type):{type}}(type))}}function generate(bind,el,param,view){const value=view.signal(param.signal),div=element("div",{class:BindClass}),wrapper="radio"===param.input?div:div.appendChild(element("label"));wrapper.appendChild(element("span",{class:NameClass},param.name||param.signal)),el.appendChild(div);let input=form;switch(param.input){case"checkbox":input=checkbox;break;case"select":input=select;break;case"radio":input=radio;break;case"range":input=range$2}input(bind,wrapper,param,value)}function form(bind,el,param,value){const node=element("input");for(const key in param)"signal"!==key&&"element"!==key&&node.setAttribute("input"===key?"type":key,param[key]);node.setAttribute("name",param.signal),node.value=value,el.appendChild(node),node.addEventListener("input",(()=>bind.update(node.value))),bind.elements=[node],bind.set=value=>node.value=value}function checkbox(bind,el,param,value){const attr={type:"checkbox",name:param.signal};value&&(attr.checked=!0);const node=element("input",attr);el.appendChild(node),node.addEventListener("change",(()=>bind.update(node.checked))),bind.elements=[node],bind.set=value=>node.checked=!!value||null}function select(bind,el,param,value){const node=element("select",{name:param.signal}),labels=param.labels||[];param.options.forEach(((option,i)=>{const attr={value:option};valuesEqual(option,value)&&(attr.selected=!0),node.appendChild(element("option",attr,(labels[i]||option)+""))})),el.appendChild(node),node.addEventListener("change",(()=>{bind.update(param.options[node.selectedIndex])})),bind.elements=[node],bind.set=value=>{for(let i=0,n=param.options.length;i{const attr={type:"radio",name:param.signal,value:option};valuesEqual(option,value)&&(attr.checked=!0);const input=element("input",attr);input.addEventListener("change",(()=>bind.update(option)));const label=element("label",{},(labels[i]||option)+"");return label.prepend(input),group.appendChild(label),input})),bind.set=value=>{const nodes=bind.elements,n=nodes.length;for(let i=0;i{span.textContent=node.value,bind.update(+node.value)};node.addEventListener("input",update),node.addEventListener("change",update),bind.elements=[node],bind.set=value=>{node.value=value,span.textContent=value}}function valuesEqual(a,b){return a===b||a+""==b+""}function initializeRenderer(view,r,el,constructor,scaleFactor,opt){return(r=r||new constructor(view.loader())).initialize(el,width(view),height(view),offset(view),scaleFactor,opt).background(view.background())}function trap(view,fn){return fn?function(){try{fn.apply(this,arguments)}catch(error){view.error(error)}}:null}function lookup$1(view,el,clear){if("string"==typeof el){if("undefined"==typeof document)return view.error("DOM document instance not found."),null;if(!(el=document.querySelector(el)))return view.error("Signal bind element not found: "+el),null}if(el&&clear)try{el.textContent=""}catch(e){el=null,view.error(e)}return el}const number$1=_=>+_||0;function padding$1(_){return isObject(_)?{top:number$1(_.top),bottom:number$1(_.bottom),left:number$1(_.left),right:number$1(_.right)}:(_=>({top:_,bottom:_,left:_,right:_}))(number$1(_))}async function renderHeadless(view,type,scaleFactor,opt){const module=renderModule(type),ctr=module&&module.headless;return ctr||error("Unrecognized renderer type: "+type),await view.runAsync(),initializeRenderer(view,null,null,ctr,scaleFactor,opt).renderAsync(view._scenegraph.root)}var Width="width",Height="height",Padding="padding",Skip$1={skip:!0};function viewWidth(view,width){var a=view.autosize(),p=view.padding();return width-(a&&a.contains===Padding?p.left+p.right:0)}function viewHeight(view,height){var a=view.autosize(),p=view.padding();return height-(a&&a.contains===Padding?p.top+p.bottom:0)}function dataTest(name,data){return data.modified&&isArray(data.input.value)&&name.indexOf("_:vega:_")}function signalTest(name,op){return!("parent"===name||op instanceof transforms.proxy)}function defaultTooltip(handler,event,item,value){const el=handler.element();el&&el.setAttribute("title",function formatTooltip(value){return null==value?"":isArray(value)?formatArray(value):isObject(value)&&!isDate$1(value)?function formatObject(obj){return Object.keys(obj).map((key=>{const v=obj[key];return key+": "+(isArray(v)?formatArray(v):formatValue$1(v))})).join("\n")}(value):value+""}(value))}function formatArray(value){return"["+value.map(formatValue$1).join(", ")+"]"}function formatValue$1(value){return isArray(value)?"[…]":isObject(value)&&!isDate$1(value)?"{…}":value}function View$1(spec,options){const view=this;if(options=options||{},Dataflow.call(view),options.loader&&view.loader(options.loader),options.logger&&view.logger(options.logger),null!=options.logLevel&&view.logLevel(options.logLevel),options.locale||spec.locale){const loc=extend$1({},spec.locale,options.locale);view.locale(locale(loc.number,loc.time))}view._el=null,view._elBind=null,view._renderType=options.renderer||RenderType.Canvas,view._scenegraph=new Scenegraph;const root=view._scenegraph.root;view._renderer=null,view._tooltip=options.tooltip||defaultTooltip,view._redraw=!0,view._handler=(new CanvasHandler).scene(root),view._globalCursor=!1,view._preventDefault=!1,view._timers=[],view._eventListeners=[],view._resizeListeners=[],view._eventConfig=function initializeEventConfig(config){const events=extend$1({defaults:{}},config),unpack=(obj,keys)=>{keys.forEach((k=>{isArray(obj[k])&&(obj[k]=toSet(obj[k]))}))};return unpack(events.defaults,["prevent","allow"]),unpack(events,["view","window","selector"]),events}(spec.eventConfig),view.globalCursor(view._eventConfig.globalCursor);const ctx=function runtime(view,spec,expr){return context(view,transforms,functionContext,expr).parse(spec)}(view,spec,options.expr);view._runtime=ctx,view._signals=ctx.signals,view._bind=(spec.bindings||[]).map((_=>({state:null,param:extend$1({},_)}))),ctx.root&&ctx.root.set(root),root.source=ctx.data.root.input,view.pulse(ctx.data.root.input,view.changeset().insert(root.items)),view._width=view.width(),view._height=view.height(),view._viewWidth=viewWidth(view,view._width),view._viewHeight=viewHeight(view,view._height),view._origin=[0,0],view._resize=0,view._autosize=1,function initializeResize(view){var s=view._signals,w=s[Width],h=s[Height],p=s[Padding];function resetSize(){view._autosize=view._resize=1}view._resizeWidth=view.add(null,(_=>{view._width=_.size,view._viewWidth=viewWidth(view,_.size),resetSize()}),{size:w}),view._resizeHeight=view.add(null,(_=>{view._height=_.size,view._viewHeight=viewHeight(view,_.size),resetSize()}),{size:h});const resizePadding=view.add(null,resetSize,{pad:p});view._resizeWidth.rank=w.rank+1,view._resizeHeight.rank=h.rank+1,resizePadding.rank=p.rank+1}(view),function background(view){view.add(null,(_=>(view._background=_.bg,view._resize=1,_.bg)),{bg:view._signals.background})}(view),function cursor$1(view){const cursor=view._signals.cursor||(view._signals.cursor=view.add({user:Default,item:null}));view.on(view.events("view","mousemove"),cursor,((_,event)=>{const value=cursor.value,user=value?isString(value)?value:value.user:Default,item=event.item&&event.item.cursor||null;return value&&user===value.user&&item==value.item?value:{user,item}})),view.add(null,(function(_){let user=_.cursor,item=this.value;return isString(user)||(item=user.item,user=user.user),setCursor(view,user&&user!==Default?user:item||user),item}),{cursor})}(view),view.description(spec.description),options.hover&&view.hover(),options.container&&view.initialize(options.container,options.bind)}function lookupSignal(view,name){return has$1(view._signals,name)?view._signals[name]:error("Unrecognized signal name: "+$(name))}function findOperatorHandler(op,handler){const h=(op._targets||[]).filter((op=>op._update&&op._update.handler===handler));return h.length?h[0]:null}function addOperatorListener(view,name,op,handler){let h=findOperatorHandler(op,handler);return h||(h=trap(view,(()=>handler(name,op.value))),h.handler=handler,view.on(op,null,h)),view}function removeOperatorListener(view,op,handler){const h=findOperatorHandler(op,handler);return h&&op._targets.remove(h),view}inherits(View$1,Dataflow,{async evaluate(encode,prerun,postrun){if(await Dataflow.prototype.evaluate.call(this,encode,prerun),this._redraw||this._resize)try{this._renderer&&(this._resize&&(this._resize=0,function resizeRenderer(view){var origin=offset(view),w=width(view),h=height(view);view._renderer.background(view.background()),view._renderer.resize(w,h,origin),view._handler.origin(origin),view._resizeListeners.forEach((handler=>{try{handler(w,h)}catch(error){view.error(error)}}))}(this)),await this._renderer.renderAsync(this._scenegraph.root)),this._redraw=!1}catch(e){this.error(e)}return postrun&&asyncCallback(this,postrun),this},dirty(item){this._redraw=!0,this._renderer&&this._renderer.dirty(item)},description(text){if(arguments.length){const desc=null!=text?text+"":null;return desc!==this._desc&&ariaLabel(this._el,this._desc=desc),this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(name,value,options){const op=lookupSignal(this,name);return 1===arguments.length?op.value:this.update(op,value,options)},width(_){return arguments.length?this.signal("width",_):this.signal("width")},height(_){return arguments.length?this.signal("height",_):this.signal("height")},padding(_){return arguments.length?this.signal("padding",padding$1(_)):padding$1(this.signal("padding"))},autosize(_){return arguments.length?this.signal("autosize",_):this.signal("autosize")},background(_){return arguments.length?this.signal("background",_):this.signal("background")},renderer(type){return arguments.length?(renderModule(type)||error("Unrecognized renderer type: "+type),type!==this._renderType&&(this._renderType=type,this._resetRenderer()),this):this._renderType},tooltip(handler){return arguments.length?(handler!==this._tooltip&&(this._tooltip=handler,this._resetRenderer()),this):this._tooltip},loader(loader){return arguments.length?(loader!==this._loader&&(Dataflow.prototype.loader.call(this,loader),this._resetRenderer()),this):this._loader},resize(){return this._autosize=1,this.touch(lookupSignal(this,"autosize"))},_resetRenderer(){this._renderer&&(this._renderer=null,this.initialize(this._el,this._elBind))},_resizeView:function resizeView(viewWidth,viewHeight,width,height,origin,auto){this.runAfter((view=>{let rerun=0;view._autosize=0,view.width()!==width&&(rerun=1,view.signal(Width,width,Skip$1),view._resizeWidth.skip(!0)),view.height()!==height&&(rerun=1,view.signal(Height,height,Skip$1),view._resizeHeight.skip(!0)),view._viewWidth!==viewWidth&&(view._resize=1,view._viewWidth=viewWidth),view._viewHeight!==viewHeight&&(view._resize=1,view._viewHeight=viewHeight),view._origin[0]===origin[0]&&view._origin[1]===origin[1]||(view._resize=1,view._origin=origin),rerun&&view.run("enter"),auto&&view.runAfter((v=>v.resize()))}),!1,1)},addEventListener(type,handler,options){let callback=handler;return options&&!1===options.trap||(callback=trap(this,handler),callback.raw=handler),this._handler.on(type,callback),this},removeEventListener(type,handler){for(var h,t,handlers=this._handler.handlers(type),i=handlers.length;--i>=0;)if(t=handlers[i].type,h=handlers[i].handler,type===t&&(handler===h||handler===h.raw)){this._handler.off(t,h);break}return this},addResizeListener(handler){const l=this._resizeListeners;return l.indexOf(handler)<0&&l.push(handler),this},removeResizeListener(handler){var l=this._resizeListeners,i=l.indexOf(handler);return i>=0&&l.splice(i,1),this},addSignalListener(name,handler){return addOperatorListener(this,name,lookupSignal(this,name),handler)},removeSignalListener(name,handler){return removeOperatorListener(this,lookupSignal(this,name),handler)},addDataListener(name,handler){return addOperatorListener(this,name,dataref(this,name).values,handler)},removeDataListener(name,handler){return removeOperatorListener(this,dataref(this,name).values,handler)},globalCursor(_){if(arguments.length){if(this._globalCursor!==!!_){const prev=setCursor(this,null);this._globalCursor=!!_,prev&&setCursor(this,prev)}return this}return this._globalCursor},preventDefault(_){return arguments.length?(this._preventDefault=_,this):this._preventDefault},timer:function timer(callback,delay){this._timers.push(function interval$1(callback,delay,time){var t=new Timer$1,total=delay;return null==delay?(t.restart(callback,delay,time),t):(t._restart=t.restart,t.restart=function(callback,delay,time){delay=+delay,time=null==time?now():+time,t._restart((function tick(elapsed){elapsed+=total,t._restart(tick,total+=delay,time),callback(elapsed)}),delay,time)},t.restart(callback,delay,time),t)}((function tick(elapsed){callback({timestamp:Date.now(),elapsed})}),delay))},events:function events(source,type,filter){var sources,view=this,s=new EventStream(filter),send=function(e,item){view.runAsync(null,(()=>{"view"===source&&function prevent(view,type){var def=view._eventConfig.defaults,prevent=def.prevent,allow=def.allow;return!1!==prevent&&!0!==allow&&(!0===prevent||!1===allow||(prevent?prevent[type]:allow?!allow[type]:view.preventDefault()))}(view,type)&&e.preventDefault(),s.receive(eventExtend(view,e,item))}))};if("timer"===source)permit(view,"timer",type)&&view.timer(send,type);else if("view"===source)permit(view,"view",type)&&view.addEventListener(type,send,NO_TRAP);else if("window"===source?permit(view,"window",type)&&"undefined"!=typeof window&&(sources=[window]):"undefined"!=typeof document&&permit(view,"selector",type)&&(sources=Array.from(document.querySelectorAll(source))),sources){for(var i=0,n=sources.length;i=0;)timers[n].stop();for(n=listeners.length;--n>=0;)for(m=(e=listeners[n]).sources.length;--m>=0;)e.sources[m].removeEventListener(e.type,e.handler);return tooltip&&tooltip.call(this,this._handler,null,null,null),this},hover:function hover(hoverSet,leaveSet){return leaveSet=[leaveSet||"update",(hoverSet=[hoverSet||"hover"])[0]],this.on(this.events("view","mouseover",itemFilter),markTarget,invoke(hoverSet)),this.on(this.events("view","mouseout",itemFilter),markTarget,invoke(leaveSet)),this},data:function data(name,values){return arguments.length<2?dataref(this,name).values.value:change.call(this,name,changeset().remove(truthy).insert(values))},change,insert:function insert$1(name,_){return change.call(this,name,changeset().insert(_))},remove:function remove(name,_){return change.call(this,name,changeset().remove(_))},scale:function scale$1(name){var scales=this._runtime.scales;return has$1(scales,name)||error("Unrecognized scale or projection: "+name),scales[name].value},initialize:function initialize(el,elBind){const view=this,type=view._renderType,config=view._eventConfig.bind,module=renderModule(type);el=view._el=el?lookup$1(view,el,!0):null,function initializeAria(view){const el=view.container();el&&(el.setAttribute("role","graphics-document"),el.setAttribute("aria-roleDescription","visualization"),ariaLabel(el,view.description()))}(view),module||view.error("Unrecognized renderer type: "+type);const Handler=module.handler||CanvasHandler,Renderer=el?module.renderer:module.headless;return view._renderer=Renderer?initializeRenderer(view,view._renderer,el,Renderer):null,view._handler=function initializeHandler(view,prevHandler,el,constructor){const handler=new constructor(view.loader(),trap(view,view.tooltip())).scene(view.scenegraph().root).initialize(el,offset(view),view);return prevHandler&&prevHandler.handlers().forEach((h=>{handler.on(h.type,h.handler)})),handler}(view,view._handler,el,Handler),view._redraw=!0,el&&"none"!==config&&(elBind=elBind?view._elBind=lookup$1(view,elBind,!0):el.appendChild(element("form",{class:"vega-bindings"})),view._bind.forEach((_=>{_.param.element&&"container"!==config&&(_.element=lookup$1(view,_.param.element,!!_.param.input))})),view._bind.forEach((_=>{!function bind(view,el,binding){if(!el)return;const param=binding.param;let bind=binding.state;return bind||(bind=binding.state={elements:null,active:!1,set:null,update:value=>{value!=view.signal(param.signal)&&view.runAsync(null,(()=>{bind.source=!0,view.signal(param.signal,value)}))}},param.debounce&&(bind.update=debounce(param.debounce,bind.update))),(null==param.input&¶m.element?target:generate)(bind,el,param,view),bind.active||(view.on(view._signals[param.signal],null,(()=>{bind.source?bind.source=!1:bind.set(view.signal(param.signal))})),bind.active=!0),bind}(view,_.element||elBind,_)}))),view},toImageURL:async function renderToImageURL(type,scaleFactor){type!==RenderType.Canvas&&type!==RenderType.SVG&&type!==RenderType.PNG&&error("Unrecognized image type: "+type);const r=await renderHeadless(this,type,scaleFactor);return type===RenderType.SVG?function toBlobURL(data,mime){const blob=new Blob([data],{type:mime});return window.URL.createObjectURL(blob)}(r.svg(),"image/svg+xml"):r.canvas().toDataURL("image/png")},toCanvas:async function renderToCanvas(scaleFactor,opt){return(await renderHeadless(this,RenderType.Canvas,scaleFactor,opt)).canvas()},toSVG:async function renderToSVG(scaleFactor){return(await renderHeadless(this,RenderType.SVG,scaleFactor)).svg()},getState:function getState(options){return this._runtime.getState(options||{data:dataTest,signals:signalTest,recurse:!0})},setState:function setState(state){return this.runAsync(null,(v=>{v._trigger=!1,v._runtime.setState(state)}),(v=>{v._trigger=!0})),this}});const VIEW="view",LBRACK="[",RBRACK="]",LBRACE="{",RBRACE="}",COLON=":",COMMA=",",NAME="@",GT=">",ILLEGAL=/[[\]{}]/,DEFAULT_MARKS={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let DEFAULT_SOURCE,MARKS;function eventSelector(selector,source,marks){return DEFAULT_SOURCE=source||VIEW,MARKS=marks||DEFAULT_MARKS,parseMerge(selector.trim()).map(parseSelector)}function find(s,i,endChar,pushChar,popChar){const n=s.length;let c,count=0;for(;i=0?--count:pushChar&&pushChar.indexOf(c)>=0&&++count}return i}function parseMerge(s){const output=[],n=s.length;let start=0,i=0;for(;i' after between selector: "+s;b=b.map(parseSelector);const stream=parseSelector(s.slice(1).trim());if(stream.between)return{between:b,stream};stream.between=b;return stream}(s):function parseStream$1(s){const stream={source:DEFAULT_SOURCE},source=[];let j,filter,throttle=[0,0],markname=0,start=0,n=s.length,i=0;if(s[n-1]===RBRACE){if(i=s.lastIndexOf(LBRACE),!(i>=0))throw"Unmatched right brace: "+s;try{throttle=function parseThrottle(s){const a=s.split(COMMA);if(!s.length||a.length>2)throw s;return a.map((_=>{const x=+_;if(x!=x)throw s;return x}))}(s.substring(i+1,n-1))}catch(e){throw"Invalid throttle specification: "+s}n=(s=s.slice(0,i).trim()).length,i=0}if(!n)throw s;s[0]===NAME&&(markname=++i);j=find(s,i,COLON),j1?(stream.type=source[1],markname?stream.markname=source[0].slice(1):!function isMarkType(type){return MARKS[type]}(source[0])?stream.source=source[0]:stream.marktype=source[0]):stream.type=source[0];"!"===stream.type.slice(-1)&&(stream.consume=!0,stream.type=stream.type.slice(0,-1));null!=filter&&(stream.filter=filter);throttle[0]&&(stream.throttle=throttle[0]);throttle[1]&&(stream.debounce=throttle[1]);return stream}(s)}function parseAutosize(spec){return isObject(spec)?spec:{type:spec||"pad"}}const number=_=>+_||0,paddingObject=_=>({top:_,bottom:_,left:_,right:_});function parsePadding(spec){return isObject(spec)?spec.signal?spec:{top:number(spec.top),bottom:number(spec.bottom),left:number(spec.left),right:number(spec.right)}:paddingObject(number(spec))}const encoder=_=>isObject(_)&&!isArray(_)?extend$1({},_):{value:_};function addEncode(object,name,value,set){if(null!=value){return isObject(value)&&!isArray(value)||isArray(value)&&value.length&&isObject(value[0])?object.update[name]=value:object[set||"enter"][name]={value},1}return 0}function addEncoders(object,enter,update){for(const name in enter)addEncode(object,name,enter[name]);for(const name in update)addEncode(object,name,update[name],"update")}function extendEncode(encode,extra,skip){for(const name in extra)skip&&has$1(skip,name)||(encode[name]=extend$1(encode[name]||{},extra[name]));return encode}function has(key,encode){return encode&&(encode.enter&&encode.enter[key]||encode.update&&encode.update[key])}const MarkRole="mark",FrameRole="frame",ScopeRole="scope",AxisRole="axis",AxisDomainRole="axis-domain",AxisGridRole="axis-grid",AxisLabelRole="axis-label",AxisTickRole="axis-tick",AxisTitleRole="axis-title",LegendRole="legend",LegendBandRole="legend-band",LegendEntryRole="legend-entry",LegendGradientRole="legend-gradient",LegendLabelRole="legend-label",LegendSymbolRole="legend-symbol",LegendTitleRole="legend-title",TitleRole="title",TitleTextRole="title-text",TitleSubtitleRole="title-subtitle";function applyDefault(defaults,key,value){defaults[key]=value&&value.signal?{signal:value.signal}:{value}}const scaleRef=scale=>isString(scale)?$(scale):scale.signal?`(${scale.signal})`:field(scale);function entry$1(enc){if(null!=enc.gradient)return function gradient$1(enc){const args=[enc.start,enc.stop,enc.count].map((_=>null==_?null:$(_)));for(;args.length&&null==peek$1(args);)args.pop();return args.unshift(scaleRef(enc.gradient)),`gradient(${args.join(",")})`}(enc);let value=enc.signal?`(${enc.signal})`:enc.color?function color$1(enc){return enc.c?_color("hcl",enc.h,enc.c,enc.l):enc.h||enc.s?_color("hsl",enc.h,enc.s,enc.l):enc.l||enc.a?_color("lab",enc.l,enc.a,enc.b):enc.r||enc.g||enc.b?_color("rgb",enc.r,enc.g,enc.b):null}(enc.color):null!=enc.field?field(enc.field):void 0!==enc.value?$(enc.value):void 0;return null!=enc.scale&&(value=function scale(enc,value){const scale=scaleRef(enc.scale);null!=enc.range?value=`lerp(_range(${scale}), ${+enc.range})`:(void 0!==value&&(value=`_scale(${scale}, ${value})`),enc.band&&(value=(value?value+"+":"")+`_bandwidth(${scale})`+(1==+enc.band?"":"*"+property(enc.band)),enc.extra&&(value=`(datum.extra ? _scale(${scale}, datum.extra.value) : ${value})`)),null==value&&(value="0"));return value}(enc,value)),void 0===value&&(value=null),null!=enc.exponent&&(value=`pow(${value},${property(enc.exponent)})`),null!=enc.mult&&(value+=`*${property(enc.mult)}`),null!=enc.offset&&(value+=`+${property(enc.offset)}`),enc.round&&(value=`round(${value})`),value}const _color=(type,x,y,z)=>`(${type}(${[x,y,z].map(entry$1).join(",")})+'')`;function property(property){return isObject(property)?"("+entry$1(property)+")":property}function field(ref){return resolveField(isObject(ref)?ref:{datum:ref})}function resolveField(ref){let object,level,field;if(ref.signal)object="datum",field=ref.signal;else if(ref.group||ref.parent){for(level=Math.max(1,ref.level||1),object="item";level-- >0;)object+=".mark.group";ref.parent?(field=ref.parent,object+=".datum"):field=ref.group}else ref.datum?(object="datum",field=ref.datum):error("Invalid field reference: "+$(ref));return ref.signal||(field=isString(field)?splitAccessPath(field).map($).join("]["):resolveField(field)),object+"["+field+"]"}function parseEncode(encode,type,role,style,scope,params){const enc={};(params=params||{}).encoders={$encode:enc},encode=function applyDefaults(encode,type,role,style,config){const defaults={},enter={};let update,key,skip,props;for(key in key="lineBreak","text"!==type||null==config[key]||has(key,encode)||applyDefault(defaults,key,config[key]),("legend"==role||String(role).startsWith("axis"))&&(role=null),props=role===FrameRole?config.group:role===MarkRole?extend$1({},config.mark,config[type]):null,props)skip=has(key,encode)||("fill"===key||"stroke"===key)&&(has("fill",encode)||has("stroke",encode)),skip||applyDefault(defaults,key,props[key]);for(key in array$5(style).forEach((name=>{const props=config.style&&config.style[name];for(const key in props)has(key,encode)||applyDefault(defaults,key,props[key])})),encode=extend$1({},encode),defaults)props=defaults[key],props.signal?(update=update||{})[key]=props:enter[key]=props;return encode.enter=extend$1(enter,encode.enter),update&&(encode.update=extend$1(update,encode.update)),encode}(encode,type,role,style,scope.config);for(const key in encode)enc[key]=parseBlock(encode[key],type,params,scope);return params}function parseBlock(block,marktype,params,scope){const channels={},fields={};for(const name in block)null!=block[name]&&(channels[name]=parse$1((enc=block[name],isArray(enc)?function rule$1(enc){let code="";return enc.forEach((rule=>{const value=entry$1(rule);code+=rule.test?`(${rule.test})?${value}:`:value})),":"===peek$1(code)&&(code+="null"),code}(enc):entry$1(enc)),scope,params,fields));var enc;return{$expr:{marktype,channels},$fields:Object.keys(fields),$output:Object.keys(block)}}function parse$1(code,scope,params,fields){const expr=parser(code,scope);return expr.$fields.forEach((name=>fields[name]=1)),extend$1(params,expr.$params),expr.$expr}const OUTER="outer",OUTER_INVALID=["value","update","init","react","bind"];function outerError(prefix,name){error(prefix+' for "outer" push: '+$(name))}function parseSignal(signal,scope){const name=signal.name;if(signal.push===OUTER)scope.signals[name]||outerError("No prior signal definition",name),OUTER_INVALID.forEach((prop=>{void 0!==signal[prop]&&outerError("Invalid property ",prop)}));else{const op=scope.addSignal(name,signal.value);!1===signal.react&&(op.react=!1),signal.bind&&scope.addBinding(name,signal.bind)}}function Entry$1(type,value,params,parent){this.id=-1,this.type=type,this.value=value,this.params=params,parent&&(this.parent=parent)}function entry(type,value,params,parent){return new Entry$1(type,value,params,parent)}function operator(value,params){return entry("operator",value,params)}function ref(op){const ref={$ref:op.id};return op.id<0&&(op.refs=op.refs||[]).push(ref),ref}function fieldRef$1(field,name){return name?{$field:field,$name:name}:{$field:field}}const keyFieldRef=fieldRef$1("key");function compareRef(fields,orders){return{$compare:fields,$order:orders}}const Descending="descending";function aggrField(op,field){return(op&&op.signal?"$"+op.signal:op||"")+(op&&field?"_":"")+(field&&field.signal?"$"+field.signal:field||"")}const Scope$1="scope",View="view";function isSignal(_){return _&&_.signal}function hasSignal(_){if(isSignal(_))return!0;if(isObject(_))for(const key in _)if(hasSignal(_[key]))return!0;return!1}function value(specValue,defaultValue){return null!=specValue?specValue:defaultValue}function deref(v){return v&&v.signal||v}const Timer="timer";function parseStream(stream,scope){return(stream.merge?mergeStream:stream.stream?nestedStream:stream.type?eventStream:error("Invalid stream specification: "+$(stream)))(stream,scope)}function mergeStream(stream,scope){const entry=streamParameters({merge:stream.merge.map((s=>parseStream(s,scope)))},stream,scope);return scope.addStream(entry).id}function nestedStream(stream,scope){const entry=streamParameters({stream:parseStream(stream.stream,scope)},stream,scope);return scope.addStream(entry).id}function eventStream(stream,scope){let id;stream.type===Timer?(id=scope.event(Timer,stream.throttle),stream={between:stream.between,filter:stream.filter}):id=scope.event(function eventSource(source){return source===Scope$1?View:source||View}(stream.source),stream.type);const entry=streamParameters({stream:id},stream,scope);return 1===Object.keys(entry).length?id:scope.addStream(entry).id}function streamParameters(entry,stream,scope){let param=stream.between;return param&&(2!==param.length&&error('Stream "between" parameter must have 2 entries: '+$(stream)),entry.between=[parseStream(param[0],scope),parseStream(param[1],scope)]),param=stream.filter?[].concat(stream.filter):[],(stream.marktype||stream.markname||stream.markrole)&¶m.push(function filterMark(type,name,role){const item="event.item";return item+(type&&"*"!==type?"&&"+item+".mark.marktype==='"+type+"'":"")+(role?"&&"+item+".mark.role==='"+role+"'":"")+(name?"&&"+item+".mark.name==='"+name+"'":"")}(stream.marktype,stream.markname,stream.markrole)),stream.source===Scope$1&¶m.push("inScope(event.item)"),param.length&&(entry.filter=parser("("+param.join(")&&(")+")",scope).$expr),null!=(param=stream.throttle)&&(entry.throttle=+param),null!=(param=stream.debounce)&&(entry.debounce=+param),stream.consume&&(entry.consume=!0),entry}const OP_VALUE_EXPR={code:"_.$value",ast:{type:"Identifier",value:"value"}};function parseUpdate(spec,scope,target){const encode=spec.encode,entry={target};let events=spec.events,update=spec.update,sources=[];events||error("Signal update missing events specification."),isString(events)&&(events=eventSelector(events,scope.isSubscope()?Scope$1:View)),events=array$5(events).filter((s=>s.signal||s.scale?(sources.push(s),0):1)),sources.length>1&&(sources=[mergeSources(sources)]),events.length&&sources.push(events.length>1?{merge:events}:events[0]),null!=encode&&(update&&error("Signal encode and update are mutually exclusive."),update="encode(item(),"+$(encode)+")"),entry.update=isString(update)?parser(update,scope):null!=update.expr?parser(update.expr,scope):null!=update.value?update.value:null!=update.signal?{$expr:OP_VALUE_EXPR,$params:{$value:scope.signalRef(update.signal)}}:error("Invalid signal update specification."),spec.force&&(entry.options={force:!0}),sources.forEach((source=>scope.addUpdate(extend$1(function streamSource(stream,scope){return{source:stream.signal?scope.signalRef(stream.signal):stream.scale?scope.scaleRef(stream.scale):parseStream(stream,scope)}}(source,scope),entry))))}function mergeSources(sources){return{signal:"["+sources.map((s=>s.scale?'scale("'+s.scale+'")':s.signal))+"]"}}const transform=name=>(params,value,parent)=>entry(name,value,params||void 0,parent),Aggregate=transform("aggregate"),AxisTicks=transform("axisticks"),Bound=transform("bound"),Collect=transform("collect"),Compare=transform("compare"),DataJoin=transform("datajoin"),Encode=transform("encode"),Expression=transform("expression"),Facet=transform("facet"),Field=transform("field"),Key=transform("key"),LegendEntries=transform("legendentries"),Load=transform("load"),Mark$1=transform("mark"),MultiExtent=transform("multiextent"),MultiValues=transform("multivalues"),Overlap=transform("overlap"),Params=transform("params"),PreFacet=transform("prefacet"),Projection=transform("projection"),Proxy=transform("proxy"),Relay=transform("relay"),Render=transform("render"),Scale=transform("scale"),Sieve=transform("sieve"),SortItems=transform("sortitems"),ViewLayout=transform("viewlayout"),Values=transform("values");let FIELD_REF_ID=0;const MULTIDOMAIN_SORT_OPS={min:"min",max:"max",count:"sum"};function parseScale(spec,scope){const params=scope.getScale(spec.name).params;let key;for(key in params.domain=parseScaleDomain$1(spec.domain,spec,scope),null!=spec.range&&(params.range=parseScaleRange$1(spec,scope,params)),null!=spec.interpolate&&function parseScaleInterpolate(interpolate,params){params.interpolate=parseLiteral(interpolate.type||interpolate),null!=interpolate.gamma&&(params.interpolateGamma=parseLiteral(interpolate.gamma))}(spec.interpolate,params),null!=spec.nice&&(params.nice=function parseScaleNice(nice){return isObject(nice)?{interval:parseLiteral(nice.interval),step:parseLiteral(nice.step)}:parseLiteral(nice)}(spec.nice)),null!=spec.bins&&(params.bins=function parseScaleBins(v,scope){return v.signal||isArray(v)?parseArray(v,scope):scope.objectProperty(v)}(spec.bins,scope)),spec)has$1(params,key)||"name"===key||(params[key]=parseLiteral(spec[key],scope))}function parseLiteral(v,scope){return isObject(v)?v.signal?scope.signalRef(v.signal):error("Unsupported object: "+$(v)):v}function parseArray(v,scope){return v.signal?scope.signalRef(v.signal):v.map((v=>parseLiteral(v,scope)))}function dataLookupError(name){error("Can not find data set: "+$(name))}function parseScaleDomain$1(domain,spec,scope){if(domain)return domain.signal?scope.signalRef(domain.signal):(isArray(domain)?explicitDomain:domain.fields?multipleDomain:singularDomain)(domain,spec,scope);null==spec.domainMin&&null==spec.domainMax||error("No scale domain defined for domainMin/domainMax to override.")}function explicitDomain(domain,spec,scope){return domain.map((v=>parseLiteral(v,scope)))}function singularDomain(domain,spec,scope){const data=scope.getData(domain.data);return data||dataLookupError(domain.data),isDiscrete$2(spec.type)?data.valuesRef(scope,domain.field,parseSort(domain.sort,!1)):isQuantile$1(spec.type)?data.domainRef(scope,domain.field):data.extentRef(scope,domain.field)}function multipleDomain(domain,spec,scope){const data=domain.data,fields=domain.fields.reduce(((dom,d)=>(d=isString(d)?{data,field:d}:isArray(d)||d.signal?function fieldRef(data,scope){const name="_:vega:_"+FIELD_REF_ID++,coll=Collect({});if(isArray(data))coll.value={$ingest:data};else if(data.signal){const code="setdata("+$(name)+","+data.signal+")";coll.params.input=scope.signalRef(code)}return scope.addDataPipeline(name,[coll,Sieve({})]),{data:name,field:"data"}}(d,scope):d,dom.push(d),dom)),[]);return(isDiscrete$2(spec.type)?ordinalMultipleDomain:isQuantile$1(spec.type)?quantileMultipleDomain:numericMultipleDomain)(domain,scope,fields)}function ordinalMultipleDomain(domain,scope,fields){const sort=parseSort(domain.sort,!0);let a,v;const counts=fields.map((f=>{const data=scope.getData(f.data);return data||dataLookupError(f.data),data.countsRef(scope,f.field,sort)})),p={groupby:keyFieldRef,pulse:counts};sort&&(a=sort.op||"count",v=sort.field?aggrField(a,sort.field):"count",p.ops=[MULTIDOMAIN_SORT_OPS[a]],p.fields=[scope.fieldRef(v)],p.as=[v]),a=scope.add(Aggregate(p));const c=scope.add(Collect({pulse:ref(a)}));return v=scope.add(Values({field:keyFieldRef,sort:scope.sortRef(sort),pulse:ref(c)})),ref(v)}function parseSort(sort,multidomain){return sort&&(sort.field||sort.op?sort.field||"count"===sort.op?multidomain&&sort.field&&sort.op&&!MULTIDOMAIN_SORT_OPS[sort.op]&&error("Multiple domain scales can not be sorted using "+sort.op):error("No field provided for sort aggregate op: "+sort.op):isObject(sort)?sort.field="key":sort={field:"key"}),sort}function quantileMultipleDomain(domain,scope,fields){const values=fields.map((f=>{const data=scope.getData(f.data);return data||dataLookupError(f.data),data.domainRef(scope,f.field)}));return ref(scope.add(MultiValues({values})))}function numericMultipleDomain(domain,scope,fields){const extents=fields.map((f=>{const data=scope.getData(f.data);return data||dataLookupError(f.data),data.extentRef(scope,f.field)}));return ref(scope.add(MultiExtent({extents})))}function parseScaleRange$1(spec,scope,params){const config=scope.config.range;let range=spec.range;if(range.signal)return scope.signalRef(range.signal);if(isString(range)){if(config&&has$1(config,range))return parseScaleRange$1(spec=extend$1({},spec,{range:config[range]}),scope,params);"width"===range?range=[0,{signal:"width"}]:"height"===range?range=isDiscrete$2(spec.type)?[0,{signal:"height"}]:[{signal:"height"},0]:error("Unrecognized scale range value: "+$(range))}else{if(range.scheme)return params.scheme=isArray(range.scheme)?parseArray(range.scheme,scope):parseLiteral(range.scheme,scope),range.extent&&(params.schemeExtent=parseArray(range.extent,scope)),void(range.count&&(params.schemeCount=parseLiteral(range.count,scope)));if(range.step)return void(params.rangeStep=parseLiteral(range.step,scope));if(isDiscrete$2(spec.type)&&!isArray(range))return parseScaleDomain$1(range,spec,scope);isArray(range)||error("Unsupported range type: "+$(range))}return range.map((v=>(isArray(v)?parseArray:parseLiteral)(v,scope)))}function parseParameter$1(_,name,scope){return isArray(_)?_.map((_=>parseParameter$1(_,name,scope))):isObject(_)?_.signal?scope.signalRef(_.signal):"fit"===name?_:error("Unsupported parameter object: "+$(_)):_}const Top="top",Bottom="bottom",Vertical="vertical",Start="start",End="end",Index="index",Label="label",Offset="offset",Perc="perc",Perc2="perc2",Value="value",GuideLabelStyle="guide-label",GuideTitleStyle="guide-title",GroupTitleStyle="group-title",GroupSubtitleStyle="group-subtitle",Symbols="symbol",Gradient="gradient",Discrete="discrete",Size="size",LegendScales=[Size,"shape","fill","stroke","strokeWidth","strokeDash","opacity"],Skip={name:1,style:1,interactive:1},zero$1={value:0},one={value:1},GroupMark="group",RectMark="rect",RuleMark="rule",SymbolMark="symbol",TextMark="text";function guideGroup(mark){return mark.type=GroupMark,mark.interactive=mark.interactive||!1,mark}function lookup(spec,config){const _=(name,dflt)=>value(spec[name],value(config[name],dflt));return _.isVertical=s=>Vertical===value(spec.direction,config.direction||(s?config.symbolDirection:config.gradientDirection)),_.gradientLength=()=>value(spec.gradientLength,config.gradientLength||config.gradientWidth),_.gradientThickness=()=>value(spec.gradientThickness,config.gradientThickness||config.gradientHeight),_.entryColumns=()=>value(spec.columns,value(config.columns,+_.isVertical(!0))),_}function getEncoding(name,encode){const v=encode&&(encode.update&&encode.update[name]||encode.enter&&encode.enter[name]);return v&&v.signal?v:v?v.value:null}function anchorExpr(s,e,m){return`item.anchor === '${Start}' ? ${s} : item.anchor === '${End}' ? ${e} : ${m}`}const alignExpr$1=anchorExpr($("left"),$("right"),$("center"));function extendOffset(value,offset){return offset?value?isObject(value)?Object.assign({},value,{offset:extendOffset(value.offset,offset)}):{value,offset}:offset:value}function guideMark(mark,extras){return extras?(mark.name=extras.name,mark.style=extras.style||mark.style,mark.interactive=!!extras.interactive,mark.encode=extendEncode(mark.encode,extras,Skip)):mark.interactive=!1,mark}function legendGradient(spec,scale,config,userEncode){const _=lookup(spec,config),vertical=_.isVertical(),thickness=_.gradientThickness(),length=_.gradientLength();let enter,start,stop,width,height;vertical?(start=[0,1],stop=[0,0],width=thickness,height=length):(start=[0,0],stop=[1,0],width=length,height=thickness);const encode={enter:enter={opacity:zero$1,x:zero$1,y:zero$1,width:encoder(width),height:encoder(height)},update:extend$1({},enter,{opacity:one,fill:{gradient:scale,start,stop}}),exit:{opacity:zero$1}};return addEncoders(encode,{stroke:_("gradientStrokeColor"),strokeWidth:_("gradientStrokeWidth")},{opacity:_("gradientOpacity")}),guideMark({type:RectMark,role:LegendGradientRole,encode},userEncode)}function legendGradientDiscrete(spec,scale,config,userEncode,dataRef){const _=lookup(spec,config),vertical=_.isVertical(),thickness=_.gradientThickness(),length=_.gradientLength();let u,v,uu,vv,adjust="";vertical?(u="y",uu="y2",v="x",vv="width",adjust="1-"):(u="x",uu="x2",v="y",vv="height");const enter={opacity:zero$1,fill:{scale,field:Value}};enter[u]={signal:adjust+"datum."+Perc,mult:length},enter[v]=zero$1,enter[uu]={signal:adjust+"datum."+Perc2,mult:length},enter[vv]=encoder(thickness);const encode={enter,update:extend$1({},enter,{opacity:one}),exit:{opacity:zero$1}};return addEncoders(encode,{stroke:_("gradientStrokeColor"),strokeWidth:_("gradientStrokeWidth")},{opacity:_("gradientOpacity")}),guideMark({type:RectMark,role:LegendBandRole,key:Value,from:dataRef,encode},userEncode)}const alignExpr=`datum.${Perc}<=0?"left":datum.${Perc}>=1?"right":"center"`,baselineExpr=`datum.${Perc}<=0?"${Bottom}":datum.${Perc}>=1?"${Top}":"middle"`;function legendGradientLabels(spec,config,userEncode,dataRef){const _=lookup(spec,config),vertical=_.isVertical(),thickness=encoder(_.gradientThickness()),length=_.gradientLength();let enter,update,u,v,overlap=_("labelOverlap"),adjust="";const encode={enter:enter={opacity:zero$1},update:update={opacity:one,text:{field:Label}},exit:{opacity:zero$1}};return addEncoders(encode,{fill:_("labelColor"),fillOpacity:_("labelOpacity"),font:_("labelFont"),fontSize:_("labelFontSize"),fontStyle:_("labelFontStyle"),fontWeight:_("labelFontWeight"),limit:value(spec.labelLimit,config.gradientLabelLimit)}),vertical?(enter.align={value:"left"},enter.baseline=update.baseline={signal:baselineExpr},u="y",v="x",adjust="1-"):(enter.align=update.align={signal:alignExpr},enter.baseline={value:"top"},u="x",v="y"),enter[u]=update[u]={signal:adjust+"datum."+Perc,mult:length},enter[v]=update[v]=thickness,thickness.offset=value(spec.labelOffset,config.gradientLabelOffset)||0,overlap=overlap?{separation:_("labelSeparation"),method:overlap,order:"datum."+Index}:void 0,guideMark({type:TextMark,role:LegendLabelRole,style:GuideLabelStyle,key:Value,from:dataRef,encode,overlap},userEncode)}function legendSymbolGroups(spec,config,userEncode,dataRef,columns){const _=lookup(spec,config),entries=userEncode.entries,interactive=!(!entries||!entries.interactive),name=entries?entries.name:void 0,height=_("clipHeight"),symbolOffset=_("symbolOffset"),valueRef={data:"value"},xSignal=`(${columns}) ? datum.${Offset} : datum.${Size}`,yEncode=height?encoder(height):{field:Size},index=`datum.${Index}`,ncols=`max(1, ${columns})`;let encode,enter,update,nrows,sort;yEncode.mult=.5,encode={enter:enter={opacity:zero$1,x:{signal:xSignal,mult:.5,offset:symbolOffset},y:yEncode},update:update={opacity:one,x:enter.x,y:enter.y},exit:{opacity:zero$1}};let baseFill=null,baseStroke=null;spec.fill||(baseFill=config.symbolBaseFillColor,baseStroke=config.symbolBaseStrokeColor),addEncoders(encode,{fill:_("symbolFillColor",baseFill),shape:_("symbolType"),size:_("symbolSize"),stroke:_("symbolStrokeColor",baseStroke),strokeDash:_("symbolDash"),strokeDashOffset:_("symbolDashOffset"),strokeWidth:_("symbolStrokeWidth")},{opacity:_("symbolOpacity")}),LegendScales.forEach((scale=>{spec[scale]&&(update[scale]=enter[scale]={scale:spec[scale],field:Value})}));const symbols=guideMark({type:SymbolMark,role:LegendSymbolRole,key:Value,from:valueRef,clip:!!height||void 0,encode},userEncode.symbols),labelOffset=encoder(symbolOffset);labelOffset.offset=_("labelOffset"),encode={enter:enter={opacity:zero$1,x:{signal:xSignal,offset:labelOffset},y:yEncode},update:update={opacity:one,text:{field:Label},x:enter.x,y:enter.y},exit:{opacity:zero$1}},addEncoders(encode,{align:_("labelAlign"),baseline:_("labelBaseline"),fill:_("labelColor"),fillOpacity:_("labelOpacity"),font:_("labelFont"),fontSize:_("labelFontSize"),fontStyle:_("labelFontStyle"),fontWeight:_("labelFontWeight"),limit:_("labelLimit")});const labels=guideMark({type:TextMark,role:LegendLabelRole,style:GuideLabelStyle,key:Value,from:valueRef,encode},userEncode.labels);return encode={enter:{noBound:{value:!height},width:zero$1,height:height?encoder(height):zero$1,opacity:zero$1},exit:{opacity:zero$1},update:update={opacity:one,row:{signal:null},column:{signal:null}}},_.isVertical(!0)?(nrows=`ceil(item.mark.items.length / ${ncols})`,update.row.signal=`${index}%${nrows}`,update.column.signal=`floor(${index} / ${nrows})`,sort={field:["row",index]}):(update.row.signal=`floor(${index} / ${ncols})`,update.column.signal=`${index} % ${ncols}`,sort={field:index}),update.column.signal=`(${columns})?${update.column.signal}:${index}`,guideGroup({role:ScopeRole,from:dataRef={facet:{data:dataRef,name:"value",groupby:Index}},encode:extendEncode(encode,entries,Skip),marks:[symbols,labels],name,interactive,sort})}const isL='item.orient === "left"',isR='item.orient === "right"',isLR=`(${isL} || ${isR})`,isVG=`datum.vgrad && ${isLR}`,baseline$1=anchorExpr('"top"','"bottom"','"middle"'),exprAlign=`datum.vgrad && ${isR} ? (${anchorExpr('"right"','"left"','"center"')}) : (${isLR} && !(datum.vgrad && ${isL})) ? "left" : ${alignExpr$1}`,exprAnchor=`item._anchor || (${isLR} ? "middle" : "start")`,exprAngle=`${isVG} ? (${isL} ? -90 : 90) : 0`,exprBaseline=`${isLR} ? (datum.vgrad ? (${isR} ? "bottom" : "top") : ${baseline$1}) : "top"`;function clip(clip,scope){let expr;return isObject(clip)&&(clip.signal?expr=clip.signal:clip.path?expr="pathShape("+param(clip.path)+")":clip.sphere&&(expr="geoShape("+param(clip.sphere)+', {type: "Sphere"})')),expr?scope.signalRef(expr):!!clip}function param(value){return isObject(value)&&value.signal?value.signal:$(value)}function getRole(spec){const role=spec.role||"";return role.indexOf("axis")&&role.indexOf("legend")&&role.indexOf("title")?spec.type===GroupMark?ScopeRole:role||MarkRole:role}function definition(spec){return{marktype:spec.type,name:spec.name||void 0,role:spec.role||getRole(spec),zindex:+spec.zindex||void 0,aria:spec.aria,description:spec.description}}function interactive(spec,scope){return spec&&spec.signal?scope.signalRef(spec.signal):!1!==spec}function parseTransform(spec,scope){const def=definition$1(spec.type);def||error("Unrecognized transform type: "+$(spec.type));const t=entry(def.type.toLowerCase(),null,parseParameters(def,spec,scope));return spec.signal&&scope.addSignal(spec.signal,scope.proxy(t)),t.metadata=def.metadata||{},t}function parseParameters(def,spec,scope){const params={},n=def.params.length;for(let i=0;iparseSubParameter(def,v,scope)))):parseSubParameter(def,value,scope)}(def,spec,scope):"projection"===type?scope.projectionRef(spec[def.name]):def.array&&!isSignal(value)?value.map((v=>parameterValue(def,v,scope))):parameterValue(def,value,scope):void(def.required&&error("Missing required "+$(spec.type)+" parameter: "+$(def.name)))}function parameterValue(def,value,scope){const type=def.type;if(isSignal(value))return isExpr(type)?error("Expression references can not be signals."):isField(type)?scope.fieldRef(value):isCompare(type)?scope.compareRef(value):scope.signalRef(value.signal);{const expr=def.expr||isField(type);return expr&&outerExpr(value)?scope.exprRef(value.expr,value.as):expr&&outerField(value)?fieldRef$1(value.field,value.as):isExpr(type)?parser(value,scope):isData(type)?ref(scope.getData(value).values):isField(type)?fieldRef$1(value):isCompare(type)?scope.compareRef(value):value}}function parseSubParameter(def,value,scope){const n=def.params.length;let pdef;for(let i=0;i_&&_.expr,outerField=_=>_&&_.field,isData=_=>"data"===_,isExpr=_=>"expr"===_,isField=_=>"field"===_,isCompare=_=>"compare"===_;function getDataRef(from,scope){return from.$ref?from:from.data&&from.data.$ref?from.data:ref(scope.getData(from.data).output)}function DataScope(scope,input,output,values,aggr){this.scope=scope,this.input=input,this.output=output,this.values=values,this.aggregate=aggr,this.index={}}function fieldKey(field){return isString(field)?field:null}function addSortField(scope,p,sort){const as=aggrField(sort.op,sort.field);let s;if(p.ops){for(let i=0,n=p.as.length;inull==_?"null":_)).join(",")+"),0)",scope);op.update=expr.$expr,op.params=expr.$params}function parseMark(spec,scope){const role=getRole(spec),group=spec.type===GroupMark,facet=spec.from&&spec.from.facet,overlap=spec.overlap;let ops,op,store,enc,name,layoutRef,boundRef,layout=spec.layout||role===ScopeRole||role===FrameRole;const nested=role===MarkRole||layout||facet,input=function parseData$1(from,group,scope){let facet,key,op,dataRef,parent;return from?(facet=from.facet)&&(group||error("Only group marks can be faceted."),null!=facet.field?dataRef=parent=getDataRef(facet,scope):(from.data?parent=ref(scope.getData(from.data).aggregate):(op=parseTransform(extend$1({type:"aggregate",groupby:array$5(facet.groupby)},facet.aggregate),scope),op.params.key=scope.keyRef(facet.groupby),op.params.pulse=getDataRef(facet,scope),dataRef=parent=ref(scope.add(op))),key=scope.keyRef(facet.groupby,!0))):dataRef=ref(scope.add(Collect(null,[{}]))),dataRef||(dataRef=getDataRef(from,scope)),{key,pulse:dataRef,parent}}(spec.from,group,scope);op=scope.add(DataJoin({key:input.key||(spec.key?fieldRef$1(spec.key):void 0),pulse:input.pulse,clean:!group}));const joinRef=ref(op);op=store=scope.add(Collect({pulse:joinRef})),op=scope.add(Mark$1({markdef:definition(spec),interactive:interactive(spec.interactive,scope),clip:clip(spec.clip,scope),context:{$context:!0},groups:scope.lookup(),parent:scope.signals.parent?scope.signalRef("parent"):null,index:scope.markpath(),pulse:ref(op)}));const markRef=ref(op);op=enc=scope.add(Encode(parseEncode(spec.encode,spec.type,role,spec.style,scope,{mod:!1,pulse:markRef}))),op.params.parent=scope.encode(),spec.transform&&spec.transform.forEach((_=>{const tx=parseTransform(_,scope),md=tx.metadata;(md.generates||md.changes)&&error("Mark transforms should not generate new data."),md.nomod||(enc.params.mod=!0),tx.params.pulse=ref(op),scope.add(op=tx)})),spec.sort&&(op=scope.add(SortItems({sort:scope.compareRef(spec.sort),pulse:ref(op)})));const encodeRef=ref(op);(facet||layout)&&(layout=scope.add(ViewLayout({layout:scope.objectProperty(spec.layout),legends:scope.legends,mark:markRef,pulse:encodeRef})),layoutRef=ref(layout));const bound=scope.add(Bound({mark:markRef,pulse:layoutRef||encodeRef}));boundRef=ref(bound),group&&(nested&&(ops=scope.operators,ops.pop(),layout&&ops.pop()),scope.pushState(encodeRef,layoutRef||boundRef,joinRef),facet?function parseFacet(spec,scope,group){const facet=spec.from.facet,name=facet.name,data=getDataRef(facet,scope);let op;facet.name||error("Facet must have a name: "+$(facet)),facet.data||error("Facet must reference a data set: "+$(facet)),facet.field?op=scope.add(PreFacet({field:scope.fieldRef(facet.field),pulse:data})):facet.groupby?op=scope.add(Facet({key:scope.keyRef(facet.groupby),group:ref(scope.proxy(group.parent)),pulse:data})):error("Facet must specify groupby or field: "+$(facet));const subscope=scope.fork(),source=subscope.add(Collect()),values=subscope.add(Sieve({pulse:ref(source)}));subscope.addData(name,new DataScope(subscope,source,source,values)),subscope.addSignal("parent",null),op.params.subflow={$subflow:subscope.parse(spec).toRuntime()}}(spec,scope,input):nested?function parseSubflow(spec,scope,input){const op=scope.add(PreFacet({pulse:input.pulse})),subscope=scope.fork();subscope.add(Sieve()),subscope.addSignal("parent",null),op.params.subflow={$subflow:subscope.parse(spec).toRuntime()}}(spec,scope,input):scope.parse(spec),scope.popState(),nested&&(layout&&ops.push(layout),ops.push(bound))),overlap&&(boundRef=function parseOverlap(overlap,source,scope){const method=overlap.method,bound=overlap.bound,sep=overlap.separation,params={separation:isSignal(sep)?scope.signalRef(sep.signal):sep,method:isSignal(method)?scope.signalRef(method.signal):method,pulse:source};overlap.order&&(params.sort=scope.compareRef({field:overlap.order}));if(bound){const tol=bound.tolerance;params.boundTolerance=isSignal(tol)?scope.signalRef(tol.signal):+tol,params.boundScale=scope.scaleRef(bound.scale),params.boundOrient=bound.orient}return ref(scope.add(Overlap(params)))}(overlap,boundRef,scope));const render=scope.add(Render({pulse:boundRef})),sieve=scope.add(Sieve({pulse:ref(render)},void 0,scope.parent()));null!=spec.name&&(name=spec.name,scope.addData(name,new DataScope(scope,store,render,sieve)),spec.on&&spec.on.forEach((on=>{(on.insert||on.remove||on.toggle)&&error("Marks only support modify triggers."),parseTrigger(on,scope,name)})))}function parseLegend$1(spec,scope){const config=scope.config.legend,encode=spec.encode||{},_=lookup(spec,config),legendEncode=encode.legend||{},name=legendEncode.name||void 0,interactive=legendEncode.interactive,style=legendEncode.style,scales={};let entryLayout,params,children,scale=0;LegendScales.forEach((s=>spec[s]?(scales[s]=spec[s],scale=scale||spec[s]):0)),scale||error("Missing valid scale for legend.");const type=function legendType(spec,scaleType){let type=spec.type||Symbols;spec.type||1!==function scaleCount(spec){return LegendScales.reduce(((count,type)=>count+(spec[type]?1:0)),0)}(spec)||!spec.fill&&!spec.stroke||(type=isContinuous$1(scaleType)?Gradient:isDiscretizing$1(scaleType)?Discrete:Symbols);return type!==Gradient?type:isDiscretizing$1(scaleType)?Discrete:Gradient}(spec,scope.scaleType(scale)),datum={title:null!=spec.title,scales,type,vgrad:"symbol"!==type&&_.isVertical()},dataRef=ref(scope.add(Collect(null,[datum]))),entryRef=ref(scope.add(LegendEntries(params={type,scale:scope.scaleRef(scale),count:scope.objectProperty(_("tickCount")),limit:scope.property(_("symbolLimit")),values:scope.objectProperty(spec.values),minstep:scope.property(spec.tickMinStep),formatType:scope.property(spec.formatType),formatSpecifier:scope.property(spec.format)})));return type===Gradient?(children=[legendGradient(spec,scale,config,encode.gradient),legendGradientLabels(spec,config,encode.labels,entryRef)],params.count=params.count||scope.signalRef(`max(2,2*floor((${deref(_.gradientLength())})/100))`)):type===Discrete?children=[legendGradientDiscrete(spec,scale,config,encode.gradient,entryRef),legendGradientLabels(spec,config,encode.labels,entryRef)]:(entryLayout=function legendSymbolLayout(spec,config){const _=lookup(spec,config);return{align:_("gridAlign"),columns:_.entryColumns(),center:{row:!0,column:!1},padding:{row:_("rowPadding"),column:_("columnPadding")}}}(spec,config),children=[legendSymbolGroups(spec,config,encode,entryRef,deref(entryLayout.columns))],params.size=function sizeExpression(spec,scope,marks){const size=deref(getChannel("size",spec,marks)),strokeWidth=deref(getChannel("strokeWidth",spec,marks)),fontSize=deref(function getFontSize(encode,scope,style){return getEncoding("fontSize",encode)||function getStyle(name,scope,style){const s=scope.config.style[style];return s&&s[name]}("fontSize",scope,style)}(marks[1].encode,scope,GuideLabelStyle));return parser(`max(ceil(sqrt(${size})+${strokeWidth}),${fontSize})`,scope)}(spec,scope,children[0].marks)),children=[guideGroup({role:LegendEntryRole,from:dataRef,encode:{enter:{x:{value:0},y:{value:0}}},marks:children,layout:entryLayout,interactive})],datum.title&&children.push(function legendTitle(spec,config,userEncode,dataRef){const _=lookup(spec,config),encode={enter:{opacity:zero$1},update:{opacity:one,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:zero$1}};return addEncoders(encode,{orient:_("titleOrient"),_anchor:_("titleAnchor"),anchor:{signal:exprAnchor},angle:{signal:exprAngle},align:{signal:exprAlign},baseline:{signal:exprBaseline},text:spec.title,fill:_("titleColor"),fillOpacity:_("titleOpacity"),font:_("titleFont"),fontSize:_("titleFontSize"),fontStyle:_("titleFontStyle"),fontWeight:_("titleFontWeight"),limit:_("titleLimit"),lineHeight:_("titleLineHeight")},{align:_("titleAlign"),baseline:_("titleBaseline")}),guideMark({type:TextMark,role:LegendTitleRole,style:GuideTitleStyle,from:dataRef,encode},userEncode)}(spec,config,encode.title,dataRef)),parseMark(guideGroup({role:LegendRole,from:dataRef,encode:extendEncode(buildLegendEncode(_,spec,config),legendEncode,Skip),marks:children,aria:_("aria"),description:_("description"),zindex:_("zindex"),name,interactive,style}),scope)}function buildLegendEncode(_,spec,config){const encode={enter:{},update:{}};return addEncoders(encode,{orient:_("orient"),offset:_("offset"),padding:_("padding"),titlePadding:_("titlePadding"),cornerRadius:_("cornerRadius"),fill:_("fillColor"),stroke:_("strokeColor"),strokeWidth:config.strokeWidth,strokeDash:config.strokeDash,x:_("legendX"),y:_("legendY"),format:spec.format,formatType:spec.formatType}),encode}function getChannel(name,spec,marks){return spec[name]?`scale("${spec[name]}",datum)`:getEncoding(name,marks[0].encode)}DataScope.fromEntries=function(scope,entries){const n=entries.length,values=entries[n-1],output=entries[n-2];let input=entries[0],aggr=null,i=1;for(input&&"load"===input.type&&(input=entries[1]),scope.add(entries[0]);i{transforms.push(parseTransform(tx,scope))})),data.on&&data.on.forEach((on=>{parseTrigger(on,scope,data.name)})),scope.addDataPipeline(data.name,function analyze(data,scope,ops){const output=[];let upstream,i,n,t,m,source=null,modify=!1,generate=!1;data.values?isSignal(data.values)||hasSignal(data.format)?(output.push(load(scope,data)),output.push(source=collect())):output.push(source=collect({$ingest:data.values,$format:data.format})):data.url?hasSignal(data.url)||hasSignal(data.format)?(output.push(load(scope,data)),output.push(source=collect())):output.push(source=collect({$request:data.url,$format:data.format})):data.source&&(source=upstream=array$5(data.source).map((d=>ref(scope.getData(d).output))),output.push(null));for(i=0,n=ops.length;iorient===Bottom||orient===Top,getSign=(orient,a,b)=>isSignal(orient)?ifLeftTopExpr(orient.signal,a,b):"left"===orient||orient===Top?a:b,ifX=(orient,a,b)=>isSignal(orient)?ifXEnc(orient.signal,a,b):isX(orient)?a:b,ifY=(orient,a,b)=>isSignal(orient)?ifYEnc(orient.signal,a,b):isX(orient)?b:a,ifTop=(orient,a,b)=>isSignal(orient)?ifTopExpr(orient.signal,a,b):orient===Top?{value:a}:{value:b},ifRight=(orient,a,b)=>isSignal(orient)?ifRightExpr(orient.signal,a,b):"right"===orient?{value:a}:{value:b},ifXEnc=($orient,a,b)=>ifEnc(`${$orient} === '${Top}' || ${$orient} === '${Bottom}'`,a,b),ifYEnc=($orient,a,b)=>ifEnc(`${$orient} !== '${Top}' && ${$orient} !== '${Bottom}'`,a,b),ifLeftTopExpr=($orient,a,b)=>ifExpr(`${$orient} === 'left' || ${$orient} === '${Top}'`,a,b),ifTopExpr=($orient,a,b)=>ifExpr(`${$orient} === '${Top}'`,a,b),ifRightExpr=($orient,a,b)=>ifExpr(`${$orient} === 'right'`,a,b),ifEnc=(test,a,b)=>(a=null!=a?encoder(a):a,b=null!=b?encoder(b):b,isSimple(a)&&isSimple(b)?{signal:`${test} ? (${a=a?a.signal||$(a.value):null}) : (${b=b?b.signal||$(b.value):null})`}:[extend$1({test},a)].concat(b||[])),isSimple=enc=>null==enc||1===Object.keys(enc).length,ifExpr=(test,a,b)=>({signal:`${test} ? (${toExpr(a)}) : (${toExpr(b)})`}),ifOrient=($orient,t,b,l,r)=>({signal:(null!=l?`${$orient} === 'left' ? (${toExpr(l)}) : `:"")+(null!=b?`${$orient} === '${Bottom}' ? (${toExpr(b)}) : `:"")+(null!=r?`${$orient} === 'right' ? (${toExpr(r)}) : `:"")+(null!=t?`${$orient} === '${Top}' ? (${toExpr(t)}) : `:"")+"(null)"}),toExpr=v=>isSignal(v)?v.signal:null==v?null:$(v),mult=(sign,value)=>0===value?0:isSignal(sign)?{signal:`(${sign.signal}) * ${value}`}:{value:sign*value},patch=(value,base)=>{const s=value.signal;return s&&s.endsWith("(null)")?{signal:s.slice(0,-6)+base.signal}:value};function fallback(prop,config,axisConfig,style){let styleProp;if(config&&has$1(config,prop))return config[prop];if(has$1(axisConfig,prop))return axisConfig[prop];if(prop.startsWith("title")){switch(prop){case"titleColor":styleProp="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":styleProp=prop[5].toLowerCase()+prop.slice(6)}return style[GuideTitleStyle][styleProp]}if(prop.startsWith("label")){switch(prop){case"labelColor":styleProp="fill";break;case"labelFont":case"labelFontSize":styleProp=prop[5].toLowerCase()+prop.slice(6)}return style[GuideLabelStyle][styleProp]}return null}function keys$1(objects){const map={};for(const obj of objects)if(obj)for(const key in obj)map[key]=1;return Object.keys(map)}function position(spec,pos){return{scale:spec.scale,range:pos}}function axisGrid(spec,config,userEncode,dataRef,band){const _=lookup(spec,config),orient=spec.orient,vscale=spec.gridScale,sign=getSign(orient,1,-1),offset=function offsetValue(offset,sign){if(1===sign);else if(isObject(offset)){let entry=offset=extend$1({},offset);for(;null!=entry.mult;){if(!isObject(entry.mult))return entry.mult=isSignal(sign)?{signal:`(${entry.mult}) * (${sign.signal})`}:entry.mult*sign,offset;entry=entry.mult=extend$1({},entry.mult)}entry.mult=sign}else offset=isSignal(sign)?{signal:`(${sign.signal}) * (${offset||0})`}:sign*(offset||0);return offset}(spec.offset,sign);let enter,exit,update;const encode={enter:enter={opacity:zero$1},update:update={opacity:one},exit:exit={opacity:zero$1}};addEncoders(encode,{stroke:_("gridColor"),strokeCap:_("gridCap"),strokeDash:_("gridDash"),strokeDashOffset:_("gridDashOffset"),strokeOpacity:_("gridOpacity"),strokeWidth:_("gridWidth")});const tickPos={scale:spec.scale,field:Value,band:band.band,extra:band.extra,offset:band.offset,round:_("tickRound")},sz=ifX(orient,{signal:"height"},{signal:"width"}),gridStart=vscale?{scale:vscale,range:0,mult:sign,offset}:{value:0,offset},gridEnd=vscale?{scale:vscale,range:1,mult:sign,offset}:extend$1(sz,{mult:sign,offset});return enter.x=update.x=ifX(orient,tickPos,gridStart),enter.y=update.y=ifY(orient,tickPos,gridStart),enter.x2=update.x2=ifY(orient,gridEnd),enter.y2=update.y2=ifX(orient,gridEnd),exit.x=ifX(orient,tickPos),exit.y=ifY(orient,tickPos),guideMark({type:RuleMark,role:AxisGridRole,key:Value,from:dataRef,encode},userEncode)}function flushExpr(scale,threshold,a,b,c){return{signal:'flush(range("'+scale+'"), scale("'+scale+'", datum.value), '+threshold+","+a+","+b+","+c+")"}}function axisTitle(spec,config,userEncode,dataRef){const _=lookup(spec,config),orient=spec.orient,sign=getSign(orient,-1,1);let enter,update;const encode={enter:enter={opacity:zero$1,anchor:encoder(_("titleAnchor",null)),align:{signal:alignExpr$1}},update:update=extend$1({},enter,{opacity:one,text:encoder(spec.title)}),exit:{opacity:zero$1}},titlePos={signal:`lerp(range("${spec.scale}"), ${anchorExpr(0,1,.5)})`};return update.x=ifX(orient,titlePos),update.y=ifY(orient,titlePos),enter.angle=ifX(orient,zero$1,mult(sign,90)),enter.baseline=ifX(orient,ifTop(orient,Bottom,Top),{value:Bottom}),update.angle=enter.angle,update.baseline=enter.baseline,addEncoders(encode,{fill:_("titleColor"),fillOpacity:_("titleOpacity"),font:_("titleFont"),fontSize:_("titleFontSize"),fontStyle:_("titleFontStyle"),fontWeight:_("titleFontWeight"),limit:_("titleLimit"),lineHeight:_("titleLineHeight")},{align:_("titleAlign"),angle:_("titleAngle"),baseline:_("titleBaseline")}),function autoLayout(_,orient,encode,userEncode){const auto=(value,dim)=>null!=value?(encode.update[dim]=patch(encoder(value),encode.update[dim]),!1):!has(dim,userEncode),autoY=auto(_("titleX"),"x"),autoX=auto(_("titleY"),"y");encode.enter.auto=autoX===autoY?encoder(autoX):ifX(orient,encoder(autoX),encoder(autoY))}(_,orient,encode,userEncode),encode.update.align=patch(encode.update.align,enter.align),encode.update.angle=patch(encode.update.angle,enter.angle),encode.update.baseline=patch(encode.update.baseline,enter.baseline),guideMark({type:TextMark,role:AxisTitleRole,style:GuideTitleStyle,from:dataRef,encode},userEncode)}function parseAxis$1(spec,scope){const config=function axisConfig(spec,scope){var xy,or,key,config=scope.config,style=config.style,axis=config.axis,band="band"===scope.scaleType(spec.scale)&&config.axisBand,orient=spec.orient;if(isSignal(orient)){const xyKeys=keys$1([config.axisX,config.axisY]),orientKeys=keys$1([config.axisTop,config.axisBottom,config.axisLeft,config.axisRight]);for(key of(xy={},xyKeys))xy[key]=ifX(orient,fallback(key,config.axisX,axis,style),fallback(key,config.axisY,axis,style));for(key of(or={},orientKeys))or[key]=ifOrient(orient.signal,fallback(key,config.axisTop,axis,style),fallback(key,config.axisBottom,axis,style),fallback(key,config.axisLeft,axis,style),fallback(key,config.axisRight,axis,style))}else xy=orient===Top||orient===Bottom?config.axisX:config.axisY,or=config["axis"+orient[0].toUpperCase()+orient.slice(1)];return xy||or||band?extend$1({},axis,xy,or,band):axis}(spec,scope),encode=spec.encode||{},axisEncode=encode.axis||{},name=axisEncode.name||void 0,interactive=axisEncode.interactive,style=axisEncode.style,_=lookup(spec,config),band=function tickBand(_){const v=_("tickBand");let band,extra,offset=_("tickOffset");return v?v.signal?(band={signal:`(${v.signal}) === 'extent' ? 1 : 0.5`},extra={signal:`(${v.signal}) === 'extent'`},isObject(offset)||(offset={signal:`(${v.signal}) === 'extent' ? 0 : ${offset}`})):"extent"===v?(band=1,extra=!0,offset=0):(band=.5,extra=!1):(band=_("bandPosition"),extra=_("tickExtra")),{extra,band,offset}}(_),datum={scale:spec.scale,ticks:!!_("ticks"),labels:!!_("labels"),grid:!!_("grid"),domain:!!_("domain"),title:null!=spec.title},dataRef=ref(scope.add(Collect({},[datum]))),ticksRef=ref(scope.add(AxisTicks({scale:scope.scaleRef(spec.scale),extra:scope.property(band.extra),count:scope.objectProperty(spec.tickCount),values:scope.objectProperty(spec.values),minstep:scope.property(spec.tickMinStep),formatType:scope.property(spec.formatType),formatSpecifier:scope.property(spec.format)}))),children=[];let size;return datum.grid&&children.push(axisGrid(spec,config,encode.grid,ticksRef,band)),datum.ticks&&(size=_("tickSize"),children.push(function axisTicks(spec,config,userEncode,dataRef,size,band){const _=lookup(spec,config),orient=spec.orient,sign=getSign(orient,-1,1);let enter,exit,update;const encode={enter:enter={opacity:zero$1},update:update={opacity:one},exit:exit={opacity:zero$1}};addEncoders(encode,{stroke:_("tickColor"),strokeCap:_("tickCap"),strokeDash:_("tickDash"),strokeDashOffset:_("tickDashOffset"),strokeOpacity:_("tickOpacity"),strokeWidth:_("tickWidth")});const tickSize=encoder(size);tickSize.mult=sign;const tickPos={scale:spec.scale,field:Value,band:band.band,extra:band.extra,offset:band.offset,round:_("tickRound")};return update.y=enter.y=ifX(orient,zero$1,tickPos),update.y2=enter.y2=ifX(orient,tickSize),exit.x=ifX(orient,tickPos),update.x=enter.x=ifY(orient,zero$1,tickPos),update.x2=enter.x2=ifY(orient,tickSize),exit.y=ifY(orient,tickPos),guideMark({type:RuleMark,role:AxisTickRole,key:Value,from:dataRef,encode},userEncode)}(spec,config,encode.ticks,ticksRef,size,band))),datum.labels&&(size=datum.ticks?size:0,children.push(function axisLabels(spec,config,userEncode,dataRef,size,band){const _=lookup(spec,config),orient=spec.orient,scale=spec.scale,sign=getSign(orient,-1,1),flush=deref(_("labelFlush")),flushOffset=deref(_("labelFlushOffset")),labelAlign=_("labelAlign"),labelBaseline=_("labelBaseline");let update,flushOn=0===flush||!!flush;const tickSize=encoder(size);tickSize.mult=sign,tickSize.offset=encoder(_("labelPadding")||0),tickSize.offset.mult=sign;const tickPos={scale,field:Value,band:.5,offset:extendOffset(band.offset,_("labelOffset"))},align=ifX(orient,flushOn?flushExpr(scale,flush,'"left"','"right"','"center"'):{value:"center"},ifRight(orient,"left","right")),baseline=ifX(orient,ifTop(orient,"bottom","top"),flushOn?flushExpr(scale,flush,'"top"','"bottom"','"middle"'):{value:"middle"}),offsetExpr=flushExpr(scale,flush,`-(${flushOffset})`,flushOffset,0);flushOn=flushOn&&flushOffset;const enter={opacity:zero$1,x:ifX(orient,tickPos,tickSize),y:ifY(orient,tickPos,tickSize)},encode={enter,update:update={opacity:one,text:{field:Label},x:enter.x,y:enter.y,align,baseline},exit:{opacity:zero$1,x:enter.x,y:enter.y}};addEncoders(encode,{dx:!labelAlign&&flushOn?ifX(orient,offsetExpr):null,dy:!labelBaseline&&flushOn?ifY(orient,offsetExpr):null}),addEncoders(encode,{angle:_("labelAngle"),fill:_("labelColor"),fillOpacity:_("labelOpacity"),font:_("labelFont"),fontSize:_("labelFontSize"),fontWeight:_("labelFontWeight"),fontStyle:_("labelFontStyle"),limit:_("labelLimit"),lineHeight:_("labelLineHeight")},{align:labelAlign,baseline:labelBaseline});const bound=_("labelBound");let overlap=_("labelOverlap");return overlap=overlap||bound?{separation:_("labelSeparation"),method:overlap,order:"datum.index",bound:bound?{scale,orient,tolerance:bound}:null}:void 0,update.align!==align&&(update.align=patch(update.align,align)),update.baseline!==baseline&&(update.baseline=patch(update.baseline,baseline)),guideMark({type:TextMark,role:AxisLabelRole,style:GuideLabelStyle,key:Value,from:dataRef,encode,overlap},userEncode)}(spec,config,encode.labels,ticksRef,size,band))),datum.domain&&children.push(function axisDomain(spec,config,userEncode,dataRef){const _=lookup(spec,config),orient=spec.orient;let enter,update;const encode={enter:enter={opacity:zero$1},update:update={opacity:one},exit:{opacity:zero$1}};addEncoders(encode,{stroke:_("domainColor"),strokeCap:_("domainCap"),strokeDash:_("domainDash"),strokeDashOffset:_("domainDashOffset"),strokeWidth:_("domainWidth"),strokeOpacity:_("domainOpacity")});const pos0=position(spec,0),pos1=position(spec,1);return enter.x=update.x=ifX(orient,pos0,zero$1),enter.x2=update.x2=ifX(orient,pos1),enter.y=update.y=ifY(orient,pos0,zero$1),enter.y2=update.y2=ifY(orient,pos1),guideMark({type:RuleMark,role:AxisDomainRole,from:dataRef,encode},userEncode)}(spec,config,encode.domain,dataRef)),datum.title&&children.push(axisTitle(spec,config,encode.title,dataRef)),parseMark(guideGroup({role:AxisRole,from:dataRef,encode:extendEncode(buildAxisEncode(_,spec),axisEncode,Skip),marks:children,aria:_("aria"),description:_("description"),zindex:_("zindex"),name,interactive,style}),scope)}function buildAxisEncode(_,spec){const encode={enter:{},update:{}};return addEncoders(encode,{orient:_("orient"),offset:_("offset")||0,position:value(spec.position,0),titlePadding:_("titlePadding"),minExtent:_("minExtent"),maxExtent:_("maxExtent"),range:{signal:`abs(span(range("${spec.scale}")))`},translate:_("translate"),format:spec.format,formatType:spec.formatType}),encode}function parseScope(spec,scope,preprocessed){const signals=array$5(spec.signals),scales=array$5(spec.scales);return preprocessed||signals.forEach((_=>parseSignal(_,scope))),array$5(spec.projections).forEach((_=>function parseProjection$1(proj,scope){const config=scope.config.projection||{},params={};for(const name in proj)"name"!==name&&(params[name]=parseParameter$1(proj[name],name,scope));for(const name in config)null==params[name]&&(params[name]=parseParameter$1(config[name],name,scope));scope.addProjection(proj.name,params)}(_,scope))),scales.forEach((_=>function initScale(spec,scope){const type=spec.type||"linear";isValidScaleType(type)||error("Unrecognized scale type: "+$(type)),scope.addScale(spec.name,{type,domain:void 0})}(_,scope))),array$5(spec.data).forEach((_=>parseData$2(_,scope))),scales.forEach((_=>parseScale(_,scope))),(preprocessed||signals).forEach((_=>function parseSignalUpdates(signal,scope){const op=scope.getSignal(signal.name);let expr=signal.update;signal.init&&(expr?error("Signals can not include both init and update expressions."):(expr=signal.init,op.initonly=!0)),expr&&(expr=parser(expr,scope),op.update=expr.$expr,op.params=expr.$params),signal.on&&signal.on.forEach((_=>parseUpdate(_,scope,op.id)))}(_,scope))),array$5(spec.axes).forEach((_=>parseAxis$1(_,scope))),array$5(spec.marks).forEach((_=>parseMark(_,scope))),array$5(spec.legends).forEach((_=>parseLegend$1(_,scope))),spec.title&&parseTitle(spec.title,scope),scope.parseLambdas(),scope}const rootEncode=spec=>extendEncode({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},spec);function parseView(spec,scope){const config=scope.config,root=ref(scope.root=scope.add(operator())),signals=function collectSignals(spec,config){const _=name=>value(spec[name],config[name]),signals=[signalObject("background",_("background")),signalObject("autosize",parseAutosize(_("autosize"))),signalObject("padding",parsePadding(_("padding"))),signalObject("width",_("width")||0),signalObject("height",_("height")||0)],pre=signals.reduce(((p,s)=>(p[s.name]=s,p)),{}),map={};return array$5(spec.signals).forEach((s=>{has$1(pre,s.name)?s=extend$1(pre[s.name],s):signals.push(s),map[s.name]=s})),array$5(config.signals).forEach((s=>{has$1(map,s.name)||has$1(pre,s.name)||signals.push(s)})),signals}(spec,config);signals.forEach((_=>parseSignal(_,scope))),scope.description=spec.description||config.description,scope.eventConfig=config.events,scope.legends=scope.objectProperty(config.legend&&config.legend.layout),scope.locale=config.locale;const input=scope.add(Collect()),encode=scope.add(Encode(parseEncode(rootEncode(spec.encode),GroupMark,FrameRole,spec.style,scope,{pulse:ref(input)}))),parent=scope.add(ViewLayout({layout:scope.objectProperty(spec.layout),legends:scope.legends,autosize:scope.signalRef("autosize"),mark:root,pulse:ref(encode)}));scope.operators.pop(),scope.pushState(ref(encode),ref(parent),null),parseScope(spec,scope,signals),scope.operators.push(parent);let op=scope.add(Bound({mark:root,pulse:ref(parent)}));return op=scope.add(Render({pulse:ref(op)})),op=scope.add(Sieve({pulse:ref(op)})),scope.addData("root",new DataScope(scope,input,input,op)),scope}function signalObject(name,value){return value&&value.signal?{name,update:value.signal}:{name,value}}function Scope(config,options){this.config=config||{},this.options=options||{},this.bindings=[],this.field={},this.signals={},this.lambdas={},this.scales={},this.events={},this.data={},this.streams=[],this.updates=[],this.operators=[],this.eventConfig=null,this.locale=null,this._id=0,this._subid=0,this._nextsub=[0],this._parent=[],this._encode=[],this._lookup=[],this._markpath=[]}function Subscope(scope){this.config=scope.config,this.options=scope.options,this.legends=scope.legends,this.field=Object.create(scope.field),this.signals=Object.create(scope.signals),this.lambdas=Object.create(scope.lambdas),this.scales=Object.create(scope.scales),this.events=Object.create(scope.events),this.data=Object.create(scope.data),this.streams=[],this.updates=[],this.operators=[],this._id=0,this._subid=++scope._nextsub[0],this._nextsub=scope._nextsub,this._parent=scope._parent.slice(),this._encode=scope._encode.slice(),this._lookup=scope._lookup.slice(),this._markpath=scope._markpath}function propertyLambda(spec){return(isArray(spec)?arrayLambda:objectLambda)(spec)}function arrayLambda(array){const n=array.length;let code="[";for(let i=0;i0?",":"")+(isObject(value)?value.signal||propertyLambda(value):$(value))}return code+"]"}function objectLambda(obj){let key,value,code="{",i=0;for(key in obj)value=obj[key],code+=(++i>1?",":"")+$(key)+":"+(isObject(value)?value.signal||propertyLambda(value):$(value));return code+"}"}Scope.prototype=Subscope.prototype={parse(spec){return parseScope(spec,this)},fork(){return new Subscope(this)},isSubscope(){return this._subid>0},toRuntime(){return this.finish(),{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(op){return this.operators.push(op),op.id=this.id(),op.refs&&(op.refs.forEach((ref=>{ref.$ref=op.id})),op.refs=null),op},proxy(op){const vref=op instanceof Entry$1?ref(op):op;return this.add(Proxy({value:vref}))},addStream(stream){return this.streams.push(stream),stream.id=this.id(),stream},addUpdate(update){return this.updates.push(update),update},finish(){let name,ds;for(name in this.root&&(this.root.root=!0),this.signals)this.signals[name].signal=name;for(name in this.scales)this.scales[name].scale=name;function annotate(op,name,type){let data,list;op&&(data=op.data||(op.data={}),list=data[name]||(data[name]=[]),list.push(type))}for(name in this.data){ds=this.data[name],annotate(ds.input,name,"input"),annotate(ds.output,name,"output"),annotate(ds.values,name,"values");for(const field in ds.index)annotate(ds.index[field],name,"index:"+field)}return this},pushState(encode,parent,lookup){this._encode.push(ref(this.add(Sieve({pulse:encode})))),this._parent.push(parent),this._lookup.push(lookup?ref(this.proxy(lookup)):null),this._markpath.push(-1)},popState(){this._encode.pop(),this._parent.pop(),this._lookup.pop(),this._markpath.pop()},parent(){return peek$1(this._parent)},encode(){return peek$1(this._encode)},lookup(){return peek$1(this._lookup)},markpath(){const p=this._markpath;return++p[p.length-1]},fieldRef(field,name){if(isString(field))return fieldRef$1(field,name);field.signal||error("Unsupported field reference: "+$(field));const s=field.signal;let f=this.field[s];if(!f){const params={name:this.signalRef(s)};name&&(params.as=name),this.field[s]=f=ref(this.add(Field(params)))}return f},compareRef(cmp){let signal=!1;const check=_=>isSignal(_)?(signal=!0,this.signalRef(_.signal)):function isExpr$1(_){return _&&_.expr}(_)?(signal=!0,this.exprRef(_.expr)):_,fields=array$5(cmp.field).map(check),orders=array$5(cmp.order).map(check);return signal?ref(this.add(Compare({fields,orders}))):compareRef(fields,orders)},keyRef(fields,flat){let signal=!1;const sig=this.signals;return fields=array$5(fields).map((_=>isSignal(_)?(signal=!0,ref(sig[_.signal])):_)),signal?ref(this.add(Key({fields,flat}))):function keyRef(fields,flat){const ref={$key:fields};return flat&&(ref.$flat=!0),ref}(fields,flat)},sortRef(sort){if(!sort)return sort;const a=aggrField(sort.op,sort.field),o=sort.order||"ascending";return o.signal?ref(this.add(Compare({fields:a,orders:this.signalRef(o.signal)}))):compareRef(a,o)},event(source,type){const key=source+":"+type;if(!this.events[key]){const id=this.id();this.streams.push({id,source,type}),this.events[key]=id}return this.events[key]},hasOwnSignal(name){return has$1(this.signals,name)},addSignal(name,value){this.hasOwnSignal(name)&&error("Duplicate signal name: "+$(name));const op=value instanceof Entry$1?value:this.add(operator(value));return this.signals[name]=op},getSignal(name){return this.signals[name]||error("Unrecognized signal name: "+$(name)),this.signals[name]},signalRef(s){return this.signals[s]?ref(this.signals[s]):(has$1(this.lambdas,s)||(this.lambdas[s]=this.add(operator(null))),ref(this.lambdas[s]))},parseLambdas(){const code=Object.keys(this.lambdas);for(let i=0,n=code.length;ia+Math.floor(d*random()),pdf:x=>x===Math.floor(x)&&x>=a&&x=b?1:(v-a+1)/d},icdf:p=>p>=0&&p<=1?a-1+Math.floor(p*d):NaN};return dist.min(min).max(max)},randomKDE:kde,randomLCG:function lcg$2(seed){return function(){return(seed=(1103515245*seed+12345)%2147483647)/2147483647}},randomLogNormal:lognormal,randomMixture:mixture$1,randomNormal:gaussian,randomUniform:uniform,read,regressionConstant:constant$4,regressionExp:exp$1,regressionLinear:linear$2,regressionLoess:loess,regressionLog:log$3,regressionPoly:poly,regressionPow:pow$3,regressionQuad:quad,renderModule,repeat,resetDefaultLocale:function resetDefaultLocale(){return resetNumberFormatDefaultLocale(),resetTimeFormatDefaultLocale(),defaultLocale()},resetSVGClipId,resetSVGDefIds:function resetSVGDefIds(){resetSVGClipId(),function resetSVGGradientId(){gradient_id=0}()},responseType,runtimeContext:context,sampleCurve,sampleLogNormal,sampleNormal,sampleUniform,scale:scale$4,sceneEqual,sceneFromJSON,scenePickVisit:pickVisit,sceneToJSON,sceneVisit:visit,sceneZOrder:zorder,scheme:scheme$1,serializeXML,setRandom:function setRandom(r){random=r},span,splitAccessPath,stringValue:$,textMetrics,timeBin:bin$2,timeFloor,timeFormatLocale:timeFormatDefaultLocale,timeInterval,timeOffset,timeSequence,timeUnitSpecifier,timeUnits,toBoolean,toDate,toNumber,toSet,toString,transform:transform$2,transforms,truncate:truncate$1,truthy,tupleid,typeParsers,utcFloor,utcInterval,utcOffset,utcSequence,utcdayofyear,utcquarter,utcweek,version:"5.25.0",visitArray,week,writeConfig,zero:zero$5,zoomLinear,zoomLog,zoomPow,zoomSymlog});var Constants={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},Ops={"*":(a,b)=>a*b,"+":(a,b)=>a+b,"-":(a,b)=>a-b,"/":(a,b)=>a/b,"%":(a,b)=>a%b,">":(a,b)=>a>b,"<":(a,b)=>aa<=b,">=":(a,b)=>a>=b,"==":(a,b)=>a==b,"!=":(a,b)=>a!=b,"===":(a,b)=>a===b,"!==":(a,b)=>a!==b,"&":(a,b)=>a&b,"|":(a,b)=>a|b,"^":(a,b)=>a^b,"<<":(a,b)=>a<>":(a,b)=>a>>b,">>>":(a,b)=>a>>>b},Unary={"+":a=>+a,"-":a=>-a,"~":a=>~a,"!":a=>!a};const slice=Array.prototype.slice,apply=(m,args,cast)=>{const obj=cast?cast(args[0]):args[0];return obj[m].apply(obj,slice.call(args,1))};var Functions={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(a,b,c)=>Math.max(b,Math.min(c,a)),now:Date.now,utc:Date.UTC,datetime:(y,m,d,H,M,S,ms)=>new Date(y,m||0,null!=d?d:1,H||0,M||0,S||0,ms||0),date:d=>new Date(d).getDate(),day:d=>new Date(d).getDay(),year:d=>new Date(d).getFullYear(),month:d=>new Date(d).getMonth(),hours:d=>new Date(d).getHours(),minutes:d=>new Date(d).getMinutes(),seconds:d=>new Date(d).getSeconds(),milliseconds:d=>new Date(d).getMilliseconds(),time:d=>new Date(d).getTime(),timezoneoffset:d=>new Date(d).getTimezoneOffset(),utcdate:d=>new Date(d).getUTCDate(),utcday:d=>new Date(d).getUTCDay(),utcyear:d=>new Date(d).getUTCFullYear(),utcmonth:d=>new Date(d).getUTCMonth(),utchours:d=>new Date(d).getUTCHours(),utcminutes:d=>new Date(d).getUTCMinutes(),utcseconds:d=>new Date(d).getUTCSeconds(),utcmilliseconds:d=>new Date(d).getUTCMilliseconds(),length:x=>x.length,join:function(){return apply("join",arguments)},indexof:function(){return apply("indexOf",arguments)},lastindexof:function(){return apply("lastIndexOf",arguments)},slice:function(){return apply("slice",arguments)},reverse:x=>x.slice().reverse(),parseFloat,parseInt,upper:x=>String(x).toUpperCase(),lower:x=>String(x).toLowerCase(),substring:function(){return apply("substring",arguments,String)},split:function(){return apply("split",arguments,String)},replace:function(){return apply("replace",arguments,String)},trim:x=>String(x).trim(),regexp:RegExp,test:(r,t)=>RegExp(r).test(t)};const EventFunctions=["view","item","group","xy","x","y"],DisallowedMethods=new Set([Function,eval,setTimeout,setInterval]);"function"==typeof setImmediate&&DisallowedMethods.add(setImmediate);const Visitors={Literal:($,n)=>n.value,Identifier:($,n)=>{const id=n.name;return $.memberDepth>0?id:"datum"===id?$.datum:"event"===id?$.event:"item"===id?$.item:Constants[id]||$.params["$"+id]},MemberExpression:($,n)=>{const d=!n.computed,o=$(n.object);d&&($.memberDepth+=1);const p=$(n.property);if(d&&($.memberDepth-=1),!DisallowedMethods.has(o[p]))return o[p];console.error(`Prevented interpretation of member "${p}" which could lead to insecure code execution`)},CallExpression:($,n)=>{const args=n.arguments;let name=n.callee.name;return name.startsWith("_")&&(name=name.slice(1)),"if"===name?$(args[0])?$(args[1]):$(args[2]):($.fn[name]||Functions[name]).apply($.fn,args.map($))},ArrayExpression:($,n)=>n.elements.map($),BinaryExpression:($,n)=>Ops[n.operator]($(n.left),$(n.right)),UnaryExpression:($,n)=>Unary[n.operator]($(n.argument)),ConditionalExpression:($,n)=>$(n.test)?$(n.consequent):$(n.alternate),LogicalExpression:($,n)=>"&&"===n.operator?$(n.left)&&$(n.right):$(n.left)||$(n.right),ObjectExpression:($,n)=>n.properties.reduce(((o,p)=>{$.memberDepth+=1;const k=$(p.key);return $.memberDepth-=1,DisallowedMethods.has($(p.value))?console.error(`Prevented interpretation of property "${k}" which could lead to insecure code execution`):o[k]=$(p.value),o}),{})};function interpret(ast,fn,params,datum,event,item){const $=n=>Visitors[n.type]($,n);return $.memberDepth=0,$.fn=Object.create(fn),$.params=params,$.datum=datum,$.event=event,$.item=item,EventFunctions.forEach((f=>$.fn[f]=function(){return event.vega[f](...arguments)})),$(ast)}var expression$1={operator(ctx,expr){const ast=expr.ast,fn=ctx.functions;return _=>interpret(ast,fn,_)},parameter(ctx,expr){const ast=expr.ast,fn=ctx.functions;return(datum,_)=>interpret(ast,fn,_,datum)},event(ctx,expr){const ast=expr.ast,fn=ctx.functions;return event=>interpret(ast,fn,void 0,void 0,event)},handler(ctx,expr){const ast=expr.ast,fn=ctx.functions;return(_,event)=>{const datum=event.item&&event.item.datum;return interpret(ast,fn,_,datum,event)}},encode(ctx,encode){const{marktype,channels}=encode,fn=ctx.functions,swap="group"===marktype||"image"===marktype||"rect"===marktype;return(item,_)=>{const datum=item.datum;let v,m=0;for(const name in channels)v=interpret(channels[name].ast,fn,_,datum,void 0,item),item[name]!==v&&(item[name]=v,m=1);return"rule"!==marktype&&function adjustSpatial(item,encode,swap){let t;encode.x2&&(encode.x?(swap&&item.x>item.x2&&(t=item.x,item.x=item.x2,item.x2=t),item.width=item.x2-item.x):item.x=item.x2-(item.width||0)),encode.xc&&(item.x=item.xc-(item.width||0)/2),encode.y2&&(encode.y?(swap&&item.y>item.y2&&(t=item.y,item.y=item.y2,item.y2=t),item.height=item.y2-item.y):item.y=item.y2-(item.height||0)),encode.yc&&(item.y=item.yc-(item.height||0)/2)}(item,channels,swap),m}}},pkg$1_version="5.14.1",clone={exports:{}};!function(module){var clone=function(){function _instanceof(obj,type){return null!=type&&obj instanceof type}var nativeMap,nativeSet,nativePromise;try{nativeMap=Map}catch(_){nativeMap=function(){}}try{nativeSet=Set}catch(_){nativeSet=function(){}}try{nativePromise=Promise}catch(_){nativePromise=function(){}}function clone(parent,circular,depth,prototype,includeNonEnumerable){"object"==typeof circular&&(depth=circular.depth,prototype=circular.prototype,includeNonEnumerable=circular.includeNonEnumerable,circular=circular.circular);var allParents=[],allChildren=[],useBuffer="undefined"!=typeof Buffer;return void 0===circular&&(circular=!0),void 0===depth&&(depth=1/0),function _clone(parent,depth){if(null===parent)return null;if(0===depth)return parent;var child,proto;if("object"!=typeof parent)return parent;if(_instanceof(parent,nativeMap))child=new nativeMap;else if(_instanceof(parent,nativeSet))child=new nativeSet;else if(_instanceof(parent,nativePromise))child=new nativePromise((function(resolve,reject){parent.then((function(value){resolve(_clone(value,depth-1))}),(function(err){reject(_clone(err,depth-1))}))}));else if(clone.__isArray(parent))child=[];else if(clone.__isRegExp(parent))child=new RegExp(parent.source,__getRegExpFlags(parent)),parent.lastIndex&&(child.lastIndex=parent.lastIndex);else if(clone.__isDate(parent))child=new Date(parent.getTime());else{if(useBuffer&&Buffer.isBuffer(parent))return child=Buffer.allocUnsafe?Buffer.allocUnsafe(parent.length):new Buffer(parent.length),parent.copy(child),child;_instanceof(parent,Error)?child=Object.create(parent):void 0===prototype?(proto=Object.getPrototypeOf(parent),child=Object.create(proto)):(child=Object.create(prototype),proto=prototype)}if(circular){var index=allParents.indexOf(parent);if(-1!=index)return allChildren[index];allParents.push(parent),allChildren.push(child)}for(var i in _instanceof(parent,nativeMap)&&parent.forEach((function(value,key){var keyChild=_clone(key,depth-1),valueChild=_clone(value,depth-1);child.set(keyChild,valueChild)})),_instanceof(parent,nativeSet)&&parent.forEach((function(value){var entryChild=_clone(value,depth-1);child.add(entryChild)})),parent){var attrs;proto&&(attrs=Object.getOwnPropertyDescriptor(proto,i)),attrs&&null==attrs.set||(child[i]=_clone(parent[i],depth-1))}if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(parent);for(i=0;inormalizeLogicalComposition(o,normalizer)))}:isLogicalOr(op)?{or:op.or.map((o=>normalizeLogicalComposition(o,normalizer)))}:normalizer(op)}const deepEqual=equal,duplicate=clone_;function never(message){throw new Error(message)}function pick(obj,props){const copy={};for(const prop of props)has$1(obj,prop)&&(copy[prop]=obj[prop]);return copy}function omit(obj,props){const copy={...obj};for(const prop of props)delete copy[prop];return copy}Set.prototype.toJSON=function(){return`Set(${[...this].map((x=>stableStringify(x))).join(",")})`};const stringify$1=stableStringify;function hash(a){if(isNumber$1(a))return a;const str=isString(a)?a:stableStringify(a);if(str.length<250)return str;let h=0;for(let i=0;i0===i?y:`[${y}]`)),computedPrefixes=wrappedWithAccessors.map(((_,i)=>wrappedWithAccessors.slice(0,i+1).join("")));for(const y of computedPrefixes)prefixes.add(y)}return prefixes}function fieldIntersection(a,b){return void 0===a||void 0===b||hasIntersection(prefixGenerator(a),prefixGenerator(b))}function isEmpty(obj){return 0===keys(obj).length}const keys=Object.keys,vals=Object.values,entries$1=Object.entries;function isBoolean(b){return!0===b||!1===b}function varName(s){const alphanumericS=s.replace(/\W/g,"_");return(s.match(/^\d+/)?"_":"")+alphanumericS}function logicalExpr(op,cb){return isLogicalNot(op)?`!(${logicalExpr(op.not,cb)})`:isLogicalAnd(op)?`(${op.and.map((and=>logicalExpr(and,cb))).join(") && (")})`:isLogicalOr(op)?`(${op.or.map((or=>logicalExpr(or,cb))).join(") || (")})`:cb(op)}function deleteNestedProperty(obj,orderedProps){if(0===orderedProps.length)return!0;const prop=orderedProps.shift();return prop in obj&&deleteNestedProperty(obj[prop],orderedProps)&&delete obj[prop],isEmpty(obj)}function titleCase(s){return s.charAt(0).toUpperCase()+s.substr(1)}function accessPathWithDatum(path,datum="datum"){const pieces=splitAccessPath(path),prefixes=[];for(let i=1;i<=pieces.length;i++){const prefix=`[${pieces.slice(0,i).map($).join("][")}]`;prefixes.push(`${datum}${prefix}`)}return prefixes.join(" && ")}function flatAccessWithDatum(path,datum="datum"){return`${datum}[${$(splitAccessPath(path).join("."))}]`}function escapePathAccess(string){return string.replace(/(\[|\]|\.|'|")/g,"\\$1")}function replacePathInField(path){return`${splitAccessPath(path).map(escapePathAccess).join("\\.")}`}function replaceAll(string,find,replacement){return string.replace(new RegExp(find.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),replacement)}function removePathFromField(path){return`${splitAccessPath(path).join(".")}`}function accessPathDepth(path){return path?splitAccessPath(path).length:0}function getFirstDefined(...args){for(const arg of args)if(void 0!==arg)return arg}let idCounter=42;function uniqueId(prefix){const id=++idCounter;return prefix?String(prefix)+id:id}function internalField(name){return isInternalField(name)?name:`__${name}`}function isInternalField(name){return name.startsWith("__")}function normalizeAngle(angle){if(void 0!==angle)return(angle%360+360)%360}function isNumeric(value){return!!isNumber$1(value)||!isNaN(value)&&!isNaN(parseFloat(value))}const ROW="row",COLUMN="column",FACET="facet",X="x",Y="y",X2="x2",Y2="y2",XOFFSET="xOffset",YOFFSET="yOffset",RADIUS="radius",RADIUS2="radius2",THETA="theta",THETA2="theta2",LATITUDE="latitude",LONGITUDE="longitude",LATITUDE2="latitude2",LONGITUDE2="longitude2",COLOR="color",FILL="fill",STROKE="stroke",SHAPE="shape",SIZE="size",ANGLE="angle",OPACITY="opacity",FILLOPACITY="fillOpacity",STROKEOPACITY="strokeOpacity",STROKEWIDTH="strokeWidth",STROKEDASH="strokeDash",TEXT$1="text",ORDER="order",DETAIL="detail",KEY="key",TOOLTIP="tooltip",HREF="href",URL$1="url",DESCRIPTION="description",POLAR_POSITION_CHANNEL_INDEX={theta:1,theta2:1,radius:1,radius2:1};function isPolarPositionChannel(c){return c in POLAR_POSITION_CHANNEL_INDEX}const GEO_POSIITON_CHANNEL_INDEX={longitude:1,longitude2:1,latitude:1,latitude2:1};function getPositionChannelFromLatLong(channel){switch(channel){case LATITUDE:return"y";case LATITUDE2:return"y2";case LONGITUDE:return"x";case LONGITUDE2:return"x2"}}function isGeoPositionChannel(c){return c in GEO_POSIITON_CHANNEL_INDEX}const GEOPOSITION_CHANNELS=keys(GEO_POSIITON_CHANNEL_INDEX),UNIT_CHANNEL_INDEX={x:1,y:1,x2:1,y2:1,...POLAR_POSITION_CHANNEL_INDEX,...GEO_POSIITON_CHANNEL_INDEX,xOffset:1,yOffset:1,color:1,fill:1,stroke:1,opacity:1,fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeDash:1,size:1,angle:1,shape:1,order:1,text:1,detail:1,key:1,tooltip:1,href:1,url:1,description:1};function isColorChannel(channel){return channel===COLOR||channel===FILL||channel===STROKE}const FACET_CHANNEL_INDEX={row:1,column:1,facet:1},FACET_CHANNELS=keys(FACET_CHANNEL_INDEX),CHANNEL_INDEX={...UNIT_CHANNEL_INDEX,...FACET_CHANNEL_INDEX},CHANNELS=keys(CHANNEL_INDEX),{order:_o,detail:_d,tooltip:_tt1,...SINGLE_DEF_CHANNEL_INDEX}=CHANNEL_INDEX,{row:_r,column:_c,facet:_f,...SINGLE_DEF_UNIT_CHANNEL_INDEX}=SINGLE_DEF_CHANNEL_INDEX;function isChannel(str){return!!CHANNEL_INDEX[str]}const SECONDARY_RANGE_CHANNEL=[X2,Y2,LATITUDE2,LONGITUDE2,THETA2,RADIUS2];function isSecondaryRangeChannel(c){return getMainRangeChannel(c)!==c}function getMainRangeChannel(channel){switch(channel){case X2:return X;case Y2:return Y;case LATITUDE2:return LATITUDE;case LONGITUDE2:return LONGITUDE;case THETA2:return THETA;case RADIUS2:return RADIUS}return channel}function getVgPositionChannel(channel){if(isPolarPositionChannel(channel))switch(channel){case THETA:return"startAngle";case THETA2:return"endAngle";case RADIUS:return"outerRadius";case RADIUS2:return"innerRadius"}return channel}function getSecondaryRangeChannel(channel){switch(channel){case X:return X2;case Y:return Y2;case LATITUDE:return LATITUDE2;case LONGITUDE:return LONGITUDE2;case THETA:return THETA2;case RADIUS:return RADIUS2}}function getSizeChannel(channel){switch(channel){case X:case X2:return"width";case Y:case Y2:return"height"}}function getOffsetChannel(channel){switch(channel){case X:return"xOffset";case Y:return"yOffset";case X2:return"x2Offset";case Y2:return"y2Offset";case THETA:return"thetaOffset";case RADIUS:return"radiusOffset";case THETA2:return"theta2Offset";case RADIUS2:return"radius2Offset"}}function getOffsetScaleChannel(channel){switch(channel){case X:return"xOffset";case Y:return"yOffset"}}function getMainChannelFromOffsetChannel(channel){switch(channel){case"xOffset":return"x";case"yOffset":return"y"}}const UNIT_CHANNELS=keys(UNIT_CHANNEL_INDEX),{x:_x,y:_y,x2:_x2,y2:_y2,xOffset:_xo,yOffset:_yo,latitude:_latitude,longitude:_longitude,latitude2:_latitude2,longitude2:_longitude2,theta:_theta,theta2:_theta2,radius:_radius,radius2:_radius2,...NONPOSITION_CHANNEL_INDEX}=UNIT_CHANNEL_INDEX,NONPOSITION_CHANNELS=keys(NONPOSITION_CHANNEL_INDEX),POSITION_SCALE_CHANNEL_INDEX={x:1,y:1},POSITION_SCALE_CHANNELS=keys(POSITION_SCALE_CHANNEL_INDEX);function isXorY(channel){return channel in POSITION_SCALE_CHANNEL_INDEX}const POLAR_POSITION_SCALE_CHANNEL_INDEX={theta:1,radius:1},POLAR_POSITION_SCALE_CHANNELS=keys(POLAR_POSITION_SCALE_CHANNEL_INDEX);function getPositionScaleChannel(sizeType){return"width"===sizeType?X:Y}const OFFSET_SCALE_CHANNEL_INDEX={xOffset:1,yOffset:1};function isXorYOffset(channel){return channel in OFFSET_SCALE_CHANNEL_INDEX}const{text:_t,tooltip:_tt,href:_hr,url:_u,description:_al,detail:_dd,key:_k,order:_oo,...NONPOSITION_SCALE_CHANNEL_INDEX}=NONPOSITION_CHANNEL_INDEX,NONPOSITION_SCALE_CHANNELS=keys(NONPOSITION_SCALE_CHANNEL_INDEX);const SCALE_CHANNEL_INDEX={...POSITION_SCALE_CHANNEL_INDEX,...POLAR_POSITION_SCALE_CHANNEL_INDEX,...OFFSET_SCALE_CHANNEL_INDEX,...NONPOSITION_SCALE_CHANNEL_INDEX},SCALE_CHANNELS=keys(SCALE_CHANNEL_INDEX);function isScaleChannel(channel){return!!SCALE_CHANNEL_INDEX[channel]}function supportMark(channel,mark){return function getSupportedMark(channel){switch(channel){case COLOR:case FILL:case STROKE:case DESCRIPTION:case DETAIL:case KEY:case TOOLTIP:case HREF:case ORDER:case OPACITY:case FILLOPACITY:case STROKEOPACITY:case STROKEWIDTH:case FACET:case ROW:case COLUMN:return ALL_MARKS;case X:case Y:case XOFFSET:case YOFFSET:case LATITUDE:case LONGITUDE:return ALL_MARKS_EXCEPT_GEOSHAPE;case X2:case Y2:case LATITUDE2:case LONGITUDE2:return{area:"always",bar:"always",image:"always",rect:"always",rule:"always",circle:"binned",point:"binned",square:"binned",tick:"binned",line:"binned",trail:"binned"};case SIZE:return{point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",text:"always",line:"always",trail:"always"};case STROKEDASH:return{line:"always",point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",geoshape:"always"};case SHAPE:return{point:"always",geoshape:"always"};case TEXT$1:return{text:"always"};case ANGLE:return{point:"always",square:"always",text:"always"};case URL$1:return{image:"always"};case THETA:case RADIUS:return{text:"always",arc:"always"};case THETA2:case RADIUS2:return{arc:"always"}}}(channel)[mark]}const ALL_MARKS={arc:"always",area:"always",bar:"always",circle:"always",geoshape:"always",image:"always",line:"always",rule:"always",point:"always",rect:"always",square:"always",trail:"always",text:"always",tick:"always"},{geoshape:_g,...ALL_MARKS_EXCEPT_GEOSHAPE}=ALL_MARKS;function rangeType(channel){switch(channel){case X:case Y:case THETA:case RADIUS:case XOFFSET:case YOFFSET:case SIZE:case ANGLE:case STROKEWIDTH:case OPACITY:case FILLOPACITY:case STROKEOPACITY:case X2:case Y2:case THETA2:case RADIUS2:return;case FACET:case ROW:case COLUMN:case SHAPE:case STROKEDASH:case TEXT$1:case TOOLTIP:case HREF:case URL$1:case DESCRIPTION:return"discrete";case COLOR:case FILL:case STROKE:return"flexible";case LATITUDE:case LONGITUDE:case LATITUDE2:case LONGITUDE2:case DETAIL:case KEY:case ORDER:return}}const AGGREGATE_OP_INDEX={argmax:1,argmin:1,average:1,count:1,distinct:1,product:1,max:1,mean:1,median:1,min:1,missing:1,q1:1,q3:1,ci0:1,ci1:1,stderr:1,stdev:1,stdevp:1,sum:1,valid:1,values:1,variance:1,variancep:1},MULTIDOMAIN_SORT_OP_INDEX={count:1,min:1,max:1};function isArgminDef(a){return!!a&&!!a.argmin}function isArgmaxDef(a){return!!a&&!!a.argmax}function isAggregateOp(a){return isString(a)&&!!AGGREGATE_OP_INDEX[a]}const COUNTING_OPS=new Set(["count","valid","missing","distinct"]);function isCountingAggregateOp(aggregate){return isString(aggregate)&&COUNTING_OPS.has(aggregate)}const SUM_OPS=new Set(["count","sum","distinct","valid","missing"]),SHARED_DOMAIN_OPS=new Set(["mean","average","median","q1","q3","min","max"]);function binToString(bin){return isBoolean$2(bin)&&(bin=normalizeBin(bin,void 0)),"bin"+keys(bin).map((p=>isParameterExtent(bin[p])?varName(`_${p}_${entries$1(bin[p])}`):varName(`_${p}_${bin[p]}`))).join("")}function isBinning(bin){return!0===bin||isBinParams(bin)&&!bin.binned}function isBinned(bin){return"binned"===bin||isBinParams(bin)&&!0===bin.binned}function isBinParams(bin){return isObject(bin)}function isParameterExtent(extent){return extent?.param}function autoMaxBins(channel){switch(channel){case ROW:case COLUMN:case SIZE:case COLOR:case FILL:case STROKE:case STROKEWIDTH:case OPACITY:case FILLOPACITY:case STROKEOPACITY:case SHAPE:return 6;case STROKEDASH:return 4;default:return 10}}function isExprRef(o){return!!o?.expr}function replaceExprRef(index){const props=keys(index||{}),newIndex={};for(const prop of props)newIndex[prop]=signalRefOrValue(index[prop]);return newIndex}function extractTitleConfig(titleConfig){const{anchor,frame,offset,orient,angle,limit,color,subtitleColor,subtitleFont,subtitleFontSize,subtitleFontStyle,subtitleFontWeight,subtitleLineHeight,subtitlePadding,...rest}=titleConfig,nonMarkTitleProperties={...anchor?{anchor}:{},...frame?{frame}:{},...offset?{offset}:{},...orient?{orient}:{},...void 0!==angle?{angle}:{},...void 0!==limit?{limit}:{}},subtitle={...subtitleColor?{subtitleColor}:{},...subtitleFont?{subtitleFont}:{},...subtitleFontSize?{subtitleFontSize}:{},...subtitleFontStyle?{subtitleFontStyle}:{},...subtitleFontWeight?{subtitleFontWeight}:{},...subtitleLineHeight?{subtitleLineHeight}:{},...subtitlePadding?{subtitlePadding}:{}};return{titleMarkConfig:{...rest,...color?{fill:color}:{}},subtitleMarkConfig:pick(titleConfig,["align","baseline","dx","dy","limit"]),nonMarkTitleProperties,subtitle}}function isText(v){return isString(v)||isArray(v)&&isString(v[0])}function isSignalRef(o){return!!o?.signal}function isVgRangeStep(range){return!!range.step}function isDataRefDomain(domain){return!isArray(domain)&&("field"in domain&&"data"in domain)}const VG_MARK_CONFIGS=keys({aria:1,description:1,ariaRole:1,ariaRoleDescription:1,blend:1,opacity:1,fill:1,fillOpacity:1,stroke:1,strokeCap:1,strokeWidth:1,strokeOpacity:1,strokeDash:1,strokeDashOffset:1,strokeJoin:1,strokeOffset:1,strokeMiterLimit:1,startAngle:1,endAngle:1,padAngle:1,innerRadius:1,outerRadius:1,size:1,shape:1,interpolate:1,tension:1,orient:1,align:1,baseline:1,text:1,dir:1,dx:1,dy:1,ellipsis:1,limit:1,radius:1,theta:1,angle:1,font:1,fontSize:1,fontWeight:1,fontStyle:1,lineBreak:1,lineHeight:1,cursor:1,href:1,tooltip:1,cornerRadius:1,cornerRadiusTopLeft:1,cornerRadiusTopRight:1,cornerRadiusBottomLeft:1,cornerRadiusBottomRight:1,aspect:1,width:1,height:1,url:1,smooth:1}),VG_MARK_INDEX={arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1},VG_CORNERRADIUS_CHANNELS=["cornerRadius","cornerRadiusTopLeft","cornerRadiusTopRight","cornerRadiusBottomLeft","cornerRadiusBottomRight"];function signalOrValueRefWithCondition(val){const condition=isArray(val.condition)?val.condition.map(conditionalSignalRefOrValue):conditionalSignalRefOrValue(val.condition);return{...signalRefOrValue(val),condition}}function signalRefOrValue(value){if(isExprRef(value)){const{expr,...rest}=value;return{signal:expr,...rest}}return value}function conditionalSignalRefOrValue(value){if(isExprRef(value)){const{expr,...rest}=value;return{signal:expr,...rest}}return value}function signalOrValueRef(value){if(isExprRef(value)){const{expr,...rest}=value;return{signal:expr,...rest}}return isSignalRef(value)?value:void 0!==value?{value}:void 0}function exprFromSignalRefOrValue(ref){return isSignalRef(ref)?ref.signal:$(ref)}function exprFromValueRefOrSignalRef(ref){return isSignalRef(ref)?ref.signal:$(ref.value)}function signalOrStringValue(v){return isSignalRef(v)?v.signal:null==v?null:$(v)}function applyMarkConfig(e,model,propsList){for(const property of propsList){const value=getMarkConfig(property,model.markDef,model.config);void 0!==value&&(e[property]=signalOrValueRef(value))}return e}function getStyles(mark){return[].concat(mark.type,mark.style??[])}function getMarkPropOrConfig(channel,mark,config,opt={}){const{vgChannel,ignoreVgConfig}=opt;return vgChannel&&void 0!==mark[vgChannel]?mark[vgChannel]:void 0!==mark[channel]?mark[channel]:!ignoreVgConfig||vgChannel&&vgChannel!==channel?getMarkConfig(channel,mark,config,opt):void 0}function getMarkConfig(channel,mark,config,{vgChannel}={}){return getFirstDefined(vgChannel?getMarkStyleConfig(channel,mark,config.style):void 0,getMarkStyleConfig(channel,mark,config.style),vgChannel?config[mark.type][vgChannel]:void 0,config[mark.type][channel],vgChannel?config.mark[vgChannel]:config.mark[channel])}function getMarkStyleConfig(prop,mark,styleConfigIndex){return getStyleConfig(prop,getStyles(mark),styleConfigIndex)}function getStyleConfig(p,styles,styleConfigIndex){let value;styles=array$5(styles);for(const style of styles){const styleConfig=styleConfigIndex[style];styleConfig&&void 0!==styleConfig[p]&&(value=styleConfig[p])}return value}function sortParams(orderDef,fieldRefOption){return array$5(orderDef).reduce(((s,orderChannelDef)=>(s.field.push(vgField(orderChannelDef,fieldRefOption)),s.order.push(orderChannelDef.sort??"ascending"),s)),{field:[],order:[]})}function mergeTitleFieldDefs(f1,f2){const merged=[...f1];return f2.forEach((fdToMerge=>{for(const fieldDef1 of merged)if(deepEqual(fieldDef1,fdToMerge))return;merged.push(fdToMerge)})),merged}function mergeTitle(title1,title2){return deepEqual(title1,title2)||!title2?title1:title1?[...array$5(title1),...array$5(title2)].join(", "):title2}function mergeTitleComponent(v1,v2){const v1Val=v1.value,v2Val=v2.value;if(null==v1Val||null===v2Val)return{explicit:v1.explicit,value:null};if((isText(v1Val)||isSignalRef(v1Val))&&(isText(v2Val)||isSignalRef(v2Val)))return{explicit:v1.explicit,value:mergeTitle(v1Val,v2Val)};if(isText(v1Val)||isSignalRef(v1Val))return{explicit:v1.explicit,value:v1Val};if(isText(v2Val)||isSignalRef(v2Val))return{explicit:v1.explicit,value:v2Val};if(!(isText(v1Val)||isSignalRef(v1Val)||isText(v2Val)||isSignalRef(v2Val)))return{explicit:v1.explicit,value:mergeTitleFieldDefs(v1Val,v2Val)};throw new Error("It should never reach here")}function invalidSpec(spec){return`Invalid specification ${stringify$1(spec)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`}const FIT_NON_SINGLE='Autosize "fit" only works for single views and layered views.';function containerSizeNonSingle(name){return`${"width"==name?"Width":"Height"} "container" only works for single views and layered views.`}function containerSizeNotCompatibleWithAutosize(name){return`${"width"==name?"Width":"Height"} "container" only works well with autosize "fit" or "fit-${"width"==name?"x":"y"}".`}function droppingFit(channel){return channel?`Dropping "fit-${channel}" because spec has discrete ${getSizeChannel(channel)}.`:'Dropping "fit" because spec has discrete size.'}function unknownField(channel){return`Unknown field for ${channel}. Cannot calculate view size.`}function cannotProjectOnChannelWithoutField(channel){return`Cannot project a selection on encoding channel "${channel}", which has no field.`}function cannotProjectAggregate(channel,aggregate){return`Cannot project a selection on encoding channel "${channel}" as it uses an aggregate function ("${aggregate}").`}function selectionNotSupported(mark){return`Selection not supported for ${mark} yet.`}const NEEDS_SAME_SELECTION="The same selection must be used to override scale domains in a layered view.";function columnsNotSupportByRowCol(type){return`The "columns" property cannot be used when "${type}" has nested row/column.`}function differentParse(field,local,ancestor){return`An ancestor parsed field "${field}" as ${ancestor} but a child wants to parse the field as ${local}.`}function invalidTransformIgnored(transform){return`Ignoring an invalid transform: ${stringify$1(transform)}.`}function customFormatTypeNotAllowed(channel){return`Config.customFormatTypes is not true, thus custom format type and format for channel ${channel} are dropped.`}function offsetNestedInsideContinuousPositionScaleDropped(mainChannel){return`${mainChannel}Offset dropped because ${mainChannel} is continuous`}function replaceOffsetWithMainChannel(mainChannel){return`There is no ${mainChannel} encoding. Replacing ${mainChannel}Offset encoding as ${mainChannel}.`}function invalidFieldType(type){return`Invalid field type "${type}".`}function droppingColor(type,opt){const{fill,stroke}=opt;return`Dropping color ${type} as the plot also has ${fill&&stroke?"fill and stroke":fill?"fill":"stroke"}.`}function emptyFieldDef(fieldDef,channel){return`Dropping ${stringify$1(fieldDef)} from channel "${channel}" since it does not contain any data field, datum, value, or signal.`}function incompatibleChannel(channel,markOrFacet,when){return`${channel} dropped as it is incompatible with "${markOrFacet}"${when?` when ${when}`:""}.`}function offsetEncodingScaleIgnored(channel){return`${channel} encoding has no scale, so specified scale is ignored.`}function channelShouldBeDiscrete(channel){return`${channel} encoding should be discrete (ordinal / nominal / binned).`}function channelShouldBeDiscreteOrDiscretizing(channel){return`${channel} encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).`}function discreteChannelCannotEncode(channel,type){return`Using discrete channel "${channel}" to encode "${type}" field can be misleading as it does not encode ${"ordinal"===type?"order":"magnitude"}.`}function unaggregateDomainHasNoEffectForRawField(fieldDef){return`Using unaggregated domain with raw field has no effect (${stringify$1(fieldDef)}).`}function unaggregateDomainWithNonSharedDomainOp(aggregate){return`Unaggregated domain not applicable for "${aggregate}" since it produces values outside the origin domain of the source data.`}function unaggregatedDomainWithLogScale(fieldDef){return`Unaggregated domain is currently unsupported for log scale (${stringify$1(fieldDef)}).`}function scalePropertyNotWorkWithScaleType(scaleType,propName,channel){return`${channel}-scale's "${propName}" is dropped as it does not work with ${scaleType} scale.`}function stepDropped(channel){return`The step for "${channel}" is dropped because the ${"width"===channel?"x":"y"} is continuous.`}const MORE_THAN_ONE_SORT="Domains that should be unioned has conflicting sort properties. Sort will be set to true.";function invalidTimeUnit(unitName,value){return`Invalid ${unitName}: ${stringify$1(value)}.`}function errorBand1DNotSupport(property){return`1D error band does not support ${property}.`}function channelRequiredForBinned(channel){return`Channel ${channel} is required for "binned" bin.`}const main$1=logger(Warn);let current=main$1;function warn(...args){current.warn(...args)}function isDateTime(o){if(o&&isObject(o))for(const part of TIMEUNIT_PARTS)if(part in o)return!0;return!1}const MONTHS=["january","february","march","april","may","june","july","august","september","october","november","december"],SHORT_MONTHS=MONTHS.map((m=>m.substr(0,3))),DAYS=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS=DAYS.map((d=>d.substr(0,3)));function dateTimeParts(d,normalize){const parts=[];if(normalize&&void 0!==d.day&&keys(d).length>1&&(warn(function droppedDay(d){return`Dropping day from datetime ${stringify$1(d)} as day cannot be combined with other units.`}(d)),delete(d=duplicate(d)).day),void 0!==d.year?parts.push(d.year):parts.push(2012),void 0!==d.month){const month=normalize?function normalizeMonth(m){if(isNumeric(m)&&(m=+m),isNumber$1(m))return m-1;{const lowerM=m.toLowerCase(),monthIndex=MONTHS.indexOf(lowerM);if(-1!==monthIndex)return monthIndex;const shortM=lowerM.substr(0,3),shortMonthIndex=SHORT_MONTHS.indexOf(shortM);if(-1!==shortMonthIndex)return shortMonthIndex;throw new Error(invalidTimeUnit("month",m))}}(d.month):d.month;parts.push(month)}else if(void 0!==d.quarter){const quarter=normalize?function normalizeQuarter(q){if(isNumeric(q)&&(q=+q),isNumber$1(q))return q>4&&warn(invalidTimeUnit("quarter",q)),q-1;throw new Error(invalidTimeUnit("quarter",q))}(d.quarter):d.quarter;parts.push(isNumber$1(quarter)?3*quarter:`${quarter}*3`)}else parts.push(0);if(void 0!==d.date)parts.push(d.date);else if(void 0!==d.day){const day=normalize?function normalizeDay(d){if(isNumeric(d)&&(d=+d),isNumber$1(d))return d%7;{const lowerD=d.toLowerCase(),dayIndex=DAYS.indexOf(lowerD);if(-1!==dayIndex)return dayIndex;const shortD=lowerD.substr(0,3),shortDayIndex=SHORT_DAYS.indexOf(shortD);if(-1!==shortDayIndex)return shortDayIndex;throw new Error(invalidTimeUnit("day",d))}}(d.day):d.day;parts.push(isNumber$1(day)?day+1:`${day}+1`)}else parts.push(1);for(const timeUnit of["hours","minutes","seconds","milliseconds"]){const unit=d[timeUnit];parts.push(void 0===unit?0:unit)}return parts}function dateTimeToExpr(d){const string=dateTimeParts(d,!0).join(", ");return d.utc?`utc(${string})`:`datetime(${string})`}const LOCAL_SINGLE_TIMEUNIT_INDEX={year:1,quarter:1,month:1,week:1,day:1,dayofyear:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1},TIMEUNIT_PARTS=keys(LOCAL_SINGLE_TIMEUNIT_INDEX);function isBinnedTimeUnit(timeUnit){return isObject(timeUnit)?timeUnit.binned:isBinnedTimeUnitString(timeUnit)}function isBinnedTimeUnitString(timeUnit){return timeUnit&&timeUnit.startsWith("binned")}function isUTCTimeUnit(t){return t.startsWith("utc")}const VEGALITE_TIMEFORMAT={"year-month":"%b %Y ","year-month-date":"%b %d, %Y "};function getTimeUnitParts(timeUnit){return TIMEUNIT_PARTS.filter((part=>containsTimeUnit(timeUnit,part)))}function getSmallestTimeUnitPart(timeUnit){const parts=getTimeUnitParts(timeUnit);return parts[parts.length-1]}function containsTimeUnit(fullTimeUnit,timeUnit){const index=fullTimeUnit.indexOf(timeUnit);return!(index<0)&&(!(index>0&&"seconds"===timeUnit&&"i"===fullTimeUnit.charAt(index-1))&&(!(fullTimeUnit.length>index+3&&"day"===timeUnit&&"o"===fullTimeUnit.charAt(index+3))&&!(index>0&&"year"===timeUnit&&"f"===fullTimeUnit.charAt(index-1))))}function fieldExpr(fullTimeUnit,field,{end}={end:!1}){const fieldRef=accessPathWithDatum(field),utc=isUTCTimeUnit(fullTimeUnit)?"utc":"";let lastTimeUnit;const dateExpr={};for(const part of TIMEUNIT_PARTS)containsTimeUnit(fullTimeUnit,part)&&(dateExpr[part]="quarter"===(timeUnit=part)?`(${utc}quarter(${fieldRef})-1)`:`${utc}${timeUnit}(${fieldRef})`,lastTimeUnit=part);var timeUnit;return end&&(dateExpr[lastTimeUnit]+="+1"),function dateTimeExprToExpr(d){const string=dateTimeParts(d,!1).join(", ");return d.utc?`utc(${string})`:`datetime(${string})`}(dateExpr)}function timeUnitSpecifierExpression(timeUnit){if(!timeUnit)return;const timeUnitParts=getTimeUnitParts(timeUnit);return`timeUnitSpecifier(${stringify$1(timeUnitParts)}, ${stringify$1(VEGALITE_TIMEFORMAT)})`}function normalizeTimeUnit(timeUnit){if(!timeUnit)return;let params;return isString(timeUnit)?params=isBinnedTimeUnitString(timeUnit)?{unit:timeUnit.substring(6),binned:!0}:{unit:timeUnit}:isObject(timeUnit)&&(params={...timeUnit,...timeUnit.unit?{unit:timeUnit.unit}:{}}),isUTCTimeUnit(params.unit)&&(params.utc=!0,params.unit=function getLocalTimeUnitFromUTCTimeUnit(t){return t.substring(3)}(params.unit)),params}function durationExpr(timeUnit,wrap=(x=>x)){const normalizedTimeUnit=normalizeTimeUnit(timeUnit),smallestUnitPart=getSmallestTimeUnitPart(normalizedTimeUnit.unit);if(smallestUnitPart&&"day"!==smallestUnitPart){const startDate={year:2001,month:1,date:1,hours:0,minutes:0,seconds:0,milliseconds:0},{step,part}=getDateTimePartAndStep(smallestUnitPart,normalizedTimeUnit.step);return`${wrap(dateTimeToExpr({...startDate,[part]:+startDate[part]+step}))} - ${wrap(dateTimeToExpr(startDate))}`}}const DATE_PARTS={year:1,month:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1};function getDateTimePartAndStep(timeUnit,step=1){if(function isDatePart(timeUnit){return!!DATE_PARTS[timeUnit]}(timeUnit))return{part:timeUnit,step};switch(timeUnit){case"day":case"dayofyear":return{part:"date",step};case"quarter":return{part:"month",step:3*step};case"week":return{part:"date",step:7*step}}}function isFieldEqualPredicate(predicate){return!!predicate?.field&&void 0!==predicate.equal}function isFieldLTPredicate(predicate){return!!predicate?.field&&void 0!==predicate.lt}function isFieldLTEPredicate(predicate){return!!predicate?.field&&void 0!==predicate.lte}function isFieldGTPredicate(predicate){return!!predicate?.field&&void 0!==predicate.gt}function isFieldGTEPredicate(predicate){return!!predicate?.field&&void 0!==predicate.gte}function isFieldRangePredicate(predicate){if(predicate?.field){if(isArray(predicate.range)&&2===predicate.range.length)return!0;if(isSignalRef(predicate.range))return!0}return!1}function isFieldOneOfPredicate(predicate){return!!predicate?.field&&(isArray(predicate.oneOf)||isArray(predicate.in))}function isFieldPredicate(predicate){return isFieldOneOfPredicate(predicate)||isFieldEqualPredicate(predicate)||isFieldRangePredicate(predicate)||isFieldLTPredicate(predicate)||isFieldGTPredicate(predicate)||isFieldLTEPredicate(predicate)||isFieldGTEPredicate(predicate)}function predicateValueExpr(v,timeUnit){return valueExpr(v,{timeUnit,wrapTime:!0})}function fieldFilterExpression(predicate,useInRange=!0){const{field}=predicate,normalizedTimeUnit=normalizeTimeUnit(predicate.timeUnit),{unit,binned}=normalizedTimeUnit||{},rawFieldExpr=vgField(predicate,{expr:"datum"}),fieldExpr$1=unit?`time(${binned?rawFieldExpr:fieldExpr(unit,field)})`:rawFieldExpr;if(isFieldEqualPredicate(predicate))return`${fieldExpr$1}===${predicateValueExpr(predicate.equal,unit)}`;if(isFieldLTPredicate(predicate)){return`${fieldExpr$1}<${predicateValueExpr(predicate.lt,unit)}`}if(isFieldGTPredicate(predicate)){return`${fieldExpr$1}>${predicateValueExpr(predicate.gt,unit)}`}if(isFieldLTEPredicate(predicate)){return`${fieldExpr$1}<=${predicateValueExpr(predicate.lte,unit)}`}if(isFieldGTEPredicate(predicate)){return`${fieldExpr$1}>=${predicateValueExpr(predicate.gte,unit)}`}if(isFieldOneOfPredicate(predicate))return`indexof([${function predicateValuesExpr(vals,timeUnit){return vals.map((v=>predicateValueExpr(v,timeUnit)))}(predicate.oneOf,unit).join(",")}], ${fieldExpr$1}) !== -1`;if(function isFieldValidPredicate(predicate){return!!predicate?.field&&void 0!==predicate.valid}(predicate))return fieldValidPredicate(fieldExpr$1,predicate.valid);if(isFieldRangePredicate(predicate)){const{range}=predicate,lower=isSignalRef(range)?{signal:`${range.signal}[0]`}:range[0],upper=isSignalRef(range)?{signal:`${range.signal}[1]`}:range[1];if(null!==lower&&null!==upper&&useInRange)return"inrange("+fieldExpr$1+", ["+predicateValueExpr(lower,unit)+", "+predicateValueExpr(upper,unit)+"])";const exprs=[];return null!==lower&&exprs.push(`${fieldExpr$1} >= ${predicateValueExpr(lower,unit)}`),null!==upper&&exprs.push(`${fieldExpr$1} <= ${predicateValueExpr(upper,unit)}`),exprs.length>0?exprs.join(" && "):"true"}throw new Error(`Invalid field predicate: ${stringify$1(predicate)}`)}function fieldValidPredicate(fieldExpr,valid=!0){return valid?`isValid(${fieldExpr}) && isFinite(+${fieldExpr})`:`!isValid(${fieldExpr}) || !isFinite(+${fieldExpr})`}function normalizePredicate$1(f){return isFieldPredicate(f)&&f.timeUnit?{...f,timeUnit:normalizeTimeUnit(f.timeUnit)}:f}function isContinuous(type){return"quantitative"===type||"temporal"===type}function isDiscrete$1(type){return"ordinal"===type||"nominal"===type}const QUANTITATIVE="quantitative",ORDINAL="ordinal",TEMPORAL="temporal",NOMINAL="nominal",GEOJSON="geojson";const ScaleType={LINEAR:"linear",LOG:"log",POW:"pow",SQRT:"sqrt",SYMLOG:"symlog",IDENTITY:"identity",SEQUENTIAL:"sequential",TIME:"time",UTC:"utc",QUANTILE:"quantile",QUANTIZE:"quantize",THRESHOLD:"threshold",BIN_ORDINAL:"bin-ordinal",ORDINAL:"ordinal",POINT:"point",BAND:"band"},SCALE_CATEGORY_INDEX={linear:"numeric",log:"numeric",pow:"numeric",sqrt:"numeric",symlog:"numeric",identity:"numeric",sequential:"numeric",time:"time",utc:"time",ordinal:"ordinal","bin-ordinal":"bin-ordinal",point:"ordinal-position",band:"ordinal-position",quantile:"discretizing",quantize:"discretizing",threshold:"discretizing"};function scaleCompatible(scaleType1,scaleType2){const scaleCategory1=SCALE_CATEGORY_INDEX[scaleType1],scaleCategory2=SCALE_CATEGORY_INDEX[scaleType2];return scaleCategory1===scaleCategory2||"ordinal-position"===scaleCategory1&&"time"===scaleCategory2||"ordinal-position"===scaleCategory2&&"time"===scaleCategory1}const SCALE_PRECEDENCE_INDEX={linear:0,log:1,pow:1,sqrt:1,symlog:1,identity:1,sequential:1,time:0,utc:0,point:10,band:11,ordinal:0,"bin-ordinal":0,quantile:0,quantize:0,threshold:0};function scaleTypePrecedence(scaleType){return SCALE_PRECEDENCE_INDEX[scaleType]}const QUANTITATIVE_SCALES=new Set(["linear","log","pow","sqrt","symlog"]),CONTINUOUS_TO_CONTINUOUS_SCALES=new Set([...QUANTITATIVE_SCALES,"time","utc"]);function isQuantitative(type){return QUANTITATIVE_SCALES.has(type)}const CONTINUOUS_TO_DISCRETE_SCALES=new Set(["quantile","quantize","threshold"]),CONTINUOUS_DOMAIN_SCALES=new Set([...CONTINUOUS_TO_CONTINUOUS_SCALES,...CONTINUOUS_TO_DISCRETE_SCALES,"sequential","identity"]),DISCRETE_DOMAIN_SCALES=new Set(["ordinal","bin-ordinal","point","band"]);function hasDiscreteDomain(type){return DISCRETE_DOMAIN_SCALES.has(type)}function hasContinuousDomain(type){return CONTINUOUS_DOMAIN_SCALES.has(type)}function isContinuousToContinuous(type){return CONTINUOUS_TO_CONTINUOUS_SCALES.has(type)}function isContinuousToDiscrete(type){return CONTINUOUS_TO_DISCRETE_SCALES.has(type)}function isParameterDomain(domain){return domain?.param}const{type,domain:domain$1,range:range$1,rangeMax,rangeMin,scheme,...NON_TYPE_DOMAIN_RANGE_VEGA_SCALE_PROPERTY_INDEX}={type:1,domain:1,domainMax:1,domainMin:1,domainMid:1,domainRaw:1,align:1,range:1,rangeMax:1,rangeMin:1,scheme:1,bins:1,reverse:1,round:1,clamp:1,nice:1,base:1,exponent:1,constant:1,interpolate:1,zero:1,padding:1,paddingInner:1,paddingOuter:1},NON_TYPE_DOMAIN_RANGE_VEGA_SCALE_PROPERTIES=keys(NON_TYPE_DOMAIN_RANGE_VEGA_SCALE_PROPERTY_INDEX);function scaleTypeSupportProperty(scaleType,propName){switch(propName){case"type":case"domain":case"reverse":case"range":return!0;case"scheme":case"interpolate":return!["point","band","identity"].includes(scaleType);case"bins":return!["point","band","identity","ordinal"].includes(scaleType);case"round":return isContinuousToContinuous(scaleType)||"band"===scaleType||"point"===scaleType;case"padding":case"rangeMin":case"rangeMax":return isContinuousToContinuous(scaleType)||["point","band"].includes(scaleType);case"paddingOuter":case"align":return["point","band"].includes(scaleType);case"paddingInner":return"band"===scaleType;case"domainMax":case"domainMid":case"domainMin":case"domainRaw":case"clamp":return isContinuousToContinuous(scaleType);case"nice":return isContinuousToContinuous(scaleType)||"quantize"===scaleType||"threshold"===scaleType;case"exponent":return"pow"===scaleType;case"base":return"log"===scaleType;case"constant":return"symlog"===scaleType;case"zero":return hasContinuousDomain(scaleType)&&!contains(["log","time","utc","threshold","quantile"],scaleType)}}function channelScalePropertyIncompatability(channel,propName){switch(propName){case"interpolate":case"scheme":case"domainMid":return isColorChannel(channel)?void 0:function cannotUseScalePropertyWithNonColor(prop){return`Cannot use the scale property "${prop}" with non-color channel.`}(propName);case"align":case"type":case"bins":case"domain":case"domainMax":case"domainMin":case"domainRaw":case"range":case"base":case"exponent":case"constant":case"nice":case"padding":case"paddingInner":case"paddingOuter":case"rangeMax":case"rangeMin":case"reverse":case"round":case"clamp":case"zero":return}}const Mark={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"},ARC=Mark.arc,AREA=Mark.area,BAR=Mark.bar,IMAGE=Mark.image,LINE=Mark.line,POINT=Mark.point,RECT=Mark.rect,RULE=Mark.rule,TEXT=Mark.text,TICK=Mark.tick,TRAIL=Mark.trail,CIRCLE=Mark.circle,SQUARE=Mark.square,GEOSHAPE=Mark.geoshape;function isPathMark(m){return["line","area","trail"].includes(m)}function isRectBasedMark(m){return["rect","bar","image","arc"].includes(m)}const PRIMITIVE_MARKS=new Set(keys(Mark));function isMarkDef(mark){return mark.type}const FILL_STROKE_CONFIG=["stroke","strokeWidth","strokeDash","strokeDashOffset","strokeOpacity","strokeJoin","strokeMiterLimit","fill","fillOpacity"],VL_ONLY_MARK_CONFIG_PROPERTIES=keys({color:1,filled:1,invalid:1,order:1,radius2:1,theta2:1,timeUnitBandSize:1,timeUnitBandPosition:1}),MARK_CONFIGS=keys({mark:1,arc:1,area:1,bar:1,circle:1,image:1,line:1,point:1,rect:1,rule:1,square:1,text:1,tick:1,trail:1,geoshape:1});function isRelativeBandSize(o){return o&&null!=o.band}const BAR_CORNER_RADIUS_INDEX={horizontal:["cornerRadiusTopRight","cornerRadiusBottomRight"],vertical:["cornerRadiusTopLeft","cornerRadiusTopRight"]},defaultBarConfig={binSpacing:1,continuousBandSize:5,minBandSize:.25,timeUnitBandPosition:.5},defaultRectConfig={binSpacing:0,continuousBandSize:5,minBandSize:.25,timeUnitBandPosition:.5};function midPointRefWithPositionInvalidTest(params){const{channel,channelDef,markDef,scale,config}=params,ref=midPoint(params);return isFieldDef(channelDef)&&!isCountingAggregateOp(channelDef.aggregate)&&scale&&isContinuousToContinuous(scale.get("type"))?function wrapPositionInvalidTest({fieldDef,channel,markDef,ref,config}){if(isPathMark(markDef.type))return ref;const invalid=getMarkPropOrConfig("invalid",markDef,config);if(null===invalid)return[fieldInvalidTestValueRef(fieldDef,channel),ref];return ref}({fieldDef:channelDef,channel,markDef,ref,config}):ref}function fieldInvalidTestValueRef(fieldDef,channel){return{test:fieldInvalidPredicate(fieldDef,!0),..."y"===getMainRangeChannel(channel)?{field:{group:"height"}}:{value:0}}}function fieldInvalidPredicate(field,invalid=!0){return fieldValidPredicate(isString(field)?field:vgField(field,{expr:"datum"}),!invalid)}function valueRefForFieldOrDatumDef(fieldDef,scaleName,opt,encode){const ref={};if(scaleName&&(ref.scale=scaleName),isDatumDef(fieldDef)){const{datum}=fieldDef;isDateTime(datum)?ref.signal=dateTimeToExpr(datum):isSignalRef(datum)?ref.signal=datum.signal:isExprRef(datum)?ref.signal=datum.expr:ref.value=datum}else ref.field=vgField(fieldDef,opt);if(encode){const{offset,band}=encode;offset&&(ref.offset=offset),band&&(ref.band=band)}return ref}function interpolatedSignalRef({scaleName,fieldOrDatumDef,fieldOrDatumDef2,offset,startSuffix,bandPosition=.5}){const expr=0varName(`${"unit"===p?"":`_${p}_`}${rest[p]}`))).join(""):(utc?"utc":"")+"timeunit"+keys(rest).map((p=>varName(`_${p}_${rest[p]}`))).join("")}(timeUnit),suffix=(!["range","mid"].includes(opt.binSuffix)&&opt.binSuffix||"")+(opt.suffix??""))}fn&&(field=field?`${fn}_${field}`:fn)}return suffix&&(field=`${field}_${suffix}`),prefix&&(field=`${prefix}_${field}`),opt.forAs?removePathFromField(field):opt.expr?flatAccessWithDatum(field,opt.expr)+argAccessor:replacePathInField(field)+argAccessor}function isDiscrete(def){switch(def.type){case"nominal":case"ordinal":case"geojson":return!0;case"quantitative":return isFieldDef(def)&&!!def.bin;case"temporal":return!1}throw new Error(invalidFieldType(def.type))}const defaultTitleFormatter=(fieldDef,config)=>{switch(config.fieldTitle){case"plain":return fieldDef.field;case"functional":return function functionalTitleFormatter(fieldDef){const{aggregate,bin,timeUnit,field}=fieldDef;if(isArgmaxDef(aggregate))return`${field} for argmax(${aggregate.argmax})`;if(isArgminDef(aggregate))return`${field} for argmin(${aggregate.argmin})`;const timeUnitParams=timeUnit&&!isBinnedTimeUnit(timeUnit)?normalizeTimeUnit(timeUnit):void 0,fn=aggregate||timeUnitParams?.unit||timeUnitParams?.maxbins&&"timeunit"||isBinning(bin)&&"bin";return fn?`${fn.toUpperCase()}(${field})`:field}(fieldDef);default:return function verbalTitleFormatter(fieldDef,config){const{field,bin,timeUnit,aggregate}=fieldDef;if("count"===aggregate)return config.countTitle;if(isBinning(bin))return`${field} (binned)`;if(timeUnit&&!isBinnedTimeUnit(timeUnit)){const unit=normalizeTimeUnit(timeUnit)?.unit;if(unit)return`${field} (${getTimeUnitParts(unit).join("-")})`}else if(aggregate)return isArgmaxDef(aggregate)?`${field} for max ${aggregate.argmax}`:isArgminDef(aggregate)?`${field} for min ${aggregate.argmin}`:`${titleCase(aggregate)} of ${field}`;return field}(fieldDef,config)}};let titleFormatter=defaultTitleFormatter;function setTitleFormatter(formatter){titleFormatter=formatter}function title(fieldOrDatumDef,config,{allowDisabling,includeDefault=!0}){const guideTitle=getGuide(fieldOrDatumDef)?.title;if(!isFieldDef(fieldOrDatumDef))return guideTitle??fieldOrDatumDef.title;const fieldDef=fieldOrDatumDef,def=includeDefault?defaultTitle(fieldDef,config):void 0;return allowDisabling?getFirstDefined(guideTitle,fieldDef.title,def):guideTitle??fieldDef.title??def}function getGuide(fieldDef){return isPositionFieldOrDatumDef(fieldDef)&&fieldDef.axis?fieldDef.axis:isMarkPropFieldOrDatumDef(fieldDef)&&fieldDef.legend?fieldDef.legend:isFacetFieldDef(fieldDef)&&fieldDef.header?fieldDef.header:void 0}function defaultTitle(fieldDef,config){return titleFormatter(fieldDef,config)}function getFormatMixins(fieldDef){if(isStringFieldOrDatumDef(fieldDef)){const{format,formatType}=fieldDef;return{format,formatType}}{const guide=getGuide(fieldDef)??{},{format,formatType}=guide;return{format,formatType}}}function getFieldDef(channelDef){return isFieldDef(channelDef)?channelDef:hasConditionalFieldDef(channelDef)?channelDef.condition:void 0}function getFieldOrDatumDef(channelDef){return isFieldOrDatumDef(channelDef)?channelDef:hasConditionalFieldOrDatumDef(channelDef)?channelDef.condition:void 0}function initChannelDef(channelDef,channel,config,opt={}){if(isString(channelDef)||isNumber$1(channelDef)||isBoolean$2(channelDef)){return warn(function primitiveChannelDef(channel,type,value){return`Channel ${channel} is a ${type}. Converted to {value: ${stringify$1(value)}}.`}(channel,isString(channelDef)?"string":isNumber$1(channelDef)?"number":"boolean",channelDef)),{value:channelDef}}return isFieldOrDatumDef(channelDef)?initFieldOrDatumDef(channelDef,channel,config,opt):hasConditionalFieldOrDatumDef(channelDef)?{...channelDef,condition:initFieldOrDatumDef(channelDef.condition,channel,config,opt)}:channelDef}function initFieldOrDatumDef(fd,channel,config,opt){if(isStringFieldOrDatumDef(fd)){const{format,formatType,...rest}=fd;if(isCustomFormatType(formatType)&&!config.customFormatTypes)return warn(customFormatTypeNotAllowed(channel)),initFieldOrDatumDef(rest,channel,config,opt)}else{const guideType=isPositionFieldOrDatumDef(fd)?"axis":isMarkPropFieldOrDatumDef(fd)?"legend":isFacetFieldDef(fd)?"header":null;if(guideType&&fd[guideType]){const{format,formatType,...newGuide}=fd[guideType];if(isCustomFormatType(formatType)&&!config.customFormatTypes)return warn(customFormatTypeNotAllowed(channel)),initFieldOrDatumDef({...fd,[guideType]:newGuide},channel,config,opt)}}return isFieldDef(fd)?initFieldDef(fd,channel,opt):function initDatumDef(datumDef){let type=datumDef.type;if(type)return datumDef;const{datum}=datumDef;return type=isNumber$1(datum)?"quantitative":isString(datum)?"nominal":isDateTime(datum)?"temporal":void 0,{...datumDef,type}}(fd)}function initFieldDef(fd,channel,{compositeMark=!1}={}){const{aggregate,timeUnit,bin,field}=fd,fieldDef={...fd};if(compositeMark||!aggregate||isAggregateOp(aggregate)||isArgmaxDef(aggregate)||isArgminDef(aggregate)||(warn(function invalidAggregate(aggregate){return`Invalid aggregation operator "${aggregate}".`}(aggregate)),delete fieldDef.aggregate),timeUnit&&(fieldDef.timeUnit=normalizeTimeUnit(timeUnit)),field&&(fieldDef.field=`${field}`),isBinning(bin)&&(fieldDef.bin=normalizeBin(bin,channel)),isBinned(bin)&&!isXorY(channel)&&warn(function channelShouldNotBeUsedForBinned(channel){return`Channel ${channel} should not be used with "binned" bin.`}(channel)),isTypedFieldDef(fieldDef)){const{type}=fieldDef,fullType=function getFullName(type){if(type)switch(type=type.toLowerCase()){case"q":case QUANTITATIVE:return"quantitative";case"t":case TEMPORAL:return"temporal";case"o":case ORDINAL:return"ordinal";case"n":case NOMINAL:return"nominal";case GEOJSON:return"geojson"}}(type);type!==fullType&&(fieldDef.type=fullType),"quantitative"!==type&&isCountingAggregateOp(aggregate)&&(warn(function invalidFieldTypeForCountAggregate(type,aggregate){return`Invalid field type "${type}" for aggregate: "${aggregate}", using "quantitative" instead.`}(type,aggregate)),fieldDef.type="quantitative")}else if(!isSecondaryRangeChannel(channel)){const newType=function defaultType$2(fieldDef,channel){switch(channel){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(isSortableFieldDef(fieldDef)&&isArray(fieldDef.sort))return"ordinal";const{aggregate,bin,timeUnit}=fieldDef;if(timeUnit)return"temporal";if(bin||aggregate&&!isArgmaxDef(aggregate)&&!isArgminDef(aggregate))return"quantitative";if(isScaleFieldDef(fieldDef)&&fieldDef.scale?.type)switch(SCALE_CATEGORY_INDEX[fieldDef.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}return"nominal"}(fieldDef,channel);fieldDef.type=newType}if(isTypedFieldDef(fieldDef)){const{compatible,warning}=function channelCompatibility(fieldDef,channel){const type=fieldDef.type;if("geojson"===type&&"shape"!==channel)return{compatible:!1,warning:`Channel ${channel} should not be used with a geojson data.`};switch(channel){case ROW:case COLUMN:case FACET:return isDiscrete(fieldDef)?COMPATIBLE:{compatible:!1,warning:channelShouldBeDiscrete(channel)};case X:case Y:case XOFFSET:case YOFFSET:case COLOR:case FILL:case STROKE:case TEXT$1:case DETAIL:case KEY:case TOOLTIP:case HREF:case URL$1:case ANGLE:case THETA:case RADIUS:case DESCRIPTION:return COMPATIBLE;case LONGITUDE:case LONGITUDE2:case LATITUDE:case LATITUDE2:return type!==QUANTITATIVE?{compatible:!1,warning:`Channel ${channel} should be used with a quantitative field only, not ${fieldDef.type} field.`}:COMPATIBLE;case OPACITY:case FILLOPACITY:case STROKEOPACITY:case STROKEWIDTH:case SIZE:case THETA2:case RADIUS2:case X2:case Y2:return"nominal"!==type||fieldDef.sort?COMPATIBLE:{compatible:!1,warning:`Channel ${channel} should not be used with an unsorted discrete field.`};case SHAPE:case STROKEDASH:return isDiscrete(fieldDef)||function isDiscretizing(def){return isScaleFieldDef(def)&&isContinuousToDiscrete(def.scale?.type)}(fieldDef)?COMPATIBLE:{compatible:!1,warning:channelShouldBeDiscreteOrDiscretizing(channel)};case ORDER:return"nominal"!==fieldDef.type||"sort"in fieldDef?COMPATIBLE:{compatible:!1,warning:"Channel order is inappropriate for nominal field, which has no inherent order."}}}(fieldDef,channel)||{};!1===compatible&&warn(warning)}if(isSortableFieldDef(fieldDef)&&isString(fieldDef.sort)){const{sort}=fieldDef;if(isSortByChannel(sort))return{...fieldDef,sort:{encoding:sort}};const sub=sort.substr(1);if("-"===sort.charAt(0)&&isSortByChannel(sub))return{...fieldDef,sort:{encoding:sub,order:"descending"}}}if(isFacetFieldDef(fieldDef)){const{header}=fieldDef;if(header){const{orient,...rest}=header;if(orient)return{...fieldDef,header:{...rest,labelOrient:header.labelOrient||orient,titleOrient:header.titleOrient||orient}}}}return fieldDef}function normalizeBin(bin,channel){return isBoolean$2(bin)?{maxbins:autoMaxBins(channel)}:"binned"===bin?{binned:!0}:bin.maxbins||bin.step?bin:{...bin,maxbins:autoMaxBins(channel)}}const COMPATIBLE={compatible:!0};function isFieldOrDatumDefForTimeFormat(fieldOrDatumDef){const{formatType}=getFormatMixins(fieldOrDatumDef);return"time"===formatType||!formatType&&function isTimeFieldDef(def){return def&&("temporal"===def.type||isFieldDef(def)&&!!def.timeUnit)}(fieldOrDatumDef)}function valueExpr(v,{timeUnit,type,wrapTime,undefinedIfExprNotRequired}){const unit=timeUnit&&normalizeTimeUnit(timeUnit)?.unit;let expr,isTime=unit||"temporal"===type;return isExprRef(v)?expr=v.expr:isSignalRef(v)?expr=v.signal:isDateTime(v)?(isTime=!0,expr=dateTimeToExpr(v)):(isString(v)||isNumber$1(v))&&isTime&&(expr=`datetime(${stringify$1(v)})`,function isLocalSingleTimeUnit(timeUnit){return!!LOCAL_SINGLE_TIMEUNIT_INDEX[timeUnit]}(unit)&&(isNumber$1(v)&&v<1e4||isString(v)&&isNaN(Date.parse(v)))&&(expr=dateTimeToExpr({[unit]:v}))),expr?wrapTime&&isTime?`time(${expr})`:expr:undefinedIfExprNotRequired?void 0:stringify$1(v)}function valueArray(fieldOrDatumDef,values){const{type}=fieldOrDatumDef;return values.map((v=>{const expr=valueExpr(v,{timeUnit:isFieldDef(fieldOrDatumDef)&&!isBinnedTimeUnit(fieldOrDatumDef.timeUnit)?fieldOrDatumDef.timeUnit:void 0,type,undefinedIfExprNotRequired:!0});return void 0!==expr?{signal:expr}:v}))}function binRequiresRange(fieldDef,channel){return isBinning(fieldDef.bin)?isScaleChannel(channel)&&["ordinal","nominal"].includes(fieldDef.type):(console.warn("Only call this method for binned field defs."),!1)}const CONDITIONAL_AXIS_PROP_INDEX={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function isConditionalAxisValue(v){return v?.condition}const AXIS_PARTS=["domain","grid","labels","ticks","title"],AXIS_PROPERTY_TYPE={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"},COMMON_AXIS_PROPERTIES_INDEX={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1},AXIS_PROPERTIES_INDEX={...COMMON_AXIS_PROPERTIES_INDEX,style:1,labelExpr:1,encoding:1};function isAxisProperty(prop){return!!AXIS_PROPERTIES_INDEX[prop]}const AXIS_CONFIGS=keys({axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1});function isUnitSpec(spec){return"mark"in spec}class CompositeMarkNormalizer{constructor(name,run){this.name=name,this.run=run}hasMatchingType(spec){return!!isUnitSpec(spec)&&function getMarkType(m){return isMarkDef(m)?m.type:m}(spec.mark)===this.name}}function channelHasField(encoding,channel){const channelDef=encoding&&encoding[channel];return!!channelDef&&(isArray(channelDef)?some(channelDef,(fieldDef=>!!fieldDef.field)):isFieldDef(channelDef)||hasConditionalFieldDef(channelDef))}function channelHasFieldOrDatum(encoding,channel){const channelDef=encoding&&encoding[channel];return!!channelDef&&(isArray(channelDef)?some(channelDef,(fieldDef=>!!fieldDef.field)):isFieldDef(channelDef)||isDatumDef(channelDef)||hasConditionalFieldOrDatumDef(channelDef))}function channelHasNestedOffsetScale(encoding,channel){if(isXorY(channel)){const fieldDef=encoding[channel];if((isFieldDef(fieldDef)||isDatumDef(fieldDef))&&(isDiscrete$1(fieldDef.type)||isFieldDef(fieldDef)&&fieldDef.timeUnit)){return channelHasFieldOrDatum(encoding,getOffsetScaleChannel(channel))}}return!1}function isAggregate$1(encoding){return some(CHANNELS,(channel=>{if(channelHasField(encoding,channel)){const channelDef=encoding[channel];if(isArray(channelDef))return some(channelDef,(fieldDef=>!!fieldDef.aggregate));{const fieldDef=getFieldDef(channelDef);return fieldDef&&!!fieldDef.aggregate}}return!1}))}function extractTransformsFromEncoding(oldEncoding,config){const groupby=[],bins=[],timeUnits=[],aggregate=[],encoding={};return forEach(oldEncoding,((channelDef,channel)=>{if(isFieldDef(channelDef)){const{field,aggregate:aggOp,bin,timeUnit,...remaining}=channelDef;if(aggOp||timeUnit||bin){const guide=getGuide(channelDef),isTitleDefined=guide?.title;let newField=vgField(channelDef,{forAs:!0});const newFieldDef={...isTitleDefined?[]:{title:title(channelDef,config,{allowDisabling:!0})},...remaining,field:newField};if(aggOp){let op;if(isArgmaxDef(aggOp)?(op="argmax",newField=vgField({op:"argmax",field:aggOp.argmax},{forAs:!0}),newFieldDef.field=`${newField}.${field}`):isArgminDef(aggOp)?(op="argmin",newField=vgField({op:"argmin",field:aggOp.argmin},{forAs:!0}),newFieldDef.field=`${newField}.${field}`):"boxplot"!==aggOp&&"errorbar"!==aggOp&&"errorband"!==aggOp&&(op=aggOp),op){const aggregateEntry={op,as:newField};field&&(aggregateEntry.field=field),aggregate.push(aggregateEntry)}}else if(groupby.push(newField),isTypedFieldDef(channelDef)&&isBinning(bin)){if(bins.push({bin,field,as:newField}),groupby.push(vgField(channelDef,{binSuffix:"end"})),binRequiresRange(channelDef,channel)&&groupby.push(vgField(channelDef,{binSuffix:"range"})),isXorY(channel)){const secondaryChannel={field:`${newField}_end`};encoding[`${channel}2`]=secondaryChannel}newFieldDef.bin="binned",isSecondaryRangeChannel(channel)||(newFieldDef.type=QUANTITATIVE)}else if(timeUnit&&!isBinnedTimeUnit(timeUnit)){timeUnits.push({timeUnit,field,as:newField});const formatType=isTypedFieldDef(channelDef)&&channelDef.type!==TEMPORAL&&"time";formatType&&(channel===TEXT$1||channel===TOOLTIP?newFieldDef.formatType=formatType:!function isNonPositionScaleChannel(channel){return!!NONPOSITION_CHANNEL_INDEX[channel]}(channel)?isXorY(channel)&&(newFieldDef.axis={formatType,...newFieldDef.axis}):newFieldDef.legend={formatType,...newFieldDef.legend})}encoding[channel]=newFieldDef}else groupby.push(field),encoding[channel]=oldEncoding[channel]}else encoding[channel]=oldEncoding[channel]})),{bins,timeUnits,aggregate,groupby,encoding}}function markChannelCompatible(encoding,channel,mark){const markSupported=supportMark(channel,mark);if(!markSupported)return!1;if("binned"===markSupported){const primaryFieldDef=encoding[channel===X2?X:Y];return!!(isFieldDef(primaryFieldDef)&&isFieldDef(encoding[channel])&&isBinned(primaryFieldDef.bin))}return!0}function normalizeEncoding(encoding,config){const normalizedEncoding={};for(const channel of keys(encoding)){const newChannelDef=initChannelDef(encoding[channel],channel,config,{compositeMark:!0});normalizedEncoding[channel]=newChannelDef}return normalizedEncoding}function forEach(mapping,f,thisArg){if(mapping)for(const channel of keys(mapping)){const el=mapping[channel];if(isArray(el))for(const channelDef of el)f.call(thisArg,channelDef,channel);else f.call(thisArg,el,channel)}}function pathGroupingFields(mark,encoding){return keys(encoding).reduce(((details,channel)=>{switch(channel){case X:case Y:case HREF:case DESCRIPTION:case URL$1:case X2:case Y2:case XOFFSET:case YOFFSET:case THETA:case THETA2:case RADIUS:case RADIUS2:case LATITUDE:case LONGITUDE:case LATITUDE2:case LONGITUDE2:case TEXT$1:case SHAPE:case ANGLE:case TOOLTIP:return details;case ORDER:if("line"===mark||"trail"===mark)return details;case DETAIL:case KEY:{const channelDef=encoding[channel];if(isArray(channelDef)||isFieldDef(channelDef))for(const fieldDef of array$5(channelDef))fieldDef.aggregate||details.push(vgField(fieldDef,{}));return details}case SIZE:if("trail"===mark)return details;case COLOR:case FILL:case STROKE:case OPACITY:case FILLOPACITY:case STROKEOPACITY:case STROKEDASH:case STROKEWIDTH:{const fieldDef=getFieldDef(encoding[channel]);return fieldDef&&!fieldDef.aggregate&&details.push(vgField(fieldDef,{})),details}}}),[])}function getCompositeMarkTooltip(tooltipSummary,continuousAxisChannelDef,encodingWithoutContinuousAxis,withFieldName=!0){if("tooltip"in encodingWithoutContinuousAxis)return{tooltip:encodingWithoutContinuousAxis.tooltip};const fiveSummaryTooltip=tooltipSummary.map((({fieldPrefix,titlePrefix})=>{const mainTitle=withFieldName?` of ${getTitle(continuousAxisChannelDef)}`:"";return{field:fieldPrefix+continuousAxisChannelDef.field,type:continuousAxisChannelDef.type,title:isSignalRef(titlePrefix)?{signal:`${titlePrefix}"${escape(mainTitle)}"`}:titlePrefix+mainTitle}})),tooltipFieldDefs=function fieldDefs(encoding){const arr=[];for(const channel of keys(encoding))if(channelHasField(encoding,channel)){const channelDefArray=array$5(encoding[channel]);for(const def of channelDefArray)isFieldDef(def)?arr.push(def):hasConditionalFieldDef(def)&&arr.push(def.condition)}return arr}(encodingWithoutContinuousAxis).map(toStringFieldDef);return{tooltip:[...fiveSummaryTooltip,...unique(tooltipFieldDefs,hash)]}}function getTitle(continuousAxisChannelDef){const{title,field}=continuousAxisChannelDef;return getFirstDefined(title,field)}function makeCompositeAggregatePartFactory(compositeMarkDef,continuousAxis,continuousAxisChannelDef,sharedEncoding,compositeMarkConfig){const{scale,axis}=continuousAxisChannelDef;return({partName,mark,positionPrefix,endPositionPrefix,extraEncoding={}})=>{const title=getTitle(continuousAxisChannelDef);return partLayerMixins(compositeMarkDef,partName,compositeMarkConfig,{mark,encoding:{[continuousAxis]:{field:`${positionPrefix}_${continuousAxisChannelDef.field}`,type:continuousAxisChannelDef.type,...void 0!==title?{title}:{},...void 0!==scale?{scale}:{},...void 0!==axis?{axis}:{}},...isString(endPositionPrefix)?{[`${continuousAxis}2`]:{field:`${endPositionPrefix}_${continuousAxisChannelDef.field}`}}:{},...sharedEncoding,...extraEncoding}})}}function partLayerMixins(markDef,part,compositeMarkConfig,partBaseSpec){const{clip,color,opacity}=markDef,mark=markDef.type;return markDef[part]||void 0===markDef[part]&&compositeMarkConfig[part]?[{...partBaseSpec,mark:{...compositeMarkConfig[part],...clip?{clip}:{},...color?{color}:{},...opacity?{opacity}:{},...isMarkDef(partBaseSpec.mark)?partBaseSpec.mark:{type:partBaseSpec.mark},style:`${mark}-${String(part)}`,...isBoolean$2(markDef[part])?{}:markDef[part]}}]:[]}function compositeMarkContinuousAxis(spec,orient,compositeMark){const{encoding}=spec,continuousAxis="vertical"===orient?"y":"x",continuousAxisChannelDef=encoding[continuousAxis],continuousAxisChannelDef2=encoding[`${continuousAxis}2`],continuousAxisChannelDefError=encoding[`${continuousAxis}Error`],continuousAxisChannelDefError2=encoding[`${continuousAxis}Error2`];return{continuousAxisChannelDef:filterAggregateFromChannelDef(continuousAxisChannelDef,compositeMark),continuousAxisChannelDef2:filterAggregateFromChannelDef(continuousAxisChannelDef2,compositeMark),continuousAxisChannelDefError:filterAggregateFromChannelDef(continuousAxisChannelDefError,compositeMark),continuousAxisChannelDefError2:filterAggregateFromChannelDef(continuousAxisChannelDefError2,compositeMark),continuousAxis}}function filterAggregateFromChannelDef(continuousAxisChannelDef,compositeMark){if(continuousAxisChannelDef?.aggregate){const{aggregate,...continuousAxisWithoutAggregate}=continuousAxisChannelDef;return aggregate!==compositeMark&&warn(function errorBarContinuousAxisHasCustomizedAggregate(aggregate,compositeMark){return`Continuous axis should not have customized aggregation function ${aggregate}; ${compositeMark} already agregates the axis.`}(aggregate,compositeMark)),continuousAxisWithoutAggregate}return continuousAxisChannelDef}function compositeMarkOrient(spec,compositeMark){const{mark,encoding}=spec,{x,y}=encoding;if(isMarkDef(mark)&&mark.orient)return mark.orient;if(isContinuousFieldOrDatumDef(x)){if(isContinuousFieldOrDatumDef(y)){const xAggregate=isFieldDef(x)&&x.aggregate,yAggregate=isFieldDef(y)&&y.aggregate;if(xAggregate||yAggregate!==compositeMark){if(yAggregate||xAggregate!==compositeMark){if(xAggregate===compositeMark&&yAggregate===compositeMark)throw new Error("Both x and y cannot have aggregate");return isFieldOrDatumDefForTimeFormat(y)&&!isFieldOrDatumDefForTimeFormat(x)?"horizontal":"vertical"}return"horizontal"}return"vertical"}return"horizontal"}if(isContinuousFieldOrDatumDef(y))return"vertical";throw new Error(`Need a valid continuous axis for ${compositeMark}s`)}const BOXPLOT="boxplot",boxPlotNormalizer=new CompositeMarkNormalizer(BOXPLOT,normalizeBoxPlot);function getBoxPlotType(extent){return isNumber$1(extent)?"tukey":extent}function normalizeBoxPlot(spec,{config}){spec={...spec,encoding:normalizeEncoding(spec.encoding,config)};const{mark,encoding:_encoding,params,projection:_p,...outerSpec}=spec,markDef=isMarkDef(mark)?mark:{type:mark};params&&warn(selectionNotSupported("boxplot"));const extent=markDef.extent??config.boxplot.extent,sizeValue=getMarkPropOrConfig("size",markDef,config),invalid=markDef.invalid,boxPlotType=getBoxPlotType(extent),{bins,timeUnits,transform,continuousAxisChannelDef,continuousAxis,groupby,aggregate,encodingWithoutContinuousAxis,ticksOrient,boxOrient,customTooltipWithoutAggregatedField}=function boxParams(spec,extent,config){const orient=compositeMarkOrient(spec,BOXPLOT),{continuousAxisChannelDef,continuousAxis}=compositeMarkContinuousAxis(spec,orient,BOXPLOT),continuousFieldName=continuousAxisChannelDef.field,boxPlotType=getBoxPlotType(extent),boxplotSpecificAggregate=[...boxParamsQuartiles(continuousFieldName),{op:"median",field:continuousFieldName,as:`mid_box_${continuousFieldName}`},{op:"min",field:continuousFieldName,as:("min-max"===boxPlotType?"lower_whisker_":"min_")+continuousFieldName},{op:"max",field:continuousFieldName,as:("min-max"===boxPlotType?"upper_whisker_":"max_")+continuousFieldName}],postAggregateCalculates="min-max"===boxPlotType||"tukey"===boxPlotType?[]:[{calculate:`datum["upper_box_${continuousFieldName}"] - datum["lower_box_${continuousFieldName}"]`,as:`iqr_${continuousFieldName}`},{calculate:`min(datum["upper_box_${continuousFieldName}"] + datum["iqr_${continuousFieldName}"] * ${extent}, datum["max_${continuousFieldName}"])`,as:`upper_whisker_${continuousFieldName}`},{calculate:`max(datum["lower_box_${continuousFieldName}"] - datum["iqr_${continuousFieldName}"] * ${extent}, datum["min_${continuousFieldName}"])`,as:`lower_whisker_${continuousFieldName}`}],{[continuousAxis]:oldContinuousAxisChannelDef,...oldEncodingWithoutContinuousAxis}=spec.encoding,{customTooltipWithoutAggregatedField,filteredEncoding}=function filterTooltipWithAggregatedField(oldEncoding){const{tooltip,...filteredEncoding}=oldEncoding;if(!tooltip)return{filteredEncoding};let customTooltipWithAggregatedField,customTooltipWithoutAggregatedField;if(isArray(tooltip)){for(const t of tooltip)t.aggregate?(customTooltipWithAggregatedField||(customTooltipWithAggregatedField=[]),customTooltipWithAggregatedField.push(t)):(customTooltipWithoutAggregatedField||(customTooltipWithoutAggregatedField=[]),customTooltipWithoutAggregatedField.push(t));customTooltipWithAggregatedField&&(filteredEncoding.tooltip=customTooltipWithAggregatedField)}else tooltip.aggregate?filteredEncoding.tooltip=tooltip:customTooltipWithoutAggregatedField=tooltip;return isArray(customTooltipWithoutAggregatedField)&&1===customTooltipWithoutAggregatedField.length&&(customTooltipWithoutAggregatedField=customTooltipWithoutAggregatedField[0]),{customTooltipWithoutAggregatedField,filteredEncoding}}(oldEncodingWithoutContinuousAxis),{bins,timeUnits,aggregate,groupby,encoding:encodingWithoutContinuousAxis}=extractTransformsFromEncoding(filteredEncoding,config),ticksOrient="vertical"===orient?"horizontal":"vertical",boxOrient=orient,transform=[...bins,...timeUnits,{aggregate:[...aggregate,...boxplotSpecificAggregate],groupby},...postAggregateCalculates];return{bins,timeUnits,transform,groupby,aggregate,continuousAxisChannelDef,continuousAxis,encodingWithoutContinuousAxis,ticksOrient,boxOrient,customTooltipWithoutAggregatedField}}(spec,extent,config),{color,size,...encodingWithoutSizeColorAndContinuousAxis}=encodingWithoutContinuousAxis,makeBoxPlotPart=sharedEncoding=>makeCompositeAggregatePartFactory(markDef,continuousAxis,continuousAxisChannelDef,sharedEncoding,config.boxplot),makeBoxPlotExtent=makeBoxPlotPart(encodingWithoutSizeColorAndContinuousAxis),makeBoxPlotBox=makeBoxPlotPart(encodingWithoutContinuousAxis),makeBoxPlotMidTick=makeBoxPlotPart({...encodingWithoutSizeColorAndContinuousAxis,...size?{size}:{}}),fiveSummaryTooltipEncoding=getCompositeMarkTooltip([{fieldPrefix:"min-max"===boxPlotType?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:"min-max"===boxPlotType?"lower_whisker_":"min_",titlePrefix:"Min"}],continuousAxisChannelDef,encodingWithoutContinuousAxis),endTick={type:"tick",color:"black",opacity:1,orient:ticksOrient,invalid,aria:!1},whiskerTooltipEncoding="min-max"===boxPlotType?fiveSummaryTooltipEncoding:getCompositeMarkTooltip([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],continuousAxisChannelDef,encodingWithoutContinuousAxis),whiskerLayers=[...makeBoxPlotExtent({partName:"rule",mark:{type:"rule",invalid,aria:!1},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:whiskerTooltipEncoding}),...makeBoxPlotExtent({partName:"rule",mark:{type:"rule",invalid,aria:!1},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:whiskerTooltipEncoding}),...makeBoxPlotExtent({partName:"ticks",mark:endTick,positionPrefix:"lower_whisker",extraEncoding:whiskerTooltipEncoding}),...makeBoxPlotExtent({partName:"ticks",mark:endTick,positionPrefix:"upper_whisker",extraEncoding:whiskerTooltipEncoding})],boxLayers=[..."tukey"!==boxPlotType?whiskerLayers:[],...makeBoxPlotBox({partName:"box",mark:{type:"bar",...sizeValue?{size:sizeValue}:{},orient:boxOrient,invalid,ariaRoleDescription:"box"},positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:fiveSummaryTooltipEncoding}),...makeBoxPlotMidTick({partName:"median",mark:{type:"tick",invalid,...isObject(config.boxplot.median)&&config.boxplot.median.color?{color:config.boxplot.median.color}:{},...sizeValue?{size:sizeValue}:{},orient:ticksOrient,aria:!1},positionPrefix:"mid_box",extraEncoding:fiveSummaryTooltipEncoding})];if("min-max"===boxPlotType)return{...outerSpec,transform:(outerSpec.transform??[]).concat(transform),layer:boxLayers};const lowerBoxExpr=`datum["lower_box_${continuousAxisChannelDef.field}"]`,upperBoxExpr=`datum["upper_box_${continuousAxisChannelDef.field}"]`,iqrExpr=`(${upperBoxExpr} - ${lowerBoxExpr})`,lowerWhiskerExpr=`${lowerBoxExpr} - ${extent} * ${iqrExpr}`,upperWhiskerExpr=`${upperBoxExpr} + ${extent} * ${iqrExpr}`,fieldExpr=`datum["${continuousAxisChannelDef.field}"]`,joinaggregateTransform={joinaggregate:boxParamsQuartiles(continuousAxisChannelDef.field),groupby},filteredWhiskerSpec={transform:[{filter:`(${lowerWhiskerExpr} <= ${fieldExpr}) && (${fieldExpr} <= ${upperWhiskerExpr})`},{aggregate:[{op:"min",field:continuousAxisChannelDef.field,as:`lower_whisker_${continuousAxisChannelDef.field}`},{op:"max",field:continuousAxisChannelDef.field,as:`upper_whisker_${continuousAxisChannelDef.field}`},{op:"min",field:`lower_box_${continuousAxisChannelDef.field}`,as:`lower_box_${continuousAxisChannelDef.field}`},{op:"max",field:`upper_box_${continuousAxisChannelDef.field}`,as:`upper_box_${continuousAxisChannelDef.field}`},...aggregate],groupby}],layer:whiskerLayers},{tooltip,...encodingWithoutSizeColorContinuousAxisAndTooltip}=encodingWithoutSizeColorAndContinuousAxis,{scale,axis}=continuousAxisChannelDef,title=getTitle(continuousAxisChannelDef),axisWithoutTitle=omit(axis,["title"]),outlierLayersMixins=partLayerMixins(markDef,"outliers",config.boxplot,{transform:[{filter:`(${fieldExpr} < ${lowerWhiskerExpr}) || (${fieldExpr} > ${upperWhiskerExpr})`}],mark:"point",encoding:{[continuousAxis]:{field:continuousAxisChannelDef.field,type:continuousAxisChannelDef.type,...void 0!==title?{title}:{},...void 0!==scale?{scale}:{},...isEmpty(axisWithoutTitle)?{}:{axis:axisWithoutTitle}},...encodingWithoutSizeColorContinuousAxisAndTooltip,...color?{color}:{},...customTooltipWithoutAggregatedField?{tooltip:customTooltipWithoutAggregatedField}:{}}})[0];let filteredLayersMixins;const filteredLayersMixinsTransforms=[...bins,...timeUnits,joinaggregateTransform];return outlierLayersMixins?filteredLayersMixins={transform:filteredLayersMixinsTransforms,layer:[outlierLayersMixins,filteredWhiskerSpec]}:(filteredLayersMixins=filteredWhiskerSpec,filteredLayersMixins.transform.unshift(...filteredLayersMixinsTransforms)),{...outerSpec,layer:[filteredLayersMixins,{transform,layer:boxLayers}]}}function boxParamsQuartiles(continousAxisField){return[{op:"q1",field:continousAxisField,as:`lower_box_${continousAxisField}`},{op:"q3",field:continousAxisField,as:`upper_box_${continousAxisField}`}]}const ERRORBAR="errorbar",errorBarNormalizer=new CompositeMarkNormalizer(ERRORBAR,normalizeErrorBar);function normalizeErrorBar(spec,{config}){spec={...spec,encoding:normalizeEncoding(spec.encoding,config)};const{transform,continuousAxisChannelDef,continuousAxis,encodingWithoutContinuousAxis,ticksOrient,markDef,outerSpec,tooltipEncoding}=errorBarParams(spec,ERRORBAR,config);delete encodingWithoutContinuousAxis.size;const makeErrorBarPart=makeCompositeAggregatePartFactory(markDef,continuousAxis,continuousAxisChannelDef,encodingWithoutContinuousAxis,config.errorbar),thickness=markDef.thickness,size=markDef.size,tick={type:"tick",orient:ticksOrient,aria:!1,...void 0!==thickness?{thickness}:{},...void 0!==size?{size}:{}},layer=[...makeErrorBarPart({partName:"ticks",mark:tick,positionPrefix:"lower",extraEncoding:tooltipEncoding}),...makeErrorBarPart({partName:"ticks",mark:tick,positionPrefix:"upper",extraEncoding:tooltipEncoding}),...makeErrorBarPart({partName:"rule",mark:{type:"rule",ariaRoleDescription:"errorbar",...void 0!==thickness?{size:thickness}:{}},positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:tooltipEncoding})];return{...outerSpec,transform,...layer.length>1?{layer}:{...layer[0]}}}function errorBarOrientAndInputType(spec,compositeMark){const{encoding}=spec;if(function errorBarIsInputTypeRaw(encoding){return(isFieldOrDatumDef(encoding.x)||isFieldOrDatumDef(encoding.y))&&!isFieldOrDatumDef(encoding.x2)&&!isFieldOrDatumDef(encoding.y2)&&!isFieldOrDatumDef(encoding.xError)&&!isFieldOrDatumDef(encoding.xError2)&&!isFieldOrDatumDef(encoding.yError)&&!isFieldOrDatumDef(encoding.yError2)}(encoding))return{orient:compositeMarkOrient(spec,compositeMark),inputType:"raw"};const isTypeAggregatedUpperLower=function errorBarIsInputTypeAggregatedUpperLower(encoding){return isFieldOrDatumDef(encoding.x2)||isFieldOrDatumDef(encoding.y2)}(encoding),isTypeAggregatedError=function errorBarIsInputTypeAggregatedError(encoding){return isFieldOrDatumDef(encoding.xError)||isFieldOrDatumDef(encoding.xError2)||isFieldOrDatumDef(encoding.yError)||isFieldOrDatumDef(encoding.yError2)}(encoding),x=encoding.x,y=encoding.y;if(isTypeAggregatedUpperLower){if(isTypeAggregatedError)throw new Error(`${compositeMark} cannot be both type aggregated-upper-lower and aggregated-error`);const x2=encoding.x2,y2=encoding.y2;if(isFieldOrDatumDef(x2)&&isFieldOrDatumDef(y2))throw new Error(`${compositeMark} cannot have both x2 and y2`);if(isFieldOrDatumDef(x2)){if(isContinuousFieldOrDatumDef(x))return{orient:"horizontal",inputType:"aggregated-upper-lower"};throw new Error(`Both x and x2 have to be quantitative in ${compositeMark}`)}if(isFieldOrDatumDef(y2)){if(isContinuousFieldOrDatumDef(y))return{orient:"vertical",inputType:"aggregated-upper-lower"};throw new Error(`Both y and y2 have to be quantitative in ${compositeMark}`)}throw new Error("No ranged axis")}{const xError=encoding.xError,xError2=encoding.xError2,yError=encoding.yError,yError2=encoding.yError2;if(isFieldOrDatumDef(xError2)&&!isFieldOrDatumDef(xError))throw new Error(`${compositeMark} cannot have xError2 without xError`);if(isFieldOrDatumDef(yError2)&&!isFieldOrDatumDef(yError))throw new Error(`${compositeMark} cannot have yError2 without yError`);if(isFieldOrDatumDef(xError)&&isFieldOrDatumDef(yError))throw new Error(`${compositeMark} cannot have both xError and yError with both are quantiative`);if(isFieldOrDatumDef(xError)){if(isContinuousFieldOrDatumDef(x))return{orient:"horizontal",inputType:"aggregated-error"};throw new Error("All x, xError, and xError2 (if exist) have to be quantitative")}if(isFieldOrDatumDef(yError)){if(isContinuousFieldOrDatumDef(y))return{orient:"vertical",inputType:"aggregated-error"};throw new Error("All y, yError, and yError2 (if exist) have to be quantitative")}throw new Error("No ranged axis")}}function errorBarParams(spec,compositeMark,config){const{mark,encoding,params,projection:_p,...outerSpec}=spec,markDef=isMarkDef(mark)?mark:{type:mark};params&&warn(selectionNotSupported(compositeMark));const{orient,inputType}=errorBarOrientAndInputType(spec,compositeMark),{continuousAxisChannelDef,continuousAxisChannelDef2,continuousAxisChannelDefError,continuousAxisChannelDefError2,continuousAxis}=compositeMarkContinuousAxis(spec,orient,compositeMark),{errorBarSpecificAggregate,postAggregateCalculates,tooltipSummary,tooltipTitleWithFieldName}=function errorBarAggregationAndCalculation(markDef,continuousAxisChannelDef,continuousAxisChannelDef2,continuousAxisChannelDefError,continuousAxisChannelDefError2,inputType,compositeMark,config){let errorBarSpecificAggregate=[],postAggregateCalculates=[];const continuousFieldName=continuousAxisChannelDef.field;let tooltipSummary,tooltipTitleWithFieldName=!1;if("raw"===inputType){const center=markDef.center?markDef.center:markDef.extent?"iqr"===markDef.extent?"median":"mean":config.errorbar.center,extent=markDef.extent?markDef.extent:"mean"===center?"stderr":"iqr";if("median"===center!=("iqr"===extent)&&warn(function errorBarCenterIsUsedWithWrongExtent(center,extent,mark){return`${center} is not usually used with ${extent} for ${mark}.`}(center,extent,compositeMark)),"stderr"===extent||"stdev"===extent)errorBarSpecificAggregate=[{op:extent,field:continuousFieldName,as:`extent_${continuousFieldName}`},{op:center,field:continuousFieldName,as:`center_${continuousFieldName}`}],postAggregateCalculates=[{calculate:`datum["center_${continuousFieldName}"] + datum["extent_${continuousFieldName}"]`,as:`upper_${continuousFieldName}`},{calculate:`datum["center_${continuousFieldName}"] - datum["extent_${continuousFieldName}"]`,as:`lower_${continuousFieldName}`}],tooltipSummary=[{fieldPrefix:"center_",titlePrefix:titleCase(center)},{fieldPrefix:"upper_",titlePrefix:getTitlePrefix(center,extent,"+")},{fieldPrefix:"lower_",titlePrefix:getTitlePrefix(center,extent,"-")}],tooltipTitleWithFieldName=!0;else{let centerOp,lowerExtentOp,upperExtentOp;"ci"===extent?(centerOp="mean",lowerExtentOp="ci0",upperExtentOp="ci1"):(centerOp="median",lowerExtentOp="q1",upperExtentOp="q3"),errorBarSpecificAggregate=[{op:lowerExtentOp,field:continuousFieldName,as:`lower_${continuousFieldName}`},{op:upperExtentOp,field:continuousFieldName,as:`upper_${continuousFieldName}`},{op:centerOp,field:continuousFieldName,as:`center_${continuousFieldName}`}],tooltipSummary=[{fieldPrefix:"upper_",titlePrefix:title({field:continuousFieldName,aggregate:upperExtentOp,type:"quantitative"},config,{allowDisabling:!1})},{fieldPrefix:"lower_",titlePrefix:title({field:continuousFieldName,aggregate:lowerExtentOp,type:"quantitative"},config,{allowDisabling:!1})},{fieldPrefix:"center_",titlePrefix:title({field:continuousFieldName,aggregate:centerOp,type:"quantitative"},config,{allowDisabling:!1})}]}}else{(markDef.center||markDef.extent)&&warn(function errorBarCenterAndExtentAreNotNeeded(center,extent){return`${extent?"extent ":""}${extent&¢er?"and ":""}${center?"center ":""}${extent&¢er?"are ":"is "}not needed when data are aggregated.`}(markDef.center,markDef.extent)),"aggregated-upper-lower"===inputType?(tooltipSummary=[],postAggregateCalculates=[{calculate:`datum["${continuousAxisChannelDef2.field}"]`,as:`upper_${continuousFieldName}`},{calculate:`datum["${continuousFieldName}"]`,as:`lower_${continuousFieldName}`}]):"aggregated-error"===inputType&&(tooltipSummary=[{fieldPrefix:"",titlePrefix:continuousFieldName}],postAggregateCalculates=[{calculate:`datum["${continuousFieldName}"] + datum["${continuousAxisChannelDefError.field}"]`,as:`upper_${continuousFieldName}`}],continuousAxisChannelDefError2?postAggregateCalculates.push({calculate:`datum["${continuousFieldName}"] + datum["${continuousAxisChannelDefError2.field}"]`,as:`lower_${continuousFieldName}`}):postAggregateCalculates.push({calculate:`datum["${continuousFieldName}"] - datum["${continuousAxisChannelDefError.field}"]`,as:`lower_${continuousFieldName}`}));for(const postAggregateCalculate of postAggregateCalculates)tooltipSummary.push({fieldPrefix:postAggregateCalculate.as.substring(0,6),titlePrefix:replaceAll(replaceAll(postAggregateCalculate.calculate,'datum["',""),'"]',"")})}return{postAggregateCalculates,errorBarSpecificAggregate,tooltipSummary,tooltipTitleWithFieldName}}(markDef,continuousAxisChannelDef,continuousAxisChannelDef2,continuousAxisChannelDefError,continuousAxisChannelDefError2,inputType,compositeMark,config),{[continuousAxis]:oldContinuousAxisChannelDef,["x"===continuousAxis?"x2":"y2"]:oldContinuousAxisChannelDef2,["x"===continuousAxis?"xError":"yError"]:oldContinuousAxisChannelDefError,["x"===continuousAxis?"xError2":"yError2"]:oldContinuousAxisChannelDefError2,...oldEncodingWithoutContinuousAxis}=encoding,{bins,timeUnits,aggregate:oldAggregate,groupby:oldGroupBy,encoding:encodingWithoutContinuousAxis}=extractTransformsFromEncoding(oldEncodingWithoutContinuousAxis,config),aggregate=[...oldAggregate,...errorBarSpecificAggregate],groupby="raw"!==inputType?[]:oldGroupBy,tooltipEncoding=getCompositeMarkTooltip(tooltipSummary,continuousAxisChannelDef,encodingWithoutContinuousAxis,tooltipTitleWithFieldName);return{transform:[...outerSpec.transform??[],...bins,...timeUnits,...0===aggregate.length?[]:[{aggregate,groupby}],...postAggregateCalculates],groupby,continuousAxisChannelDef,continuousAxis,encodingWithoutContinuousAxis,ticksOrient:"vertical"===orient?"horizontal":"vertical",markDef,outerSpec,tooltipEncoding}}function getTitlePrefix(center,extent,operation){return`${titleCase(center)} ${operation} ${extent}`}const ERRORBAND="errorband",errorBandNormalizer=new CompositeMarkNormalizer(ERRORBAND,normalizeErrorBand);function normalizeErrorBand(spec,{config}){spec={...spec,encoding:normalizeEncoding(spec.encoding,config)};const{transform,continuousAxisChannelDef,continuousAxis,encodingWithoutContinuousAxis,markDef,outerSpec,tooltipEncoding}=errorBarParams(spec,ERRORBAND,config),errorBandDef=markDef,makeErrorBandPart=makeCompositeAggregatePartFactory(errorBandDef,continuousAxis,continuousAxisChannelDef,encodingWithoutContinuousAxis,config.errorband),is2D=void 0!==spec.encoding.x&&void 0!==spec.encoding.y;let bandMark={type:is2D?"area":"rect"},bordersMark={type:is2D?"line":"rule"};const interpolate={...errorBandDef.interpolate?{interpolate:errorBandDef.interpolate}:{},...errorBandDef.tension&&errorBandDef.interpolate?{tension:errorBandDef.tension}:{}};return is2D?(bandMark={...bandMark,...interpolate,ariaRoleDescription:"errorband"},bordersMark={...bordersMark,...interpolate,aria:!1}):errorBandDef.interpolate?warn(errorBand1DNotSupport("interpolate")):errorBandDef.tension&&warn(errorBand1DNotSupport("tension")),{...outerSpec,transform,layer:[...makeErrorBandPart({partName:"band",mark:bandMark,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:tooltipEncoding}),...makeErrorBandPart({partName:"borders",mark:bordersMark,positionPrefix:"lower",extraEncoding:tooltipEncoding}),...makeErrorBandPart({partName:"borders",mark:bordersMark,positionPrefix:"upper",extraEncoding:tooltipEncoding})]}}const compositeMarkRegistry={};function add(mark,run,parts){const normalizer=new CompositeMarkNormalizer(mark,run);compositeMarkRegistry[mark]={normalizer,parts}}add(BOXPLOT,normalizeBoxPlot,["box","median","outliers","rule","ticks"]),add(ERRORBAR,normalizeErrorBar,["ticks","rule"]),add(ERRORBAND,normalizeErrorBand,["band","borders"]);const VL_ONLY_LEGEND_CONFIG=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"],HEADER_TITLE_PROPERTIES_MAP={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"},HEADER_LABEL_PROPERTIES_MAP={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"},HEADER_TITLE_PROPERTIES=keys(HEADER_TITLE_PROPERTIES_MAP),HEADER_LABEL_PROPERTIES=keys(HEADER_LABEL_PROPERTIES_MAP),HEADER_CONFIGS=keys({header:1,headerRow:1,headerColumn:1,headerFacet:1}),LEGEND_SCALE_CHANNELS=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"],defaultConfig$2={point:{on:"click",fields:["_vgsid_"],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[mousedown, window:mouseup] > window:mousemove!",encodings:["x","y"],translate:"[mousedown, window:mouseup] > window:mousemove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function isLegendBinding(bind){return"legend"===bind||!!bind?.legend}function isLegendStreamBinding(bind){return isLegendBinding(bind)&&isObject(bind)}function isSelectionParameter(param){return!!param?.select}function assembleParameterSignals(params){const signals=[];for(const param of params||[]){if(isSelectionParameter(param))continue;const{expr,bind,...rest}=param;if(bind&&expr){const signal={...rest,bind,init:expr};signals.push(signal)}else{const signal={...rest,...expr?{update:expr}:{},...bind?{bind}:{}};signals.push(signal)}}return signals}function isConcatSpec(spec){return"concat"in spec}function isVConcatSpec(spec){return"vconcat"in spec}function isHConcatSpec(spec){return"hconcat"in spec}function getStepFor({step,offsetIsDiscrete}){return offsetIsDiscrete?step.for??"offset":"position"}function isStep(size){return isObject(size)&&void 0!==size.step}function isFrameMixins(o){return o.view||o.width||o.height}const COMPOSITION_LAYOUT_PROPERTIES=keys({align:1,bounds:1,center:1,columns:1,spacing:1});function getViewConfigContinuousSize(viewConfig,channel){return viewConfig[channel]??viewConfig["width"===channel?"continuousWidth":"continuousHeight"]}function getViewConfigDiscreteStep(viewConfig,channel){const size=getViewConfigDiscreteSize(viewConfig,channel);return isStep(size)?size.step:DEFAULT_STEP}function getViewConfigDiscreteSize(viewConfig,channel){return getFirstDefined(viewConfig[channel]??viewConfig["width"===channel?"discreteWidth":"discreteHeight"],{step:viewConfig.step})}const DEFAULT_STEP=20,defaultConfig$1={background:"white",padding:5,timeFormat:"%b %d, %Y",countTitle:"Count of Records",view:{continuousWidth:200,continuousHeight:200,step:DEFAULT_STEP},mark:{color:"#4c78a8",invalid:"filter",timeUnitBandSize:1},arc:{},area:{},bar:defaultBarConfig,circle:{},geoshape:{},image:{},line:{},point:{},rect:defaultRectConfig,rule:{color:"black"},square:{},text:{color:"black"},tick:{thickness:1},trail:{},boxplot:{size:14,extent:1.5,box:{},median:{color:"white"},outliers:{},rule:{},ticks:null},errorbar:{center:"mean",rule:!0,ticks:!1},errorband:{band:{opacity:.3},borders:!1},scale:{pointPadding:.5,barBandPaddingInner:.1,rectBandPaddingInner:0,bandWithNestedOffsetPaddingInner:.2,bandWithNestedOffsetPaddingOuter:.2,minBandSize:2,minFontSize:8,maxFontSize:40,minOpacity:.3,maxOpacity:.8,minSize:9,minStrokeWidth:1,maxStrokeWidth:4,quantileCount:4,quantizeCount:4,zero:!0},projection:{},legend:{gradientHorizontalMaxLength:200,gradientHorizontalMinLength:100,gradientVerticalMaxLength:200,gradientVerticalMinLength:64,unselectedOpacity:.35},header:{titlePadding:10,labelPadding:10},headerColumn:{},headerRow:{},headerFacet:{},selection:defaultConfig$2,style:{},title:{},facet:{spacing:20},concat:{spacing:20},normalizedNumberFormat:".0%"},tab10=["#4c78a8","#f58518","#e45756","#72b7b2","#54a24b","#eeca3b","#b279a2","#ff9da6","#9d755d","#bab0ac"],DEFAULT_FONT_SIZE={text:11,guideLabel:10,guideTitle:11,groupTitle:13,groupSubtitle:12},DEFAULT_COLOR={blue:tab10[0],orange:tab10[1],red:tab10[2],teal:tab10[3],green:tab10[4],yellow:tab10[5],purple:tab10[6],pink:tab10[7],brown:tab10[8],gray0:"#000",gray1:"#111",gray2:"#222",gray3:"#333",gray4:"#444",gray5:"#555",gray6:"#666",gray7:"#777",gray8:"#888",gray9:"#999",gray10:"#aaa",gray11:"#bbb",gray12:"#ccc",gray13:"#ddd",gray14:"#eee",gray15:"#fff"};function getAxisConfigInternal(axisConfig){const props=keys(axisConfig||{}),axisConfigInternal={};for(const prop of props){const val=axisConfig[prop];axisConfigInternal[prop]=isConditionalAxisValue(val)?signalOrValueRefWithCondition(val):signalRefOrValue(val)}return axisConfigInternal}const configPropsWithExpr=[...MARK_CONFIGS,...AXIS_CONFIGS,...HEADER_CONFIGS,"background","padding","legend","lineBreak","scale","style","title","view"];function initConfig(specifiedConfig={}){const{color,font,fontSize,selection,...restConfig}=specifiedConfig,mergedConfig=mergeConfig({},duplicate(defaultConfig$1),font?function fontConfig(font){return{text:{font},style:{"guide-label":{font},"guide-title":{font},"group-title":{font},"group-subtitle":{font}}}}(font):{},color?function colorSignalConfig(color={}){return{signals:[{name:"color",value:isObject(color)?{...DEFAULT_COLOR,...color}:DEFAULT_COLOR}],mark:{color:{signal:"color.blue"}},rule:{color:{signal:"color.gray0"}},text:{color:{signal:"color.gray0"}},style:{"guide-label":{fill:{signal:"color.gray0"}},"guide-title":{fill:{signal:"color.gray0"}},"group-title":{fill:{signal:"color.gray0"}},"group-subtitle":{fill:{signal:"color.gray0"}},cell:{stroke:{signal:"color.gray8"}}},axis:{domainColor:{signal:"color.gray13"},gridColor:{signal:"color.gray8"},tickColor:{signal:"color.gray13"}},range:{category:[{signal:"color.blue"},{signal:"color.orange"},{signal:"color.red"},{signal:"color.teal"},{signal:"color.green"},{signal:"color.yellow"},{signal:"color.purple"},{signal:"color.pink"},{signal:"color.brown"},{signal:"color.grey8"}]}}}(color):{},fontSize?function fontSizeSignalConfig(fontSize){return{signals:[{name:"fontSize",value:isObject(fontSize)?{...DEFAULT_FONT_SIZE,...fontSize}:DEFAULT_FONT_SIZE}],text:{fontSize:{signal:"fontSize.text"}},style:{"guide-label":{fontSize:{signal:"fontSize.guideLabel"}},"guide-title":{fontSize:{signal:"fontSize.guideTitle"}},"group-title":{fontSize:{signal:"fontSize.groupTitle"}},"group-subtitle":{fontSize:{signal:"fontSize.groupSubtitle"}}}}}(fontSize):{},restConfig||{});selection&&writeConfig(mergedConfig,"selection",selection,!0);const outputConfig=omit(mergedConfig,configPropsWithExpr);for(const prop of["background","lineBreak","padding"])mergedConfig[prop]&&(outputConfig[prop]=signalRefOrValue(mergedConfig[prop]));for(const markConfigType of MARK_CONFIGS)mergedConfig[markConfigType]&&(outputConfig[markConfigType]=replaceExprRef(mergedConfig[markConfigType]));for(const axisConfigType of AXIS_CONFIGS)mergedConfig[axisConfigType]&&(outputConfig[axisConfigType]=getAxisConfigInternal(mergedConfig[axisConfigType]));for(const headerConfigType of HEADER_CONFIGS)mergedConfig[headerConfigType]&&(outputConfig[headerConfigType]=replaceExprRef(mergedConfig[headerConfigType]));return mergedConfig.legend&&(outputConfig.legend=replaceExprRef(mergedConfig.legend)),mergedConfig.scale&&(outputConfig.scale=replaceExprRef(mergedConfig.scale)),mergedConfig.style&&(outputConfig.style=function getStyleConfigInternal(styleConfig){const props=keys(styleConfig),styleConfigInternal={};for(const prop of props)styleConfigInternal[prop]=getAxisConfigInternal(styleConfig[prop]);return styleConfigInternal}(mergedConfig.style)),mergedConfig.title&&(outputConfig.title=replaceExprRef(mergedConfig.title)),mergedConfig.view&&(outputConfig.view=replaceExprRef(mergedConfig.view)),outputConfig}const MARK_STYLES=new Set(["view",...PRIMITIVE_MARKS]),VL_ONLY_CONFIG_PROPERTIES=["color","fontSize","background","padding","facet","concat","numberFormat","numberFormatType","normalizedNumberFormat","normalizedNumberFormatType","timeFormat","countTitle","header","axisQuantitative","axisTemporal","axisDiscrete","axisPoint","axisXBand","axisXPoint","axisXDiscrete","axisXQuantitative","axisXTemporal","axisYBand","axisYPoint","axisYDiscrete","axisYQuantitative","axisYTemporal","scale","selection","overlay"],VL_ONLY_ALL_MARK_SPECIFIC_CONFIG_PROPERTY_INDEX={view:["continuousWidth","continuousHeight","discreteWidth","discreteHeight","step"],area:["line","point"],bar:["binSpacing","continuousBandSize","discreteBandSize","minBandSize"],rect:["binSpacing","continuousBandSize","discreteBandSize","minBandSize"],line:["point"],tick:["bandSize","thickness"]};function stripAndRedirectConfig(config){config=duplicate(config);for(const prop of VL_ONLY_CONFIG_PROPERTIES)delete config[prop];if(config.axis)for(const prop in config.axis)isConditionalAxisValue(config.axis[prop])&&delete config.axis[prop];if(config.legend)for(const prop of VL_ONLY_LEGEND_CONFIG)delete config.legend[prop];if(config.mark){for(const prop of VL_ONLY_MARK_CONFIG_PROPERTIES)delete config.mark[prop];config.mark.tooltip&&isObject(config.mark.tooltip)&&delete config.mark.tooltip}config.params&&(config.signals=(config.signals||[]).concat(assembleParameterSignals(config.params)),delete config.params);for(const markType of MARK_STYLES){for(const prop of VL_ONLY_MARK_CONFIG_PROPERTIES)delete config[markType][prop];const vlOnlyMarkSpecificConfigs=VL_ONLY_ALL_MARK_SPECIFIC_CONFIG_PROPERTY_INDEX[markType];if(vlOnlyMarkSpecificConfigs)for(const prop of vlOnlyMarkSpecificConfigs)delete config[markType][prop];redirectConfigToStyleConfig(config,markType)}for(const m of function getAllCompositeMarks(){return keys(compositeMarkRegistry)}())delete config[m];!function redirectTitleConfig(config){const{titleMarkConfig,subtitleMarkConfig,subtitle}=extractTitleConfig(config.title);isEmpty(titleMarkConfig)||(config.style["group-title"]={...config.style["group-title"],...titleMarkConfig});isEmpty(subtitleMarkConfig)||(config.style["group-subtitle"]={...config.style["group-subtitle"],...subtitleMarkConfig});isEmpty(subtitle)?delete config.title:config.title=subtitle}(config);for(const prop in config)isObject(config[prop])&&isEmpty(config[prop])&&delete config[prop];return isEmpty(config)?void 0:config}function redirectConfigToStyleConfig(config,prop,toProp,compositeMarkPart){"view"===prop&&(toProp="cell");const style={...compositeMarkPart?config[prop][compositeMarkPart]:config[prop],...config.style[toProp??prop]};isEmpty(style)||(config.style[toProp??prop]=style),compositeMarkPart||delete config[prop]}function isLayerSpec(spec){return"layer"in spec}class SpecMapper{map(spec,params){return isFacetSpec(spec)?this.mapFacet(spec,params):function isRepeatSpec(spec){return"repeat"in spec}(spec)?this.mapRepeat(spec,params):isHConcatSpec(spec)?this.mapHConcat(spec,params):isVConcatSpec(spec)?this.mapVConcat(spec,params):isConcatSpec(spec)?this.mapConcat(spec,params):this.mapLayerOrUnit(spec,params)}mapLayerOrUnit(spec,params){if(isLayerSpec(spec))return this.mapLayer(spec,params);if(isUnitSpec(spec))return this.mapUnit(spec,params);throw new Error(invalidSpec(spec))}mapLayer(spec,params){return{...spec,layer:spec.layer.map((subspec=>this.mapLayerOrUnit(subspec,params)))}}mapHConcat(spec,params){return{...spec,hconcat:spec.hconcat.map((subspec=>this.map(subspec,params)))}}mapVConcat(spec,params){return{...spec,vconcat:spec.vconcat.map((subspec=>this.map(subspec,params)))}}mapConcat(spec,params){const{concat,...rest}=spec;return{...rest,concat:concat.map((subspec=>this.map(subspec,params)))}}mapFacet(spec,params){return{...spec,spec:this.map(spec.spec,params)}}mapRepeat(spec,params){return{...spec,spec:this.map(spec.spec,params)}}}const STACK_OFFSET_INDEX={zero:1,center:1,normalize:1};const STACKABLE_MARKS=new Set([ARC,BAR,AREA,RULE,POINT,CIRCLE,SQUARE,LINE,TEXT,TICK]),STACK_BY_DEFAULT_MARKS=new Set([BAR,AREA,ARC]);function isUnbinnedQuantitative(channelDef){return isFieldDef(channelDef)&&"quantitative"===channelDefType(channelDef)&&!channelDef.bin}function potentialStackedChannel(encoding,x,{orient,type:mark}){const y="x"===x?"y":"radius",isCartesian="x"===x,xDef=encoding[x],yDef=encoding[y];if(isFieldDef(xDef)&&isFieldDef(yDef))if(isUnbinnedQuantitative(xDef)&&isUnbinnedQuantitative(yDef)){if(xDef.stack)return x;if(yDef.stack)return y;const xAggregate=isFieldDef(xDef)&&!!xDef.aggregate;if(xAggregate!==(isFieldDef(yDef)&&!!yDef.aggregate))return xAggregate?x:y;if(isCartesian&&["bar","area"].includes(mark)){if("vertical"===orient)return y;if("horizontal"===orient)return x}}else{if(isUnbinnedQuantitative(xDef))return x;if(isUnbinnedQuantitative(yDef))return y}else{if(isUnbinnedQuantitative(xDef))return x;if(isUnbinnedQuantitative(yDef))return y}}function stack(m,encoding){const markDef=isMarkDef(m)?m:{type:m},mark=markDef.type;if(!STACKABLE_MARKS.has(mark))return null;const fieldChannel=potentialStackedChannel(encoding,"x",markDef)||potentialStackedChannel(encoding,"theta",markDef);if(!fieldChannel)return null;const stackedFieldDef=encoding[fieldChannel],stackedField=isFieldDef(stackedFieldDef)?vgField(stackedFieldDef,{}):void 0,dimensionChannel=function getDimensionChannel(channel){switch(channel){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}(fieldChannel),groupbyChannels=[],groupbyFields=new Set;if(encoding[dimensionChannel]){const dimensionDef=encoding[dimensionChannel],dimensionField=isFieldDef(dimensionDef)?vgField(dimensionDef,{}):void 0;dimensionField&&dimensionField!==stackedField&&(groupbyChannels.push(dimensionChannel),groupbyFields.add(dimensionField));const dimensionOffsetChannel="x"===dimensionChannel?"xOffset":"yOffset",dimensionOffsetDef=encoding[dimensionOffsetChannel],dimensionOffsetField=isFieldDef(dimensionOffsetDef)?vgField(dimensionOffsetDef,{}):void 0;dimensionOffsetField&&dimensionOffsetField!==stackedField&&(groupbyChannels.push(dimensionOffsetChannel),groupbyFields.add(dimensionOffsetField))}const stackBy=NONPOSITION_CHANNELS.reduce(((sc,channel)=>{if("tooltip"!==channel&&channelHasField(encoding,channel)){const channelDef=encoding[channel];for(const cDef of array$5(channelDef)){const fieldDef=getFieldDef(cDef);if(fieldDef.aggregate)continue;const f=vgField(fieldDef,{});f&&groupbyFields.has(f)||sc.push({channel,fieldDef})}}return sc}),[]);let offset;return void 0!==stackedFieldDef.stack?offset=isBoolean$2(stackedFieldDef.stack)?stackedFieldDef.stack?"zero":null:stackedFieldDef.stack:STACK_BY_DEFAULT_MARKS.has(mark)&&(offset="zero"),offset&&function isStackOffset(s){return s in STACK_OFFSET_INDEX}(offset)?isAggregate$1(encoding)&&0===stackBy.length?null:stackedFieldDef?.scale?.type&&stackedFieldDef?.scale?.type!==ScaleType.LINEAR?(stackedFieldDef?.stack&&warn(function cannotStackNonLinearScale(scaleType){return`Cannot stack non-linear scale (${scaleType}).`}(stackedFieldDef.scale.type)),null):isFieldOrDatumDef(encoding[getSecondaryRangeChannel(fieldChannel)])?(void 0!==stackedFieldDef.stack&&warn(function cannotStackRangedMark(channel){return`Cannot stack "${channel}" if there is already "${channel}2".`}(fieldChannel)),null):(isFieldDef(stackedFieldDef)&&stackedFieldDef.aggregate&&!SUM_OPS.has(stackedFieldDef.aggregate)&&warn(function stackNonSummativeAggregate(aggregate){return`Stacking is applied even though the aggregate function is non-summative ("${aggregate}").`}(stackedFieldDef.aggregate)),{groupbyChannels,groupbyFields,fieldChannel,impute:null!==stackedFieldDef.impute&&isPathMark(mark),stackBy,offset}):null}function initMarkdef(originalMarkDef,encoding,config){const markDef=replaceExprRef(originalMarkDef),specifiedOrient=getMarkPropOrConfig("orient",markDef,config);if(markDef.orient=function orient(mark,encoding,specifiedOrient){switch(mark){case POINT:case CIRCLE:case SQUARE:case TEXT:case RECT:case IMAGE:return}const{x,y,x2,y2}=encoding;switch(mark){case BAR:if(isFieldDef(x)&&(isBinned(x.bin)||isFieldDef(y)&&y.aggregate&&!x.aggregate))return"vertical";if(isFieldDef(y)&&(isBinned(y.bin)||isFieldDef(x)&&x.aggregate&&!y.aggregate))return"horizontal";if(y2||x2){if(specifiedOrient)return specifiedOrient;if(!x2)return(isFieldDef(x)&&x.type===QUANTITATIVE&&!isBinning(x.bin)||isNumericDataDef(x))&&isFieldDef(y)&&isBinned(y.bin)?"horizontal":"vertical";if(!y2)return(isFieldDef(y)&&y.type===QUANTITATIVE&&!isBinning(y.bin)||isNumericDataDef(y))&&isFieldDef(x)&&isBinned(x.bin)?"vertical":"horizontal"}case RULE:if(x2&&(!isFieldDef(x)||!isBinned(x.bin))&&y2&&(!isFieldDef(y)||!isBinned(y.bin)))return;case AREA:if(y2)return isFieldDef(y)&&isBinned(y.bin)?"horizontal":"vertical";if(x2)return isFieldDef(x)&&isBinned(x.bin)?"vertical":"horizontal";if(mark===RULE){if(x&&!y)return"vertical";if(y&&!x)return"horizontal"}case LINE:case TICK:{const xIsMeasure=isUnbinnedQuantitativeFieldOrDatumDef(x),yIsMeasure=isUnbinnedQuantitativeFieldOrDatumDef(y);if(specifiedOrient)return specifiedOrient;if(xIsMeasure&&!yIsMeasure)return"tick"!==mark?"horizontal":"vertical";if(!xIsMeasure&&yIsMeasure)return"tick"!==mark?"vertical":"horizontal";if(xIsMeasure&&yIsMeasure)return"vertical";{const xIsTemporal=isTypedFieldDef(x)&&x.type===TEMPORAL,yIsTemporal=isTypedFieldDef(y)&&y.type===TEMPORAL;if(xIsTemporal&&!yIsTemporal)return"vertical";if(!xIsTemporal&&yIsTemporal)return"horizontal"}return}}return"vertical"}(markDef.type,encoding,specifiedOrient),void 0!==specifiedOrient&&specifiedOrient!==markDef.orient&&warn(function orientOverridden(original,actual){return`Specified orient "${original}" overridden with "${actual}".`}(markDef.orient,specifiedOrient)),"bar"===markDef.type&&markDef.orient){const cornerRadiusEnd=getMarkPropOrConfig("cornerRadiusEnd",markDef,config);if(void 0!==cornerRadiusEnd){const newProps="horizontal"===markDef.orient&&encoding.x2||"vertical"===markDef.orient&&encoding.y2?["cornerRadius"]:BAR_CORNER_RADIUS_INDEX[markDef.orient];for(const newProp of newProps)markDef[newProp]=cornerRadiusEnd;void 0!==markDef.cornerRadiusEnd&&delete markDef.cornerRadiusEnd}}void 0===getMarkPropOrConfig("opacity",markDef,config)&&(markDef.opacity=function opacity(mark,encoding){if(contains([POINT,TICK,CIRCLE,SQUARE],mark)&&!isAggregate$1(encoding))return.7;return}(markDef.type,encoding));return void 0===getMarkPropOrConfig("cursor",markDef,config)&&(markDef.cursor=function cursor(markDef,encoding,config){if(encoding.href||markDef.href||getMarkPropOrConfig("href",markDef,config))return"pointer";return markDef.cursor}(markDef,encoding,config)),markDef}function dropLineAndPoint(markDef){const{point:_point,line:_line,...mark}=markDef;return keys(mark).length>1?mark:mark.type}function dropLineAndPointFromConfig(config){for(const mark of["line","area","rule","trail"])config[mark]&&(config={...config,[mark]:omit(config[mark],["point","line"])});return config}function getPointOverlay(markDef,markConfig={},encoding){return"transparent"===markDef.point?{opacity:0}:markDef.point?isObject(markDef.point)?markDef.point:{}:void 0!==markDef.point?null:markConfig.point||encoding.shape?isObject(markConfig.point)?markConfig.point:{}:void 0}function getLineOverlay(markDef,markConfig={}){return markDef.line?!0===markDef.line?{}:markDef.line:void 0!==markDef.line?null:markConfig.line?!0===markConfig.line?{}:markConfig.line:void 0}class PathOverlayNormalizer{constructor(){this.name="path-overlay"}hasMatchingType(spec,config){if(isUnitSpec(spec)){const{mark,encoding}=spec,markDef=isMarkDef(mark)?mark:{type:mark};switch(markDef.type){case"line":case"rule":case"trail":return!!getPointOverlay(markDef,config[markDef.type],encoding);case"area":return!!getPointOverlay(markDef,config[markDef.type],encoding)||!!getLineOverlay(markDef,config[markDef.type])}}return!1}run(spec,normParams,normalize){const{config}=normParams,{params,projection,mark,name,encoding:e,...outerSpec}=spec,encoding=normalizeEncoding(e,config),markDef=isMarkDef(mark)?mark:{type:mark},pointOverlay=getPointOverlay(markDef,config[markDef.type],encoding),lineOverlay="area"===markDef.type&&getLineOverlay(markDef,config[markDef.type]),layer=[{name,...params?{params}:{},mark:dropLineAndPoint({..."area"===markDef.type&&void 0===markDef.opacity&&void 0===markDef.fillOpacity?{opacity:.7}:{},...markDef}),encoding:omit(encoding,["shape"])}],stackProps=stack(initMarkdef(markDef,encoding,config),encoding);let overlayEncoding=encoding;if(stackProps){const{fieldChannel:stackFieldChannel,offset}=stackProps;overlayEncoding={...encoding,[stackFieldChannel]:{...encoding[stackFieldChannel],...offset?{stack:offset}:{}}}}return overlayEncoding=omit(overlayEncoding,["y2","x2"]),lineOverlay&&layer.push({...projection?{projection}:{},mark:{type:"line",...pick(markDef,["clip","interpolate","tension","tooltip"]),...lineOverlay},encoding:overlayEncoding}),pointOverlay&&layer.push({...projection?{projection}:{},mark:{type:"point",opacity:1,filled:!0,...pick(markDef,["clip","tooltip"]),...pointOverlay},encoding:overlayEncoding}),normalize({...outerSpec,layer},{...normParams,config:dropLineAndPointFromConfig(config)})}}function replaceRepeaterInFacet(facet,repeater){return repeater?isFacetMapping(facet)?replaceRepeaterInMapping(facet,repeater):replaceRepeaterInFieldDef(facet,repeater):facet}function replaceRepeaterInEncoding(encoding,repeater){return repeater?replaceRepeaterInMapping(encoding,repeater):encoding}function replaceRepeatInProp(prop,o,repeater){const val=o[prop];return function isRepeatRef(field){return field&&!isString(field)&&"repeat"in field}(val)?val.repeat in repeater?{...o,[prop]:repeater[val.repeat]}:void warn(function noSuchRepeatedValue(field){return`Unknown repeated value "${field}".`}(val.repeat)):o}function replaceRepeaterInFieldDef(fieldDef,repeater){if(void 0!==(fieldDef=replaceRepeatInProp("field",fieldDef,repeater))){if(null===fieldDef)return null;if(isSortableFieldDef(fieldDef)&&isSortField(fieldDef.sort)){const sort=replaceRepeatInProp("field",fieldDef.sort,repeater);fieldDef={...fieldDef,...sort?{sort}:{}}}return fieldDef}}function replaceRepeaterInFieldOrDatumDef(def,repeater){if(isFieldDef(def))return replaceRepeaterInFieldDef(def,repeater);{const datumDef=replaceRepeatInProp("datum",def,repeater);return datumDef===def||datumDef.type||(datumDef.type="nominal"),datumDef}}function replaceRepeaterInChannelDef(channelDef,repeater){if(!isFieldOrDatumDef(channelDef)){if(hasConditionalFieldOrDatumDef(channelDef)){const fd=replaceRepeaterInFieldOrDatumDef(channelDef.condition,repeater);if(fd)return{...channelDef,condition:fd};{const{condition,...channelDefWithoutCondition}=channelDef;return channelDefWithoutCondition}}return channelDef}{const fd=replaceRepeaterInFieldOrDatumDef(channelDef,repeater);if(fd)return fd;if(isConditionalDef(channelDef))return{condition:channelDef.condition}}}function replaceRepeaterInMapping(mapping,repeater){const out={};for(const channel in mapping)if(has$1(mapping,channel)){const channelDef=mapping[channel];if(isArray(channelDef))out[channel]=channelDef.map((cd=>replaceRepeaterInChannelDef(cd,repeater))).filter((cd=>cd));else{const cd=replaceRepeaterInChannelDef(channelDef,repeater);void 0!==cd&&(out[channel]=cd)}}return out}class RuleForRangedLineNormalizer{constructor(){this.name="RuleForRangedLine"}hasMatchingType(spec){if(isUnitSpec(spec)){const{encoding,mark}=spec;if("line"===mark||isMarkDef(mark)&&"line"===mark.type)for(const channel of SECONDARY_RANGE_CHANNEL){const mainChannelDef=encoding[getMainRangeChannel(channel)];if(encoding[channel]&&(isFieldDef(mainChannelDef)&&!isBinned(mainChannelDef.bin)||isDatumDef(mainChannelDef)))return!0}}return!1}run(spec,params,normalize){const{encoding,mark}=spec;return warn(function lineWithRange(hasX2,hasY2){return`Line mark is for continuous lines and thus cannot be used with ${hasX2&&hasY2?"x2 and y2":hasX2?"x2":"y2"}. We will use the rule mark (line segments) instead.`}(!!encoding.x2,!!encoding.y2)),normalize({...spec,mark:isObject(mark)?{...mark,type:"rule"}:"rule"},params)}}function mergeEncoding({parentEncoding,encoding={},layer}){let merged={};if(parentEncoding){const channels=new Set([...keys(parentEncoding),...keys(encoding)]);for(const channel of channels){const channelDef=encoding[channel],parentChannelDef=parentEncoding[channel];if(isFieldOrDatumDef(channelDef)){const mergedChannelDef={...parentChannelDef,...channelDef};merged[channel]=mergedChannelDef}else hasConditionalFieldOrDatumDef(channelDef)?merged[channel]={...channelDef,condition:{...parentChannelDef,...channelDef.condition}}:channelDef||null===channelDef?merged[channel]=channelDef:(layer||isValueDef(parentChannelDef)||isSignalRef(parentChannelDef)||isFieldOrDatumDef(parentChannelDef)||isArray(parentChannelDef))&&(merged[channel]=parentChannelDef)}}else merged=encoding;return!merged||isEmpty(merged)?void 0:merged}function mergeProjection(opt){const{parentProjection,projection}=opt;return parentProjection&&projection&&warn(function projectionOverridden(opt){const{parentProjection,projection}=opt;return`Layer's shared projection ${stringify$1(parentProjection)} is overridden by a child projection ${stringify$1(projection)}.`}({parentProjection,projection})),projection??parentProjection}function isFilter(t){return"filter"in t}function isImputeSequence(t){return void 0!==t?.stop}function isLookup(t){return"lookup"in t}function isPivot(t){return"pivot"in t}function isDensity(t){return"density"in t}function isQuantile(t){return"quantile"in t}function isRegression(t){return"regression"in t}function isLoess(t){return"loess"in t}function isSample(t){return"sample"in t}function isWindow(t){return"window"in t}function isJoinAggregate(t){return"joinaggregate"in t}function isFlatten(t){return"flatten"in t}function isCalculate(t){return"calculate"in t}function isBin(t){return"bin"in t}function isImpute(t){return"impute"in t}function isTimeUnit(t){return"timeUnit"in t}function isAggregate(t){return"aggregate"in t}function isStack(t){return"stack"in t}function isFold(t){return"fold"in t}function isExtent(t){return"extent"in t&&!("density"in t)}function normalizeTransforms(spec,normParams){const{transform:tx,...rest}=spec;if(tx){const transform=tx.map((t=>{if(isFilter(t))return{filter:normalizePredicate(t,normParams)};if(isBin(t)&&isBinParams(t.bin))return{...t,bin:normalizeBinExtent(t.bin)};if(isLookup(t)){const{selection:param,...from}=t.from;return param?{...t,from:{param,...from}}:t}return t}));return{...rest,transform}}return spec}function normalizeChannelDef(obj,normParams){const enc=duplicate(obj);if(isFieldDef(enc)&&isBinParams(enc.bin)&&(enc.bin=normalizeBinExtent(enc.bin)),isScaleFieldDef(enc)&&enc.scale?.domain?.selection){const{selection:param,...domain}=enc.scale.domain;enc.scale.domain={...domain,...param?{param}:{}}}if(isConditionalDef(enc))if(isArray(enc.condition))enc.condition=enc.condition.map((c=>{const{selection,param,test,...cond}=c;return param?c:{...cond,test:normalizePredicate(c,normParams)}}));else{const{selection,param,test,...cond}=normalizeChannelDef(enc.condition,normParams);enc.condition=param?enc.condition:{...cond,test:normalizePredicate(enc.condition,normParams)}}return enc}function normalizeBinExtent(bin){const ext=bin.extent;if(ext?.selection){const{selection:param,...rest}=ext;return{...bin,extent:{...rest,param}}}return bin}function normalizePredicate(op,normParams){const normalizeSelectionComposition=o=>normalizeLogicalComposition(o,(param=>{var _a;const pred={param,empty:normParams.emptySelections[param]??!0};return(_a=normParams.selectionPredicates)[param]??(_a[param]=[]),normParams.selectionPredicates[param].push(pred),pred}));return op.selection?normalizeSelectionComposition(op.selection):normalizeLogicalComposition(op.test||op.filter,(o=>o.selection?normalizeSelectionComposition(o.selection):o))}class TopLevelSelectionsNormalizer extends SpecMapper{map(spec,normParams){const selections=normParams.selections??[];if(spec.params&&!isUnitSpec(spec)){const params=[];for(const param of spec.params)isSelectionParameter(param)?selections.push(param):params.push(param);spec.params=params}return normParams.selections=selections,super.map(spec,normParams)}mapUnit(spec,normParams){const selections=normParams.selections;if(!selections||!selections.length)return spec;const path=(normParams.path??[]).concat(spec.name),params=[];for(const selection of selections)if(selection.views&&selection.views.length)for(const view of selection.views)(isString(view)&&(view===spec.name||path.includes(view))||isArray(view)&&view.map((v=>path.indexOf(v))).every(((v,i,arr)=>-1!==v&&(0===i||v>arr[i-1]))))&¶ms.push(selection);else params.push(selection);return params.length&&(spec.params=params),spec}}for(const method of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){const proto=TopLevelSelectionsNormalizer.prototype[method];TopLevelSelectionsNormalizer.prototype[method]=function(spec,params){return proto.call(this,spec,addSpecNameToParams(spec,params))}}function addSpecNameToParams(spec,params){return spec.name?{...params,path:(params.path??[]).concat(spec.name)}:params}function normalize(spec,config){void 0===config&&(config=initConfig(spec.config));const normalizedSpec=function normalizeGenericSpec(spec,config={}){const normParams={config};return topLevelSelectionNormalizer.map(coreNormalizer.map(selectionCompatNormalizer.map(spec,normParams),normParams),normParams)}(spec,config),{width,height}=spec,autosize=function normalizeAutoSize(spec,sizeInfo,config){let{width,height}=sizeInfo;const isFitCompatible=isUnitSpec(spec)||isLayerSpec(spec),autosizeDefault={};isFitCompatible?"container"==width&&"container"==height?(autosizeDefault.type="fit",autosizeDefault.contains="padding"):"container"==width?(autosizeDefault.type="fit-x",autosizeDefault.contains="padding"):"container"==height&&(autosizeDefault.type="fit-y",autosizeDefault.contains="padding"):("container"==width&&(warn(containerSizeNonSingle("width")),width=void 0),"container"==height&&(warn(containerSizeNonSingle("height")),height=void 0));const autosize={type:"pad",...autosizeDefault,...config?_normalizeAutoSize(config.autosize):{},..._normalizeAutoSize(spec.autosize)};"fit"!==autosize.type||isFitCompatible||(warn(FIT_NON_SINGLE),autosize.type="pad");"container"==width&&"fit"!=autosize.type&&"fit-x"!=autosize.type&&warn(containerSizeNotCompatibleWithAutosize("width"));"container"==height&&"fit"!=autosize.type&&"fit-y"!=autosize.type&&warn(containerSizeNotCompatibleWithAutosize("height"));if(deepEqual(autosize,{type:"pad"}))return;return autosize}(normalizedSpec,{width,height,autosize:spec.autosize},config);return{...normalizedSpec,...autosize?{autosize}:{}}}const coreNormalizer=new class CoreNormalizer extends SpecMapper{constructor(){super(...arguments),this.nonFacetUnitNormalizers=[boxPlotNormalizer,errorBarNormalizer,errorBandNormalizer,new PathOverlayNormalizer,new RuleForRangedLineNormalizer]}map(spec,params){if(isUnitSpec(spec)){const hasRow=channelHasField(spec.encoding,ROW),hasColumn=channelHasField(spec.encoding,COLUMN),hasFacet=channelHasField(spec.encoding,FACET);if(hasRow||hasColumn||hasFacet)return this.mapFacetedUnit(spec,params)}return super.map(spec,params)}mapUnit(spec,params){const{parentEncoding,parentProjection}=params,encoding=replaceRepeaterInEncoding(spec.encoding,params.repeater),specWithReplacedEncoding={...spec,...spec.name?{name:[params.repeaterPrefix,spec.name].filter((n=>n)).join("_")}:{},...encoding?{encoding}:{}};if(parentEncoding||parentProjection)return this.mapUnitWithParentEncodingOrProjection(specWithReplacedEncoding,params);const normalizeLayerOrUnit=this.mapLayerOrUnit.bind(this);for(const unitNormalizer of this.nonFacetUnitNormalizers)if(unitNormalizer.hasMatchingType(specWithReplacedEncoding,params.config))return unitNormalizer.run(specWithReplacedEncoding,params,normalizeLayerOrUnit);return specWithReplacedEncoding}mapRepeat(spec,params){return function isLayerRepeatSpec(spec){return!isArray(spec.repeat)&&spec.repeat.layer}(spec)?this.mapLayerRepeat(spec,params):this.mapNonLayerRepeat(spec,params)}mapLayerRepeat(spec,params){const{repeat,spec:childSpec,...rest}=spec,{row,column,layer}=repeat,{repeater={},repeaterPrefix=""}=params;return row||column?this.mapRepeat({...spec,repeat:{...row?{row}:{},...column?{column}:{}},spec:{repeat:{layer},spec:childSpec}},params):{...rest,layer:layer.map((layerValue=>{const childRepeater={...repeater,layer:layerValue},childName=`${(childSpec.name?`${childSpec.name}_`:"")+repeaterPrefix}child__layer_${varName(layerValue)}`,child=this.mapLayerOrUnit(childSpec,{...params,repeater:childRepeater,repeaterPrefix:childName});return child.name=childName,child}))}}mapNonLayerRepeat(spec,params){const{repeat,spec:childSpec,data,...remainingProperties}=spec;!isArray(repeat)&&spec.columns&&(spec=omit(spec,["columns"]),warn(columnsNotSupportByRowCol("repeat")));const concat=[],{repeater={},repeaterPrefix=""}=params,row=!isArray(repeat)&&repeat.row||[repeater?repeater.row:null],column=!isArray(repeat)&&repeat.column||[repeater?repeater.column:null],repeatValues=isArray(repeat)&&repeat||[repeater?repeater.repeat:null];for(const repeatValue of repeatValues)for(const rowValue of row)for(const columnValue of column){const childRepeater={repeat:repeatValue,row:rowValue,column:columnValue,layer:repeater.layer},childName=(childSpec.name?`${childSpec.name}_`:"")+repeaterPrefix+"child__"+(isArray(repeat)?`${varName(repeatValue)}`:(repeat.row?`row_${varName(rowValue)}`:"")+(repeat.column?`column_${varName(columnValue)}`:"")),child=this.map(childSpec,{...params,repeater:childRepeater,repeaterPrefix:childName});child.name=childName,concat.push(omit(child,["data"]))}const columns=isArray(repeat)?spec.columns:repeat.column?repeat.column.length:1;return{data:childSpec.data??data,align:"all",...remainingProperties,columns,concat}}mapFacet(spec,params){const{facet}=spec;return isFacetMapping(facet)&&spec.columns&&(spec=omit(spec,["columns"]),warn(columnsNotSupportByRowCol("facet"))),super.mapFacet(spec,params)}mapUnitWithParentEncodingOrProjection(spec,params){const{encoding,projection}=spec,{parentEncoding,parentProjection,config}=params,mergedProjection=mergeProjection({parentProjection,projection}),mergedEncoding=mergeEncoding({parentEncoding,encoding:replaceRepeaterInEncoding(encoding,params.repeater)});return this.mapUnit({...spec,...mergedProjection?{projection:mergedProjection}:{},...mergedEncoding?{encoding:mergedEncoding}:{}},{config})}mapFacetedUnit(spec,normParams){const{row,column,facet,...encoding}=spec.encoding,{mark,width,projection,height,view,params,encoding:_,...outerSpec}=spec,{facetMapping,layout}=this.getFacetMappingAndLayout({row,column,facet},normParams),newEncoding=replaceRepeaterInEncoding(encoding,normParams.repeater);return this.mapFacet({...outerSpec,...layout,facet:facetMapping,spec:{...width?{width}:{},...height?{height}:{},...view?{view}:{},...projection?{projection}:{},mark,encoding:newEncoding,...params?{params}:{}}},normParams)}getFacetMappingAndLayout(facets,params){const{row,column,facet}=facets;if(row||column){facet&&warn(function facetChannelDropped(channels){return`Facet encoding dropped as ${channels.join(" and ")} ${channels.length>1?"are":"is"} also specified.`}([...row?[ROW]:[],...column?[COLUMN]:[]]));const facetMapping={},layout={};for(const channel of[ROW,COLUMN]){const def=facets[channel];if(def){const{align,center,spacing,columns,...defWithoutLayout}=def;facetMapping[channel]=defWithoutLayout;for(const prop of["align","center","spacing"])void 0!==def[prop]&&(layout[prop]??(layout[prop]={}),layout[prop][channel]=def[prop])}}return{facetMapping,layout}}{const{align,center,spacing,columns,...facetMapping}=facet;return{facetMapping:replaceRepeaterInFacet(facetMapping,params.repeater),layout:{...align?{align}:{},...center?{center}:{},...spacing?{spacing}:{},...columns?{columns}:{}}}}}mapLayer(spec,{parentEncoding,parentProjection,...otherParams}){const{encoding,projection,...rest}=spec,params={...otherParams,parentEncoding:mergeEncoding({parentEncoding,encoding,layer:!0}),parentProjection:mergeProjection({parentProjection,projection})};return super.mapLayer({...rest,...spec.name?{name:[params.repeaterPrefix,spec.name].filter((n=>n)).join("_")}:{}},params)}},selectionCompatNormalizer=new class SelectionCompatibilityNormalizer extends SpecMapper{map(spec,normParams){return normParams.emptySelections??(normParams.emptySelections={}),normParams.selectionPredicates??(normParams.selectionPredicates={}),spec=normalizeTransforms(spec,normParams),super.map(spec,normParams)}mapLayerOrUnit(spec,normParams){if((spec=normalizeTransforms(spec,normParams)).encoding){const encoding={};for(const[channel,enc]of entries$1(spec.encoding))encoding[channel]=normalizeChannelDef(enc,normParams);spec={...spec,encoding}}return super.mapLayerOrUnit(spec,normParams)}mapUnit(spec,normParams){const{selection,...rest}=spec;return selection?{...rest,params:entries$1(selection).map((([name,selDef])=>{const{init:value,bind,empty,...select}=selDef;"single"===select.type?(select.type="point",select.toggle=!1):"multi"===select.type&&(select.type="point"),normParams.emptySelections[name]="none"!==empty;for(const pred of vals(normParams.selectionPredicates[name]??{}))pred.empty="none"!==empty;return{name,value,select,bind}}))}:spec}},topLevelSelectionNormalizer=new TopLevelSelectionsNormalizer;function _normalizeAutoSize(autosize){return isString(autosize)?{type:autosize}:autosize??{}}const TOP_LEVEL_PROPERTIES=["background","padding"];function extractTopLevelProperties(t,includeParams){const o={};for(const p of TOP_LEVEL_PROPERTIES)t&&void 0!==t[p]&&(o[p]=signalRefOrValue(t[p]));return includeParams&&(o.params=t.params),o}class Split{constructor(explicit={},implicit={}){this.explicit=explicit,this.implicit=implicit}clone(){return new Split(duplicate(this.explicit),duplicate(this.implicit))}combine(){return{...this.explicit,...this.implicit}}get(key){return getFirstDefined(this.explicit[key],this.implicit[key])}getWithExplicit(key){return void 0!==this.explicit[key]?{explicit:!0,value:this.explicit[key]}:void 0!==this.implicit[key]?{explicit:!1,value:this.implicit[key]}:{explicit:!1,value:void 0}}setWithExplicit(key,{value,explicit}){void 0!==value&&this.set(key,value,explicit)}set(key,value,explicit){return delete this[explicit?"implicit":"explicit"][key],this[explicit?"explicit":"implicit"][key]=value,this}copyKeyFromSplit(key,{explicit,implicit}){void 0!==explicit[key]?this.set(key,explicit[key],!0):void 0!==implicit[key]&&this.set(key,implicit[key],!1)}copyKeyFromObject(key,s){void 0!==s[key]&&this.set(key,s[key],!0)}copyAll(other){for(const key of keys(other.combine())){const val=other.getWithExplicit(key);this.setWithExplicit(key,val)}}}function makeExplicit(value){return{explicit:!0,value}}function makeImplicit(value){return{explicit:!1,value}}function tieBreakByComparing(compare){return(v1,v2,property,propertyOf)=>{const diff=compare(v1.value,v2.value);return diff>0?v1:diff<0?v2:defaultTieBreaker(v1,v2,property,propertyOf)}}function defaultTieBreaker(v1,v2,property,propertyOf){return v1.explicit&&v2.explicit&&warn(function mergeConflictingProperty(property,propertyOf,v1,v2){return`Conflicting ${propertyOf.toString()} property "${property.toString()}" (${stringify$1(v1)} and ${stringify$1(v2)}). Using ${stringify$1(v1)}.`}(property,propertyOf,v1.value,v2.value)),v1}function mergeValuesWithExplicit(v1,v2,property,propertyOf,tieBreaker=defaultTieBreaker){return void 0===v1||void 0===v1.value?v2:v1.explicit&&!v2.explicit?v1:v2.explicit&&!v1.explicit?v2:deepEqual(v1.value,v2.value)?v1:tieBreaker(v1,v2,property,propertyOf)}class AncestorParse extends Split{constructor(explicit={},implicit={},parseNothing=!1){super(explicit,implicit),this.explicit=explicit,this.implicit=implicit,this.parseNothing=parseNothing}clone(){const clone=super.clone();return clone.parseNothing=this.parseNothing,clone}}function isUrlData(data){return"url"in data}function isInlineData(data){return"values"in data}function isNamedData(data){return"name"in data&&!isUrlData(data)&&!isInlineData(data)&&!isGenerator(data)}function isGenerator(data){return data&&(isSequenceGenerator(data)||isSphereGenerator(data)||isGraticuleGenerator(data))}function isSequenceGenerator(data){return"sequence"in data}function isSphereGenerator(data){return"sphere"in data}function isGraticuleGenerator(data){return"graticule"in data}var DataSourceType;function assembleProjection(proj){const{signals,hasLegend,index,...rest}=proj;return rest.field=replacePathInField(rest.field),rest}function assembleInit(init,isExpr=!0,wrap=identity$6){if(isArray(init)){const assembled=init.map((v=>assembleInit(v,isExpr,wrap)));return isExpr?`[${assembled.join(", ")}]`:assembled}return isDateTime(init)?wrap(isExpr?dateTimeToExpr(init):function dateTimeToTimestamp(d){const parts=dateTimeParts(d,!0);return d.utc?+new Date(Date.UTC(...parts)):+new Date(...parts)}(init)):isExpr?wrap(stringify$1(init)):init}function assembleUnitSelectionSignals(model,signals){for(const selCmpt of vals(model.component.selection??{})){const name=selCmpt.name;let modifyExpr=`${name}${TUPLE}, ${"global"===selCmpt.resolve?"true":`{unit: ${unitName(model)}}`}`;for(const c of selectionCompilers)c.defined(selCmpt)&&(c.signals&&(signals=c.signals(model,selCmpt,signals)),c.modifyExpr&&(modifyExpr=c.modifyExpr(model,selCmpt,modifyExpr)));signals.push({name:name+MODIFY,on:[{events:{signal:selCmpt.name+TUPLE},update:`modify(${$(selCmpt.name+STORE)}, ${modifyExpr})`}]})}return cleanupEmptyOnArray(signals)}function assembleFacetSignals(model,signals){if(model.component.selection&&keys(model.component.selection).length){const name=$(model.getName("cell"));signals.unshift({name:"facet",value:{},on:[{events:eventSelector("mousemove","scope"),update:`isTuple(facet) ? facet : group(${name}).datum`}]})}return cleanupEmptyOnArray(signals)}function assembleUnitSelectionMarks(model,marks){for(const selCmpt of vals(model.component.selection??{}))for(const c of selectionCompilers)c.defined(selCmpt)&&c.marks&&(marks=c.marks(model,selCmpt,marks));return marks}function cleanupEmptyOnArray(signals){return signals.map((s=>(s.on&&!s.on.length&&delete s.on,s)))}!function(DataSourceType){DataSourceType[DataSourceType.Raw=0]="Raw",DataSourceType[DataSourceType.Main=1]="Main",DataSourceType[DataSourceType.Row=2]="Row",DataSourceType[DataSourceType.Column=3]="Column",DataSourceType[DataSourceType.Lookup=4]="Lookup"}(DataSourceType||(DataSourceType={}));class DataFlowNode{constructor(parent,debugName){this.debugName=debugName,this._children=[],this._parent=null,parent&&(this.parent=parent)}clone(){throw new Error("Cannot clone node")}get parent(){return this._parent}set parent(parent){this._parent=parent,parent&&parent.addChild(this)}get children(){return this._children}numChildren(){return this._children.length}addChild(child,loc){this._children.includes(child)?warn("Attempt to add the same child twice."):void 0!==loc?this._children.splice(loc,0,child):this._children.push(child)}removeChild(oldChild){const loc=this._children.indexOf(oldChild);return this._children.splice(loc,1),loc}remove(){let loc=this._parent.removeChild(this);for(const child of this._children)child._parent=this._parent,this._parent.addChild(child,loc++)}insertAsParentOf(other){const parent=other.parent;parent.removeChild(this),this.parent=parent,other.parent=this}swapWithParent(){const parent=this._parent,newParent=parent.parent;for(const child of this._children)child.parent=parent;this._children=[],parent.removeChild(this);const loc=parent.parent.removeChild(parent);this._parent=newParent,newParent.addChild(this,loc),parent.parent=this}}class OutputNode extends DataFlowNode{clone(){const cloneObj=new this.constructor;return cloneObj.debugName=`clone_${this.debugName}`,cloneObj._source=this._source,cloneObj._name=`clone_${this._name}`,cloneObj.type=this.type,cloneObj.refCounts=this.refCounts,cloneObj.refCounts[cloneObj._name]=0,cloneObj}constructor(parent,source,type,refCounts){super(parent,source),this.type=type,this.refCounts=refCounts,this._source=this._name=source,this.refCounts&&!(this._name in this.refCounts)&&(this.refCounts[this._name]=0)}dependentFields(){return new Set}producedFields(){return new Set}hash(){return void 0===this._hash&&(this._hash=`Output ${uniqueId()}`),this._hash}getSource(){return this.refCounts[this._name]++,this._source}isRequired(){return!!this.refCounts[this._name]}setSource(source){this._source=source}}function isTimeUnitTransformComponent(timeUnitComponent){return void 0!==timeUnitComponent.as}function offsetAs(field){return`${field}_end`}class TimeUnitNode extends DataFlowNode{clone(){return new TimeUnitNode(null,duplicate(this.formula))}constructor(parent,formula){super(parent),this.formula=formula}static makeFromEncoding(parent,model){const formula=model.reduceFieldDef(((timeUnitComponent,fieldDef)=>{const{field,timeUnit}=fieldDef;if(timeUnit){let component;if(isBinnedTimeUnit(timeUnit)){if(isUnitModel(model)){const{mark}=model;(isRectBasedMark(mark)||fieldDef.bandPosition)&&(component={timeUnit:normalizeTimeUnit(timeUnit),field})}}else component={as:vgField(fieldDef,{forAs:!0}),field,timeUnit};component&&(timeUnitComponent[hash(component)]=component)}return timeUnitComponent}),{});return isEmpty(formula)?null:new TimeUnitNode(parent,formula)}static makeFromTransform(parent,t){const{timeUnit,...other}={...t},component={...other,timeUnit:normalizeTimeUnit(timeUnit)};return new TimeUnitNode(parent,{[hash(component)]:component})}merge(other){this.formula={...this.formula};for(const key in other.formula)this.formula[key]||(this.formula[key]=other.formula[key]);for(const child of other.children)other.removeChild(child),child.parent=this;other.remove()}removeFormulas(fields){const newFormula={};for(const[key,timeUnitComponent]of entries$1(this.formula)){const fieldAs=isTimeUnitTransformComponent(timeUnitComponent)?timeUnitComponent.as:`${timeUnitComponent.field}_end`;fields.has(fieldAs)||(newFormula[key]=timeUnitComponent)}this.formula=newFormula}producedFields(){return new Set(vals(this.formula).map((f=>isTimeUnitTransformComponent(f)?f.as:offsetAs(f.field))))}dependentFields(){return new Set(vals(this.formula).map((f=>f.field)))}hash(){return`TimeUnit ${hash(this.formula)}`}assemble(){const transforms=[];for(const f of vals(this.formula))if(isTimeUnitTransformComponent(f)){const{field,as,timeUnit}=f,{unit,utc,...params}=normalizeTimeUnit(timeUnit);transforms.push({field:replacePathInField(field),type:"timeunit",...unit?{units:getTimeUnitParts(unit)}:{},...utc?{timezone:"utc"}:{},...params,as:[as,`${as}_end`]})}else if(f){const{field,timeUnit}=f,smallestUnit=getSmallestTimeUnitPart(timeUnit?.unit),{part,step}=getDateTimePartAndStep(smallestUnit,timeUnit.step);transforms.push({type:"formula",expr:`timeOffset('${part}', datum['${field}'], ${step})`,as:offsetAs(field)})}return transforms}}class SelectionProjectionComponent{constructor(...items){this.items=items,this.hasChannel={},this.hasField={},this.hasSelectionId=!1}}const project={defined:()=>!0,parse:(model,selCmpt,selDef)=>{const name=selCmpt.name,proj=selCmpt.project??(selCmpt.project=new SelectionProjectionComponent),parsed={},timeUnits={},signals=new Set,signalName=(p,range)=>{const suffix="visual"===range?p.channel:p.field;let sg=varName(`${name}_${suffix}`);for(let counter=1;signals.has(sg);counter++)sg=varName(`${name}_${suffix}_${counter}`);return signals.add(sg),{[range]:sg}},type=selCmpt.type,cfg=model.config.selection[type],init=void 0!==selDef.value?array$5(selDef.value):null;let{fields,encodings}=isObject(selDef.select)?selDef.select:{};if(!fields&&!encodings&&init)for(const initVal of init)if(isObject(initVal))for(const key of keys(initVal))SINGLE_DEF_UNIT_CHANNEL_INDEX[key]?(encodings||(encodings=[])).push(key):"interval"===type?(warn('Interval selections should be initialized using "x", "y", "longitude", or "latitude" keys.'),encodings=cfg.encodings):(fields??(fields=[])).push(key);fields||encodings||(encodings=cfg.encodings,"fields"in cfg&&(fields=cfg.fields));for(const channel of encodings??[]){const fieldDef=model.fieldDef(channel);if(fieldDef){let field=fieldDef.field;if(fieldDef.aggregate){warn(cannotProjectAggregate(channel,fieldDef.aggregate));continue}if(!field){warn(cannotProjectOnChannelWithoutField(channel));continue}if(fieldDef.timeUnit&&!isBinnedTimeUnit(fieldDef.timeUnit)){field=model.vgField(channel);const component={timeUnit:fieldDef.timeUnit,as:field,field:fieldDef.field};timeUnits[hash(component)]=component}if(!parsed[field]){const p={field,channel,type:"interval"===type&&isScaleChannel(channel)&&hasContinuousDomain(model.getScaleComponent(channel).get("type"))?"R":fieldDef.bin?"R-RE":"E",index:proj.items.length};p.signals={...signalName(p,"data"),...signalName(p,"visual")},proj.items.push(parsed[field]=p),proj.hasField[field]=parsed[field],proj.hasSelectionId=proj.hasSelectionId||"_vgsid_"===field,isGeoPositionChannel(channel)?(p.geoChannel=channel,p.channel=getPositionChannelFromLatLong(channel),proj.hasChannel[p.channel]=parsed[field]):proj.hasChannel[channel]=parsed[field]}}else warn(cannotProjectOnChannelWithoutField(channel))}for(const field of fields??[]){if(proj.hasField[field])continue;const p={type:"E",field,index:proj.items.length};p.signals={...signalName(p,"data")},proj.items.push(p),proj.hasField[field]=p,proj.hasSelectionId=proj.hasSelectionId||"_vgsid_"===field}init&&(selCmpt.init=init.map((v=>proj.items.map((p=>isObject(v)?void 0!==v[p.geoChannel||p.channel]?v[p.geoChannel||p.channel]:v[p.field]:v))))),isEmpty(timeUnits)||(proj.timeUnit=new TimeUnitNode(null,timeUnits))},signals:(model,selCmpt,allSignals)=>{const name=selCmpt.name+"_tuple_fields";return allSignals.filter((s=>s.name===name)).length>0||selCmpt.project.hasSelectionId?allSignals:allSignals.concat({name,value:selCmpt.project.items.map(assembleProjection)})}},scaleBindings={defined:selCmpt=>"interval"===selCmpt.type&&"global"===selCmpt.resolve&&selCmpt.bind&&"scales"===selCmpt.bind,parse:(model,selCmpt)=>{const bound=selCmpt.scales=[];for(const proj of selCmpt.project.items){const channel=proj.channel;if(!isScaleChannel(channel))continue;const scale=model.getScaleComponent(channel),scaleType=scale?scale.get("type"):void 0;scale&&hasContinuousDomain(scaleType)?(scale.set("selectionExtent",{param:selCmpt.name,field:proj.field},!0),bound.push(proj)):warn("Scale bindings are currently only supported for scales with unbinned, continuous domains.")}},topLevelSignals:(model,selCmpt,signals)=>{const bound=selCmpt.scales.filter((proj=>0===signals.filter((s=>s.name===proj.signals.data)).length));if(!model.parent||isTopLevelLayer(model)||0===bound.length)return signals;const namedSg=signals.filter((s=>s.name===selCmpt.name))[0];let update=namedSg.update;if(update.indexOf(VL_SELECTION_RESOLVE)>=0)namedSg.update=`{${bound.map((proj=>`${$(replacePathInField(proj.field))}: ${proj.signals.data}`)).join(", ")}}`;else{for(const proj of bound){const mapping=`${$(replacePathInField(proj.field))}: ${proj.signals.data}`;update.includes(mapping)||(update=`${update.substring(0,update.length-1)}, ${mapping}}`)}namedSg.update=update}return signals.concat(bound.map((proj=>({name:proj.signals.data}))))},signals:(model,selCmpt,signals)=>{if(model.parent&&!isTopLevelLayer(model))for(const proj of selCmpt.scales){const signal=signals.filter((s=>s.name===proj.signals.data))[0];signal.push="outer",delete signal.value,delete signal.update}return signals}};function domain(model,channel){return`domain(${$(model.scaleName(channel))})`}function isTopLevelLayer(model){return model.parent&&isLayerModel(model.parent)&&(!model.parent.parent??isTopLevelLayer(model.parent.parent))}const BRUSH="_brush",SCALE_TRIGGER="_scale_trigger",GEO_INIT_TICK="geo_interval_init_tick",INIT="_init",interval={defined:selCmpt=>"interval"===selCmpt.type,parse:(model,selCmpt,selDef)=>{var _a;if(model.hasProjection){const def={...isObject(selDef.select)?selDef.select:{}};def.fields=["_vgsid_"],def.encodings||(def.encodings=selDef.value?keys(selDef.value):[LONGITUDE,LATITUDE]),selDef.select={type:"interval",...def}}if(selCmpt.translate&&!scaleBindings.defined(selCmpt)){const filterExpr=`!event.item || event.item.mark.name !== ${$(selCmpt.name+BRUSH)}`;for(const evt of selCmpt.events){if(!evt.between){warn(`${evt} is not an ordered event stream for interval selections.`);continue}const filters=array$5((_a=evt.between[0]).filter??(_a.filter=[]));filters.indexOf(filterExpr)<0&&filters.push(filterExpr)}}},signals:(model,selCmpt,signals)=>{const name=selCmpt.name,tupleSg=name+TUPLE,channels=vals(selCmpt.project.hasChannel).filter((p=>p.channel===X||p.channel===Y)),init=selCmpt.init?selCmpt.init[0]:null;if(signals.push(...channels.reduce(((arr,proj)=>arr.concat(function channelSignals(model,selCmpt,proj,init){const scaledInterval=!model.hasProjection,channel=proj.channel,vname=proj.signals.visual,scaleName=$(scaledInterval?model.scaleName(channel):model.projectionName()),scaled=str=>`scale(${scaleName}, ${str})`,size=model.getSizeSignalRef(channel===X?"width":"height").signal,coord=`${channel}(unit)`,von=selCmpt.events.reduce(((def,evt)=>[...def,{events:evt.between[0],update:`[${coord}, ${coord}]`},{events:evt,update:`[${vname}[0], clamp(${coord}, 0, ${size})]`}]),[]);if(scaledInterval){const dname=proj.signals.data,hasScales=scaleBindings.defined(selCmpt),scale=model.getScaleComponent(channel),scaleType=scale?scale.get("type"):void 0,vinit=init?{init:assembleInit(init,!0,scaled)}:{value:[]};return von.push({events:{signal:selCmpt.name+SCALE_TRIGGER},update:hasContinuousDomain(scaleType)?`[${scaled(`${dname}[0]`)}, ${scaled(`${dname}[1]`)}]`:"[0, 0]"}),hasScales?[{name:dname,on:[]}]:[{name:vname,...vinit,on:von},{name:dname,...init?{init:assembleInit(init)}:{},on:[{events:{signal:vname},update:`${vname}[0] === ${vname}[1] ? null : invert(${scaleName}, ${vname})`}]}]}{const initIdx=channel===X?0:1,initSg=selCmpt.name+INIT;return[{name:vname,...init?{init:`[${initSg}[0][${initIdx}], ${initSg}[1][${initIdx}]]`}:{value:[]},on:von}]}}(model,selCmpt,proj,init&&init[proj.index]))),[])),model.hasProjection){const projection=$(model.projectionName()),centerSg=model.projectionName()+"_center",{x,y}=selCmpt.project.hasChannel,xvname=x&&x.signals.visual,yvname=y&&y.signals.visual,xinit=x?init&&init[x.index]:`${centerSg}[0]`,yinit=y?init&&init[y.index]:`${centerSg}[1]`,sizeSg=layout=>model.getSizeSignalRef(layout).signal,bbox=`[[${xvname?xvname+"[0]":"0"}, ${yvname?yvname+"[0]":"0"}],[${xvname?xvname+"[1]":sizeSg("width")}, ${yvname?yvname+"[1]":sizeSg("height")}]]`;if(init&&(signals.unshift({name:name+INIT,init:`[scale(${projection}, [${x?xinit[0]:xinit}, ${y?yinit[0]:yinit}]), scale(${projection}, [${x?xinit[1]:xinit}, ${y?yinit[1]:yinit}])]`}),!x||!y)){signals.find((s=>s.name===centerSg))||signals.unshift({name:centerSg,update:`invert(${projection}, [${sizeSg("width")}/2, ${sizeSg("height")}/2])`})}const update=`vlSelectionTuples(${`intersect(${bbox}, {markname: ${$(model.getName("marks"))}}, unit.mark)`}, ${`{unit: ${unitName(model)}}`})`,visualSignals=channels.map((proj=>proj.signals.visual));return signals.concat({name:tupleSg,on:[{events:[...visualSignals.length?[{signal:visualSignals.join(" || ")}]:[],...init?[{signal:GEO_INIT_TICK}]:[]],update}]})}{if(!scaleBindings.defined(selCmpt)){const triggerSg=name+SCALE_TRIGGER,scaleTriggers=channels.map((proj=>{const channel=proj.channel,{data:dname,visual:vname}=proj.signals,scaleName=$(model.scaleName(channel)),toNum=hasContinuousDomain(model.getScaleComponent(channel).get("type"))?"+":"";return`(!isArray(${dname}) || (${toNum}invert(${scaleName}, ${vname})[0] === ${toNum}${dname}[0] && ${toNum}invert(${scaleName}, ${vname})[1] === ${toNum}${dname}[1]))`}));scaleTriggers.length&&signals.push({name:triggerSg,value:{},on:[{events:channels.map((proj=>({scale:model.scaleName(proj.channel)}))),update:scaleTriggers.join(" && ")+` ? ${triggerSg} : {}`}]})}const dataSignals=channels.map((proj=>proj.signals.data)),update=`unit: ${unitName(model)}, fields: ${name+"_tuple_fields"}, values`;return signals.concat({name:tupleSg,...init?{init:`{${update}: ${assembleInit(init)}}`}:{},...dataSignals.length?{on:[{events:[{signal:dataSignals.join(" || ")}],update:`${dataSignals.join(" && ")} ? {${update}: [${dataSignals}]} : null`}]}:{}})}},topLevelSignals:(model,selCmpt,signals)=>{if(isUnitModel(model)&&model.hasProjection&&selCmpt.init){signals.filter((s=>s.name===GEO_INIT_TICK)).length||signals.unshift({name:GEO_INIT_TICK,value:null,on:[{events:"timer{1}",update:`${GEO_INIT_TICK} === null ? {} : ${GEO_INIT_TICK}`}]})}return signals},marks:(model,selCmpt,marks)=>{const name=selCmpt.name,{x,y}=selCmpt.project.hasChannel,xvname=x?.signals.visual,yvname=y?.signals.visual,store=`data(${$(selCmpt.name+STORE)})`;if(scaleBindings.defined(selCmpt)||!x&&!y)return marks;const update={x:void 0!==x?{signal:`${xvname}[0]`}:{value:0},y:void 0!==y?{signal:`${yvname}[0]`}:{value:0},x2:void 0!==x?{signal:`${xvname}[1]`}:{field:{group:"width"}},y2:void 0!==y?{signal:`${yvname}[1]`}:{field:{group:"height"}}};if("global"===selCmpt.resolve)for(const key of keys(update))update[key]=[{test:`${store}.length && ${store}[0].unit === ${unitName(model)}`,...update[key]},{value:0}];const{fill,fillOpacity,cursor,...stroke}=selCmpt.mark,vgStroke=keys(stroke).reduce(((def,k)=>(def[k]=[{test:[void 0!==x&&`${xvname}[0] !== ${xvname}[1]`,void 0!==y&&`${yvname}[0] !== ${yvname}[1]`].filter((t=>t)).join(" && "),value:stroke[k]},{value:null}],def)),{});return[{name:`${name+BRUSH}_bg`,type:"rect",clip:!0,encode:{enter:{fill:{value:fill},fillOpacity:{value:fillOpacity}},update}},...marks,{name:name+BRUSH,type:"rect",clip:!0,encode:{enter:{...cursor?{cursor:{value:cursor}}:{},fill:{value:"transparent"}},update:{...update,...vgStroke}}}]}};const point$1={defined:selCmpt=>"point"===selCmpt.type,signals:(model,selCmpt,signals)=>{const name=selCmpt.name,fieldsSg=name+"_tuple_fields",project=selCmpt.project,datum="(item().isVoronoi ? datum.datum : datum)",brushes=vals(model.component.selection??{}).reduce(((acc,cmpt)=>"interval"===cmpt.type?acc.concat(cmpt.name+BRUSH):acc),[]).map((b=>`indexof(item().mark.name, '${b}') < 0`)).join(" && "),test="datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0"+(brushes?` && ${brushes}`:"");let update=`unit: ${unitName(model)}, `;if(selCmpt.project.hasSelectionId)update+=`_vgsid_: ${datum}[${$("_vgsid_")}]`;else{update+=`fields: ${fieldsSg}, values: [${project.items.map((p=>{const fieldDef=model.fieldDef(p.channel);return fieldDef?.bin?`[${datum}[${$(model.vgField(p.channel,{}))}], ${datum}[${$(model.vgField(p.channel,{binSuffix:"end"}))}]]`:`${datum}[${$(p.field)}]`})).join(", ")}]`}const events=selCmpt.events;return signals.concat([{name:name+TUPLE,on:events?[{events,update:`${test} ? {${update}} : null`,force:!0}]:[]}])}};function wrapCondition(model,channelDef,vgChannel,refFn){const condition=isConditionalDef(channelDef)&&channelDef.condition,valueRef=refFn(channelDef);if(condition){const vgConditions=array$5(condition).map((c=>{const conditionValueRef=refFn(c);if(function isConditionalParameter(c){return c.param}(c)){const{param,empty}=c;return{test:parseSelectionPredicate(model,{param,empty}),...conditionValueRef}}return{test:expression(model,c.test),...conditionValueRef}}));return{[vgChannel]:[...vgConditions,...void 0!==valueRef?[valueRef]:[]]}}return void 0!==valueRef?{[vgChannel]:valueRef}:{}}function text$1(model,channel="text"){const channelDef=model.encoding[channel];return wrapCondition(model,channelDef,channel,(cDef=>textRef(cDef,model.config)))}function textRef(channelDef,config,expr="datum"){if(channelDef){if(isValueDef(channelDef))return signalOrValueRef(channelDef.value);if(isFieldOrDatumDef(channelDef)){const{format,formatType}=getFormatMixins(channelDef);return formatSignalRef({fieldOrDatumDef:channelDef,format,formatType,expr,config})}}}function tooltip(model,opt={}){const{encoding,markDef,config,stack}=model,channelDef=encoding.tooltip;if(isArray(channelDef))return{tooltip:tooltipRefForEncoding({tooltip:channelDef},stack,config,opt)};{const datum=opt.reactiveGeom?"datum.datum":"datum";return wrapCondition(model,channelDef,"tooltip",(cDef=>{const tooltipRefFromChannelDef=textRef(cDef,config,datum);if(tooltipRefFromChannelDef)return tooltipRefFromChannelDef;if(null===cDef)return;let markTooltip=getMarkPropOrConfig("tooltip",markDef,config);return!0===markTooltip&&(markTooltip={content:"encoding"}),isString(markTooltip)?{value:markTooltip}:isObject(markTooltip)?isSignalRef(markTooltip)?markTooltip:"encoding"===markTooltip.content?tooltipRefForEncoding(encoding,stack,config,opt):{signal:datum}:void 0}))}}function tooltipData(encoding,stack,config,{reactiveGeom}={}){const formatConfig={...config,...config.tooltipFormat},toSkip={},expr=reactiveGeom?"datum.datum":"datum",tuples=[];function add(fDef,channel){const mainChannel=getMainRangeChannel(channel),fieldDef=isTypedFieldDef(fDef)?fDef:{...fDef,type:encoding[mainChannel].type},key=array$5(fieldDef.title||defaultTitle(fieldDef,formatConfig)).join(", ").replaceAll(/"/g,'\\"');let value;if(isXorY(channel)){const channel2="x"===channel?"x2":"y2",fieldDef2=getFieldDef(encoding[channel2]);if(isBinned(fieldDef.bin)&&fieldDef2){const startField=vgField(fieldDef,{expr}),endField=vgField(fieldDef2,{expr}),{format,formatType}=getFormatMixins(fieldDef);value=binFormatExpression(startField,endField,format,formatType,formatConfig),toSkip[channel2]=!0}}if((isXorY(channel)||channel===THETA||channel===RADIUS)&&stack&&stack.fieldChannel===channel&&"normalize"===stack.offset){const{format,formatType}=getFormatMixins(fieldDef);value=formatSignalRef({fieldOrDatumDef:fieldDef,format,formatType,expr,config:formatConfig,normalizeStack:!0}).signal}value??(value=textRef(fieldDef,formatConfig,expr).signal),tuples.push({channel,key,value})}forEach(encoding,((channelDef,channel)=>{isFieldDef(channelDef)?add(channelDef,channel):hasConditionalFieldDef(channelDef)&&add(channelDef.condition,channel)}));const out={};for(const{channel,key,value}of tuples)toSkip[channel]||out[key]||(out[key]=value);return out}function tooltipRefForEncoding(encoding,stack,config,{reactiveGeom}={}){const data=tooltipData(encoding,stack,config,{reactiveGeom}),keyValues=entries$1(data).map((([key,value])=>`"${key}": ${value}`));return keyValues.length>0?{signal:`{${keyValues.join(", ")}}`}:void 0}function aria(model){const{markDef,config}=model,enableAria=getMarkPropOrConfig("aria",markDef,config);return!1===enableAria?{}:{...enableAria?{aria:enableAria}:{},...ariaRoleDescription(model),...description$1(model)}}function ariaRoleDescription(model){const{mark,markDef,config}=model;if(!1===config.aria)return{};const ariaRoleDesc=getMarkPropOrConfig("ariaRoleDescription",markDef,config);return null!=ariaRoleDesc?{ariaRoleDescription:{value:ariaRoleDesc}}:mark in VG_MARK_INDEX?{}:{ariaRoleDescription:{value:mark}}}function description$1(model){const{encoding,markDef,config,stack}=model,channelDef=encoding.description;if(channelDef)return wrapCondition(model,channelDef,"description",(cDef=>textRef(cDef,model.config)));const descriptionValue=getMarkPropOrConfig("description",markDef,config);if(null!=descriptionValue)return{description:signalOrValueRef(descriptionValue)};if(!1===config.aria)return{};const data=tooltipData(encoding,stack,config);return isEmpty(data)?void 0:{description:{signal:entries$1(data).map((([key,value],index)=>`"${index>0?"; ":""}${key}: " + (${value})`)).join(" + ")}}}function nonPosition(channel,model,opt={}){const{markDef,encoding,config}=model,{vgChannel}=opt;let{defaultRef,defaultValue}=opt;void 0===defaultRef&&(defaultValue??(defaultValue=getMarkPropOrConfig(channel,markDef,config,{vgChannel,ignoreVgConfig:!0})),void 0!==defaultValue&&(defaultRef=signalOrValueRef(defaultValue)));const channelDef=encoding[channel];return wrapCondition(model,channelDef,vgChannel??channel,(cDef=>midPoint({channel,channelDef:cDef,markDef,config,scaleName:model.scaleName(channel),scale:model.getScaleComponent(channel),stack:null,defaultRef})))}function color(model,opt={filled:void 0}){const{markDef,encoding,config}=model,{type:markType}=markDef,filled=opt.filled??getMarkPropOrConfig("filled",markDef,config),transparentIfNeeded=contains(["bar","point","circle","square","geoshape"],markType)?"transparent":void 0,defaultFill=getMarkPropOrConfig(!0===filled?"color":void 0,markDef,config,{vgChannel:"fill"})??config.mark[!0===filled&&"color"]??transparentIfNeeded,defaultStroke=getMarkPropOrConfig(!1===filled?"color":void 0,markDef,config,{vgChannel:"stroke"})??config.mark[!1===filled&&"color"],colorVgChannel=filled?"fill":"stroke",fillStrokeMarkDefAndConfig={...defaultFill?{fill:signalOrValueRef(defaultFill)}:{},...defaultStroke?{stroke:signalOrValueRef(defaultStroke)}:{}};return markDef.color&&(filled?markDef.fill:markDef.stroke)&&warn(droppingColor("property",{fill:"fill"in markDef,stroke:"stroke"in markDef})),{...fillStrokeMarkDefAndConfig,...nonPosition("color",model,{vgChannel:colorVgChannel,defaultValue:filled?defaultFill:defaultStroke}),...nonPosition("fill",model,{defaultValue:encoding.fill?defaultFill:void 0}),...nonPosition("stroke",model,{defaultValue:encoding.stroke?defaultStroke:void 0})}}function zindex(model){const{encoding,mark}=model,order=encoding.order;return!isPathMark(mark)&&isValueDef(order)?wrapCondition(model,order,"zindex",(cd=>signalOrValueRef(cd.value))):{}}function positionOffset({channel:baseChannel,markDef,encoding={},model,bandPosition}){const channel=`${baseChannel}Offset`,defaultValue=markDef[channel],channelDef=encoding[channel];if(("xOffset"===channel||"yOffset"===channel)&&channelDef){return{offsetType:"encoding",offset:midPoint({channel,channelDef,markDef,config:model?.config,scaleName:model.scaleName(channel),scale:model.getScaleComponent(channel),stack:null,defaultRef:signalOrValueRef(defaultValue),bandPosition})}}const markDefOffsetValue=markDef[channel];return markDefOffsetValue?{offsetType:"visual",offset:markDefOffsetValue}:{}}function pointPosition(channel,model,{defaultPos,vgChannel}){const{encoding,markDef,config,stack}=model,channelDef=encoding[channel],channel2Def=encoding[getSecondaryRangeChannel(channel)],scaleName=model.scaleName(channel),scale=model.getScaleComponent(channel),{offset,offsetType}=positionOffset({channel,markDef,encoding,model,bandPosition:.5}),defaultRef=pointPositionDefaultRef({model,defaultPos,channel,scaleName,scale}),valueRef=!channelDef&&isXorY(channel)&&(encoding.latitude||encoding.longitude)?{field:model.getName(channel)}:function positionRef(params){const{channel,channelDef,scaleName,stack,offset,markDef}=params;if(isFieldOrDatumDef(channelDef)&&stack&&channel===stack.fieldChannel){if(isFieldDef(channelDef)){let bandPosition=channelDef.bandPosition;if(void 0!==bandPosition||"text"!==markDef.type||"radius"!==channel&&"theta"!==channel||(bandPosition=.5),void 0!==bandPosition)return interpolatedSignalRef({scaleName,fieldOrDatumDef:channelDef,startSuffix:"start",bandPosition,offset})}return valueRefForFieldOrDatumDef(channelDef,scaleName,{suffix:"end"},{offset})}return midPointRefWithPositionInvalidTest(params)}({channel,channelDef,channel2Def,markDef,config,scaleName,scale,stack,offset,defaultRef,bandPosition:"encoding"===offsetType?0:void 0});return valueRef?{[vgChannel||channel]:valueRef}:void 0}function pointPositionDefaultRef({model,defaultPos,channel,scaleName,scale}){const{markDef,config}=model;return()=>{const mainChannel=getMainRangeChannel(channel),vgChannel=getVgPositionChannel(channel),definedValueOrConfig=getMarkPropOrConfig(channel,markDef,config,{vgChannel});if(void 0!==definedValueOrConfig)return widthHeightValueOrSignalRef(channel,definedValueOrConfig);switch(defaultPos){case"zeroOrMin":case"zeroOrMax":if(scaleName){const scaleType=scale.get("type");if(contains([ScaleType.LOG,ScaleType.TIME,ScaleType.UTC],scaleType));else if(scale.domainDefinitelyIncludesZero())return{scale:scaleName,value:0}}if("zeroOrMin"===defaultPos)return"y"===mainChannel?{field:{group:"height"}}:{value:0};switch(mainChannel){case"radius":return{signal:`min(${model.width.signal},${model.height.signal})/2`};case"theta":return{signal:"2*PI"};case"x":return{field:{group:"width"}};case"y":return{value:0}}break;case"mid":return{...model[getSizeChannel(channel)],mult:.5}}}}const ALIGNED_X_CHANNEL={left:"x",center:"xc",right:"x2"},BASELINED_Y_CHANNEL={top:"y",middle:"yc",bottom:"y2"};function vgAlignedPositionChannel(channel,markDef,config,defaultAlign="middle"){if("radius"===channel||"theta"===channel)return getVgPositionChannel(channel);const alignChannel="x"===channel?"align":"baseline",align=getMarkPropOrConfig(alignChannel,markDef,config);let alignExcludingSignal;return isSignalRef(align)?(warn(function rangeMarkAlignmentCannotBeExpression(align){return`The ${align} for range marks cannot be an expression`}(alignChannel)),alignExcludingSignal=void 0):alignExcludingSignal=align,"x"===channel?ALIGNED_X_CHANNEL[alignExcludingSignal||("top"===defaultAlign?"left":"center")]:BASELINED_Y_CHANNEL[alignExcludingSignal||defaultAlign]}function pointOrRangePosition(channel,model,{defaultPos,defaultPos2,range}){return range?rangePosition(channel,model,{defaultPos,defaultPos2}):pointPosition(channel,model,{defaultPos})}function rangePosition(channel,model,{defaultPos,defaultPos2}){const{markDef,config}=model,channel2=getSecondaryRangeChannel(channel),sizeChannel=getSizeChannel(channel),pos2Mixins=function pointPosition2OrSize(model,defaultPos,channel){const{encoding,mark,markDef,stack,config}=model,baseChannel=getMainRangeChannel(channel),sizeChannel=getSizeChannel(channel),vgChannel=getVgPositionChannel(channel),channelDef=encoding[baseChannel],scaleName=model.scaleName(baseChannel),scale=model.getScaleComponent(baseChannel),{offset}=positionOffset(channel in encoding||channel in markDef?{channel,markDef,encoding,model}:{channel:baseChannel,markDef,encoding,model});if(!channelDef&&("x2"===channel||"y2"===channel)&&(encoding.latitude||encoding.longitude)){const vgSizeChannel=getSizeChannel(channel),size=model.markDef[vgSizeChannel];return null!=size?{[vgSizeChannel]:{value:size}}:{[vgChannel]:{field:model.getName(channel)}}}const valueRef=function position2Ref({channel,channelDef,channel2Def,markDef,config,scaleName,scale,stack,offset,defaultRef}){if(isFieldOrDatumDef(channelDef)&&stack&&channel.charAt(0)===stack.fieldChannel.charAt(0))return valueRefForFieldOrDatumDef(channelDef,scaleName,{suffix:"start"},{offset});return midPointRefWithPositionInvalidTest({channel,channelDef:channel2Def,scaleName,scale,stack,markDef,config,offset,defaultRef})}({channel,channelDef,channel2Def:encoding[channel],markDef,config,scaleName,scale,stack,offset,defaultRef:void 0});if(void 0!==valueRef)return{[vgChannel]:valueRef};return position2orSize(channel,markDef)||position2orSize(channel,{[channel]:getMarkStyleConfig(channel,markDef,config.style),[sizeChannel]:getMarkStyleConfig(sizeChannel,markDef,config.style)})||position2orSize(channel,config[mark])||position2orSize(channel,config.mark)||{[vgChannel]:pointPositionDefaultRef({model,defaultPos,channel,scaleName,scale})()}}(model,defaultPos2,channel2);return{...pointPosition(channel,model,{defaultPos,vgChannel:pos2Mixins[sizeChannel]?vgAlignedPositionChannel(channel,markDef,config):getVgPositionChannel(channel)}),...pos2Mixins}}function position2orSize(channel,markDef){const sizeChannel=getSizeChannel(channel),vgChannel=getVgPositionChannel(channel);if(void 0!==markDef[vgChannel])return{[vgChannel]:widthHeightValueOrSignalRef(channel,markDef[vgChannel])};if(void 0!==markDef[channel])return{[vgChannel]:widthHeightValueOrSignalRef(channel,markDef[channel])};if(markDef[sizeChannel]){const dimensionSize=markDef[sizeChannel];if(!isRelativeBandSize(dimensionSize))return{[sizeChannel]:widthHeightValueOrSignalRef(channel,dimensionSize)};warn(function relativeBandSizeNotSupported(sizeChannel){return`Position range does not support relative band size for ${sizeChannel}.`}(sizeChannel))}}function rectPosition(model,channel){const{config,encoding,markDef}=model,mark=markDef.type,channel2=getSecondaryRangeChannel(channel),sizeChannel=getSizeChannel(channel),channelDef=encoding[channel],channelDef2=encoding[channel2],scale=model.getScaleComponent(channel),scaleType=scale?scale.get("type"):void 0,orient=markDef.orient,hasSizeDef=encoding[sizeChannel]??encoding.size??getMarkPropOrConfig("size",markDef,config,{vgChannel:sizeChannel}),offsetScaleChannel=getOffsetChannel(channel),isBarBand="bar"===mark&&("x"===channel?"vertical"===orient:"horizontal"===orient);return!isFieldDef(channelDef)||!(isBinning(channelDef.bin)||isBinned(channelDef.bin)||channelDef.timeUnit&&!channelDef2)||hasSizeDef&&!isRelativeBandSize(hasSizeDef)||encoding[offsetScaleChannel]||hasDiscreteDomain(scaleType)?(isFieldOrDatumDef(channelDef)&&hasDiscreteDomain(scaleType)||isBarBand)&&!channelDef2?function positionAndSize(fieldDef,channel,model){const{markDef,encoding,config,stack}=model,orient=markDef.orient,scaleName=model.scaleName(channel),scale=model.getScaleComponent(channel),vgSizeChannel=getSizeChannel(channel),channel2=getSecondaryRangeChannel(channel),offsetScaleChannel=getOffsetChannel(channel),offsetScaleName=model.scaleName(offsetScaleChannel),offsetScale=model.getScaleComponent(getOffsetScaleChannel(channel)),useVlSizeChannel="horizontal"===orient&&"y"===channel||"vertical"===orient&&"x"===channel;let sizeMixins;(encoding.size||markDef.size)&&(useVlSizeChannel?sizeMixins=nonPosition("size",model,{vgChannel:vgSizeChannel,defaultRef:signalOrValueRef(markDef.size)}):warn(function cannotApplySizeToNonOrientedMark(mark){return`Cannot apply size to non-oriented mark "${mark}".`}(markDef.type)));const hasSizeFromMarkOrEncoding=!!sizeMixins,bandSize=getBandSize({channel,fieldDef,markDef,config,scaleType:scale?.get("type"),useVlSizeChannel});sizeMixins=sizeMixins||{[vgSizeChannel]:defaultSizeRef(vgSizeChannel,offsetScaleName||scaleName,offsetScale||scale,config,bandSize,!!fieldDef,markDef.type)};const defaultBandAlign="band"===scale?.get("type")&&isRelativeBandSize(bandSize)&&!hasSizeFromMarkOrEncoding?"top":"middle",vgChannel=vgAlignedPositionChannel(channel,markDef,config,defaultBandAlign),center="xc"===vgChannel||"yc"===vgChannel,{offset,offsetType}=positionOffset({channel,markDef,encoding,model,bandPosition:center?.5:0}),posRef=midPointRefWithPositionInvalidTest({channel,channelDef:fieldDef,markDef,config,scaleName,scale,stack,offset,defaultRef:pointPositionDefaultRef({model,defaultPos:"mid",channel,scaleName,scale}),bandPosition:center?"encoding"===offsetType?0:.5:isSignalRef(bandSize)?{signal:`(1-${bandSize})/2`}:isRelativeBandSize(bandSize)?(1-bandSize.band)/2:0});if(vgSizeChannel)return{[vgChannel]:posRef,...sizeMixins};{const vgChannel2=getVgPositionChannel(channel2),sizeRef=sizeMixins[vgSizeChannel],sizeOffset=offset?{...sizeRef,offset}:sizeRef;return{[vgChannel]:posRef,[vgChannel2]:isArray(posRef)?[posRef[0],{...posRef[1],offset:sizeOffset}]:{...posRef,offset:sizeOffset}}}}(channelDef,channel,model):rangePosition(channel,model,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"}):function rectBinPosition({fieldDef,fieldDef2,channel,model}){const{config,markDef,encoding}=model,scale=model.getScaleComponent(channel),scaleName=model.scaleName(channel),scaleType=scale?scale.get("type"):void 0,reverse=scale.get("reverse"),bandSize=getBandSize({channel,fieldDef,markDef,config,scaleType}),axis=model.component.axes[channel]?.[0],axisTranslate=axis?.get("translate")??.5,spacing=isXorY(channel)?getMarkPropOrConfig("binSpacing",markDef,config)??0:0,channel2=getSecondaryRangeChannel(channel),vgChannel=getVgPositionChannel(channel),vgChannel2=getVgPositionChannel(channel2),minBandSize=getMarkConfig("minBandSize",markDef,config),{offset}=positionOffset({channel,markDef,encoding,model,bandPosition:0}),{offset:offset2}=positionOffset({channel:channel2,markDef,encoding,model,bandPosition:0}),bandSizeExpr=function binSizeExpr({scaleName,fieldDef}){const start=vgField(fieldDef,{expr:"datum"});return`abs(scale("${scaleName}", ${vgField(fieldDef,{expr:"datum",suffix:"end"})}) - scale("${scaleName}", ${start}))`}({fieldDef,scaleName}),binSpacingOffset=getBinSpacing(channel,spacing,reverse,axisTranslate,offset,minBandSize,bandSizeExpr),binSpacingOffset2=getBinSpacing(channel2,spacing,reverse,axisTranslate,offset2??offset,minBandSize,bandSizeExpr),bandPosition=isSignalRef(bandSize)?{signal:`(1-${bandSize.signal})/2`}:isRelativeBandSize(bandSize)?(1-bandSize.band)/2:.5;if(isBinning(fieldDef.bin)||fieldDef.timeUnit)return{[vgChannel2]:rectBinRef({fieldDef,scaleName,bandPosition,offset:binSpacingOffset2}),[vgChannel]:rectBinRef({fieldDef,scaleName,bandPosition:isSignalRef(bandPosition)?{signal:`1-${bandPosition.signal}`}:1-bandPosition,offset:binSpacingOffset})};if(isBinned(fieldDef.bin)){const startRef=valueRefForFieldOrDatumDef(fieldDef,scaleName,{},{offset:binSpacingOffset2});if(isFieldDef(fieldDef2))return{[vgChannel2]:startRef,[vgChannel]:valueRefForFieldOrDatumDef(fieldDef2,scaleName,{},{offset:binSpacingOffset})};if(isBinParams(fieldDef.bin)&&fieldDef.bin.step)return{[vgChannel2]:startRef,[vgChannel]:{signal:`scale("${scaleName}", ${vgField(fieldDef,{expr:"datum"})} + ${fieldDef.bin.step})`,offset:binSpacingOffset}}}return void warn(channelRequiredForBinned(channel2))}({fieldDef:channelDef,fieldDef2:channelDef2,channel,model})}function defaultSizeRef(sizeChannel,scaleName,scale,config,bandSize,hasFieldDef,mark){if(isRelativeBandSize(bandSize)){if(!scale)return{mult:bandSize.band,field:{group:sizeChannel}};{const scaleType=scale.get("type");if("band"===scaleType){let bandWidth=`bandwidth('${scaleName}')`;1!==bandSize.band&&(bandWidth=`${bandSize.band} * ${bandWidth}`);const minBandSize=getMarkConfig("minBandSize",{type:mark},config);return{signal:minBandSize?`max(${signalOrStringValue(minBandSize)}, ${bandWidth})`:bandWidth}}1!==bandSize.band&&(warn(function cannotUseRelativeBandSizeWithNonBandScale(scaleType){return`Cannot use the relative band size with ${scaleType} scale.`}(scaleType)),bandSize=void 0)}}else{if(isSignalRef(bandSize))return bandSize;if(bandSize)return{value:bandSize}}if(scale){const scaleRange=scale.get("range");if(isVgRangeStep(scaleRange)&&isNumber$1(scaleRange.step))return{value:scaleRange.step-2}}if(!hasFieldDef){const{bandPaddingInner,barBandPaddingInner,rectBandPaddingInner}=config.scale,padding=getFirstDefined(bandPaddingInner,"bar"===mark?barBandPaddingInner:rectBandPaddingInner);if(isSignalRef(padding))return{signal:`(1 - (${padding.signal})) * ${sizeChannel}`};if(isNumber$1(padding))return{signal:`${1-padding} * ${sizeChannel}`}}return{value:getViewConfigDiscreteStep(config.view,sizeChannel)-2}}function getBinSpacing(channel,spacing,reverse,translate,offset,minBandSize,bandSizeExpr){if(isPolarPositionChannel(channel))return 0;const isEnd="x"===channel||"y2"===channel,spacingOffset=isEnd?-spacing/2:spacing/2;if(isSignalRef(reverse)||isSignalRef(offset)||isSignalRef(translate)||minBandSize){const reverseExpr=signalOrStringValue(reverse),offsetExpr=signalOrStringValue(offset),translateExpr=signalOrStringValue(translate),minBandSizeExpr=signalOrStringValue(minBandSize),spacingAndSizeOffset=minBandSize?`(${bandSizeExpr} < ${minBandSizeExpr} ? ${isEnd?"":"-"}0.5 * (${minBandSizeExpr} - (${bandSizeExpr})) : ${spacingOffset})`:spacingOffset;return{signal:(translateExpr?`${translateExpr} + `:"")+(reverseExpr?`(${reverseExpr} ? -1 : 1) * `:"")+(offsetExpr?`(${offsetExpr} + ${spacingAndSizeOffset})`:spacingAndSizeOffset)}}return offset=offset||0,translate+(reverse?-offset-spacingOffset:+offset+spacingOffset)}function rectBinRef({fieldDef,scaleName,bandPosition,offset}){return interpolatedSignalRef({scaleName,fieldOrDatumDef:fieldDef,bandPosition,offset})}const ALWAYS_IGNORE=new Set(["aria","width","height"]);function baseEncodeEntry(model,ignore){const{fill,stroke}="include"===ignore.color?color(model):{};return{...markDefProperties(model.markDef,ignore),...wrapAllFieldsInvalid(model,"fill",fill),...wrapAllFieldsInvalid(model,"stroke",stroke),...nonPosition("opacity",model),...nonPosition("fillOpacity",model),...nonPosition("strokeOpacity",model),...nonPosition("strokeWidth",model),...nonPosition("strokeDash",model),...zindex(model),...tooltip(model),...text$1(model,"href"),...aria(model)}}function wrapAllFieldsInvalid(model,channel,valueRef){const{config,mark,markDef}=model;if("hide"===getMarkPropOrConfig("invalid",markDef,config)&&valueRef&&!isPathMark(mark)){const test=function allFieldsInvalidPredicate$1(model,{invalid=!1,channels}){const filterIndex=channels.reduce(((aggregator,channel)=>{const scaleComponent=model.getScaleComponent(channel);if(scaleComponent){const scaleType=scaleComponent.get("type"),field=model.vgField(channel,{expr:"datum"});field&&hasContinuousDomain(scaleType)&&(aggregator[field]=!0)}return aggregator}),{}),fields=keys(filterIndex);if(fields.length>0){const op=invalid?"||":"&&";return fields.map((field=>fieldInvalidPredicate(field,invalid))).join(` ${op} `)}return}(model,{invalid:!0,channels:SCALE_CHANNELS});if(test)return{[channel]:[{test,value:null},...array$5(valueRef)]}}return valueRef?{[channel]:valueRef}:{}}function markDefProperties(mark,ignore){return VG_MARK_CONFIGS.reduce(((m,prop)=>(ALWAYS_IGNORE.has(prop)||void 0===mark[prop]||"ignore"===ignore[prop]||(m[prop]=signalOrValueRef(mark[prop])),m)),{})}function defined(model){const{config,markDef}=model;if(getMarkPropOrConfig("invalid",markDef,config)){const signal=function allFieldsInvalidPredicate(model,{invalid=!1,channels}){const filterIndex=channels.reduce(((aggregator,channel)=>{const scaleComponent=model.getScaleComponent(channel);if(scaleComponent){const scaleType=scaleComponent.get("type"),field=model.vgField(channel,{expr:"datum",binSuffix:model.stack?.impute?"mid":void 0});field&&hasContinuousDomain(scaleType)&&(aggregator[field]=!0)}return aggregator}),{}),fields=keys(filterIndex);if(fields.length>0){const op=invalid?"||":"&&";return fields.map((field=>fieldInvalidPredicate(field,invalid))).join(` ${op} `)}return}(model,{channels:POSITION_SCALE_CHANNELS});if(signal)return{defined:{signal}}}return{}}function valueIfDefined(prop,value){if(void 0!==value)return{[prop]:signalOrValueRef(value)}}const nearest={defined:selCmpt=>"point"===selCmpt.type&&selCmpt.nearest,parse:(model,selCmpt)=>{if(selCmpt.events)for(const s of selCmpt.events)s.markname=model.getName("voronoi")},marks:(model,selCmpt,marks)=>{const{x,y}=selCmpt.project.hasChannel,markType=model.mark;if(isPathMark(markType))return warn(function nearestNotSupportForContinuous(mark){return`The "nearest" transform is not supported for ${mark} marks.`}(markType)),marks;const cellDef={name:model.getName("voronoi"),type:"path",interactive:!0,from:{data:model.getName("marks")},encode:{update:{fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:!0},...tooltip(model,{reactiveGeom:!0})}},transform:[{type:"voronoi",x:{expr:x||!y?"datum.datum.x || 0":"0"},y:{expr:y||!x?"datum.datum.y || 0":"0"},size:[model.getSizeSignalRef("width"),model.getSizeSignalRef("height")]}]};let index=0,exists=!1;return marks.forEach(((mark,i)=>{const name=mark.name??"";name===model.component.mark[0].name?index=i:name.indexOf("voronoi")>=0&&(exists=!0)})),exists||marks.splice(index+1,0,cellDef),marks}},inputBindings={defined:selCmpt=>"point"===selCmpt.type&&"global"===selCmpt.resolve&&selCmpt.bind&&"scales"!==selCmpt.bind&&!isLegendBinding(selCmpt.bind),parse:(model,selCmpt,selDef)=>disableDirectManipulation(selCmpt,selDef),topLevelSignals:(model,selCmpt,signals)=>{const name=selCmpt.name,proj=selCmpt.project,bind=selCmpt.bind,init=selCmpt.init&&selCmpt.init[0],datum=nearest.defined(selCmpt)?"(item().isVoronoi ? datum.datum : datum)":"datum";return proj.items.forEach(((p,i)=>{const sgname=varName(`${name}_${p.field}`);signals.filter((s=>s.name===sgname)).length||signals.unshift({name:sgname,...init?{init:assembleInit(init[i])}:{value:null},on:selCmpt.events?[{events:selCmpt.events,update:`datum && item().mark.marktype !== 'group' ? ${datum}[${$(p.field)}] : null`}]:[],bind:bind[p.field]??bind[p.channel]??bind})})),signals},signals:(model,selCmpt,signals)=>{const name=selCmpt.name,proj=selCmpt.project,signal=signals.filter((s=>s.name===name+TUPLE))[0],fields=name+"_tuple_fields",values=proj.items.map((p=>varName(`${name}_${p.field}`))),valid=values.map((v=>`${v} !== null`)).join(" && ");return values.length&&(signal.update=`${valid} ? {fields: ${fields}, values: [${values.join(", ")}]} : null`),delete signal.value,delete signal.on,signals}},toggle={defined:selCmpt=>"point"===selCmpt.type&&!!selCmpt.toggle,signals:(model,selCmpt,signals)=>signals.concat({name:selCmpt.name+"_toggle",value:!1,on:[{events:selCmpt.events,update:selCmpt.toggle}]}),modifyExpr:(model,selCmpt)=>{const tpl=selCmpt.name+TUPLE,signal=selCmpt.name+"_toggle";return`${signal} ? null : ${tpl}, `+("global"===selCmpt.resolve?`${signal} ? null : true, `:`${signal} ? null : {unit: ${unitName(model)}}, `)+`${signal} ? ${tpl} : null`}},clear={defined:selCmpt=>void 0!==selCmpt.clear&&!1!==selCmpt.clear,parse:(model,selCmpt)=>{selCmpt.clear&&(selCmpt.clear=isString(selCmpt.clear)?eventSelector(selCmpt.clear,"view"):selCmpt.clear)},topLevelSignals:(model,selCmpt,signals)=>{if(inputBindings.defined(selCmpt))for(const proj of selCmpt.project.items){const idx=signals.findIndex((n=>n.name===varName(`${selCmpt.name}_${proj.field}`)));-1!==idx&&signals[idx].on.push({events:selCmpt.clear,update:"null"})}return signals},signals:(model,selCmpt,signals)=>{function addClear(idx,update){-1!==idx&&signals[idx].on&&signals[idx].on.push({events:selCmpt.clear,update})}if("interval"===selCmpt.type)for(const proj of selCmpt.project.items){const vIdx=signals.findIndex((n=>n.name===proj.signals.visual));if(addClear(vIdx,"[0, 0]"),-1===vIdx){addClear(signals.findIndex((n=>n.name===proj.signals.data)),"null")}}else{let tIdx=signals.findIndex((n=>n.name===selCmpt.name+TUPLE));addClear(tIdx,"null"),toggle.defined(selCmpt)&&(tIdx=signals.findIndex((n=>n.name===selCmpt.name+"_toggle")),addClear(tIdx,"false"))}return signals}},legendBindings={defined:selCmpt=>{const spec="global"===selCmpt.resolve&&selCmpt.bind&&isLegendBinding(selCmpt.bind),projLen=1===selCmpt.project.items.length&&"_vgsid_"!==selCmpt.project.items[0].field;return spec&&!projLen&&warn("Legend bindings are only supported for selections over an individual field or encoding channel."),spec&&projLen},parse:(model,selCmpt,selDef)=>{const selDef_=duplicate(selDef);if(selDef_.select=isString(selDef_.select)?{type:selDef_.select,toggle:selCmpt.toggle}:{...selDef_.select,toggle:selCmpt.toggle},disableDirectManipulation(selCmpt,selDef_),isObject(selDef.select)&&(selDef.select.on||selDef.select.clear)){const legendFilter='event.item && indexof(event.item.mark.role, "legend") < 0';for(const evt of selCmpt.events)evt.filter=array$5(evt.filter??[]),evt.filter.includes(legendFilter)||evt.filter.push(legendFilter)}const evt=isLegendStreamBinding(selCmpt.bind)?selCmpt.bind.legend:"click",stream=isString(evt)?eventSelector(evt,"view"):array$5(evt);selCmpt.bind={legend:{merge:stream}}},topLevelSignals:(model,selCmpt,signals)=>{const selName=selCmpt.name,stream=isLegendStreamBinding(selCmpt.bind)&&selCmpt.bind.legend,markName=name=>s=>{const ds=duplicate(s);return ds.markname=name,ds};for(const proj of selCmpt.project.items){if(!proj.hasLegend)continue;const prefix=`${varName(proj.field)}_legend`,sgName=`${selName}_${prefix}`;if(0===signals.filter((s=>s.name===sgName)).length){const events=stream.merge.map(markName(`${prefix}_symbols`)).concat(stream.merge.map(markName(`${prefix}_labels`))).concat(stream.merge.map(markName(`${prefix}_entries`)));signals.unshift({name:sgName,...selCmpt.init?{}:{value:null},on:[{events,update:"isDefined(datum.value) ? datum.value : item().items[0].items[0].datum.value",force:!0},{events:stream.merge,update:`!event.item || !datum ? null : ${sgName}`,force:!0}]})}}return signals},signals:(model,selCmpt,signals)=>{const name=selCmpt.name,proj=selCmpt.project,tuple=signals.find((s=>s.name===name+TUPLE)),fields=name+"_tuple_fields",values=proj.items.filter((p=>p.hasLegend)).map((p=>varName(`${name}_${varName(p.field)}_legend`))),update=`${values.map((v=>`${v} !== null`)).join(" && ")} ? {fields: ${fields}, values: [${values.join(", ")}]} : null`;selCmpt.events&&values.length>0?tuple.on.push({events:values.map((signal=>({signal}))),update}):values.length>0&&(tuple.update=update,delete tuple.value,delete tuple.on);const toggle=signals.find((s=>s.name===name+"_toggle")),events=isLegendStreamBinding(selCmpt.bind)&&selCmpt.bind.legend;return toggle&&(selCmpt.events?toggle.on.push({...toggle.on[0],events}):toggle.on[0].events=events),signals}};const translate={defined:selCmpt=>"interval"===selCmpt.type&&selCmpt.translate,signals:(model,selCmpt,signals)=>{const name=selCmpt.name,boundScales=scaleBindings.defined(selCmpt),anchor=name+"_translate_anchor",{x,y}=selCmpt.project.hasChannel;let events=eventSelector(selCmpt.translate,"scope");return boundScales||(events=events.map((e=>(e.between[0].markname=name+BRUSH,e)))),signals.push({name:anchor,value:{},on:[{events:events.map((e=>e.between[0])),update:"{x: x(unit), y: y(unit)"+(void 0!==x?`, extent_x: ${boundScales?domain(model,X):`slice(${x.signals.visual})`}`:"")+(void 0!==y?`, extent_y: ${boundScales?domain(model,Y):`slice(${y.signals.visual})`}`:"")+"}"}]},{name:name+"_translate_delta",value:{},on:[{events,update:`{x: ${anchor}.x - x(unit), y: ${anchor}.y - y(unit)}`}]}),void 0!==x&&onDelta$1(model,selCmpt,x,"width",signals),void 0!==y&&onDelta$1(model,selCmpt,y,"height",signals),signals}};function onDelta$1(model,selCmpt,proj,size,signals){const name=selCmpt.name,anchor=name+"_translate_anchor",delta=name+"_translate_delta",channel=proj.channel,boundScales=scaleBindings.defined(selCmpt),signal=signals.filter((s=>s.name===proj.signals[boundScales?"data":"visual"]))[0],sizeSg=model.getSizeSignalRef(size).signal,scaleCmpt=model.getScaleComponent(channel),scaleType=scaleCmpt&&scaleCmpt.get("type"),reversed=scaleCmpt&&scaleCmpt.get("reverse"),extent=`${anchor}.extent_${channel}`,update=`${boundScales&&scaleCmpt?"log"===scaleType?"panLog":"symlog"===scaleType?"panSymlog":"pow"===scaleType?"panPow":"panLinear":"panLinear"}(${extent}, ${`${boundScales?channel===X?reversed?"":"-":reversed?"-":"":""}${delta}.${channel} / ${boundScales?`${sizeSg}`:`span(${extent})`}`}${boundScales?"pow"===scaleType?`, ${scaleCmpt.get("exponent")??1}`:"symlog"===scaleType?`, ${scaleCmpt.get("constant")??1}`:"":""})`;signal.on.push({events:{signal:delta},update:boundScales?update:`clampRange(${update}, 0, ${sizeSg})`})}const zoom={defined:selCmpt=>"interval"===selCmpt.type&&selCmpt.zoom,signals:(model,selCmpt,signals)=>{const name=selCmpt.name,boundScales=scaleBindings.defined(selCmpt),delta=name+"_zoom_delta",{x,y}=selCmpt.project.hasChannel,sx=$(model.scaleName(X)),sy=$(model.scaleName(Y));let events=eventSelector(selCmpt.zoom,"scope");return boundScales||(events=events.map((e=>(e.markname=name+BRUSH,e)))),signals.push({name:name+"_zoom_anchor",on:[{events,update:boundScales?"{"+[sx?`x: invert(${sx}, x(unit))`:"",sy?`y: invert(${sy}, y(unit))`:""].filter((expr=>expr)).join(", ")+"}":"{x: x(unit), y: y(unit)}"}]},{name:delta,on:[{events,force:!0,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]}),void 0!==x&&onDelta(model,selCmpt,x,"width",signals),void 0!==y&&onDelta(model,selCmpt,y,"height",signals),signals}};function onDelta(model,selCmpt,proj,size,signals){const name=selCmpt.name,channel=proj.channel,boundScales=scaleBindings.defined(selCmpt),signal=signals.filter((s=>s.name===proj.signals[boundScales?"data":"visual"]))[0],sizeSg=model.getSizeSignalRef(size).signal,scaleCmpt=model.getScaleComponent(channel),scaleType=scaleCmpt&&scaleCmpt.get("type"),base=boundScales?domain(model,channel):signal.name,delta=name+"_zoom_delta",update=`${boundScales&&scaleCmpt?"log"===scaleType?"zoomLog":"symlog"===scaleType?"zoomSymlog":"pow"===scaleType?"zoomPow":"zoomLinear":"zoomLinear"}(${base}, ${`${name}_zoom_anchor.${channel}`}, ${delta}${boundScales?"pow"===scaleType?`, ${scaleCmpt.get("exponent")??1}`:"symlog"===scaleType?`, ${scaleCmpt.get("constant")??1}`:"":""})`;signal.on.push({events:{signal:delta},update:boundScales?update:`clampRange(${update}, 0, ${sizeSg})`})}const STORE="_store",TUPLE="_tuple",MODIFY="_modify",VL_SELECTION_RESOLVE="vlSelectionResolve",selectionCompilers=[point$1,interval,project,toggle,inputBindings,scaleBindings,legendBindings,clear,translate,zoom,nearest];function unitName(model,{escape}={escape:!0}){let name=escape?$(model.name):model.name;const facetModel=function getFacetModel(model){let parent=model.parent;for(;parent&&!isFacetModel(parent);)parent=parent.parent;return parent}(model);if(facetModel){const{facet}=facetModel;for(const channel of FACET_CHANNELS)facet[channel]&&(name+=` + '__facet_${channel}_' + (facet[${$(facetModel.vgField(channel))}])`)}return name}function requiresSelectionId(model){return vals(model.component.selection??{}).reduce(((identifier,selCmpt)=>identifier||selCmpt.project.hasSelectionId),!1)}function disableDirectManipulation(selCmpt,selDef){!isString(selDef.select)&&selDef.select.on||delete selCmpt.events,!isString(selDef.select)&&selDef.select.clear||delete selCmpt.clear,!isString(selDef.select)&&selDef.select.toggle||delete selCmpt.toggle}function getName(node){const name=[];return"Identifier"===node.type?[node.name]:"Literal"===node.type?[node.value]:("MemberExpression"===node.type&&(name.push(...getName(node.object)),name.push(...getName(node.property))),name)}function startsWithDatum(node){return"MemberExpression"===node.object.type?startsWithDatum(node.object):"datum"===node.object.name}function getDependentFields(expression){const ast=parser$1(expression),dependents=new Set;return ast.visit((node=>{"MemberExpression"===node.type&&startsWithDatum(node)&&dependents.add(getName(node).slice(1).join("."))})),dependents}class FilterNode extends DataFlowNode{clone(){return new FilterNode(null,this.model,duplicate(this.filter))}constructor(parent,model,filter){super(parent),this.model=model,this.filter=filter,this.expr=expression(this.model,this.filter,this),this._dependentFields=getDependentFields(this.expr)}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return`Filter ${this.expr}`}}function parseSelectionPredicate(model,pred,dfnode,datum="datum"){const name=isString(pred)?pred:pred.param,vname=varName(name),store=$(vname+STORE);let selCmpt;try{selCmpt=model.getSelectionComponent(vname,name)}catch(e){return`!!${vname}`}if(selCmpt.project.timeUnit){const child=dfnode??model.component.data.raw,tunode=selCmpt.project.timeUnit.clone();child.parent?tunode.insertAsParentOf(child):child.parent=tunode}const test=`${selCmpt.project.hasSelectionId?"vlSelectionIdTest(":"vlSelectionTest("}${store}, ${datum}${"global"===selCmpt.resolve?")":`, ${$(selCmpt.resolve)})`}`,length=`length(data(${store}))`;return!1===pred.empty?`${length} && ${test}`:`!${length} || ${test}`}function parseSelectionExtent(model,name,extent){const vname=varName(name),encoding=extent.encoding;let selCmpt,field=extent.field;try{selCmpt=model.getSelectionComponent(vname,name)}catch(e){return vname}if(encoding||field){if(encoding&&!field){const encodings=selCmpt.project.items.filter((p=>p.channel===encoding));!encodings.length||encodings.length>1?(field=selCmpt.project.items[0].field,warn((encodings.length?"Multiple ":"No ")+`matching ${$(encoding)} encoding found for selection ${$(extent.param)}. `+`Using "field": ${$(field)}.`)):field=encodings[0].field}}else field=selCmpt.project.items[0].field,selCmpt.project.items.length>1&&warn(`A "field" or "encoding" must be specified when using a selection as a scale domain. Using "field": ${$(field)}.`);return`${selCmpt.name}[${$(replacePathInField(field))}]`}function expression(model,filterOp,node){return logicalExpr(filterOp,(predicate=>isString(predicate)?predicate:function isSelectionPredicate(predicate){return predicate?.param}(predicate)?parseSelectionPredicate(model,predicate,node):fieldFilterExpression(predicate)))}function setAxisEncode(axis,part,vgProp,vgRef){var _a,_b;axis.encode??(axis.encode={}),(_a=axis.encode)[part]??(_a[part]={}),(_b=axis.encode[part]).update??(_b.update={}),axis.encode[part].update[vgProp]=vgRef}function assembleAxis(axisCmpt,kind,config,opt={header:!1}){const{disable,orient,scale,labelExpr,title,zindex,...axis}=axisCmpt.combine();if(!disable){for(const prop in axis){const propType=AXIS_PROPERTY_TYPE[prop],propValue=axis[prop];if(propType&&propType!==kind&&"both"!==propType)delete axis[prop];else if(isConditionalAxisValue(propValue)){const{condition,...valueOrSignalRef}=propValue,conditions=array$5(condition),propIndex=CONDITIONAL_AXIS_PROP_INDEX[prop];if(propIndex){const{vgProp,part}=propIndex,vgRef=[...conditions.map((c=>{const{test,...valueOrSignalCRef}=c;return{test:expression(null,test),...valueOrSignalCRef}})),valueOrSignalRef];setAxisEncode(axis,part,vgProp,vgRef),delete axis[prop]}else if(null===propIndex){const signalRef={signal:conditions.map((c=>{const{test,...valueOrSignalCRef}=c;return`${expression(null,test)} ? ${exprFromValueRefOrSignalRef(valueOrSignalCRef)} : `})).join("")+exprFromValueRefOrSignalRef(valueOrSignalRef)};axis[prop]=signalRef}}else if(isSignalRef(propValue)){const propIndex=CONDITIONAL_AXIS_PROP_INDEX[prop];if(propIndex){const{vgProp,part}=propIndex;setAxisEncode(axis,part,vgProp,propValue),delete axis[prop]}}contains(["labelAlign","labelBaseline"],prop)&&null===axis[prop]&&delete axis[prop]}if("grid"===kind){if(!axis.grid)return;if(axis.encode){const{grid}=axis.encode;axis.encode={...grid?{grid}:{}},isEmpty(axis.encode)&&delete axis.encode}return{scale,orient,...axis,domain:!1,labels:!1,aria:!1,maxExtent:0,minExtent:0,ticks:!1,zindex:getFirstDefined(zindex,0)}}{if(!opt.header&&axisCmpt.mainExtracted)return;if(void 0!==labelExpr){let expr=labelExpr;axis.encode?.labels?.update&&isSignalRef(axis.encode.labels.update.text)&&(expr=replaceAll(labelExpr,"datum.label",axis.encode.labels.update.text.signal)),setAxisEncode(axis,"labels","text",{signal:expr})}if(null===axis.labelAlign&&delete axis.labelAlign,axis.encode){for(const part of AXIS_PARTS)axisCmpt.hasAxisPart(part)||delete axis.encode[part];isEmpty(axis.encode)&&delete axis.encode}const titleString=function assembleTitle(title,config){if(title)return isArray(title)&&!isText(title)?title.map((fieldDef=>defaultTitle(fieldDef,config))).join(", "):title}(title,config);return{scale,orient,grid:!1,...titleString?{title:titleString}:{},...axis,...!1===config.aria?{aria:!1}:{},zindex:getFirstDefined(zindex,0)}}}}function assembleAxisSignals(model){const{axes}=model.component,signals=[];for(const channel of POSITION_SCALE_CHANNELS)if(axes[channel])for(const axis of axes[channel])if(!axis.get("disable")&&!axis.get("gridScale")){const sizeType="x"===channel?"height":"width",update=model.getSizeSignalRef(sizeType).signal;sizeType!==update&&signals.push({name:sizeType,update})}return signals}function getAxisConfigFromConfigTypes(configTypes,config,channel,orient){return Object.assign.apply(null,[{},...configTypes.map((configType=>{if("axisOrient"===configType){const orient1="x"===channel?"bottom":"left",orientConfig1=config["x"===channel?"axisBottom":"axisLeft"]||{},orientConfig2=config["x"===channel?"axisTop":"axisRight"]||{},props=new Set([...keys(orientConfig1),...keys(orientConfig2)]),conditionalOrientAxisConfig={};for(const prop of props.values())conditionalOrientAxisConfig[prop]={signal:`${orient.signal} === "${orient1}" ? ${signalOrStringValue(orientConfig1[prop])} : ${signalOrStringValue(orientConfig2[prop])}`};return conditionalOrientAxisConfig}return config[configType]}))])}function getAxisConfigStyle(axisConfigTypes,config){const toMerge=[{}];for(const configType of axisConfigTypes){let style=config[configType]?.style;if(style){style=array$5(style);for(const s of style)toMerge.push(config.style[s])}}return Object.assign.apply(null,toMerge)}function getAxisConfig(property,styleConfigIndex,style,axisConfigs={}){const styleConfig=getStyleConfig(property,style,styleConfigIndex);if(void 0!==styleConfig)return{configFrom:"style",configValue:styleConfig};for(const configFrom of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"])if(void 0!==axisConfigs[configFrom]?.[property])return{configFrom,configValue:axisConfigs[configFrom][property]};return{}}const axisRules={scale:({model,channel})=>model.scaleName(channel),format:({format})=>format,formatType:({formatType})=>formatType,grid:({fieldOrDatumDef,axis,scaleType})=>axis.grid??function defaultGrid(scaleType,fieldDef){return!hasDiscreteDomain(scaleType)&&isFieldDef(fieldDef)&&!isBinning(fieldDef?.bin)&&!isBinned(fieldDef?.bin)}(scaleType,fieldOrDatumDef),gridScale:({model,channel})=>function gridScale(model,channel){const gridChannel="x"===channel?"y":"x";if(model.getScaleComponent(gridChannel))return model.scaleName(gridChannel);return}(model,channel),labelAlign:({axis,labelAngle,orient,channel})=>axis.labelAlign||defaultLabelAlign(labelAngle,orient,channel),labelAngle:({labelAngle})=>labelAngle,labelBaseline:({axis,labelAngle,orient,channel})=>axis.labelBaseline||defaultLabelBaseline(labelAngle,orient,channel),labelFlush:({axis,fieldOrDatumDef,channel})=>axis.labelFlush??function defaultLabelFlush(type,channel){if("x"===channel&&contains(["quantitative","temporal"],type))return!0;return}(fieldOrDatumDef.type,channel),labelOverlap:({axis,fieldOrDatumDef,scaleType})=>axis.labelOverlap??function defaultLabelOverlap$1(type,scaleType,hasTimeUnit,sort){if(hasTimeUnit&&!isObject(sort)||"nominal"!==type&&"ordinal"!==type)return"log"!==scaleType&&"symlog"!==scaleType||"greedy";return}(fieldOrDatumDef.type,scaleType,isFieldDef(fieldOrDatumDef)&&!!fieldOrDatumDef.timeUnit,isFieldDef(fieldOrDatumDef)?fieldOrDatumDef.sort:void 0),orient:({orient})=>orient,tickCount:({channel,model,axis,fieldOrDatumDef,scaleType})=>{const sizeType="x"===channel?"width":"y"===channel?"height":void 0,size=sizeType?model.getSizeSignalRef(sizeType):void 0;return axis.tickCount??function defaultTickCount({fieldOrDatumDef,scaleType,size,values:vals}){if(!vals&&!hasDiscreteDomain(scaleType)&&"log"!==scaleType){if(isFieldDef(fieldOrDatumDef)){if(isBinning(fieldOrDatumDef.bin))return{signal:`ceil(${size.signal}/10)`};if(fieldOrDatumDef.timeUnit&&contains(["month","hours","day","quarter"],normalizeTimeUnit(fieldOrDatumDef.timeUnit)?.unit))return}return{signal:`ceil(${size.signal}/40)`}}return}({fieldOrDatumDef,scaleType,size,values:axis.values})},tickMinStep:function defaultTickMinStep({format,fieldOrDatumDef}){if("d"===format)return 1;if(isFieldDef(fieldOrDatumDef)){const{timeUnit}=fieldOrDatumDef;if(timeUnit){const signal=durationExpr(timeUnit);if(signal)return{signal}}}return},title:({axis,model,channel})=>{if(void 0!==axis.title)return axis.title;const fieldDefTitle=getFieldDefTitle(model,channel);if(void 0!==fieldDefTitle)return fieldDefTitle;const fieldDef=model.typedFieldDef(channel),channel2="x"===channel?"x2":"y2",fieldDef2=model.fieldDef(channel2);return mergeTitleFieldDefs(fieldDef?[toFieldDefBase(fieldDef)]:[],isFieldDef(fieldDef2)?[toFieldDefBase(fieldDef2)]:[])},values:({axis,fieldOrDatumDef})=>function values$1(axis,fieldOrDatumDef){const vals=axis.values;if(isArray(vals))return valueArray(fieldOrDatumDef,vals);if(isSignalRef(vals))return vals;return}(axis,fieldOrDatumDef),zindex:({axis,fieldOrDatumDef,mark})=>axis.zindex??function defaultZindex(mark,fieldDef){if("rect"===mark&&isDiscrete(fieldDef))return 1;return 0}(mark,fieldOrDatumDef)};function normalizeAngleExpr(angle){return`(((${angle.signal} % 360) + 360) % 360)`}function defaultLabelBaseline(angle,orient,channel,alwaysIncludeMiddle){if(void 0!==angle){if("x"===channel){if(isSignalRef(angle)){const a=normalizeAngleExpr(angle);return{signal:`(45 < ${a} && ${a} < 135) || (225 < ${a} && ${a} < 315) ? "middle" :(${a} <= 45 || 315 <= ${a}) === ${isSignalRef(orient)?`(${orient.signal} === "top")`:"top"===orient} ? "bottom" : "top"`}}if(45{if(isScaleFieldDef(fieldDef)&&isSortArray(fieldDef.sort)){const{field,timeUnit}=fieldDef,sort=fieldDef.sort,calculate=sort.map(((sortValue,i)=>`${fieldFilterExpression({field,timeUnit,equal:sortValue})} ? ${i} : `)).join("")+sort.length;parent=new CalculateNode(parent,{calculate,as:sortArrayIndexField(fieldDef,channel,{forAs:!0})})}})),parent}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return`Calculate ${hash(this.transform)}`}}function sortArrayIndexField(fieldDef,channel,opt){return vgField(fieldDef,{prefix:channel,suffix:"sort_index",...opt??{}})}function getHeaderChannel(channel,orient){return contains(["top","bottom"],orient)?"column":contains(["left","right"],orient)||"row"===channel?"row":"column"}function getHeaderProperty(prop,header,config,channel){const headerSpecificConfig="row"===channel?config.headerRow:"column"===channel?config.headerColumn:config.headerFacet;return getFirstDefined((header||{})[prop],headerSpecificConfig[prop],config.header[prop])}function getHeaderProperties(properties,header,config,channel){const props={};for(const prop of properties){const value=getHeaderProperty(prop,header||{},config,channel);void 0!==value&&(props[prop]=value)}return props}const HEADER_CHANNELS=["row","column"],HEADER_TYPES=["header","footer"];function assembleTitleGroup(model,channel){const title=model.component.layoutHeaders[channel].title,config=model.config?model.config:void 0,facetFieldDef=model.component.layoutHeaders[channel].facetFieldDef?model.component.layoutHeaders[channel].facetFieldDef:void 0,{titleAnchor,titleAngle:ta,titleOrient}=getHeaderProperties(["titleAnchor","titleAngle","titleOrient"],facetFieldDef.header,config,channel),headerChannel=getHeaderChannel(channel,titleOrient),titleAngle=normalizeAngle(ta);return{name:`${channel}-title`,type:"group",role:`${headerChannel}-title`,title:{text:title,..."row"===channel?{orient:"left"}:{},style:"guide-title",...defaultHeaderGuideBaseline(titleAngle,headerChannel),...defaultHeaderGuideAlign(headerChannel,titleAngle,titleAnchor),...assembleHeaderProperties(config,facetFieldDef,channel,HEADER_TITLE_PROPERTIES,HEADER_TITLE_PROPERTIES_MAP)}}}function defaultHeaderGuideAlign(headerChannel,angle,anchor="middle"){switch(anchor){case"start":return{align:"left"};case"end":return{align:"right"}}const align=defaultLabelAlign(angle,"row"===headerChannel?"left":"top","row"===headerChannel?"y":"x");return align?{align}:{}}function defaultHeaderGuideBaseline(angle,channel){const baseline=defaultLabelBaseline(angle,"row"===channel?"left":"top","row"===channel?"y":"x",!0);return baseline?{baseline}:{}}function assembleHeaderGroups(model,channel){const layoutHeader=model.component.layoutHeaders[channel],groups=[];for(const headerType of HEADER_TYPES)if(layoutHeader[headerType])for(const headerComponent of layoutHeader[headerType]){const group=assembleHeaderGroup(model,channel,headerType,layoutHeader,headerComponent);null!=group&&groups.push(group)}return groups}function getSort$1(facetFieldDef,channel){const{sort}=facetFieldDef;return isSortField(sort)?{field:vgField(sort,{expr:"datum"}),order:sort.order??"ascending"}:isArray(sort)?{field:sortArrayIndexField(facetFieldDef,channel,{expr:"datum"}),order:"ascending"}:{field:vgField(facetFieldDef,{expr:"datum"}),order:sort??"ascending"}}function assembleLabelTitle(facetFieldDef,channel,config){const{format,formatType,labelAngle,labelAnchor,labelOrient,labelExpr}=getHeaderProperties(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],facetFieldDef.header,config,channel),titleTextExpr=formatSignalRef({fieldOrDatumDef:facetFieldDef,format,formatType,expr:"parent",config}).signal,headerChannel=getHeaderChannel(channel,labelOrient);return{text:{signal:labelExpr?replaceAll(replaceAll(labelExpr,"datum.label",titleTextExpr),"datum.value",vgField(facetFieldDef,{expr:"parent"})):titleTextExpr},..."row"===channel?{orient:"left"}:{},style:"guide-label",frame:"group",...defaultHeaderGuideBaseline(labelAngle,headerChannel),...defaultHeaderGuideAlign(headerChannel,labelAngle,labelAnchor),...assembleHeaderProperties(config,facetFieldDef,channel,HEADER_LABEL_PROPERTIES,HEADER_LABEL_PROPERTIES_MAP)}}function assembleHeaderGroup(model,channel,headerType,layoutHeader,headerComponent){if(headerComponent){let title=null;const{facetFieldDef}=layoutHeader,config=model.config?model.config:void 0;if(facetFieldDef&&headerComponent.labels){const{labelOrient}=getHeaderProperties(["labelOrient"],facetFieldDef.header,config,channel);("row"===channel&&!contains(["top","bottom"],labelOrient)||"column"===channel&&!contains(["left","right"],labelOrient))&&(title=assembleLabelTitle(facetFieldDef,channel,config))}const isFacetWithoutRowCol=isFacetModel(model)&&!isFacetMapping(model.facet),axes=headerComponent.axes,hasAxes=axes?.length>0;if(title||hasAxes){const sizeChannel="row"===channel?"height":"width";return{name:model.getName(`${channel}_${headerType}`),type:"group",role:`${channel}-${headerType}`,...layoutHeader.facetFieldDef?{from:{data:model.getName(`${channel}_domain`)},sort:getSort$1(facetFieldDef,channel)}:{},...hasAxes&&isFacetWithoutRowCol?{from:{data:model.getName(`facet_domain_${channel}`)}}:{},...title?{title}:{},...headerComponent.sizeSignal?{encode:{update:{[sizeChannel]:headerComponent.sizeSignal}}}:{},...hasAxes?{axes}:{}}}}return null}const LAYOUT_TITLE_BAND={column:{start:0,end:1},row:{start:1,end:0}};function getLayoutTitleBand(titleAnchor,headerChannel){return LAYOUT_TITLE_BAND[headerChannel][titleAnchor]}function assembleHeaderProperties(config,facetFieldDef,channel,properties,propertiesMap){const props={};for(const prop of properties){if(!propertiesMap[prop])continue;const value=getHeaderProperty(prop,facetFieldDef?.header,config,channel);void 0!==value&&(props[propertiesMap[prop]]=value)}return props}function assembleLayoutSignals(model){return[...sizeSignals(model,"width"),...sizeSignals(model,"height"),...sizeSignals(model,"childWidth"),...sizeSignals(model,"childHeight")]}function sizeSignals(model,sizeType){const channel="width"===sizeType?"x":"y",size=model.component.layoutSize.get(sizeType);if(!size||"merged"===size)return[];const name=model.getSizeSignalRef(sizeType).signal;if("step"===size){const scaleComponent=model.getScaleComponent(channel);if(scaleComponent){const type=scaleComponent.get("type"),range=scaleComponent.get("range");if(hasDiscreteDomain(type)&&isVgRangeStep(range)){const scaleName=model.scaleName(channel);if(isFacetModel(model.parent)){if("independent"===model.parent.component.resolve.scale[channel])return[stepSignal(scaleName,range)]}return[stepSignal(scaleName,range),{name,update:sizeExpr(scaleName,scaleComponent,`domain('${scaleName}').length`)}]}}throw new Error("layout size is step although width/height is not step.")}if("container"==size){const isWidth=name.endsWith("width"),expr=isWidth?"containerSize()[0]":"containerSize()[1]",safeExpr=`isFinite(${expr}) ? ${expr} : ${getViewConfigContinuousSize(model.config.view,isWidth?"width":"height")}`;return[{name,init:safeExpr,on:[{update:safeExpr,events:"window:resize"}]}]}return[{name,value:size}]}function stepSignal(scaleName,range){const name=`${scaleName}_step`;return isSignalRef(range.step)?{name,update:range.step.signal}:{name,value:range.step}}function sizeExpr(scaleName,scaleComponent,cardinality){const type=scaleComponent.get("type"),padding=scaleComponent.get("padding"),paddingOuter=getFirstDefined(scaleComponent.get("paddingOuter"),padding);let paddingInner=scaleComponent.get("paddingInner");return paddingInner="band"===type?void 0!==paddingInner?paddingInner:padding:1,`bandspace(${cardinality}, ${signalOrStringValue(paddingInner)}, ${signalOrStringValue(paddingOuter)}) * ${scaleName}_step`}function getSizeTypeFromLayoutSizeType(layoutSizeType){return"childWidth"===layoutSizeType?"width":"childHeight"===layoutSizeType?"height":layoutSizeType}function guideEncodeEntry(encoding,model){return keys(encoding).reduce(((encode,channel)=>{const valueDef=encoding[channel];return{...encode,...wrapCondition(model,valueDef,channel,(def=>signalOrValueRef(def.value)))}}),{})}function defaultScaleResolve(channel,model){if(isFacetModel(model))return"theta"===channel?"independent":"shared";if(isLayerModel(model))return"shared";if(isConcatModel(model))return isXorY(channel)||"theta"===channel||"radius"===channel?"independent":"shared";throw new Error("invalid model type for resolve")}function parseGuideResolve(resolve,channel){const channelScaleResolve=resolve.scale[channel],guide=isXorY(channel)?"axis":"legend";return"independent"===channelScaleResolve?("shared"===resolve[guide][channel]&&warn(function independentScaleMeansIndependentGuide(channel){return`Setting the scale to be independent for "${channel}" means we also have to set the guide (axis or legend) to be independent.`}(channel)),"independent"):resolve[guide][channel]||"shared"}const LEGEND_COMPONENT_PROPERTIES=keys({aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1,disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1});class LegendComponent extends Split{}const legendEncodeRules={symbols:function symbols(symbolsSpec,{fieldOrDatumDef,model,channel,legendCmpt,legendType}){if("symbol"!==legendType)return;const{markDef,encoding,config,mark}=model,filled=markDef.filled&&"trail"!==mark;let out={...applyMarkConfig({},model,FILL_STROKE_CONFIG),...color(model,{filled})};const symbolOpacity=legendCmpt.get("symbolOpacity")??config.legend.symbolOpacity,symbolFillColor=legendCmpt.get("symbolFillColor")??config.legend.symbolFillColor,symbolStrokeColor=legendCmpt.get("symbolStrokeColor")??config.legend.symbolStrokeColor,opacity=void 0===symbolOpacity?getMaxValue(encoding.opacity)??markDef.opacity:void 0;if(out.fill)if("fill"===channel||filled&&channel===COLOR)delete out.fill;else if(out.fill.field)symbolFillColor?delete out.fill:(out.fill=signalOrValueRef(config.legend.symbolBaseFillColor??"black"),out.fillOpacity=signalOrValueRef(opacity??1));else if(isArray(out.fill)){const fill=getFirstConditionValue(encoding.fill??encoding.color)??markDef.fill??(filled&&markDef.color);fill&&(out.fill=signalOrValueRef(fill))}if(out.stroke)if("stroke"===channel||!filled&&channel===COLOR)delete out.stroke;else if(out.stroke.field||symbolStrokeColor)delete out.stroke;else if(isArray(out.stroke)){const stroke=getFirstDefined(getFirstConditionValue(encoding.stroke||encoding.color),markDef.stroke,filled?markDef.color:void 0);stroke&&(out.stroke={value:stroke})}if(channel!==OPACITY){const condition=isFieldDef(fieldOrDatumDef)&&selectedCondition(model,legendCmpt,fieldOrDatumDef);condition?out.opacity=[{test:condition,...signalOrValueRef(opacity??1)},signalOrValueRef(config.legend.unselectedOpacity)]:opacity&&(out.opacity=signalOrValueRef(opacity))}return out={...out,...symbolsSpec},isEmpty(out)?void 0:out},gradient:function gradient(gradientSpec,{model,legendType,legendCmpt}){if("gradient"!==legendType)return;const{config,markDef,encoding}=model;let out={};const opacity=void 0===(legendCmpt.get("gradientOpacity")??config.legend.gradientOpacity)?getMaxValue(encoding.opacity)||markDef.opacity:void 0;opacity&&(out.opacity=signalOrValueRef(opacity));return out={...out,...gradientSpec},isEmpty(out)?void 0:out},labels:function labels$1(specifiedlabelsSpec,{fieldOrDatumDef,model,channel,legendCmpt}){const legend=model.legend(channel)||{},config=model.config,condition=isFieldDef(fieldOrDatumDef)?selectedCondition(model,legendCmpt,fieldOrDatumDef):void 0,opacity=condition?[{test:condition,value:1},{value:config.legend.unselectedOpacity}]:void 0,{format,formatType}=legend;let text;isCustomFormatType(formatType)?text=formatCustomType({fieldOrDatumDef,field:"datum.value",format,formatType,config}):void 0===format&&void 0===formatType&&config.customFormatTypes&&("quantitative"===fieldOrDatumDef.type&&config.numberFormatType?text=formatCustomType({fieldOrDatumDef,field:"datum.value",format:config.numberFormat,formatType:config.numberFormatType,config}):"temporal"===fieldOrDatumDef.type&&config.timeFormatType&&isFieldDef(fieldOrDatumDef)&&void 0===fieldOrDatumDef.timeUnit&&(text=formatCustomType({fieldOrDatumDef,field:"datum.value",format:config.timeFormat,formatType:config.timeFormatType,config})));const labelsSpec={...opacity?{opacity}:{},...text?{text}:{},...specifiedlabelsSpec};return isEmpty(labelsSpec)?void 0:labelsSpec},entries:function entries(entriesSpec,{legendCmpt}){const selections=legendCmpt.get("selections");return selections?.length?{...entriesSpec,fill:{value:"transparent"}}:entriesSpec}};function getMaxValue(channelDef){return getConditionValue(channelDef,((v,conditionalDef)=>Math.max(v,conditionalDef.value)))}function getFirstConditionValue(channelDef){return getConditionValue(channelDef,((v,conditionalDef)=>getFirstDefined(v,conditionalDef.value)))}function getConditionValue(channelDef,reducer){return function hasConditionalValueDef(channelDef){const condition=channelDef?.condition;return!!condition&&(isArray(condition)||isValueDef(condition))}(channelDef)?array$5(channelDef.condition).reduce(reducer,channelDef.value):isValueDef(channelDef)?channelDef.value:void 0}function selectedCondition(model,legendCmpt,fieldDef){const selections=legendCmpt.get("selections");if(!selections?.length)return;const field=$(fieldDef.field);return selections.map((name=>`(!length(data(${$(varName(name)+STORE)})) || (${name}[${field}] && indexof(${name}[${field}], datum.value) >= 0))`)).join(" || ")}const legendRules={direction:({direction})=>direction,format:({fieldOrDatumDef,legend,config})=>{const{format,formatType}=legend;return guideFormat(fieldOrDatumDef,fieldOrDatumDef.type,format,formatType,config,!1)},formatType:({legend,fieldOrDatumDef,scaleType})=>{const{formatType}=legend;return guideFormatType(formatType,fieldOrDatumDef,scaleType)},gradientLength:params=>{const{legend,legendConfig}=params;return legend.gradientLength??legendConfig.gradientLength??function defaultGradientLength({legendConfig,model,direction,orient,scaleType}){const{gradientHorizontalMaxLength,gradientHorizontalMinLength,gradientVerticalMaxLength,gradientVerticalMinLength}=legendConfig;if(isContinuousToContinuous(scaleType))return"horizontal"===direction?"top"===orient||"bottom"===orient?gradientLengthSignal(model,"width",gradientHorizontalMinLength,gradientHorizontalMaxLength):gradientHorizontalMinLength:gradientLengthSignal(model,"height",gradientVerticalMinLength,gradientVerticalMaxLength);return}(params)},labelOverlap:({legend,legendConfig,scaleType})=>legend.labelOverlap??legendConfig.labelOverlap??function defaultLabelOverlap(scaleType){if(contains(["quantile","threshold","log","symlog"],scaleType))return"greedy";return}(scaleType),symbolType:({legend,markDef,channel,encoding})=>legend.symbolType??function defaultSymbolType(mark,channel,shapeChannelDef,markShape){if("shape"!==channel){const shape=getFirstConditionValue(shapeChannelDef)??markShape;if(shape)return shape}switch(mark){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}(markDef.type,channel,encoding.shape,markDef.shape),title:({fieldOrDatumDef,config})=>title(fieldOrDatumDef,config,{allowDisabling:!0}),type:({legendType,scaleType,channel})=>{if(isColorChannel(channel)&&isContinuousToContinuous(scaleType)){if("gradient"===legendType)return}else if("symbol"===legendType)return;return legendType},values:({fieldOrDatumDef,legend})=>function values(legend,fieldOrDatumDef){const vals=legend.values;if(isArray(vals))return valueArray(fieldOrDatumDef,vals);if(isSignalRef(vals))return vals;return}(legend,fieldOrDatumDef)};function getLegendType(params){const{legend}=params;return getFirstDefined(legend.type,function defaultType$1({channel,timeUnit,scaleType}){if(isColorChannel(channel)){if(contains(["quarter","month","day"],timeUnit))return"symbol";if(isContinuousToContinuous(scaleType))return"gradient"}return"symbol"}(params))}function getDirection({legendConfig,legendType,orient,legend}){return legend.direction??legendConfig[legendType?"gradientDirection":"symbolDirection"]??function defaultDirection(orient,legendType){switch(orient){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case void 0:return;default:return"gradient"===legendType?"horizontal":void 0}}(orient,legendType)}function gradientLengthSignal(model,sizeType,min,max){return{signal:`clamp(${model.getSizeSignalRef(sizeType).signal}, ${min}, ${max})`}}function parseLegend(model){const legendComponent=isUnitModel(model)?function parseUnitLegend(model){const{encoding}=model,legendComponent={};for(const channel of[COLOR,...LEGEND_SCALE_CHANNELS]){const def=getFieldOrDatumDef(encoding[channel]);def&&model.getScaleComponent(channel)&&(channel===SHAPE&&isFieldDef(def)&&def.type===GEOJSON||(legendComponent[channel]=parseLegendForChannel(model,channel)))}return legendComponent}(model):function parseNonUnitLegend(model){const{legends,resolve}=model.component;for(const child of model.children){parseLegend(child);for(const channel of keys(child.component.legends))resolve.legend[channel]=parseGuideResolve(model.component.resolve,channel),"shared"===resolve.legend[channel]&&(legends[channel]=mergeLegendComponent(legends[channel],child.component.legends[channel]),legends[channel]||(resolve.legend[channel]="independent",delete legends[channel]))}for(const channel of keys(legends))for(const child of model.children)child.component.legends[channel]&&"shared"===resolve.legend[channel]&&delete child.component.legends[channel];return legends}(model);return model.component.legends=legendComponent,legendComponent}function isExplicit$1(value,property,legend,fieldDef){switch(property){case"disable":return void 0!==legend;case"values":return!!legend?.values;case"title":if("title"===property&&value===fieldDef?.title)return!0}return value===(legend||{})[property]}function parseLegendForChannel(model,channel){let legend=model.legend(channel);const{markDef,encoding,config}=model,legendConfig=config.legend,legendCmpt=new LegendComponent({},function getLegendDefWithScale(model,channel){const scale=model.scaleName(channel);if("trail"===model.mark){if("color"===channel)return{stroke:scale};if("size"===channel)return{strokeWidth:scale}}return"color"===channel?model.markDef.filled?{fill:scale}:{stroke:scale}:{[channel]:scale}}(model,channel));!function parseInteractiveLegend(model,channel,legendCmpt){const field=model.fieldDef(channel)?.field;for(const selCmpt of vals(model.component.selection??{})){const proj=selCmpt.project.hasField[field]??selCmpt.project.hasChannel[channel];if(proj&&legendBindings.defined(selCmpt)){const legendSelections=legendCmpt.get("selections")??[];legendSelections.push(selCmpt.name),legendCmpt.set("selections",legendSelections,!1),proj.hasLegend=!0}}}(model,channel,legendCmpt);const disable=void 0!==legend?!legend:legendConfig.disable;if(legendCmpt.set("disable",disable,void 0!==legend),disable)return legendCmpt;legend=legend||{};const scaleType=model.getScaleComponent(channel).get("type"),fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]),timeUnit=isFieldDef(fieldOrDatumDef)?normalizeTimeUnit(fieldOrDatumDef.timeUnit)?.unit:void 0,orient=legend.orient||config.legend.orient||"right",legendType=getLegendType({legend,channel,timeUnit,scaleType}),ruleParams={legend,channel,model,markDef,encoding,fieldOrDatumDef,legendConfig,config,scaleType,orient,legendType,direction:getDirection({legend,legendType,orient,legendConfig})};for(const property of LEGEND_COMPONENT_PROPERTIES){if("gradient"===legendType&&property.startsWith("symbol")||"symbol"===legendType&&property.startsWith("gradient"))continue;const value=property in legendRules?legendRules[property](ruleParams):legend[property];if(void 0!==value){const explicit=isExplicit$1(value,property,legend,model.fieldDef(channel));(explicit||void 0===config.legend[property])&&legendCmpt.set(property,value,explicit)}}const legendEncoding=legend?.encoding??{},selections=legendCmpt.get("selections"),legendEncode={},legendEncodeParams={fieldOrDatumDef,model,channel,legendCmpt,legendType};for(const part of["labels","legend","title","symbols","gradient","entries"]){const legendEncodingPart=guideEncodeEntry(legendEncoding[part]??{},model),value=part in legendEncodeRules?legendEncodeRules[part](legendEncodingPart,legendEncodeParams):legendEncodingPart;void 0===value||isEmpty(value)||(legendEncode[part]={...selections?.length&&isFieldDef(fieldOrDatumDef)?{name:`${varName(fieldOrDatumDef.field)}_legend_${part}`}:{},...selections?.length?{interactive:!!selections}:{},update:value})}return isEmpty(legendEncode)||legendCmpt.set("encode",legendEncode,!!legend?.encoding),legendCmpt}function mergeLegendComponent(mergedLegend,childLegend){if(!mergedLegend)return childLegend.clone();const mergedOrient=mergedLegend.getWithExplicit("orient"),childOrient=childLegend.getWithExplicit("orient");if(mergedOrient.explicit&&childOrient.explicit&&mergedOrient.value!==childOrient.value)return;let typeMerged=!1;for(const prop of LEGEND_COMPONENT_PROPERTIES){const mergedValueWithExplicit=mergeValuesWithExplicit(mergedLegend.getWithExplicit(prop),childLegend.getWithExplicit(prop),prop,"legend",((v1,v2)=>{switch(prop){case"symbolType":return mergeSymbolType(v1,v2);case"title":return mergeTitleComponent(v1,v2);case"type":return typeMerged=!0,makeImplicit("symbol")}return defaultTieBreaker(v1,v2,prop,"legend")}));mergedLegend.setWithExplicit(prop,mergedValueWithExplicit)}return typeMerged&&(mergedLegend.implicit?.encode?.gradient&&deleteNestedProperty(mergedLegend.implicit,["encode","gradient"]),mergedLegend.explicit?.encode?.gradient&&deleteNestedProperty(mergedLegend.explicit,["encode","gradient"])),mergedLegend}function mergeSymbolType(st1,st2){return"circle"===st2.value?st2:st1}function assembleLegends(model){const legendComponentIndex=model.component.legends,legendByDomain={};for(const channel of keys(legendComponentIndex)){const scaleComponent=model.getScaleComponent(channel),domainHash=stringify$1(scaleComponent.get("domains"));if(legendByDomain[domainHash])for(const mergedLegendComponent of legendByDomain[domainHash]){mergeLegendComponent(mergedLegendComponent,legendComponentIndex[channel])||legendByDomain[domainHash].push(legendComponentIndex[channel])}else legendByDomain[domainHash]=[legendComponentIndex[channel].clone()]}const legends=vals(legendByDomain).flat().map((l=>function assembleLegend(legendCmpt,config){const{disable,labelExpr,selections,...legend}=legendCmpt.combine();if(disable)return;!1===config.aria&&null==legend.aria&&(legend.aria=!1);if(legend.encode?.symbols){const out=legend.encode.symbols.update;!out.fill||"transparent"===out.fill.value||out.stroke||legend.stroke||(out.stroke={value:"transparent"});for(const property of LEGEND_SCALE_CHANNELS)legend[property]&&delete out[property]}legend.title||delete legend.title;if(void 0!==labelExpr){let expr=labelExpr;legend.encode?.labels?.update&&isSignalRef(legend.encode.labels.update.text)&&(expr=replaceAll(labelExpr,"datum.label",legend.encode.labels.update.text.signal)),function setLegendEncode(legend,part,vgProp,vgRef){var _a,_b;legend.encode??(legend.encode={}),(_a=legend.encode)[part]??(_a[part]={}),(_b=legend.encode[part]).update??(_b.update={}),legend.encode[part].update[vgProp]=vgRef}(legend,"labels","text",{signal:expr})}return legend}(l,model.config))).filter((l=>void 0!==l));return legends}function assembleProjections(model){return isLayerModel(model)||isConcatModel(model)?function assembleProjectionsForModelAndChildren(model){return model.children.reduce(((projections,child)=>projections.concat(child.assembleProjections())),assembleProjectionForModel(model))}(model):assembleProjectionForModel(model)}function assembleProjectionForModel(model){const component=model.component.projection;if(!component||component.merged)return[];const projection=component.combine(),{name}=projection;if(component.data){const size={signal:`[${component.size.map((ref=>ref.signal)).join(", ")}]`},fits=component.data.reduce(((sources,data)=>{const source=isSignalRef(data)?data.signal:`data('${model.lookupDataSource(data)}')`;return contains(sources,source)||sources.push(source),sources}),[]);if(fits.length<=0)throw new Error("Projection's fit didn't find any data sources");return[{name,size,fit:{signal:fits.length>1?`[${fits.join(", ")}]`:fits[0]},...projection}]}return[{name,translate:{signal:"[width / 2, height / 2]"},...projection}]}const PROJECTION_PROPERTIES=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];class ProjectionComponent extends Split{constructor(name,specifiedProjection,size,data){super({...specifiedProjection},{name}),this.specifiedProjection=specifiedProjection,this.size=size,this.data=data,this.merged=!1}get isFit(){return!!this.data}}function parseProjection(model){model.component.projection=isUnitModel(model)?function parseUnitProjection(model){if(model.hasProjection){const proj=replaceExprRef(model.specifiedProjection),fit=!(proj&&(null!=proj.scale||null!=proj.translate)),size=fit?[model.getSizeSignalRef("width"),model.getSizeSignalRef("height")]:void 0,data=fit?function gatherFitData(model){const data=[],{encoding}=model;for(const posssiblePair of[[LONGITUDE,LATITUDE],[LONGITUDE2,LATITUDE2]])(getFieldOrDatumDef(encoding[posssiblePair[0]])||getFieldOrDatumDef(encoding[posssiblePair[1]]))&&data.push({signal:model.getName(`geojson_${data.length}`)});model.channelHasField(SHAPE)&&model.typedFieldDef(SHAPE).type===GEOJSON&&data.push({signal:model.getName(`geojson_${data.length}`)});0===data.length&&data.push(model.requestDataName(DataSourceType.Main));return data}(model):void 0,projComp=new ProjectionComponent(model.projectionName(!0),{...replaceExprRef(model.config.projection)??{},...proj??{}},size,data);return projComp.get("type")||projComp.set("type","equalEarth",!1),projComp}return}(model):function parseNonUnitProjections(model){if(0===model.children.length)return;let nonUnitProjection;for(const child of model.children)parseProjection(child);const mergable=every(model.children,(child=>{const projection=child.component.projection;if(projection){if(nonUnitProjection){const merge=function mergeIfNoConflict(first,second){const allPropertiesShared=every(PROJECTION_PROPERTIES,(prop=>!has$1(first.explicit,prop)&&!has$1(second.explicit,prop)||!!(has$1(first.explicit,prop)&&has$1(second.explicit,prop)&&deepEqual(first.get(prop),second.get(prop))))),size=deepEqual(first.size,second.size);if(size){if(allPropertiesShared)return first;if(deepEqual(first.explicit,{}))return second;if(deepEqual(second.explicit,{}))return first}return null}(nonUnitProjection,projection);return merge&&(nonUnitProjection=merge),!!merge}return nonUnitProjection=projection,!0}return!0}));if(nonUnitProjection&&mergable){const name=model.projectionName(!0),modelProjection=new ProjectionComponent(name,nonUnitProjection.specifiedProjection,nonUnitProjection.size,duplicate(nonUnitProjection.data));for(const child of model.children){const projection=child.component.projection;projection&&(projection.isFit&&modelProjection.data.push(...child.component.projection.data),child.renameProjection(projection.get("name"),name),projection.merged=!0)}return modelProjection}return}(model)}function rangeFormula(model,fieldDef,channel,config){if(binRequiresRange(fieldDef,channel)){const guide=isUnitModel(model)?model.axis(channel)??model.legend(channel)??{}:{},startField=vgField(fieldDef,{expr:"datum"}),endField=vgField(fieldDef,{expr:"datum",binSuffix:"end"});return{formulaAs:vgField(fieldDef,{binSuffix:"range",forAs:!0}),formula:binFormatExpression(startField,endField,guide.format,guide.formatType,config)}}return{}}function binKey(bin,field){return`${binToString(bin)}_${field}`}function getBinSignalName(model,field,bin){const key=binKey(normalizeBin(bin,void 0)??{},field);return model.getName(`${key}_bins`)}function createBinComponent(t,bin,model){let as,span;as=function isBinTransform(t){return"as"in t}(t)?isString(t.as)?[t.as,`${t.as}_end`]:[t.as[0],t.as[1]]:[vgField(t,{forAs:!0}),vgField(t,{binSuffix:"end",forAs:!0})];const normalizedBin={...normalizeBin(bin,void 0)},key=binKey(normalizedBin,t.field),{signal,extentSignal}=function getSignalsFromModel(model,key){return{signal:model.getName(`${key}_bins`),extentSignal:model.getName(`${key}_extent`)}}(model,key);if(isParameterExtent(normalizedBin.extent)){const ext=normalizedBin.extent;span=parseSelectionExtent(model,ext.param,ext),delete normalizedBin.extent}return{key,binComponent:{bin:normalizedBin,field:t.field,as:[as],...signal?{signal}:{},...extentSignal?{extentSignal}:{},...span?{span}:{}}}}class BinNode extends DataFlowNode{clone(){return new BinNode(null,duplicate(this.bins))}constructor(parent,bins){super(parent),this.bins=bins}static makeFromEncoding(parent,model){const bins=model.reduceFieldDef(((binComponentIndex,fieldDef,channel)=>{if(isTypedFieldDef(fieldDef)&&isBinning(fieldDef.bin)){const{key,binComponent}=createBinComponent(fieldDef,fieldDef.bin,model);binComponentIndex[key]={...binComponent,...binComponentIndex[key],...rangeFormula(model,fieldDef,channel,model.config)}}return binComponentIndex}),{});return isEmpty(bins)?null:new BinNode(parent,bins)}static makeFromTransform(parent,t,model){const{key,binComponent}=createBinComponent(t,t.bin,model);return new BinNode(parent,{[key]:binComponent})}merge(other,renameSignal){for(const key of keys(other.bins))key in this.bins?(renameSignal(other.bins[key].signal,this.bins[key].signal),this.bins[key].as=unique([...this.bins[key].as,...other.bins[key].as],hash)):this.bins[key]=other.bins[key];for(const child of other.children)other.removeChild(child),child.parent=this;other.remove()}producedFields(){return new Set(vals(this.bins).map((c=>c.as)).flat(2))}dependentFields(){return new Set(vals(this.bins).map((c=>c.field)))}hash(){return`Bin ${hash(this.bins)}`}assemble(){return vals(this.bins).flatMap((bin=>{const transform=[],[binAs,...remainingAs]=bin.as,{extent,...params}=bin.bin,binTrans={type:"bin",field:replacePathInField(bin.field),as:binAs,signal:bin.signal,...isParameterExtent(extent)?{extent:null}:{extent},...bin.span?{span:{signal:`span(${bin.span})`}}:{},...params};!extent&&bin.extentSignal&&(transform.push({type:"extent",field:replacePathInField(bin.field),signal:bin.extentSignal}),binTrans.extent={signal:bin.extentSignal}),transform.push(binTrans);for(const as of remainingAs)for(let i=0;i<2;i++)transform.push({type:"formula",expr:vgField({field:binAs[i]},{expr:"datum"}),as:as[i]});return bin.formula&&transform.push({type:"formula",expr:bin.formula,as:bin.formulaAs}),transform}))}}function addDimension(dims,channel,fieldDef,model){const channelDef2=isUnitModel(model)?model.encoding[getSecondaryRangeChannel(channel)]:void 0;if(isTypedFieldDef(fieldDef)&&isUnitModel(model)&&hasBandEnd(fieldDef,channelDef2,model.markDef,model.config))dims.add(vgField(fieldDef,{})),dims.add(vgField(fieldDef,{suffix:"end"})),fieldDef.bin&&binRequiresRange(fieldDef,channel)&&dims.add(vgField(fieldDef,{binSuffix:"range"}));else if(isGeoPositionChannel(channel)){const posChannel=getPositionChannelFromLatLong(channel);dims.add(model.getName(posChannel))}else dims.add(vgField(fieldDef));return isScaleFieldDef(fieldDef)&&function isFieldRange(range){return isObject(range)&&"field"in range}(fieldDef.scale?.range)&&dims.add(fieldDef.scale.range.field),dims}class AggregateNode extends DataFlowNode{clone(){return new AggregateNode(null,new Set(this.dimensions),duplicate(this.measures))}constructor(parent,dimensions,measures){super(parent),this.dimensions=dimensions,this.measures=measures}get groupBy(){return this.dimensions}static makeFromEncoding(parent,model){let isAggregate=!1;model.forEachFieldDef((fd=>{fd.aggregate&&(isAggregate=!0)}));const meas={},dims=new Set;return isAggregate?(model.forEachFieldDef(((fieldDef,channel)=>{const{aggregate,field}=fieldDef;if(aggregate)if("count"===aggregate)meas["*"]??(meas["*"]={}),meas["*"].count=new Set([vgField(fieldDef,{forAs:!0})]);else{if(isArgminDef(aggregate)||isArgmaxDef(aggregate)){const op=isArgminDef(aggregate)?"argmin":"argmax",argField=aggregate[op];meas[argField]??(meas[argField]={}),meas[argField][op]=new Set([vgField({op,field:argField},{forAs:!0})])}else meas[field]??(meas[field]={}),meas[field][aggregate]=new Set([vgField(fieldDef,{forAs:!0})]);isScaleChannel(channel)&&"unaggregated"===model.scaleDomain(channel)&&(meas[field]??(meas[field]={}),meas[field].min=new Set([vgField({field,aggregate:"min"},{forAs:!0})]),meas[field].max=new Set([vgField({field,aggregate:"max"},{forAs:!0})]))}else addDimension(dims,channel,fieldDef,model)})),dims.size+keys(meas).length===0?null:new AggregateNode(parent,dims,meas)):null}static makeFromTransform(parent,t){const dims=new Set,meas={};for(const s of t.aggregate){const{op,field,as}=s;op&&("count"===op?(meas["*"]??(meas["*"]={}),meas["*"].count=new Set([as||vgField(s,{forAs:!0})])):(meas[field]??(meas[field]={}),meas[field][op]=new Set([as||vgField(s,{forAs:!0})])))}for(const s of t.groupby??[])dims.add(s);return dims.size+keys(meas).length===0?null:new AggregateNode(parent,dims,meas)}merge(other){return setEqual(this.dimensions,other.dimensions)?(function mergeMeasures(parentMeasures,childMeasures){for(const field of keys(childMeasures)){const ops=childMeasures[field];for(const op of keys(ops))field in parentMeasures?parentMeasures[field][op]=new Set([...parentMeasures[field][op]??[],...ops[op]]):parentMeasures[field]={[op]:ops[op]}}}(this.measures,other.measures),!0):(function debug$2(...args){current.debug(...args)}("different dimensions, cannot merge"),!1)}addDimensions(fields){fields.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...keys(this.measures)])}producedFields(){const out=new Set;for(const field of keys(this.measures))for(const op of keys(this.measures[field])){const m=this.measures[field][op];0===m.size?out.add(`${op}_${field}`):m.forEach(out.add,out)}return out}hash(){return`Aggregate ${hash({dimensions:this.dimensions,measures:this.measures})}`}assemble(){const ops=[],fields=[],as=[];for(const field of keys(this.measures))for(const op of keys(this.measures[field]))for(const alias of this.measures[field][op])as.push(alias),ops.push(op),fields.push("*"===field?null:replacePathInField(field));return{type:"aggregate",groupby:[...this.dimensions].map(replacePathInField),ops,fields,as}}}class FacetNode extends DataFlowNode{constructor(parent,model,name,data){super(parent),this.model=model,this.name=name,this.data=data;for(const channel of FACET_CHANNELS){const fieldDef=model.facet[channel];if(fieldDef){const{bin,sort}=fieldDef;this[channel]={name:model.getName(`${channel}_domain`),fields:[vgField(fieldDef),...isBinning(bin)?[vgField(fieldDef,{binSuffix:"end"})]:[]],...isSortField(sort)?{sortField:sort}:isArray(sort)?{sortIndexField:sortArrayIndexField(fieldDef,channel)}:{}}}}this.childModel=model.child}hash(){let out="Facet";for(const channel of FACET_CHANNELS)this[channel]&&(out+=` ${channel.charAt(0)}:${hash(this[channel])}`);return out}get fields(){const f=[];for(const channel of FACET_CHANNELS)this[channel]?.fields&&f.push(...this[channel].fields);return f}dependentFields(){const depFields=new Set(this.fields);for(const channel of FACET_CHANNELS)this[channel]&&(this[channel].sortField&&depFields.add(this[channel].sortField.field),this[channel].sortIndexField&&depFields.add(this[channel].sortIndexField));return depFields}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){const childIndependentFieldsWithStep={};for(const channel of POSITION_SCALE_CHANNELS){const childScaleComponent=this.childModel.component.scales[channel];if(childScaleComponent&&!childScaleComponent.merged){const type=childScaleComponent.get("type"),range=childScaleComponent.get("range");if(hasDiscreteDomain(type)&&isVgRangeStep(range)){const field=getFieldFromDomain(assembleDomain(this.childModel,channel));field?childIndependentFieldsWithStep[channel]=field:warn(unknownField(channel))}}}return childIndependentFieldsWithStep}assembleRowColumnHeaderData(channel,crossedDataName,childIndependentFieldsWithStep){const childChannel={row:"y",column:"x",facet:void 0}[channel],fields=[],ops=[],as=[];childChannel&&childIndependentFieldsWithStep&&childIndependentFieldsWithStep[childChannel]&&(crossedDataName?(fields.push(`distinct_${childIndependentFieldsWithStep[childChannel]}`),ops.push("max")):(fields.push(childIndependentFieldsWithStep[childChannel]),ops.push("distinct")),as.push(`distinct_${childIndependentFieldsWithStep[childChannel]}`));const{sortField,sortIndexField}=this[channel];if(sortField){const{op=DEFAULT_SORT_OP,field}=sortField;fields.push(field),ops.push(op),as.push(vgField(sortField,{forAs:!0}))}else sortIndexField&&(fields.push(sortIndexField),ops.push("max"),as.push(sortIndexField));return{name:this[channel].name,source:crossedDataName??this.data,transform:[{type:"aggregate",groupby:this[channel].fields,...fields.length?{fields,ops,as}:{}}]}}assembleFacetHeaderData(childIndependentFieldsWithStep){const{columns}=this.model.layout,{layoutHeaders}=this.model.component,data=[],hasSharedAxis={};for(const headerChannel of HEADER_CHANNELS){for(const headerType of HEADER_TYPES){const headers=(layoutHeaders[headerChannel]&&layoutHeaders[headerChannel][headerType])??[];for(const header of headers)if(header.axes?.length>0){hasSharedAxis[headerChannel]=!0;break}}if(hasSharedAxis[headerChannel]){const cardinality=`length(data("${this.facet.name}"))`,stop="row"===headerChannel?columns?{signal:`ceil(${cardinality} / ${columns})`}:1:columns?{signal:`min(${cardinality}, ${columns})`}:{signal:cardinality};data.push({name:`${this.facet.name}_${headerChannel}`,transform:[{type:"sequence",start:0,stop}]})}}const{row,column}=hasSharedAxis;return(row||column)&&data.unshift(this.assembleRowColumnHeaderData("facet",null,childIndependentFieldsWithStep)),data}assemble(){const data=[];let crossedDataName=null;const childIndependentFieldsWithStep=this.getChildIndependentFieldsWithStep(),{column,row,facet}=this;if(column&&row&&(childIndependentFieldsWithStep.x||childIndependentFieldsWithStep.y)){crossedDataName=`cross_${this.column.name}_${this.row.name}`;const fields=[].concat(childIndependentFieldsWithStep.x??[],childIndependentFieldsWithStep.y??[]),ops=fields.map((()=>"distinct"));data.push({name:crossedDataName,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields,ops}]})}for(const channel of[COLUMN,ROW])this[channel]&&data.push(this.assembleRowColumnHeaderData(channel,crossedDataName,childIndependentFieldsWithStep));if(facet){const facetData=this.assembleFacetHeaderData(childIndependentFieldsWithStep);facetData&&data.push(...facetData)}return data}}function unquote(pattern){return pattern.startsWith("'")&&pattern.endsWith("'")||pattern.startsWith('"')&&pattern.endsWith('"')?pattern.slice(1,-1):pattern}function getImplicitFromFilterTransform(transform){const implicit={};return forEachLeaf(transform.filter,(filter=>{if(isFieldPredicate(filter)){let val=null;isFieldEqualPredicate(filter)?val=signalRefOrValue(filter.equal):isFieldLTEPredicate(filter)?val=signalRefOrValue(filter.lte):isFieldLTPredicate(filter)?val=signalRefOrValue(filter.lt):isFieldGTPredicate(filter)?val=signalRefOrValue(filter.gt):isFieldGTEPredicate(filter)?val=signalRefOrValue(filter.gte):isFieldRangePredicate(filter)?val=filter.range[0]:isFieldOneOfPredicate(filter)&&(val=(filter.oneOf??filter.in)[0]),val&&(isDateTime(val)?implicit[filter.field]="date":isNumber$1(val)?implicit[filter.field]="number":isString(val)&&(implicit[filter.field]="string")),filter.timeUnit&&(implicit[filter.field]="date")}})),implicit}function getImplicitFromEncoding(model){const implicit={};function add(fieldDef){isFieldOrDatumDefForTimeFormat(fieldDef)?implicit[fieldDef.field]="date":"quantitative"===fieldDef.type&&function isMinMaxOp(aggregate){return isString(aggregate)&&contains(["min","max"],aggregate)}(fieldDef.aggregate)?implicit[fieldDef.field]="number":accessPathDepth(fieldDef.field)>1?fieldDef.field in implicit||(implicit[fieldDef.field]="flatten"):isScaleFieldDef(fieldDef)&&isSortField(fieldDef.sort)&&accessPathDepth(fieldDef.sort.field)>1&&(fieldDef.sort.field in implicit||(implicit[fieldDef.sort.field]="flatten"))}if((isUnitModel(model)||isFacetModel(model))&&model.forEachFieldDef(((fieldDef,channel)=>{if(isTypedFieldDef(fieldDef))add(fieldDef);else{const mainChannel=getMainRangeChannel(channel),mainFieldDef=model.fieldDef(mainChannel);add({...fieldDef,type:mainFieldDef.type})}})),isUnitModel(model)){const{mark,markDef,encoding}=model;if(isPathMark(mark)&&!model.encoding.order){const dimensionChannelDef=encoding["horizontal"===markDef.orient?"y":"x"];isFieldDef(dimensionChannelDef)&&"quantitative"===dimensionChannelDef.type&&!(dimensionChannelDef.field in implicit)&&(implicit[dimensionChannelDef.field]="number")}}return implicit}class ParseNode extends DataFlowNode{clone(){return new ParseNode(null,duplicate(this._parse))}constructor(parent,parse){super(parent),this._parse=parse}hash(){return`Parse ${hash(this._parse)}`}static makeExplicit(parent,model,ancestorParse){let explicit={};const data=model.data;return!isGenerator(data)&&data?.format?.parse&&(explicit=data.format.parse),this.makeWithAncestors(parent,explicit,{},ancestorParse)}static makeWithAncestors(parent,explicit,implicit,ancestorParse){for(const field of keys(implicit)){const parsedAs=ancestorParse.getWithExplicit(field);void 0!==parsedAs.value&&(parsedAs.explicit||parsedAs.value===implicit[field]||"derived"===parsedAs.value||"flatten"===implicit[field]?delete implicit[field]:warn(differentParse(field,implicit[field],parsedAs.value)))}for(const field of keys(explicit)){const parsedAs=ancestorParse.get(field);void 0!==parsedAs&&(parsedAs===explicit[field]?delete explicit[field]:warn(differentParse(field,explicit[field],parsedAs)))}const parse=new Split(explicit,implicit);ancestorParse.copyAll(parse);const p={};for(const key of keys(parse.combine())){const val=parse.get(key);null!==val&&(p[key]=val)}return 0===keys(p).length||ancestorParse.parseNothing?null:new ParseNode(parent,p)}get parse(){return this._parse}merge(other){this._parse={...this._parse,...other.parse},other.remove()}assembleFormatParse(){const formatParse={};for(const field of keys(this._parse)){const p=this._parse[field];1===accessPathDepth(field)&&(formatParse[field]=p)}return formatParse}producedFields(){return new Set(keys(this._parse))}dependentFields(){return new Set(keys(this._parse))}assembleTransforms(onlyNested=!1){return keys(this._parse).filter((field=>!onlyNested||accessPathDepth(field)>1)).map((field=>{const expr=function parseExpression(field,parse){const f=accessPathWithDatum(field);if("number"===parse)return`toNumber(${f})`;if("boolean"===parse)return`toBoolean(${f})`;if("string"===parse)return`toString(${f})`;if("date"===parse)return`toDate(${f})`;if("flatten"===parse)return f;if(parse.startsWith("date:"))return`timeParse(${f},'${unquote(parse.slice(5,parse.length))}')`;if(parse.startsWith("utc:"))return`utcParse(${f},'${unquote(parse.slice(4,parse.length))}')`;return warn(function unrecognizedParse(p){return`Unrecognized parse "${p}".`}(parse)),null}(field,this._parse[field]);if(!expr)return null;return{type:"formula",expr,as:removePathFromField(field)}})).filter((t=>null!==t))}}class IdentifierNode extends DataFlowNode{clone(){return new IdentifierNode(null)}constructor(parent){super(parent)}dependentFields(){return new Set}producedFields(){return new Set(["_vgsid_"])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:"_vgsid_"}}}class GraticuleNode extends DataFlowNode{clone(){return new GraticuleNode(null,this.params)}constructor(parent,params){super(parent),this.params=params}dependentFields(){return new Set}producedFields(){}hash(){return`Graticule ${hash(this.params)}`}assemble(){return{type:"graticule",...!0===this.params?{}:this.params}}}class SequenceNode extends DataFlowNode{clone(){return new SequenceNode(null,this.params)}constructor(parent,params){super(parent),this.params=params}dependentFields(){return new Set}producedFields(){return new Set([this.params.as??"data"])}hash(){return`Hash ${hash(this.params)}`}assemble(){return{type:"sequence",...this.params}}}class SourceNode extends DataFlowNode{constructor(data){let format;if(super(null),data??(data={name:"source"}),isGenerator(data)||(format=data.format?{...omit(data.format,["parse"])}:{}),isInlineData(data))this._data={values:data.values};else if(isUrlData(data)){if(this._data={url:data.url},!format.type){let defaultExtension=/(?:\.([^.]+))?$/.exec(data.url)[1];contains(["json","csv","tsv","dsv","topojson"],defaultExtension)||(defaultExtension="json"),format.type=defaultExtension}}else isSphereGenerator(data)?this._data={values:[{type:"Sphere"}]}:(isNamedData(data)||isGenerator(data))&&(this._data={});this._generator=isGenerator(data),data.name&&(this._name=data.name),format&&!isEmpty(format)&&(this._data.format=format)}dependentFields(){return new Set}producedFields(){}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(name){this._name=name}set parent(parent){throw new Error("Source nodes have to be roots.")}remove(){throw new Error("Source nodes are roots and cannot be removed.")}hash(){throw new Error("Cannot hash sources")}assemble(){return{name:this._name,...this._data,transform:[]}}}var _Optimizer_modified,__classPrivateFieldSet=function(receiver,state,value,kind,f){if("m"===kind)throw new TypeError("Private method is not writable");if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===kind?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value},__classPrivateFieldGet=function(receiver,state,kind,f){if("a"===kind&&!f)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof state?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===kind?f:"a"===kind?f.call(receiver):f?f.value:state.get(receiver)};function isDataSourceNode(node){return node instanceof SourceNode||node instanceof GraticuleNode||node instanceof SequenceNode}class Optimizer{constructor(){_Optimizer_modified.set(this,void 0),__classPrivateFieldSet(this,_Optimizer_modified,!1,"f")}setModified(){__classPrivateFieldSet(this,_Optimizer_modified,!0,"f")}get modifiedFlag(){return __classPrivateFieldGet(this,_Optimizer_modified,"f")}}_Optimizer_modified=new WeakMap;class BottomUpOptimizer extends Optimizer{getNodeDepths(node,depth,depths){depths.set(node,depth);for(const child of node.children)this.getNodeDepths(child,depth+1,depths);return depths}optimize(node){const topologicalSort=[...this.getNodeDepths(node,0,new Map).entries()].sort(((a,b)=>b[1]-a[1]));for(const tuple of topologicalSort)this.run(tuple[0]);return this.modifiedFlag}}class TopDownOptimizer extends Optimizer{optimize(node){this.run(node);for(const child of node.children)this.optimize(child);return this.modifiedFlag}}class MergeIdenticalNodes extends TopDownOptimizer{mergeNodes(parent,nodes){const mergedNode=nodes.shift();for(const node of nodes)parent.removeChild(node),node.parent=mergedNode,node.remove()}run(node){const hashes=node.children.map((x=>x.hash())),buckets={};for(let i=0;i1&&(this.setModified(),this.mergeNodes(node,buckets[k]))}}class RemoveUnnecessaryIdentifierNodes extends TopDownOptimizer{constructor(model){super(),this.requiresSelectionId=model&&requiresSelectionId(model)}run(node){node instanceof IdentifierNode&&(this.requiresSelectionId&&(isDataSourceNode(node.parent)||node.parent instanceof AggregateNode||node.parent instanceof ParseNode)||(this.setModified(),node.remove()))}}class RemoveDuplicateTimeUnits extends Optimizer{optimize(node){return this.run(node,new Set),this.modifiedFlag}run(node,timeUnitFields){let producedFields=new Set;node instanceof TimeUnitNode&&(producedFields=node.producedFields(),hasIntersection(producedFields,timeUnitFields)&&(this.setModified(),node.removeFormulas(timeUnitFields),0===node.producedFields.length&&node.remove()));for(const child of node.children)this.run(child,new Set([...timeUnitFields,...producedFields]))}}class RemoveUnnecessaryOutputNodes extends TopDownOptimizer{constructor(){super()}run(node){node instanceof OutputNode&&!node.isRequired()&&(this.setModified(),node.remove())}}class MoveParseUp extends BottomUpOptimizer{run(node){if(!(isDataSourceNode(node)||node.numChildren()>1))for(const child of node.children)if(child instanceof ParseNode)if(node instanceof ParseNode)this.setModified(),node.merge(child);else{if(fieldIntersection(node.producedFields(),child.dependentFields()))continue;this.setModified(),child.swapWithParent()}}}class MergeParse extends BottomUpOptimizer{run(node){const originalChildren=[...node.children],parseChildren=node.children.filter((child=>child instanceof ParseNode));if(node.numChildren()>1&&parseChildren.length>=1){const commonParse={},conflictingParse=new Set;for(const parseNode of parseChildren){const parse=parseNode.parse;for(const k of keys(parse))k in commonParse?commonParse[k]!==parse[k]&&conflictingParse.add(k):commonParse[k]=parse[k]}for(const field of conflictingParse)delete commonParse[field];if(!isEmpty(commonParse)){this.setModified();const mergedParseNode=new ParseNode(node,commonParse);for(const childNode of originalChildren){if(childNode instanceof ParseNode)for(const key of keys(commonParse))delete childNode.parse[key];node.removeChild(childNode),childNode.parent=mergedParseNode,childNode instanceof ParseNode&&0===keys(childNode.parse).length&&childNode.remove()}}}}}class RemoveUnusedSubtrees extends BottomUpOptimizer{run(node){node instanceof OutputNode||node.numChildren()>0||node instanceof FacetNode||node instanceof SourceNode||(this.setModified(),node.remove())}}class MergeTimeUnits extends BottomUpOptimizer{run(node){const timeUnitChildren=node.children.filter((x=>x instanceof TimeUnitNode)),combination=timeUnitChildren.pop();for(const timeUnit of timeUnitChildren)this.setModified(),combination.merge(timeUnit)}}class MergeAggregates extends BottomUpOptimizer{run(node){const aggChildren=node.children.filter((child=>child instanceof AggregateNode)),groupedAggregates={};for(const agg of aggChildren){const groupBys=hash(agg.groupBy);groupBys in groupedAggregates||(groupedAggregates[groupBys]=[]),groupedAggregates[groupBys].push(agg)}for(const group of keys(groupedAggregates)){const mergeableAggs=groupedAggregates[group];if(mergeableAggs.length>1){const mergedAggs=mergeableAggs.pop();for(const agg of mergeableAggs)mergedAggs.merge(agg)&&(node.removeChild(agg),agg.parent=mergedAggs,agg.remove(),this.setModified())}}}}class MergeBins extends BottomUpOptimizer{constructor(model){super(),this.model=model}run(node){const moveBinsUp=!(isDataSourceNode(node)||node instanceof FilterNode||node instanceof ParseNode||node instanceof IdentifierNode),promotableBins=[],remainingBins=[];for(const child of node.children)child instanceof BinNode&&(moveBinsUp&&!fieldIntersection(node.producedFields(),child.dependentFields())?promotableBins.push(child):remainingBins.push(child));if(promotableBins.length>0){const promotedBin=promotableBins.pop();for(const bin of promotableBins)promotedBin.merge(bin,this.model.renameSignal.bind(this.model));this.setModified(),node instanceof BinNode?node.merge(promotedBin,this.model.renameSignal.bind(this.model)):promotedBin.swapWithParent()}if(remainingBins.length>1){const remainingBin=remainingBins.pop();for(const bin of remainingBins)remainingBin.merge(bin,this.model.renameSignal.bind(this.model));this.setModified()}}}class MergeOutputs extends BottomUpOptimizer{run(node){const children=[...node.children];if(!some(children,(child=>child instanceof OutputNode))||node.numChildren()<=1)return;const otherChildren=[];let mainOutput;for(const child of children)if(child instanceof OutputNode){let lastOutput=child;for(;1===lastOutput.numChildren();){const[theChild]=lastOutput.children;if(!(theChild instanceof OutputNode))break;lastOutput=theChild}otherChildren.push(...lastOutput.children),mainOutput?(node.removeChild(child),child.parent=mainOutput.parent,mainOutput.parent.removeChild(mainOutput),mainOutput.parent=lastOutput,this.setModified()):mainOutput=lastOutput}else otherChildren.push(child);if(otherChildren.length){this.setModified();for(const child of otherChildren)child.parent.removeChild(child),child.parent=mainOutput}}}class JoinAggregateTransformNode extends DataFlowNode{clone(){return new JoinAggregateTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform}addDimensions(fields){this.transform.groupby=unique(this.transform.groupby.concat(fields),(d=>d))}dependentFields(){const out=new Set;return this.transform.groupby&&this.transform.groupby.forEach(out.add,out),this.transform.joinaggregate.map((w=>w.field)).filter((f=>void 0!==f)).forEach(out.add,out),out}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(joinAggregateFieldDef){return joinAggregateFieldDef.as??vgField(joinAggregateFieldDef)}hash(){return`JoinAggregateTransform ${hash(this.transform)}`}assemble(){const fields=[],ops=[],as=[];for(const joinaggregate of this.transform.joinaggregate)ops.push(joinaggregate.op),as.push(this.getDefaultName(joinaggregate)),fields.push(void 0===joinaggregate.field?null:joinaggregate.field);const groupby=this.transform.groupby;return{type:"joinaggregate",as,ops,fields,...void 0!==groupby?{groupby}:{}}}}class StackNode extends DataFlowNode{clone(){return new StackNode(null,duplicate(this._stack))}constructor(parent,stack){super(parent),this._stack=stack}static makeFromTransform(parent,stackTransform){const{stack,groupby,as,offset="zero"}=stackTransform,sortFields=[],sortOrder=[];if(void 0!==stackTransform.sort)for(const sortField of stackTransform.sort)sortFields.push(sortField.field),sortOrder.push(getFirstDefined(sortField.order,"ascending"));const sort={field:sortFields,order:sortOrder};let normalizedAs;return normalizedAs=function isValidAsArray(as){return isArray(as)&&as.every((s=>isString(s)))&&as.length>1}(as)?as:isString(as)?[as,`${as}_end`]:[`${stackTransform.stack}_start`,`${stackTransform.stack}_end`],new StackNode(parent,{dimensionFieldDefs:[],stackField:stack,groupby,offset,sort,facetby:[],as:normalizedAs})}static makeFromEncoding(parent,model){const stackProperties=model.stack,{encoding}=model;if(!stackProperties)return null;const{groupbyChannels,fieldChannel,offset,impute}=stackProperties,dimensionFieldDefs=groupbyChannels.map((groupbyChannel=>getFieldDef(encoding[groupbyChannel]))).filter((def=>!!def)),stackby=function getStackByFields(model){return model.stack.stackBy.reduce(((fields,by)=>{const _field=vgField(by.fieldDef);return _field&&fields.push(_field),fields}),[])}(model),orderDef=model.encoding.order;let sort;if(isArray(orderDef)||isFieldDef(orderDef))sort=sortParams(orderDef);else{const sortOrder=isOrderOnlyDef(orderDef)?orderDef.sort:"y"===fieldChannel?"descending":"ascending";sort=stackby.reduce(((s,field)=>(s.field.push(field),s.order.push(sortOrder),s)),{field:[],order:[]})}return new StackNode(parent,{dimensionFieldDefs,stackField:model.vgField(fieldChannel),facetby:[],stackby,sort,offset,impute,as:[model.vgField(fieldChannel,{suffix:"start",forAs:!0}),model.vgField(fieldChannel,{suffix:"end",forAs:!0})]})}get stack(){return this._stack}addDimensions(fields){this._stack.facetby.push(...fields)}dependentFields(){const out=new Set;return out.add(this._stack.stackField),this.getGroupbyFields().forEach(out.add,out),this._stack.facetby.forEach(out.add,out),this._stack.sort.field.forEach(out.add,out),out}producedFields(){return new Set(this._stack.as)}hash(){return`Stack ${hash(this._stack)}`}getGroupbyFields(){const{dimensionFieldDefs,impute,groupby}=this._stack;return dimensionFieldDefs.length>0?dimensionFieldDefs.map((dimensionFieldDef=>dimensionFieldDef.bin?impute?[vgField(dimensionFieldDef,{binSuffix:"mid"})]:[vgField(dimensionFieldDef,{}),vgField(dimensionFieldDef,{binSuffix:"end"})]:[vgField(dimensionFieldDef)])).flat():groupby??[]}assemble(){const transform=[],{facetby,dimensionFieldDefs,stackField:field,stackby,sort,offset,impute,as}=this._stack;if(impute)for(const dimensionFieldDef of dimensionFieldDefs){const{bandPosition=.5,bin}=dimensionFieldDef;if(bin){const binStart=vgField(dimensionFieldDef,{expr:"datum"}),binEnd=vgField(dimensionFieldDef,{expr:"datum",binSuffix:"end"});transform.push({type:"formula",expr:`${bandPosition}*${binStart}+${1-bandPosition}*${binEnd}`,as:vgField(dimensionFieldDef,{binSuffix:"mid",forAs:!0})})}transform.push({type:"impute",field,groupby:[...stackby,...facetby],key:vgField(dimensionFieldDef,{binSuffix:"mid"}),method:"value",value:0})}return transform.push({type:"stack",groupby:[...this.getGroupbyFields(),...facetby],field,sort,as,offset}),transform}}class WindowTransformNode extends DataFlowNode{clone(){return new WindowTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform}addDimensions(fields){this.transform.groupby=unique(this.transform.groupby.concat(fields),(d=>d))}dependentFields(){const out=new Set;return(this.transform.groupby??[]).forEach(out.add,out),(this.transform.sort??[]).forEach((m=>out.add(m.field))),this.transform.window.map((w=>w.field)).filter((f=>void 0!==f)).forEach(out.add,out),out}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(windowFieldDef){return windowFieldDef.as??vgField(windowFieldDef)}hash(){return`WindowTransform ${hash(this.transform)}`}assemble(){const fields=[],ops=[],as=[],params=[];for(const window of this.transform.window)ops.push(window.op),as.push(this.getDefaultName(window)),params.push(void 0===window.param?null:window.param),fields.push(void 0===window.field?null:window.field);const frame=this.transform.frame,groupby=this.transform.groupby;if(frame&&null===frame[0]&&null===frame[1]&&ops.every((o=>isAggregateOp(o))))return{type:"joinaggregate",as,ops,fields,...void 0!==groupby?{groupby}:{}};const sortFields=[],sortOrder=[];if(void 0!==this.transform.sort)for(const sortField of this.transform.sort)sortFields.push(sortField.field),sortOrder.push(sortField.order??"ascending");const sort={field:sortFields,order:sortOrder},ignorePeers=this.transform.ignorePeers;return{type:"window",params,as,ops,fields,sort,...void 0!==ignorePeers?{ignorePeers}:{},...void 0!==groupby?{groupby}:{},...void 0!==frame?{frame}:{}}}}function moveFacetDown(node){if(node instanceof FacetNode)if(1!==node.numChildren()||node.children[0]instanceof OutputNode){const facetMain=node.model.component.data.main;moveMainDownToFacet(facetMain);const cloner=function cloneSubtree(facet){return function clone(node){if(!(node instanceof FacetNode)){const copy=node.clone();if(copy instanceof OutputNode){const newName=FACET_SCALE_PREFIX+copy.getSource();copy.setSource(newName),facet.model.component.data.outputNodes[newName]=copy}else(copy instanceof AggregateNode||copy instanceof StackNode||copy instanceof WindowTransformNode||copy instanceof JoinAggregateTransformNode)&©.addDimensions(facet.fields);for(const n of node.children.flatMap(clone))n.parent=copy;return[copy]}return node.children.flatMap(clone)}}(node),copy=node.children.map(cloner).flat();for(const c of copy)c.parent=facetMain}else{const child=node.children[0];(child instanceof AggregateNode||child instanceof StackNode||child instanceof WindowTransformNode||child instanceof JoinAggregateTransformNode)&&child.addDimensions(node.fields),child.swapWithParent(),moveFacetDown(node)}else node.children.map(moveFacetDown)}function moveMainDownToFacet(node){if(node instanceof OutputNode&&node.type===DataSourceType.Main&&1===node.numChildren()){const child=node.children[0];child instanceof FacetNode||(child.swapWithParent(),moveMainDownToFacet(node))}}const FACET_SCALE_PREFIX="scale_",MAX_OPTIMIZATION_RUNS=5;function checkLinks(nodes){for(const node of nodes){for(const child of node.children)if(child.parent!==node)return!1;if(!checkLinks(node.children))return!1}return!0}function runOptimizer(optimizer,nodes){let modified=!1;for(const node of nodes)modified=optimizer.optimize(node)||modified;return modified}function optimizationDataflowHelper(dataComponent,model,firstPass){let roots=dataComponent.sources,modified=!1;return modified=runOptimizer(new RemoveUnnecessaryOutputNodes,roots)||modified,modified=runOptimizer(new RemoveUnnecessaryIdentifierNodes(model),roots)||modified,roots=roots.filter((r=>r.numChildren()>0)),modified=runOptimizer(new RemoveUnusedSubtrees,roots)||modified,roots=roots.filter((r=>r.numChildren()>0)),firstPass||(modified=runOptimizer(new MoveParseUp,roots)||modified,modified=runOptimizer(new MergeBins(model),roots)||modified,modified=runOptimizer(new RemoveDuplicateTimeUnits,roots)||modified,modified=runOptimizer(new MergeParse,roots)||modified,modified=runOptimizer(new MergeAggregates,roots)||modified,modified=runOptimizer(new MergeTimeUnits,roots)||modified,modified=runOptimizer(new MergeIdenticalNodes,roots)||modified,modified=runOptimizer(new MergeOutputs,roots)||modified),dataComponent.sources=roots,modified}class SignalRefWrapper{constructor(exprGenerator){Object.defineProperty(this,"signal",{enumerable:!0,get:exprGenerator})}static fromName(rename,signalName){return new SignalRefWrapper((()=>rename(signalName)))}}function parseScaleDomain(model){isUnitModel(model)?function parseUnitScaleDomain(model){const localScaleComponents=model.component.scales;for(const channel of keys(localScaleComponents)){const domains=parseDomainForChannel(model,channel);if(localScaleComponents[channel].setWithExplicit("domains",domains),parseSelectionDomain(model,channel),model.component.data.isFaceted){let facetParent=model;for(;!isFacetModel(facetParent)&&facetParent.parent;)facetParent=facetParent.parent;if("shared"===facetParent.component.resolve.scale[channel])for(const domain of domains.value)isDataRefDomain(domain)&&(domain.data=FACET_SCALE_PREFIX+domain.data.replace(FACET_SCALE_PREFIX,""))}}}(model):function parseNonUnitScaleDomain(model){for(const child of model.children)parseScaleDomain(child);const localScaleComponents=model.component.scales;for(const channel of keys(localScaleComponents)){let domains,selectionExtent=null;for(const child of model.children){const childComponent=child.component.scales[channel];if(childComponent){domains=void 0===domains?childComponent.getWithExplicit("domains"):mergeValuesWithExplicit(domains,childComponent.getWithExplicit("domains"),"domains","scale",domainsTieBreaker);const se=childComponent.get("selectionExtent");selectionExtent&&se&&selectionExtent.param!==se.param&&warn(NEEDS_SAME_SELECTION),selectionExtent=se}}localScaleComponents[channel].setWithExplicit("domains",domains),selectionExtent&&localScaleComponents[channel].set("selectionExtent",selectionExtent,!0)}}(model)}function parseDomainForChannel(model,channel){const scaleType=model.getScaleComponent(channel).get("type"),{encoding}=model,domain=function normalizeUnaggregatedDomain(domain,fieldDef,scaleType,scaleConfig){if("unaggregated"===domain){const{valid,reason}=canUseUnaggregatedDomain(fieldDef,scaleType);if(!valid)return void warn(reason)}else if(void 0===domain&&scaleConfig.useUnaggregatedDomain){const{valid}=canUseUnaggregatedDomain(fieldDef,scaleType);if(valid)return"unaggregated"}return domain}(model.scaleDomain(channel),model.typedFieldDef(channel),scaleType,model.config.scale);return domain!==model.scaleDomain(channel)&&(model.specifiedScales[channel]={...model.specifiedScales[channel],domain}),"x"===channel&&getFieldOrDatumDef(encoding.x2)?getFieldOrDatumDef(encoding.x)?mergeValuesWithExplicit(parseSingleChannelDomain(scaleType,domain,model,"x"),parseSingleChannelDomain(scaleType,domain,model,"x2"),"domain","scale",domainsTieBreaker):parseSingleChannelDomain(scaleType,domain,model,"x2"):"y"===channel&&getFieldOrDatumDef(encoding.y2)?getFieldOrDatumDef(encoding.y)?mergeValuesWithExplicit(parseSingleChannelDomain(scaleType,domain,model,"y"),parseSingleChannelDomain(scaleType,domain,model,"y2"),"domain","scale",domainsTieBreaker):parseSingleChannelDomain(scaleType,domain,model,"y2"):parseSingleChannelDomain(scaleType,domain,model,channel)}function convertDomainIfItIsDateTime(domain,type,timeUnit){const normalizedTimeUnit=normalizeTimeUnit(timeUnit)?.unit;return"temporal"===type||normalizedTimeUnit?function mapDomainToDataSignal(domain,type,timeUnit){return domain.map((v=>({signal:`{data: ${valueExpr(v,{timeUnit,type})}}`})))}(domain,type,normalizedTimeUnit):[domain]}function parseSingleChannelDomain(scaleType,domain,model,channel){const{encoding}=model,fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]),{type}=fieldOrDatumDef,timeUnit=fieldOrDatumDef.timeUnit;if(function isDomainUnionWith(domain){return domain?.unionWith}(domain)){const defaultDomain=parseSingleChannelDomain(scaleType,void 0,model,channel);return makeExplicit([...convertDomainIfItIsDateTime(domain.unionWith,type,timeUnit),...defaultDomain.value])}if(isSignalRef(domain))return makeExplicit([domain]);if(domain&&"unaggregated"!==domain&&!isParameterDomain(domain))return makeExplicit(convertDomainIfItIsDateTime(domain,type,timeUnit));const stack=model.stack;if(stack&&channel===stack.fieldChannel){if("normalize"===stack.offset)return makeImplicit([[0,1]]);const data=model.requestDataName(DataSourceType.Main);return makeImplicit([{data,field:model.vgField(channel,{suffix:"start"})},{data,field:model.vgField(channel,{suffix:"end"})}])}const sort=isScaleChannel(channel)&&isFieldDef(fieldOrDatumDef)?function domainSort(model,channel,scaleType){if(!hasDiscreteDomain(scaleType))return;const fieldDef=model.fieldDef(channel),sort=fieldDef.sort;if(isSortArray(sort))return{op:"min",field:sortArrayIndexField(fieldDef,channel),order:"ascending"};const{stack}=model,stackDimensions=stack?new Set([...stack.groupbyFields,...stack.stackBy.map((s=>s.fieldDef.field))]):void 0;if(isSortField(sort)){return normalizeSortField(sort,stack&&!stackDimensions.has(sort.field))}if(isSortByEncoding(sort)){const{encoding,order}=sort,fieldDefToSortBy=model.fieldDef(encoding),{aggregate,field}=fieldDefToSortBy,isStackedMeasure=stack&&!stackDimensions.has(field);if(isArgminDef(aggregate)||isArgmaxDef(aggregate))return normalizeSortField({field:vgField(fieldDefToSortBy),order},isStackedMeasure);if(isAggregateOp(aggregate)||!aggregate)return normalizeSortField({op:aggregate,field,order},isStackedMeasure)}else{if("descending"===sort)return{op:"min",field:model.vgField(channel),order:"descending"};if(contains(["ascending",void 0],sort))return!0}return}(model,channel,scaleType):void 0;if(isDatumDef(fieldOrDatumDef)){return makeImplicit(convertDomainIfItIsDateTime([fieldOrDatumDef.datum],type,timeUnit))}const fieldDef=fieldOrDatumDef;if("unaggregated"===domain){const data=model.requestDataName(DataSourceType.Main),{field}=fieldOrDatumDef;return makeImplicit([{data,field:vgField({field,aggregate:"min"})},{data,field:vgField({field,aggregate:"max"})}])}if(isBinning(fieldDef.bin)){if(hasDiscreteDomain(scaleType))return makeImplicit("bin-ordinal"===scaleType?[]:[{data:isBoolean(sort)?model.requestDataName(DataSourceType.Main):model.requestDataName(DataSourceType.Raw),field:model.vgField(channel,binRequiresRange(fieldDef,channel)?{binSuffix:"range"}:{}),sort:!0!==sort&&isObject(sort)?sort:{field:model.vgField(channel,{}),op:"min"}}]);{const{bin}=fieldDef;if(isBinning(bin)){const binSignal=getBinSignalName(model,fieldDef.field,bin);return makeImplicit([new SignalRefWrapper((()=>{const signal=model.getSignalName(binSignal);return`[${signal}.start, ${signal}.stop]`}))])}return makeImplicit([{data:model.requestDataName(DataSourceType.Main),field:model.vgField(channel,{})}])}}if(fieldDef.timeUnit&&contains(["time","utc"],scaleType)&&hasBandEnd(fieldDef,isUnitModel(model)?model.encoding[getSecondaryRangeChannel(channel)]:void 0,model.markDef,model.config)){const data=model.requestDataName(DataSourceType.Main);return makeImplicit([{data,field:model.vgField(channel)},{data,field:model.vgField(channel,{suffix:"end"})}])}return makeImplicit(sort?[{data:isBoolean(sort)?model.requestDataName(DataSourceType.Main):model.requestDataName(DataSourceType.Raw),field:model.vgField(channel),sort}]:[{data:model.requestDataName(DataSourceType.Main),field:model.vgField(channel)}])}function normalizeSortField(sort,isStackedMeasure){const{op,field,order}=sort;return{op:op??(isStackedMeasure?"sum":DEFAULT_SORT_OP),...field?{field:replacePathInField(field)}:{},...order?{order}:{}}}function parseSelectionDomain(model,channel){const scale=model.component.scales[channel],spec=model.specifiedScales[channel].domain,bin=model.fieldDef(channel)?.bin,domain=isParameterDomain(spec)&&spec,extent=isBinParams(bin)&&isParameterExtent(bin.extent)&&bin.extent;(domain||extent)&&scale.set("selectionExtent",domain??extent,!0)}function canUseUnaggregatedDomain(fieldDef,scaleType){const{aggregate,type}=fieldDef;return aggregate?isString(aggregate)&&!SHARED_DOMAIN_OPS.has(aggregate)?{valid:!1,reason:unaggregateDomainWithNonSharedDomainOp(aggregate)}:"quantitative"===type&&"log"===scaleType?{valid:!1,reason:unaggregatedDomainWithLogScale(fieldDef)}:{valid:!0}:{valid:!1,reason:unaggregateDomainHasNoEffectForRawField(fieldDef)}}function domainsTieBreaker(v1,v2,property,propertyOf){return v1.explicit&&v2.explicit&&warn(function mergeConflictingDomainProperty(property,propertyOf,v1,v2){return`Conflicting ${propertyOf.toString()} property "${property.toString()}" (${stringify$1(v1)} and ${stringify$1(v2)}). Using the union of the two domains.`}(property,propertyOf,v1.value,v2.value)),{explicit:v1.explicit,value:[...v1.value,...v2.value]}}function mergeDomains(domains){const uniqueDomains=unique(domains.map((domain=>{if(isDataRefDomain(domain)){const{sort:_s,...domainWithoutSort}=domain;return domainWithoutSort}return domain})),hash),sorts=unique(domains.map((d=>{if(isDataRefDomain(d)){const s=d.sort;return void 0===s||isBoolean(s)||("op"in s&&"count"===s.op&&delete s.field,"ascending"===s.order&&delete s.order),s}})).filter((s=>void 0!==s)),hash);if(0===uniqueDomains.length)return;if(1===uniqueDomains.length){const domain=domains[0];if(isDataRefDomain(domain)&&sorts.length>0){let sort=sorts[0];if(sorts.length>1){warn(MORE_THAN_ONE_SORT);const filteredSorts=sorts.filter((s=>isObject(s)&&"op"in s&&"min"!==s.op));sort=!sorts.every((s=>isObject(s)&&"op"in s))||1!==filteredSorts.length||filteredSorts[0]}else if(isObject(sort)&&"field"in sort){const sortField=sort.field;domain.field===sortField&&(sort=!sort.order||{order:sort.order})}return{...domain,sort}}return domain}const unionDomainSorts=unique(sorts.map((s=>isBoolean(s)||!("op"in s)||isString(s.op)&&s.op in MULTIDOMAIN_SORT_OP_INDEX?s:(warn(function domainSortDropped(sort){return`Dropping sort property ${stringify$1(sort)} as unioned domains only support boolean or op "count", "min", and "max".`}(s)),!0))),hash);let sort;1===unionDomainSorts.length?sort=unionDomainSorts[0]:unionDomainSorts.length>1&&(warn(MORE_THAN_ONE_SORT),sort=!0);const allData=unique(domains.map((d=>isDataRefDomain(d)?d.data:null)),(x=>x));if(1===allData.length&&null!==allData[0]){return{data:allData[0],fields:uniqueDomains.map((d=>d.field)),...sort?{sort}:{}}}return{fields:uniqueDomains,...sort?{sort}:{}}}function getFieldFromDomain(domain){if(isDataRefDomain(domain)&&isString(domain.field))return domain.field;if(function isDataRefUnionedDomain(domain){return!isArray(domain)&&"fields"in domain&&!("data"in domain)}(domain)){let field;for(const nonUnionDomain of domain.fields)if(isDataRefDomain(nonUnionDomain)&&isString(nonUnionDomain.field))if(field){if(field!==nonUnionDomain.field)return warn("Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect."),field}else field=nonUnionDomain.field;return warn("Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect."),field}if(function isFieldRefUnionDomain(domain){return!isArray(domain)&&"fields"in domain&&"data"in domain}(domain)){warn("Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.");const field=domain.fields[0];return isString(field)?field:void 0}}function assembleDomain(model,channel){const domains=model.component.scales[channel].get("domains").map((domain=>(isDataRefDomain(domain)&&(domain.data=model.lookupDataSource(domain.data)),domain)));return mergeDomains(domains)}function assembleScales(model){return isLayerModel(model)||isConcatModel(model)?model.children.reduce(((scales,child)=>scales.concat(assembleScales(child))),assembleScalesForModel(model)):assembleScalesForModel(model)}function assembleScalesForModel(model){return keys(model.component.scales).reduce(((scales,channel)=>{const scaleComponent=model.component.scales[channel];if(scaleComponent.merged)return scales;const scale=scaleComponent.combine(),{name,type,selectionExtent,domains:_d,range:_r,reverse,...otherScaleProps}=scale,range=function assembleScaleRange(scaleRange,scaleName,channel,model){if(isXorY(channel)){if(isVgRangeStep(scaleRange))return{step:{signal:`${scaleName}_step`}}}else if(isObject(scaleRange)&&isDataRefDomain(scaleRange))return{...scaleRange,data:model.lookupDataSource(scaleRange.data)};return scaleRange}(scale.range,name,channel,model),domain=assembleDomain(model,channel),domainRaw=selectionExtent?function assembleSelectionScaleDomain(model,extent,scaleCmpt,domain){const parsedExtent=parseSelectionExtent(model,extent.param,extent);return{signal:hasContinuousDomain(scaleCmpt.get("type"))&&isArray(domain)&&domain[0]>domain[1]?`isValid(${parsedExtent}) && reverse(${parsedExtent})`:parsedExtent}}(model,selectionExtent,scaleComponent,domain):null;return scales.push({name,type,...domain?{domain}:{},...domainRaw?{domainRaw}:{},range,...void 0!==reverse?{reverse}:{},...otherScaleProps}),scales}),[])}class ScaleComponent extends Split{constructor(name,typeWithExplicit){super({},{name}),this.merged=!1,this.setWithExplicit("type",typeWithExplicit)}domainDefinitelyIncludesZero(){return!1!==this.get("zero")||some(this.get("domains"),(d=>isArray(d)&&2===d.length&&d[0]<=0&&d[1]>=0))}}const RANGE_PROPERTIES=["range","scheme"];function getBinStepSignal(model,channel){const fieldDef=model.fieldDef(channel);if(fieldDef?.bin){const{bin,field}=fieldDef,sizeType=getSizeChannel(channel),sizeSignal=model.getName(sizeType);if(isObject(bin)&&bin.binned&&void 0!==bin.step)return new SignalRefWrapper((()=>{const scaleName=model.scaleName(channel),binCount=`(domain("${scaleName}")[1] - domain("${scaleName}")[0]) / ${bin.step}`;return`${model.getSignalName(sizeSignal)} / (${binCount})`}));if(isBinning(bin)){const binSignal=getBinSignalName(model,field,bin);return new SignalRefWrapper((()=>{const updatedName=model.getSignalName(binSignal),binCount=`(${updatedName}.stop - ${updatedName}.start) / ${updatedName}.step`;return`${model.getSignalName(sizeSignal)} / (${binCount})`}))}}}function parseRangeForChannel(channel,model){const specifiedScale=model.specifiedScales[channel],{size}=model,scaleType=model.getScaleComponent(channel).get("type");for(const property of RANGE_PROPERTIES)if(void 0!==specifiedScale[property]){const supportedByScaleType=scaleTypeSupportProperty(scaleType,property),channelIncompatability=channelScalePropertyIncompatability(channel,property);if(supportedByScaleType)if(channelIncompatability)warn(channelIncompatability);else switch(property){case"range":{const range=specifiedScale.range;if(isArray(range)){if(isXorY(channel))return makeExplicit(range.map((v=>{if("width"===v||"height"===v){const sizeSignal=model.getName(v),getSignalName=model.getSignalName.bind(model);return SignalRefWrapper.fromName(getSignalName,sizeSignal)}return v})))}else if(isObject(range))return makeExplicit({data:model.requestDataName(DataSourceType.Main),field:range.field,sort:{op:"min",field:model.vgField(channel)}});return makeExplicit(range)}case"scheme":return makeExplicit(parseScheme(specifiedScale[property]))}else warn(scalePropertyNotWorkWithScaleType(scaleType,property,channel))}const sizeChannel=channel===X||"xOffset"===channel?"width":"height",sizeValue=size[sizeChannel];if(isStep(sizeValue))if(isXorY(channel))if(hasDiscreteDomain(scaleType)){const step=getPositionStep(sizeValue,model,channel);if(step)return makeExplicit({step})}else warn(stepDropped(sizeChannel));else if(isXorYOffset(channel)){const positionChannel=channel===XOFFSET?"x":"y";if("band"===model.getScaleComponent(positionChannel).get("type")){const step=getOffsetStep(sizeValue,scaleType);if(step)return makeExplicit(step)}}const{rangeMin,rangeMax}=specifiedScale,d=function defaultRange(channel,model){const{size,config,mark,encoding}=model,getSignalName=model.getSignalName.bind(model),{type}=getFieldOrDatumDef(encoding[channel]),mergedScaleCmpt=model.getScaleComponent(channel),scaleType=mergedScaleCmpt.get("type"),{domain,domainMid}=model.specifiedScales[channel];switch(channel){case X:case Y:{if(contains(["point","band"],scaleType)){const positionSize=getDiscretePositionSize(channel,size,config.view);if(isStep(positionSize)){return{step:getPositionStep(positionSize,model,channel)}}}const sizeType=getSizeChannel(channel),sizeSignal=model.getName(sizeType);return channel===Y&&hasContinuousDomain(scaleType)?[SignalRefWrapper.fromName(getSignalName,sizeSignal),0]:[0,SignalRefWrapper.fromName(getSignalName,sizeSignal)]}case XOFFSET:case YOFFSET:return function getOffsetRange(channel,model,offsetScaleType){const positionChannel=channel===XOFFSET?"x":"y",positionScaleCmpt=model.getScaleComponent(positionChannel),positionScaleType=positionScaleCmpt.get("type"),positionScaleName=model.scaleName(positionChannel);if("band"===positionScaleType){const size=getDiscretePositionSize(positionChannel,model.size,model.config.view);if(isStep(size)){const step=getOffsetStep(size,offsetScaleType);if(step)return step}return[0,{signal:`bandwidth('${positionScaleName}')`}]}{const positionDef=model.encoding[positionChannel];if(isFieldDef(positionDef)&&positionDef.timeUnit){const duration=durationExpr(positionDef.timeUnit,(expr=>`scale('${positionScaleName}', ${expr})`)),padding=model.config.scale.bandWithNestedOffsetPaddingInner;if(padding){return[{signal:`${isSignalRef(padding)?`${padding.signal}/2`:""+padding/2} * (${duration})`},{signal:`${isSignalRef(padding)?`(1 - ${padding.signal}/2)`:""+(1-padding/2)} * (${duration})`}]}return[0,{signal:duration}]}return never(`Cannot use ${channel} scale if ${positionChannel} scale is not discrete.`)}}(channel,model,scaleType);case SIZE:{const rangeMin=sizeRangeMin(mark,model.component.scales[channel].get("zero"),config),rangeMax=function sizeRangeMax(mark,size,model,config){const xyStepSignals={x:getBinStepSignal(model,"x"),y:getBinStepSignal(model,"y")};switch(mark){case"bar":case"tick":{if(void 0!==config.scale.maxBandSize)return config.scale.maxBandSize;const min=minXYStep(size,xyStepSignals,config.view);return isNumber$1(min)?min-1:new SignalRefWrapper((()=>`${min.signal} - 1`))}case"line":case"trail":case"rule":return config.scale.maxStrokeWidth;case"text":return config.scale.maxFontSize;case"point":case"square":case"circle":{if(config.scale.maxSize)return config.scale.maxSize;const pointStep=minXYStep(size,xyStepSignals,config.view);return isNumber$1(pointStep)?Math.pow(MAX_SIZE_RANGE_STEP_RATIO*pointStep,2):new SignalRefWrapper((()=>`pow(${MAX_SIZE_RANGE_STEP_RATIO} * ${pointStep.signal}, 2)`))}}throw new Error(incompatibleChannel("size",mark))}(mark,size,model,config);return isContinuousToDiscrete(scaleType)?function interpolateRange(rangeMin,rangeMax,cardinality){const f=()=>{const rMax=signalOrStringValue(rangeMax),rMin=signalOrStringValue(rangeMin),step=`(${rMax} - ${rMin}) / (${cardinality} - 1)`;return`sequence(${rMin}, ${rMax} + ${step}, ${step})`};return isSignalRef(rangeMax)?new SignalRefWrapper(f):{signal:f()}}(rangeMin,rangeMax,function defaultContinuousToDiscreteCount(scaleType,config,domain,channel){switch(scaleType){case"quantile":return config.scale.quantileCount;case"quantize":return config.scale.quantizeCount;case"threshold":return void 0!==domain&&isArray(domain)?domain.length+1:(warn(function domainRequiredForThresholdScale(channel){return`Domain for ${channel} is required for threshold scale.`}(channel)),3)}}(scaleType,config,domain,channel)):[rangeMin,rangeMax]}case THETA:return[0,2*Math.PI];case ANGLE:return[0,360];case RADIUS:return[0,new SignalRefWrapper((()=>`min(${model.getSignalName("width")},${model.getSignalName("height")})/2`))];case STROKEWIDTH:return[config.scale.minStrokeWidth,config.scale.maxStrokeWidth];case STROKEDASH:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case SHAPE:return"symbol";case COLOR:case FILL:case STROKE:return"ordinal"===scaleType?"nominal"===type?"category":"ordinal":void 0!==domainMid?"diverging":"rect"===mark||"geoshape"===mark?"heatmap":"ramp";case OPACITY:case FILLOPACITY:case STROKEOPACITY:return[config.scale.minOpacity,config.scale.maxOpacity]}}(channel,model);return(void 0!==rangeMin||void 0!==rangeMax)&&scaleTypeSupportProperty(scaleType,"rangeMin")&&isArray(d)&&2===d.length?makeExplicit([rangeMin??d[0],rangeMax??d[1]]):makeImplicit(d)}function parseScheme(scheme){return function isExtendedScheme(scheme){return!isString(scheme)&&!!scheme.name}(scheme)?{scheme:scheme.name,...omit(scheme,["name"])}:{scheme}}function getPositionStep(step,model,channel){const{encoding}=model,mergedScaleCmpt=model.getScaleComponent(channel),offsetChannel=getOffsetScaleChannel(channel),offsetDef=encoding[offsetChannel];if("offset"===getStepFor({step,offsetIsDiscrete:isFieldOrDatumDef(offsetDef)&&isDiscrete$1(offsetDef.type)})&&channelHasFieldOrDatum(encoding,offsetChannel)){const offsetScaleCmpt=model.getScaleComponent(offsetChannel);let stepCount=`domain('${model.scaleName(offsetChannel)}').length`;if("band"===offsetScaleCmpt.get("type")){stepCount=`bandspace(${stepCount}, ${offsetScaleCmpt.get("paddingInner")??offsetScaleCmpt.get("padding")??0}, ${offsetScaleCmpt.get("paddingOuter")??offsetScaleCmpt.get("padding")??0})`}const paddingInner=mergedScaleCmpt.get("paddingInner")??mergedScaleCmpt.get("padding");return{signal:`${step.step} * ${stepCount} / (1-${exprFromSignalRefOrValue(paddingInner)})`}}return step.step}function getOffsetStep(step,offsetScaleType){if("offset"===getStepFor({step,offsetIsDiscrete:hasDiscreteDomain(offsetScaleType)}))return{step:step.step}}function getDiscretePositionSize(channel,size,viewConfig){const sizeChannel=channel===X?"width":"height",sizeValue=size[sizeChannel];return sizeValue||getViewConfigDiscreteSize(viewConfig,sizeChannel)}function sizeRangeMin(mark,zero,config){if(zero)return isSignalRef(zero)?{signal:`${zero.signal} ? 0 : ${sizeRangeMin(mark,!1,config)}`}:0;switch(mark){case"bar":case"tick":return config.scale.minBandSize;case"line":case"trail":case"rule":return config.scale.minStrokeWidth;case"text":return config.scale.minFontSize;case"point":case"square":case"circle":return config.scale.minSize}throw new Error(incompatibleChannel("size",mark))}const MAX_SIZE_RANGE_STEP_RATIO=.95;function minXYStep(size,xyStepSignals,viewConfig){const widthStep=isStep(size.width)?size.width.step:getViewConfigDiscreteStep(viewConfig,"width"),heightStep=isStep(size.height)?size.height.step:getViewConfigDiscreteStep(viewConfig,"height");return xyStepSignals.x||xyStepSignals.y?new SignalRefWrapper((()=>`min(${[xyStepSignals.x?xyStepSignals.x.signal:widthStep,xyStepSignals.y?xyStepSignals.y.signal:heightStep].join(", ")})`)):Math.min(widthStep,heightStep)}function parseScaleProperty(model,property){isUnitModel(model)?function parseUnitScaleProperty(model,property){const localScaleComponents=model.component.scales,{config,encoding,markDef,specifiedScales}=model;for(const channel of keys(localScaleComponents)){const specifiedScale=specifiedScales[channel],localScaleCmpt=localScaleComponents[channel],mergedScaleCmpt=model.getScaleComponent(channel),fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]),specifiedValue=specifiedScale[property],scaleType=mergedScaleCmpt.get("type"),scalePadding=mergedScaleCmpt.get("padding"),scalePaddingInner=mergedScaleCmpt.get("paddingInner"),supportedByScaleType=scaleTypeSupportProperty(scaleType,property),channelIncompatability=channelScalePropertyIncompatability(channel,property);if(void 0!==specifiedValue&&(supportedByScaleType?channelIncompatability&&warn(channelIncompatability):warn(scalePropertyNotWorkWithScaleType(scaleType,property,channel))),supportedByScaleType&&void 0===channelIncompatability)if(void 0!==specifiedValue){const timeUnit=fieldOrDatumDef.timeUnit,type=fieldOrDatumDef.type;switch(property){case"domainMax":case"domainMin":isDateTime(specifiedScale[property])||"temporal"===type||timeUnit?localScaleCmpt.set(property,{signal:valueExpr(specifiedScale[property],{type,timeUnit})},!0):localScaleCmpt.set(property,specifiedScale[property],!0);break;default:localScaleCmpt.copyKeyFromObject(property,specifiedScale)}}else{const value=property in scaleRules?scaleRules[property]({model,channel,fieldOrDatumDef,scaleType,scalePadding,scalePaddingInner,domain:specifiedScale.domain,domainMin:specifiedScale.domainMin,domainMax:specifiedScale.domainMax,markDef,config,hasNestedOffsetScale:channelHasNestedOffsetScale(encoding,channel),hasSecondaryRangeChannel:!!encoding[getSecondaryRangeChannel(channel)]}):config.scale[property];void 0!==value&&localScaleCmpt.set(property,value,!1)}}}(model,property):parseNonUnitScaleProperty(model,property)}const scaleRules={bins:({model,fieldOrDatumDef})=>isFieldDef(fieldOrDatumDef)?function bins(model,fieldDef){const bin=fieldDef.bin;if(isBinning(bin)){const binSignal=getBinSignalName(model,fieldDef.field,bin);return new SignalRefWrapper((()=>model.getSignalName(binSignal)))}if(isBinned(bin)&&isBinParams(bin)&&void 0!==bin.step)return{step:bin.step};return}(model,fieldOrDatumDef):void 0,interpolate:({channel,fieldOrDatumDef})=>function interpolate(channel,type){if(contains([COLOR,FILL,STROKE],channel)&&"nominal"!==type)return"hcl";return}(channel,fieldOrDatumDef.type),nice:({scaleType,channel,domain,domainMin,domainMax,fieldOrDatumDef})=>function nice(scaleType,channel,specifiedDomain,domainMin,domainMax,fieldOrDatumDef){if(getFieldDef(fieldOrDatumDef)?.bin||isArray(specifiedDomain)||null!=domainMax||null!=domainMin||contains([ScaleType.TIME,ScaleType.UTC],scaleType))return;return!!isXorY(channel)||void 0}(scaleType,channel,domain,domainMin,domainMax,fieldOrDatumDef),padding:({channel,scaleType,fieldOrDatumDef,markDef,config})=>function padding(channel,scaleType,scaleConfig,fieldOrDatumDef,markDef,barConfig){if(isXorY(channel)){if(isContinuousToContinuous(scaleType)){if(void 0!==scaleConfig.continuousPadding)return scaleConfig.continuousPadding;const{type,orient}=markDef;if("bar"===type&&(!isFieldDef(fieldOrDatumDef)||!fieldOrDatumDef.bin&&!fieldOrDatumDef.timeUnit)&&("vertical"===orient&&"x"===channel||"horizontal"===orient&&"y"===channel))return barConfig.continuousBandSize}if(scaleType===ScaleType.POINT)return scaleConfig.pointPadding}return}(channel,scaleType,config.scale,fieldOrDatumDef,markDef,config.bar),paddingInner:({scalePadding,channel,markDef,scaleType,config,hasNestedOffsetScale})=>function paddingInner(paddingValue,channel,mark,scaleType,scaleConfig,hasNestedOffsetScale=!1){if(void 0!==paddingValue)return;if(isXorY(channel)){const{bandPaddingInner,barBandPaddingInner,rectBandPaddingInner,bandWithNestedOffsetPaddingInner}=scaleConfig;return hasNestedOffsetScale?bandWithNestedOffsetPaddingInner:getFirstDefined(bandPaddingInner,"bar"===mark?barBandPaddingInner:rectBandPaddingInner)}if(isXorYOffset(channel)&&scaleType===ScaleType.BAND)return scaleConfig.offsetBandPaddingInner;return}(scalePadding,channel,markDef.type,scaleType,config.scale,hasNestedOffsetScale),paddingOuter:({scalePadding,channel,scaleType,scalePaddingInner,config,hasNestedOffsetScale})=>function paddingOuter(paddingValue,channel,scaleType,paddingInnerValue,scaleConfig,hasNestedOffsetScale=!1){if(void 0!==paddingValue)return;if(isXorY(channel)){const{bandPaddingOuter,bandWithNestedOffsetPaddingOuter}=scaleConfig;if(hasNestedOffsetScale)return bandWithNestedOffsetPaddingOuter;if(scaleType===ScaleType.BAND)return getFirstDefined(bandPaddingOuter,isSignalRef(paddingInnerValue)?{signal:`${paddingInnerValue.signal}/2`}:paddingInnerValue/2)}else if(isXorYOffset(channel)){if(scaleType===ScaleType.POINT)return.5;if(scaleType===ScaleType.BAND)return scaleConfig.offsetBandPaddingOuter}return}(scalePadding,channel,scaleType,scalePaddingInner,config.scale,hasNestedOffsetScale),reverse:({fieldOrDatumDef,scaleType,channel,config})=>function reverse(scaleType,sort,channel,scaleConfig){if("x"===channel&&void 0!==scaleConfig.xReverse)return hasContinuousDomain(scaleType)&&"descending"===sort?isSignalRef(scaleConfig.xReverse)?{signal:`!${scaleConfig.xReverse.signal}`}:!scaleConfig.xReverse:scaleConfig.xReverse;if(hasContinuousDomain(scaleType)&&"descending"===sort)return!0;return}(scaleType,isFieldDef(fieldOrDatumDef)?fieldOrDatumDef.sort:void 0,channel,config.scale),zero:({channel,fieldOrDatumDef,domain,markDef,scaleType,config,hasSecondaryRangeChannel})=>function zero(channel,fieldDef,specifiedDomain,markDef,scaleType,scaleConfig,hasSecondaryRangeChannel){if(specifiedDomain&&"unaggregated"!==specifiedDomain&&hasContinuousDomain(scaleType)){if(isArray(specifiedDomain)){const first=specifiedDomain[0],last=specifiedDomain[specifiedDomain.length-1];if(first<=0&&last>=0)return!0}return!1}if("size"===channel&&"quantitative"===fieldDef.type&&!isContinuousToDiscrete(scaleType))return!0;if((!isFieldDef(fieldDef)||!fieldDef.bin)&&contains([...POSITION_SCALE_CHANNELS,...POLAR_POSITION_SCALE_CHANNELS],channel)){const{orient,type}=markDef;return(!contains(["bar","area","line","trail"],type)||!("horizontal"===orient&&"y"===channel||"vertical"===orient&&"x"===channel))&&(!(!contains(["bar","area"],type)||hasSecondaryRangeChannel)||scaleConfig?.zero)}return!1}(channel,fieldOrDatumDef,domain,markDef,scaleType,config.scale,hasSecondaryRangeChannel)};function parseScaleRange(model){isUnitModel(model)?function parseUnitScaleRange(model){const localScaleComponents=model.component.scales;for(const channel of SCALE_CHANNELS){const localScaleCmpt=localScaleComponents[channel];if(!localScaleCmpt)continue;const rangeWithExplicit=parseRangeForChannel(channel,model);localScaleCmpt.setWithExplicit("range",rangeWithExplicit)}}(model):parseNonUnitScaleProperty(model,"range")}function parseNonUnitScaleProperty(model,property){const localScaleComponents=model.component.scales;for(const child of model.children)"range"===property?parseScaleRange(child):parseScaleProperty(child,property);for(const channel of keys(localScaleComponents)){let valueWithExplicit;for(const child of model.children){const childComponent=child.component.scales[channel];if(childComponent){valueWithExplicit=mergeValuesWithExplicit(valueWithExplicit,childComponent.getWithExplicit(property),property,"scale",tieBreakByComparing(((v1,v2)=>"range"===property&&v1.step&&v2.step?v1.step-v2.step:0)))}}localScaleComponents[channel].setWithExplicit(property,valueWithExplicit)}}function scaleType(specifiedScale,channel,fieldDef,mark,hasNestedOffsetScale=!1){const defaultScaleType=function defaultType(channel,fieldDef,mark,hasNestedOffsetScale){switch(fieldDef.type){case"nominal":case"ordinal":if(isColorChannel(channel)||"discrete"===rangeType(channel))return"shape"===channel&&"ordinal"===fieldDef.type&&warn(discreteChannelCannotEncode(channel,"ordinal")),"ordinal";if(isXorY(channel)||isXorYOffset(channel)){if(contains(["rect","bar","image","rule"],mark.type))return"band";if(hasNestedOffsetScale)return"band"}else if("arc"===mark.type&&channel in POLAR_POSITION_SCALE_CHANNEL_INDEX)return"band";return isRelativeBandSize(mark[getSizeChannel(channel)])||isPositionFieldOrDatumDef(fieldDef)&&fieldDef.axis?.tickBand?"band":"point";case"temporal":return isColorChannel(channel)?"time":"discrete"===rangeType(channel)?(warn(discreteChannelCannotEncode(channel,"temporal")),"ordinal"):isFieldDef(fieldDef)&&fieldDef.timeUnit&&normalizeTimeUnit(fieldDef.timeUnit).utc?"utc":"time";case"quantitative":return isColorChannel(channel)?isFieldDef(fieldDef)&&isBinning(fieldDef.bin)?"bin-ordinal":"linear":"discrete"===rangeType(channel)?(warn(discreteChannelCannotEncode(channel,"quantitative")),"ordinal"):"linear";case"geojson":return}throw new Error(invalidFieldType(fieldDef.type))}(channel,fieldDef,mark,hasNestedOffsetScale),{type}=specifiedScale;return isScaleChannel(channel)?void 0!==type?function channelSupportScaleType(channel,scaleType,hasNestedOffsetScale=!1){if(!isScaleChannel(channel))return!1;switch(channel){case X:case Y:case XOFFSET:case YOFFSET:case THETA:case RADIUS:return!!isContinuousToContinuous(scaleType)||"band"===scaleType||"point"===scaleType&&!hasNestedOffsetScale;case SIZE:case STROKEWIDTH:case OPACITY:case FILLOPACITY:case STROKEOPACITY:case ANGLE:return isContinuousToContinuous(scaleType)||isContinuousToDiscrete(scaleType)||contains(["band","point","ordinal"],scaleType);case COLOR:case FILL:case STROKE:return"band"!==scaleType;case STROKEDASH:case SHAPE:return"ordinal"===scaleType||isContinuousToDiscrete(scaleType)}}(channel,type)?isFieldDef(fieldDef)&&!function scaleTypeSupportDataType(specifiedType,fieldDefType){return contains([ORDINAL,NOMINAL],fieldDefType)?void 0===specifiedType||hasDiscreteDomain(specifiedType):fieldDefType===TEMPORAL?contains([ScaleType.TIME,ScaleType.UTC,void 0],specifiedType):fieldDefType!==QUANTITATIVE||isQuantitative(specifiedType)||isContinuousToDiscrete(specifiedType)||void 0===specifiedType}(type,fieldDef.type)?(warn(function scaleTypeNotWorkWithFieldDef(scaleType,defaultScaleType){return`FieldDef does not work with "${scaleType}" scale. We are using "${defaultScaleType}" scale instead.`}(type,defaultScaleType)),defaultScaleType):type:(warn(function scaleTypeNotWorkWithChannel(channel,scaleType,defaultScaleType){return`Channel "${channel}" does not work with "${scaleType}" scale. We are using "${defaultScaleType}" scale instead.`}(channel,type,defaultScaleType)),defaultScaleType):defaultScaleType:null}function parseScaleCore(model){isUnitModel(model)?model.component.scales=function parseUnitScaleCore(model){const{encoding,mark,markDef}=model,scaleComponents={};for(const channel of SCALE_CHANNELS){const fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]);if(fieldOrDatumDef&&mark===GEOSHAPE&&channel===SHAPE&&fieldOrDatumDef.type===GEOJSON)continue;let specifiedScale=fieldOrDatumDef&&fieldOrDatumDef.scale;if(isXorYOffset(channel)){if(!channelHasNestedOffsetScale(encoding,getMainChannelFromOffsetChannel(channel))){specifiedScale&&warn(offsetEncodingScaleIgnored(channel));continue}}if(fieldOrDatumDef&&null!==specifiedScale&&!1!==specifiedScale){specifiedScale??(specifiedScale={});const sType=scaleType(specifiedScale,channel,fieldOrDatumDef,markDef,channelHasNestedOffsetScale(encoding,channel));scaleComponents[channel]=new ScaleComponent(model.scaleName(`${channel}`,!0),{value:sType,explicit:specifiedScale.type===sType})}}return scaleComponents}(model):model.component.scales=function parseNonUnitScaleCore(model){var _a;const scaleComponents=model.component.scales={},scaleTypeWithExplicitIndex={},resolve=model.component.resolve;for(const child of model.children){parseScaleCore(child);for(const channel of keys(child.component.scales))if((_a=resolve.scale)[channel]??(_a[channel]=defaultScaleResolve(channel,model)),"shared"===resolve.scale[channel]){const explicitScaleType=scaleTypeWithExplicitIndex[channel],childScaleType=child.component.scales[channel].getWithExplicit("type");explicitScaleType?scaleCompatible(explicitScaleType.value,childScaleType.value)?scaleTypeWithExplicitIndex[channel]=mergeValuesWithExplicit(explicitScaleType,childScaleType,"type","scale",scaleTypeTieBreaker):(resolve.scale[channel]="independent",delete scaleTypeWithExplicitIndex[channel]):scaleTypeWithExplicitIndex[channel]=childScaleType}}for(const channel of keys(scaleTypeWithExplicitIndex)){const name=model.scaleName(channel,!0),typeWithExplicit=scaleTypeWithExplicitIndex[channel];scaleComponents[channel]=new ScaleComponent(name,typeWithExplicit);for(const child of model.children){const childScale=child.component.scales[channel];childScale&&(child.renameScale(childScale.get("name"),name),childScale.merged=!0)}}return scaleComponents}(model)}const scaleTypeTieBreaker=tieBreakByComparing(((st1,st2)=>scaleTypePrecedence(st1)-scaleTypePrecedence(st2)));class NameMap{constructor(){this.nameMap={}}rename(oldName,newName){this.nameMap[oldName]=newName}has(name){return void 0!==this.nameMap[name]}get(name){for(;this.nameMap[name]&&name!==this.nameMap[name];)name=this.nameMap[name];return name}}function isUnitModel(model){return"unit"===model?.type}function isFacetModel(model){return"facet"===model?.type}function isConcatModel(model){return"concat"===model?.type}function isLayerModel(model){return"layer"===model?.type}class Model{constructor(spec,type,parent,parentGivenName,config,resolve,view){this.type=type,this.parent=parent,this.config=config,this.correctDataNames=mark=>(mark.from?.data&&(mark.from.data=this.lookupDataSource(mark.from.data)),mark.from?.facet?.data&&(mark.from.facet.data=this.lookupDataSource(mark.from.facet.data)),mark),this.parent=parent,this.config=config,this.view=replaceExprRef(view),this.name=spec.name??parentGivenName,this.title=isText(spec.title)?{text:spec.title}:spec.title?replaceExprRef(spec.title):void 0,this.scaleNameMap=parent?parent.scaleNameMap:new NameMap,this.projectionNameMap=parent?parent.projectionNameMap:new NameMap,this.signalNameMap=parent?parent.signalNameMap:new NameMap,this.data=spec.data,this.description=spec.description,this.transforms=function normalizeTransform(transform){return transform.map((t=>isFilter(t)?{filter:normalizeLogicalComposition(t.filter,normalizePredicate$1)}:t))}(spec.transform??[]),this.layout="layer"===type||"unit"===type?{}:function extractCompositionLayout(spec,specType,config){const compositionConfig=config[specType],layout={},{spacing:spacingConfig,columns}=compositionConfig;void 0!==spacingConfig&&(layout.spacing=spacingConfig),void 0!==columns&&(isFacetSpec(spec)&&!isFacetMapping(spec.facet)||isConcatSpec(spec))&&(layout.columns=columns),isVConcatSpec(spec)&&(layout.columns=1);for(const prop of COMPOSITION_LAYOUT_PROPERTIES)if(void 0!==spec[prop])if("spacing"===prop){const spacing=spec[prop];layout[prop]=isNumber$1(spacing)?spacing:{row:spacing.row??spacingConfig,column:spacing.column??spacingConfig}}else layout[prop]=spec[prop];return layout}(spec,type,config),this.component={data:{sources:parent?parent.component.data.sources:[],outputNodes:parent?parent.component.data.outputNodes:{},outputNodeRefCounts:parent?parent.component.data.outputNodeRefCounts:{},isFaceted:isFacetSpec(spec)||parent?.component.data.isFaceted&&void 0===spec.data},layoutSize:new Split,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:{scale:{},axis:{},legend:{},...resolve?duplicate(resolve):{}},selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale(),this.parseLayoutSize(),this.renameTopLevelLayoutSizeSignal(),this.parseSelections(),this.parseProjection(),this.parseData(),this.parseAxesAndHeaders(),this.parseLegends(),this.parseMarkGroup()}parseScale(){!function parseScales(model,{ignoreRange}={}){parseScaleCore(model),parseScaleDomain(model);for(const prop of NON_TYPE_DOMAIN_RANGE_VEGA_SCALE_PROPERTIES)parseScaleProperty(model,prop);ignoreRange||parseScaleRange(model)}(this)}parseProjection(){parseProjection(this)}renameTopLevelLayoutSizeSignal(){"width"!==this.getName("width")&&this.renameSignal(this.getName("width"),"width"),"height"!==this.getName("height")&&this.renameSignal(this.getName("height"),"height")}parseLegends(){parseLegend(this)}assembleEncodeFromView(view){const{style:_,...baseView}=view,e={};for(const property of keys(baseView)){const value=baseView[property];void 0!==value&&(e[property]=signalOrValueRef(value))}return e}assembleGroupEncodeEntry(isTopLevel){let encodeEntry={};return this.view&&(encodeEntry=this.assembleEncodeFromView(this.view)),isTopLevel||(this.description&&(encodeEntry.description=signalOrValueRef(this.description)),"unit"!==this.type&&"layer"!==this.type)?isEmpty(encodeEntry)?void 0:encodeEntry:{width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height"),...encodeEntry??{}}}assembleLayout(){if(!this.layout)return;const{spacing,...layout}=this.layout,{component,config}=this,titleBand=function assembleLayoutTitleBand(headerComponentIndex,config){const titleBand={};for(const channel of FACET_CHANNELS){const headerComponent=headerComponentIndex[channel];if(headerComponent?.facetFieldDef){const{titleAnchor,titleOrient}=getHeaderProperties(["titleAnchor","titleOrient"],headerComponent.facetFieldDef.header,config,channel),headerChannel=getHeaderChannel(channel,titleOrient),band=getLayoutTitleBand(titleAnchor,headerChannel);void 0!==band&&(titleBand[headerChannel]=band)}}return isEmpty(titleBand)?void 0:titleBand}(component.layoutHeaders,config);return{padding:spacing,...this.assembleDefaultLayout(),...layout,...titleBand?{titleBand}:{}}}assembleDefaultLayout(){return{}}assembleHeaderMarks(){const{layoutHeaders}=this.component;let headerMarks=[];for(const channel of FACET_CHANNELS)layoutHeaders[channel].title&&headerMarks.push(assembleTitleGroup(this,channel));for(const channel of HEADER_CHANNELS)headerMarks=headerMarks.concat(assembleHeaderGroups(this,channel));return headerMarks}assembleAxes(){return function assembleAxes(axisComponents,config){const{x=[],y=[]}=axisComponents;return[...x.map((a=>assembleAxis(a,"grid",config))),...y.map((a=>assembleAxis(a,"grid",config))),...x.map((a=>assembleAxis(a,"main",config))),...y.map((a=>assembleAxis(a,"main",config)))].filter((a=>a))}(this.component.axes,this.config)}assembleLegends(){return assembleLegends(this)}assembleProjections(){return assembleProjections(this)}assembleTitle(){const{encoding,...titleNoEncoding}=this.title??{},title={...extractTitleConfig(this.config.title).nonMarkTitleProperties,...titleNoEncoding,...encoding?{encode:{update:encoding}}:{}};if(title.text)return contains(["unit","layer"],this.type)?contains(["middle",void 0],title.anchor)&&(title.frame??(title.frame="group")):title.anchor??(title.anchor="start"),isEmpty(title)?void 0:title}assembleGroup(signals=[]){const group={};(signals=signals.concat(this.assembleSignals())).length>0&&(group.signals=signals);const layout=this.assembleLayout();layout&&(group.layout=layout),group.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());const scales=!this.parent||isFacetModel(this.parent)?assembleScales(this):[];scales.length>0&&(group.scales=scales);const axes=this.assembleAxes();axes.length>0&&(group.axes=axes);const legends=this.assembleLegends();return legends.length>0&&(group.legends=legends),group}getName(text){return varName((this.name?`${this.name}_`:"")+text)}getDataName(type){return this.getName(DataSourceType[type].toLowerCase())}requestDataName(name){const fullName=this.getDataName(name),refCounts=this.component.data.outputNodeRefCounts;return refCounts[fullName]=(refCounts[fullName]||0)+1,fullName}getSizeSignalRef(layoutSizeType){if(isFacetModel(this.parent)){const channel=getPositionScaleChannel(getSizeTypeFromLayoutSizeType(layoutSizeType)),scaleComponent=this.component.scales[channel];if(scaleComponent&&!scaleComponent.merged){const type=scaleComponent.get("type"),range=scaleComponent.get("range");if(hasDiscreteDomain(type)&&isVgRangeStep(range)){const scaleName=scaleComponent.get("name"),field=getFieldFromDomain(assembleDomain(this,channel));if(field){return{signal:sizeExpr(scaleName,scaleComponent,vgField({aggregate:"distinct",field},{expr:"datum"}))}}return warn(unknownField(channel)),null}}}return{signal:this.signalNameMap.get(this.getName(layoutSizeType))}}lookupDataSource(name){const node=this.component.data.outputNodes[name];return node?node.getSource():name}getSignalName(oldSignalName){return this.signalNameMap.get(oldSignalName)}renameSignal(oldName,newName){this.signalNameMap.rename(oldName,newName)}renameScale(oldName,newName){this.scaleNameMap.rename(oldName,newName)}renameProjection(oldName,newName){this.projectionNameMap.rename(oldName,newName)}scaleName(originalScaleName,parse){return parse?this.getName(originalScaleName):isChannel(originalScaleName)&&isScaleChannel(originalScaleName)&&this.component.scales[originalScaleName]||this.scaleNameMap.has(this.getName(originalScaleName))?this.scaleNameMap.get(this.getName(originalScaleName)):void 0}projectionName(parse){return parse?this.getName("projection"):this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection"))?this.projectionNameMap.get(this.getName("projection")):void 0}getScaleComponent(channel){if(!this.component.scales)throw new Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().");const localScaleComponent=this.component.scales[channel];return localScaleComponent&&!localScaleComponent.merged?localScaleComponent:this.parent?this.parent.getScaleComponent(channel):void 0}getSelectionComponent(variableName,origName){let sel=this.component.selection[variableName];if(!sel&&this.parent&&(sel=this.parent.getSelectionComponent(variableName,origName)),!sel)throw new Error(function selectionNotFound(name){return`Cannot find a selection named "${name}".`}(origName));return sel}hasAxisOrientSignalRef(){return this.component.axes.x?.some((a=>a.hasOrientSignalRef()))||this.component.axes.y?.some((a=>a.hasOrientSignalRef()))}}class ModelWithField extends Model{vgField(channel,opt={}){const fieldDef=this.fieldDef(channel);if(fieldDef)return vgField(fieldDef,opt)}reduceFieldDef(f,init){return function reduce(mapping,f,init,thisArg){return mapping?keys(mapping).reduce(((r,channel)=>{const map=mapping[channel];return isArray(map)?map.reduce(((r1,channelDef)=>f.call(thisArg,r1,channelDef,channel)),r):f.call(thisArg,r,map,channel)}),init):init}(this.getMapping(),((acc,cd,c)=>{const fieldDef=getFieldDef(cd);return fieldDef?f(acc,fieldDef,c):acc}),init)}forEachFieldDef(f,t){forEach(this.getMapping(),((cd,c)=>{const fieldDef=getFieldDef(cd);fieldDef&&f(fieldDef,c)}),t)}}class DensityTransformNode extends DataFlowNode{clone(){return new DensityTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const specifiedAs=this.transform.as??[void 0,void 0];this.transform.as=[specifiedAs[0]??"value",specifiedAs[1]??"density"],transform.groupby&&null==transform.minsteps&&null==transform.maxsteps&&null==transform.steps&&(this.transform.steps=200)}dependentFields(){return new Set([this.transform.density,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`DensityTransform ${hash(this.transform)}`}assemble(){const{density,...rest}=this.transform;return{type:"kde",field:density,...rest}}}class ExtentTransformNode extends DataFlowNode{clone(){return new ExtentTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform)}dependentFields(){return new Set([this.transform.extent])}producedFields(){return new Set([])}hash(){return`ExtentTransform ${hash(this.transform)}`}assemble(){const{extent,param}=this.transform;return{type:"extent",field:extent,signal:param}}}class FilterInvalidNode extends DataFlowNode{clone(){return new FilterInvalidNode(null,{...this.filter})}constructor(parent,filter){super(parent),this.filter=filter}static make(parent,model){const{config,mark,markDef}=model;if("filter"!==getMarkPropOrConfig("invalid",markDef,config))return null;const filter=model.reduceFieldDef(((aggregator,fieldDef,channel)=>{const scaleComponent=isScaleChannel(channel)&&model.getScaleComponent(channel);if(scaleComponent){hasContinuousDomain(scaleComponent.get("type"))&&"count"!==fieldDef.aggregate&&!isPathMark(mark)&&(aggregator[fieldDef.field]=fieldDef)}return aggregator}),{});return keys(filter).length?new FilterInvalidNode(parent,filter):null}dependentFields(){return new Set(keys(this.filter))}producedFields(){return new Set}hash(){return`FilterInvalid ${hash(this.filter)}`}assemble(){const filters=keys(this.filter).reduce(((vegaFilters,field)=>{const fieldDef=this.filter[field],ref=vgField(fieldDef,{expr:"datum"});return null!==fieldDef&&("temporal"===fieldDef.type?vegaFilters.push(`(isDate(${ref}) || (isValid(${ref}) && isFinite(+${ref})))`):"quantitative"===fieldDef.type&&(vegaFilters.push(`isValid(${ref})`),vegaFilters.push(`isFinite(+${ref})`))),vegaFilters}),[]);return filters.length>0?{type:"filter",expr:filters.join(" && ")}:null}}class FlattenTransformNode extends DataFlowNode{clone(){return new FlattenTransformNode(this.parent,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const{flatten,as=[]}=this.transform;this.transform.as=flatten.map(((f,i)=>as[i]??f))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return`FlattenTransform ${hash(this.transform)}`}assemble(){const{flatten:fields,as}=this.transform;return{type:"flatten",fields,as}}}class FoldTransformNode extends DataFlowNode{clone(){return new FoldTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const specifiedAs=this.transform.as??[void 0,void 0];this.transform.as=[specifiedAs[0]??"key",specifiedAs[1]??"value"]}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return`FoldTransform ${hash(this.transform)}`}assemble(){const{fold,as}=this.transform;return{type:"fold",fields:fold,as}}}class GeoJSONNode extends DataFlowNode{clone(){return new GeoJSONNode(null,duplicate(this.fields),this.geojson,this.signal)}static parseAll(parent,model){if(model.component.projection&&!model.component.projection.isFit)return parent;let geoJsonCounter=0;for(const coordinates of[[LONGITUDE,LATITUDE],[LONGITUDE2,LATITUDE2]]){const pair=coordinates.map((channel=>{const def=getFieldOrDatumDef(model.encoding[channel]);return isFieldDef(def)?def.field:isDatumDef(def)?{expr:`${def.datum}`}:isValueDef(def)?{expr:`${def.value}`}:void 0}));(pair[0]||pair[1])&&(parent=new GeoJSONNode(parent,pair,null,model.getName("geojson_"+geoJsonCounter++)))}if(model.channelHasField(SHAPE)){const fieldDef=model.typedFieldDef(SHAPE);fieldDef.type===GEOJSON&&(parent=new GeoJSONNode(parent,null,fieldDef.field,model.getName("geojson_"+geoJsonCounter++)))}return parent}constructor(parent,fields,geojson,signal){super(parent),this.fields=fields,this.geojson=geojson,this.signal=signal}dependentFields(){const fields=(this.fields??[]).filter(isString);return new Set([...this.geojson?[this.geojson]:[],...fields])}producedFields(){return new Set}hash(){return`GeoJSON ${this.geojson} ${this.signal} ${hash(this.fields)}`}assemble(){return[...this.geojson?[{type:"filter",expr:`isValid(datum["${this.geojson}"])`}]:[],{type:"geojson",...this.fields?{fields:this.fields}:{},...this.geojson?{geojson:this.geojson}:{},signal:this.signal}]}}class GeoPointNode extends DataFlowNode{clone(){return new GeoPointNode(null,this.projection,duplicate(this.fields),duplicate(this.as))}constructor(parent,projection,fields,as){super(parent),this.projection=projection,this.fields=fields,this.as=as}static parseAll(parent,model){if(!model.projectionName())return parent;for(const coordinates of[[LONGITUDE,LATITUDE],[LONGITUDE2,LATITUDE2]]){const pair=coordinates.map((channel=>{const def=getFieldOrDatumDef(model.encoding[channel]);return isFieldDef(def)?def.field:isDatumDef(def)?{expr:`${def.datum}`}:isValueDef(def)?{expr:`${def.value}`}:void 0})),suffix=coordinates[0]===LONGITUDE2?"2":"";(pair[0]||pair[1])&&(parent=new GeoPointNode(parent,model.projectionName(),pair,[model.getName(`x${suffix}`),model.getName(`y${suffix}`)]))}return parent}dependentFields(){return new Set(this.fields.filter(isString))}producedFields(){return new Set(this.as)}hash(){return`Geopoint ${this.projection} ${hash(this.fields)} ${hash(this.as)}`}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}}class ImputeNode extends DataFlowNode{clone(){return new ImputeNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform}dependentFields(){return new Set([this.transform.impute,this.transform.key,...this.transform.groupby??[]])}producedFields(){return new Set([this.transform.impute])}processSequence(keyvals){const{start=0,stop,step}=keyvals;return{signal:`sequence(${[start,stop,...step?[step]:[]].join(",")})`}}static makeFromTransform(parent,imputeTransform){return new ImputeNode(parent,imputeTransform)}static makeFromEncoding(parent,model){const encoding=model.encoding,xDef=encoding.x,yDef=encoding.y;if(isFieldDef(xDef)&&isFieldDef(yDef)){const imputedChannel=xDef.impute?xDef:yDef.impute?yDef:void 0;if(void 0===imputedChannel)return;const keyChannel=xDef.impute?yDef:yDef.impute?xDef:void 0,{method,value,frame,keyvals}=imputedChannel.impute,groupbyFields=pathGroupingFields(model.mark,encoding);return new ImputeNode(parent,{impute:imputedChannel.field,key:keyChannel.field,...method?{method}:{},...void 0!==value?{value}:{},...frame?{frame}:{},...void 0!==keyvals?{keyvals}:{},...groupbyFields.length?{groupby:groupbyFields}:{}})}return null}hash(){return`Impute ${hash(this.transform)}`}assemble(){const{impute,key,keyvals,method,groupby,value,frame=[null,null]}=this.transform,imputeTransform={type:"impute",field:impute,key,...keyvals?{keyvals:isImputeSequence(keyvals)?this.processSequence(keyvals):keyvals}:{},method:"value",...groupby?{groupby}:{},value:method&&"value"!==method?null:value};if(method&&"value"!==method){return[imputeTransform,{type:"window",as:[`imputed_${impute}_value`],ops:[method],fields:[impute],frame,ignorePeers:!1,...groupby?{groupby}:{}},{type:"formula",expr:`datum.${impute} === null ? datum.imputed_${impute}_value : datum.${impute}`,as:impute}]}return[imputeTransform]}}class LoessTransformNode extends DataFlowNode{clone(){return new LoessTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const specifiedAs=this.transform.as??[void 0,void 0];this.transform.as=[specifiedAs[0]??transform.on,specifiedAs[1]??transform.loess]}dependentFields(){return new Set([this.transform.loess,this.transform.on,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`LoessTransform ${hash(this.transform)}`}assemble(){const{loess,on,...rest}=this.transform;return{type:"loess",x:on,y:loess,...rest}}}class LookupNode extends DataFlowNode{clone(){return new LookupNode(null,duplicate(this.transform),this.secondary)}constructor(parent,transform,secondary){super(parent),this.transform=transform,this.secondary=secondary}static make(parent,model,transform,counter){const sources=model.component.data.sources,{from}=transform;let fromOutputNode=null;if(function isLookupData(from){return"data"in from}(from)){let fromSource=findSource(from.data,sources);fromSource||(fromSource=new SourceNode(from.data),sources.push(fromSource));const fromOutputName=model.getName(`lookup_${counter}`);fromOutputNode=new OutputNode(fromSource,fromOutputName,DataSourceType.Lookup,model.component.data.outputNodeRefCounts),model.component.data.outputNodes[fromOutputName]=fromOutputNode}else if(function isLookupSelection(from){return"param"in from}(from)){const selName=from.param;let selCmpt;transform={as:selName,...transform};try{selCmpt=model.getSelectionComponent(varName(selName),selName)}catch(e){throw new Error(function cannotLookupVariableParameter(name){return`Lookups can only be performed on selection parameters. "${name}" is a variable parameter.`}(selName))}if(fromOutputNode=selCmpt.materialized,!fromOutputNode)throw new Error(function noSameUnitLookup(name){return`Cannot define and lookup the "${name}" selection in the same view. Try moving the lookup into a second, layered view?`}(selName))}return new LookupNode(parent,transform,fromOutputNode.getSource())}dependentFields(){return new Set([this.transform.lookup])}producedFields(){return new Set(this.transform.as?array$5(this.transform.as):this.transform.from.fields)}hash(){return`Lookup ${hash({transform:this.transform,secondary:this.secondary})}`}assemble(){let foreign;if(this.transform.from.fields)foreign={values:this.transform.from.fields,...this.transform.as?{as:array$5(this.transform.as)}:{}};else{let asName=this.transform.as;isString(asName)||(warn('If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.'),asName="_lookup"),foreign={as:[asName]}}return{type:"lookup",from:this.secondary,key:this.transform.from.key,fields:[this.transform.lookup],...foreign,...this.transform.default?{default:this.transform.default}:{}}}}class QuantileTransformNode extends DataFlowNode{clone(){return new QuantileTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const specifiedAs=this.transform.as??[void 0,void 0];this.transform.as=[specifiedAs[0]??"prob",specifiedAs[1]??"value"]}dependentFields(){return new Set([this.transform.quantile,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`QuantileTransform ${hash(this.transform)}`}assemble(){const{quantile,...rest}=this.transform;return{type:"quantile",field:quantile,...rest}}}class RegressionTransformNode extends DataFlowNode{clone(){return new RegressionTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform,this.transform=duplicate(transform);const specifiedAs=this.transform.as??[void 0,void 0];this.transform.as=[specifiedAs[0]??transform.on,specifiedAs[1]??transform.regression]}dependentFields(){return new Set([this.transform.regression,this.transform.on,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`RegressionTransform ${hash(this.transform)}`}assemble(){const{regression,on,...rest}=this.transform;return{type:"regression",x:on,y:regression,...rest}}}class PivotTransformNode extends DataFlowNode{clone(){return new PivotTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform}addDimensions(fields){this.transform.groupby=unique((this.transform.groupby??[]).concat(fields),(d=>d))}producedFields(){}dependentFields(){return new Set([this.transform.pivot,this.transform.value,...this.transform.groupby??[]])}hash(){return`PivotTransform ${hash(this.transform)}`}assemble(){const{pivot,value,groupby,limit,op}=this.transform;return{type:"pivot",field:pivot,value,...void 0!==limit?{limit}:{},...void 0!==op?{op}:{},...void 0!==groupby?{groupby}:{}}}}class SampleTransformNode extends DataFlowNode{clone(){return new SampleTransformNode(null,duplicate(this.transform))}constructor(parent,transform){super(parent),this.transform=transform}dependentFields(){return new Set}producedFields(){return new Set}hash(){return`SampleTransform ${hash(this.transform)}`}assemble(){return{type:"sample",size:this.transform.sample}}}function makeWalkTree(data){let datasetIndex=0;return function walkTree(node,dataSource){if(node instanceof SourceNode&&!node.isGenerator&&!isUrlData(node.data)){data.push(dataSource);dataSource={name:null,source:dataSource.name,transform:[]}}if(node instanceof ParseNode&&(node.parent instanceof SourceNode&&!dataSource.source?(dataSource.format={...dataSource.format??{},parse:node.assembleFormatParse()},dataSource.transform.push(...node.assembleTransforms(!0))):dataSource.transform.push(...node.assembleTransforms())),node instanceof FacetNode)return dataSource.name||(dataSource.name="data_"+datasetIndex++),!dataSource.source||dataSource.transform.length>0?(data.push(dataSource),node.data=dataSource.name):node.data=dataSource.source,void data.push(...node.assemble());if((node instanceof GraticuleNode||node instanceof SequenceNode||node instanceof FilterInvalidNode||node instanceof FilterNode||node instanceof CalculateNode||node instanceof GeoPointNode||node instanceof AggregateNode||node instanceof LookupNode||node instanceof WindowTransformNode||node instanceof JoinAggregateTransformNode||node instanceof FoldTransformNode||node instanceof FlattenTransformNode||node instanceof DensityTransformNode||node instanceof LoessTransformNode||node instanceof QuantileTransformNode||node instanceof RegressionTransformNode||node instanceof IdentifierNode||node instanceof SampleTransformNode||node instanceof PivotTransformNode||node instanceof ExtentTransformNode)&&dataSource.transform.push(node.assemble()),(node instanceof BinNode||node instanceof TimeUnitNode||node instanceof ImputeNode||node instanceof StackNode||node instanceof GeoJSONNode)&&dataSource.transform.push(...node.assemble()),node instanceof OutputNode)if(dataSource.source&&0===dataSource.transform.length)node.setSource(dataSource.source);else if(node.parent instanceof OutputNode)node.setSource(dataSource.name);else if(dataSource.name||(dataSource.name="data_"+datasetIndex++),node.setSource(dataSource.name),1===node.numChildren()){data.push(dataSource);dataSource={name:null,source:dataSource.name,transform:[]}}switch(node.numChildren()){case 0:node instanceof OutputNode&&(!dataSource.source||dataSource.transform.length>0)&&data.push(dataSource);break;case 1:walkTree(node.children[0],dataSource);break;default:{dataSource.name||(dataSource.name="data_"+datasetIndex++);let source=dataSource.name;!dataSource.source||dataSource.transform.length>0?data.push(dataSource):source=dataSource.source;for(const child of node.children){walkTree(child,{name:null,source,transform:[]})}break}}}}function getHeaderType(orient){return"top"===orient||"left"===orient||isSignalRef(orient)?"header":"footer"}function parseFacetHeader(model,channel){const{facet,config,child,component}=model;if(model.channelHasField(channel)){const fieldDef=facet[channel],titleConfig=getHeaderProperty("title",null,config,channel);let title$1=title(fieldDef,config,{allowDisabling:!0,includeDefault:void 0===titleConfig||!!titleConfig});child.component.layoutHeaders[channel].title&&(title$1=isArray(title$1)?title$1.join(", "):title$1,title$1+=` / ${child.component.layoutHeaders[channel].title}`,child.component.layoutHeaders[channel].title=null);const labelOrient=getHeaderProperty("labelOrient",fieldDef.header,config,channel),labels=null!==fieldDef.header&&getFirstDefined(fieldDef.header?.labels,config.header.labels,!0),headerType=contains(["bottom","right"],labelOrient)?"footer":"header";component.layoutHeaders[channel]={title:null!==fieldDef.header?title$1:null,facetFieldDef:fieldDef,[headerType]:"facet"===channel?[]:[makeHeaderComponent(model,channel,labels)]}}}function makeHeaderComponent(model,channel,labels){const sizeType="row"===channel?"height":"width";return{labels,sizeSignal:model.child.component.layoutSize.get(sizeType)?model.child.getSizeSignalRef(sizeType):void 0,axes:[]}}function mergeChildAxis(model,channel){const{child}=model;if(child.component.axes[channel]){const{layoutHeaders,resolve}=model.component;if(resolve.axis[channel]=parseGuideResolve(resolve,channel),"shared"===resolve.axis[channel]){const headerChannel="x"===channel?"column":"row",layoutHeader=layoutHeaders[headerChannel];for(const axisComponent of child.component.axes[channel]){const headerType=getHeaderType(axisComponent.get("orient"));layoutHeader[headerType]??(layoutHeader[headerType]=[makeHeaderComponent(model,headerChannel,!1)]);const mainAxis=assembleAxis(axisComponent,"main",model.config,{header:!0});mainAxis&&layoutHeader[headerType][0].axes.push(mainAxis),axisComponent.mainExtracted=!0}}}}function parseChildrenLayoutSize(model){for(const child of model.children)child.parseLayoutSize()}function parseNonUnitLayoutSizeForChannel(model,layoutSizeType){const sizeType=getSizeTypeFromLayoutSizeType(layoutSizeType),channel=getPositionScaleChannel(sizeType),resolve=model.component.resolve,layoutSizeCmpt=model.component.layoutSize;let mergedSize;for(const child of model.children){const childSize=child.component.layoutSize.getWithExplicit(sizeType),scaleResolve=resolve.scale[channel]??defaultScaleResolve(channel,model);if("independent"===scaleResolve&&"step"===childSize.value){mergedSize=void 0;break}if(mergedSize){if("independent"===scaleResolve&&mergedSize.value!==childSize.value){mergedSize=void 0;break}mergedSize=mergeValuesWithExplicit(mergedSize,childSize,sizeType,"")}else mergedSize=childSize}if(mergedSize){for(const child of model.children)model.renameSignal(child.getName(sizeType),model.getName(layoutSizeType)),child.component.layoutSize.set(sizeType,"merged",!1);layoutSizeCmpt.setWithExplicit(layoutSizeType,mergedSize)}else layoutSizeCmpt.setWithExplicit(layoutSizeType,{explicit:!1,value:void 0})}function defaultUnitSize(model,sizeType){const channel="width"===sizeType?"x":"y",config=model.config,scaleComponent=model.getScaleComponent(channel);if(scaleComponent){const scaleType=scaleComponent.get("type"),range=scaleComponent.get("range");if(hasDiscreteDomain(scaleType)){const size=getViewConfigDiscreteSize(config.view,sizeType);return isVgRangeStep(range)||isStep(size)?"step":size}return getViewConfigContinuousSize(config.view,sizeType)}if(model.hasProjection||"arc"===model.mark)return getViewConfigContinuousSize(config.view,sizeType);{const size=getViewConfigDiscreteSize(config.view,sizeType);return isStep(size)?size.step:size}}function facetSortFieldName(fieldDef,sort,opt){return vgField(sort,{suffix:`by_${vgField(fieldDef)}`,...opt??{}})}class FacetModel extends ModelWithField{constructor(spec,parent,parentGivenName,config){super(spec,"facet",parent,parentGivenName,config,spec.resolve),this.child=buildModel(spec.spec,this,this.getName("child"),void 0,config),this.children=[this.child],this.facet=this.initFacet(spec.facet)}initFacet(facet){if(!isFacetMapping(facet))return{facet:this.initFacetFieldDef(facet,"facet")};const channels=keys(facet),normalizedFacet={};for(const channel of channels){if(![ROW,COLUMN].includes(channel)){warn(incompatibleChannel(channel,"facet"));break}const fieldDef=facet[channel];if(void 0===fieldDef.field){warn(emptyFieldDef(fieldDef,channel));break}normalizedFacet[channel]=this.initFacetFieldDef(fieldDef,channel)}return normalizedFacet}initFacetFieldDef(fieldDef,channel){const facetFieldDef=initFieldDef(fieldDef,channel);return facetFieldDef.header?facetFieldDef.header=replaceExprRef(facetFieldDef.header):null===facetFieldDef.header&&(facetFieldDef.header=null),facetFieldDef}channelHasField(channel){return!!this.facet[channel]}fieldDef(channel){return this.facet[channel]}parseData(){this.component.data=parseData(this),this.child.parseData()}parseLayoutSize(){parseChildrenLayoutSize(this)}parseSelections(){this.child.parseSelections(),this.component.selection=this.child.component.selection}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders(),function parseFacetHeaders(model){for(const channel of FACET_CHANNELS)parseFacetHeader(model,channel);mergeChildAxis(model,"x"),mergeChildAxis(model,"y")}(this)}assembleSelectionTopLevelSignals(signals){return this.child.assembleSelectionTopLevelSignals(signals)}assembleSignals(){return this.child.assembleSignals(),[]}assembleSelectionData(data){return this.child.assembleSelectionData(data)}getHeaderLayoutMixins(){const layoutMixins={};for(const channel of FACET_CHANNELS)for(const headerType of HEADER_TYPES){const layoutHeaderComponent=this.component.layoutHeaders[channel],headerComponent=layoutHeaderComponent[headerType],{facetFieldDef}=layoutHeaderComponent;if(facetFieldDef){const titleOrient=getHeaderProperty("titleOrient",facetFieldDef.header,this.config,channel);if(["right","bottom"].includes(titleOrient)){const headerChannel=getHeaderChannel(channel,titleOrient);layoutMixins.titleAnchor??(layoutMixins.titleAnchor={}),layoutMixins.titleAnchor[headerChannel]="end"}}if(headerComponent?.[0]){const sizeType="row"===channel?"height":"width",bandType="header"===headerType?"headerBand":"footerBand";"facet"===channel||this.child.component.layoutSize.get(sizeType)||(layoutMixins[bandType]??(layoutMixins[bandType]={}),layoutMixins[bandType][channel]=.5),layoutHeaderComponent.title&&(layoutMixins.offset??(layoutMixins.offset={}),layoutMixins.offset["row"===channel?"rowTitle":"columnTitle"]=10)}}return layoutMixins}assembleDefaultLayout(){const{column,row}=this.facet,columns=column?this.columnDistinctSignal():row?1:void 0;let align="all";return(row||"independent"!==this.component.resolve.scale.x)&&(column||"independent"!==this.component.resolve.scale.y)||(align="none"),{...this.getHeaderLayoutMixins(),...columns?{columns}:{},bounds:"full",align}}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(!(this.parent&&this.parent instanceof FacetModel)){return{signal:`length(data('${this.getName("column_domain")}'))`}}}assembleGroupStyle(){}assembleGroup(signals){return this.parent&&this.parent instanceof FacetModel?{...this.channelHasField("column")?{encode:{update:{columns:{field:vgField(this.facet.column,{prefix:"distinct"})}}}}:{},...super.assembleGroup(signals)}:super.assembleGroup(signals)}getCardinalityAggregateForChild(){const fields=[],ops=[],as=[];if(this.child instanceof FacetModel){if(this.child.channelHasField("column")){const field=vgField(this.child.facet.column);fields.push(field),ops.push("distinct"),as.push(`distinct_${field}`)}}else for(const channel of POSITION_SCALE_CHANNELS){const childScaleComponent=this.child.component.scales[channel];if(childScaleComponent&&!childScaleComponent.merged){const type=childScaleComponent.get("type"),range=childScaleComponent.get("range");if(hasDiscreteDomain(type)&&isVgRangeStep(range)){const field=getFieldFromDomain(assembleDomain(this.child,channel));field?(fields.push(field),ops.push("distinct"),as.push(`distinct_${field}`)):warn(unknownField(channel))}}}return{fields,ops,as}}assembleFacet(){const{name,data}=this.component.data.facetRoot,{row,column}=this.facet,{fields,ops,as}=this.getCardinalityAggregateForChild(),groupby=[];for(const channel of FACET_CHANNELS){const fieldDef=this.facet[channel];if(fieldDef){groupby.push(vgField(fieldDef));const{bin,sort}=fieldDef;if(isBinning(bin)&&groupby.push(vgField(fieldDef,{binSuffix:"end"})),isSortField(sort)){const{field,op=DEFAULT_SORT_OP}=sort,outputName=facetSortFieldName(fieldDef,sort);row&&column?(fields.push(outputName),ops.push("max"),as.push(outputName)):(fields.push(field),ops.push(op),as.push(outputName))}else if(isArray(sort)){const outputName=sortArrayIndexField(fieldDef,channel);fields.push(outputName),ops.push("max"),as.push(outputName)}}}const cross=!!row&&!!column;return{name,data,groupby,...cross||fields.length>0?{aggregate:{...cross?{cross}:{},...fields.length?{fields,ops,as}:{}}}:{}}}facetSortFields(channel){const{facet}=this,fieldDef=facet[channel];return fieldDef?isSortField(fieldDef.sort)?[facetSortFieldName(fieldDef,fieldDef.sort,{expr:"datum"})]:isArray(fieldDef.sort)?[sortArrayIndexField(fieldDef,channel,{expr:"datum"})]:[vgField(fieldDef,{expr:"datum"})]:[]}facetSortOrder(channel){const{facet}=this,fieldDef=facet[channel];if(fieldDef){const{sort}=fieldDef;return[(isSortField(sort)?sort.order:!isArray(sort)&&sort)||"ascending"]}return[]}assembleLabelTitle(){const{facet,config}=this;if(facet.facet)return assembleLabelTitle(facet.facet,"facet",config);const ORTHOGONAL_ORIENT={row:["top","bottom"],column:["left","right"]};for(const channel of HEADER_CHANNELS)if(facet[channel]){const labelOrient=getHeaderProperty("labelOrient",facet[channel]?.header,config,channel);if(ORTHOGONAL_ORIENT[channel].includes(labelOrient))return assembleLabelTitle(facet[channel],channel,config)}}assembleMarks(){const{child}=this,data=function assembleFacetData(root){const data=[],walkTree=makeWalkTree(data);for(const child of root.children)walkTree(child,{source:root.name,name:null,transform:[]});return data}(this.component.data.facetRoot),encodeEntry=child.assembleGroupEncodeEntry(!1),title=this.assembleLabelTitle()||child.assembleTitle(),style=child.assembleGroupStyle(),markGroup={name:this.getName("cell"),type:"group",...title?{title}:{},...style?{style}:{},from:{facet:this.assembleFacet()},sort:{field:FACET_CHANNELS.map((c=>this.facetSortFields(c))).flat(),order:FACET_CHANNELS.map((c=>this.facetSortOrder(c))).flat()},...data.length>0?{data}:{},...encodeEntry?{encode:{update:encodeEntry}}:{},...child.assembleGroup(assembleFacetSignals(this,[]))};return[markGroup]}getMapping(){return this.facet}}function findSource(data,sources){for(const other of sources){const otherData=other.data;if(data.name&&other.hasName()&&data.name!==other.dataName)continue;const formatMesh=data.format?.mesh,otherFeature=otherData.format?.feature;if(formatMesh&&otherFeature)continue;const formatFeature=data.format?.feature;if((formatFeature||otherFeature)&&formatFeature!==otherFeature)continue;const otherMesh=otherData.format?.mesh;if(!formatMesh&&!otherMesh||formatMesh===otherMesh)if(isInlineData(data)&&isInlineData(otherData)){if(deepEqual(data.values,otherData.values))return other}else if(isUrlData(data)&&isUrlData(otherData)){if(data.url===otherData.url)return other}else if(isNamedData(data)&&data.name===other.dataName)return other}return null}function parseData(model){let head=function parseRoot(model,sources){if(model.data||!model.parent){if(null===model.data){const source=new SourceNode({values:[]});return sources.push(source),source}const existingSource=findSource(model.data,sources);if(existingSource)return isGenerator(model.data)||(existingSource.data.format=mergeDeep$1({},model.data.format,existingSource.data.format)),!existingSource.hasName()&&model.data.name&&(existingSource.dataName=model.data.name),existingSource;{const source=new SourceNode(model.data);return sources.push(source),source}}return model.parent.component.data.facetRoot?model.parent.component.data.facetRoot:model.parent.component.data.main}(model,model.component.data.sources);const{outputNodes,outputNodeRefCounts}=model.component.data,data=model.data,ancestorParse=!(data&&(isGenerator(data)||isUrlData(data)||isInlineData(data)))&&model.parent?model.parent.component.data.ancestorParse.clone():new AncestorParse;isGenerator(data)?(isSequenceGenerator(data)?head=new SequenceNode(head,data.sequence):isGraticuleGenerator(data)&&(head=new GraticuleNode(head,data.graticule)),ancestorParse.parseNothing=!0):null===data?.format?.parse&&(ancestorParse.parseNothing=!0),head=ParseNode.makeExplicit(head,model,ancestorParse)??head,head=new IdentifierNode(head);const parentIsLayer=model.parent&&isLayerModel(model.parent);(isUnitModel(model)||isFacetModel(model))&&parentIsLayer&&(head=BinNode.makeFromEncoding(head,model)??head),model.transforms.length>0&&(head=function parseTransformArray(head,model,ancestorParse){let lookupCounter=0;for(const t of model.transforms){let derivedType,transformNode;if(isCalculate(t))transformNode=head=new CalculateNode(head,t),derivedType="derived";else if(isFilter(t)){const implicit=getImplicitFromFilterTransform(t);transformNode=head=ParseNode.makeWithAncestors(head,{},implicit,ancestorParse)??head,head=new FilterNode(head,model,t.filter)}else if(isBin(t))transformNode=head=BinNode.makeFromTransform(head,t,model),derivedType="number";else if(isTimeUnit(t))derivedType="date",void 0===ancestorParse.getWithExplicit(t.field).value&&(head=new ParseNode(head,{[t.field]:derivedType}),ancestorParse.set(t.field,derivedType,!1)),transformNode=head=TimeUnitNode.makeFromTransform(head,t);else if(isAggregate(t))transformNode=head=AggregateNode.makeFromTransform(head,t),derivedType="number",requiresSelectionId(model)&&(head=new IdentifierNode(head));else if(isLookup(t))transformNode=head=LookupNode.make(head,model,t,lookupCounter++),derivedType="derived";else if(isWindow(t))transformNode=head=new WindowTransformNode(head,t),derivedType="number";else if(isJoinAggregate(t))transformNode=head=new JoinAggregateTransformNode(head,t),derivedType="number";else if(isStack(t))transformNode=head=StackNode.makeFromTransform(head,t),derivedType="derived";else if(isFold(t))transformNode=head=new FoldTransformNode(head,t),derivedType="derived";else if(isExtent(t))transformNode=head=new ExtentTransformNode(head,t),derivedType="derived";else if(isFlatten(t))transformNode=head=new FlattenTransformNode(head,t),derivedType="derived";else if(isPivot(t))transformNode=head=new PivotTransformNode(head,t),derivedType="derived";else if(isSample(t))head=new SampleTransformNode(head,t);else if(isImpute(t))transformNode=head=ImputeNode.makeFromTransform(head,t),derivedType="derived";else if(isDensity(t))transformNode=head=new DensityTransformNode(head,t),derivedType="derived";else if(isQuantile(t))transformNode=head=new QuantileTransformNode(head,t),derivedType="derived";else if(isRegression(t))transformNode=head=new RegressionTransformNode(head,t),derivedType="derived";else{if(!isLoess(t)){warn(invalidTransformIgnored(t));continue}transformNode=head=new LoessTransformNode(head,t),derivedType="derived"}if(transformNode&&void 0!==derivedType)for(const field of transformNode.producedFields()??[])ancestorParse.set(field,derivedType,!1)}return head}(head,model,ancestorParse));const implicitSelection=function getImplicitFromSelection(model){const implicit={};if(isUnitModel(model)&&model.component.selection)for(const name of keys(model.component.selection)){const selCmpt=model.component.selection[name];for(const proj of selCmpt.project.items)!proj.channel&&accessPathDepth(proj.field)>1&&(implicit[proj.field]="flatten")}return implicit}(model),implicitEncoding=getImplicitFromEncoding(model);head=ParseNode.makeWithAncestors(head,{},{...implicitSelection,...implicitEncoding},ancestorParse)??head,isUnitModel(model)&&(head=GeoJSONNode.parseAll(head,model),head=GeoPointNode.parseAll(head,model)),(isUnitModel(model)||isFacetModel(model))&&(parentIsLayer||(head=BinNode.makeFromEncoding(head,model)??head),head=TimeUnitNode.makeFromEncoding(head,model)??head,head=CalculateNode.parseAllForSortIndex(head,model));const rawName=model.getDataName(DataSourceType.Raw),raw=new OutputNode(head,rawName,DataSourceType.Raw,outputNodeRefCounts);if(outputNodes[rawName]=raw,head=raw,isUnitModel(model)){const agg=AggregateNode.makeFromEncoding(head,model);agg&&(head=agg,requiresSelectionId(model)&&(head=new IdentifierNode(head))),head=ImputeNode.makeFromEncoding(head,model)??head,head=StackNode.makeFromEncoding(head,model)??head}isUnitModel(model)&&(head=FilterInvalidNode.make(head,model)??head);const mainName=model.getDataName(DataSourceType.Main),main=new OutputNode(head,mainName,DataSourceType.Main,outputNodeRefCounts);outputNodes[mainName]=main,head=main,isUnitModel(model)&&function materializeSelections(model,main){for(const[selection,selCmpt]of entries$1(model.component.selection??{})){const lookupName=model.getName(`lookup_${selection}`);model.component.data.outputNodes[lookupName]=selCmpt.materialized=new OutputNode(new FilterNode(main,model,{param:selection}),lookupName,DataSourceType.Lookup,model.component.data.outputNodeRefCounts)}}(model,main);let facetRoot=null;if(isFacetModel(model)){const facetName=model.getName("facet");head=function makeJoinAggregateFromFacet(parent,facet){const{row,column}=facet;if(row&&column){let newParent=null;for(const fieldDef of[row,column])if(isSortField(fieldDef.sort)){const{field,op=DEFAULT_SORT_OP}=fieldDef.sort;parent=newParent=new JoinAggregateTransformNode(parent,{joinaggregate:[{op,field,as:facetSortFieldName(fieldDef,fieldDef.sort,{forAs:!0})}],groupby:[vgField(fieldDef)]})}return newParent}return null}(head,model.facet)??head,facetRoot=new FacetNode(head,model,facetName,main.getSource()),outputNodes[facetName]=facetRoot}return{...model.component.data,outputNodes,outputNodeRefCounts,raw,main,facetRoot,ancestorParse}}class ConcatModel extends Model{constructor(spec,parent,parentGivenName,config){super(spec,"concat",parent,parentGivenName,config,spec.resolve),"shared"!==spec.resolve?.axis?.x&&"shared"!==spec.resolve?.axis?.y||warn("Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415)."),this.children=this.getChildren(spec).map(((child,i)=>buildModel(child,this,this.getName(`concat_${i}`),void 0,config)))}parseData(){this.component.data=parseData(this);for(const child of this.children)child.parseData()}parseSelections(){this.component.selection={};for(const child of this.children){child.parseSelections();for(const key of keys(child.component.selection))this.component.selection[key]=child.component.selection[key]}}parseMarkGroup(){for(const child of this.children)child.parseMarkGroup()}parseAxesAndHeaders(){for(const child of this.children)child.parseAxesAndHeaders()}getChildren(spec){return isVConcatSpec(spec)?spec.vconcat:isHConcatSpec(spec)?spec.hconcat:spec.concat}parseLayoutSize(){!function parseConcatLayoutSize(model){parseChildrenLayoutSize(model);const widthType=1===model.layout.columns?"width":"childWidth",heightType=void 0===model.layout.columns?"height":"childHeight";parseNonUnitLayoutSizeForChannel(model,widthType),parseNonUnitLayoutSizeForChannel(model,heightType)}(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(signals){return this.children.reduce(((sg,child)=>child.assembleSelectionTopLevelSignals(sg)),signals)}assembleSignals(){return this.children.forEach((child=>child.assembleSignals())),[]}assembleLayoutSignals(){const layoutSignals=assembleLayoutSignals(this);for(const child of this.children)layoutSignals.push(...child.assembleLayoutSignals());return layoutSignals}assembleSelectionData(data){return this.children.reduce(((db,child)=>child.assembleSelectionData(db)),data)}assembleMarks(){return this.children.map((child=>{const title=child.assembleTitle(),style=child.assembleGroupStyle(),encodeEntry=child.assembleGroupEncodeEntry(!1);return{type:"group",name:child.getName("group"),...title?{title}:{},...style?{style}:{},...encodeEntry?{encode:{update:encodeEntry}}:{},...child.assembleGroup()}}))}assembleGroupStyle(){}assembleDefaultLayout(){const columns=this.layout.columns;return{...null!=columns?{columns}:{},bounds:"full",align:"each"}}}const AXIS_COMPONENT_PROPERTIES_INDEX={disable:1,gridScale:1,scale:1,...COMMON_AXIS_PROPERTIES_INDEX,labelExpr:1,encode:1},AXIS_COMPONENT_PROPERTIES=keys(AXIS_COMPONENT_PROPERTIES_INDEX);class AxisComponent extends Split{constructor(explicit={},implicit={},mainExtracted=!1){super(),this.explicit=explicit,this.implicit=implicit,this.mainExtracted=mainExtracted}clone(){return new AxisComponent(duplicate(this.explicit),duplicate(this.implicit),this.mainExtracted)}hasAxisPart(part){return"axis"===part||("grid"===part||"title"===part?!!this.get(part):!function isFalseOrNull(v){return!1===v||null===v}(this.get(part)))}hasOrientSignalRef(){return isSignalRef(this.explicit.orient)}}const OPPOSITE_ORIENT={bottom:"top",top:"bottom",left:"right",right:"left"};function mergeAxisComponents(mergedAxisCmpts,childAxisCmpts){if(!mergedAxisCmpts)return childAxisCmpts.map((axisComponent=>axisComponent.clone()));{if(mergedAxisCmpts.length!==childAxisCmpts.length)return;const length=mergedAxisCmpts.length;for(let i=0;i{switch(prop){case"title":return mergeTitleComponent(v1,v2);case"gridScale":return{explicit:v1.explicit,value:getFirstDefined(v1.value,v2.value)}}return defaultTieBreaker(v1,v2,prop,"axis")}));merged.setWithExplicit(prop,mergedValueWithExplicit)}return merged}function isExplicit(value,property,axis,model,channel){if("disable"===property)return void 0!==axis;switch(axis=axis||{},property){case"titleAngle":case"labelAngle":return value===(isSignalRef(axis.labelAngle)?axis.labelAngle:normalizeAngle(axis.labelAngle));case"values":return!!axis.values;case"encode":return!!axis.encoding||!!axis.labelAngle;case"title":if(value===getFieldDefTitle(model,channel))return!0}return value===axis[property]}const propsToAlwaysIncludeConfig=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function parseAxis(channel,model){let axis=model.axis(channel);const axisComponent=new AxisComponent,fieldOrDatumDef=getFieldOrDatumDef(model.encoding[channel]),{mark,config}=model,orient=axis?.orient||config["x"===channel?"axisX":"axisY"]?.orient||config.axis?.orient||function defaultOrient(channel){return"x"===channel?"bottom":"left"}(channel),scaleType=model.getScaleComponent(channel).get("type"),axisConfigs=function getAxisConfigs(channel,scaleType,orient,config){const typeBasedConfigTypes="band"===scaleType?["axisDiscrete","axisBand"]:"point"===scaleType?["axisDiscrete","axisPoint"]:isQuantitative(scaleType)?["axisQuantitative"]:"time"===scaleType||"utc"===scaleType?["axisTemporal"]:[],axisChannel="x"===channel?"axisX":"axisY",axisOrient=isSignalRef(orient)?"axisOrient":`axis${titleCase(orient)}`,vlOnlyConfigTypes=[...typeBasedConfigTypes,...typeBasedConfigTypes.map((c=>axisChannel+c.substr(4)))],vgConfigTypes=["axis",axisOrient,axisChannel];return{vlOnlyAxisConfig:getAxisConfigFromConfigTypes(vlOnlyConfigTypes,config,channel,orient),vgAxisConfig:getAxisConfigFromConfigTypes(vgConfigTypes,config,channel,orient),axisConfigStyle:getAxisConfigStyle([...vgConfigTypes,...vlOnlyConfigTypes],config)}}(channel,scaleType,orient,model.config),disable=void 0!==axis?!axis:getAxisConfig("disable",config.style,axis?.style,axisConfigs).configValue;if(axisComponent.set("disable",disable,void 0!==axis),disable)return axisComponent;axis=axis||{};const labelAngle=function getLabelAngle(fieldOrDatumDef,axis,channel,styleConfig,axisConfigs){const labelAngle=axis?.labelAngle;if(void 0!==labelAngle)return isSignalRef(labelAngle)?labelAngle:normalizeAngle(labelAngle);{const{configValue:angle}=getAxisConfig("labelAngle",styleConfig,axis?.style,axisConfigs);return void 0!==angle?normalizeAngle(angle):channel!==X||!contains([NOMINAL,ORDINAL],fieldOrDatumDef.type)||isFieldDef(fieldOrDatumDef)&&fieldOrDatumDef.timeUnit?void 0:270}}(fieldOrDatumDef,axis,channel,config.style,axisConfigs),formatType=guideFormatType(axis.formatType,fieldOrDatumDef,scaleType),format=guideFormat(fieldOrDatumDef,fieldOrDatumDef.type,axis.format,axis.formatType,config,!0),ruleParams={fieldOrDatumDef,axis,channel,model,scaleType,orient,labelAngle,format,formatType,mark,config};for(const property of AXIS_COMPONENT_PROPERTIES){const value=property in axisRules?axisRules[property](ruleParams):isAxisProperty(property)?axis[property]:void 0,hasValue=void 0!==value,explicit=isExplicit(value,property,axis,model,channel);if(hasValue&&explicit)axisComponent.set(property,value,explicit);else{const{configValue,configFrom}=isAxisProperty(property)&&"values"!==property?getAxisConfig(property,config.style,axis.style,axisConfigs):{},hasConfigValue=void 0!==configValue;hasValue&&!hasConfigValue?axisComponent.set(property,value,explicit):("vgAxisConfig"!==configFrom||propsToAlwaysIncludeConfig.has(property)&&hasConfigValue||isConditionalAxisValue(configValue)||isSignalRef(configValue))&&axisComponent.set(property,configValue,!1)}}const axisEncoding=axis.encoding??{},axisEncode=AXIS_PARTS.reduce(((e,part)=>{if(!axisComponent.hasAxisPart(part))return e;const axisEncodingPart=guideEncodeEntry(axisEncoding[part]??{},model),value="labels"===part?function labels(model,channel,specifiedLabelsSpec){const{encoding,config}=model,fieldOrDatumDef=getFieldOrDatumDef(encoding[channel])??getFieldOrDatumDef(encoding[getSecondaryRangeChannel(channel)]),axis=model.axis(channel)||{},{format,formatType}=axis;if(isCustomFormatType(formatType))return{text:formatCustomType({fieldOrDatumDef,field:"datum.value",format,formatType,config}),...specifiedLabelsSpec};if(void 0===format&&void 0===formatType&&config.customFormatTypes){if("quantitative"===channelDefType(fieldOrDatumDef)){if(isPositionFieldOrDatumDef(fieldOrDatumDef)&&"normalize"===fieldOrDatumDef.stack&&config.normalizedNumberFormatType)return{text:formatCustomType({fieldOrDatumDef,field:"datum.value",format:config.normalizedNumberFormat,formatType:config.normalizedNumberFormatType,config}),...specifiedLabelsSpec};if(config.numberFormatType)return{text:formatCustomType({fieldOrDatumDef,field:"datum.value",format:config.numberFormat,formatType:config.numberFormatType,config}),...specifiedLabelsSpec}}if("temporal"===channelDefType(fieldOrDatumDef)&&config.timeFormatType&&isFieldDef(fieldOrDatumDef)&&!fieldOrDatumDef.timeUnit)return{text:formatCustomType({fieldOrDatumDef,field:"datum.value",format:config.timeFormat,formatType:config.timeFormatType,config}),...specifiedLabelsSpec}}return specifiedLabelsSpec}(model,channel,axisEncodingPart):axisEncodingPart;return void 0===value||isEmpty(value)||(e[part]={update:value}),e}),{});return isEmpty(axisEncode)||axisComponent.set("encode",axisEncode,!!axis.encoding||void 0!==axis.labelAngle),axisComponent}function encodeEntry(model,fixedShape){const{config}=model;return{...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"}),...pointPosition("x",model,{defaultPos:"mid"}),...pointPosition("y",model,{defaultPos:"mid"}),...nonPosition("size",model),...nonPosition("angle",model),...shapeMixins(model,config,fixedShape)}}function shapeMixins(model,config,fixedShape){return fixedShape?{shape:{value:fixedShape}}:nonPosition("shape",model)}const rule={vgMark:"rule",encodeEntry:model=>{const{markDef}=model,orient=markDef.orient;return model.encoding.x||model.encoding.y||model.encoding.latitude||model.encoding.longitude?{...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...pointOrRangePosition("x",model,{defaultPos:"horizontal"===orient?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"vertical"!==orient}),...pointOrRangePosition("y",model,{defaultPos:"vertical"===orient?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:"horizontal"!==orient}),...nonPosition("size",model,{vgChannel:"strokeWidth"})}:{}}};function align(markDef,encoding,config){if(void 0===getMarkPropOrConfig("align",markDef,config))return"center"}function baseline(markDef,encoding,config){if(void 0===getMarkPropOrConfig("baseline",markDef,config))return"middle"}const tick={vgMark:"rect",encodeEntry:model=>{const{config,markDef}=model,orient=markDef.orient,vgSizeChannel="horizontal"===orient?"width":"height",vgThicknessChannel="horizontal"===orient?"height":"width";return{...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...pointPosition("x",model,{defaultPos:"mid",vgChannel:"xc"}),...pointPosition("y",model,{defaultPos:"mid",vgChannel:"yc"}),...nonPosition("size",model,{defaultValue:defaultSize(model),vgChannel:vgSizeChannel}),[vgThicknessChannel]:signalOrValueRef(getMarkPropOrConfig("thickness",markDef,config))}}};function defaultSize(model){const{config,markDef}=model,{orient}=markDef,vgSizeChannel="horizontal"===orient?"width":"height",scale=model.getScaleComponent("horizontal"===orient?"x":"y"),markPropOrConfig=getMarkPropOrConfig("size",markDef,config,{vgChannel:vgSizeChannel})??config.tick.bandSize;if(void 0!==markPropOrConfig)return markPropOrConfig;{const scaleRange=scale?scale.get("range"):void 0;if(scaleRange&&isVgRangeStep(scaleRange)&&isNumber$1(scaleRange.step))return 3*scaleRange.step/4;return 3*getViewConfigDiscreteStep(config.view,vgSizeChannel)/4}}const markCompiler={arc:{vgMark:"arc",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"}),...pointPosition("x",model,{defaultPos:"mid"}),...pointPosition("y",model,{defaultPos:"mid"}),...rectPosition(model,"radius"),...rectPosition(model,"theta")})},area:{vgMark:"area",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"}),...pointOrRangePosition("x",model,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"horizontal"===model.markDef.orient}),...pointOrRangePosition("y",model,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:"vertical"===model.markDef.orient}),...defined(model)})},bar:{vgMark:"rect",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...rectPosition(model,"x"),...rectPosition(model,"y")})},circle:{vgMark:"symbol",encodeEntry:model=>encodeEntry(model,"circle")},geoshape:{vgMark:"shape",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})}),postEncodingTransform:model=>{const{encoding}=model,shapeDef=encoding.shape;return[{type:"geoshape",projection:model.projectionName(),...shapeDef&&isFieldDef(shapeDef)&&shapeDef.type===GEOJSON?{field:vgField(shapeDef,{expr:"datum"})}:{}}]}},image:{vgMark:"image",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"}),...rectPosition(model,"x"),...rectPosition(model,"y"),...text$1(model,"url")})},line:{vgMark:"line",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"}),...pointPosition("x",model,{defaultPos:"mid"}),...pointPosition("y",model,{defaultPos:"mid"}),...nonPosition("size",model,{vgChannel:"strokeWidth"}),...defined(model)})},point:{vgMark:"symbol",encodeEntry:model=>encodeEntry(model)},rect:{vgMark:"rect",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...rectPosition(model,"x"),...rectPosition(model,"y")})},rule,square:{vgMark:"symbol",encodeEntry:model=>encodeEntry(model,"square")},text:{vgMark:"text",encodeEntry:model=>{const{config,encoding}=model;return{...baseEncodeEntry(model,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"}),...pointPosition("x",model,{defaultPos:"mid"}),...pointPosition("y",model,{defaultPos:"mid"}),...text$1(model),...nonPosition("size",model,{vgChannel:"fontSize"}),...nonPosition("angle",model),...valueIfDefined("align",align(model.markDef,encoding,config)),...valueIfDefined("baseline",baseline(model.markDef,encoding,config)),...pointPosition("radius",model,{defaultPos:null}),...pointPosition("theta",model,{defaultPos:null})}}},tick,trail:{vgMark:"trail",encodeEntry:model=>({...baseEncodeEntry(model,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"}),...pointPosition("x",model,{defaultPos:"mid"}),...pointPosition("y",model,{defaultPos:"mid"}),...nonPosition("size",model),...defined(model)})}};function parseMarkGroups(model){if(contains([LINE,AREA,TRAIL],model.mark)){const details=pathGroupingFields(model.mark,model.encoding);if(details.length>0)return function getPathGroups(model,details){return[{name:model.getName("pathgroup"),type:"group",from:{facet:{name:FACETED_PATH_PREFIX+model.requestDataName(DataSourceType.Main),data:model.requestDataName(DataSourceType.Main),groupby:details}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:getMarkGroup(model,{fromPrefix:FACETED_PATH_PREFIX})}]}(model,details)}else if(model.mark===BAR){const hasCornerRadius=VG_CORNERRADIUS_CHANNELS.some((prop=>getMarkPropOrConfig(prop,model.markDef,model.config)));if(model.stack&&!model.fieldDef("size")&&hasCornerRadius)return function getGroupsForStackedBarWithCornerRadius(model){const[mark]=getMarkGroup(model,{fromPrefix:STACK_GROUP_PREFIX}),fieldScale=model.scaleName(model.stack.fieldChannel),stackField=(opt={})=>model.vgField(model.stack.fieldChannel,opt),stackFieldGroup=(func,expr)=>`${func}(${[stackField({prefix:"min",suffix:"start",expr}),stackField({prefix:"max",suffix:"start",expr}),stackField({prefix:"min",suffix:"end",expr}),stackField({prefix:"max",suffix:"end",expr})].map((field=>`scale('${fieldScale}',${field})`)).join(",")})`;let groupUpdate,innerGroupUpdate;"x"===model.stack.fieldChannel?(groupUpdate={...pick(mark.encode.update,["y","yc","y2","height",...VG_CORNERRADIUS_CHANNELS]),x:{signal:stackFieldGroup("min","datum")},x2:{signal:stackFieldGroup("max","datum")},clip:{value:!0}},innerGroupUpdate={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}},mark.encode.update={...omit(mark.encode.update,["y","yc","y2"]),height:{field:{group:"height"}}}):(groupUpdate={...pick(mark.encode.update,["x","xc","x2","width"]),y:{signal:stackFieldGroup("min","datum")},y2:{signal:stackFieldGroup("max","datum")},clip:{value:!0}},innerGroupUpdate={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}},mark.encode.update={...omit(mark.encode.update,["x","xc","x2"]),width:{field:{group:"width"}}});for(const key of VG_CORNERRADIUS_CHANNELS){const configValue=getMarkConfig(key,model.markDef,model.config);mark.encode.update[key]?(groupUpdate[key]=mark.encode.update[key],delete mark.encode.update[key]):configValue&&(groupUpdate[key]=signalOrValueRef(configValue)),configValue&&(mark.encode.update[key]={value:0})}const groupby=[];if(model.stack.groupbyChannels?.length>0)for(const groupbyChannel of model.stack.groupbyChannels){const groupByField=model.fieldDef(groupbyChannel),field=vgField(groupByField);field&&groupby.push(field),(groupByField?.bin||groupByField?.timeUnit)&&groupby.push(vgField(groupByField,{binSuffix:"end"}))}groupUpdate=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"].reduce(((encode,prop)=>{if(mark.encode.update[prop])return{...encode,[prop]:mark.encode.update[prop]};{const configValue=getMarkConfig(prop,model.markDef,model.config);return void 0!==configValue?{...encode,[prop]:signalOrValueRef(configValue)}:encode}}),groupUpdate),groupUpdate.stroke&&(groupUpdate.strokeForeground={value:!0},groupUpdate.strokeOffset={value:0});return[{type:"group",from:{facet:{data:model.requestDataName(DataSourceType.Main),name:STACK_GROUP_PREFIX+model.requestDataName(DataSourceType.Main),groupby,aggregate:{fields:[stackField({suffix:"start"}),stackField({suffix:"start"}),stackField({suffix:"end"}),stackField({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:groupUpdate},marks:[{type:"group",encode:{update:innerGroupUpdate},marks:[mark]}]}]}(model)}return getMarkGroup(model)}const FACETED_PATH_PREFIX="faceted_path_";const STACK_GROUP_PREFIX="stack_group_";function getMarkGroup(model,opt={fromPrefix:""}){const{mark,markDef,encoding,config}=model,clip=getFirstDefined(markDef.clip,function scaleClip(model){const xScale=model.getScaleComponent("x"),yScale=model.getScaleComponent("y");return!(!xScale?.get("selectionExtent")&&!yScale?.get("selectionExtent"))||void 0}(model),function projectionClip(model){const projection=model.component.projection;return!(!projection||projection.isFit)||void 0}(model)),style=getStyles(markDef),key=encoding.key,sort=function getSort(model){const{encoding,stack,mark,markDef,config}=model,order=encoding.order;if(!(!isArray(order)&&isValueDef(order)&&isNullOrFalse(order.value)||!order&&isNullOrFalse(getMarkPropOrConfig("order",markDef,config)))){if((isArray(order)||isFieldDef(order))&&!stack)return sortParams(order,{expr:"datum"});if(isPathMark(mark)){const dimensionChannel="horizontal"===markDef.orient?"y":"x",dimensionChannelDef=encoding[dimensionChannel];if(isFieldDef(dimensionChannelDef)){const s=dimensionChannelDef.sort;return isArray(s)?{field:vgField(dimensionChannelDef,{prefix:dimensionChannel,suffix:"sort_index",expr:"datum"})}:isSortField(s)?{field:vgField({aggregate:isAggregate$1(model.encoding)?s.op:void 0,field:s.field},{expr:"datum"})}:isSortByEncoding(s)?{field:vgField(model.fieldDef(s.encoding),{expr:"datum"}),order:s.order}:null===s?void 0:{field:vgField(dimensionChannelDef,{binSuffix:model.stack?.impute?"mid":void 0,expr:"datum"})}}}}}(model),interactive=function interactiveFlag(model){if(!model.component.selection)return null;const unitCount=keys(model.component.selection).length;let parentCount=unitCount,parent=model.parent;for(;parent&&0===parentCount;)parentCount=keys(parent.component.selection).length,parent=parent.parent;return parentCount?{interactive:unitCount>0||"geoshape"===model.mark||!!model.encoding.tooltip}:null}(model),aria=getMarkPropOrConfig("aria",markDef,config),postEncodingTransform=markCompiler[mark].postEncodingTransform?markCompiler[mark].postEncodingTransform(model):null;return[{name:model.getName("marks"),type:markCompiler[mark].vgMark,...clip?{clip:!0}:{},...style?{style}:{},...key?{key:key.field}:{},...sort?{sort}:{},...interactive||{},...!1===aria?{aria}:{},from:{data:opt.fromPrefix+model.requestDataName(DataSourceType.Main)},encode:{update:markCompiler[mark].encodeEntry(model)},...postEncodingTransform?{transform:postEncodingTransform}:{}}]}class UnitModel extends ModelWithField{constructor(spec,parent,parentGivenName,parentGivenSize={},config){super(spec,"unit",parent,parentGivenName,config,void 0,isFrameMixins(spec)?spec.view:void 0),this.specifiedScales={},this.specifiedAxes={},this.specifiedLegends={},this.specifiedProjection={},this.selection=[],this.children=[];const markDef=isMarkDef(spec.mark)?{...spec.mark}:{type:spec.mark},mark=markDef.type;void 0===markDef.filled&&(markDef.filled=function defaultFilled(markDef,config,{graticule}){if(graticule)return!1;const filledConfig=getMarkConfig("filled",markDef,config),mark=markDef.type;return getFirstDefined(filledConfig,mark!==POINT&&mark!==LINE&&mark!==RULE)}(markDef,config,{graticule:spec.data&&isGraticuleGenerator(spec.data)}));const encoding=this.encoding=function initEncoding(encoding,mark,filled,config){const normalizedEncoding={};for(const key of keys(encoding))isChannel(key)||warn(`${channel=key}-encoding is dropped as ${channel} is not a valid encoding channel.`);var channel;for(let channel of UNIT_CHANNELS){if(!encoding[channel])continue;const channelDef=encoding[channel];if(isXorYOffset(channel)){const mainChannel=getMainChannelFromOffsetChannel(channel),positionDef=normalizedEncoding[mainChannel];if(isFieldDef(positionDef)){if(isContinuous(positionDef.type)&&isFieldDef(channelDef)&&!positionDef.timeUnit){warn(offsetNestedInsideContinuousPositionScaleDropped(mainChannel));continue}}else channel=mainChannel,warn(replaceOffsetWithMainChannel(mainChannel))}if("angle"!==channel||"arc"!==mark||encoding.theta||(warn("Arc marks uses theta channel rather than angle, replacing angle with theta."),channel=THETA),markChannelCompatible(encoding,channel,mark)){if(channel===SIZE&&"line"===mark){const fieldDef=getFieldDef(encoding[channel]);if(fieldDef?.aggregate){warn("Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.");continue}}if(channel===COLOR&&(filled?"fill"in encoding:"stroke"in encoding))warn(droppingColor("encoding",{fill:"fill"in encoding,stroke:"stroke"in encoding}));else if(channel===DETAIL||channel===ORDER&&!isArray(channelDef)&&!isValueDef(channelDef)||channel===TOOLTIP&&isArray(channelDef)){if(channelDef){if(channel===ORDER){const def=encoding[channel];if(isOrderOnlyDef(def)){normalizedEncoding[channel]=def;continue}}normalizedEncoding[channel]=array$5(channelDef).reduce(((defs,fieldDef)=>(isFieldDef(fieldDef)?defs.push(initFieldDef(fieldDef,channel)):warn(emptyFieldDef(fieldDef,channel)),defs)),[])}}else{if(channel===TOOLTIP&&null===channelDef)normalizedEncoding[channel]=null;else if(!(isFieldDef(channelDef)||isDatumDef(channelDef)||isValueDef(channelDef)||isConditionalDef(channelDef)||isSignalRef(channelDef))){warn(emptyFieldDef(channelDef,channel));continue}normalizedEncoding[channel]=initChannelDef(channelDef,channel,config)}}else warn(incompatibleChannel(channel,mark))}return normalizedEncoding}(spec.encoding||{},mark,markDef.filled,config);this.markDef=initMarkdef(markDef,encoding,config),this.size=function initLayoutSize({encoding,size}){for(const channel of POSITION_SCALE_CHANNELS){const sizeType=getSizeChannel(channel);isStep(size[sizeType])&&isContinuousFieldOrDatumDef(encoding[channel])&&(delete size[sizeType],warn(stepDropped(sizeType)))}return size}({encoding,size:isFrameMixins(spec)?{...parentGivenSize,...spec.width?{width:spec.width}:{},...spec.height?{height:spec.height}:{}}:parentGivenSize}),this.stack=stack(this.markDef,encoding),this.specifiedScales=this.initScales(mark,encoding),this.specifiedAxes=this.initAxes(encoding),this.specifiedLegends=this.initLegends(encoding),this.specifiedProjection=spec.projection,this.selection=(spec.params??[]).filter((p=>isSelectionParameter(p)))}get hasProjection(){const{encoding}=this,isGeoShapeMark=this.mark===GEOSHAPE,hasGeoPosition=encoding&&GEOPOSITION_CHANNELS.some((channel=>isFieldOrDatumDef(encoding[channel])));return isGeoShapeMark||hasGeoPosition}scaleDomain(channel){const scale=this.specifiedScales[channel];return scale?scale.domain:void 0}axis(channel){return this.specifiedAxes[channel]}legend(channel){return this.specifiedLegends[channel]}initScales(mark,encoding){return SCALE_CHANNELS.reduce(((scales,channel)=>{const fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]);return fieldOrDatumDef&&(scales[channel]=this.initScale(fieldOrDatumDef.scale??{})),scales}),{})}initScale(scale){const{domain,range}=scale,scaleInternal=replaceExprRef(scale);return isArray(domain)&&(scaleInternal.domain=domain.map(signalRefOrValue)),isArray(range)&&(scaleInternal.range=range.map(signalRefOrValue)),scaleInternal}initAxes(encoding){return POSITION_SCALE_CHANNELS.reduce(((_axis,channel)=>{const channelDef=encoding[channel];if(isFieldOrDatumDef(channelDef)||channel===X&&isFieldOrDatumDef(encoding.x2)||channel===Y&&isFieldOrDatumDef(encoding.y2)){const axisSpec=isFieldOrDatumDef(channelDef)?channelDef.axis:void 0;_axis[channel]=axisSpec?this.initAxis({...axisSpec}):axisSpec}return _axis}),{})}initAxis(axis){const props=keys(axis),axisInternal={};for(const prop of props){const val=axis[prop];axisInternal[prop]=isConditionalAxisValue(val)?signalOrValueRefWithCondition(val):signalRefOrValue(val)}return axisInternal}initLegends(encoding){return NONPOSITION_SCALE_CHANNELS.reduce(((_legend,channel)=>{const fieldOrDatumDef=getFieldOrDatumDef(encoding[channel]);if(fieldOrDatumDef&&function supportLegend(channel){switch(channel){case COLOR:case FILL:case STROKE:case SIZE:case SHAPE:case OPACITY:case STROKEWIDTH:case STROKEDASH:return!0;case FILLOPACITY:case STROKEOPACITY:case ANGLE:return!1}}(channel)){const legend=fieldOrDatumDef.legend;_legend[channel]=legend?replaceExprRef(legend):legend}return _legend}),{})}parseData(){this.component.data=parseData(this)}parseLayoutSize(){!function parseUnitLayoutSize(model){const{size,component}=model;for(const channel of POSITION_SCALE_CHANNELS){const sizeType=getSizeChannel(channel);if(size[sizeType]){const specifiedSize=size[sizeType];component.layoutSize.set(sizeType,isStep(specifiedSize)?"step":specifiedSize,!0)}else{const defaultSize=defaultUnitSize(model,sizeType);component.layoutSize.set(sizeType,defaultSize,!1)}}}(this)}parseSelections(){this.component.selection=function parseUnitSelection(model,selDefs){const selCmpts={},selectionConfig=model.config.selection;if(!selDefs||!selDefs.length)return selCmpts;for(const def of selDefs){const name=varName(def.name),selDef=def.select,type=isString(selDef)?selDef:selDef.type,defaults=isObject(selDef)?duplicate(selDef):{type},cfg=selectionConfig[type];for(const key in cfg)"fields"!==key&&"encodings"!==key&&("mark"===key&&(defaults[key]={...cfg[key],...defaults[key]}),void 0!==defaults[key]&&!0!==defaults[key]||(defaults[key]=duplicate(cfg[key]??defaults[key])));const selCmpt=selCmpts[name]={...defaults,name,type,init:def.value,bind:def.bind,events:isString(defaults.on)?eventSelector(defaults.on,"scope"):array$5(duplicate(defaults.on))},def_=duplicate(def);for(const c of selectionCompilers)c.defined(selCmpt)&&c.parse&&c.parse(model,selCmpt,def_)}return selCmpts}(this,this.selection)}parseMarkGroup(){this.component.mark=parseMarkGroups(this)}parseAxesAndHeaders(){this.component.axes=function parseUnitAxes(model){return POSITION_SCALE_CHANNELS.reduce(((axis,channel)=>(model.component.scales[channel]&&(axis[channel]=[parseAxis(channel,model)]),axis)),{})}(this)}assembleSelectionTopLevelSignals(signals){return function assembleTopLevelSignals(model,signals){let hasSelections=!1;for(const selCmpt of vals(model.component.selection??{})){const name=selCmpt.name,store=$(name+STORE);if(0===signals.filter((s=>s.name===name)).length){const resolve="global"===selCmpt.resolve?"union":selCmpt.resolve,isPoint="point"===selCmpt.type?", true, true)":")";signals.push({name:selCmpt.name,update:`${VL_SELECTION_RESOLVE}(${store}, ${$(resolve)}${isPoint}`})}hasSelections=!0;for(const c of selectionCompilers)c.defined(selCmpt)&&c.topLevelSignals&&(signals=c.topLevelSignals(model,selCmpt,signals))}hasSelections&&0===signals.filter((s=>"unit"===s.name)).length&&signals.unshift({name:"unit",value:{},on:[{events:"mousemove",update:"isTuple(group()) ? group() : unit"}]});return cleanupEmptyOnArray(signals)}(this,signals)}assembleSignals(){return[...assembleAxisSignals(this),...assembleUnitSelectionSignals(this,[])]}assembleSelectionData(data){return function assembleUnitSelectionData(model,data){const dataCopy=[...data],unit=unitName(model,{escape:!1});for(const selCmpt of vals(model.component.selection??{})){const store={name:selCmpt.name+STORE};if(selCmpt.project.hasSelectionId&&(store.transform=[{type:"collect",sort:{field:"_vgsid_"}}]),selCmpt.init){const fields=selCmpt.project.items.map(assembleProjection);store.values=selCmpt.project.hasSelectionId?selCmpt.init.map((i=>({unit,_vgsid_:assembleInit(i,!1)[0]}))):selCmpt.init.map((i=>({unit,fields,values:assembleInit(i,!1)})))}dataCopy.filter((d=>d.name===selCmpt.name+STORE)).length||dataCopy.push(store)}return dataCopy}(this,data)}assembleLayout(){return null}assembleLayoutSignals(){return assembleLayoutSignals(this)}assembleMarks(){let marks=this.component.mark??[];return this.parent&&isLayerModel(this.parent)||(marks=assembleUnitSelectionMarks(this,marks)),marks.map(this.correctDataNames)}assembleGroupStyle(){const{style}=this.view||{};return void 0!==style?style:this.encoding.x||this.encoding.y?"cell":"view"}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(channel){return channelHasField(this.encoding,channel)}fieldDef(channel){return getFieldDef(this.encoding[channel])}typedFieldDef(channel){const fieldDef=this.fieldDef(channel);return isTypedFieldDef(fieldDef)?fieldDef:null}}class LayerModel extends Model{constructor(spec,parent,parentGivenName,parentGivenSize,config){super(spec,"layer",parent,parentGivenName,config,spec.resolve,spec.view);const layoutSize={...parentGivenSize,...spec.width?{width:spec.width}:{},...spec.height?{height:spec.height}:{}};this.children=spec.layer.map(((layer,i)=>{if(isLayerSpec(layer))return new LayerModel(layer,this,this.getName(`layer_${i}`),layoutSize,config);if(isUnitSpec(layer))return new UnitModel(layer,this,this.getName(`layer_${i}`),layoutSize,config);throw new Error(invalidSpec(layer))}))}parseData(){this.component.data=parseData(this);for(const child of this.children)child.parseData()}parseLayoutSize(){!function parseLayerLayoutSize(model){parseChildrenLayoutSize(model),parseNonUnitLayoutSizeForChannel(model,"width"),parseNonUnitLayoutSizeForChannel(model,"height")}(this)}parseSelections(){this.component.selection={};for(const child of this.children){child.parseSelections();for(const key of keys(child.component.selection))this.component.selection[key]=child.component.selection[key]}}parseMarkGroup(){for(const child of this.children)child.parseMarkGroup()}parseAxesAndHeaders(){!function parseLayerAxes(model){const{axes,resolve}=model.component,axisCount={top:0,bottom:0,right:0,left:0};for(const child of model.children){child.parseAxesAndHeaders();for(const channel of keys(child.component.axes))resolve.axis[channel]=parseGuideResolve(model.component.resolve,channel),"shared"===resolve.axis[channel]&&(axes[channel]=mergeAxisComponents(axes[channel],child.component.axes[channel]),axes[channel]||(resolve.axis[channel]="independent",delete axes[channel]))}for(const channel of POSITION_SCALE_CHANNELS){for(const child of model.children)if(child.component.axes[channel]){if("independent"===resolve.axis[channel]){axes[channel]=(axes[channel]??[]).concat(child.component.axes[channel]);for(const axisComponent of child.component.axes[channel]){const{value:orient,explicit}=axisComponent.getWithExplicit("orient");if(!isSignalRef(orient)){if(axisCount[orient]>0&&!explicit){const oppositeOrient=OPPOSITE_ORIENT[orient];axisCount[orient]>axisCount[oppositeOrient]&&axisComponent.set("orient",oppositeOrient,!1)}axisCount[orient]++}}}delete child.component.axes[channel]}if("independent"===resolve.axis[channel]&&axes[channel]&&axes[channel].length>1)for(const[index,axisCmpt]of(axes[channel]||[]).entries())index>0&&axisCmpt.get("grid")&&!axisCmpt.explicit.grid&&(axisCmpt.implicit.grid=!1)}}(this)}assembleSelectionTopLevelSignals(signals){return this.children.reduce(((sg,child)=>child.assembleSelectionTopLevelSignals(sg)),signals)}assembleSignals(){return this.children.reduce(((signals,child)=>signals.concat(child.assembleSignals())),assembleAxisSignals(this))}assembleLayoutSignals(){return this.children.reduce(((signals,child)=>signals.concat(child.assembleLayoutSignals())),assembleLayoutSignals(this))}assembleSelectionData(data){return this.children.reduce(((db,child)=>child.assembleSelectionData(db)),data)}assembleGroupStyle(){const uniqueStyles=new Set;for(const child of this.children)for(const style of array$5(child.assembleGroupStyle()))uniqueStyles.add(style);const styles=Array.from(uniqueStyles);return styles.length>1?styles:1===styles.length?styles[0]:void 0}assembleTitle(){let title=super.assembleTitle();if(title)return title;for(const child of this.children)if(title=child.assembleTitle(),title)return title}assembleLayout(){return null}assembleMarks(){return function assembleLayerSelectionMarks(model,marks){for(const child of model.children)isUnitModel(child)&&(marks=assembleUnitSelectionMarks(child,marks));return marks}(this,this.children.flatMap((child=>child.assembleMarks())))}assembleLegends(){return this.children.reduce(((legends,child)=>legends.concat(child.assembleLegends())),assembleLegends(this))}}function buildModel(spec,parent,parentGivenName,unitSize,config){if(isFacetSpec(spec))return new FacetModel(spec,parent,parentGivenName,config);if(isLayerSpec(spec))return new LayerModel(spec,parent,parentGivenName,unitSize,config);if(isUnitSpec(spec))return new UnitModel(spec,parent,parentGivenName,unitSize,config);if(function isAnyConcatSpec(spec){return isVConcatSpec(spec)||isHConcatSpec(spec)||isConcatSpec(spec)}(spec))return new ConcatModel(spec,parent,parentGivenName,config);throw new Error(invalidSpec(spec))}const version$2=pkg$1_version;var vegaLiteImport=Object.freeze({__proto__:null,accessPathDepth,accessPathWithDatum,compile:function compile(inputSpec,opt={}){opt.logger&&function set(newLogger){return current=newLogger,current}(opt.logger),opt.fieldTitle&&setTitleFormatter(opt.fieldTitle);try{const config=initConfig(mergeConfig(opt.config,inputSpec.config)),spec=normalize(inputSpec,config),model=buildModel(spec,null,"",void 0,config);model.parse(),function optimizeDataflow(data,model){checkLinks(data.sources);let firstPassCounter=0,secondPassCounter=0;for(let i=0;i"width"!==signal.name&&"height"!==signal.name||void 0===signal.value||(topLevelProperties[signal.name]=+signal.value,!1)));const{params,...otherTopLevelProps}=topLevelProperties;return{$schema:"https://vega.github.io/schema/vega/v5.json",...model.description?{description:model.description}:{},...otherTopLevelProps,...title?{title}:{},...style?{style}:{},...encodeEntry?{encode:{update:encodeEntry}}:{},data,...projections.length>0?{projections}:{},...model.assembleGroup([...layoutSignals,...model.assembleSelectionTopLevelSignals([]),...assembleParameterSignals(params)]),...vgConfig?{config:vgConfig}:{},...usermeta?{usermeta}:{}}}(model,function getTopLevelProperties(inputSpec,autosize,config,model){const width=model.component.layoutSize.get("width"),height=model.component.layoutSize.get("height");void 0===autosize?(autosize={type:"pad"},model.hasAxisOrientSignalRef()&&(autosize.resize=!0)):isString(autosize)&&(autosize={type:autosize});if(width&&height&&function isFitType(autoSizeType){return"fit"===autoSizeType||"fit-x"===autoSizeType||"fit-y"===autoSizeType}(autosize.type))if("step"===width&&"step"===height)warn(droppingFit()),autosize.type="pad";else if("step"===width||"step"===height){const sizeType="step"===width?"width":"height";warn(droppingFit(getPositionScaleChannel(sizeType)));const inverseSizeType="width"===sizeType?"height":"width";autosize.type=function getFitType(sizeType){return sizeType?`fit-${getPositionScaleChannel(sizeType)}`:"fit"}(inverseSizeType)}return{...1===keys(autosize).length&&autosize.type?"pad"===autosize.type?{}:{autosize:autosize.type}:{autosize},...extractTopLevelProperties(config,!1),...extractTopLevelProperties(inputSpec,!0)}}(inputSpec,spec.autosize,config,model),inputSpec.datasets,inputSpec.usermeta);return{spec:vgSpec,normalized:spec}}finally{opt.logger&&function reset(){return current=main$1,current}(),opt.fieldTitle&&function resetTitleFormatter(){setTitleFormatter(defaultTitleFormatter)}()}},contains,deepEqual,deleteNestedProperty,duplicate,entries:entries$1,every,fieldIntersection,flatAccessWithDatum,getFirstDefined,hasIntersection,hash,internalField,isBoolean,isEmpty,isEqual:function isEqual(dict,other){const dictKeys=keys(dict),otherKeys=keys(other);if(dictKeys.length!==otherKeys.length)return!1;for(const key of dictKeys)if(dict[key]!==other[key])return!1;return!0},isInternalField,isNullOrFalse,isNumeric,keys,logicalExpr,mergeDeep:mergeDeep$1,never,normalize,normalizeAngle,omit,pick,prefixGenerator,removePathFromField,replaceAll,replacePathInField,resetIdCounter:function resetIdCounter(){idCounter=42},setEqual,some,stringify:stringify$1,titleCase,unique,uniqueId,vals,varName,version:version$2});function e(e){const[n,r]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:n,version:r}}var pkg_version="2.14.0";const darkTheme={background:"#333",view:{stroke:"#888"},title:{color:"#fff",subtitleColor:"#fff"},style:{"guide-label":{fill:"#fff"},"guide-title":{fill:"#fff"}},axis:{domainColor:"#fff",gridColor:"#888",tickColor:"#fff"}},excelTheme={background:"#fff",arc:{fill:"#4572a7"},area:{fill:"#4572a7"},line:{stroke:"#4572a7",strokeWidth:2},path:{stroke:"#4572a7"},rect:{fill:"#4572a7"},shape:{stroke:"#4572a7"},symbol:{fill:"#4572a7",strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},fiveThirtyEightTheme={arc:{fill:"#30a2da"},area:{fill:"#30a2da"},axis:{domainColor:"#cbcbcb",grid:!0,gridColor:"#cbcbcb",gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:"#cbcbcb",tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:"#f0f0f0",group:{fill:"#f0f0f0"},legend:{labelColor:"#333",labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:"#333",titleFontSize:14,titlePadding:10},line:{stroke:"#30a2da",strokeWidth:2},path:{stroke:"#30a2da",strokeWidth:.5},rect:{fill:"#30a2da"},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:"#30a2da"},bar:{binSpacing:2,fill:"#30a2da",stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},ggplot2Theme={group:{fill:"#e5e5e5"},arc:{fill:"#000"},area:{fill:"#000"},line:{stroke:"#000"},path:{stroke:"#000"},rect:{fill:"#000"},shape:{stroke:"#000"},symbol:{fill:"#000",size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},titleFont="Benton Gothic Bold, sans-serif",colorSchemes$1={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]},latimesTheme={background:"#ffffff",title:{anchor:"start",color:"#000000",font:titleFont,fontSize:22,fontWeight:"normal"},arc:{fill:"#82c6df"},area:{fill:"#82c6df"},line:{stroke:"#82c6df",strokeWidth:2},path:{stroke:"#82c6df"},rect:{fill:"#82c6df"},shape:{stroke:"#82c6df"},symbol:{fill:"#82c6df",size:30},axis:{labelFont:"Benton Gothic, sans-serif",labelFontSize:11.5,labelFontWeight:"normal",titleFont,titleFontSize:13,titleFontWeight:"normal"},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:"Benton Gothic, sans-serif",labelFontSize:11.5,symbolType:"square",titleFont,titleFontSize:13,titleFontWeight:"normal"},range:{category:colorSchemes$1["category-6"],diverging:colorSchemes$1["fireandice-6"],heatmap:colorSchemes$1["fire-7"],ordinal:colorSchemes$1["fire-7"],ramp:colorSchemes$1["fire-7"]}},quartzTheme={background:"#f9f9f9",arc:{fill:"#ab5787"},area:{fill:"#ab5787"},line:{stroke:"#ab5787"},path:{stroke:"#ab5787"},rect:{fill:"#ab5787"},shape:{stroke:"#ab5787"},symbol:{fill:"#ab5787",size:30},axis:{domainColor:"#979797",domainWidth:.5,gridWidth:.2,labelColor:"#979797",tickColor:"#979797",tickWidth:.2,titleColor:"#979797"},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},voxTheme={background:"#fff",arc:{fill:"#3e5c69"},area:{fill:"#3e5c69"},line:{stroke:"#3e5c69"},path:{stroke:"#3e5c69"},rect:{fill:"#3e5c69"},shape:{stroke:"#3e5c69"},symbol:{fill:"#3e5c69"},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},colorSchemes={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},urbanInstituteTheme={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:"Lato"},axisX:{domain:!0,domainColor:"#000000",domainWidth:1,grid:!1,labelFontSize:12,labelFont:"Lato",labelAngle:0,tickColor:"#000000",tickSize:5,titleFontSize:12,titlePadding:10,titleFont:"Lato"},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:"Lato",labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:"Lato",titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:"Lato",symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:"Lato",orient:"right",offset:10},view:{stroke:"transparent"},range:{category:colorSchemes["six-groups-cat-1"],diverging:colorSchemes["diverging-colors"],heatmap:colorSchemes["diverging-colors"],ordinal:colorSchemes["six-groups-seq"],ramp:colorSchemes["shades-blue"]},area:{fill:"#1696d2"},rect:{fill:"#1696d2"},line:{color:"#1696d2",stroke:"#1696d2",strokeWidth:5},trail:{color:"#1696d2",stroke:"#1696d2",strokeWidth:0,size:1},path:{stroke:"#1696d2",strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:"#1696d2",fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:"#1696d2",stroke:null}},arc:{fill:"#1696d2"},shape:{stroke:"#1696d2"},symbol:{fill:"#1696d2",size:30}},googlechartsTheme={arc:{fill:"#3366CC"},area:{fill:"#3366CC"},path:{stroke:"#3366CC"},rect:{fill:"#3366CC"},shape:{stroke:"#3366CC"},symbol:{stroke:"#3366CC"},circle:{fill:"#3366CC"},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:"Arial, sans-serif",fontSize:12},"guide-title":{font:"Arial, sans-serif",fontSize:12},"group-title":{font:"Arial, sans-serif",fontSize:12}},title:{font:"Arial, sans-serif",fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:"#ccc",tickColor:"#ccc",domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},ptToPx=value=>value*(1/3+1),fontSmallPx=ptToPx(9),legendFontPx=ptToPx(10),fontLargePx=ptToPx(12),fontTitle="wf_standard-font, helvetica, arial, sans-serif",divergentPalette=["#DEEFFF","#118DFF"],powerbiTheme={view:{stroke:"transparent"},background:"transparent",font:"Segoe UI",header:{titleFont:fontTitle,titleFontSize:fontLargePx,titleColor:"#252423",labelFont:"Segoe UI",labelFontSize:legendFontPx,labelColor:"#605E5C"},axis:{ticks:!1,grid:!1,domain:!1,labelColor:"#605E5C",labelFontSize:fontSmallPx,titleFont:fontTitle,titleColor:"#252423",titleFontSize:fontLargePx,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:"#C8C6C4",gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:"#118DFF"},line:{stroke:"#118DFF",strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:"Segoe UI",fontSize:fontSmallPx,fill:"#605E5C"},arc:{fill:"#118DFF"},area:{fill:"#118DFF",line:!0,opacity:.6},path:{stroke:"#118DFF"},rect:{fill:"#118DFF"},point:{fill:"#118DFF",filled:!0,size:75},shape:{stroke:"#118DFF"},symbol:{fill:"#118DFF",strokeWidth:1.5,size:50},legend:{titleFont:"Segoe UI",titleFontWeight:"bold",titleColor:"#605E5C",labelFont:"Segoe UI",labelFontSize:legendFontPx,labelColor:"#605E5C",symbolType:"circle",symbolSize:75},range:{category:["#118DFF","#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#D9B300","#D64550"],diverging:divergentPalette,heatmap:divergentPalette,ordinal:["#DEEFFF","#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff","#118DFF"]}},defaultFont='IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,".sfnstext-regular",sans-serif',darkCategories=["#8a3ffc","#33b1ff","#007d79","#ff7eb6","#fa4d56","#fff1f1","#6fdc8c","#4589ff","#d12771","#d2a106","#08bdba","#bae6ff","#ba4e00","#d4bbff"],lightCategories=["#6929c4","#1192e8","#005d5d","#9f1853","#fa4d56","#570408","#198038","#002d9c","#ee538b","#b28600","#009d9a","#012749","#8a3800","#a56eff"];function genCarbonConfig({type,background}){const viewbg="dark"===type?"#161616":"#ffffff",textColor="dark"===type?"#f4f4f4":"#161616",markColor="dark"===type?"#d4bbff":"#6929c4";return{background,arc:{fill:markColor},area:{fill:markColor},path:{stroke:markColor},rect:{fill:markColor},shape:{stroke:markColor},symbol:{stroke:markColor},circle:{fill:markColor},view:{fill:viewbg,stroke:viewbg},group:{fill:viewbg},title:{color:textColor,anchor:"start",dy:-15,fontSize:16,font:defaultFont,fontWeight:600},axis:{labelColor:textColor,labelFontSize:12,grid:!0,gridColor:"#525252",titleColor:textColor,labelAngle:0},style:{"guide-label":{font:defaultFont,fill:textColor,fontWeight:400},"guide-title":{font:defaultFont,fill:textColor,fontWeight:400}},range:{category:"dark"===type?darkCategories:lightCategories,diverging:["#750e13","#a2191f","#da1e28","#fa4d56","#ff8389","#ffb3b8","#ffd7d9","#fff1f1","#e5f6ff","#bae6ff","#82cfff","#33b1ff","#1192e8","#0072c3","#00539a","#003a6d"],heatmap:["#f6f2ff","#e8daff","#d4bbff","#be95ff","#a56eff","#8a3ffc","#6929c4","#491d8b","#31135e","#1c0f30"]}}}const carbonwhite=genCarbonConfig({type:"light",background:"#ffffff"}),carbong10=genCarbonConfig({type:"light",background:"#f4f4f4"}),carbong90=genCarbonConfig({type:"dark",background:"#262626"}),carbong100=genCarbonConfig({type:"dark",background:"#161616"}),version=pkg_version;var themes=Object.freeze({__proto__:null,carbong10,carbong100,carbong90,carbonwhite,dark:darkTheme,excel:excelTheme,fivethirtyeight:fiveThirtyEightTheme,ggplot2:ggplot2Theme,googlecharts:googlechartsTheme,latimes:latimesTheme,powerbi:powerbiTheme,quartz:quartzTheme,urbaninstitute:urbanInstituteTheme,version,vox:voxTheme});function _typeof$1(obj){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof$1(obj)}function _toPropertyKey$1(arg){var key=function _toPrimitive$1(input,hint){if("object"!==_typeof$1(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof$1(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof$1(key)?key:String(key)}function _defineProperty$3(obj,key,value){return(key=_toPropertyKey$1(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}const _excluded$1=["title","image"];function stringify(obj,maxDepth){return JSON.stringify(obj,function replacer(maxDepth){const stack=[];return function(key,value){if("object"!=typeof value||null===value)return value;const pos=stack.indexOf(this)+1;return stack.length=pos,stack.length>maxDepth?"[Object]":stack.indexOf(value)>=0?"[Circular]":(stack.push(value),value)}}(maxDepth))}var defaultStyle="#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n";const EL_ID="vg-tooltip-element",DEFAULT_OPTIONS={offsetX:10,offsetY:10,id:EL_ID,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function escapeHTML(value){return String(value).replace(/&/g,"&").replace(/valueToHtml(isString(v)?v:stringify(v,maxDepth)))).join(", ")}]`;if(isObject(value)){let content="";const _ref=value,{title,image}=_ref,rest=_objectWithoutProperties(_ref,_excluded$1);title&&(content+=`

${valueToHtml(title)}

`),image&&(content+=``);const keys=Object.keys(rest);if(keys.length>0){content+="";for(const key of keys){let val=rest[key];void 0!==val&&(isObject(val)&&(val=stringify(val,maxDepth)),content+=``)}content+="
${valueToHtml(key)}:${valueToHtml(val)}
"}return content||"{}"}return valueToHtml(value)}};function ownKeys$2(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread$2(target){for(var i=1;i0?head.insertBefore(style,head.childNodes[0]):head.appendChild(style)}}tooltipHandler(handler,event,item,value){if(this.el=document.getElementById(this.options.id),!this.el){this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip");(document.fullscreenElement??document.body).appendChild(this.el)}if(null==value||""===value)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=this.options.formatTooltip(value,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x,y}=function calculatePosition(event,tooltipBox,offsetX,offsetY){let x=event.clientX+offsetX;x+tooltipBox.width>window.innerWidth&&(x=+event.clientX-offsetX-tooltipBox.width);let y=event.clientY+offsetY;return y+tooltipBox.height>window.innerHeight&&(y=+event.clientY-offsetY-tooltipBox.height),{x,y}}(event,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${y}px`,this.el.style.left=`${x}px`}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}function _defineProperty$2(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var iterator,hasRequiredIterator;var yallist=Yallist$1;function Yallist$1(list){var self=this;if(self instanceof Yallist$1||(self=new Yallist$1),self.tail=null,self.head=null,self.length=0,list&&"function"==typeof list.forEach)list.forEach((function(item){self.push(item)}));else if(arguments.length>0)for(var i=0,l=arguments.length;i1)acc=initial;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");walker=this.head.next,acc=this.head.value}for(var i=0;null!==walker;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist$1.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");walker=this.tail.prev,acc=this.tail.value}for(var i=this.length-1;null!==walker;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist$1.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;null!==walker;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist$1.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;null!==walker;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist$1.prototype.slice=function(from,to){(to=to||this.length)<0&&(to+=this.length),(from=from||0)<0&&(from+=this.length);var ret=new Yallist$1;if(tothis.length&&(to=this.length);for(var i=0,walker=this.head;null!==walker&&ithis.length&&(to=this.length);for(var i=this.length,walker=this.tail;null!==walker&&i>to;i--)walker=walker.prev;for(;null!==walker&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist$1.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;null!==walker&&i1;const get=(self,key,doUse)=>{const node=self[CACHE].get(key);if(node){const hit=node.value;if(isStale(self,hit)){if(del(self,node),!self[ALLOW_STALE])return}else doUse&&(self[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self,hit)=>{if(!hit||!hit.maxAge&&!self[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self[MAX_AGE]&&diff>self[MAX_AGE]},trim=self=>{if(self[LENGTH]>self[MAX])for(let walker=self[LRU_LIST].tail;self[LENGTH]>self[MAX]&&null!==walker;){const prev=walker.prev;del(self,walker),walker=prev}},del=(self,node)=>{if(node){const hit=node.value;self[DISPOSE]&&self[DISPOSE](hit.key,hit.value),self[LENGTH]-=hit.length,self[CACHE].delete(hit.key),self[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self,fn,node,thisp)=>{let hit=node.value;isStale(self,hit)&&(del(self,node),self[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self)};var lruCache=class LRUCache{constructor(options){if("number"==typeof options&&(options={max:options}),options||(options={}),options.max&&("number"!=typeof options.max||options.max<0))throw new TypeError("max must be a non-negative number");this[MAX]=options.max||1/0;const lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]="function"!=typeof lc?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&"number"!=typeof options.maxAge)throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if("number"!=typeof mL||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if("number"!=typeof mA)throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){"function"!=typeof lC&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach((hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length}))),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;null!==walker;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;null!==walker;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map((k=>k.key))}values(){return this[LRU_LIST].toArray().map((k=>k.value))}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach((hit=>this[DISPOSE](hit.key,hit.value))),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map((hit=>!isStale(this,hit)&&{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)})).toArray().filter((h=>h))}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if((maxAge=maxAge||this[MAX_AGE])&&"number"!=typeof maxAge)throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(0===expiresAt)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach(((value,key)=>get(this,key,!1)))}};const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({});var parseOptions_1=options=>options?"object"!=typeof options?looseOption:options:emptyOpts,re$1={exports:{}};var constants={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var debug_1="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};!function(module,exports){const{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=constants,debug=debug_1,re=(exports=module.exports={}).re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],["[a-zA-Z0-9-]",MAX_SAFE_BUILD_LENGTH]],createToken=(name,value,isGlobal)=>{const safe=(value=>{for(const[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value})(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(re$1,re$1.exports);var reExports=re$1.exports;const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:acompareIdentifiers$1(b,a)};const debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers;var semver=class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if("string"!=typeof version)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(identifier===this.prerelease.join(".")&&!1===identifierBase)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];!1===identifierBase&&(prerelease=[identifier]),0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const SemVer=semver;var compare_1=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));const compare$5=compare_1;var eq_1=(a,b,loose)=>0===compare$5(a,b,loose);const compare$4=compare_1;var neq_1=(a,b,loose)=>0!==compare$4(a,b,loose);const compare$3=compare_1;var gt_1=(a,b,loose)=>compare$3(a,b,loose)>0;const compare$2=compare_1;var gte_1=(a,b,loose)=>compare$2(a,b,loose)>=0;const compare$1=compare_1;var lt_1=(a,b,loose)=>compare$1(a,b,loose)<0;const compare=compare_1;var lte_1=(a,b,loose)=>compare(a,b,loose)<=0;const eq=eq_1,neq=neq_1,gt=gt_1,gte=gte_1,lt=lt_1,lte=lte_1;var comparator,hasRequiredComparator,range,hasRequiredRange,cmp_1=(a,op,b,loose)=>{switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(const c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.format()}format(){return this.range=this.set.map((comps=>comps.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options)));loose&&(rangeList=rangeList.filter((comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE]))))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map((comp=>new Comparator(comp,this.options)));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version){if(!version)return!1;if("string"==typeof version)try{version=new SemVer(version,this.options)}catch(er){return!1}for(let i=0;i")||!comp.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!comp.operator.startsWith("<"))&&(this.semver.version!==comp.semver.version||!this.operator.includes("=")||!comp.operator.includes("="))&&!(cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<"))&&!(cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}comparator=Comparator;const parseOptions=parseOptions_1,{safeRe:re,t}=reExports,cmp=cmp_1,debug=debug_1,SemVer=semver,Range=requireRange();return comparator}(),debug=debug_1,SemVer=semver,{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=reExports,{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=constants,isNullSet=c=>"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceTilde(c,options))).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceCaret(c,options))).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map((c=>replaceXRange(c,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version,options)=>{for(let i=0;i0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0};return range}const Range=requireRange();var satisfies_1=(version,range,options)=>{try{range=new Range(range,options)}catch(er){return!1}return range.test(version)},satisfies$1=getDefaultExportFromCjs(satisfies_1);var embedStyle='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function mergeDeep(dest,...src){for(const s of src)deepMerge_(dest,s);return dest}function deepMerge_(dest,src){for(const property of Object.keys(src))writeConfig(dest,property,src[property],!0)}function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread$1(target){for(var i=1;ivgSpec,"vega-lite":(vlSpec,config)=>vegaLite.compile(vlSpec,{config}).spec},SVG_CIRCLES='\n\n \n \n \n',CHART_WRAPPER_CLASS="chart-wrapper";function viewSource(source,sourceHeader,sourceFooter,mode){const header=`${sourceHeader}
`,footer=`
${sourceFooter}`,win=window.open("");win.document.write(header+source+footer),win.document.title=`${NAMES[mode]} JSON Source`}function createLoader(opts){return function isLoader(o){return!(!o||!("load"in o))}(opts)?opts:vega.loader(opts)}async function embed(el,spec,opts={}){let parsedSpec,loader;isString(spec)?(loader=createLoader(opts.loader),parsedSpec=JSON.parse(await loader.load(spec))):parsedSpec=spec;const loadedEmbedOptions=function embedOptionsFromUsermeta(parsedSpec){const opts=parsedSpec.usermeta?.embedOptions??{};return isString(opts.defaultStyle)&&(opts.defaultStyle=!1),opts}(parsedSpec),usermetaLoader=loadedEmbedOptions.loader;loader&&!usermetaLoader||(loader=createLoader(opts.loader??usermetaLoader));const usermetaOpts=await loadOpts(loadedEmbedOptions,loader),parsedOpts=await loadOpts(opts,loader),mergedOpts=_objectSpread$1(_objectSpread$1({},mergeDeep(parsedOpts,usermetaOpts)),{},{config:mergeConfig(parsedOpts.config??{},usermetaOpts.config??{})});return await async function _embed(el,spec,opts={},loader){const config=opts.theme?mergeConfig(themes[opts.theme],opts.config??{}):opts.config,actions=isBoolean$2(opts.actions)?opts.actions:mergeDeep({},DEFAULT_ACTIONS,opts.actions??{}),i18n=_objectSpread$1(_objectSpread$1({},I18N),opts.i18n),renderer=opts.renderer??"canvas",logLevel=opts.logLevel??vega.Warn,downloadFileName=opts.downloadFileName??"visualization",element="string"==typeof el?document.querySelector(el):el;if(!element)throw new Error(`${el} does not exist`);if(!1!==opts.defaultStyle){const ID="vega-embed-style",{root,rootContainer}=function getRoot(el){const possibleRoot=el.getRootNode?el.getRootNode():document;return possibleRoot instanceof ShadowRoot?{root:possibleRoot,rootContainer:possibleRoot}:{root:document,rootContainer:document.head??document.body}}(element);if(!root.getElementById(ID)){const style=document.createElement("style");style.id=ID,style.innerHTML=void 0===opts.defaultStyle||!0===opts.defaultStyle?embedStyle.toString():opts.defaultStyle,rootContainer.appendChild(style)}}const mode=function guessMode(spec,providedMode){if(spec.$schema){const parsed=e(spec.$schema);providedMode&&providedMode!==parsed.library&&console.warn(`The given visualization spec is written in ${NAMES[parsed.library]}, but mode argument sets ${NAMES[providedMode]??providedMode}.`);const mode=parsed.library;return satisfies$1(VERSION[mode],`^${parsed.version.slice(1)}`)||console.warn(`The input spec uses ${NAMES[mode]} ${parsed.version}, but the current version of ${NAMES[mode]} is v${VERSION[mode]}.`),mode}return"mark"in spec||"encoding"in spec||"layer"in spec||"hconcat"in spec||"vconcat"in spec||"facet"in spec||"repeat"in spec?"vega-lite":"marks"in spec||"signals"in spec||"scales"in spec||"axes"in spec?"vega":providedMode??"vega"}(spec,opts.mode);let vgSpec=PREPROCESSOR[mode](spec,config);if("vega-lite"===mode&&vgSpec.$schema){const parsed=e(vgSpec.$schema);satisfies$1(VERSION.vega,`^${parsed.version.slice(1)}`)||console.warn(`The compiled spec uses Vega ${parsed.version}, but current version is v${VERSION.vega}.`)}element.classList.add("vega-embed"),actions&&element.classList.add("has-actions");element.innerHTML="";let container=element;if(actions){const chartWrapper=document.createElement("div");chartWrapper.classList.add(CHART_WRAPPER_CLASS),element.appendChild(chartWrapper),container=chartWrapper}const patch=opts.patch;patch&&(vgSpec=patch instanceof Function?patch(vgSpec):applyPatch(vgSpec,patch,!0,!1).newDocument);opts.formatLocale&&vega.formatLocale(opts.formatLocale);opts.timeFormatLocale&&vega.timeFormatLocale(opts.timeFormatLocale);if(opts.expressionFunctions)for(const name in opts.expressionFunctions){const expressionFunction=opts.expressionFunctions[name];"fn"in expressionFunction?vega.expressionFunction(name,expressionFunction.fn,expressionFunction.visitor):expressionFunction instanceof Function&&vega.expressionFunction(name,expressionFunction)}const{ast}=opts,runtime=vega.parse(vgSpec,"vega-lite"===mode?{}:config,{ast}),view=new(opts.viewClass||vega.View)(runtime,_objectSpread$1({loader,logLevel,renderer},ast?{expr:vega.expressionInterpreter??opts.expr??expression$1}:{}));if(view.addSignalListener("autosize",((_,autosize)=>{const{type}=autosize;"fit-x"==type?(container.classList.add("fit-x"),container.classList.remove("fit-y")):"fit-y"==type?(container.classList.remove("fit-x"),container.classList.add("fit-y")):"fit"==type?container.classList.add("fit-x","fit-y"):container.classList.remove("fit-x","fit-y")})),!1!==opts.tooltip){const handler=function isTooltipHandler(h){return"function"==typeof h}(opts.tooltip)?opts.tooltip:new Handler(!0===opts.tooltip?{}:opts.tooltip).call;view.tooltip(handler)}let documentClickHandler,{hover}=opts;void 0===hover&&(hover="vega"===mode);if(hover){const{hoverSet,updateSet}="boolean"==typeof hover?{}:hover;view.hover(hoverSet,updateSet)}opts&&(null!=opts.width&&view.width(opts.width),null!=opts.height&&view.height(opts.height),null!=opts.padding&&view.padding(opts.padding));if(await view.initialize(container,opts.bind).runAsync(),!1!==actions){let wrapper=element;if(!1!==opts.defaultStyle){const details=document.createElement("details");details.title=i18n.CLICK_TO_VIEW_ACTIONS,element.append(details),wrapper=details;const summary=document.createElement("summary");summary.innerHTML=SVG_CIRCLES,details.append(summary),documentClickHandler=ev=>{details.contains(ev.target)||details.removeAttribute("open")},document.addEventListener("click",documentClickHandler)}const ctrl=document.createElement("div");if(wrapper.append(ctrl),ctrl.classList.add("vega-actions"),!0===actions||!1!==actions.export)for(const ext of["svg","png"])if(!0===actions||!0===actions.export||actions.export[ext]){const i18nExportAction=i18n[`${ext.toUpperCase()}_ACTION`],exportLink=document.createElement("a"),scaleFactor=isObject(opts.scaleFactor)?opts.scaleFactor[ext]:opts.scaleFactor;exportLink.text=i18nExportAction,exportLink.href="#",exportLink.target="_blank",exportLink.download=`${downloadFileName}.${ext}`,exportLink.addEventListener("mousedown",(async function(e){e.preventDefault();const url=await view.toImageURL(ext,scaleFactor);this.href=url})),ctrl.append(exportLink)}if(!0===actions||!1!==actions.source){const viewSourceLink=document.createElement("a");viewSourceLink.text=i18n.SOURCE_ACTION,viewSourceLink.href="#",viewSourceLink.addEventListener("click",(function(e){viewSource(stringify$2(spec),opts.sourceHeader??"",opts.sourceFooter??"",mode),e.preventDefault()})),ctrl.append(viewSourceLink)}if("vega-lite"===mode&&(!0===actions||!1!==actions.compiled)){const compileLink=document.createElement("a");compileLink.text=i18n.COMPILED_ACTION,compileLink.href="#",compileLink.addEventListener("click",(function(e){viewSource(stringify$2(vgSpec),opts.sourceHeader??"",opts.sourceFooter??"","vega"),e.preventDefault()})),ctrl.append(compileLink)}if(!0===actions||!1!==actions.editor){const editorUrl=opts.editorUrl??"https://vega.github.io/editor/",editorLink=document.createElement("a");editorLink.text=i18n.EDITOR_ACTION,editorLink.href="#",editorLink.addEventListener("click",(function(e){!function post(window,url,data){const editor=window.open(url),step=250,{origin}=new URL(url);let count=~~(1e4/step);window.addEventListener("message",(function listen(evt){evt.source===editor&&(count=0,window.removeEventListener("message",listen,!1))}),!1),setTimeout((function send(){count<=0||(editor.postMessage(data,origin),setTimeout(send,step),count-=1)}),step)}(window,editorUrl,{config,mode,renderer,spec:stringify$2(spec)}),e.preventDefault()})),ctrl.append(editorLink)}}function finalize(){documentClickHandler&&document.removeEventListener("click",documentClickHandler),view.finalize()}return{view,spec,vgSpec,finalize,embedOptions:opts}}(el,parsedSpec,mergedOpts,loader)}async function loadOpts(opt,loader){const config=isString(opt.config)?JSON.parse(await loader.load(opt.config)):opt.config??{},patch=isString(opt.patch)?JSON.parse(await loader.load(opt.patch)):opt.patch;return _objectSpread$1(_objectSpread$1(_objectSpread$1({},opt),patch?{patch}:{}),config?{config}:{})}function updateMultipleDatasetsInView(view,data){Object.keys(data).forEach((name=>{!function updateSingleDatasetInView(view,name,value){value&&(function isFunction(functionToCheck){return!!functionToCheck&&"[object Function]"==={}.toString.call(functionToCheck)}(value)?value(view.data(name)):view.change(name,vega.changeset().remove((()=>!0)).insert(value)))}(view,name,data[name])}))}function getUniqueFieldNames(objects){const fields=new Set;return objects.forEach((o=>{Object.keys(o).forEach((field=>{fields.add(field)}))})),fields}const NOOP=()=>{};function addSignalListenersToView(view,signalListeners){const signalNames=Object.keys(signalListeners);return signalNames.forEach((signalName=>{try{view.addSignalListener(signalName,signalListeners[signalName])}catch(error){console.warn("Cannot add invalid signal listener.",error)}})),signalNames.length>0}function removeSignalListenersFromView(view,signalListeners){const signalNames=Object.keys(signalListeners);return signalNames.forEach((signalName=>{try{view.removeSignalListener(signalName,signalListeners[signalName])}catch(error){console.warn("Cannot remove invalid signal listener.",error)}})),signalNames.length>0}function combineSpecWithDimension(props){const{spec,width,height}=props;return void 0!==width&&void 0!==height?{...spec,width,height}:void 0!==width?{...spec,width}:void 0!==height?{...spec,height}:spec}function _defineProperty$1(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}class VegaEmbed extends react__WEBPACK_IMPORTED_MODULE_0__.PureComponent{constructor(){super(...arguments),_defineProperty$1(this,"containerRef",react__WEBPACK_IMPORTED_MODULE_0__.createRef()),_defineProperty$1(this,"resultPromise",void 0),_defineProperty$1(this,"handleError",(error=>{const{onError=NOOP}=this.props;onError(error,this.containerRef.current),console.warn(error)})),_defineProperty$1(this,"modifyView",(action=>{this.resultPromise&&this.resultPromise.then((result=>(result&&action(result.view),!0))).catch(this.handleError)}))}componentDidMount(){this.createView()}componentDidUpdate(prevProps){const fieldSet=getUniqueFieldNames([this.props,prevProps]);if(fieldSet.delete("className"),fieldSet.delete("signalListeners"),fieldSet.delete("spec"),fieldSet.delete("style"),fieldSet.delete("width"),fieldSet.delete("height"),Array.from(fieldSet).some((f=>this.props[f]!==prevProps[f])))this.clearView(),this.createView();else{const specChanges=function computeSpecChanges(newSpec,oldSpec){if(newSpec===oldSpec)return!1;const changes={width:!1,height:!1,isExpensive:!1},fieldNames=getUniqueFieldNames([newSpec,oldSpec]);return!fieldNames.has("width")||"width"in newSpec&&"width"in oldSpec&&newSpec.width===oldSpec.width||("width"in newSpec&&"number"==typeof newSpec.width?changes.width=newSpec.width:changes.isExpensive=!0),!fieldNames.has("height")||"height"in newSpec&&"height"in oldSpec&&newSpec.height===oldSpec.height||("height"in newSpec&&"number"==typeof newSpec.height?changes.height=newSpec.height:changes.isExpensive=!0),fieldNames.delete("width"),fieldNames.delete("height"),[...fieldNames].some((field=>!(field in newSpec)||!(field in oldSpec)||!equal(newSpec[field],oldSpec[field])))&&(changes.isExpensive=!0),!(!1===changes.width&&!1===changes.height&&!changes.isExpensive)&&changes}(combineSpecWithDimension(this.props),combineSpecWithDimension(prevProps)),{signalListeners:newSignalListeners}=this.props,{signalListeners:oldSignalListeners}=prevProps;if(specChanges)if(specChanges.isExpensive)this.clearView(),this.createView();else{const areSignalListenersChanged=!shallowEqual(newSignalListeners,oldSignalListeners);this.modifyView((view=>{!1!==specChanges.width&&view.width(specChanges.width),!1!==specChanges.height&&view.height(specChanges.height),areSignalListenersChanged&&(oldSignalListeners&&removeSignalListenersFromView(view,oldSignalListeners),newSignalListeners&&addSignalListenersToView(view,newSignalListeners)),view.run()}))}else shallowEqual(newSignalListeners,oldSignalListeners)||this.modifyView((view=>{oldSignalListeners&&removeSignalListenersFromView(view,oldSignalListeners),newSignalListeners&&addSignalListenersToView(view,newSignalListeners),view.run()}))}}componentWillUnmount(){this.clearView()}createView(){const{spec,onNewView,signalListeners={},width,height,...options}=this.props;if(this.containerRef.current){const finalSpec=combineSpecWithDimension(this.props);this.resultPromise=embed(this.containerRef.current,finalSpec,options).then((result=>{if(result){const{view}=result;addSignalListenersToView(view,signalListeners)&&view.run()}return result})).catch(this.handleError),onNewView&&this.modifyView(onNewView)}}clearView(){return this.resultPromise&&this.resultPromise.then((result=>{result&&result.finalize()})).catch(this.handleError),this.resultPromise=void 0,this}render(){const{className,style}=this.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:this.containerRef,className,style})}}function _extends(){return _extends=Object.assign||function(target){for(var i=1;i{this.update();const{onNewView=NOOP}=this.props;onNewView(view)}))}componentDidMount(){this.update()}componentDidUpdate(prevProps){shallowEqual(this.props.data,prevProps.data)||this.update()}update(){const{data}=this.props;this.vegaEmbed.current&&data&&Object.keys(data).length>0&&this.vegaEmbed.current.modifyView((view=>{updateMultipleDatasetsInView(view,data),view.resize().run()}))}render(){const{data,...restProps}=this.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(VegaEmbed,_extends({ref:this.vegaEmbed},restProps,{onNewView:this.handleNewView}))}}_defineProperty(Vega,"defaultProps",{data:{}})},"./node_modules/.pnpm/@utrecht+component-library-react@1.0.0-alpha.411_react-dom@18.2.0_react@18.2.0/node_modules/@utrecht/component-library-react/dist/index.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ZP:()=>ButtonLink});var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),clsx__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js"),_babel_runtime_helpers_objectDestructuringEmpty__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@babel+runtime@7.21.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_excluded$1g=["appearance","busy","disabled","children","className","hint","pressed","type"];function ownKeys$1h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1h(e){for(var r=1;r=0?buttonRefs[index]:void 0,nextSection=buttonRef?function nextItem(items,item){var currentIndex=item?items.indexOf(item):-1;return currentIndex>=0&¤tIndex+1<=items.length-1?items[currentIndex+1]:void 0}(buttonRefs,buttonRef):void 0;null==nextSection||null===(_nextSection$current=nextSection.current)||void 0===_nextSection$current||_nextSection$current.focus()},focusFirstSection:function focusFirstSection(){var _firstSection$current,firstSection=function firstItem(items){return items.length>=1?items[0]:void 0}(buttonRefs);console.log(refs),null==firstSection||null===(_firstSection$current=firstSection.current)||void 0===_firstSection$current||_firstSection$current.focus()},focusPreviousSection:function focusPreviousSection(activeElement){var _previousSection$curr,index=refs.indexOf(activeElement),buttonRef=index>=0?buttonRefs[index]:void 0,previousSection=buttonRef?function previousItem(items,item){var currentIndex=item?items.indexOf(item):-1;return currentIndex>=0&¤tIndex-1<=items.length-1?items[currentIndex-1]:void 0}(buttonRefs,buttonRef):void 0;null==previousSection||null===(_previousSection$curr=previousSection.current)||void 0===_previousSection$curr||_previousSection$curr.focus()},focusLastSection:function focusLastSection(){var _firstSection$current2,firstSection=function lastItem(items){return items.length>=1?items[items.length-1]:void 0}(buttonRefs);null==firstSection||null===(_firstSection$current2=firstSection.current)||void 0===_firstSection$current2||_firstSection$current2.focus()}}}(sections,ref),refs=_useAccordion.refs,buttonRefs=_useAccordion.buttonRefs,focusNextSection=_useAccordion.focusNextSection,focusFirstSection=_useAccordion.focusFirstSection,focusLastSection=_useAccordion.focusLastSection,focusPreviousSection=_useAccordion.focusPreviousSection,_useState=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),_useState2=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__.Z)(_useState,2),activeElement=_useState2[0],setActiveElement=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(sections),_useState4=(0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__.Z)(_useState3,2),sectionsState=_useState4[0],setSectionsState=_useState4[1],handleButtonFocus=function handleButtonFocus(ref){setActiveElement(ref)},handleButtonBlur=function handleButtonBlur(_){setActiveElement(null)};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Accordion,{onKeyDown:function handleKeyDown(evt){if("End"===evt.code)focusLastSection();else if("Home"===evt.code)focusFirstSection();else if("ArrowDown"===evt.code)activeElement&&focusNextSection(activeElement);else{if("ArrowUp"!==evt.code)return;activeElement&&focusPreviousSection(activeElement)}evt.preventDefault()},ref,children:sectionsState.map((function(section,index){return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(AccordionSection,_objectSpread$1f(_objectSpread$1f({},section),{},{ref:refs[index],buttonRef:buttonRefs[index],key:index,onButtonFocus:handleButtonFocus,onButtonBlur:handleButtonBlur,onActivate:function handleActivate(ref){var activatedIndex=refs.indexOf(ref);setSectionsState(sectionsState.map((function(section,index){return index===activatedIndex?_objectSpread$1f(_objectSpread$1f({},section),{},{expanded:!section.expanded}):section})))}}),section.body)}))})}).displayName="AccordionProvider";var _excluded$1d=["children","className","icon","type"];function ownKeys$1e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$1e(e){for(var r=1;r=2};(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((function(_ref,ref){var children=_ref.children,className=_ref.className,restProps=(0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__.Z)(_ref,_excluded$15);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("p",_objectSpread$16(_objectSpread$16({role:hasManyElements(children)?"group":void 0},restProps),{},{ref,className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__.Z)("utrecht-button-group",className),children}))})).displayName="ButtonGroup";var _excluded$14=["appearance","children","className","external","href","placeholder","role"];function ownKeys$15(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$15(e){for(var r=1;r0&&"utrecht-currency-data--positive",className),"aria-label":labelFormatted,children:children||visuallyFormatted}))})).displayName="CurrencyData";var _excluded$_=["children","className","dateTime","value"];function ownKeys$$(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$$(e){for(var r=1;r{"use strict";__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es5.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2015.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/es6-shim@0.35.6/node_modules/es6-shim/es6-shim.js"),__webpack_require__("./node_modules/.pnpm/function.prototype.name@1.1.6/node_modules/function.prototype.name/shim.js")(),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2016.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2016.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/array-includes@3.1.6/node_modules/array-includes/shim.js")(),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2017.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2017.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/object.values@1.1.6/node_modules/object.values/shim.js")(),__webpack_require__("./node_modules/.pnpm/object.entries@1.1.6/node_modules/object.entries/shim.js")(),__webpack_require__("./node_modules/.pnpm/string.prototype.padstart@3.1.3/node_modules/string.prototype.padstart/shim.js")(),__webpack_require__("./node_modules/.pnpm/string.prototype.padend@3.1.3/node_modules/string.prototype.padend/shim.js")(),__webpack_require__("./node_modules/.pnpm/object.getownpropertydescriptors@2.1.4/node_modules/object.getownpropertydescriptors/shim.js")(),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2018.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2018.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";"function"==typeof Promise&&__webpack_require__("./node_modules/.pnpm/promise.prototype.finally@3.1.3/node_modules/promise.prototype.finally/auto.js"),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2019.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2019.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/auto.js"),__webpack_require__("./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/auto.js"),__webpack_require__("./node_modules/.pnpm/symbol.prototype.description@1.0.5/node_modules/symbol.prototype.description/auto.js"),__webpack_require__("./node_modules/.pnpm/object.fromentries@2.0.6/node_modules/object.fromentries/auto.js"),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2020.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2020.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/string.prototype.matchall@4.0.8/node_modules/string.prototype.matchall/auto.js"),__webpack_require__("./node_modules/.pnpm/globalthis@1.0.3/node_modules/globalthis/auto.js"),__webpack_require__("./node_modules/.pnpm/promise.allsettled@1.0.5/node_modules/promise.allsettled/auto.js")},"./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es5.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/es5-shim@4.6.7/node_modules/es5-shim/es5-shim.js"),__webpack_require__("./node_modules/.pnpm/es5-shim@4.6.7/node_modules/es5-shim/es5-sham.js"),__webpack_require__("./node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/target/es2015.js")},"./node_modules/.pnpm/ansi-to-html@0.6.15/node_modules/ansi-to-html/lib/ansi_to_html.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function _defineProperties(target,props){for(var i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?40*red+55:0,g=green>0?40*green+55:0,b=blue>0?40*blue+55:0;colors[c]=function toColorHexString(ref){var _step,results=[],_iterator=_createForOfIteratorHelper(ref);try{for(_iterator.s();!(_step=_iterator.n()).done;){var r=_step.value;results.push(toHexString(r))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return"#"+results.join("")}([r,g,b])}(red,green,blue,colors)}))}))})),range(0,23).forEach((function(gray){var c=gray+232,l=toHexString(10*gray+8);colors[c]="#"+l+l+l})),colors}()};function toHexString(num){for(var str=num.toString(16);str.length<2;)str="0"+str;return str}function generateOutput(stack,token,data,options){var result;return"text"===token?result=function pushText(text,options){if(options.escapeXML)return entities.encodeXML(text);return text}(data,options):"display"===token?result=function handleDisplay(stack,code,options){code=parseInt(code,10);var result,codeMap={"-1":function _(){return"
"},0:function _(){return stack.length&&resetStyles(stack)},1:function _(){return pushTag(stack,"b")},3:function _(){return pushTag(stack,"i")},4:function _(){return pushTag(stack,"u")},8:function _(){return pushStyle(stack,"display:none")},9:function _(){return pushTag(stack,"strike")},22:function _(){return pushStyle(stack,"font-weight:normal;text-decoration:none;font-style:normal")},23:function _(){return closeTag(stack,"i")},24:function _(){return closeTag(stack,"u")},39:function _(){return pushForegroundColor(stack,options.fg)},49:function _(){return pushBackgroundColor(stack,options.bg)},53:function _(){return pushStyle(stack,"text-decoration:overline")}};codeMap[code]?result=codeMap[code]():4"})).join("")}function range(low,high){for(var results=[],j=low;j<=high;j++)results.push(j);return results}function categoryForCode(code){var result=null;return 0===(code=parseInt(code,10))?result="all":1===code?result="bold":2")}function pushStyle(stack,style){return pushTag(stack,"span",style)}function pushForegroundColor(stack,color){return pushTag(stack,"span","color:"+color)}function pushBackgroundColor(stack,color){return pushTag(stack,"span","background-color:"+color)}function closeTag(stack,style){var last;if(stack.slice(-1)[0]===style&&(last=stack.pop()),last)return""}var Filter=function(){function Filter(options){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Filter),(options=options||{}).colors&&(options.colors=Object.assign({},defaults.colors,options.colors)),this.options=Object.assign({},defaults,options),this.stack=[],this.stickyStack=[]}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(Filter,[{key:"toHtml",value:function toHtml(input){var _this=this;input="string"==typeof input?[input]:input;var stack=this.stack,options=this.options,buf=[];return this.stickyStack.forEach((function(element){var output=generateOutput(stack,element.token,element.data,options);output&&buf.push(output)})),function tokenize(text,options,callback){var ansiMatch=!1;function remove(){return""}function newline(m){return options.newline?callback("display",-1):callback("text",m),""}var tokens=[{pattern:/^\x08+/,sub:remove},{pattern:/^\x1b\[[012]?K/,sub:remove},{pattern:/^\x1b\[\(B/,sub:remove},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:function rgb(m){return callback("rgb",m),""}},{pattern:/^\x1b\[38;5;(\d+)m/,sub:function removeXterm256(m,g1){return callback("xterm256",g1),""}},{pattern:/^\n/,sub:newline},{pattern:/^\r+\n/,sub:newline},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:function ansiMess(m,g1){ansiMatch=!0,0===g1.trim().length&&(g1="0");var _step2,_iterator2=_createForOfIteratorHelper(g1=g1.trimRight(";").split(";"));try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var g=_step2.value;callback("display",g)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return""}},{pattern:/^\x1b\[\d?J/,sub:remove},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:remove},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:remove},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:function realText(m){return callback("text",m),""}}];function process(handler,i){i>3&&ansiMatch||(ansiMatch=!1,text=text.replace(handler.pattern,handler.sub))}var results1=[],length=text.length;outer:for(;length>0;){for(var i=0,o=0,len=tokens.length;o{"use strict";var ToIntegerOrInfinity=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToIntegerOrInfinity.js"),ToLength=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToLength.js"),ToObject=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToObject.js"),SameValueZero=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/SameValueZero.js"),$isNaN=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/helpers/isNaN.js"),$isFinite=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/helpers/isFinite.js"),GetIntrinsic=__webpack_require__("./node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"),callBound=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),isString=__webpack_require__("./node_modules/.pnpm/is-string@1.0.7/node_modules/is-string/index.js"),$charAt=callBound("String.prototype.charAt"),$indexOf=GetIntrinsic("%Array.prototype.indexOf%"),$max=GetIntrinsic("%Math.max%");module.exports=function includes(searchElement){var fromIndex=arguments.length>1?ToIntegerOrInfinity(arguments[1]):0;if($indexOf&&!$isNaN(searchElement)&&$isFinite(fromIndex)&&void 0!==searchElement)return $indexOf.apply(this,arguments)>-1;var O=ToObject(this),length=ToLength(O.length);if(0===length)return!1;for(var k=fromIndex>=0?fromIndex:$max(0,length+fromIndex);k{"use strict";var implementation=__webpack_require__("./node_modules/.pnpm/array-includes@3.1.6/node_modules/array-includes/implementation.js");module.exports=function getPolyfill(){return Array.prototype.includes&&Array(1).includes(void 0)?Array.prototype.includes:implementation}},"./node_modules/.pnpm/array-includes@3.1.6/node_modules/array-includes/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.0/node_modules/define-properties/index.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array-includes@3.1.6/node_modules/array-includes/polyfill.js");module.exports=function shimArrayPrototypeIncludes(){var polyfill=getPolyfill();return define(Array.prototype,{includes:polyfill},{includes:function(){return Array.prototype.includes!==polyfill}}),polyfill}},"./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/auto.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/shim.js")()},"./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ArraySpeciesCreate.js"),FlattenIntoArray=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/FlattenIntoArray.js"),Get=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/Get.js"),ToIntegerOrInfinity=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToIntegerOrInfinity.js"),ToLength=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToLength.js"),ToObject=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToObject.js");module.exports=function flat(){var O=ToObject(this),sourceLen=ToLength(Get(O,"length")),depthNum=1;arguments.length>0&&void 0!==arguments[0]&&(depthNum=ToIntegerOrInfinity(arguments[0]));var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,depthNum),A}},"./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flat||implementation}},"./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.0/node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/.pnpm/es-shim-unscopables@1.0.0/node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.flat@1.3.1/node_modules/array.prototype.flat/polyfill.js");module.exports=function shimFlat(){var polyfill=getPolyfill();return define(Array.prototype,{flat:polyfill},{flat:function(){return Array.prototype.flat!==polyfill}}),shimUnscopables("flat"),polyfill}},"./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/auto.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/shim.js")()},"./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ArraySpeciesCreate.js"),FlattenIntoArray=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/FlattenIntoArray.js"),Get=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/Get.js"),IsCallable=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/IsCallable.js"),ToLength=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToLength.js"),ToObject=__webpack_require__("./node_modules/.pnpm/es-abstract@1.21.2/node_modules/es-abstract/2022/ToObject.js");module.exports=function flatMap(mapperFunction){var T,O=ToObject(this),sourceLen=ToLength(Get(O,"length"));if(!IsCallable(mapperFunction))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(T=arguments[1]);var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,1,mapperFunction,T),A}},"./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flatMap||implementation}},"./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.0/node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/.pnpm/es-shim-unscopables@1.0.0/node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.flatmap@1.3.1/node_modules/array.prototype.flatmap/polyfill.js");module.exports=function shimFlatMap(){var polyfill=getPolyfill();return define(Array.prototype,{flatMap:polyfill},{flatMap:function(){return Array.prototype.flatMap!==polyfill}}),shimUnscopables("flatMap"),polyfill}},"./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ArraySpeciesCreate.js"),Call=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/Call.js"),CreateDataPropertyOrThrow=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/CreateDataPropertyOrThrow.js"),Get=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/Get.js"),HasProperty=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/HasProperty.js"),IsCallable=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/IsCallable.js"),ToUint32=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ToUint32.js"),ToObject=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ToObject.js"),ToString=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ToString.js"),callBound=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),isString=__webpack_require__("./node_modules/.pnpm/is-string@1.0.7/node_modules/is-string/index.js"),boxedString=Object("a"),splitString="a"!==boxedString[0]||!(0 in boxedString),strSplit=callBound("String.prototype.split");module.exports=function map(callbackfn){var T,O=ToObject(this),self=splitString&&isString(O)?strSplit(O,""):O,len=ToUint32(self.length);if(!IsCallable(callbackfn))throw new TypeError("Array.prototype.map callback must be a function");arguments.length>1&&(T=arguments[1]);for(var A=ArraySpeciesCreate(O,len),k=0;k{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"),RequireObjectCoercible=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/RequireObjectCoercible.js"),callBound=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/implementation.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/polyfill.js"),polyfill=getPolyfill(),shim=__webpack_require__("./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/shim.js"),$slice=callBound("Array.prototype.slice"),boundMapShim=function map(array,callbackfn){return RequireObjectCoercible(array),polyfill.apply(array,$slice(arguments,1))};define(boundMapShim,{getPolyfill,implementation,shim}),module.exports=boundMapShim},"./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var arrayMethodBoxesProperly=__webpack_require__("./node_modules/.pnpm/es-array-method-boxes-properly@1.0.0/node_modules/es-array-method-boxes-properly/index.js"),implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/implementation.js");module.exports=function getPolyfill(){var method=Array.prototype.map;return arrayMethodBoxesProperly(method)?method:implementation}},"./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.map@1.0.4/node_modules/array.prototype.map/polyfill.js");module.exports=function shimArrayPrototypeMap(){var polyfill=getPolyfill();return define(Array.prototype,{map:polyfill},{map:function(){return Array.prototype.map!==polyfill}}),polyfill}},"./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/implementation.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Call=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/Call.js"),Get=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/Get.js"),HasProperty=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/HasProperty.js"),IsCallable=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/IsCallable.js"),LengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/LengthOfArrayLike.js"),ToObject=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ToObject.js"),ToString=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/ToString.js"),callBound=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),isString=__webpack_require__("./node_modules/.pnpm/is-string@1.0.7/node_modules/is-string/index.js"),$TypeError=TypeError,boxedString=Object("a"),splitString="a"!==boxedString[0]||!(0 in boxedString),strSplit=callBound("%String.prototype.split%");module.exports=function reduce(callbackfn){var O=ToObject(this),self=splitString&&isString(O)?strSplit(O,""):O,len=LengthOfArrayLike(self);if(!IsCallable(callbackfn))throw new $TypeError("Array.prototype.reduce callback must be a function");if(0===len&&arguments.length<2)throw new $TypeError("reduce of empty array with no initial value");var accumulator,Pk,kPresent,k=0;if(arguments.length>1)accumulator=arguments[1];else{for(kPresent=!1;!kPresent&&k{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"),RequireObjectCoercible=__webpack_require__("./node_modules/.pnpm/es-abstract@1.22.2/node_modules/es-abstract/2021/RequireObjectCoercible.js"),callBind=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"),callBound=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"),implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/implementation.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/polyfill.js"),polyfill=callBind.apply(getPolyfill()),shim=__webpack_require__("./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/shim.js"),$slice=callBound("%Array.prototype.slice%"),boundShim=function reduce(array,callbackfn){return RequireObjectCoercible(array),polyfill(array,$slice(arguments,1))};define(boundShim,{getPolyfill,implementation,shim}),module.exports=boundShim},"./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/polyfill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var arrayMethodBoxesProperly=__webpack_require__("./node_modules/.pnpm/es-array-method-boxes-properly@1.0.0/node_modules/es-array-method-boxes-properly/index.js"),implementation=__webpack_require__("./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/implementation.js");module.exports=function getPolyfill(){var method=Array.prototype.reduce;return arrayMethodBoxesProperly(method)?method:implementation}},"./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/shim.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var define=__webpack_require__("./node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"),getPolyfill=__webpack_require__("./node_modules/.pnpm/array.prototype.reduce@1.0.4/node_modules/array.prototype.reduce/polyfill.js");module.exports=function shimArrayPrototypeReduce(){var polyfill=getPolyfill();return define(Array.prototype,{reduce:polyfill},{reduce:function(){return Array.prototype.reduce!==polyfill}}),polyfill}},"./node_modules/.pnpm/assert@1.5.0/node_modules/assert/assert.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectAssign=__webpack_require__("./node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js");function compare(a,b){if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i=0;i--)if(ka[i]!==kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(!_deepEqual(a[key=ka[i]],b[key],strict,actualVisitedObjects))return!1;return!0}(actual,expected,strict,memos))}return strict?actual===expected:actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function expectedException(actual,expected){if(!actual||!expected)return!1;if("[object RegExp]"==Object.prototype.toString.call(expected))return expected.test(actual);try{if(actual instanceof expected)return!0}catch(e){}return!Error.isPrototypeOf(expected)&&!0===expected.call({},actual)}function _throws(shouldThrow,block,expected,message){var actual;if("function"!=typeof block)throw new TypeError('"block" argument must be a function');"string"==typeof expected&&(message=expected,expected=null),actual=function _tryBlock(block){var error;try{block()}catch(e){error=e}return error}(block),message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message);var userProvidedMessage="string"==typeof message,isUnexpectedException=!shouldThrow&&actual&&!expected;if((!shouldThrow&&util.isError(actual)&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}assert.AssertionError=function AssertionError(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=function getMessage(self){return truncate(inspect(self.actual),128)+" "+self.operator+" "+truncate(inspect(self.expected),128)}(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=getName(stackStartFunction),idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function equal(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function notEqual(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function deepEqual(actual,expected,message){_deepEqual(actual,expected,!1)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.deepStrictEqual=function deepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)||fail(actual,expected,message,"deepStrictEqual",assert.deepStrictEqual)},assert.notDeepEqual=function notDeepEqual(actual,expected,message){_deepEqual(actual,expected,!1)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.notDeepStrictEqual=function notDeepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)&&fail(actual,expected,message,"notDeepStrictEqual",notDeepStrictEqual)},assert.strictEqual=function strictEqual(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function notStrictEqual(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert.throws=function(block,error,message){_throws(!0,block,error,message)},assert.doesNotThrow=function(block,error,message){_throws(!1,block,error,message)},assert.ifError=function(err){if(err)throw err},assert.strict=objectAssign((function strict(value,message){value||fail(value,!0,message,"==",strict)}),assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual}),assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},"./node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i...",!0,!0),tokContexts={tc_oTag,tc_cTag,tc_expr},tokTypes={jsxName:new TokenType("jsxName"),jsxText:new TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){var out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts,tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser){return function plugin(options,Parser){var acorn=Parser.acorn||__webpack_require__("./node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs"),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine=acorn.isNewLine,isIdentifierStart=acorn.isIdentifierStart,isIdentifierChar=acorn.isIdentifierChar;return function(_Parser){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(_class,_Parser);var _super=_createSuper(_class);function _class(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,_class),_super.apply(this,arguments)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(_class,[{key:"jsx_readToken",value:function jsx_readToken(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}},{key:"jsx_readNewLine",value:function jsx_readNewLine(normalizeCRLF){var out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}},{key:"jsx_readString",value:function jsx_readString(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}},{key:"jsx_readEntity",value:function jsx_readEntity(){var entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");for(var startPos=++this.pos;this.pos")}var fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}},{key:"jsx_parseText",value:function jsx_parseText(){var node=this.parseLiteral(this.value);return node.type="JSXText",node}},{key:"jsx_parseElement",value:function jsx_parseElement(){var startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}},{key:"parseExprAtom",value:function parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():_get(_getPrototypeOf(_class.prototype),"parseExprAtom",this).call(this,refShortHandDefaultPos)}},{key:"readToken",value:function readToken(code){var context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):_get(_getPrototypeOf(_class.prototype),"readToken",this).call(this,code)}},{key:"updateContext",value:function updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):_get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return _get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}],[{key:"acornJsx",get:function get(){return acornJsx}}]),_class}(Parser)}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser)}},Object.defineProperty(module.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(__webpack_require__("./node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs")).tokTypes},configurable:!0,enumerable:!0})},"./node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/xhtml.js":module=>{"use strict";module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"./node_modules/.pnpm/prettier@3.0.3/node_modules/prettier/plugins/babel.js":(module,__unused_webpack_exports,__webpack_require__)=>{function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(target,property,receiver){var base=function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&null!==(object=_getPrototypeOf(object)););return object}(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(arguments.length<3?target:receiver):desc.value}},_get.apply(this,arguments)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function _possibleConstructorReturn(self,call){if(call&&("object"==typeof call||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}(this,result)}}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperties(target,props){for(var i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0)&&(e[i]=a[i]);return e}var F=_createClass((function F(t,e,s){_classCallCheck(this,F),this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s})),ie=_createClass((function ie(t,e){_classCallCheck(this,ie),this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}));function L(a,t){var e=a.line,s=a.column,i=a.index;return new F(e,s+t,i+t)}var Ye={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},ri=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.length-1;return{get:function(){return a.reduce((function(e,s){return e[s]}),this)},set:function(e){a.reduce((function(s,i,r){return r===t?s[i]=e:s[i]}),this)}}},ai=function(a,t,e){return Object.keys(e).map((function(s){return[s,e[s]]})).filter((function(_ref){return!!_slicedToArray(_ref,2)[1]})).map((function(_ref3){var _ref4=_slicedToArray(_ref3,2),s=_ref4[0],i=_ref4[1];return[s,"function"==typeof i?{value:i,enumerable:!1}:"string"==typeof i.reflect?Object.assign({},i,ri(i.reflect.split("."))):i]})).reduce((function(s,_ref5){var _ref6=_slicedToArray(_ref5,2),i=_ref6[0],r=_ref6[1];return Object.defineProperty(s,i,Object.assign({configurable:!0},r))}),Object.assign(new a,t))},ni={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:Ye.SourceTypeModuleError},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:Ye.SourceTypeModuleError}},Rt={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Qe=function(_ref7){var a=_ref7.type,t=_ref7.prefix;return"UpdateExpression"===a?Rt.UpdateExpression[String(t)]:Rt[a]},oi={AccessorIsGenerator:function(_ref8){return`A ${_ref8.kind}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(_ref9){return`Missing initializer in ${_ref9.kind} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(_ref10){return`\`${_ref10.exportName}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(_ref11){return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${_ref11.localName}' as '${_ref11.exportName}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(_ref12){return`'${"ForInStatement"===_ref12.type?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(_ref13){return`Unsyntactic ${"BreakStatement"===_ref13.type?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(_ref14){return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${_ref14.importName}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(_ref15){return`\`import()\` requires exactly ${1===_ref15.maxArgumentCount?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(_ref16){return`Expected number in radix ${_ref16.radix}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(_ref17){return`Escape sequence in keyword ${_ref17.reservedWord}.`},InvalidIdentifier:function(_ref18){return`Invalid identifier ${_ref18.identifierName}.`},InvalidLhs:function(_ref19){var a=_ref19.ancestor;return`Invalid left-hand side in ${Qe(a)}.`},InvalidLhsBinding:function(_ref20){var a=_ref20.ancestor;return`Binding invalid left-hand side in ${Qe(a)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(_ref21){return`Unexpected character '${_ref21.unexpected}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(_ref22){return`Private name #${_ref22.identifierName} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(_ref23){return`Label '${_ref23.labelName}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(_ref24){return`This experimental syntax requires enabling the parser plugin: ${_ref24.missingPlugin.map((function(t){return JSON.stringify(t)})).join(", ")}.`},MissingOneOfPlugins:function(_ref25){return`This experimental syntax requires enabling one of the following parser plugin(s): ${_ref25.missingPlugin.map((function(t){return JSON.stringify(t)})).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(_ref26){return`Duplicate key "${_ref26.key}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:function(_ref27){return`An export name cannot include a lone surrogate, found '\\u${_ref27.surrogateCharCode.toString(16)}'.`},ModuleExportUndefined:function(_ref28){return`Export '${_ref28.localName}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(_ref29){var a=_ref29.identifierName;return`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`},PrivateNameRedeclaration:function(_ref30){return`Duplicate private name #${_ref30.identifierName}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(_ref31){return`Unexpected keyword '${_ref31.keyword}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(_ref32){return`Unexpected reserved word '${_ref32.reservedWord}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(_ref33){var a=_ref33.expected,t=_ref33.unexpected;return`Unexpected token${t?` '${t}'.`:""}${a?`, expected "${a}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(_ref34){var a=_ref34.target;return`The only valid meta property for ${a} is ${a}.${_ref34.onlyValidPropertyName}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(_ref35){return`Identifier '${_ref35.identifierName}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},hi={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(_ref36){return`Assigning to '${_ref36.referenceName}' in strict mode.`},StrictEvalArgumentsBinding:function(_ref37){return`Binding '${_ref37.bindingName}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},li=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),ci={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(_ref38){var a=_ref38.token;return`Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(_ref39){var a=_ref39.type;return`Hack-style pipe body cannot be an unparenthesized ${Qe({type:a})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},pi=["toMessage"],ui=["message"];function di(a){var t=a.toMessage,e=De(a,pi);return function s(_ref40){var i=_ref40.loc,r=_ref40.details;return ai(SyntaxError,Object.assign({},e,{loc:i}),{clone:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.loc||{};return s({loc:new F("line"in o?o.line:this.loc.line,"column"in o?o.column:this.loc.column,"index"in o?o.index:this.loc.index),details:Object.assign({},this.details,n.details)})},details:{value:r,enumerable:!1},message:{get:function(){return`${t(this.details)} (${this.loc.line}:${this.loc.column})`},set:function(n){Object.defineProperty(this,"message",{value:n})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in r&&{reflect:"details.missingPlugin",enumerable:!0}})}}function $(a,t){if(Array.isArray(a))return function(s){return $(s,a[0])};for(var e={},_loop2=function(){var i=a[s],r="string"==typeof i?{message:function(){return i}}:"function"==typeof i?{message:i}:i,n=r.message,o=De(r,ui),h="string"==typeof n?function(){return n}:n;e[s]=di(Object.assign({code:Ye.SyntaxError,reasonCode:s,toMessage:h},t?{syntaxPlugin:t}:{},o))},_i2=0,_Object$keys=Object.keys(a);_i2<_Object$keys.length;_i2++){var s=_Object$keys[_i2];_loop2()}return e}var p=Object.assign({},$(ni),$(oi),$(hi),$`pipelineOperator`(ci)),fi=Object.defineProperty,_t=function(a,t){return fi(a,t,{enumerable:!1,value:a[t]})};function pe(a){return a.loc.start&&_t(a.loc.start,"index"),a.loc.end&&_t(a.loc.end,"index"),a}var mi=function(a){return function(_a){_inherits(_class,_a);var _super=_createSuper(_class);function _class(){return _classCallCheck(this,_class),_super.apply(this,arguments)}return _createClass(_class,[{key:"parse",value:function parse(){var e=pe(_get(_getPrototypeOf(_class.prototype),"parse",this).call(this));return this.options.tokens&&(e.tokens=e.tokens.map(pe)),e}},{key:"parseRegExpLiteral",value:function parseRegExpLiteral(_ref41){var e=_ref41.pattern,s=_ref41.flags,i=null;try{i=new RegExp(e,s)}catch{}var r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}},{key:"parseBigIntLiteral",value:function parseBigIntLiteral(e){var s;try{s=BigInt(e)}catch{s=null}var i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}},{key:"parseDecimalLiteral",value:function parseDecimalLiteral(e){var i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}},{key:"estreeParseLiteral",value:function estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}},{key:"parseStringLiteral",value:function parseStringLiteral(e){return this.estreeParseLiteral(e)}},{key:"parseNumericLiteral",value:function parseNumericLiteral(e){return this.estreeParseLiteral(e)}},{key:"parseNullLiteral",value:function parseNullLiteral(){return this.estreeParseLiteral(null)}},{key:"parseBooleanLiteral",value:function parseBooleanLiteral(e){return this.estreeParseLiteral(e)}},{key:"directiveToStmt",value:function directiveToStmt(e){var s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;var i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}},{key:"initFunction",value:function initFunction(e,s){_get(_getPrototypeOf(_class.prototype),"initFunction",this).call(this,e,s),e.expression=!1}},{key:"checkDeclaration",value:function checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):_get(_getPrototypeOf(_class.prototype),"checkDeclaration",this).call(this,e)}},{key:"getObjectOrClassMethodParams",value:function getObjectOrClassMethodParams(e){return e.value.params}},{key:"isValidDirective",value:function isValidDirective(e){var s;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(s=e.expression.extra)&&s.parenthesized)}},{key:"parseBlockBody",value:function parseBlockBody(e,s,i,r,n){var _this=this;_get(_getPrototypeOf(_class.prototype),"parseBlockBody",this).call(this,e,s,i,r,n);var o=e.directives.map((function(h){return _this.directiveToStmt(h)}));e.body=o.concat(e.body),delete e.directives}},{key:"pushClassMethod",value:function pushClassMethod(e,s,i,r,n,o){this.parseMethod(s,i,r,n,o,"ClassMethod",!0),s.typeParameters&&(s.value.typeParameters=s.typeParameters,delete s.typeParameters),e.body.push(s)}},{key:"parsePrivateName",value:function parsePrivateName(){var e=_get(_getPrototypeOf(_class.prototype),"parsePrivateName",this).call(this);return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}},{key:"convertPrivateNameToPrivateIdentifier",value:function convertPrivateNameToPrivateIdentifier(e){var s=_get(_getPrototypeOf(_class.prototype),"getPrivateNameSV",this).call(this,e);return delete e.id,e.name=s,e.type="PrivateIdentifier",e}},{key:"isPrivateName",value:function isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:_get(_getPrototypeOf(_class.prototype),"isPrivateName",this).call(this,e)}},{key:"getPrivateNameSV",value:function getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:_get(_getPrototypeOf(_class.prototype),"getPrivateNameSV",this).call(this,e)}},{key:"parseLiteral",value:function parseLiteral(e,s){var i=_get(_getPrototypeOf(_class.prototype),"parseLiteral",this).call(this,e,s);return i.raw=i.extra.raw,delete i.extra,i}},{key:"parseFunctionBody",value:function parseFunctionBody(e,s){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_get(_getPrototypeOf(_class.prototype),"parseFunctionBody",this).call(this,e,s,i),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function parseMethod(e,s,i,r,n,o){var h=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=this.startNode();return l.kind=e.kind,(l=_get(_getPrototypeOf(_class.prototype),"parseMethod",this).call(this,l,s,i,r,n,o,h)).type="FunctionExpression",delete l.kind,e.value=l,"ClassPrivateMethod"===o&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}},{key:"parseClassProperty",value:function parseClassProperty(){for(var _get2,_len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++)e[_key]=arguments[_key];var s=(_get2=_get(_getPrototypeOf(_class.prototype),"parseClassProperty",this)).call.apply(_get2,[this].concat(e));return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition"),s}},{key:"parseClassPrivateProperty",value:function parseClassPrivateProperty(){for(var _get3,_len2=arguments.length,e=new Array(_len2),_key2=0;_key2<_len2;_key2++)e[_key2]=arguments[_key2];var s=(_get3=_get(_getPrototypeOf(_class.prototype),"parseClassPrivateProperty",this)).call.apply(_get3,[this].concat(e));return this.getPluginOption("estree","classFeatures")&&(s.type="PropertyDefinition",s.computed=!1),s}},{key:"parseObjectMethod",value:function parseObjectMethod(e,s,i,r,n){var o=_get(_getPrototypeOf(_class.prototype),"parseObjectMethod",this).call(this,e,s,i,r,n);return o&&(o.type="Property","method"===o.kind&&(o.kind="init"),o.shorthand=!1),o}},{key:"parseObjectProperty",value:function parseObjectProperty(e,s,i,r){var n=_get(_getPrototypeOf(_class.prototype),"parseObjectProperty",this).call(this,e,s,i,r);return n&&(n.kind="init",n.type="Property"),n}},{key:"isValidLVal",value:function isValidLVal(e,s,i){return"Property"===e?"value":_get(_getPrototypeOf(_class.prototype),"isValidLVal",this).call(this,e,s,i)}},{key:"isAssignable",value:function isAssignable(e,s){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,s):_get(_getPrototypeOf(_class.prototype),"isAssignable",this).call(this,e,s)}},{key:"toAssignable",value:function toAssignable(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){var i=e.key,r=e.value;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else _get(_getPrototypeOf(_class.prototype),"toAssignable",this).call(this,e,s)}},{key:"toAssignableObjectExpressionProp",value:function toAssignableObjectExpressionProp(e,s,i){"get"===e.kind||"set"===e.kind?this.raise(p.PatternHasAccessor,{at:e.key}):e.method?this.raise(p.PatternHasMethod,{at:e.key}):_get(_getPrototypeOf(_class.prototype),"toAssignableObjectExpressionProp",this).call(this,e,s,i)}},{key:"finishCallExpression",value:function finishCallExpression(e,s){var r,i=_get(_getPrototypeOf(_class.prototype),"finishCallExpression",this).call(this,e,s);"Import"===i.callee.type&&(i.type="ImportExpression",i.source=i.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(i.attributes=null!=(r=i.arguments[1])?r:null),delete i.arguments,delete i.callee);return i}},{key:"toReferencedArguments",value:function toReferencedArguments(e){"ImportExpression"!==e.type&&_get(_getPrototypeOf(_class.prototype),"toReferencedArguments",this).call(this,e)}},{key:"parseExport",value:function parseExport(e,s){var i=this.state.lastTokStartLoc,r=_get(_getPrototypeOf(_class.prototype),"parseExport",this).call(this,e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":var n,o=r.declaration;"ClassDeclaration"===(null==o?void 0:o.type)&&(null==(n=o.decorators)?void 0:n.length)>0&&o.start===r.start&&this.resetStartLocation(r,i)}return r}},{key:"parseSubscript",value:function parseSubscript(e,s,i,r){var n=_get(_getPrototypeOf(_class.prototype),"parseSubscript",this).call(this,e,s,i,r);if(r.optionalChainMember){if(("OptionalMemberExpression"===n.type||"OptionalCallExpression"===n.type)&&(n.type=n.type.substring(8)),r.stop){var o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else("MemberExpression"===n.type||"CallExpression"===n.type)&&(n.optional=!1);return n}},{key:"hasPropertyAsPrivateName",value:function hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),_get(_getPrototypeOf(_class.prototype),"hasPropertyAsPrivateName",this).call(this,e)}},{key:"isObjectProperty",value:function isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}},{key:"isObjectMethod",value:function isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}},{key:"finishNodeAt",value:function finishNodeAt(e,s,i){return pe(_get(_getPrototypeOf(_class.prototype),"finishNodeAt",this).call(this,e,s,i))}},{key:"resetStartLocation",value:function resetStartLocation(e,s){_get(_getPrototypeOf(_class.prototype),"resetStartLocation",this).call(this,e,s),pe(e)}},{key:"resetEndLocation",value:function resetEndLocation(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;_get(_getPrototypeOf(_class.prototype),"resetEndLocation",this).call(this,e,s),pe(e)}}]),_class}(a)},X=_createClass((function X(t,e){_classCallCheck(this,X),this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e})),w={brace:new X("{"),j_oTag:new X("...",!0)};w.template=new X("`",!0);var T=!0,m=!0,He=!0,ue=!0,z=!0,yi=!0,Me=_createClass((function Me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Me),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null})),gt=new Map;function A(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=a;var e=P(a,t);return gt.set(a,e),e}function v(a,t){return P(a,{beforeExpr:T,binop:t})}var ye=-1,U=[],Tt=[],bt=[],At=[],St=[],wt=[];function P(a){var e,s,i,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++ye,Tt.push(a),bt.push(null!=(e=t.binop)?e:-1),At.push(null!=(s=t.beforeExpr)&&s),St.push(null!=(i=t.startsExpr)&&i),wt.push(null!=(r=t.prefix)&&r),U.push(new Me(a,t)),ye}function b(a){var e,s,i,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++ye,gt.set(a,ye),Tt.push(a),bt.push(null!=(e=t.binop)?e:-1),At.push(null!=(s=t.beforeExpr)&&s),St.push(null!=(i=t.startsExpr)&&i),wt.push(null!=(r=t.prefix)&&r),U.push(new Me("name",t)),ye}var xi={bracketL:P("[",{beforeExpr:T,startsExpr:m}),bracketHashL:P("#[",{beforeExpr:T,startsExpr:m}),bracketBarL:P("[|",{beforeExpr:T,startsExpr:m}),bracketR:P("]"),bracketBarR:P("|]"),braceL:P("{",{beforeExpr:T,startsExpr:m}),braceBarL:P("{|",{beforeExpr:T,startsExpr:m}),braceHashL:P("#{",{beforeExpr:T,startsExpr:m}),braceR:P("}"),braceBarR:P("|}"),parenL:P("(",{beforeExpr:T,startsExpr:m}),parenR:P(")"),comma:P(",",{beforeExpr:T}),semi:P(";",{beforeExpr:T}),colon:P(":",{beforeExpr:T}),doubleColon:P("::",{beforeExpr:T}),dot:P("."),question:P("?",{beforeExpr:T}),questionDot:P("?."),arrow:P("=>",{beforeExpr:T}),template:P("template"),ellipsis:P("...",{beforeExpr:T}),backQuote:P("`",{startsExpr:m}),dollarBraceL:P("${",{beforeExpr:T,startsExpr:m}),templateTail:P("...`",{startsExpr:m}),templateNonTail:P("...${",{beforeExpr:T,startsExpr:m}),at:P("@"),hash:P("#",{startsExpr:m}),interpreterDirective:P("#!..."),eq:P("=",{beforeExpr:T,isAssign:ue}),assign:P("_=",{beforeExpr:T,isAssign:ue}),slashAssign:P("_=",{beforeExpr:T,isAssign:ue}),xorAssign:P("_=",{beforeExpr:T,isAssign:ue}),moduloAssign:P("_=",{beforeExpr:T,isAssign:ue}),incDec:P("++/--",{prefix:z,postfix:yi,startsExpr:m}),bang:P("!",{beforeExpr:T,prefix:z,startsExpr:m}),tilde:P("~",{beforeExpr:T,prefix:z,startsExpr:m}),doubleCaret:P("^^",{startsExpr:m}),doubleAt:P("@@",{startsExpr:m}),pipeline:v("|>",0),nullishCoalescing:v("??",1),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),lt:v("/<=/>=",7),gt:v("/<=/>=",7),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),bitShiftL:v("<>/>>>",8),bitShiftR:v("<>/>>>",8),plusMin:P("+/-",{beforeExpr:T,binop:9,prefix:z,startsExpr:m}),modulo:P("%",{binop:10,startsExpr:m}),star:P("*",{binop:10}),slash:v("/",10),exponent:P("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:T,binop:7}),_instanceof:A("instanceof",{beforeExpr:T,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:T}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:T}),_else:A("else",{beforeExpr:T}),_finally:A("finally"),_function:A("function",{startsExpr:m}),_if:A("if"),_return:A("return",{beforeExpr:T}),_switch:A("switch"),_throw:A("throw",{beforeExpr:T,prefix:z,startsExpr:m}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:T,startsExpr:m}),_this:A("this",{startsExpr:m}),_super:A("super",{startsExpr:m}),_class:A("class",{startsExpr:m}),_extends:A("extends",{beforeExpr:T}),_export:A("export"),_import:A("import",{startsExpr:m}),_null:A("null",{startsExpr:m}),_true:A("true",{startsExpr:m}),_false:A("false",{startsExpr:m}),_typeof:A("typeof",{beforeExpr:T,prefix:z,startsExpr:m}),_void:A("void",{beforeExpr:T,prefix:z,startsExpr:m}),_delete:A("delete",{beforeExpr:T,prefix:z,startsExpr:m}),_do:A("do",{isLoop:He,beforeExpr:T}),_for:A("for",{isLoop:He}),_while:A("while",{isLoop:He}),_as:b("as",{startsExpr:m}),_assert:b("assert",{startsExpr:m}),_async:b("async",{startsExpr:m}),_await:b("await",{startsExpr:m}),_from:b("from",{startsExpr:m}),_get:b("get",{startsExpr:m}),_let:b("let",{startsExpr:m}),_meta:b("meta",{startsExpr:m}),_of:b("of",{startsExpr:m}),_sent:b("sent",{startsExpr:m}),_set:b("set",{startsExpr:m}),_static:b("static",{startsExpr:m}),_using:b("using",{startsExpr:m}),_yield:b("yield",{startsExpr:m}),_asserts:b("asserts",{startsExpr:m}),_checks:b("checks",{startsExpr:m}),_exports:b("exports",{startsExpr:m}),_global:b("global",{startsExpr:m}),_implements:b("implements",{startsExpr:m}),_intrinsic:b("intrinsic",{startsExpr:m}),_infer:b("infer",{startsExpr:m}),_is:b("is",{startsExpr:m}),_mixins:b("mixins",{startsExpr:m}),_proto:b("proto",{startsExpr:m}),_require:b("require",{startsExpr:m}),_satisfies:b("satisfies",{startsExpr:m}),_keyof:b("keyof",{startsExpr:m}),_readonly:b("readonly",{startsExpr:m}),_unique:b("unique",{startsExpr:m}),_abstract:b("abstract",{startsExpr:m}),_declare:b("declare",{startsExpr:m}),_enum:b("enum",{startsExpr:m}),_module:b("module",{startsExpr:m}),_namespace:b("namespace",{startsExpr:m}),_interface:b("interface",{startsExpr:m}),_type:b("type",{startsExpr:m}),_opaque:b("opaque",{startsExpr:m}),name:P("name",{startsExpr:m}),string:P("string",{startsExpr:m}),num:P("num",{startsExpr:m}),bigint:P("bigint",{startsExpr:m}),decimal:P("decimal",{startsExpr:m}),regexp:P("regexp",{startsExpr:m}),privateName:P("#name",{startsExpr:m}),eof:P("eof"),jsxName:P("jsxName"),jsxText:P("jsxText",{beforeExpr:!0}),jsxTagStart:P("jsxTagStart",{startsExpr:!0}),jsxTagEnd:P("jsxTagEnd"),placeholder:P("%%",{startsExpr:!0})};function S(a){return a>=93&&a<=130}function Pi(a){return a<=92}function M(a){return a>=58&&a<=130}function Yt(a){return a>=58&&a<=134}function gi(a){return At[a]}function Ze(a){return St[a]}function Ti(a){return a>=29&&a<=33}function Ut(a){return a>=127&&a<=129}function bi(a){return a>=90&&a<=92}function Ct(a){return a>=58&&a<=92}function Ai(a){return a>=39&&a<=59}function Si(a){return 34===a}function wi(a){return wt[a]}function Ci(a){return a>=119&&a<=121}function Ei(a){return a>=122&&a<=128}function q(a){return Tt[a]}function ke(a){return bt[a]}function Ii(a){return 57===a}function Oe(a){return a>=24&&a<=25}function _(a){return U[a]}U[8].updateContext=function(a){a.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=function(a){a.push(w.brace)},U[22].updateContext=function(a){a[a.length-1]===w.template?a.pop():a.push(w.template)},U[140].updateContext=function(a){a.push(w.j_expr,w.j_oTag)};var Et="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qt="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Ni=new RegExp("["+Et+"]"),ki=new RegExp("["+Et+Qt+"]");Et=Qt=null;var Zt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],vi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function et(a,t){for(var e=65536,s=0,i=t.length;sa)return!1;if((e+=t[s+1])>=a)return!0}return!1}function j(a){return a<65?36===a:a<=90||(a<97?95===a:a<=122||(a<=65535?a>=170&&Ni.test(String.fromCharCode(a)):et(a,Zt)))}function ee(a){return a<48?36===a:a<58||!(a<65)&&(a<=90||(a<97?95===a:a<=122||(a<=65535?a>=170&&ki.test(String.fromCharCode(a)):et(a,Zt)||et(a,vi))))}var It={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Li=new Set(It.keyword),Di=new Set(It.strict),Mi=new Set(It.strictBind);function es(a,t){return t&&"await"===a||"enum"===a}function ts(a,t){return es(a,t)||Di.has(a)}function ss(a){return Mi.has(a)}function is(a,t){return ts(a,t)||ss(a)}function Oi(a){return Li.has(a)}function Fi(a,t,e){return 64===a&&64===t&&j(e)}var Bi=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ri(a){return Bi.has(a)}var Pe=_createClass((function Pe(t){_classCallCheck(this,Pe),this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t})),ge=function(){function ge(t,e){_classCallCheck(this,ge),this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}return _createClass(ge,[{key:"inTopLevel",get:function(){return(1&this.currentScope().flags)>0}},{key:"inFunction",get:function(){return(2&this.currentVarScopeFlags())>0}},{key:"allowSuper",get:function(){return(16&this.currentThisScopeFlags())>0}},{key:"allowDirectSuper",get:function(){return(32&this.currentThisScopeFlags())>0}},{key:"inClass",get:function(){return(64&this.currentThisScopeFlags())>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var t=this.currentThisScopeFlags();return(64&t)>0&&0==(2&t)}},{key:"inStaticBlock",get:function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t].flags;if(128&e)return!0;if(451&e)return!1}}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScopeFlags())>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}},{key:"createScope",value:function createScope(t){return new Pe(t)}},{key:"enter",value:function enter(t){this.scopeStack.push(this.createScope(t))}},{key:"exit",value:function exit(){return this.scopeStack.pop().flags}},{key:"treatFunctionsAsVarInScope",value:function treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}},{key:"declareName",value:function declareName(t,e,s){var i=this.currentScope();if(8&e||16&e)this.checkRedeclarationInScope(i,t,e,s),16&e?i.functions.add(t):i.lexical.add(t),8&e&&this.maybeExportDefined(i,t);else if(4&e)for(var r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.var.add(t),this.maybeExportDefined(i,t),!(387&i.flags));--r);this.parser.inModule&&1&i.flags&&this.undefinedExports.delete(t)}},{key:"maybeExportDefined",value:function maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}},{key:"checkRedeclarationInScope",value:function checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(p.VarRedeclaration,{at:i,identifierName:e})}},{key:"isRedeclaredInScope",value:function isRedeclaredInScope(t,e,s){return!!(1&s)&&(8&s?t.lexical.has(e)||t.functions.has(e)||t.var.has(e):16&s?t.lexical.has(e)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(e):t.lexical.has(e)&&!(8&t.flags&&t.lexical.values().next().value===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(e))}},{key:"checkLocalExport",value:function checkLocalExport(t){var e=t.name,s=this.scopeStack[0];!s.lexical.has(e)&&!s.var.has(e)&&!s.functions.has(e)&&this.undefinedExports.set(e,t.loc.start)}},{key:"currentScope",value:function currentScope(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScopeFlags",value:function currentVarScopeFlags(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t].flags;if(387&e)return e}}},{key:"currentThisScopeFlags",value:function currentThisScopeFlags(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t].flags;if(451&e&&!(4&e))return e}}}]),ge}(),tt=function(_Pe){_inherits(tt,_Pe);var _super2=_createSuper(tt);function tt(){var _this2;_classCallCheck(this,tt);for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++)t[_key3]=arguments[_key3];return(_this2=_super2.call.apply(_super2,[this].concat(t))).declareFunctions=new Set,_this2}return _createClass(tt)}(Pe),st=function(_ge){_inherits(st,_ge);var _super3=_createSuper(st);function st(){return _classCallCheck(this,st),_super3.apply(this,arguments)}return _createClass(st,[{key:"createScope",value:function createScope(t){return new tt(t)}},{key:"declareName",value:function declareName(t,e,s){var i=this.currentScope();if(2048&e)return this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),void i.declareFunctions.add(t);_get(_getPrototypeOf(st.prototype),"declareName",this).call(this,t,e,s)}},{key:"isRedeclaredInScope",value:function isRedeclaredInScope(t,e,s){return!!_get(_getPrototypeOf(st.prototype),"isRedeclaredInScope",this).call(this,t,e,s)||!!(2048&s)&&!t.declareFunctions.has(e)&&(t.lexical.has(e)||t.functions.has(e))}},{key:"checkLocalExport",value:function checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||_get(_getPrototypeOf(st.prototype),"checkLocalExport",this).call(this,t)}}]),st}(ge),it=function(){function it(){_classCallCheck(this,it),this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}return _createClass(it,[{key:"hasPlugin",value:function hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);var _t2=_slicedToArray(t,2),e=_t2[0],s=_t2[1];if(!this.hasPlugin(e))return!1;for(var i=this.plugins.get(e),_i3=0,_Object$keys2=Object.keys(s);_i3<_Object$keys2.length;_i3++){var r=_Object$keys2[_i3];if((null==i?void 0:i[r])!==s[r])return!1}return!0}},{key:"getPluginOption",value:function getPluginOption(t,e){var s;return null==(s=this.plugins.get(t))?void 0:s[e]}}]),it}();function rs(a,t){var _a$trailingComments;void 0===a.trailingComments?a.trailingComments=t:(_a$trailingComments=a.trailingComments).unshift.apply(_a$trailingComments,_toConsumableArray(t))}function _i(a,t){var _a$leadingComments;void 0===a.leadingComments?a.leadingComments=t:(_a$leadingComments=a.leadingComments).unshift.apply(_a$leadingComments,_toConsumableArray(t))}function Te(a,t){var _a$innerComments;void 0===a.innerComments?a.innerComments=t:(_a$innerComments=a.innerComments).unshift.apply(_a$innerComments,_toConsumableArray(t))}function de(a,t,e){for(var s=null,i=t.length;null===s&&i>0;)s=t[--i];null===s||s.start>e.start?Te(a,e.comments):rs(s,e.comments)}var rt=function(_it){_inherits(rt,_it);var _super4=_createSuper(rt);function rt(){return _classCallCheck(this,rt),_super4.apply(this,arguments)}return _createClass(rt,[{key:"addComment",value:function addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}},{key:"processComment",value:function processComment(t){var e=this.state.commentStack,s=e.length;if(0!==s){var i=s-1,r=e[i];r.start===t.end&&(r.leadingNode=t,i--);for(var n=t.start;i>=0;i--){var o=e[i],h=o.end;if(!(h>n)){h===n&&(o.trailingNode=t);break}o.containingNode=t,this.finalizeComment(o),e.splice(i,1)}}}},{key:"finalizeComment",value:function finalizeComment(t){var e=t.comments;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&rs(t.leadingNode,e),null!==t.trailingNode&&_i(t.trailingNode,e);else{var s=t.containingNode,i=t.start;if(44===this.input.charCodeAt(i-1))switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":de(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":de(s,s.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":de(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":de(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":de(s,s.specifiers,t);break;default:Te(s,e)}else Te(s,e)}}},{key:"finalizeRemainingComments",value:function finalizeRemainingComments(){for(var t=this.state.commentStack,e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}},{key:"resetPreviousNodeTrailingComments",value:function resetPreviousNodeTrailingComments(t){var e=this.state.commentStack,s=e.length;if(0!==s){var i=e[s-1];i.leadingNode===t&&(i.leadingNode=null)}}},{key:"resetPreviousIdentifierLeadingComments",value:function resetPreviousIdentifierLeadingComments(t){var e=this.state.commentStack,s=e.length;0!==s&&(e[s-1].trailingNode===t?e[s-1].trailingNode=null:s>=2&&e[s-2].trailingNode===t&&(e[s-2].trailingNode=null))}},{key:"takeSurroundingComments",value:function takeSurroundingComments(t,e,s){var i=this.state.commentStack,r=i.length;if(0!==r)for(var n=r-1;n>=0;n--){var o=i[n],h=o.end;if(o.start===s)o.leadingNode=t;else if(h===e)o.trailingNode=t;else if(h=48&&t<=57},$t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ne={bin:function(a){return 48===a||49===a},oct:function(a){return a>=48&&a<=55},dec:function(a){return a>=48&&a<=57},hex:function(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}};function Vt(a,t,e,s,i,r){for(var n=e,o=s,h=i,l="",c=null,u=e,f=t.length;;){if(e>=f){r.unterminated(n,o,h),l+=t.slice(u,e);break}var d=t.charCodeAt(e);if($i(a,d,t,e)){l+=t.slice(u,e);break}if(92===d){l+=t.slice(u,e);var x=Vi(t,e,s,i,"template"===a,r);null!==x.ch||c?l+=x.ch:c={pos:e,lineStart:s,curLine:i},e=x.pos,s=x.lineStart,i=x.curLine,u=e}else 8232===d||8233===d?(++i,s=++e):10===d||13===d?"template"===a?(l+=t.slice(u,e)+"\n",++e,13===d&&10===t.charCodeAt(e)&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function $i(a,t,e,s){return"template"===a?96===t||36===t&&123===e.charCodeAt(s+1):t===("double"===a?34:39)}function Vi(a,t,e,s,i,r){var n=!i;t++;var o=function(l){return{pos:t,ch:l,lineStart:e,curLine:s}},h=a.charCodeAt(t++);switch(h){case 110:return o("\n");case 114:return o("\r");case 120:var _nt,l;return l=(_nt=nt(a,t,e,s,2,!1,n,r)).code,t=_nt.pos,o(null===l?null:String.fromCharCode(l));case 117:var _os,_l;return _l=(_os=os(a,t,e,s,n,r)).code,t=_os.pos,o(null===_l?null:String.fromCodePoint(_l));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===a.charCodeAt(t)&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){var _l2=t-1,u=a.slice(_l2,t+2).match(/^[0-7]+/)[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;var d=a.charCodeAt(t);if("0"!==u||56===d||57===d){if(i)return o(null);r.strictNumericEscape(_l2,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function nt(a,t,e,s,i,r,n,o){var _ns,l,h=t;return l=(_ns=ns(a,t,e,s,16,i,r,!1,o,!n)).n,t=_ns.pos,null===l&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function ns(a,t,e,s,i,r,n,o,h,l){for(var c=t,u=16===i?$t.hex:$t.decBinOct,f=16===i?Ne.hex:10===i?Ne.dec:8===i?Ne.oct:Ne.bin,d=!1,x=0,I=0,C=null!=r?r:1/0;I=97?E-97+10:E>=65?E-65+10:ji(E)?E-48:1/0)>=i){if(N<=9&&l)return{n:null,pos:t};if(N<=9&&h.invalidDigit(t,e,s,i))N=0;else{if(!n)break;N=0,d=!0}}++t,x=x*i+N}else{var Ce=a.charCodeAt(t-1),ce=a.charCodeAt(t+1);if(o){if(Number.isNaN(ce)||!f(ce)||u.has(Ce)||u.has(ce)){if(l)return{n:null,pos:t};h.unexpectedNumericSeparator(t,e,s)}}else{if(l)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,e,s)}++t}}return t===c||null!=r&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function os(a,t,e,s,i,r){var o;if(123===a.charCodeAt(t)){var _nt2;if(o=(_nt2=nt(a,++t,e,s,a.indexOf("}",t)-t,!0,i,r)).code,t=_nt2.pos,++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};r.invalidCodePoint(t,e,s)}}else{var _nt3=nt(a,t,e,s,4,!1,i,r);o=_nt3.code,t=_nt3.pos}return{code:o,pos:t}}var zi=["at"],Ki=["at"];function fe(a,t,e){return new F(e,a-t,a)}var qi=new Set([103,109,115,105,121,117,100,118]),O=_createClass((function O(t){_classCallCheck(this,O),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new ie(t.startLoc,t.endLoc)})),ot=function(_rt){_inherits(ot,_rt);var _super5=_createSuper(ot);function ot(t,e){var _this3;return _classCallCheck(this,ot),(_this3=_super5.call(this)).isLookahead=void 0,_this3.tokens=[],_this3.errorHandlers_readInt={invalidDigit:function(s,i,r,n){return!!_this3.options.errorRecovery&&(_this3.raise(p.InvalidDigit,{at:fe(s,i,r),radix:n}),!0)},numericSeparatorInEscapeSequence:_this3.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:_this3.errorBuilder(p.UnexpectedNumericSeparator)},_this3.errorHandlers_readCodePoint=Object.assign({},_this3.errorHandlers_readInt,{invalidEscapeSequence:_this3.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:_this3.errorBuilder(p.InvalidCodePoint)}),_this3.errorHandlers_readStringContents_string=Object.assign({},_this3.errorHandlers_readCodePoint,{strictNumericEscape:function(s,i,r){_this3.recordStrictModeErrors(p.StrictNumericEscape,{at:fe(s,i,r)})},unterminated:function(s,i,r){throw _this3.raise(p.UnterminatedString,{at:fe(s-1,i,r)})}}),_this3.errorHandlers_readStringContents_template=Object.assign({},_this3.errorHandlers_readCodePoint,{strictNumericEscape:_this3.errorBuilder(p.StrictNumericEscape),unterminated:function(s,i,r){throw _this3.raise(p.UnterminatedTemplate,{at:fe(s,i,r)})}}),_this3.state=new at,_this3.state.init(t),_this3.input=e,_this3.length=e.length,_this3.isLookahead=!1,_this3}return _createClass(ot,[{key:"pushToken",value:function pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}},{key:"next",value:function next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new O(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}},{key:"eat",value:function eat(t){return!!this.match(t)&&(this.next(),!0)}},{key:"match",value:function match(t){return this.state.type===t}},{key:"createLookaheadState",value:function createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}},{key:"lookahead",value:function lookahead(){var t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var e=this.state;return this.state=t,e}},{key:"nextTokenStart",value:function nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}},{key:"nextTokenStartSince",value:function nextTokenStartSince(t){return We.lastIndex=t,We.test(this.input)?We.lastIndex:t}},{key:"lookaheadCharCode",value:function lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"nextTokenInLineStart",value:function nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}},{key:"nextTokenInLineStartSince",value:function nextTokenInLineStartSince(t){return ve.lastIndex=t,ve.test(this.input)?ve.lastIndex:t}},{key:"lookaheadInLineCharCode",value:function lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}},{key:"codePointAtPos",value:function codePointAtPos(t){var e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t=this.length?this.finishToken(137):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}},{key:"skipBlockComment",value:function skipBlockComment(t){var e;this.isLookahead||(e=this.state.curPosition());var s=this.state.pos,i=this.input.indexOf(t,s+2);if(-1===i)throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=i+t.length,Ie.lastIndex=s+2;Ie.test(this.input)&&Ie.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ie.lastIndex;if(!this.isLookahead){var r={type:"CommentBlock",value:this.input.slice(s+2,i),start:s,end:i+t.length,loc:new ie(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(r),r}}},{key:"skipLineComment",value:function skipLineComment(t){var s,e=this.state.pos;this.isLookahead||(s=this.state.curPosition());var i=this.input.charCodeAt(this.state.pos+=t);if(this.state.post))break e;var r=this.skipLineComment(3);void 0!==r&&(this.addComment(r),this.options.attachComment&&e.push(r))}else{if(60!==s||this.inModule||!this.options.annexB)break e;var _i6=this.state.pos;if(33!==this.input.charCodeAt(_i6+1)||45!==this.input.charCodeAt(_i6+2)||45!==this.input.charCodeAt(_i6+3))break e;var _r2=this.skipLineComment(4);void 0!==_r2&&(this.addComment(_r2),this.options.attachComment&&e.push(_r2))}}}if(e.length>0){var _i7={start:t,end:this.state.pos,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(_i7)}}},{key:"finishToken",value:function finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var s=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(s)}},{key:"replaceToken",value:function replaceToken(t){this.state.type=t,this.updateContext()}},{key:"readToken_numberSign",value:function readToken_numberSign(){if(0!==this.state.pos||!this.readToken_interpreter()){var t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(p.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else j(e)?(++this.state.pos,this.finishToken(136,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}}},{key:"readToken_dot",value:function readToken_dot(){var t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}},{key:"readToken_slash",value:function readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}},{key:"readToken_interpreter",value:function readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;var t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;var e=this.state.pos;for(this.state.pos+=1;!xe(t)&&++this.state.pos=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}},{key:"getTokenFromCode",value:function getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(j(t))return void this.readWord(t)}throw this.raise(p.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}},{key:"finishOp",value:function finishOp(t,e){var s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}},{key:"readRegexp",value:function readRegexp(){for(var s,i,t=this.state.startLoc,e=this.state.start+1,r=this.state.pos;;++r){if(r>=this.length)throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});var l=this.input.charCodeAt(r);if(xe(l))throw this.raise(p.UnterminatedRegExp,{at:L(t,1)});if(s)s=!1;else{if(91===l)i=!0;else if(93===l&&i)i=!1;else if(47===l&&!i)break;s=92===l}}var n=this.input.slice(e,r);++r;for(var o="",h=function(){return L(t,r+2-e)};r2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_ns2=ns(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,s,i,this.errorHandlers_readInt,!1),r=_ns2.n,n=_ns2.pos;return this.state.pos=n,r}},{key:"readRadixNumber",value:function readRadixNumber(t){var e=this.state.curPosition(),s=!1;this.state.pos+=2;var i=this.readInt(t);null==i&&this.raise(p.InvalidDigit,{at:L(e,2),radix:t});var r=this.input.charCodeAt(this.state.pos);if(110===r)++this.state.pos,s=!0;else if(109===r)throw this.raise(p.InvalidDecimal,{at:e});if(j(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});if(s){var n=this.input.slice(e.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,n)}else this.finishToken(132,i)}},{key:"readNumber",value:function readNumber(t){var e=this.state.pos,s=this.state.curPosition(),i=!1,r=!1,n=!1,o=!1,h=!1;!t&&null===this.readInt(10)&&this.raise(p.InvalidNumber,{at:this.state.curPosition()});var l=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(l){var d=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(p.StrictOctalLiteral,{at:s}),!this.state.strict){var x=d.indexOf("_");x>0&&this.raise(p.ZeroDigitNumericSeparator,{at:L(s,x)})}h=l&&!/[89]/.test(d)}var c=this.input.charCodeAt(this.state.pos);if(46===c&&!h&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(69===c||101===c)&&!h&&((43===(c=this.input.charCodeAt(++this.state.pos))||45===c)&&++this.state.pos,null===this.readInt(10)&&this.raise(p.InvalidOrMissingExponent,{at:s}),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((i||l)&&this.raise(p.InvalidBigIntLiteral,{at:s}),++this.state.pos,r=!0),109===c&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(p.InvalidDecimal,{at:s}),++this.state.pos,n=!0),j(this.codePointAtPos(this.state.pos)))throw this.raise(p.NumberIdentifier,{at:this.state.curPosition()});var u=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r)this.finishToken(133,u);else if(n)this.finishToken(134,u);else{var f=h?parseInt(u,8):parseFloat(u);this.finishToken(132,f)}}},{key:"readCodePoint",value:function readCodePoint(t){var _os2=os(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint),e=_os2.code,s=_os2.pos;return this.state.pos=s,e}},{key:"readString",value:function readString(t){var _Vt=Vt(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),e=_Vt.str,s=_Vt.pos,i=_Vt.curLine,r=_Vt.lineStart;this.state.pos=s+1,this.state.lineStart=r,this.state.curLine=i,this.finishToken(131,e)}},{key:"readTemplateContinuation",value:function readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}},{key:"readTemplateToken",value:function readTemplateToken(){var t=this.input[this.state.pos],_Vt2=Vt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),e=_Vt2.str,s=_Vt2.firstInvalidLoc,i=_Vt2.pos,r=_Vt2.curLine,n=_Vt2.lineStart;this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,s&&(this.state.firstInvalidTemplateEscapePos=new F(s.curLine,s.pos-s.lineStart,s.pos)),96===this.input.codePointAt(i)?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}},{key:"recordStrictModeErrors",value:function recordStrictModeErrors(t,_ref45){var e=_ref45.at,s=e.index;this.state.strict&&!this.state.strictErrors.has(s)?this.raise(t,{at:e}):this.state.strictErrors.set(s,[t,e])}},{key:"readWord1",value:function readWord1(t){this.state.containsEsc=!1;var e="",s=this.state.pos,i=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;h--){var l=o[h];if(l.loc.index===n)return o[h]=t({loc:r,details:i});if(l.loc.index0&&void 0!==arguments[0]?arguments[0]:0;_classCallCheck(this,re),this.type=t}return _createClass(re,[{key:"canBeArrowParameterDeclaration",value:function canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}},{key:"isCertainlyParameterDeclaration",value:function isCertainlyParameterDeclaration(){return 3===this.type}}]),re}(),Fe=function(_re){_inherits(Fe,_re);var _super6=_createSuper(Fe);function Fe(t){var _this7;return _classCallCheck(this,Fe),(_this7=_super6.call(this,t)).declarationErrors=new Map,_this7}return _createClass(Fe,[{key:"recordDeclarationError",value:function recordDeclarationError(t,_ref48){var e=_ref48.at,s=e.index;this.declarationErrors.set(s,[t,e])}},{key:"clearDeclarationError",value:function clearDeclarationError(t){this.declarationErrors.delete(t)}},{key:"iterateErrors",value:function iterateErrors(t){this.declarationErrors.forEach(t)}}]),Fe}(re),ct=function(){function ct(t){_classCallCheck(this,ct),this.parser=void 0,this.stack=[new re],this.parser=t}return _createClass(ct,[{key:"enter",value:function enter(t){this.stack.push(t)}},{key:"exit",value:function exit(){this.stack.pop()}},{key:"recordParameterInitializerError",value:function recordParameterInitializerError(t,_ref49){for(var s={at:_ref49.at.loc.start},i=this.stack,r=i.length-1,n=i[r];!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(t,s),n=i[--r]}this.parser.raise(t,s)}},{key:"recordArrowParameterBindingError",value:function recordArrowParameterBindingError(t,_ref50){var e=_ref50.at,s=this.stack,i=s[s.length-1],r={at:e.loc.start};if(i.isCertainlyParameterDeclaration())this.parser.raise(t,r);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(t,r)}}},{key:"recordAsyncArrowParametersError",value:function recordAsyncArrowParametersError(_ref51){for(var t=_ref51.at,e=this.stack,s=e.length-1,i=e[s];i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(p.AwaitBindingIdentifier,{at:t}),i=e[--s]}},{key:"validateAsPattern",value:function validateAsPattern(){var _this8=this,t=this.stack,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((function(_ref52){var _ref53=_slicedToArray(_ref52,2),s=_ref53[0],i=_ref53[1];_this8.parser.raise(s,{at:i});for(var r=t.length-2,n=t[r];n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=t[--r]}))}}]),ct}();function Hi(){return new re(3)}function Wi(){return new Fe(1)}function Ji(){return new Fe(2)}function hs(){return new re}var te=0,ls=1,Re=2,cs=4,Q=8,pt=function(){function pt(){_classCallCheck(this,pt),this.stacks=[]}return _createClass(pt,[{key:"enter",value:function enter(t){this.stacks.push(t)}},{key:"exit",value:function exit(){this.stacks.pop()}},{key:"currentFlags",value:function currentFlags(){return this.stacks[this.stacks.length-1]}},{key:"hasAwait",get:function(){return(this.currentFlags()&Re)>0}},{key:"hasYield",get:function(){return(this.currentFlags()&ls)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&cs)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&Q)>0}}]),pt}();function Le(a,t){return(a?Re:0)|(t?ls:0)}var ut=function(_ot){_inherits(ut,_ot);var _super7=_createSuper(ut);function ut(){return _classCallCheck(this,ut),_super7.apply(this,arguments)}return _createClass(ut,[{key:"addExtra",value:function addExtra(t,e,s){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t){var r=t.extra=t.extra||{};i?r[e]=s:Object.defineProperty(r,e,{enumerable:i,value:s})}}},{key:"isContextual",value:function isContextual(t){return this.state.type===t&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function isUnparsedContextual(t,e){var s=t+e.length;if(this.input.slice(t,s)===e){var i=this.input.charCodeAt(s);return!(ee(i)||55296==(64512&i))}return!1}},{key:"isLookaheadContextual",value:function isLookaheadContextual(t){var e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}},{key:"eatContextual",value:function eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}},{key:"expectContextual",value:function expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,{at:this.state.startLoc});this.unexpected(null,t)}}},{key:"canInsertSemicolon",value:function canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function hasPrecedingLineBreak(){return as.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}},{key:"hasFollowingLineBreak",value:function hasFollowingLineBreak(){return jt.lastIndex=this.state.end,jt.test(this.input)}},{key:"isLineTerminator",value:function isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}},{key:"semicolon",value:function semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(p.MissingSemicolon,{at:this.state.lastTokEndLoc})}},{key:"expect",value:function expect(t,e){this.eat(t)||this.unexpected(e,t)}},{key:"tryParse",value:function tryParse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),s={node:null};try{var i=t((function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw s.node=r,s}));if(this.state.errors.length>e.errors.length){var r=this.state;return this.state=e,this.state.tokensLength=r.tokensLength,{node:i,error:r.errors[e.errors.length],thrown:!1,aborted:!1,failState:r}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){var _r3=this.state;if(this.state=e,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:_r3};if(i===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:_r3};throw i}}},{key:"checkExpressionErrors",value:function checkExpressionErrors(t,e){if(!t)return!1;var s=t.shorthandAssignLoc,i=t.doubleProtoLoc,r=t.privateKeyLoc,n=t.optionalParametersLoc;if(!e)return!!(s||i||n||r);null!=s&&this.raise(p.InvalidCoverInitializedName,{at:s}),null!=i&&this.raise(p.DuplicateProto,{at:i}),null!=r&&this.raise(p.UnexpectedPrivateField,{at:r}),null!=n&&this.unexpected(n)}},{key:"isLiteralPropertyName",value:function isLiteralPropertyName(){return Yt(this.state.type)}},{key:"isPrivateName",value:function isPrivateName(t){return"PrivateName"===t.type}},{key:"getPrivateNameSV",value:function getPrivateNameSV(t){return t.id.name}},{key:"hasPropertyAsPrivateName",value:function hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}},{key:"isObjectProperty",value:function isObjectProperty(t){return"ObjectProperty"===t.type}},{key:"isObjectMethod",value:function isObjectMethod(t){return"ObjectMethod"===t.type}},{key:"initializeScopes",value:function initializeScopes(){var _this9=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,e=this.state.labels;this.state.labels=[];var s=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var i=this.inModule;this.inModule=t;var r=this.scope,n=this.getScopeHandler();this.scope=new n(this,t);var o=this.prodParam;this.prodParam=new pt;var h=this.classScope;this.classScope=new lt(this);var l=this.expressionScope;return this.expressionScope=new ct(this),function(){_this9.state.labels=e,_this9.exportedIdentifiers=s,_this9.inModule=i,_this9.scope=r,_this9.prodParam=o,_this9.classScope=h,_this9.expressionScope=l}}},{key:"enterInitialScopes",value:function enterInitialScopes(){var t=te;this.inModule&&(t|=Re),this.scope.enter(1),this.prodParam.enter(t)}},{key:"checkDestructuringPrivate",value:function checkDestructuringPrivate(t){var e=t.privateKeyLoc;null!==e&&this.expectPlugin("destructuringPrivate",e)}}]),ut}(ot),se=_createClass((function se(){_classCallCheck(this,se),this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),ae=_createClass((function ae(t,e,s){_classCallCheck(this,ae),this.type="",this.start=e,this.end=0,this.loc=new ie(s),null!=t&&t.options.ranges&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)})),Nt=ae.prototype;function Xi(a){return V(a)}function V(a){var t=a.type,e=a.start,s=a.end,i=a.loc,r=a.range,n=a.extra,o=a.name,h=Object.create(Nt);return h.type=t,h.start=e,h.end=s,h.loc=i,h.range=r,h.extra=n,h.name=o,"Placeholder"===t&&(h.expectedNode=a.expectedNode),h}function Gi(a){var t=a.type,e=a.start,s=a.end,i=a.loc,r=a.range,n=a.extra;if("Placeholder"===t)return Xi(a);var o=Object.create(Nt);return o.type=t,o.start=e,o.end=s,o.loc=i,o.range=r,void 0!==a.raw?o.raw=a.raw:o.extra=n,o.value=a.value,o}Nt.__clone=function(){for(var a=new ae(void 0,this.start,this.loc.start),t=Object.keys(this),e=0,s=t.length;e1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;t.end=e.index,t.loc.end=e,this.options.ranges&&(t.range[1]=e.index)}},{key:"resetStartLocationFromNode",value:function resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}}]),dt}(ut),Yi=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),g=$`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:function(_ref54){return`Cannot overwrite reserved type ${_ref54.reservedType}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:function(_ref55){var a=_ref55.memberName;return`Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${_ref55.enumName}\`.`},EnumDuplicateMemberName:function(_ref56){return`Enum member names need to be unique, but the name \`${_ref56.memberName}\` has already been used before in enum \`${_ref56.enumName}\`.`},EnumInconsistentMemberValues:function(_ref57){return`Enum \`${_ref57.enumName}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:function(_ref58){return`Enum type \`${_ref58.invalidEnumType}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${_ref58.enumName}\`.`},EnumInvalidExplicitTypeUnknownSupplied:function(_ref59){return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${_ref59.enumName}\`.`},EnumInvalidMemberInitializerPrimaryType:function(_ref60){var a=_ref60.enumName,t=_ref60.memberName,e=_ref60.explicitType;return`Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`},EnumInvalidMemberInitializerSymbolType:function(_ref61){var a=_ref61.enumName;return`Symbol enum members cannot be initialized. Use \`${_ref61.memberName},\` in enum \`${a}\`.`},EnumInvalidMemberInitializerUnknownType:function(_ref62){var a=_ref62.enumName;return`The enum member initializer for \`${_ref62.memberName}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`},EnumInvalidMemberName:function(_ref63){var a=_ref63.enumName;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${_ref63.memberName}\`, consider using \`${_ref63.suggestion}\`, in enum \`${a}\`.`},EnumNumberMemberNotInitialized:function(_ref64){var a=_ref64.enumName;return`Number enum members need to be initialized, e.g. \`${_ref64.memberName} = 1\` in enum \`${a}\`.`},EnumStringMemberInconsistentlyInitialized:function(_ref65){return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${_ref65.enumName}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:function(_ref66){return`Unexpected reserved type ${_ref66.reservedType}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(_ref67){return`\`declare export ${_ref67.unsupportedExportKind}\` is not supported. Use \`${_ref67.suggestion}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Qi(a){return"DeclareExportAllDeclaration"===a.type||"DeclareExportDeclaration"===a.type&&(!a.declaration||"TypeAlias"!==a.declaration.type&&"InterfaceDeclaration"!==a.declaration.type)}function zt(a){return"type"===a.importKind||"typeof"===a.importKind}var Zi={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function er(a,t){for(var e=[],s=[],i=0;is.index+1&&this.raise(g.UnexpectedSpaceBetweenModuloChecks,{at:s}),this.eat(10)?(e.value=_get(_getPrototypeOf(_class2.prototype),"parseExpression",this).call(this),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function flowParseTypeAndPredicateInitialiser(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}},{key:"flowParseDeclareClass",value:function flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value:function flowParseDeclareFunction(e){var _this$flowParseTypeAn2;this.next();var s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),_this$flowParseTypeAn2=_slicedToArray(this.flowParseTypeAndPredicateInitialiser(),2),i.returnType=_this$flowParseTypeAn2[0],e.predicate=_this$flowParseTypeAn2[1],r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function flowParseDeclare(e,s){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(125)?this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(g.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(e)):this.isContextual(128)?this.flowParseDeclareTypeAlias(e):this.isContextual(129)?this.flowParseDeclareOpaqueType(e):this.isContextual(127)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,s):void this.unexpected()}},{key:"flowParseDeclareVariable",value:function flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function flowParseDeclareModule(e){var _this11=this;this.scope.enter(0),this.match(131)?e.id=_get(_getPrototypeOf(_class2.prototype),"parseExprAtom",this).call(this):e.id=this.parseIdentifier();var s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){var o=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(g.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),_get(_getPrototypeOf(_class2.prototype),"parseImport",this).call(this,o)):(this.expectContextual(123,g.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");var r=null,n=!1;return i.forEach((function(o){Qi(o)?("CommonJS"===r&&_this11.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="ES"):"DeclareModuleExports"===o.type&&(n&&_this11.raise(g.DuplicateDeclareModuleExports,{at:o}),"ES"===r&&_this11.raise(g.AmbiguousDeclareModuleKind,{at:o}),r="CommonJS",n=!0)})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!s){var i=this.state.value;throw this.raise(g.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:i,suggestion:Zi[i]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(129)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(109),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function flowParseDeclareTypeAlias(e){this.next();var s=this.flowParseTypeAlias(e);return s.type="DeclareTypeAlias",s}},{key:"flowParseDeclareOpaqueType",value:function flowParseDeclareOpaqueType(e){this.next();var s=this.flowParseOpaqueType(e,!0);return s.type="DeclareOpaqueType",s}},{key:"flowParseDeclareInterface",value:function flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(115))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(111))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function flowParseInterfaceExtends(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function checkNotUnderscore(e){"_"===e&&this.raise(g.UnexpectedReservedUnderscore,{at:this.state.startLoc})}},{key:"checkReservedType",value:function checkReservedType(e,s,i){Yi.has(e)&&this.raise(i?g.AssignReservedType:g.UnexpectedReservedType,{at:s,reservedType:e})}},{key:"flowParseRestrictedIdentifier",value:function flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function flowParseOpaqueType(e,s){return this.expectContextual(128),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function flowParseTypeParameter(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(g.MissingTypeParamDefault,{at:s}),this.finishNode(i,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function flowParseTypeParameterDeclaration(){var e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();var i=!1;do{var r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function flowParseTypeParameterInstantiation(){var e=this.startNode(),s=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function flowParseTypeParameterInstantiationCallOrNew(){var e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function flowParseInterfaceType(){var e=this.startNode();if(this.expectContextual(127),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?_get(_getPrototypeOf(_class2.prototype),"parseExprAtom",this).call(this):this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function flowParseObjectTypeIndexer(e,s,i){return e.static=s,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function flowParseObjectTypeCallProperty(e,s){var i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function flowParseObjectType(_ref68){var e=_ref68.allowStatic,s=_ref68.allowExact,i=_ref68.allowSpread,r=_ref68.allowProto,n=_ref68.allowInexact,o=this.state.inType;this.state.inType=!0;var h=this.startNode();h.callProperties=[],h.properties=[],h.indexers=[],h.internalSlots=[];var l,c,u=!1;for(s&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),h.exact=c;!this.match(l);){var d=!1,x=null,I=null,C=this.startNode();if(r&&this.isContextual(116)){var N=this.lookahead();14!==N.type&&17!==N.type&&(this.next(),x=this.state.startLoc,e=!1)}if(e&&this.isContextual(104)){var _N=this.lookahead();14!==_N.type&&17!==_N.type&&(this.next(),d=!0)}var E=this.flowParseVariance();if(this.eat(0))null!=x&&this.unexpected(x),this.eat(0)?(E&&this.unexpected(E.loc.start),h.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,d))):h.indexers.push(this.flowParseObjectTypeIndexer(C,d,E));else if(this.match(10)||this.match(47))null!=x&&this.unexpected(x),E&&this.unexpected(E.loc.start),h.callProperties.push(this.flowParseObjectTypeCallProperty(C,d));else{var _N2="init";(this.isContextual(98)||this.isContextual(103))&&Yt(this.lookahead().type)&&(_N2=this.state.value,this.next());var Ce=this.flowParseObjectTypeProperty(C,d,x,E,_N2,i,null!=n?n:!c);null===Ce?(u=!0,I=this.state.lastTokStartLoc):h.properties.push(Ce)}this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9)&&this.raise(g.UnexpectedExplicitInexactInObject,{at:I})}this.expect(l),i&&(h.inexact=u);var f=this.finishNode(h,"ObjectTypeAnnotation");return this.state.inType=o,f}},{key:"flowParseObjectTypeProperty",value:function flowParseObjectTypeProperty(e,s,i,r,n,o,h){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?h||this.raise(g.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(g.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),r&&this.raise(g.InexactVariance,{at:r}),null):(o||this.raise(g.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),null!=i&&this.unexpected(i),r&&this.raise(g.SpreadVariance,{at:r}),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=null!=i,e.kind=n;var l=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=i&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===n||"set"===n)&&this.flowCheckGetterSetterParams(e),!o&&"constructor"===e.key.name&&e.value.this&&this.raise(g.ThisParamBannedInConstructor,{at:e.value.this})):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(l=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=l,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function flowCheckGetterSetterParams(e){var s="get"===e.kind?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?g.GetterMayNotHaveThisParam:g.SetterMayNotHaveThisParam,{at:e.value.this}),i!==s&&this.raise("get"===e.kind?p.BadGetterArity:p.BadSetterArity,{at:e}),"set"===e.kind&&e.value.rest&&this.raise(p.BadSetterRestParameter,{at:e})}},{key:"flowObjectTypeSemicolon",value:function flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function flowParseQualifiedTypeIdentifier(e,s){null!=e||(e=this.state.startLoc);for(var r=s||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}},{key:"flowParseGenericType",value:function flowParseGenericType(e,s){var i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}},{key:"flowParseTypeofType",value:function flowParseTypeofType(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function flowParseTupleType(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],s=null,i=null;for(this.match(78)&&((i=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s=this.flowParseFunctionTypeParam(!1)),{params:e,rest:s,_this:i}}},{key:"flowIdentToTypeAnnotation",value:function flowIdentToTypeAnnotation(e,s,i){switch(i.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,i)}}},{key:"flowParsePrimaryType",value:function flowParsePrimaryType(){var i,r,e=this.state.startLoc,s=this.startNode(),n=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case 47:return s.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),s.params=i.params,s.rest=i.rest,s.this=i._this,this.expect(11),this.expect(19),s.returnType=this.flowParseType(),this.finishNode(s,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(S(this.state.type)||this.match(78)){var h=this.lookahead().type;n=17!==h&&14!==h}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return i=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),s.params=i.params,s.rest=i.rest,s.this=i._this,this.expect(11),this.expect(19),s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(g.UnexpectedSubtractionOperand,{at:this.state.startLoc})}return void this.unexpected();case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Ct(this.state.type)){var _h=q(this.state.type);return this.next(),_get(_getPrototypeOf(_class2.prototype),"createIdentifier",this).call(this,s,_h)}if(S(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,s,this.parseIdentifier())}this.unexpected()}},{key:"flowParsePostfixType",value:function flowParsePostfixType(){for(var e=this.state.startLoc,s=this.flowParsePrimaryType(),i=!1;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){var r=this.startNodeAt(e),n=this.eat(18);i=i||n,this.expect(0),!n&&this.match(3)?(r.elementType=s,this.next(),s=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=s,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=n,s=this.finishNode(r,"OptionalIndexedAccessType")):s=this.finishNode(r,"IndexedAccessType"))}return s}},{key:"flowParsePrefixType",value:function flowParsePrefixType(){var e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function flowParseAnonFunctionWithoutParens(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){var s=this.startNodeAt(e.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(e)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function flowParseIntersectionType(){var e=this.startNode();this.eat(45);var s=this.flowParseAnonFunctionWithoutParens();for(e.types=[s];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?s:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function flowParseUnionType(){var e=this.startNode();this.eat(43);var s=this.flowParseIntersectionType();for(e.types=[s];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?s:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function flowParseType(){var e=this.state.inType;this.state.inType=!0;var s=this.flowParseUnionType();return this.state.inType=e,s}},{key:"flowParseTypeOrImplicitInstantiation",value:function flowParseTypeOrImplicitInstantiation(){if(130===this.state.type&&"_"===this.state.value){var e=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(e,s)}return this.flowParseType()}},{key:"flowParseTypeAnnotation",value:function flowParseTypeAnnotation(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function flowParseTypeAnnotatableIdentifier(e){var s=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s)),s}},{key:"typeCastToParameter",value:function typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function flowParseVariance(){var e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}},{key:"parseFunctionBody",value:function parseFunctionBody(e,s){var _this12=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s?this.forwardNoArrowParamsConversionAt(e,(function(){return _get(_getPrototypeOf(_class2.prototype),"parseFunctionBody",_this12).call(_this12,e,!0,i)})):_get(_getPrototypeOf(_class2.prototype),"parseFunctionBody",this).call(this,e,!1,i)}},{key:"parseFunctionBodyAndFinish",value:function parseFunctionBodyAndFinish(e,s){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){var _this$flowParseTypeAn4,r=this.startNode();_this$flowParseTypeAn4=_slicedToArray(this.flowParseTypeAndPredicateInitialiser(),2),r.typeAnnotation=_this$flowParseTypeAn4[0],e.predicate=_this$flowParseTypeAn4[1],e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return _get(_getPrototypeOf(_class2.prototype),"parseFunctionBodyAndFinish",this).call(this,e,s,i)}},{key:"parseStatementLike",value:function parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(M(this.lookahead().type)){var r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.shouldParseEnums()&&this.isContextual(124)){var _i9=this.startNode();return this.next(),this.flowParseEnumDeclaration(_i9)}var s=_get(_getPrototypeOf(_class2.prototype),"parseStatementLike",this).call(this,e);return void 0===this.flowPragma&&!this.isValidDirective(s)&&(this.flowPragma=null),s}},{key:"parseExpressionStatement",value:function parseExpressionStatement(e,s,i){if("Identifier"===s.type)if("declare"===s.name){if(this.match(80)||S(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S(this.state.type)){if("interface"===s.name)return this.flowParseInterface(e);if("type"===s.name)return this.flowParseTypeAlias(e);if("opaque"===s.name)return this.flowParseOpaqueType(e,!1)}return _get(_getPrototypeOf(_class2.prototype),"parseExpressionStatement",this).call(this,e,s,i)}},{key:"shouldParseExportDeclaration",value:function shouldParseExportDeclaration(){var e=this.state.type;return Ut(e)||this.shouldParseEnums()&&124===e?!this.state.containsEsc:_get(_getPrototypeOf(_class2.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"isExportDefaultSpecifier",value:function isExportDefaultSpecifier(){var e=this.state.type;return Ut(e)||this.shouldParseEnums()&&124===e?this.state.containsEsc:_get(_getPrototypeOf(_class2.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseExportDefaultExpression",value:function parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return _get(_getPrototypeOf(_class2.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseConditional",value:function parseConditional(e,s,i){var _this13=this;if(!this.match(17))return e;if(this.state.maybeInArrowParameters){var f=this.lookaheadCharCode();if(44===f||61===f||58===f||41===f)return this.setOptionalParametersError(i),e}this.expect(17);var r=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(s),_this$tryParseConditi=this.tryParseConditionalConsequent(),h=_this$tryParseConditi.consequent,l=_this$tryParseConditi.failed,_this$getArrowLikeExp2=_slicedToArray(this.getArrowLikeExpressions(h),2),c=_this$getArrowLikeExp2[0],u=_this$getArrowLikeExp2[1];if(l||u.length>0){var _this$tryParseConditi3,_f=_toConsumableArray(n);if(u.length>0){var _this$tryParseConditi2,_this$getArrowLikeExp4;this.state=r,this.state.noArrowAt=_f;for(var d=0;d1&&this.raise(g.AmbiguousConditionalArrow,{at:r.startLoc}),l&&1===c.length&&(this.state=r,_f.push(c[0].start),this.state.noArrowAt=_f,h=(_this$tryParseConditi3=this.tryParseConditionalConsequent()).consequent,l=_this$tryParseConditi3.failed)}return this.getArrowLikeExpressions(h,!0),this.state.noArrowAt=n,this.expect(14),o.test=e,o.consequent=h,o.alternate=this.forwardNoArrowParamsConversionAt(o,(function(){return _this13.parseMaybeAssign(void 0,void 0)})),this.finishNode(o,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}},{key:"getArrowLikeExpressions",value:function getArrowLikeExpressions(e,s){for(var _this14=this,i=[e],r=[];0!==i.length;){var n=i.pop();"ArrowFunctionExpression"===n.type?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):r.push(n),i.push(n.body)):"ConditionalExpression"===n.type&&(i.push(n.consequent),i.push(n.alternate))}return s?(r.forEach((function(n){return _this14.finishArrowValidation(n)})),[r,[]]):er(r,(function(n){return n.params.every((function(o){return _this14.isAssignable(o,!0)}))}))}},{key:"finishArrowValidation",value:function finishArrowValidation(e){var s;this.toAssignableList(e.params,null==(s=e.extra)?void 0:s.trailingCommaLoc,!1),this.scope.enter(6),_get(_getPrototypeOf(_class2.prototype),"checkParams",this).call(this,e,!1,!0),this.scope.exit()}},{key:"forwardNoArrowParamsConversionAt",value:function forwardNoArrowParamsConversionAt(e,s){var i;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}},{key:"parseParenItem",value:function parseParenItem(e,s){if(e=_get(_getPrototypeOf(_class2.prototype),"parseParenItem",this).call(this,e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return e}},{key:"assertModuleNodeAllowed",value:function assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||_get(_getPrototypeOf(_class2.prototype),"assertModuleNodeAllowed",this).call(this,e)}},{key:"parseExportDeclaration",value:function parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type";var s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),_get(_getPrototypeOf(_class2.prototype),"parseExportFrom",this).call(this,e),null):this.flowParseTypeAlias(s)}if(this.isContextual(129)){e.exportKind="type";var _s3=this.startNode();return this.next(),this.flowParseOpaqueType(_s3,!1)}if(this.isContextual(127)){e.exportKind="type";var _s4=this.startNode();return this.next(),this.flowParseInterface(_s4)}if(this.shouldParseEnums()&&this.isContextual(124)){e.exportKind="value";var _s5=this.startNode();return this.next(),this.flowParseEnumDeclaration(_s5)}return _get(_getPrototypeOf(_class2.prototype),"parseExportDeclaration",this).call(this,e)}},{key:"eatExportStar",value:function eatExportStar(e){return!!_get(_getPrototypeOf(_class2.prototype),"eatExportStar",this).call(this,e)||!(!this.isContextual(128)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}},{key:"maybeParseExportNamespaceSpecifier",value:function maybeParseExportNamespaceSpecifier(e){var s=this.state.startLoc,i=_get(_getPrototypeOf(_class2.prototype),"maybeParseExportNamespaceSpecifier",this).call(this,e);return i&&"type"===e.exportKind&&this.unexpected(s),i}},{key:"parseClassId",value:function parseClassId(e,s,i){_get(_getPrototypeOf(_class2.prototype),"parseClassId",this).call(this,e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}},{key:"parseClassMember",value:function parseClassMember(e,s,i){var r=this.state.startLoc;if(this.isContextual(123)){if(_get(_getPrototypeOf(_class2.prototype),"parseClassMemberFromModifier",this).call(this,e,s))return;s.declare=!0}_get(_getPrototypeOf(_class2.prototype),"parseClassMember",this).call(this,e,s,i),s.declare&&("ClassProperty"!==s.type&&"ClassPrivateProperty"!==s.type&&"PropertyDefinition"!==s.type?this.raise(g.DeclareClassElement,{at:r}):s.value&&this.raise(g.DeclareClassFieldInitializer,{at:s.value}))}},{key:"isIterator",value:function isIterator(e){return"iterator"===e||"asyncIterator"===e}},{key:"readIterator",value:function readIterator(){var e=_get(_getPrototypeOf(_class2.prototype),"readWord1",this).call(this),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(p.InvalidIdentifier,{at:this.state.curPosition(),identifierName:s}),this.finishToken(130,s)}},{key:"getTokenFromCode",value:function getTokenFromCode(e){var s=this.input.charCodeAt(this.state.pos+1);123===e&&124===s?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===s?this.finishOp(18,2):this.finishOp(17,1):Fi(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):_get(_getPrototypeOf(_class2.prototype),"getTokenFromCode",this).call(this,e):this.finishOp(62===e?48:47,1)}},{key:"isAssignable",value:function isAssignable(e,s){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,s):_get(_getPrototypeOf(_class2.prototype),"isAssignable",this).call(this,e,s)}},{key:"toAssignable",value:function toAssignable(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!s&&"AssignmentExpression"===e.type&&"TypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left)),_get(_getPrototypeOf(_class2.prototype),"toAssignable",this).call(this,e,s)}},{key:"toAssignableList",value:function toAssignableList(e,s,i){for(var r=0;r1||!s)&&this.raise(g.TypeCastInPattern,{at:n.typeAnnotation})}return e}},{key:"parseArrayLike",value:function parseArrayLike(e,s,i,r){var n=_get(_getPrototypeOf(_class2.prototype),"parseArrayLike",this).call(this,e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}},{key:"isValidLVal",value:function isValidLVal(e,s,i){return"TypeCastExpression"===e||_get(_getPrototypeOf(_class2.prototype),"isValidLVal",this).call(this,e,s,i)}},{key:"parseClassProperty",value:function parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),_get(_getPrototypeOf(_class2.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),_get(_getPrototypeOf(_class2.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"isClassMethod",value:function isClassMethod(){return this.match(47)||_get(_getPrototypeOf(_class2.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function isClassProperty(){return this.match(14)||_get(_getPrototypeOf(_class2.prototype),"isClassProperty",this).call(this)}},{key:"isNonstaticConstructor",value:function isNonstaticConstructor(e){return!this.match(14)&&_get(_getPrototypeOf(_class2.prototype),"isNonstaticConstructor",this).call(this,e)}},{key:"pushClassMethod",value:function pushClassMethod(e,s,i,r,n,o){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),_get(_getPrototypeOf(_class2.prototype),"pushClassMethod",this).call(this,e,s,i,r,n,o),s.params&&n){var h=s.params;h.length>0&&this.isThisParam(h[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}else if("MethodDefinition"===s.type&&n&&s.value.params){var _h2=s.value.params;_h2.length>0&&this.isThisParam(_h2[0])&&this.raise(g.ThisParamBannedInConstructor,{at:s})}}},{key:"pushClassPrivateMethod",value:function pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),_get(_getPrototypeOf(_class2.prototype),"pushClassPrivateMethod",this).call(this,e,s,i,r)}},{key:"parseClassSuper",value:function parseClassSuper(e){if(_get(_getPrototypeOf(_class2.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();var s=e.implements=[];do{var i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}},{key:"checkGetterSetterParams",value:function checkGetterSetterParams(e){_get(_getPrototypeOf(_class2.prototype),"checkGetterSetterParams",this).call(this,e);var s=this.getObjectOrClassMethodParams(e);if(s.length>0){var i=s[0];this.isThisParam(i)&&"get"===e.kind?this.raise(g.GetterMayNotHaveThisParam,{at:i}):this.isThisParam(i)&&this.raise(g.SetterMayNotHaveThisParam,{at:i})}}},{key:"parsePropertyNamePrefixOperator",value:function parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}},{key:"parseObjPropValue",value:function parseObjPropValue(e,s,i,r,n,o,h){var l;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=_get(_getPrototypeOf(_class2.prototype),"parseObjPropValue",this).call(this,e,s,i,r,n,o,h);return l&&((c.value||c).typeParameters=l),c}},{key:"parseAssignableListItemTypes",value:function parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(g.PatternIsOptional,{at:e}),this.isThisParam(e)&&this.raise(g.ThisParamMayNotBeOptional,{at:e}),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(g.ThisParamAnnotationRequired,{at:e}),this.match(29)&&this.isThisParam(e)&&this.raise(g.ThisParamNoDefault,{at:e}),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function parseMaybeDefault(e,s){var i=_get(_getPrototypeOf(_class2.prototype),"parseMaybeDefault",this).call(this,e,s);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start3&&void 0!==arguments[3])||arguments[3];if(!i||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(var n=0;n0&&this.raise(g.ThisParamMustBeFirst,{at:e.params[n]});_get(_getPrototypeOf(_class2.prototype),"checkParams",this).call(this,e,s,i,r)}}},{key:"parseParenAndDistinguishExpression",value:function parseParenAndDistinguishExpression(e){return _get(_getPrototypeOf(_class2.prototype),"parseParenAndDistinguishExpression",this).call(this,e&&-1===this.state.noArrowAt.indexOf(this.state.start))}},{key:"parseSubscripts",value:function parseSubscripts(e,s,i){var _this17=this;if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(s.index)){this.next();var r=this.startNodeAt(s);r.callee=e,r.arguments=_get(_getPrototypeOf(_class2.prototype),"parseCallExpressionArguments",this).call(this,11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){var _r4=this.state.clone(),n=this.tryParse((function(h){return _this17.parseAsyncArrowWithTypeParameters(s)||h()}),_r4);if(!n.error&&!n.aborted)return n.node;var o=this.tryParse((function(){return _get(_getPrototypeOf(_class2.prototype),"parseSubscripts",_this17).call(_this17,e,s,i)}),_r4);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return _get(_getPrototypeOf(_class2.prototype),"parseSubscripts",this).call(this,e,s,i)}},{key:"parseSubscript",value:function parseSubscript(e,s,i,r){var _this18=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();var n=this.startNodeAt(s);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!i&&this.shouldParseTypes()&&this.match(47)){var _n=this.startNodeAt(s);_n.callee=e;var o=this.tryParse((function(){return _n.typeArguments=_this18.flowParseTypeParameterInstantiationCallOrNew(),_this18.expect(10),_n.arguments=_get(_getPrototypeOf(_class2.prototype),"parseCallExpressionArguments",_this18).call(_this18,11,!1),r.optionalChainMember&&(_n.optional=!1),_this18.finishCallExpression(_n,r.optionalChainMember)}));if(o.node)return o.error&&(this.state=o.failState),o.node}return _get(_getPrototypeOf(_class2.prototype),"parseSubscript",this).call(this,e,s,i,r)}},{key:"parseNewCallee",value:function parseNewCallee(e){var _this19=this;_get(_getPrototypeOf(_class2.prototype),"parseNewCallee",this).call(this,e);var s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse((function(){return _this19.flowParseTypeParameterInstantiationCallOrNew()})).node),e.typeArguments=s}},{key:"parseAsyncArrowWithTypeParameters",value:function parseAsyncArrowWithTypeParameters(e){var s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),this.parseArrow(s))return _get(_getPrototypeOf(_class2.prototype),"parseArrowExpression",this).call(this,s,void 0,!0)}},{key:"readToken_mult_modulo",value:function readToken_mult_modulo(e){var s=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===s&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();_get(_getPrototypeOf(_class2.prototype),"readToken_mult_modulo",this).call(this,e)}},{key:"readToken_pipe_amp",value:function readToken_pipe_amp(e){var s=this.input.charCodeAt(this.state.pos+1);124!==e||125!==s?_get(_getPrototypeOf(_class2.prototype),"readToken_pipe_amp",this).call(this,e):this.finishOp(9,2)}},{key:"parseTopLevel",value:function parseTopLevel(e,s){var i=_get(_getPrototypeOf(_class2.prototype),"parseTopLevel",this).call(this,e,s);return this.state.hasFlowComment&&this.raise(g.UnterminatedFlowComment,{at:this.state.curPosition()}),i}},{key:"skipBlockComment",value:function skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return _get(_getPrototypeOf(_class2.prototype),"skipBlockComment",this).call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(g.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();var e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}},{key:"skipFlowComment",value:function skipFlowComment(){for(var e=this.state.pos,s=2;[32,9].includes(this.input.charCodeAt(e+s));)s++;var i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return 58===i&&58===r?s+2:"flow-include"===this.input.slice(s+e,s+e+12)?s+12:58===i&&58!==r&&s}},{key:"hasFlowCommentCompletion",value:function hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(p.UnterminatedComment,{at:this.state.curPosition()})}},{key:"flowEnumErrorBooleanMemberNotInitialized",value:function flowEnumErrorBooleanMemberNotInitialized(e,_ref69){var s=_ref69.enumName,i=_ref69.memberName;this.raise(g.EnumBooleanMemberNotInitialized,{at:e,memberName:i,enumName:s})}},{key:"flowEnumErrorInvalidMemberInitializer",value:function flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?"symbol"===s.explicitType?g.EnumInvalidMemberInitializerSymbolType:g.EnumInvalidMemberInitializerPrimaryType:g.EnumInvalidMemberInitializerUnknownType,Object.assign({at:e},s))}},{key:"flowEnumErrorNumberMemberNotInitialized",value:function flowEnumErrorNumberMemberNotInitialized(e,_ref70){var s=_ref70.enumName,i=_ref70.memberName;this.raise(g.EnumNumberMemberNotInitialized,{at:e,enumName:s,memberName:i})}},{key:"flowEnumErrorStringMemberInconsistentlyInitialized",value:function flowEnumErrorStringMemberInconsistentlyInitialized(e,_ref71){var s=_ref71.enumName;this.raise(g.EnumStringMemberInconsistentlyInitialized,{at:e,enumName:s})}},{key:"flowEnumMemberInit",value:function flowEnumMemberInit(){var _this20=this,e=this.state.startLoc,s=function(){return _this20.match(12)||_this20.match(8)};switch(this.state.type){case 132:var i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e};case 131:var _i10=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:_i10.loc.start,value:_i10}:{type:"invalid",loc:e};case 85:case 86:var _i11=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:_i11.loc.start,value:_i11}:{type:"invalid",loc:e};default:return{type:"invalid",loc:e}}}},{key:"flowEnumMemberRaw",value:function flowEnumMemberRaw(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}},{key:"flowEnumCheckExplicitTypeMismatch",value:function flowEnumCheckExplicitTypeMismatch(e,s,i){var r=s.explicitType;null!==r&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}},{key:"flowEnumMembers",value:function flowEnumMembers(_ref72){for(var e=_ref72.enumName,s=_ref72.explicitType,i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;!this.match(8);){if(this.eat(21)){n=!0;break}var o=this.startNode(),_this$flowEnumMemberR=this.flowEnumMemberRaw(),h=_this$flowEnumMemberR.id,l=_this$flowEnumMemberR.init,c=h.name;if(""!==c){/^[a-z]/.test(c)&&this.raise(g.EnumInvalidMemberName,{at:h,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),i.has(c)&&this.raise(g.EnumDuplicateMemberName,{at:h,memberName:c,enumName:e}),i.add(c);var u={enumName:e,explicitType:s,memberName:c};switch(o.id=h,l.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"boolean"),o.init=l.value,r.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"number"),o.init=l.value,r.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(l.loc,u,"string"),o.init=l.value,r.stringMembers.push(this.finishNode(o,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,u);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,u);break;default:r.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:r,hasUnknownMembers:n}}},{key:"flowEnumStringMembers",value:function flowEnumStringMembers(e,s,_ref73){var i=_ref73.enumName;if(0===e.length)return s;if(0===s.length)return e;if(s.length>e.length){var _step3,_iterator3=_createForOfIteratorHelper(e);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var r=_step3.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i})}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return s}var _step4,_iterator4=_createForOfIteratorHelper(s);try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _r5=_step4.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(_r5,{enumName:i})}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return e}},{key:"flowEnumParseExplicitType",value:function flowEnumParseExplicitType(_ref74){var e=_ref74.enumName;if(!this.eatContextual(101))return null;if(!S(this.state.type))throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:e});var s=this.state.value;return this.next(),"boolean"!==s&&"number"!==s&&"string"!==s&&"symbol"!==s&&this.raise(g.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:e,invalidEnumType:s}),s}},{key:"flowEnumBody",value:function flowEnumBody(e,s){var _this21=this,i=s.name,r=s.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);var _this$flowEnumMembers=this.flowEnumMembers({enumName:i,explicitType:n}),o=_this$flowEnumMembers.members,h=_this$flowEnumMembers.hasUnknownMembers;switch(e.hasUnknownMembers=h,n){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:var l=function(){return e.members=[],_this21.expect(8),_this21.finishNode(e,"EnumStringBody")};e.explicitType=!1;var c=o.booleanMembers.length,u=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(!(c||u||f||d))return l();if(!c&&!u)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!u&&!f&&c>=d){var _step5,_iterator5=_createForOfIteratorHelper(o.defaultedMembers);try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var x=_step5.value;this.flowEnumErrorBooleanMemberNotInitialized(x.loc.start,{enumName:i,memberName:x.id.name})}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!c&&!f&&u>=d){var _step6,_iterator6=_createForOfIteratorHelper(o.defaultedMembers);try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _x=_step6.value;this.flowEnumErrorNumberMemberNotInitialized(_x.loc.start,{enumName:i,memberName:_x.id.name})}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(g.EnumInconsistentMemberValues,{at:r,enumName:i}),l()}}},{key:"flowParseEnumDeclaration",value:function flowParseEnumDeclaration(e){var s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}},{key:"isLookaheadToken_lt",value:function isLookaheadToken_lt(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var s=this.input.charCodeAt(e+1);return 60!==s&&61!==s}return!1}},{key:"maybeUnwrapTypeCastExpression",value:function maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}}]),_class2}(a)},W=$`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(_ref75){return`Expected corresponding JSX closing tag for <${_ref75.openingTagName}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(_ref76){var a=_ref76.unexpected;return`Unexpected token \`${a}\`. Did you mean \`${_ref76.HTMLEntity}\` or \`{'${a}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function K(a){return!!a&&("JSXOpeningFragment"===a.type||"JSXClosingFragment"===a.type)}function Z(a){if("JSXIdentifier"===a.type)return a.name;if("JSXNamespacedName"===a.type)return a.namespace.name+":"+a.name.name;if("JSXMemberExpression"===a.type)return Z(a.object)+"."+Z(a.property);throw new Error("Node had unexpected type: "+a.type)}var ir=function(a){return function(_a3){_inherits(_class3,_a3);var _super10=_createSuper(_class3);function _class3(){return _classCallCheck(this,_class3),_super10.apply(this,arguments)}return _createClass(_class3,[{key:"jsxReadToken",value:function jsxReadToken(){for(var e="",s=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(W.UnterminatedJsxContent,{at:this.state.startLoc});var i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:return this.state.pos===this.state.start?void(60===i&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):_get(_getPrototypeOf(_class3.prototype),"getTokenFromCode",this).call(this,i)):(e+=this.input.slice(s,this.state.pos),void this.finishToken(139,e));case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;default:xe(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function jsxReadNewLine(e){var i,s=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===s&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,i=e?"\n":"\r\n"):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}},{key:"jsxReadString",value:function jsxReadString(e){for(var s="",i=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,{at:this.state.startLoc});var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):xe(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(131,s)}},{key:"jsxReadEntity",value:function jsxReadEntity(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var s=10;120===this.codePointAtPos(this.state.pos)&&(s=16,++this.state.pos);var i=this.readInt(s,void 0,!1,"bail");if(null!==i&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(i)}else{for(var _s6=0,_i12=!1;_s6++<10&&this.state.pos1)for(var i=0;i=0;i--){var r=this.scopeStack[i];if(r.types.has(e)||r.exportOnlyBindings.has(e))return}_get(_getPrototypeOf(mt.prototype),"checkLocalExport",this).call(this,t)}}}]),mt}(ge),rr=function(a,t){return Object.hasOwnProperty.call(a,t)&&a[t]},ps=function(a){return"ParenthesizedExpression"===a.type?ps(a.expression):a},yt=function(_dt){_inherits(yt,_dt);var _super13=_createSuper(yt);function yt(){return _classCallCheck(this,yt),_super13.apply(this,arguments)}return _createClass(yt,[{key:"toAssignable",value:function toAssignable(t){var s,i,r,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(("ParenthesizedExpression"===t.type||null!=(s=t.extra)&&s.parenthesized)&&(r=ps(t),e?"Identifier"===r.type?this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,{at:t}):"MemberExpression"!==r.type&&this.raise(p.InvalidParenthesizedAssignment,{at:t}):this.raise(p.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(var o=0,h=t.properties.length,l=h-1;o2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(s?is(t.name,this.inModule):ss(t.name))&&(64===e?this.raise(p.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(p.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(p.LetInLexicalBinding,{at:t}),64&e||this.declareNameFromIdentifier(t,e)}},{key:"declareNameFromIdentifier",value:function declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}},{key:"checkToRestConversion",value:function checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(p.InvalidRestAssignmentPattern,{at:t})}}},{key:"checkCommaAfterRest",value:function checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?p.RestTrailingComma:p.ElementAfterRest,{at:this.state.startLoc}),!0)}}]),yt}(dt),ar=function(a,t){return Object.hasOwnProperty.call(a,t)&&a[t]};function nr(a){if(null==a)throw new Error(`Unexpected ${a} value.`);return a}function Kt(a){if(!a)throw new Error("Assert fail")}var y=$`typescript`({AbstractMethodHasImplementation:function(_ref80){return`Method '${_ref80.methodName}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:function(_ref81){return`Property '${_ref81.propertyName}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(_ref82){return`'declare' is not allowed in ${_ref82.kind}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(_ref83){return _ref83.modifier,"Accessibility modifier already seen."},DuplicateModifier:function(_ref84){return`Duplicate modifier: '${_ref84.modifier}'.`},EmptyHeritageClauseType:function(_ref85){return`'${_ref85.token}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:function(_ref86){var a=_ref86.modifiers;return`'${a[0]}' modifier cannot be used with '${a[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(_ref87){return`Index signatures cannot have an accessibility modifier ('${_ref87.modifier}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(_ref88){return`'${_ref88.modifier}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:function(_ref89){return`'${_ref89.modifier}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:function(_ref90){return`'${_ref90.modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:function(_ref91){var a=_ref91.orderedModifiers;return`'${a[0]}' modifier must precede '${a[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(_ref92){return`Private elements cannot have an accessibility modifier ('${_ref92.modifier}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(_ref93){var a=_ref93.typeParameterName;return`Single type parameter ${a} should have a trailing comma. Example usage: <${a},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(_ref94){return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${_ref94.type}.`}});function or(a){switch(a){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function qt(a){return"private"===a||"public"===a||"protected"===a}function hr(a){return"in"===a||"out"===a}var lr=function(a){return function(_a4){_inherits(_class4,_a4);var _super14=_createSuper(_class4);function _class4(){var _this25;_classCallCheck(this,_class4);for(var _len7=arguments.length,e=new Array(_len7),_key7=0;_key7<_len7;_key7++)e[_key7]=arguments[_key7];return(_this25=_super14.call.apply(_super14,[this].concat(e))).tsParseInOutModifiers=_this25.tsParseModifiers.bind(_assertThisInitialized(_this25),{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),_this25.tsParseConstModifier=_this25.tsParseModifiers.bind(_assertThisInitialized(_this25),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:y.InvalidModifierOnTypeParameterPositions}),_this25.tsParseInOutConstModifiers=_this25.tsParseModifiers.bind(_assertThisInitialized(_this25),{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:y.InvalidModifierOnTypeParameter}),_this25}return _createClass(_class4,[{key:"getScopeHandler",value:function getScopeHandler(){return mt}},{key:"tsIsIdentifier",value:function tsIsIdentifier(){return S(this.state.type)}},{key:"tsTokenCanFollowModifier",value:function tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}},{key:"tsNextTokenCanFollowModifier",value:function tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}},{key:"tsParseModifier",value:function tsParseModifier(e,s){if(S(this.state.type)||58===this.state.type||75===this.state.type){var i=this.state.value;if(-1!==e.indexOf(i)){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}}},{key:"tsParseModifiers",value:function tsParseModifiers(_ref95,n){for(var _this26=this,e=_ref95.allowedModifiers,s=_ref95.disallowedModifiers,i=_ref95.stopOnStartOfClassStaticBlock,_ref95$errorTemplate=_ref95.errorTemplate,r=void 0===_ref95$errorTemplate?y.InvalidModifierOnTypeMember:_ref95$errorTemplate,o=function(l,c,u,f){c===u&&n[f]&&_this26.raise(y.InvalidModifiersOrder,{at:l,orderedModifiers:[u,f]})},h=function(l,c,u,f){(n[u]&&c===f||n[f]&&c===u)&&_this26.raise(y.IncompatibleModifiers,{at:l,modifiers:[u,f]})};;){var l=this.state.startLoc,c=this.tsParseModifier(e.concat(null!=s?s:[]),i);if(!c)break;qt(c)?n.accessibility?this.raise(y.DuplicateAccessibilityModifier,{at:l,modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),n.accessibility=c):hr(c)?(n[c]&&this.raise(y.DuplicateModifier,{at:l,modifier:c}),n[c]=!0,o(l,c,"in","out")):(Object.hasOwnProperty.call(n,c)?this.raise(y.DuplicateModifier,{at:l,modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),h(l,c,"declare","override"),h(l,c,"static","abstract")),n[c]=!0),null!=s&&s.includes(c)&&this.raise(r,{at:l,modifier:c})}}},{key:"tsIsListTerminator",value:function tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}},{key:"tsParseList",value:function tsParseList(e,s){for(var i=[];!this.tsIsListTerminator(e);)i.push(s());return i}},{key:"tsParseDelimitedList",value:function tsParseDelimitedList(e,s,i){return nr(this.tsParseDelimitedListWorker(e,s,!0,i))}},{key:"tsParseDelimitedListWorker",value:function tsParseDelimitedListWorker(e,s,i,r){for(var n=[],o=-1;!this.tsIsListTerminator(e);){o=-1;var h=s();if(null==h)return;if(n.push(h),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(i&&this.expect(12))}o=this.state.lastTokStart}return r&&(r.value=o),n}},{key:"tsParseBracketedList",value:function tsParseBracketedList(e,s,i,r,n){r||(i?this.expect(0):this.expect(47));var o=this.tsParseDelimitedList(e,s,n);return i?this.expect(3):this.expect(48),o}},{key:"tsParseImportType",value:function tsParseImportType(){var e=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise(y.UnsupportedImportTypeArgument,{at:this.state.startLoc}),e.argument=_get(_getPrototypeOf(_class4.prototype),"parseExprAtom",this).call(this),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function tsParseEntityName(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=this.parseIdentifier(e);this.eat(16);){var i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(e),s=this.finishNode(i,"TSQualifiedName")}return s}},{key:"tsParseTypeReference",value:function tsParseTypeReference(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function tsParseThisTypePredicate(e){this.next();var s=this.startNodeAtNode(e);return s.parameterName=e,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function tsParseThisTypeNode(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function tsParseTypeQuery(){var e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function tsParseTypeParameter(e){var s=this.startNode();return e(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}},{key:"tsParseTypeParameters",value:function tsParseTypeParameters(e){var s=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();var i={value:-1};return s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),0===s.params.length&&this.raise(y.EmptyTypeParameters,{at:s}),-1!==i.value&&this.addExtra(s,"trailingComma",i.value),this.finishNode(s,"TSTypeParameterDeclaration")}},{key:"tsFillSignature",value:function tsFillSignature(e,s){var i=19===e,r="parameters",n="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s[r]=this.tsParseBindingListForSignature(),(i||this.match(e))&&(s[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function tsParseBindingListForSignature(){var _step9,e=_get(_getPrototypeOf(_class4.prototype),"parseBindingList",this).call(this,11,41,2),_iterator9=_createForOfIteratorHelper(e);try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var s=_step9.value,i=s.type;("AssignmentPattern"===i||"TSParameterProperty"===i)&&this.raise(y.UnsupportedSignatureParameterKind,{at:s,type:i})}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}return e}},{key:"tsParseTypeMemberSemicolon",value:function tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}},{key:"tsParseSignatureMember",value:function tsParseSignatureMember(e,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function tsIsUnambiguouslyIndexSignature(){return this.next(),!!S(this.state.type)&&(this.next(),this.match(14))}},{key:"tsTryParseIndexSignature",value:function tsTryParseIndexSignature(e){if(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(0);var s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),e.parameters=[s];var i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function tsParsePropertyOrMethodSignature(e,s){this.eat(17)&&(e.optional=!0);var i=e;if(this.match(10)||this.match(47)){s&&this.raise(y.ReadonlyForMethodSignature,{at:e});var r=i;r.kind&&this.match(47)&&this.raise(y.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();var n="parameters",o="typeAnnotation";if("get"===r.kind)r[n].length>0&&(this.raise(p.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(r[n][0])&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if("set"===r.kind){if(1!==r[n].length)this.raise(p.BadSetterArity,{at:this.state.curPosition()});else{var h=r[n][0];this.isThisParam(h)&&this.raise(y.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),"Identifier"===h.type&&h.optional&&this.raise(y.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),"RestElement"===h.type&&this.raise(y.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}r[o]&&this.raise(y.SetAccesorCannotHaveReturnType,{at:r[o]})}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}var _r6=i;s&&(_r6.readonly=!0);var _n2=this.tsTryParseTypeAnnotation();return _n2&&(_r6.typeAnnotation=_n2),this.tsParseTypeMemberSemicolon(),this.finishNode(_r6,"TSPropertySignature")}},{key:"tsParseTypeMember",value:function tsParseTypeMember(){var e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){var i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(_get(_getPrototypeOf(_class4.prototype),"parsePropertyName",this).call(this,e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,_get(_getPrototypeOf(_class4.prototype),"parsePropertyName",this).call(this,e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}},{key:"tsParseTypeLiteral",value:function tsParseTypeLiteral(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function tsParseObjectTypeMembers(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}},{key:"tsIsStartOfMappedType",value:function tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!(!this.match(0)||(this.next(),!this.tsIsIdentifier()))&&(this.next(),this.match(58)))}},{key:"tsParseMappedTypeParameter",value:function tsParseMappedTypeParameter(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}},{key:"tsParseMappedType",value:function tsParseMappedType(){var e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function tsParseTupleType(){var _this27=this,e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var s=!1,i=null;return e.elementTypes.forEach((function(r){var o=r.type;s&&"TSRestType"!==o&&"TSOptionalType"!==o&&!("TSNamedTupleMember"===o&&r.optional)&&_this27.raise(y.OptionalTypeBeforeRequired,{at:r}),s||(s="TSNamedTupleMember"===o&&r.optional||"TSOptionalType"===o);var h=o;"TSRestType"===o&&(h=(r=r.typeAnnotation).type);var l="TSNamedTupleMember"===h;null!=i||(i=l),i!==l&&_this27.raise(y.MixedLabeledAndUnlabeledElements,{at:r})})),this.finishNode(e,"TSTupleType")}},{key:"tsParseTupleElementType",value:function tsParseTupleElementType(){var i,r,n,o,_c2,e=this.state.startLoc,s=this.eat(21),l=M(this.state.type)?this.lookaheadCharCode():null;if(58===l)i=!0,n=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===l){n=!0;var c=this.state.startLoc,u=this.state.value,f=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(i=!0,r=this.createIdentifier(this.startNodeAt(c),u),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=f,this.expect(17))}else o=this.tsParseType(),n=this.eat(17),i=this.eat(14);if(i)r?((_c2=this.startNodeAtNode(r)).optional=n,_c2.label=r,_c2.elementType=o,this.eat(17)&&(_c2.optional=!0,this.raise(y.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):((_c2=this.startNodeAtNode(o)).optional=n,this.raise(y.InvalidTupleMemberLabel,{at:o}),_c2.label=o,_c2.elementType=this.tsParseType()),o=this.finishNode(_c2,"TSNamedTupleMember");else if(n){var _c3=this.startNodeAtNode(o);_c3.typeAnnotation=o,o=this.finishNode(_c3,"TSOptionalType")}if(s){var _c4=this.startNodeAt(e);_c4.typeAnnotation=o,o=this.finishNode(_c4,"TSRestType")}return o}},{key:"tsParseParenthesizedType",value:function tsParseParenthesizedType(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function tsParseFunctionOrConstructorType(e,s){var _this28=this,i=this.startNode();return"TSConstructorType"===e&&(i.abstract=!!s,s&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return _this28.tsFillSignature(19,i)})),this.finishNode(i,e)}},{key:"tsParseLiteralTypeNode",value:function tsParseLiteralTypeNode(){var e=this.startNode();switch(this.state.type){case 132:case 133:case 131:case 85:case 86:e.literal=_get(_getPrototypeOf(_class4.prototype),"parseExprAtom",this).call(this);break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function tsParseTemplateLiteralType(){var e=this.startNode();return e.literal=_get(_getPrototypeOf(_class4.prototype),"parseTemplate",this).call(this,!1),this.finishNode(e,"TSLiteralType")}},{key:"parseTemplateSubstitution",value:function parseTemplateSubstitution(){return this.state.inType?this.tsParseType():_get(_getPrototypeOf(_class4.prototype),"parseTemplateSubstitution",this).call(this)}},{key:"tsParseThisTypeOrThisTypePredicate",value:function tsParseThisTypeOrThisTypePredicate(){var e=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}},{key:"tsParseNonArrayType",value:function tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),s=this.lookahead();return 132!==s.type&&133!==s.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var _e2=this.state.type;if(S(_e2)||88===_e2||84===_e2){var _s7=88===_e2?"TSVoidKeyword":84===_e2?"TSNullKeyword":or(this.state.value);if(void 0!==_s7&&46!==this.lookaheadCharCode()){var i=this.startNode();return this.next(),this.finishNode(i,_s7)}return this.tsParseTypeReference()}}this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function tsParseArrayTypeOrHigher(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var s=this.startNodeAtNode(e);s.elementType=e,this.expect(3),e=this.finishNode(s,"TSArrayType")}else{var _s8=this.startNodeAtNode(e);_s8.objectType=e,_s8.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(_s8,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function tsParseTypeOperator(){var e=this.startNode(),s=this.state.value;return this.next(),e.operator=s,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===s&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(y.UnexpectedReadonly,{at:e})}}},{key:"tsParseInferType",value:function tsParseInferType(){var _this29=this,e=this.startNode();this.expectContextual(113);var s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse((function(){return _this29.tsParseConstraintForInferType()})),e.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(e,"TSInferType")}},{key:"tsParseConstraintForInferType",value:function tsParseConstraintForInferType(){var _this30=this;if(this.eat(81)){var e=this.tsInDisallowConditionalTypesContext((function(){return _this30.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}},{key:"tsParseTypeOperatorOrHigher",value:function tsParseTypeOperatorOrHigher(){var _this31=this;return Ci(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return _this31.tsParseArrayTypeOrHigher()}))}},{key:"tsParseUnionOrIntersectionType",value:function tsParseUnionOrIntersectionType(e,s,i){var r=this.startNode(),n=this.eat(i),o=[];do{o.push(s())}while(this.eat(i));return 1!==o.length||n?(r.types=o,this.finishNode(r,e)):o[0]}},{key:"tsParseIntersectionTypeOrHigher",value:function tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}},{key:"tsParseUnionTypeOrHigher",value:function tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}},{key:"tsIsStartOfFunctionType",value:function tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function tsSkipParameterStart(){if(S(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var e=this.state.errors,s=e.length;try{return this.parseObjectLike(8,!0),e.length===s}catch{return!1}}if(this.match(0)){this.next();var _e3=this.state.errors,_s9=_e3.length;try{return _get(_getPrototypeOf(_class4.prototype),"parseBindingList",this).call(this,3,93,1),_e3.length===_s9}catch{return!1}}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function tsParseTypeOrTypePredicateAnnotation(e){var _this32=this;return this.tsInType((function(){var s=_this32.startNode();_this32.expect(e);var i=_this32.startNode(),r=!!_this32.tsTryParse(_this32.tsParseTypePredicateAsserts.bind(_this32));if(r&&_this32.match(78)){var h=_this32.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===h.type?(i.parameterName=h,i.asserts=!0,i.typeAnnotation=null,h=_this32.finishNode(i,"TSTypePredicate")):(_this32.resetStartLocationFromNode(h,i),h.asserts=!0),s.typeAnnotation=h,_this32.finishNode(s,"TSTypeAnnotation")}var n=_this32.tsIsIdentifier()&&_this32.tsTryParse(_this32.tsParseTypePredicatePrefix.bind(_this32));if(!n)return r?(i.parameterName=_this32.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,s.typeAnnotation=_this32.finishNode(i,"TSTypePredicate"),_this32.finishNode(s,"TSTypeAnnotation")):_this32.tsParseTypeAnnotation(!1,s);var o=_this32.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=o,i.asserts=r,s.typeAnnotation=_this32.finishNode(i,"TSTypePredicate"),_this32.finishNode(s,"TSTypeAnnotation")}))}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}},{key:"tsTryParseTypeAnnotation",value:function tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}},{key:"tsTryParseType",value:function tsTryParseType(){return this.tsEatThenParseType(14)}},{key:"tsParseTypePredicatePrefix",value:function tsParseTypePredicatePrefix(){var e=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!S(this.state.type)&&!this.match(78)||(e&&this.raise(p.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),0))}},{key:"tsParseTypeAnnotation",value:function tsParseTypeAnnotation(){var _this33=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((function(){e&&_this33.expect(14),s.typeAnnotation=_this33.tsParseType()})),this.finishNode(s,"TSTypeAnnotation")}},{key:"tsParseType",value:function tsParseType(){var _this34=this;Kt(this.state.inType);var e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;var s=this.startNodeAtNode(e);return s.checkType=e,s.extendsType=this.tsInDisallowConditionalTypesContext((function(){return _this34.tsParseNonConditionalType()})),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext((function(){return _this34.tsParseType()})),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext((function(){return _this34.tsParseType()})),this.finishNode(s,"TSConditionalType")}},{key:"isAbstractConstructorSignature",value:function isAbstractConstructorSignature(){return this.isContextual(122)&&77===this.lookahead().type}},{key:"tsParseNonConditionalType",value:function tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function tsParseTypeAssertion(){var _this35=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedTypeAssertion,{at:this.state.startLoc});var e=this.startNode();return e.typeAnnotation=this.tsInType((function(){return _this35.next(),_this35.match(75)?_this35.tsParseTypeReference():_this35.tsParseType()})),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function tsParseHeritageClause(e){var _this36=this,s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",(function(){var r=_this36.startNode();return r.expression=_this36.tsParseEntityName(),_this36.match(47)&&(r.typeParameters=_this36.tsParseTypeArguments()),_this36.finishNode(r,"TSExpressionWithTypeArguments")}));return i.length||this.raise(y.EmptyHeritageClauseType,{at:s,token:e}),i}},{key:"tsParseInterfaceDeclaration",value:function tsParseInterfaceDeclaration(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),s.declare&&(e.declare=!0),S(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(y.MissingInterfaceName,{at:this.state.startLoc})),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function tsParseTypeAliasDeclaration(e){var _this37=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=_this37.tsTryParseTypeParameters(_this37.tsParseInOutModifiers),_this37.expect(29),_this37.isContextual(112)&&16!==_this37.lookahead().type){var s=_this37.startNode();return _this37.next(),_this37.finishNode(s,"TSIntrinsicKeyword")}return _this37.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function tsInNoContext(e){var s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}},{key:"tsInType",value:function tsInType(e){var s=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=s}}},{key:"tsInDisallowConditionalTypesContext",value:function tsInDisallowConditionalTypesContext(e){var s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}},{key:"tsInAllowConditionalTypesContext",value:function tsInAllowConditionalTypesContext(e){var s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=s}}},{key:"tsEatThenParseType",value:function tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}},{key:"tsExpectThenParseType",value:function tsExpectThenParseType(e){var _this38=this;return this.tsInType((function(){return _this38.expect(e),_this38.tsParseType()}))}},{key:"tsNextThenParseType",value:function tsNextThenParseType(){var _this39=this;return this.tsInType((function(){return _this39.next(),_this39.tsParseType()}))}},{key:"tsParseEnumMember",value:function tsParseEnumMember(){var e=this.startNode();return e.id=this.match(131)?_get(_getPrototypeOf(_class4.prototype),"parseStringLiteral",this).call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=_get(_getPrototypeOf(_class4.prototype),"parseMaybeAssignAllowIn",this).call(this)),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function tsParseEnumDeclaration(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.const&&(e.const=!0),s.declare&&(e.declare=!0),this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function tsParseModuleBlock(){var e=this.startNode();return this.scope.enter(0),this.expect(5),_get(_getPrototypeOf(_class4.prototype),"parseBlockOrModuleBlockBody",this).call(this,e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function tsParseModuleOrNamespaceDeclaration(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),s||this.checkIdentifier(e.id,1024),this.eat(16)){var i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),e.body=i}else this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)?(e.global=!0,e.id=this.parseIdentifier()):this.match(131)?e.id=_get(_getPrototypeOf(_class4.prototype),"parseStringLiteral",this).call(this,this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(te),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function tsParseImportEqualsDeclaration(e,s,i){e.isExport=i||!1,e.id=s||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);var r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(y.ImportAliasHasImportType,{at:r}),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function tsParseExternalModuleReference(){var e=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),e.expression=_get(_getPrototypeOf(_class4.prototype),"parseExprAtom",this).call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function tsLookAhead(e){var s=this.state.clone(),i=e();return this.state=s,i}},{key:"tsTryParseAndCatch",value:function tsTryParseAndCatch(e){var s=this.tryParse((function(i){return e()||i()}));if(!s.aborted&&s.node)return s.error&&(this.state=s.failState),s.node}},{key:"tsTryParse",value:function tsTryParse(e){var s=this.state.clone(),i=e();if(void 0!==i&&!1!==i)return i;this.state=s}},{key:"tsTryParseDeclare",value:function tsTryParseDeclare(e){var _this40=this;if(!this.isLineTerminator()){var i,s=this.state.type;return this.isContextual(99)&&(s=74,i="let"),this.tsInAmbientContext((function(){switch(s){case 68:return e.declare=!0,_get(_getPrototypeOf(_class4.prototype),"parseFunctionStatement",_this40).call(_this40,e,!1,!1);case 80:return e.declare=!0,_this40.parseClass(e,!0,!1);case 124:return _this40.tsParseEnumDeclaration(e,{declare:!0});case 110:return _this40.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return _this40.match(75)&&_this40.isLookaheadContextual("enum")?(_this40.expect(75),_this40.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,_this40.parseVarStatement(e,i||_this40.state.value,!0));case 127:var r=_this40.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r;default:if(S(s))return _this40.tsParseDeclaration(e,_this40.state.value,!0,null)}}))}}},{key:"tsTryParseExportDeclaration",value:function tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}},{key:"tsParseExpressionStatement",value:function tsParseExpressionStatement(e,s,i){switch(s.name){case"declare":var r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r;case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(te);var _r8=e;return _r8.global=!0,_r8.id=s,_r8.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(_r8,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,s.name,!1,i)}}},{key:"tsParseDeclaration",value:function tsParseDeclaration(e,s,i,r){switch(s){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||S(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(e);if(S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&S(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminator",value:function tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function tsTryParseGenericAsyncArrowFunction(e){var _this41=this;if(this.match(47)){var s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var i=this.tsTryParseAndCatch((function(){var r=_this41.startNodeAt(e);return r.typeParameters=_this41.tsParseTypeParameters(_this41.tsParseConstModifier),_get(_getPrototypeOf(_class4.prototype),"parseFunctionParams",_this41).call(_this41,r),r.returnType=_this41.tsTryParseTypeOrTypePredicateAnnotation(),_this41.expect(19),r}));return this.state.maybeInArrowParameters=s,i?_get(_getPrototypeOf(_class4.prototype),"parseArrowExpression",this).call(this,i,null,!0):void 0}}},{key:"tsParseTypeArgumentsInExpression",value:function tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}},{key:"tsParseTypeArguments",value:function tsParseTypeArguments(){var _this42=this,e=this.startNode();return e.params=this.tsInType((function(){return _this42.tsInNoContext((function(){return _this42.expect(47),_this42.tsParseDelimitedList("TypeParametersOrArguments",_this42.tsParseType.bind(_this42))}))})),0===e.params.length?this.raise(y.EmptyTypeArguments,{at:e}):!this.state.inType&&this.curContext()===w.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function tsIsDeclarationStart(){return Ei(this.state.type)}},{key:"isExportDefaultSpecifier",value:function isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&_get(_getPrototypeOf(_class4.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseAssignableListItem",value:function parseAssignableListItem(e,s){var i=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);var n=r.accessibility,o=r.override,h=r.readonly;!(4&e)&&(n||h||o)&&this.raise(y.UnexpectedParameterModifier,{at:i});var l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,e);var c=this.parseMaybeDefault(l.loc.start,l);if(n||h||o){var u=this.startNodeAt(i);return s.length&&(u.decorators=s),n&&(u.accessibility=n),h&&(u.readonly=h),o&&(u.override=o),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(y.UnsupportedParameterPropertyKind,{at:u}),u.parameter=c,this.finishNode(u,"TSParameterProperty")}return s.length&&(l.decorators=s),c}},{key:"isSimpleParameter",value:function isSimpleParameter(e){return"TSParameterProperty"===e.type&&_get(_getPrototypeOf(_class4.prototype),"isSimpleParameter",this).call(this,e.parameter)||_get(_getPrototypeOf(_class4.prototype),"isSimpleParameter",this).call(this,e)}},{key:"tsDisallowOptionalPattern",value:function tsDisallowOptionalPattern(e){var _step10,_iterator10=_createForOfIteratorHelper(e.params);try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var s=_step10.value;"Identifier"!==s.type&&s.optional&&!this.state.isAmbientContext&&this.raise(y.PatternIsOptional,{at:s})}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}}},{key:"setArrowFunctionParameters",value:function setArrowFunctionParameters(e,s,i){_get(_getPrototypeOf(_class4.prototype),"setArrowFunctionParameters",this).call(this,e,s,i),this.tsDisallowOptionalPattern(e)}},{key:"parseFunctionBodyAndFinish",value:function parseFunctionBodyAndFinish(e,s){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));var r="FunctionDeclaration"===s?"TSDeclareFunction":"ClassMethod"===s||"ClassPrivateMethod"===s?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(y.DeclareFunctionHasImplementation,{at:e}),e.declare)?_get(_getPrototypeOf(_class4.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,i):(this.tsDisallowOptionalPattern(e),_get(_getPrototypeOf(_class4.prototype),"parseFunctionBodyAndFinish",this).call(this,e,s,i))}},{key:"registerFunctionStatementId",value:function registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):_get(_getPrototypeOf(_class4.prototype),"registerFunctionStatementId",this).call(this,e)}},{key:"tsCheckForInvalidTypeCasts",value:function tsCheckForInvalidTypeCasts(e){var _this43=this;e.forEach((function(s){"TSTypeCastExpression"===(null==s?void 0:s.type)&&_this43.raise(y.UnexpectedTypeAnnotation,{at:s.typeAnnotation})}))}},{key:"toReferencedList",value:function toReferencedList(e,s){return this.tsCheckForInvalidTypeCasts(e),e}},{key:"parseArrayLike",value:function parseArrayLike(e,s,i,r){var n=_get(_getPrototypeOf(_class4.prototype),"parseArrayLike",this).call(this,e,s,i,r);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}},{key:"parseSubscript",value:function parseSubscript(e,s,i,r){var _this44=this;if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();var o=this.startNodeAt(s);return o.expression=e,this.finishNode(o,"TSNonNullExpression")}var n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){var _o2,h=this.tsTryParseAndCatch((function(){if(!i&&_this44.atPossibleAsyncArrow(e)){var f=_this44.tsTryParseGenericAsyncArrowFunction(s);if(f)return f}var l=_this44.tsParseTypeArgumentsInExpression();if(l)if(!n||_this44.match(10)){if(Oe(_this44.state.type)){var _f2=_get(_getPrototypeOf(_class4.prototype),"parseTaggedTemplateExpression",_this44).call(_this44,e,s,r);return _f2.typeParameters=l,_f2}if(!i&&_this44.eat(10)){var _f3=_this44.startNodeAt(s);return _f3.callee=e,_f3.arguments=_this44.parseCallExpressionArguments(11,!1),_this44.tsCheckForInvalidTypeCasts(_f3.arguments),_f3.typeParameters=l,r.optionalChainMember&&(_f3.optional=n),_this44.finishCallExpression(_f3,r.optionalChainMember)}var c=_this44.state.type;if(48!==c&&52!==c&&(10===c||!Ze(c)||_this44.hasPrecedingLineBreak())){var u=_this44.startNodeAt(s);return u.expression=e,u.typeParameters=l,_this44.finishNode(u,"TSInstantiationExpression")}}else _o2=_this44.state.curPosition()}));if(_o2&&this.unexpected(_o2,10),h)return"TSInstantiationExpression"===h.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(y.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),h}return _get(_getPrototypeOf(_class4.prototype),"parseSubscript",this).call(this,e,s,i,r)}},{key:"parseNewCallee",value:function parseNewCallee(e){var s;_get(_getPrototypeOf(_class4.prototype),"parseNewCallee",this).call(this,e);var i=e.callee;"TSInstantiationExpression"===i.type&&(null==(s=i.extra)||!s.parenthesized)&&(e.typeParameters=i.typeParameters,e.callee=i.expression)}},{key:"parseExprOp",value:function parseExprOp(e,s,i){var r,_this45=this;if(ke(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(118)))){var n=this.startNodeAt(s);return n.expression=e,n.typeAnnotation=this.tsInType((function(){return _this45.next(),_this45.match(75)?(r&&_this45.raise(p.UnexpectedKeyword,{at:_this45.state.startLoc,keyword:"const"}),_this45.tsParseTypeReference()):_this45.tsParseType()})),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,s,i)}return _get(_getPrototypeOf(_class4.prototype),"parseExprOp",this).call(this,e,s,i)}},{key:"checkReservedWord",value:function checkReservedWord(e,s,i,r){this.state.isAmbientContext||_get(_getPrototypeOf(_class4.prototype),"checkReservedWord",this).call(this,e,s,i,r)}},{key:"checkImportReflection",value:function checkImportReflection(e){_get(_getPrototypeOf(_class4.prototype),"checkImportReflection",this).call(this,e),e.module&&"value"!==e.importKind&&this.raise(y.ImportReflectionHasImportType,{at:e.specifiers[0].loc.start})}},{key:"checkDuplicateExports",value:function checkDuplicateExports(){}},{key:"isPotentialImportPhase",value:function isPotentialImportPhase(e){if(_get(_getPrototypeOf(_class4.prototype),"isPotentialImportPhase",this).call(this,e))return!0;if(this.isContextual(128)){var s=this.lookaheadCharCode();return e?123===s||42===s:61!==s}return!e&&this.isContextual(87)}},{key:"applyImportPhase",value:function applyImportPhase(e,s,i,r){_get(_getPrototypeOf(_class4.prototype),"applyImportPhase",this).call(this,e,s,i,r),s?e.exportKind="type"===i?"type":"value":e.importKind="type"===i||"typeof"===i?i:"value"}},{key:"parseImport",value:function parseImport(e){if(this.match(131))return e.importKind="value",_get(_getPrototypeOf(_class4.prototype),"parseImport",this).call(this,e);var s;if(S(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(128)){var i=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,i);s=_get(_getPrototypeOf(_class4.prototype),"parseImportSpecifiersAndAfter",this).call(this,e,i)}else s=_get(_getPrototypeOf(_class4.prototype),"parseImport",this).call(this,e);return"type"===s.importKind&&s.specifiers.length>1&&"ImportDefaultSpecifier"===s.specifiers[0].type&&this.raise(y.TypeImportCannotSpecifyDefaultAndNamed,{at:s}),s}},{key:"parseExport",value:function parseExport(e,s){if(this.match(83)){this.next();var i=null;return this.isContextual(128)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,i,!0)}if(this.eat(29)){var _i13=e;return _i13.expression=_get(_getPrototypeOf(_class4.prototype),"parseExpression",this).call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(_i13,"TSExportAssignment")}if(this.eatContextual(93)){var _i14=e;return this.expectContextual(126),_i14.id=this.parseIdentifier(),this.semicolon(),this.finishNode(_i14,"TSNamespaceExportDeclaration")}return _get(_getPrototypeOf(_class4.prototype),"parseExport",this).call(this,e,s)}},{key:"isAbstractClass",value:function isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().type}},{key:"parseExportDefaultExpression",value:function parseExportDefaultExpression(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(127)){var _e4=this.tsParseInterfaceDeclaration(this.startNode());if(_e4)return _e4}return _get(_getPrototypeOf(_class4.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseVarStatement",value:function parseVarStatement(e,s){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state.isAmbientContext,n=_get(_getPrototypeOf(_class4.prototype),"parseVarStatement",this).call(this,e,s,i||r);if(!r)return n;var _step11,_iterator11=_createForOfIteratorHelper(n.declarations);try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _ref96=_step11.value,o=_ref96.id,h=_ref96.init;h&&("const"!==s||o.typeAnnotation?this.raise(y.InitializerNotAllowedInAmbientContext,{at:h}):pr(h,this.hasPlugin("estree"))||this.raise(y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:h}))}}catch(err){_iterator11.e(err)}finally{_iterator11.f()}return n}},{key:"parseStatementContent",value:function parseStatementContent(e,s){if(this.match(75)&&this.isLookaheadContextual("enum")){var i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){var _i15=this.tsParseInterfaceDeclaration(this.startNode());if(_i15)return _i15}return _get(_getPrototypeOf(_class4.prototype),"parseStatementContent",this).call(this,e,s)}},{key:"parseAccessModifier",value:function parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}},{key:"tsHasSomeModifiers",value:function tsHasSomeModifiers(e,s){return s.some((function(i){return qt(i)?e.accessibility===i:!!e[i]}))}},{key:"tsIsStartOfStaticBlocks",value:function tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.lookaheadCharCode()}},{key:"parseClassMember",value:function parseClassMember(e,s,i){var _this46=this,r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:y.InvalidModifierOnTypeParameterPositions},s);var n=function(){_this46.tsIsStartOfStaticBlocks()?(_this46.next(),_this46.next(),_this46.tsHasSomeModifiers(s,r)&&_this46.raise(y.StaticBlockCannotHaveModifier,{at:_this46.state.curPosition()}),_get(_getPrototypeOf(_class4.prototype),"parseClassStaticBlock",_this46).call(_this46,e,s)):_this46.parseClassMemberWithIsStatic(e,s,i,!!s.static)};s.declare?this.tsInAmbientContext(n):n()}},{key:"parseClassMemberWithIsStatic",value:function parseClassMemberWithIsStatic(e,s,i,r){var n=this.tsTryParseIndexSignature(s);if(n)return e.body.push(n),s.abstract&&this.raise(y.IndexSignatureHasAbstract,{at:s}),s.accessibility&&this.raise(y.IndexSignatureHasAccessibility,{at:s,modifier:s.accessibility}),s.declare&&this.raise(y.IndexSignatureHasDeclare,{at:s}),void(s.override&&this.raise(y.IndexSignatureHasOverride,{at:s}));!this.state.inAbstractClass&&s.abstract&&this.raise(y.NonAbstractClassHasAbstractMethod,{at:s}),s.override&&(i.hadSuperClass||this.raise(y.OverrideNotInSubClass,{at:s})),_get(_getPrototypeOf(_class4.prototype),"parseClassMemberWithIsStatic",this).call(this,e,s,i,r)}},{key:"parsePostMemberNameModifiers",value:function parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(y.ClassMethodHasReadonly,{at:e}),e.declare&&this.match(10)&&this.raise(y.ClassMethodHasDeclare,{at:e})}},{key:"parseExpressionStatement",value:function parseExpressionStatement(e,s,i){return("Identifier"===s.type?this.tsParseExpressionStatement(e,s,i):void 0)||_get(_getPrototypeOf(_class4.prototype),"parseExpressionStatement",this).call(this,e,s,i)}},{key:"shouldParseExportDeclaration",value:function shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||_get(_getPrototypeOf(_class4.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"parseConditional",value:function parseConditional(e,s,i){var _this47=this;if(!this.state.maybeInArrowParameters||!this.match(17))return _get(_getPrototypeOf(_class4.prototype),"parseConditional",this).call(this,e,s,i);var r=this.tryParse((function(){return _get(_getPrototypeOf(_class4.prototype),"parseConditional",_this47).call(_this47,e,s)}));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&_get(_getPrototypeOf(_class4.prototype),"setOptionalParametersError",this).call(this,i,r.error),e)}},{key:"parseParenItem",value:function parseParenItem(e,s){if(e=_get(_getPrototypeOf(_class4.prototype),"parseParenItem",this).call(this,e,s),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(s);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function parseExportDeclaration(e){var _this48=this;if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext((function(){return _this48.parseExportDeclaration(e)}));var s=this.state.startLoc,i=this.eatContextual(123);if(i&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise(y.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});var n=S(this.state.type)&&this.tsTryParseExportDeclaration()||_get(_getPrototypeOf(_class4.prototype),"parseExportDeclaration",this).call(this,e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(n,s),n.declare=!0),n):null}},{key:"parseClassId",value:function parseClassId(e,s,i,r){if(s&&!i||!this.isContextual(111)){_get(_getPrototypeOf(_class4.prototype),"parseClassId",this).call(this,e,s,i,e.declare?1024:8331);var n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}}},{key:"parseClassPropertyAnnotation",value:function parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));var s=this.tsTryParseTypeAnnotation();s&&(e.typeAnnotation=s)}},{key:"parseClassProperty",value:function parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(y.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),e.abstract&&this.match(29)){var s=e.key;this.raise(y.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:"Identifier"!==s.type||e.computed?`[${this.input.slice(s.start,s.end)}]`:s.name})}return _get(_getPrototypeOf(_class4.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function parseClassPrivateProperty(e){return e.abstract&&this.raise(y.PrivateElementHasAbstract,{at:e}),e.accessibility&&this.raise(y.PrivateElementHasAccessibility,{at:e,modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),_get(_getPrototypeOf(_class4.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"parseClassAccessorProperty",value:function parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(y.AccessorCannotBeOptional,{at:e}),_get(_getPrototypeOf(_class4.prototype),"parseClassAccessorProperty",this).call(this,e)}},{key:"pushClassMethod",value:function pushClassMethod(e,s,i,r,n,o){var h=this.tsTryParseTypeParameters(this.tsParseConstModifier);h&&n&&this.raise(y.ConstructorHasTypeParameters,{at:h});var _s$declare=s.declare,l=void 0!==_s$declare&&_s$declare,c=s.kind;l&&("get"===c||"set"===c)&&this.raise(y.DeclareAccessor,{at:s,kind:c}),h&&(s.typeParameters=h),_get(_getPrototypeOf(_class4.prototype),"pushClassMethod",this).call(this,e,s,i,r,n,o)}},{key:"pushClassPrivateMethod",value:function pushClassPrivateMethod(e,s,i,r){var n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(s.typeParameters=n),_get(_getPrototypeOf(_class4.prototype),"pushClassPrivateMethod",this).call(this,e,s,i,r)}},{key:"declareClassPrivateMethodInScope",value:function declareClassPrivateMethodInScope(e,s){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&!e.value.body||_get(_getPrototypeOf(_class4.prototype),"declareClassPrivateMethodInScope",this).call(this,e,s))}},{key:"parseClassSuper",value:function parseClassSuper(e){_get(_getPrototypeOf(_class4.prototype),"parseClassSuper",this).call(this,e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function parseObjPropValue(e,s,i,r,n,o,h){var l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),_get(_getPrototypeOf(_class4.prototype),"parseObjPropValue",this).call(this,e,s,i,r,n,o,h)}},{key:"parseFunctionParams",value:function parseFunctionParams(e,s){var i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),_get(_getPrototypeOf(_class4.prototype),"parseFunctionParams",this).call(this,e,s)}},{key:"parseVarId",value:function parseVarId(e,s){_get(_getPrototypeOf(_class4.prototype),"parseVarId",this).call(this,e,s),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);var i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}},{key:"parseAsyncArrowFromCallExpression",value:function parseAsyncArrowFromCallExpression(e,s){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),_get(_getPrototypeOf(_class4.prototype),"parseAsyncArrowFromCallExpression",this).call(this,e,s)}},{key:"parseMaybeAssign",value:function parseMaybeAssign(e,s){var i,r,n,o,h,l,c,u,_this49=this;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(l=this.state.clone(),!(c=this.tryParse((function(){return _get(_getPrototypeOf(_class4.prototype),"parseMaybeAssign",_this49).call(_this49,e,s)}),l)).error)return c.node;var x=this.state.context,I=x[x.length-1];(I===w.j_oTag||I===w.j_expr)&&x.pop()}if(!(null!=(i=c)&&i.error||this.match(47)))return _get(_getPrototypeOf(_class4.prototype),"parseMaybeAssign",this).call(this,e,s);(!l||l===this.state)&&(l=this.state.clone());var f,d=this.tryParse((function(x){var I,C;f=_this49.tsParseTypeParameters(_this49.tsParseConstModifier);var E=_get(_getPrototypeOf(_class4.prototype),"parseMaybeAssign",_this49).call(_this49,e,s);return("ArrowFunctionExpression"!==E.type||null!=(I=E.extra)&&I.parenthesized)&&x(),0!==(null==(C=f)?void 0:C.params.length)&&_this49.resetStartLocationFromNode(E,f),E.typeParameters=f,E}),l);if(!d.error&&!d.aborted)return f&&this.reportReservedArrowTypeParam(f),d.node;if(!c&&(Kt(!this.hasPlugin("jsx")),!(u=this.tryParse((function(){return _get(_getPrototypeOf(_class4.prototype),"parseMaybeAssign",_this49).call(_this49,e,s)}),l)).error))return u.node;if(null!=(r=c)&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,f&&this.reportReservedArrowTypeParam(f),d.node;if(null!=(n=u)&&n.node)return this.state=u.failState,u.node;throw(null==(o=c)?void 0:o.error)||d.error||(null==(h=u)?void 0:h.error)}},{key:"reportReservedArrowTypeParam",value:function reportReservedArrowTypeParam(e){var s;1===e.params.length&&!e.params[0].constraint&&(null==(s=e.extra)||!s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(y.ReservedArrowTypeParam,{at:e})}},{key:"parseMaybeUnary",value:function parseMaybeUnary(e,s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():_get(_getPrototypeOf(_class4.prototype),"parseMaybeUnary",this).call(this,e,s)}},{key:"parseArrow",value:function parseArrow(e){var _this50=this;if(this.match(14)){var s=this.tryParse((function(i){var r=_this50.tsParseTypeOrTypePredicateAnnotation(14);return(_this50.canInsertSemicolon()||!_this50.match(19))&&i(),r}));if(s.aborted)return;s.thrown||(s.error&&(this.state=s.failState),e.returnType=s.node)}return _get(_getPrototypeOf(_class4.prototype),"parseArrow",this).call(this,e)}},{key:"parseAssignableListItemTypes",value:function parseAssignableListItemTypes(e,s){if(!(2&s))return e;this.eat(17)&&(e.optional=!0);var i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),this.resetEndLocation(e),e}},{key:"isAssignable",value:function isAssignable(e,s){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,s);case"TSParameterProperty":return!0;default:return _get(_getPrototypeOf(_class4.prototype),"isAssignable",this).call(this,e,s)}}},{key:"toAssignable",value:function toAssignable(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":s?this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter,{at:e}):this.raise(y.UnexpectedTypeCastInParameter,{at:e}),this.toAssignable(e.expression,s);break;case"AssignmentExpression":!s&&"TSTypeCastExpression"===e.left.type&&(e.left=this.typeCastToParameter(e.left));default:_get(_getPrototypeOf(_class4.prototype),"toAssignable",this).call(this,e,s)}}},{key:"toAssignableParenthesizedExpression",value:function toAssignableParenthesizedExpression(e,s){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,s);break;default:_get(_getPrototypeOf(_class4.prototype),"toAssignable",this).call(this,e,s)}}},{key:"checkToRestConversion",value:function checkToRestConversion(e,s){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:_get(_getPrototypeOf(_class4.prototype),"checkToRestConversion",this).call(this,e,s)}}},{key:"isValidLVal",value:function isValidLVal(e,s,i){return ar({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==i||!s)&&["expression",!0],TSSatisfiesExpression:(64!==i||!s)&&["expression",!0],TSTypeAssertion:(64!==i||!s)&&["expression",!0]},e)||_get(_getPrototypeOf(_class4.prototype),"isValidLVal",this).call(this,e,s,i)}},{key:"parseBindingAtom",value:function parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):_get(_getPrototypeOf(_class4.prototype),"parseBindingAtom",this).call(this)}},{key:"parseMaybeDecoratorArguments",value:function parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){var s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){var i=_get(_getPrototypeOf(_class4.prototype),"parseMaybeDecoratorArguments",this).call(this,e);return i.typeParameters=s,i}this.unexpected(null,10)}return _get(_getPrototypeOf(_class4.prototype),"parseMaybeDecoratorArguments",this).call(this,e)}},{key:"checkCommaAfterRest",value:function checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):_get(_getPrototypeOf(_class4.prototype),"checkCommaAfterRest",this).call(this,e)}},{key:"isClassMethod",value:function isClassMethod(){return this.match(47)||_get(_getPrototypeOf(_class4.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function isClassProperty(){return this.match(35)||this.match(14)||_get(_getPrototypeOf(_class4.prototype),"isClassProperty",this).call(this)}},{key:"parseMaybeDefault",value:function parseMaybeDefault(e,s){var i=_get(_getPrototypeOf(_class4.prototype),"parseMaybeDefault",this).call(this,e,s);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start0))&&ds(a.object)}function pr(a,t){var e,s=a.type;if(null!=(e=a.extra)&&e.parenthesized)return!1;if(t){if("Literal"===s){var i=a.value;if("string"==typeof i||"boolean"==typeof i)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!!(us(a,t)||ur(a,t)||"TemplateLiteral"===s&&0===a.expressions.length||cr(a))}function us(a,t){return t?"Literal"===a.type&&("number"==typeof a.value||"bigint"in a):"NumericLiteral"===a.type||"BigIntLiteral"===a.type}function ur(a,t){if("UnaryExpression"===a.type){var e=a.operator,s=a.argument;if("-"===e&&us(s,t))return!0}return!1}function ds(a){return"Identifier"===a.type||"MemberExpression"===a.type&&!a.computed&&ds(a.object)}var Ht=$`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),dr=function(a){return function(_a5){_inherits(_class5,_a5);var _super15=_createSuper(_class5);function _class5(){return _classCallCheck(this,_class5),_super15.apply(this,arguments)}return _createClass(_class5,[{key:"parsePlaceholder",value:function parsePlaceholder(e){if(this.match(142)){var s=this.startNode();return this.next(),this.assertNoSpace(),s.name=_get(_getPrototypeOf(_class5.prototype),"parseIdentifier",this).call(this,!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(s,e)}}},{key:"finishPlaceholder",value:function finishPlaceholder(e,s){var i=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=s,i?e:this.finishNode(e,"Placeholder")}},{key:"getTokenFromCode",value:function getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(142,2):_get(_getPrototypeOf(_class5.prototype),"getTokenFromCode",this).call(this,e)}},{key:"parseExprAtom",value:function parseExprAtom(e){return this.parsePlaceholder("Expression")||_get(_getPrototypeOf(_class5.prototype),"parseExprAtom",this).call(this,e)}},{key:"parseIdentifier",value:function parseIdentifier(e){return this.parsePlaceholder("Identifier")||_get(_getPrototypeOf(_class5.prototype),"parseIdentifier",this).call(this,e)}},{key:"checkReservedWord",value:function checkReservedWord(e,s,i,r){void 0!==e&&_get(_getPrototypeOf(_class5.prototype),"checkReservedWord",this).call(this,e,s,i,r)}},{key:"parseBindingAtom",value:function parseBindingAtom(){return this.parsePlaceholder("Pattern")||_get(_getPrototypeOf(_class5.prototype),"parseBindingAtom",this).call(this)}},{key:"isValidLVal",value:function isValidLVal(e,s,i){return"Placeholder"===e||_get(_getPrototypeOf(_class5.prototype),"isValidLVal",this).call(this,e,s,i)}},{key:"toAssignable",value:function toAssignable(e,s){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":_get(_getPrototypeOf(_class5.prototype),"toAssignable",this).call(this,e,s)}},{key:"chStartsBindingIdentifier",value:function chStartsBindingIdentifier(e,s){return!(!_get(_getPrototypeOf(_class5.prototype),"chStartsBindingIdentifier",this).call(this,e,s)&&142!==this.lookahead().type)}},{key:"verifyBreakContinue",value:function verifyBreakContinue(e,s){e.label&&"Placeholder"===e.label.type||_get(_getPrototypeOf(_class5.prototype),"verifyBreakContinue",this).call(this,e,s)}},{key:"parseExpressionStatement",value:function parseExpressionStatement(e,s){var i;if("Placeholder"!==s.type||null!=(i=s.extra)&&i.parenthesized)return _get(_getPrototypeOf(_class5.prototype),"parseExpressionStatement",this).call(this,e,s);if(this.match(14)){var r=e;return r.label=this.finishPlaceholder(s,"Identifier"),this.next(),r.body=_get(_getPrototypeOf(_class5.prototype),"parseStatementOrSloppyAnnexBFunctionDeclaration",this).call(this),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=s.name,this.finishPlaceholder(e,"Statement")}},{key:"parseBlock",value:function parseBlock(e,s,i){return this.parsePlaceholder("BlockStatement")||_get(_getPrototypeOf(_class5.prototype),"parseBlock",this).call(this,e,s,i)}},{key:"parseFunctionId",value:function parseFunctionId(e){return this.parsePlaceholder("Identifier")||_get(_getPrototypeOf(_class5.prototype),"parseFunctionId",this).call(this,e)}},{key:"parseClass",value:function parseClass(e,s,i){var r=s?"ClassDeclaration":"ClassExpression";this.next();var n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(142)||this.match(5))){if(i||!s)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ht.ClassNameIsRequired,{at:this.state.startLoc})}e.id=o}else this.parseClassId(e,s,i);return _get(_getPrototypeOf(_class5.prototype),"parseClassSuper",this).call(this,e),e.body=this.parsePlaceholder("ClassBody")||_get(_getPrototypeOf(_class5.prototype),"parseClassBody",this).call(this,!!e.superClass,n),this.finishNode(e,r)}},{key:"parseExport",value:function parseExport(e,s){var i=this.parsePlaceholder("Identifier");if(!i)return _get(_getPrototypeOf(_class5.prototype),"parseExport",this).call(this,e,s);if(!this.isContextual(97)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var r=this.startNode();return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],_get(_getPrototypeOf(_class5.prototype),"parseExport",this).call(this,e,s)}},{key:"isExportDefaultSpecifier",value:function isExportDefaultSpecifier(){if(this.match(65)){var e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(q(142),this.nextTokenStartSince(e+4)))return!0}return _get(_getPrototypeOf(_class5.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"maybeParseExportDefaultSpecifier",value:function maybeParseExportDefaultSpecifier(e,s){var i;return!(null==(i=e.specifiers)||!i.length)||_get(_getPrototypeOf(_class5.prototype),"maybeParseExportDefaultSpecifier",this).call(this,e,s)}},{key:"checkExport",value:function checkExport(e){var s=e.specifiers;null!=s&&s.length&&(e.specifiers=s.filter((function(i){return"Placeholder"===i.exported.type}))),_get(_getPrototypeOf(_class5.prototype),"checkExport",this).call(this,e),e.specifiers=s}},{key:"parseImport",value:function parseImport(e){var s=this.parsePlaceholder("Identifier");if(!s)return _get(_getPrototypeOf(_class5.prototype),"parseImport",this).call(this,e);if(e.specifiers=[],!this.isContextual(97)&&!this.match(12))return e.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var i=this.startNodeAtNode(s);return i.local=s,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(97),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function parseImportSource(){return this.parsePlaceholder("StringLiteral")||_get(_getPrototypeOf(_class5.prototype),"parseImportSource",this).call(this)}},{key:"assertNoSpace",value:function assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ht.UnexpectedSpace,{at:this.state.lastTokEndLoc})}}]),_class5}(a)},fr=function(a){return function(_a6){_inherits(_class6,_a6);var _super16=_createSuper(_class6);function _class6(){return _classCallCheck(this,_class6),_super16.apply(this,arguments)}return _createClass(_class6,[{key:"parseV8Intrinsic",value:function parseV8Intrinsic(){if(this.match(54)){var e=this.state.startLoc,s=this.startNode();if(this.next(),S(this.state.type)){var i=this.parseIdentifierName(),r=this.createIdentifier(s,i);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(e)}}},{key:"parseExprAtom",value:function parseExprAtom(e){return this.parseV8Intrinsic()||_get(_getPrototypeOf(_class6.prototype),"parseExprAtom",this).call(this,e)}}]),_class6}(a)};function k(a,t){var _ref98=_slicedToArray("string"==typeof t?[t,{}]:t,2),e=_ref98[0],s=_ref98[1],i=Object.keys(s),r=0===i.length;return a.some((function(n){if("string"==typeof n)return r&&n===e;var _n3=_slicedToArray(n,2),o=_n3[0],h=_n3[1];if(o!==e)return!1;for(var _i17=0,_i16=i;_i17<_i16.length;_i17++){var l=_i16[_i17];if(h[l]!==s[l])return!1}return!0}))}function J(a,t,e){var s=a.find((function(i){return Array.isArray(i)?i[0]===t:i===t}));return s&&Array.isArray(s)&&s.length>1?s[1][e]:null}var Wt=["minimal","fsharp","hack","smart"],Jt=["^^","@@","^","%","#"],Xt=["hash","bar"];function mr(a){if(k(a,"decorators")){if(k(a,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=J(a,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var e=J(a,"decorators","allowCallParenthesized");if(null!=e&&"boolean"!=typeof e)throw new Error("'allowCallParenthesized' must be a boolean.")}if(k(a,"flow")&&k(a,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k(a,"placeholders")&&k(a,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k(a,"pipelineOperator")){var _t3=J(a,"pipelineOperator","proposal");if(!Wt.includes(_t3)){var s=Wt.map((function(i){return`"${i}"`})).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}var _e5=k(a,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===_t3){if(k(a,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k(a,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var _s10=J(a,"pipelineOperator","topicToken");if(!Jt.includes(_s10)){var i=Jt.map((function(r){return`"${r}"`})).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if("#"===_s10&&_e5)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===_t3&&_e5)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(k(a,"moduleAttributes")){if(k(a,"importAssertions")||k(a,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==J(a,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(k(a,"importAssertions")&&k(a,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(k(a,"recordAndTuple")&&null!=J(a,"recordAndTuple","syntaxType")&&!Xt.includes(J(a,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Xt.map((function(t){return`'${t}'`})).join(", "));if(k(a,"asyncDoExpressions")&&!k(a,"doExpressions")){var _t4=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw _t4.missingPlugins="doExpressions",_t4}}var fs={estree:mi,jsx:ir,flow:sr,typescript:lr,v8intrinsic:fr,placeholders:dr},yr=Object.keys(fs),Je={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function xr(a){if(null==a)return Object.assign({},Je);if(null!=a.annexB&&!1!==a.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var t={},_i18=0,_Object$keys3=Object.keys(Je);_i18<_Object$keys3.length;_i18++){var e,s=_Object$keys3[_i18];t[s]=null!=(e=a[s])?e:Je[s]}return t}var xt=function(_yt){_inherits(xt,_yt);var _super17=_createSuper(xt);function xt(){return _classCallCheck(this,xt),_super17.apply(this,arguments)}return _createClass(xt,[{key:"checkProto",value:function checkProto(t,e,s,i){if(!("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)){var r=t.key;if("__proto__"===("Identifier"===r.type?r.name:r.value)){if(e)return void this.raise(p.RecordNoProto,{at:r});s.used&&(i?null===i.doubleProtoLoc&&(i.doubleProtoLoc=r.loc.start):this.raise(p.DuplicateProto,{at:r})),s.used=!0}}}},{key:"shouldExitDescending",value:function shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}},{key:"getExpression",value:function getExpression(){this.enterInitialScopes(),this.nextToken();var t=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}},{key:"parseExpression",value:function parseExpression(t,e){var _this53=this;return t?this.disallowInAnd((function(){return _this53.parseExpressionBase(e)})):this.allowInAnd((function(){return _this53.parseExpressionBase(e)}))}},{key:"parseExpressionBase",value:function parseExpressionBase(t){var e=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(12)){var i=this.startNodeAt(e);for(i.expressions=[s];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return s}},{key:"parseMaybeAssignDisallowIn",value:function parseMaybeAssignDisallowIn(t,e){var _this54=this;return this.disallowInAnd((function(){return _this54.parseMaybeAssign(t,e)}))}},{key:"parseMaybeAssignAllowIn",value:function parseMaybeAssignAllowIn(t,e){var _this55=this;return this.allowInAnd((function(){return _this55.parseMaybeAssign(t,e)}))}},{key:"setOptionalParametersError",value:function setOptionalParametersError(t,e){var s;t.optionalParametersLoc=null!=(s=null==e?void 0:e.loc)?s:this.state.startLoc}},{key:"parseMaybeAssign",value:function parseMaybeAssign(t,e){var i,s=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){var o=this.parseYield();return e&&(o=e.call(this,o,s)),o}t?i=!1:(t=new se,i=!0);var r=this.state.type;(10===r||S(r))&&(this.state.potentialArrowAt=this.state.start);var n=this.parseMaybeConditional(t);if(e&&(n=e.call(this,n,s)),Ti(this.state.type)){var _o3=this.startNodeAt(s),h=this.state.value;if(_o3.operator=h,this.match(29)){this.toAssignable(n,!0),_o3.left=n;var l=s.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else _o3.left=n;return this.next(),_o3.right=this.parseMaybeAssign(),this.checkLVal(n,{in:this.finishNode(_o3,"AssignmentExpression")}),_o3}return i&&this.checkExpressionErrors(t,!0),n}},{key:"parseMaybeConditional",value:function parseMaybeConditional(t){var e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,s)?i:this.parseConditional(i,e,t)}},{key:"parseConditional",value:function parseConditional(t,e,s){if(this.eat(17)){var i=this.startNodeAt(e);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}},{key:"parseMaybeUnaryOrPrivate",value:function parseMaybeUnaryOrPrivate(t){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(t)}},{key:"parseExprOps",value:function parseExprOps(t){var e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,s)?i:this.parseExprOp(i,e,-1)}},{key:"parseExprOp",value:function parseExprOp(t,e,s){if(this.isPrivateName(t)){var r=this.getPrivateNameSV(t);(s>=ke(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(p.PrivateInExpectedIn,{at:t,identifierName:r}),this.classScope.usePrivateName(r,t.loc.start)}var i=this.state.type;if(Ai(i)&&(this.prodParam.hasIn||!this.match(58))){var _r9=ke(i);if(_r9>s){if(39===i){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}var n=this.startNodeAt(e);n.left=t,n.operator=this.state.value;var o=41===i||42===i,h=40===i;if(h&&(_r9=ke(42)),this.next(),39===i&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(p.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});n.right=this.parseExprOpRightExpr(i,_r9);var l=this.finishNode(n,o||h?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(h&&(41===c||42===c)||o&&40===c)throw this.raise(p.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(l,e,s)}}return t}},{key:"parseExprOpRightExpr",value:function parseExprOpRightExpr(t,e){var _this56=this,s=this.state.startLoc;if(39===t)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return _this56.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(_this56.prodParam.hasYield&&_this56.isContextual(106))throw _this56.raise(p.PipeBodyIsTighter,{at:_this56.state.startLoc});return _this56.parseSmartPipelineBodyInStyle(_this56.parseExprOpBaseRightExpr(t,e),s)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return _this56.parseFSharpPipelineBody(e)}))}return this.parseExprOpBaseRightExpr(t,e)}},{key:"parseExprOpBaseRightExpr",value:function parseExprOpBaseRightExpr(t,e){var s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,Ii(t)?e-1:e)}},{key:"parseHackPipeBody",value:function parseHackPipeBody(){var t,e=this.state.startLoc,s=this.parseMaybeAssign();return li.has(s.type)&&!(null!=(t=s.extra)&&t.parenthesized)&&this.raise(p.PipeUnparenthesizedBody,{at:e,type:s.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipeTopicUnused,{at:e}),s}},{key:"checkExponentialAfterUnary",value:function checkExponentialAfterUnary(t){this.match(57)&&this.raise(p.UnexpectedTokenUnaryExponentiation,{at:t.argument})}},{key:"parseMaybeUnary",value:function parseMaybeUnary(t,e){var s=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();var h=this.parseAwait(s);return e||this.checkExponentialAfterUnary(h),h}var r=this.match(34),n=this.startNode();if(wi(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var _h4=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&_h4){var l=n.argument;"Identifier"===l.type?this.raise(p.StrictDelete,{at:n}):this.hasPropertyAsPrivateName(l)&&this.raise(p.DeletePrivateField,{at:n})}if(!r)return e||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}var o=this.parseUpdate(n,r,t);if(i){var _h5=this.state.type;if((this.hasPlugin("v8intrinsic")?Ze(_h5):Ze(_h5)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(p.AwaitNotInAsyncContext,{at:s}),this.parseAwait(s)}return o}},{key:"parseUpdate",value:function parseUpdate(t,e,s){if(e){var n=t;return this.checkLVal(n.argument,{in:this.finishNode(n,"UpdateExpression")}),t}var i=this.state.startLoc,r=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return r;for(;Si(this.state.type)&&!this.canInsertSemicolon();){var _n4=this.startNodeAt(i);_n4.operator=this.state.value,_n4.prefix=!1,_n4.argument=r,this.next(),this.checkLVal(r,{in:r=this.finishNode(_n4,"UpdateExpression")})}return r}},{key:"parseExprSubscripts",value:function parseExprSubscripts(t){var e=this.state.startLoc,s=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,s)?i:this.parseSubscripts(i,e)}},{key:"parseSubscripts",value:function parseSubscripts(t,e,s){var i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,s,i),i.maybeAsyncArrow=!1}while(!i.stop);return t}},{key:"parseSubscript",value:function parseSubscript(t,e,s,i){var r=this.state.type;if(!s&&15===r)return this.parseBind(t,e,s,i);if(Oe(r))return this.parseTaggedTemplateExpression(t,e,i);var n=!1;if(18===r){if(s&&(this.raise(p.OptionalChainingNoNew,{at:this.state.startLoc}),40===this.lookaheadCharCode()))return i.stop=!0,t;i.optionalChainMember=n=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,i,n);var o=this.eat(0);return o||n||this.eat(16)?this.parseMember(t,e,i,o,n):(i.stop=!0,t)}},{key:"parseMember",value:function parseMember(t,e,s,i,r){var n=this.startNodeAt(e);return n.object=t,n.computed=i,i?(n.property=this.parseExpression(),this.expect(3)):this.match(136)?("Super"===t.type&&this.raise(p.SuperPrivateField,{at:e}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),s.optionalChainMember?(n.optional=r,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}},{key:"parseBind",value:function parseBind(t,e,s,i){var r=this.startNodeAt(e);return r.object=t,this.next(),r.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),e,s)}},{key:"parseCoverCallAndAsyncArrowHead",value:function parseCoverCallAndAsyncArrowHead(t,e,s,i){var r=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();var o=this.startNodeAt(e);o.callee=t;var h=s.maybeAsyncArrow,l=s.optionalChainMember;h&&(this.expressionScope.enter(Ji()),n=new se),l&&(o.optional=i),o.arguments=i?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===t.type,"Super"!==t.type,h?o:null,n);var c=this.finishCallExpression(o,l);return h&&this.shouldParseAsyncArrow()&&!i?(s.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),c)):(h&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=r,c}},{key:"toReferencedArguments",value:function toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}},{key:"parseTaggedTemplateExpression",value:function parseTaggedTemplateExpression(t,e,s){var i=this.startNodeAt(e);return i.tag=t,i.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(p.OptionalChainingNoTemplate,{at:e}),this.finishNode(i,"TaggedTemplateExpression")}},{key:"atPossibleAsyncArrow",value:function atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}},{key:"expectImportAttributesPlugin",value:function expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}},{key:"finishCallExpression",value:function finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===t.arguments.length||t.arguments.length>2)this.raise(p.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else{var _step12,_iterator12=_createForOfIteratorHelper(t.arguments);try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var s=_step12.value;"SpreadElement"===s.type&&this.raise(p.ImportCallSpreadArgument,{at:s})}}catch(err){_iterator12.e(err)}finally{_iterator12.f()}}return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function parseCallExpressionArguments(t,e,s,i,r){var n=[],o=!0,h=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){e&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(p.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(!1,r,s))}return this.state.inFSharpPipelineDirectBody=h,n}},{key:"shouldParseAsyncArrow",value:function shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function parseAsyncArrowFromCallExpression(t,e){var s;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(s=e.extra)?void 0:s.trailingCommaLoc),e.innerComments&&Te(t,e.innerComments),e.callee.trailingComments&&Te(t,e.callee.trailingComments),t}},{key:"parseNoCallExpr",value:function parseNoCallExpr(){var t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}},{key:"parseExprAtom",value:function parseExprAtom(t){var e,s=null,i=this.state.type;switch(i){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):(this.match(10)||this.raise(p.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:var r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r);case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:s=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(s,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:e=this.startNode(),this.next(),e.object=null;var _r10=e.callee=this.parseNoCallExpr();if("MemberExpression"===_r10.type)return this.finishNode(e,"BindExpression");throw this.raise(p.UnsupportedBind,{at:_r10});case 136:return this.raise(p.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:var _r11=this.getPluginOption("pipelineOperator","proposal");if(_r11)return this.parseTopicReference(_r11);this.unexpected();break;case 47:var _r12=this.input.codePointAt(this.nextTokenStart());j(_r12)||62===_r12?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break;default:if(S(i)){if(this.isContextual(125)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();var _r13=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&"async"===o.name&&!this.canInsertSemicolon()){var h=this.state.type;if(68===h)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(S(h))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(90===h)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return _r13&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}this.unexpected()}}},{key:"parseTopicReferenceThenEqualsSign",value:function parseTopicReferenceThenEqualsSign(t,e){var s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=L(this.state.endLoc,-1),this.parseTopicReference(s);this.unexpected()}},{key:"parseTopicReference",value:function parseTopicReference(t){var e=this.startNode(),s=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(e,s,t,i)}},{key:"finishTopicReference",value:function finishTopicReference(t,e,s,i){if(this.testTopicReferenceConfiguration(s,e,i)){var r="smart"===s?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===s?p.PrimaryTopicNotAllowed:p.PipeTopicUnbound,{at:e}),this.registerTopicReference(),this.finishNode(t,r)}throw this.raise(p.PipeTopicUnconfiguredToken,{at:e,token:q(i)})}},{key:"testTopicReferenceConfiguration",value:function testTopicReferenceConfiguration(t,e,s){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:q(s)}]);case"smart":return 27===s;default:throw this.raise(p.PipeTopicRequiresHackPipes,{at:e})}}},{key:"parseAsyncArrowUnaryFunction",value:function parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Le(!0,this.prodParam.hasYield));var e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(p.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,e,!0)}},{key:"parseDo",value:function parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();var s=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(Re),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=s,this.finishNode(t,"DoExpression")}},{key:"parseSuper",value:function parseSuper(){var t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(p.UnexpectedSuper,{at:t}):this.raise(p.SuperNotAllowed,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(p.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}},{key:"parsePrivateName",value:function parsePrivateName(){var t=this.startNode(),e=this.startNodeAt(L(this.state.startLoc,1)),s=this.state.value;return this.next(),t.id=this.createIdentifier(e,s),this.finishNode(t,"PrivateName")}},{key:"parseFunctionOrFunctionSent",value:function parseFunctionOrFunctionSent(){var t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){var e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}},{key:"parseMetaProperty",value:function parseMetaProperty(t,e,s){t.meta=e;var i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==s||i)&&this.raise(p.UnsupportedMetaProperty,{at:t.property,target:e.name,onlyValidPropertyName:s}),this.finishNode(t,"MetaProperty")}},{key:"parseImportMetaProperty",value:function parseImportMetaProperty(t){var e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(p.ImportMetaOutsideModule,{at:e}),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}},{key:"parseLiteralAtNode",value:function parseLiteralAtNode(t,e,s){return this.addExtra(s,"rawValue",t),this.addExtra(s,"raw",this.input.slice(s.start,this.state.end)),s.value=t,this.next(),this.finishNode(s,e)}},{key:"parseLiteral",value:function parseLiteral(t,e){var s=this.startNode();return this.parseLiteralAtNode(t,e,s)}},{key:"parseStringLiteral",value:function parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}},{key:"parseNumericLiteral",value:function parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}},{key:"parseBigIntLiteral",value:function parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}},{key:"parseDecimalLiteral",value:function parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}},{key:"parseRegExpLiteral",value:function parseRegExpLiteral(t){var e=this.parseLiteral(t.value,"RegExpLiteral");return e.pattern=t.pattern,e.flags=t.flags,e}},{key:"parseBooleanLiteral",value:function parseBooleanLiteral(t){var e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}},{key:"parseNullLiteral",value:function parseNullLiteral(){var t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}},{key:"parseParenAndDistinguishExpression",value:function parseParenAndDistinguishExpression(t){var s,e=this.state.startLoc;this.next(),this.expressionScope.enter(Wi());var i=this.state.maybeInArrowParameters,r=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var c,u,n=this.state.startLoc,o=[],h=new se,l=!0;!this.match(11);){if(l)l=!1;else if(this.expect(12,null===h.optionalParametersLoc?null:h.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){var x=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),x)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}var f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=r;var d=this.startNodeAt(e);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(o,!0),o.length>1?((s=this.startNodeAt(n)).expressions=o,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,f)):s=o[0],this.wrapParenthesis(e,s))}},{key:"wrapParenthesis",value:function wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;var s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"ParenthesizedExpression")}},{key:"shouldParseArrow",value:function shouldParseArrow(t){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function parseArrow(t){if(this.eat(19))return t}},{key:"parseParenItem",value:function parseParenItem(t,e){return t}},{key:"parseNewOrNewTarget",value:function parseNewOrNewTarget(){var t=this.startNode();if(this.next(),this.match(16)){var e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();var s=this.parseMetaProperty(t,e,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(p.UnexpectedNewTarget,{at:s}),s}return this.parseNew(t)}},{key:"parseNew",value:function parseNew(t){if(this.parseNewCallee(t),this.eat(10)){var e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}},{key:"parseNewCallee",value:function parseNewCallee(t){t.callee=this.parseNoCallExpr(),"Import"===t.callee.type&&this.raise(p.ImportCallNotNewExpression,{at:t.callee})}},{key:"parseTemplateElement",value:function parseTemplateElement(t){var _this$state3=this.state,e=_this$state3.start,s=_this$state3.startLoc,i=_this$state3.end,r=_this$state3.value,n=e+1,o=this.startNodeAt(L(s,1));null===r&&(t||this.raise(p.InvalidEscapeSequenceTemplate,{at:L(this.state.firstInvalidTemplateEscapePos,1)}));var h=this.match(24),l=h?-1:-2,c=i+l;o.value={raw:this.input.slice(n,c).replace(/\r\n?/g,"\n"),cooked:null===r?null:r.slice(1,l)},o.tail=h,this.next();var u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,L(this.state.lastTokEndLoc,l)),u}},{key:"parseTemplate",value:function parseTemplate(t){var e=this.startNode();e.expressions=[];var s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}},{key:"parseTemplateSubstitution",value:function parseTemplateSubstitution(){return this.parseExpression()}},{key:"parseObjectLike",value:function parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}var c=void 0;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&"SpreadElement"!==c.type&&this.raise(p.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;var l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}},{key:"addTrailingCommaExtraToNode",value:function addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}},{key:"maybeAsyncOrAccessorProp",value:function maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}},{key:"parsePropertyDefinition",value:function parsePropertyDefinition(t){var e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());var n,s=this.startNode(),i=!1,r=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);var o=this.eat(55);this.parsePropertyNamePrefixOperator(s);var h=this.state.containsEsc,l=this.parsePropertyName(s,t);if(!o&&!h&&this.maybeAsyncOrAccessorProp(s)){var c=l.name;"async"===c&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),("get"===c||"set"===c)&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}},{key:"getGetterSetterExpectedParamCount",value:function getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}},{key:"getObjectOrClassMethodParams",value:function getObjectOrClassMethodParams(t){return t.params}},{key:"checkGetterSetterParams",value:function checkGetterSetterParams(t){var e,s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise("get"===t.kind?p.BadGetterArity:p.BadSetterArity,{at:t}),"set"===t.kind&&"RestElement"===(null==(e=i[i.length-1])?void 0:e.type)&&this.raise(p.BadSetterRestParameter,{at:t})}},{key:"parseObjectMethod",value:function parseObjectMethod(t,e,s,i,r){if(r){var n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}},{key:"parseObjectProperty",value:function parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,V(t.key));else if(this.match(29)){var r=this.state.startLoc;null!=i?null===i.shorthandAssignLoc&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,{at:r}),t.value=this.parseMaybeDefault(e,V(t.key))}else t.value=V(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}},{key:"parseObjPropValue",value:function parseObjPropValue(t,e,s,i,r,n,o){var h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}},{key:"parsePropertyName",value:function parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,_this$state4=this.state,s=_this$state4.type,i=_this$state4.value;if(M(s))r=this.parseIdentifier(!0);else switch(s){case 132:r=this.parseNumericLiteral(i);break;case 131:r=this.parseStringLiteral(i);break;case 133:r=this.parseBigIntLiteral(i);break;case 134:r=this.parseDecimalLiteral(i);break;case 136:var n=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,{at:n}),r=this.parsePrivateName();break;default:this.unexpected()}t.key=r,136!==s&&(t.computed=!1)}return t.key}},{key:"initFunction",value:function initFunction(t,e){t.id=null,t.generator=!1,t.async=e}},{key:"parseMethod",value:function parseMethod(t,e,s,i,r,n){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Le(s,t.generator)),this.parseFunctionParams(t,i);var h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}},{key:"parseArrayLike",value:function parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,i,n),this.state.inFSharpPipelineDirectBody=r,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}},{key:"parseArrowExpression",value:function parseArrowExpression(t,e,s,i){this.scope.enter(6);var r=Le(s,!1);!this.match(5)&&this.prodParam.hasIn&&(r|=Q),this.prodParam.enter(r),this.initFunction(t,s);var n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function setArrowFunctionParameters(t,e,s){this.toAssignableList(e,s,!1),t.params=e}},{key:"parseFunctionBodyAndFinish",value:function parseFunctionBodyAndFinish(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}},{key:"parseFunctionBody",value:function parseFunctionBody(t,e){var _this57=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e&&!this.match(5);if(this.expressionScope.enter(hs()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{var r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|cs),t.body=this.parseBlock(!0,!1,(function(o){var h=!_this57.isSimpleParamList(t.params);o&&h&&_this57.raise(p.IllegalLanguageModeDirective,{at:"method"!==t.kind&&"constructor"!==t.kind||!t.key?t:t.key.loc.end});var l=!r&&_this57.state.strict;_this57.checkParams(t,!(_this57.state.strict||e||s||h),e,l),_this57.state.strict&&t.id&&_this57.checkIdentifier(t.id,65,l)})),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}},{key:"isSimpleParameter",value:function isSimpleParameter(t){return"Identifier"===t.type}},{key:"isSimpleParamList",value:function isSimpleParamList(t){for(var e=0,s=t.length;e3&&void 0!==arguments[3])||arguments[3],r=!e&&new Set,n={type:"FormalParameters"},_iterator13=_createForOfIteratorHelper(t.params);try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var o=_step13.value;this.checkLVal(o,{in:n,binding:5,checkClashes:r,strictModeChanged:i})}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}}},{key:"parseExprList",value:function parseExprList(t,e,s,i){for(var r=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}r.push(this.parseExprListItem(e,s))}return r}},{key:"parseExprListItem",value:function parseExprListItem(t,e,s){var i;if(this.match(12))t||this.raise(p.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),i=null;else if(this.match(21)){var r=this.state.startLoc;i=this.parseParenItem(this.parseSpread(e),r)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(p.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});var _r14=this.startNode();this.next(),i=this.finishNode(_r14,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return i}},{key:"parseIdentifier",value:function parseIdentifier(t){var e=this.startNode(),s=this.parseIdentifierName(t);return this.createIdentifier(e,s)}},{key:"createIdentifier",value:function createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}},{key:"parseIdentifierName",value:function parseIdentifierName(t){var e,_this$state5=this.state,s=_this$state5.startLoc,i=_this$state5.type;M(i)?e=this.state.value:this.unexpected();var r=Pi(i);return t?r&&this.replaceToken(130):this.checkReservedWord(e,s,r,!1),this.next(),e}},{key:"checkReservedWord",value:function checkReservedWord(t,e,s,i){if(!(t.length>10)&&Ri(t))if(s&&Oi(t))this.raise(p.UnexpectedKeyword,{at:e,keyword:t});else if((this.state.strict?i?is:ts:es)(t,this.inModule))this.raise(p.UnexpectedReservedWord,{at:e,reservedWord:t});else if("yield"===t){if(this.prodParam.hasYield)return void this.raise(p.YieldBindingIdentifier,{at:e})}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(p.AwaitBindingIdentifier,{at:e});if(this.scope.inStaticBlock)return void this.raise(p.AwaitBindingIdentifierInStaticBlock,{at:e});this.expressionScope.recordAsyncArrowParametersError({at:e})}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(p.ArgumentsInClass,{at:e})}},{key:"isAwaitAllowed",value:function isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}},{key:"parseAwait",value:function parseAwait(t){var e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,{at:e}),this.eat(55)&&this.raise(p.ObsoleteAwaitStar,{at:e}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}},{key:"isAmbiguousAwait",value:function isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;var t=this.state.type;return 53===t||10===t||0===t||Oe(t)||101===t&&!this.state.containsEsc||135===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}},{key:"parseYield",value:function parseYield(){var t=this.startNode();this.expressionScope.recordParameterInitializerError(p.YieldInParameter,{at:t}),this.next();var e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign()}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}},{key:"checkPipelineAtInfixOperator",value:function checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(p.PipelineHeadSequenceExpression,{at:e})}},{key:"parseSmartPipelineBodyInStyle",value:function parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){var s=this.startNodeAt(e);return s.callee=t,this.finishNode(s,"PipelineBareFunction")}var _s11=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),_s11.expression=t,this.finishNode(_s11,"PipelineTopicExpression")}},{key:"isSimpleReference",value:function isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}},{key:"checkSmartPipeTopicBodyEarlyErrors",value:function checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(p.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(p.PipelineTopicUnused,{at:t})}},{key:"withTopicBindingContext",value:function withTopicBindingContext(t){var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}},{key:"withSmartMixTopicForbiddingContext",value:function withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();var e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}},{key:"withSoloAwaitPermittingContext",value:function withSoloAwaitPermittingContext(t){var e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}},{key:"allowInAnd",value:function allowInAnd(t){var e=this.prodParam.currentFlags();if(Q&~e){this.prodParam.enter(e|Q);try{return t()}finally{this.prodParam.exit()}}return t()}},{key:"disallowInAnd",value:function disallowInAnd(t){var e=this.prodParam.currentFlags();if(Q&e){this.prodParam.enter(e&~Q);try{return t()}finally{this.prodParam.exit()}}return t()}},{key:"registerTopicReference",value:function registerTopicReference(){this.state.topicContext.maxTopicIndex=0}},{key:"topicReferenceIsAllowedInCurrentContext",value:function topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentContext",value:function topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function parseFSharpPipelineBody(t){var e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=s,i}},{key:"parseModuleExpression",value:function parseModuleExpression(){this.expectPlugin("moduleBlocks");var t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var e=this.startNodeAt(this.state.endLoc);this.next();var s=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{s()}return this.finishNode(t,"ModuleExpression")}},{key:"parsePropertyNamePrefixOperator",value:function parsePropertyNamePrefixOperator(t){}}]),xt}(yt),Xe={kind:"loop"},Pr={kind:"switch"},gr=/[\uD800-\uDFFF]/u,Ge=/in(?:stanceof)?/y;function Tr(a,t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:137,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(t.sourceType=s,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(var _i19=0,_Array$from2=Array.from(this.scope.undefinedExports);_i19<_Array$from2.length;_i19++){var _ref100=_slicedToArray(_Array$from2[_i19],2),r=_ref100[0],n=_ref100[1];this.raise(p.ModuleExportUndefined,{at:n,localName:r})}return 137===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",L(this.state.startLoc,-1))}},{key:"stmtToDirective",value:function stmtToDirective(t){var e=t;e.type="Directive",e.value=e.expression,delete e.expression;var s=e.value,i=s.value,r=this.input.slice(s.start,s.end),n=s.value=r.slice(1,-1);return this.addExtra(s,"raw",r),this.addExtra(s,"rawValue",n),this.addExtra(s,"expressionValue",i),s.type="DirectiveLiteral",e}},{key:"parseInterpreterDirective",value:function parseInterpreterDirective(){if(!this.match(28))return null;var t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}},{key:"isLet",value:function isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}},{key:"chStartsBindingIdentifier",value:function chStartsBindingIdentifier(t,e){if(j(t)){if(Ge.lastIndex=e,Ge.test(this.input)){var s=this.codePointAtPos(Ge.lastIndex);if(!ee(s)&&92!==s)return!1}return!0}return 92===t}},{key:"chStartsBindingPattern",value:function chStartsBindingPattern(t){return 91===t||123===t}},{key:"hasFollowingBindingAtom",value:function hasFollowingBindingAtom(){var t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}},{key:"hasInLineFollowingBindingIdentifier",value:function hasInLineFollowingBindingIdentifier(){var t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return this.chStartsBindingIdentifier(e,t)}},{key:"startsUsingForOf",value:function startsUsingForOf(){var _this$lookahead=this.lookahead(),t=_this$lookahead.type,e=_this$lookahead.containsEsc;return!(101===t&&!e)&&(S(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}},{key:"startsAwaitUsing",value:function startsAwaitUsing(){var t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);var e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}},{key:"parseModuleItem",value:function parseModuleItem(){return this.parseStatementLike(15)}},{key:"parseStatementListItem",value:function parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}},{key:"parseStatementOrSloppyAnnexBFunctionDeclaration",value:function parseStatementOrSloppyAnnexBFunctionDeclaration(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}},{key:"parseStatement",value:function parseStatement(){return this.parseStatementLike(0)}},{key:"parseStatementLike",value:function parseStatementLike(t){var e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}},{key:"parseStatementContent",value:function parseStatementContent(t,e){var s=this.state.type,i=this.startNode(),r=!!(2&t),n=!!(4&t),o=1&t;switch(s){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(46===this.lookaheadCharCode())break;return n||this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(i,!1,!r&&n);case 80:return r||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?r||this.raise(p.UnexpectedLexicalDeclaration,{at:i}):this.raise(p.AwaitUsingNotInAsyncContext,{at:i}),this.next(),this.parseVarStatement(i,"await using");break;case 105:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(p.UnexpectedUsingDeclaration,{at:this.state.startLoc}):r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(i,"using");case 99:if(this.state.containsEsc)break;var c=this.nextTokenStart(),u=this.codePointAtPos(c);if(91!==u&&(!r&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(u,c)&&123!==u))break;case 75:r||this.raise(p.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:var _c6=this.state.value;return this.parseVarStatement(i,_c6);case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:var _c7=this.lookaheadCharCode();if(40===_c7||46===_c7)break;case 82:var _c8;return!this.options.allowImportExportEverywhere&&!o&&this.raise(p.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),83===s?"ImportDeclaration"===(_c8=this.parseImport(i)).type&&(!_c8.importKind||"value"===_c8.importKind)&&(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"===(_c8=this.parseExport(i,e)).type&&(!_c8.exportKind||"value"===_c8.exportKind)||"ExportAllDeclaration"===_c8.type&&(!_c8.exportKind||"value"===_c8.exportKind)||"ExportDefaultDeclaration"===_c8.type)&&(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(_c8),_c8;default:if(this.isAsyncFunction())return r||this.raise(p.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(i,!0,!r&&n)}var h=this.state.value,l=this.parseExpression();return S(s)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(i,h,l,t):this.parseExpressionStatement(i,l,e)}},{key:"assertModuleNodeAllowed",value:function assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(p.ImportOutsideModule,{at:t})}},{key:"decoratorsEnabledBeforeExport",value:function decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}},{key:"maybeTakeDecorators",value:function maybeTakeDecorators(t,e,s){var _e$decorators;return t&&(e.decorators&&e.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(p.DecoratorsBeforeAfterExport,{at:e.decorators[0]}),(_e$decorators=e.decorators).unshift.apply(_e$decorators,_toConsumableArray(t))):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),s&&this.resetStartLocationFromNode(s,e)),e}},{key:"canHaveLeadingDecorator",value:function canHaveLeadingDecorator(){return this.match(80)}},{key:"parseDecorators",value:function parseDecorators(t){var e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(p.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(p.UnexpectedLeadingDecorator,{at:this.state.startLoc});return e}},{key:"parseDecorator",value:function parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);var t=this.startNode();if(this.next(),this.hasPlugin("decorators")){var s,e=this.state.startLoc;if(this.match(10)){var i=this.state.startLoc;this.next(),s=this.parseExpression(),this.expect(11),s=this.wrapParenthesis(i,s);var r=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(s),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==s&&this.raise(p.DecoratorArgumentsOutsideParentheses,{at:r})}else{for(s=this.parseIdentifier(!1);this.eat(16);){var _i20=this.startNodeAt(e);_i20.object=s,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),_i20.property=this.parsePrivateName()):_i20.property=this.parseIdentifier(!0),_i20.computed=!1,s=this.finishNode(_i20,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}},{key:"parseMaybeDecoratorArguments",value:function parseMaybeDecoratorArguments(t){if(this.eat(10)){var e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}},{key:"parseBreakContinueStatement",value:function parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}},{key:"verifyBreakContinue",value:function verifyBreakContinue(t,e){var s;for(s=0;s2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}},{key:"parseWhileStatement",value:function parseWhileStatement(t){var _this60=this;return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Xe),t.body=this.withSmartMixTopicForbiddingContext((function(){return _this60.parseStatement()})),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}},{key:"parseWithStatement",value:function parseWithStatement(t){var _this61=this;return this.state.strict&&this.raise(p.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((function(){return _this61.parseStatement()})),this.finishNode(t,"WithStatement")}},{key:"parseEmptyStatement",value:function parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}},{key:"parseLabeledStatement",value:function parseLabeledStatement(t,e,s,i){var _step14,_iterator14=_createForOfIteratorHelper(this.state.labels);try{for(_iterator14.s();!(_step14=_iterator14.n()).done;)_step14.value.name===e&&this.raise(p.LabelRedeclaration,{at:s,labelName:e})}catch(err){_iterator14.e(err)}finally{_iterator14.f()}for(var r=bi(this.state.type)?"loop":this.match(71)?"switch":null,n=this.state.labels.length-1;n>=0;n--){var o=this.state.labels[n];if(o.statementStart!==t.start)break;o.statementStart=this.state.start,o.kind=r}return this.state.labels.push({name:e,kind:r,statementStart:this.state.start}),t.body=8&i?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}},{key:"parseExpressionStatement",value:function parseExpressionStatement(t,e,s){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}},{key:"parseBlock",value:function parseBlock(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2?arguments[2]:void 0,i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,s),e&&this.scope.exit(),this.finishNode(i,"BlockStatement")}},{key:"isValidDirective",value:function isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}},{key:"parseBlockBody",value:function parseBlockBody(t,e,s,i,r){var n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,i,r)}},{key:"parseBlockOrModuleBlockBody",value:function parseBlockOrModuleBlockBody(t,e,s,i,r){for(var n=this.state.strict,o=!1,h=!1;!this.match(i);){var l=s?this.parseModuleItem():this.parseStatementListItem();if(e&&!h){if(this.isValidDirective(l)){var c=this.stmtToDirective(l);e.push(c),!o&&"use strict"===c.value.value&&(o=!0,this.setStrict(!0));continue}h=!0,this.state.strictErrors.clear()}t.push(l)}null==r||r.call(this,o),n||this.setStrict(!1),this.next()}},{key:"parseFor",value:function parseFor(t,e){var _this62=this;return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((function(){return _this62.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}},{key:"parseForIn",value:function parseForIn(t,e,s){var _this63=this,i=this.match(58);return this.next(),i?null!==s&&this.unexpected(s):t.await=null!==s,"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||!this.options.annexB||this.state.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(p.ForInOfLoopInitializer,{at:e,type:i?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(p.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((function(){return _this63.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function parseVar(t,e,s){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t.declarations=[];for(t.kind=s;;){var n=this.startNode();if(this.parseVarId(n,s),n.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===n.init&&!i&&("Identifier"===n.id.type||e&&(this.match(58)||this.isContextual(101))?"const"===s&&!(this.match(58)||this.isContextual(101))&&this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(p.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),r.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return t}},{key:"parseVarId",value:function parseVarId(t,e){var s=this.parseBindingAtom();this.checkLVal(s,{in:{type:"VariableDeclarator"},binding:"var"===e?5:8201}),t.id=s}},{key:"parseAsyncFunctionExpression",value:function parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}},{key:"parseFunction",value:function parseFunction(t){var _this64=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=2&e,i=!!(1&e),r=i&&!(4&e),n=!!(8&e);this.initFunction(t,n),this.match(55)&&(s&&this.raise(p.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(r));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Le(n,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((function(){_this64.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!s&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}},{key:"parseFunctionId",value:function parseFunctionId(t){return t||S(this.state.type)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(Hi()),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}},{key:"registerFunctionStatementId",value:function registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}},{key:"parseClass",value:function parseClass(t,e,s){this.next();var i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}},{key:"isClassMethod",value:function isClassMethod(){return this.match(10)}},{key:"isNonstaticConstructor",value:function isNonstaticConstructor(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)}},{key:"parseClassBody",value:function parseClassBody(t,e){var _this65=this;this.classScope.enter();var s={hadConstructor:!1,hadSuperClass:t},i=[],r=this.startNode();if(r.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!_this65.match(8);)if(_this65.eat(13)){if(i.length>0)throw _this65.raise(p.DecoratorSemicolon,{at:_this65.state.lastTokEndLoc})}else if(_this65.match(26))i.push(_this65.parseDecorator());else{var n=_this65.startNode();i.length&&(n.decorators=i,_this65.resetStartLocationFromNode(n,i[0]),i=[]),_this65.parseClassMember(r,n,s),"constructor"===n.kind&&n.decorators&&n.decorators.length>0&&_this65.raise(p.DecoratorConstructor,{at:n})}})),this.state.strict=e,this.next(),i.length)throw this.raise(p.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(r,"ClassBody")}},{key:"parseClassMemberFromModifier",value:function parseClassMemberFromModifier(t,e){var s=this.parseIdentifier(!0);if(this.isClassMethod()){var i=e;return i.kind="method",i.computed=!1,i.key=s,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){var _i22=e;return _i22.computed=!1,_i22.key=s,_i22.static=!1,t.body.push(this.parseClassProperty(_i22)),!0}return this.resetPreviousNodeTrailingComments(s),!1}},{key:"parseClassMember",value:function parseClassMember(t,e,s){var i=this.isContextual(104);if(i){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,s,i)}},{key:"parseClassMemberWithIsStatic",value:function parseClassMemberWithIsStatic(t,e,s,i){var r=e,n=e,o=e,h=e,l=e,c=r,u=r;if(e.static=i,this.parsePropertyNamePrefixOperator(e),this.eat(55)){c.kind="method";var C=this.match(136);return this.parseClassElementName(c),C?void this.pushClassPrivateMethod(t,n,!0,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsGenerator,{at:r.key}),void this.pushClassMethod(t,r,!0,!1,!1,!1))}var f=S(this.state.type)&&!this.state.containsEsc,d=this.match(136),x=this.parseClassElementName(e),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(t,n,!1,!1);var _C=this.isNonstaticConstructor(r),E=!1;_C&&(r.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.DuplicateConstructor,{at:x}),_C&&this.hasPlugin("typescript")&&e.override&&this.raise(p.OverrideOnConstructor,{at:x}),s.hadConstructor=!0,E=s.hadSuperClass),this.pushClassMethod(t,r,!1,!1,_C,E)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o);else if(f&&"async"===x.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);var _C2=this.eat(55);u.optional&&this.unexpected(I),c.kind="method";var _E=this.match(136);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),_E?this.pushClassPrivateMethod(t,n,_C2,!0):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAsync,{at:r.key}),this.pushClassMethod(t,r,_C2,!0,!1,!1))}else if(!f||"get"!==x.name&&"set"!==x.name||this.match(55)&&this.isLineTerminator())if(f&&"accessor"===x.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);var _C4=this.match(136);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,_C4)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(t,h):this.pushClassProperty(t,o):this.unexpected();else{this.resetPreviousNodeTrailingComments(x),c.kind=x.name;var _C3=this.match(136);this.parseClassElementName(r),_C3?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(r)&&this.raise(p.ConstructorIsAccessor,{at:r.key}),this.pushClassMethod(t,r,!1,!1,!1,!1)),this.checkGetterSetterParams(r)}}},{key:"parseClassElementName",value:function parseClassElementName(t){var _this$state6=this.state,e=_this$state6.type,s=_this$state6.value;if((130===e||131===e)&&t.static&&"prototype"===s&&this.raise(p.StaticPrototype,{at:this.state.startLoc}),136===e){"constructor"===s&&this.raise(p.ConstructorClassPrivateField,{at:this.state.startLoc});var i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t)}},{key:"parseClassStaticBlock",value:function parseClassStaticBlock(t,e){var s;this.scope.enter(208);var i=this.state.labels;this.state.labels=[],this.prodParam.enter(te);var r=e.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),null!=(s=e.decorators)&&s.length&&this.raise(p.DecoratorStaticBlock,{at:e})}},{key:"pushClassProperty",value:function pushClassProperty(t,e){!e.computed&&("constructor"===e.key.name||"constructor"===e.key.value)&&this.raise(p.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e))}},{key:"pushClassPrivateProperty",value:function pushClassPrivateProperty(t,e){var s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}},{key:"pushClassAccessorProperty",value:function pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){var r=e.key;("constructor"===r.name||"constructor"===r.value)&&this.raise(p.ConstructorClassField,{at:r})}var i=this.parseClassAccessorProperty(e);t.body.push(i),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}},{key:"pushClassMethod",value:function pushClassMethod(t,e,s,i,r,n){t.body.push(this.parseMethod(e,s,i,r,n,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function pushClassPrivateMethod(t,e,s,i){var r=this.parseMethod(e,s,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(r);var n="get"===r.kind?r.static?6:2:"set"===r.kind?r.static?5:1:0;this.declareClassPrivateMethodInScope(r,n)}},{key:"declareClassPrivateMethodInScope",value:function declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}},{key:"parsePostMemberNameModifiers",value:function parsePostMemberNameModifiers(t){}},{key:"parseClassPrivateProperty",value:function parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}},{key:"parseClassAccessorProperty",value:function parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}},{key:"parseInitializer",value:function parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(hs()),this.prodParam.enter(te),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}},{key:"parseClassId",value:function parseClassId(t,e,s){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(S(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,i);else{if(!s&&e)throw this.raise(p.MissingClassName,{at:this.state.startLoc});t.id=null}}},{key:"parseClassSuper",value:function parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}},{key:"parseExport",value:function parseExport(t,e){var s=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,s),r=!i||this.eat(12),n=r&&this.eatExportStar(t),o=n&&this.maybeParseExportNamespaceSpecifier(t),h=r&&(!o||this.eat(12)),l=i||n;if(n&&!o){if(i&&this.unexpected(),e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}var u,c=this.maybeParseExportNamedSpecifiers(t);if(i&&r&&!n&&!c&&this.unexpected(null,5),o&&h&&this.unexpected(null,97),l||c){if(u=!1,e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,l)}else u=this.maybeParseExportDeclaration(t);if(l||c||u){var f,d=t;if(this.checkExport(d,!0,!1,!!d.source),"ClassDeclaration"===(null==(f=d.declaration)?void 0:f.type))this.maybeTakeDecorators(e,d.declaration,d);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){var _d3=t,x=this.parseExportDefaultExpression();if(_d3.declaration=x,"ClassDeclaration"===x.type)this.maybeTakeDecorators(e,x,_d3);else if(e)throw this.raise(p.UnsupportedDecoratorExport,{at:t});return this.checkExport(_d3,!0,!0),this.finishNode(_d3,"ExportDefaultDeclaration")}this.unexpected(null,5)}},{key:"eatExportStar",value:function eatExportStar(t){return this.eat(55)}},{key:"maybeParseExportDefaultSpecifier",value:function maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);var s=e||this.parseIdentifier(!0),i=this.startNodeAtNode(s);return i.exported=s,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);var e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function maybeParseExportNamedSpecifiers(t){if(this.match(5)){var _t$specifiers;t.specifiers||(t.specifiers=[]);var e="type"===t.exportKind;return(_t$specifiers=t.specifiers).push.apply(_t$specifiers,_toConsumableArray(this.parseExportSpecifiers(e))),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}},{key:"maybeParseExportDeclaration",value:function maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0)}},{key:"isAsyncFunction",value:function isAsyncFunction(){if(!this.isContextual(95))return!1;var t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}},{key:"parseExportDefaultExpression",value:function parseExportDefaultExpression(){var t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(p.UnsupportedDefaultExport,{at:this.state.startLoc});var e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}},{key:"parseExportDeclaration",value:function parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}},{key:"isExportDefaultSpecifier",value:function isExportDefaultSpecifier(){var t=this.state.type;if(S(t)){if(95===t&&!this.state.containsEsc||99===t)return!1;if((128===t||127===t)&&!this.state.containsEsc){var i=this.lookahead().type;if(S(i)&&97!==i||5===i)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||S(this.state.type)&&s)return!0;if(this.match(65)&&s){var _i23=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===_i23||39===_i23}return!1}},{key:"parseExportFrom",value:function parseExportFrom(t,e){this.eatContextual(97)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}},{key:"shouldParseExportDeclaration",value:function shouldParseExportDeclaration(){var t=this.state.type;return 26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(p.DecoratorBeforeExport,{at:this.state.startLoc}),!0):74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function checkExport(t,e,s,i){var r;if(e)if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n,o=t.declaration;"Identifier"===o.type&&"from"===o.name&&o.end-o.start==4&&(null==(n=o.extra)||!n.parenthesized)&&this.raise(p.ExportDefaultFromAsIdentifier,{at:o})}}else if(null!=(r=t.specifiers)&&r.length){var _step15,_iterator15=_createForOfIteratorHelper(t.specifiers);try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _o5=_step15.value,h=_o5.exported,l="Identifier"===h.type?h.name:h.value;if(this.checkDuplicateExports(_o5,l),!i&&_o5.local){var c=_o5.local;"Identifier"!==c.type?this.raise(p.ExportBindingIsString,{at:_o5,localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}}else if(t.declaration)if("FunctionDeclaration"===t.declaration.type||"ClassDeclaration"===t.declaration.type){var _o6=t.declaration.id;if(!_o6)throw new Error("Assertion failure");this.checkDuplicateExports(t,_o6.name)}else if("VariableDeclaration"===t.declaration.type){var _step16,_iterator16=_createForOfIteratorHelper(t.declaration.declarations);try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _o7=_step16.value;this.checkDeclaration(_o7.id)}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}}}},{key:"checkDeclaration",value:function checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type){var _step17,_iterator17=_createForOfIteratorHelper(t.properties);try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var e=_step17.value;this.checkDeclaration(e)}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}}else if("ArrayPattern"===t.type){var _step18,_iterator18=_createForOfIteratorHelper(t.elements);try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _e6=_step18.value;_e6&&this.checkDeclaration(_e6)}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}}else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}},{key:"checkDuplicateExports",value:function checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(p.DuplicateDefaultExport,{at:t}):this.raise(p.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e)}},{key:"parseExportSpecifiers",value:function parseExportSpecifiers(t){var e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;var i=this.isContextual(128),r=this.match(131),n=this.startNode();n.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(n,r,t,i))}return e}},{key:"parseExportSpecifier",value:function parseExportSpecifier(t,e,s,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Gi(t.local):t.exported||(t.exported=V(t.local)),this.finishNode(t,"ExportSpecifier")}},{key:"parseModuleExportName",value:function parseModuleExportName(){if(this.match(131)){var t=this.parseStringLiteral(this.state.value),e=t.value.match(gr);return e&&this.raise(p.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}},{key:"isJSONModuleImport",value:function isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((function(_ref101){var e=_ref101.key;return"json"===_ref101.value.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value)}))}},{key:"checkImportReflection",value:function checkImportReflection(t){var e;t.module&&((1!==t.specifiers.length||"ImportDefaultSpecifier"!==t.specifiers[0].type)&&this.raise(p.ImportReflectionNotBinding,{at:t.specifiers[0].loc.start}),(null==(e=t.assertions)?void 0:e.length)>0&&this.raise(p.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start}))}},{key:"checkJSONModuleImport",value:function checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){var e=t.specifiers;if(null!=e){var s=e.find((function(i){var r;if("ExportSpecifier"===i.type?r=i.local:"ImportSpecifier"===i.type&&(r=i.imported),void 0!==r)return"Identifier"===r.type?"default"!==r.name:"default"!==r.value}));void 0!==s&&this.raise(p.ImportJSONBindingNotDefault,{at:s.loc.start})}}}},{key:"isPotentialImportPhase",value:function isPotentialImportPhase(t){return!t&&this.isContextual(125)}},{key:"applyImportPhase",value:function applyImportPhase(t,e,s,i){e||("module"===s?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1))}},{key:"parseMaybeImportPhase",value:function parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;var s=this.parseIdentifier(!0),i=this.state.type;return(M(i)?97!==i||102===this.lookaheadCharCode():12!==i)?(this.resetPreviousIdentifierLeadingComments(s),this.applyImportPhase(t,e,s.name,s.loc.start),null):(this.applyImportPhase(t,e,null),s)}},{key:"isPrecedingIdImportPhase",value:function isPrecedingIdImportPhase(t){var e=this.state.type;return S(e)?97!==e||102===this.lookaheadCharCode():12!==e}},{key:"parseImport",value:function parseImport(t){return this.match(131)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}},{key:"parseImportSpecifiersAndAfter",value:function parseImportSpecifiersAndAfter(t,e){t.specifiers=[];var i=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(t);return i&&!r&&this.parseNamedImportSpecifiers(t),this.expectContextual(97),this.parseImportSourceAndAttributes(t)}},{key:"parseImportSourceAndAttributes",value:function parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}},{key:"parseImportSource",value:function parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}},{key:"parseImportSpecifierLocal",value:function parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s))}},{key:"finishImportSpecifier",value:function finishImportSpecifier(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(t.local,{in:{type:e},binding:s}),this.finishNode(t,e)}},{key:"parseImportAttributes",value:function parseImportAttributes(){this.expect(5);var t=[],e=new Set;do{if(this.match(8))break;var s=this.startNode(),i=this.state.value;if(e.has(i)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:i}),e.add(i),this.match(131)?s.key=this.parseStringLiteral(i):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}},{key:"parseModuleAttributes",value:function parseModuleAttributes(){var t=[],e=new Set;do{var s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(p.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(p.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(131))throw this.raise(p.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(s,"ImportAttribute"))}while(this.eat(12));return t}},{key:"maybeParseImportAttributes",value:function maybeParseImportAttributes(t){var e,s=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),s=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(p.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else{if(!this.hasPlugin("moduleAttributes"))return;e=[]}!s&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}},{key:"maybeParseDefaultImportSpecifier",value:function maybeParseDefaultImportSpecifier(t,e){if(e){var s=this.startNodeAtNode(e);return s.local=e,t.specifiers.push(this.finishImportSpecifier(s,"ImportDefaultSpecifier")),!0}return!!M(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function maybeParseStarImportSpecifier(t){if(this.match(55)){var e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function parseNamedImportSpecifiers(t){var e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(p.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}var s=this.startNode(),i=this.match(131),r=this.isContextual(128);s.imported=this.parseModuleExportName();var n=this.parseImportSpecifier(s,i,"type"===t.importKind||"typeof"===t.importKind,r,void 0);t.specifiers.push(n)}}},{key:"parseImportSpecifier",value:function parseImportSpecifier(t,e,s,i,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else{var n=t.imported;if(e)throw this.raise(p.ImportBindingIsString,{at:t,importName:n.value});this.checkReservedWord(n.name,t.loc.start,!0,!0),t.local||(t.local=V(n))}return this.finishImportSpecifier(t,"ImportSpecifier",r)}},{key:"isThisParam",value:function isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}]),Pt}(xt),Be=function(_Pt){_inherits(Be,_Pt);var _super19=_createSuper(Be);function Be(t,e){var _this66;return _classCallCheck(this,Be),t=xr(t),(_this66=_super19.call(this,t,e)).options=t,_this66.initializeScopes(),_this66.plugins=br(_this66.options.plugins),_this66.filename=t.sourceFilename,_this66}return _createClass(Be,[{key:"getScopeHandler",value:function getScopeHandler(){return ge}},{key:"parse",value:function parse(){this.enterInitialScopes();var t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}}]),Be}(Pt);function br(a){var _step19,t=new Map,_iterator19=_createForOfIteratorHelper(a);try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var e=_step19.value,_ref103=_slicedToArray(Array.isArray(e)?e:[e,{}],2),s=_ref103[0],i=_ref103[1];t.has(s)||t.set(s,i||{})}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}return t}function Ar(a,t){var e;if("unambiguous"!==(null==(e=t)?void 0:e.sourceType))return me(t,a).parse();t=Object.assign({},t);try{t.sourceType="module";var s=me(t,a),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",me(t,a).parse()}catch{}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",me(t,a).parse()}catch{}throw s}}function Sr(a,t){var e=me(t,a);return e.options.strictMode&&(e.state.strict=!0),e.getExpression()}function wr(a){for(var t={},_i24=0,_Object$keys4=Object.keys(a);_i24<_Object$keys4.length;_i24++){var e=_Object$keys4[_i24];t[e]=_(a[e])}return t}var Cr=wr(xi);function me(a,t){var e=Be;return null!=a&&a.plugins&&(mr(a.plugins),e=Er(a.plugins)),new e(a,t)}var Gt={};function Er(a){var t=yr.filter((function(i){return k(a,i)})),e=t.join("/"),s=Gt[e];if(!s){s=Be;var _step20,_iterator20=_createForOfIteratorHelper(t);try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var i=_step20.value;s=fs[i](s)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}Gt[e]=s}return s}_e.parse=Ar,_e.parseExpression=Sr,_e.tokTypes=Cr})),Ns=Ft((function(G){Object.defineProperty(G,"__esModule",{value:!0}),G.extract=_r,G.parse=jr,G.parseWithComments=Is,G.print=$r,G.strip=Ur;var Mr=/\*\/$/,Or=/^\/\*\*?/,Cs=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Fr=/(^|\s+)\/\/([^\r\n]*)/g,As=/^(\r?\n)+/,Br=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Ss=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Rr=/(\r?\n|^) *\* ?/g,Es=[];function _r(a){var t=a.match(Cs);return t?t[0].trimLeft():""}function Ur(a){var t=a.match(Cs);return t&&t[0]?a.substring(t[0].length):a}function jr(a){return Is(a).pragmas}function Is(a){var t="\n";a=a.replace(Or,"").replace(Mr,"").replace(Rr,"$1");for(var e="";e!==a;)e=a,a=a.replace(Br,`${t}$1 $2${t}`);a=a.replace(As,"").trimRight();for(var r,s=Object.create(null),i=a.replace(Ss,"").replace(As,"").trimRight();r=Ss.exec(a);){var n=r[2].replace(Fr,"");"string"==typeof s[r[1]]||Array.isArray(s[r[1]])?s[r[1]]=Es.concat(s[r[1]],n):s[r[1]]=n}return{comments:i,pragmas:s}}function $r(_ref104){var _ref104$comments=_ref104.comments,a=void 0===_ref104$comments?"":_ref104$comments,_ref104$pragmas=_ref104.pragmas,t=void 0===_ref104$pragmas?{}:_ref104$pragmas,e="\n",s="/**",i=" *",r=" */",n=Object.keys(t),o=n.map((function(l){return ws(l,t[l])})).reduce((function(l,c){return l.concat(c)}),[]).map((function(l){return`${i} ${l}${e}`})).join("");if(!a){if(0===n.length)return"";if(1===n.length&&!Array.isArray(t[n[0]])){var l=t[n[0]];return`${s} ${ws(n[0],l)[0]}${r}`}}var h=a.split(e).map((function(l){return`${i} ${l}`})).join(e)+e;return s+e+(a?h:"")+(a&&n.length?i+e:"")+o+r}function ws(a,t){return Es.concat(t).map((function(e){return`@${a} ${e}`.trim()}))}})),fa={};si(fa,{parsers:function(){return da}});var Ke=qe(kt(),1);function Ir(a){var _step21,t=[],_iterator21=_createForOfIteratorHelper(a);try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var e=_step21.value;try{return e()}catch(s){t.push(s)}}}catch(err){_iterator21.e(err)}finally{_iterator21.f()}throw Object.assign(new Error("All combinations failed"),{errors:t})}var ms=Ir;function Nr(a){if(!a.startsWith("#!"))return"";var t=a.indexOf("\n");return-1===t?a:a.slice(0,t)}var Ue=Nr;function kr(a,t){if(!1===t)return!1;if("/"===a.charAt(t)&&"*"===a.charAt(t+1))for(var e=t+2;e=0&&n0}var Y=zr;function D(a){var _ref106,s,t=a.range?a.range[0]:a.start,e=null!==(_ref106=null==(s=a.declaration)?void 0:s.decorators)&&void 0!==_ref106?_ref106:a.decorators;return Y(e)?Math.min(D(e[0]),t):t}function B(a){return a.range?a.range[1]:a.end}function Kr(a){return a="function"==typeof a?{parse:a}:a,Object.assign({astFormat:"estree",hasPragma:ks,locStart:D,locEnd:B},a)}var oe=Kr;function qr(a,t){var e=new SyntaxError(a+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(e,t)}var $e=qr;function Hr(a){var t=a.message,e=a.loc;return $e(t.replace(/ \(.*\)$/,""),{loc:{start:{line:e?e.line:0,column:e?e.column+1:0}},cause:a})}var be=Hr,Wr=function(a,t,e){if(!a||null!=t)return Array.isArray(t)||"string"==typeof t?t[e<0?t.length+e:e]:t.at(e)},vt=Wr;function Jr(a){return a=new Set(a),function(t){return a.has(null==t?void 0:t.type)}}var Ae=Jr(["Block","CommentBlock","MultiLine"]);function Gr(a){return Ae(a)&&"*"===a.value[0]&&/@(?:type|satisfies)\b/.test(a.value)}var Ls=Gr;function Yr(a){var t=`*${a.value}*`.split("\n");return t.length>1&&t.every((function(e){return"*"===e.trimStart()[0]}))}var Lt=Yr,Se=null;function we(a){if(null!==Se&&(Se.property,1)){var t=Se;return Se=we.prototype=null,t}return Se=we.prototype=null!=a?a:Object.create(null),new we}for(var Qr=10,a=0;a<=Qr;a++)we();function Dt(a){return we(a)}function Zr(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"type";function e(s){var i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return Dt(a),e}var Os=Zr({ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]});function Mt(a,t){if(null===a||"object"!=typeof a)return a;if(Array.isArray(a)){for(var s=0;s=0;_n10--){var o=a.comments[_n10];B(o)===D(_r17)&&Ae(o)&&Ae(_r17)&&Lt(o)&&Lt(_r17)&&(a.comments.splice(_n10+1,1),o.value+="*//*"+_r17.value,o.range=[D(o),B(_r17)]),_r17=o}return"Program"===a.type&&(a.range=[0,s.length]),a;function i(r,n){";"!==s[B(n)]&&(r.range=[D(r),B(n)])}}function Fs(a){return"LogicalExpression"===a.type&&"LogicalExpression"===a.right.type&&a.operator===a.right.operator}function Ot(a){return Fs(a)?Ot({type:"LogicalExpression",operator:a.operator,left:Ot({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[D(a.left),B(a.right.left)]}),right:a.right.right,range:[D(a),B(a)]}):a}var Bs=ta;function sa(a){var t=a.filepath;if(t){if((t=t.toLowerCase()).endsWith(".cjs"))return"script";if(t.endsWith(".mjs"))return"module"}}var Rs=sa;function ia(a,t){var _t$type=t.type,e=void 0===_t$type?"JsExpressionRoot":_t$type,s=t.rootMarker,i=t.text,r=a.tokens,n=a.comments;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var ze=ia,he=function(a){return oe(la(a))},ra={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}]],tokens:!0,ranges:!0},aa=["recordAndTuple",{syntaxType:"hash"}],_s="v8intrinsic",Us=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],R=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ra;return Object.assign({},t,{plugins:[].concat(_toConsumableArray(t.plugins),_toConsumableArray(a))})},na=/@(?:no)?flow\b/;function oa(a,t){var i;if(null!=(i=t.filepath)&&i.endsWith(".js.flow"))return!0;var e=Ue(a);e&&(a=a.slice(e.length));var s=bs(a,0);return!1!==s&&(a=a.slice(0,s)),na.test(a)}function ha(a,t,e){var s=a(t,e),i=s.errors.find((function(r){return!ca.has(r.reasonCode)}));if(i)throw i;return s}function la(_ref107){var _ref107$isExpression=_ref107.isExpression,a=void 0!==_ref107$isExpression&&_ref107$isExpression,t=_ref107.optionsCombinations;return function(e){var _s$__babelSourceType,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(("babel"===s.parser||"__babel_estree"===s.parser)&&oa(e,s))return s.parser="babel-flow",qs.parse(e,s);var i=t;"script"===(null!==(_s$__babelSourceType=s.__babelSourceType)&&void 0!==_s$__babelSourceType?_s$__babelSourceType:Rs(s))&&(i=i.map((function(l){return Object.assign({},l,{sourceType:"script"})}))),/#[[{]/.test(e)&&(i=i.map((function(l){return R([aa],l)})));var n=/%[A-Z]/.test(e);e.includes("|>")?i=(n?[].concat(Us,[_s]):Us).flatMap((function(c){return i.map((function(u){return R([c],u)}))})):n&&(i=i.map((function(l){return R([_s],l)})));var h,o=a?Ke.parseExpression:Ke.parse;try{h=ms(i.map((function(l){return function(){return ha(o,e,l)}})))}catch(_ref108){var l=_slicedToArray(_ref108.errors,1)[0];throw be(l)}return a&&(h=ze(h,{text:e,rootMarker:s.rootMarker})),Bs(h,{parser:"babel",text:e})}}var ca=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","MixedLabeledAndUnlabeledElements","DuplicateAccessibilityModifier","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Ks=[R(["jsx"])],js=he({optionsCombinations:Ks}),$s=he({optionsCombinations:[R(["jsx","typescript"]),R(["typescript"])]}),Vs=he({isExpression:!0,optionsCombinations:[R(["jsx"])]}),zs=he({isExpression:!0,optionsCombinations:[R(["typescript"])]}),qs=he({optionsCombinations:[R(["jsx",["flow",{all:!0,enums:!0}],"flowComments"])]}),pa=he({optionsCombinations:Ks.map((function(a){return R(["estree"],a)}))}),Hs={babel:js,"babel-flow":qs,"babel-ts":$s,__js_expression:Vs,__ts_expression:zs,__vue_expression:Vs,__vue_ts_expression:zs,__vue_event_binding:js,__vue_ts_event_binding:$s,__babel_estree:pa},Js=qe(kt(),1);function Xs(){var _a$allowComments=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).allowComments,t=void 0===_a$allowComments||_a$allowComments;return function(s){var i;try{i=(0,Js.parseExpression)(s,{tokens:!0,ranges:!0})}catch(r){throw"MissingPlugin"===(null==r?void 0:r.reasonCode)||"MissingOneOfPlugins"===(null==r?void 0:r.reasonCode)?be({message:"Unexpected token",loc:r.loc}):be(r)}if(!t&&Y(i.comments))throw H(i.comments[0],"Comment");return le(i),ze(i,{type:"JsonRoot",text:s})}}function H(a,t){var _map2=_slicedToArray([a.loc.start,a.loc.end].map((function(_ref109){return{line:_ref109.line,column:_ref109.column+1}})),2),e=_map2[0],s=_map2[1];return $e(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function le(a){switch(a.type){case"ArrayExpression":var _step22,_iterator22=_createForOfIteratorHelper(a.elements);try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var t=_step22.value;null!==t&&le(t)}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}return;case"ObjectExpression":var _step23,_iterator23=_createForOfIteratorHelper(a.properties);try{for(_iterator23.s();!(_step23=_iterator23.n()).done;)le(_step23.value)}catch(err){_iterator23.e(err)}finally{_iterator23.f()}return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");return"Identifier"!==a.key.type&&le(a.key),void le(a.value);case"UnaryExpression":var _t6=a.operator,e=a.argument;if("+"!==_t6&&"-"!==_t6)throw H(a,`Operator '${a.operator}'`);if("NumericLiteral"===e.type||"Identifier"===e.type&&("Infinity"===e.name||"NaN"===e.name))return;throw H(e,`Operator '${_t6}' before '${e.type}'`);case"Identifier":if("Infinity"!==a.name&&"NaN"!==a.name&&"undefined"!==a.name)throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Y(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");var _step24,_iterator24=_createForOfIteratorHelper(a.quasis);try{for(_iterator24.s();!(_step24=_iterator24.n()).done;)le(_step24.value)}catch(err){_iterator24.e(err)}finally{_iterator24.f()}return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Ws=Xs(),Gs={json:oe({parse:Ws,hasPragma:function(){return!0}}),json5:oe(Ws),"json-stringify":oe({parse:Xs({allowComments:!1}),astFormat:"estree-json"})},da=Object.assign({},Hs,Gs);return ii(fa)}();return i.default||i}()},"./node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),module.exports=function(path){var isExtendedLengthPath=/^\\\\\?\\/.test(path),hasNonAscii=/[^\u0000-\u0080]+/.test(path);return isExtendedLengthPath||hasNonAscii?path:path.replace(/\\/g,"/")}},"./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GetIntrinsic=__webpack_require__("./node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"),callBind=__webpack_require__("./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBind(intrinsic):intrinsic}},"./node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var bind=__webpack_require__("./node_modules/.pnpm/function-bind@1.1.1/node_modules/function-bind/index.js"),GetIntrinsic=__webpack_require__("./node_modules/.pnpm/get-intrinsic@1.2.0/node_modules/get-intrinsic/index.js"),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=null}module.exports=function callBind(originalFunction){var func=$reflectApply(bind,$call,arguments);$gOPD&&$defineProperty&&($gOPD(func,"length").configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))}));return func};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind},"./node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function clsx(){for(var e,t,f=0,n="";f{var parent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/stable/symbol/index.js");module.exports=parent},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/es/symbol/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.has-instance.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.is-concat-spreadable.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.match-all.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.search.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.species.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.unscopables.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.to-string-tag.js");var path=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/path.js");module.exports=path.Symbol},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/features/symbol/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/full/symbol/index.js")},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/full/symbol/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{var parent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/actual/symbol/index.js");__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.async-dispose.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.dispose.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.matcher.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.metadata-key.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.observable.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.metadata.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.pattern-match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/esnext.symbol.replace-all.js"),module.exports=parent},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),$TypeError=TypeError;module.exports=function(argument){if(isCallable(argument))return argument;throw $TypeError(tryToString(argument)+" is not a function")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-constructor.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isConstructor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-constructor.js"),tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),$TypeError=TypeError;module.exports=function(argument){if(isConstructor(argument))return argument;throw $TypeError(tryToString(argument)+" is not a constructor")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-possible-prototype.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),$String=String,$TypeError=TypeError;module.exports=function(argument){if("object"==typeof argument||isCallable(argument))return argument;throw $TypeError("Can't set "+$String(argument)+" as a prototype")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/add-to-unscopables.js":(module,__unused_webpack_exports,__webpack_require__)=>{var wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),create=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-create.js"),defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js").f,UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;null==ArrayPrototype[UNSCOPABLES]&&defineProperty(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)}),module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=!0}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/advance-string-index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var charAt=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/string-multibyte.js").charAt;module.exports=function(S,index,unicode){return index+(unicode?charAt(S,index).length:1)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-instance.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-is-prototype-of.js"),$TypeError=TypeError;module.exports=function(it,Prototype){if(isPrototypeOf(Prototype,it))return it;throw $TypeError("Incorrect invocation")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),$String=String,$TypeError=TypeError;module.exports=function(argument){if(isObject(argument))return argument;throw $TypeError($String(argument)+" is not an object")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer-basic-detection.js":module=>{module.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer-non-extensible.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=fails((function(){if("function"==typeof ArrayBuffer){var buffer=new ArrayBuffer(8);Object.isExtensible(buffer)&&Object.defineProperty(buffer,"a",{value:8})}}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer-view-core.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var NAME,Constructor,Prototype,NATIVE_ARRAY_BUFFER=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer-basic-detection.js"),DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof.js"),tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js").f,isPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-is-prototype-of.js"),getPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-set-prototype-of.js"),wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),uid=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/uid.js"),InternalStateModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-state.js"),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,Int8Array=global.Int8Array,Int8ArrayPrototype=Int8Array&&Int8Array.prototype,Uint8ClampedArray=global.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray&&Uint8ClampedArray.prototype,TypedArray=Int8Array&&getPrototypeOf(Int8Array),TypedArrayPrototype=Int8ArrayPrototype&&getPrototypeOf(Int8ArrayPrototype),ObjectPrototype=Object.prototype,TypeError=global.TypeError,TO_STRING_TAG=wellKnownSymbol("toStringTag"),TYPED_ARRAY_TAG=uid("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf&&"Opera"!==classof(global.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(it){var proto=getPrototypeOf(it);if(isObject(proto)){var state=getInternalState(proto);return state&&hasOwn(state,"TypedArrayConstructor")?state.TypedArrayConstructor:getTypedArrayConstructor(proto)}},isTypedArray=function(it){if(!isObject(it))return!1;var klass=classof(it);return hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)};for(NAME in TypedArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)?enforceInternalState(Prototype).TypedArrayConstructor=Constructor:NATIVE_ARRAY_BUFFER_VIEWS=!1;for(NAME in BigIntArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)&&(enforceInternalState(Prototype).TypedArrayConstructor=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS||!isCallable(TypedArray)||TypedArray===Function.prototype)&&(TypedArray=function TypedArray(){throw TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME],TypedArray);if((!NATIVE_ARRAY_BUFFER_VIEWS||!TypedArrayPrototype||TypedArrayPrototype===ObjectPrototype)&&(TypedArrayPrototype=TypedArray.prototype,NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME].prototype,TypedArrayPrototype);if(NATIVE_ARRAY_BUFFER_VIEWS&&getPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype&&setPrototypeOf(Uint8ClampedArrayPrototype,TypedArrayPrototype),DESCRIPTORS&&!hasOwn(TypedArrayPrototype,TO_STRING_TAG))for(NAME in TYPED_ARRAY_TAG_REQUIRED=!0,defineProperty(TypedArrayPrototype,TO_STRING_TAG,{get:function(){return isObject(this)?this[TYPED_ARRAY_TAG]:void 0}}),TypedArrayConstructorsList)global[NAME]&&createNonEnumerableProperty(global[NAME],TYPED_ARRAY_TAG,NAME);module.exports={NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG,aTypedArray:function(it){if(isTypedArray(it))return it;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(C){if(isCallable(C)&&(!setPrototypeOf||isPrototypeOf(TypedArray,C)))return C;throw TypeError(tryToString(C)+" is not a typed array constructor")},exportTypedArrayMethod:function(KEY,property,forced,options){if(DESCRIPTORS){if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&hasOwn(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY]}catch(error){try{TypedArrayConstructor.prototype[KEY]=property}catch(error2){}}}TypedArrayPrototype[KEY]&&!forced||defineBuiltIn(TypedArrayPrototype,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&Int8ArrayPrototype[KEY]||property,options)}},exportTypedArrayStaticMethod:function(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(DESCRIPTORS){if(setPrototypeOf){if(forced)for(ARRAY in TypedArrayConstructorsList)if((TypedArrayConstructor=global[ARRAY])&&hasOwn(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY]}catch(error){}if(TypedArray[KEY]&&!forced)return;try{return defineBuiltIn(TypedArray,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&TypedArray[KEY]||property)}catch(error){}}for(ARRAY in TypedArrayConstructorsList)!(TypedArrayConstructor=global[ARRAY])||TypedArrayConstructor[KEY]&&!forced||defineBuiltIn(TypedArrayConstructor,KEY,property)}},getTypedArrayConstructor,isView:function isView(it){if(!isObject(it))return!1;var klass=classof(it);return"DataView"===klass||hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)},isTypedArray,TypedArray,TypedArrayPrototype}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),NATIVE_ARRAY_BUFFER=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-buffer-basic-detection.js"),FunctionName=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-name.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIns=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-ins.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),anInstance=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-instance.js"),toIntegerOrInfinity=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-integer-or-infinity.js"),toLength=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-length.js"),toIndex=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-index.js"),IEEE754=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/ieee754.js"),getPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-set-prototype-of.js"),getOwnPropertyNames=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-names.js").f,defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js").f,arrayFill=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-fill.js"),arraySlice=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-slice-simple.js"),setToStringTag=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/set-to-string-tag.js"),InternalStateModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-state.js"),PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,NativeArrayBuffer=global.ArrayBuffer,$ArrayBuffer=NativeArrayBuffer,ArrayBufferPrototype=$ArrayBuffer&&$ArrayBuffer.prototype,$DataView=global.DataView,DataViewPrototype=$DataView&&$DataView.prototype,ObjectPrototype=Object.prototype,Array=global.Array,RangeError=global.RangeError,fill=uncurryThis(arrayFill),reverse=uncurryThis([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(number){return[255&number]},packInt16=function(number){return[255&number,number>>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(number,23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter=function(Constructor,key){defineProperty(Constructor.prototype,key,{get:function(){return getInternalState(this)[key]}})},get=function(view,count,index,isLittleEndian){var intIndex=toIndex(index),store=getInternalState(view);if(intIndex+count>store.byteLength)throw RangeError("Wrong index");var bytes=getInternalState(store.buffer).bytes,start=intIndex+store.byteOffset,pack=arraySlice(bytes,start,start+count);return isLittleEndian?pack:reverse(pack)},set=function(view,count,index,conversion,value,isLittleEndian){var intIndex=toIndex(index),store=getInternalState(view);if(intIndex+count>store.byteLength)throw RangeError("Wrong index");for(var bytes=getInternalState(store.buffer).bytes,start=intIndex+store.byteOffset,pack=conversion(+value),i=0;ij;)(key=keys[j++])in $ArrayBuffer||createNonEnumerableProperty($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype.constructor=$ArrayBuffer}setPrototypeOf&&getPrototypeOf(DataViewPrototype)!==ObjectPrototype&&setPrototypeOf(DataViewPrototype,ObjectPrototype);var testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis(DataViewPrototype.setInt8);testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),!testView.getInt8(0)&&testView.getInt8(1)||defineBuiltIns(DataViewPrototype,{setInt8:function setInt8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype=($ArrayBuffer=function ArrayBuffer(length){anInstance(this,ArrayBufferPrototype);var byteLength=toIndex(length);setInternalState(this,{bytes:fill(Array(byteLength),0),byteLength}),DESCRIPTORS||(this.byteLength=byteLength)}).prototype,DataViewPrototype=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,DataViewPrototype),anInstance(buffer,ArrayBufferPrototype);var bufferLength=getInternalState(buffer).byteLength,offset=toIntegerOrInfinity(byteOffset);if(offset<0||offset>bufferLength)throw RangeError("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength(byteLength))>bufferLength)throw RangeError("Wrong length");setInternalState(this,{buffer,byteLength,byteOffset:offset}),DESCRIPTORS||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS&&(addGetter($ArrayBuffer,"byteLength"),addGetter($DataView,"buffer"),addGetter($DataView,"byteLength"),addGetter($DataView,"byteOffset")),defineBuiltIns(DataViewPrototype,{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1?arguments[1]:void 0);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1?arguments[1]:void 0);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packFloat32,value,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packFloat64,value,arguments.length>2?arguments[2]:void 0)}});setToStringTag($ArrayBuffer,"ArrayBuffer"),setToStringTag($DataView,"DataView"),module.exports={ArrayBuffer:$ArrayBuffer,DataView:$DataView}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-copy-within.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),deletePropertyOrThrow=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/delete-property-or-throw.js"),min=Math.min;module.exports=[].copyWithin||function copyWithin(target,start){var O=toObject(this),len=lengthOfArrayLike(O),to=toAbsoluteIndex(target,len),from=toAbsoluteIndex(start,len),end=arguments.length>2?arguments[2]:void 0,count=min((void 0===end?len:toAbsoluteIndex(end,len))-from,len-to),inc=1;for(from0;)from in O?O[to]=O[from]:deletePropertyOrThrow(O,to),to+=inc,from+=inc;return O}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-fill.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js");module.exports=function fill(value){for(var O=toObject(this),length=lengthOfArrayLike(O),argumentsLength=arguments.length,index=toAbsoluteIndex(argumentsLength>1?arguments[1]:void 0,length),end=argumentsLength>2?arguments[2]:void 0,endPos=void 0===end?length:toAbsoluteIndex(end,length);endPos>index;)O[index++]=value;return O}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-for-each.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $forEach=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-iteration.js").forEach,STRICT_METHOD=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-method-is-strict.js")("forEach");module.exports=STRICT_METHOD?[].forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:void 0)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-from-constructor-and-list.js":(module,__unused_webpack_exports,__webpack_require__)=>{var lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js");module.exports=function(Constructor,list){for(var index=0,length=lengthOfArrayLike(list),result=new Constructor(length);length>index;)result[index]=list[index++];return result}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-from.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),callWithSafeIterationClosing=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/call-with-safe-iteration-closing.js"),isArrayIteratorMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array-iterator-method.js"),isConstructor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-constructor.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),createProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property.js"),getIterator=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator.js"),getIteratorMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator-method.js"),$Array=Array;module.exports=function from(arrayLike){var O=toObject(arrayLike),IS_CONSTRUCTOR=isConstructor(this),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn;mapping&&(mapfn=bind(mapfn,argumentsLength>2?arguments[2]:void 0));var length,result,step,iterator,next,value,iteratorMethod=getIteratorMethod(O),index=0;if(!iteratorMethod||this===$Array&&isArrayIteratorMethod(iteratorMethod))for(length=lengthOfArrayLike(O),result=IS_CONSTRUCTOR?new this(length):$Array(length);length>index;index++)value=mapping?mapfn(O[index],index):O[index],createProperty(result,index,value);else for(next=(iterator=getIterator(O,iteratorMethod)).next,result=IS_CONSTRUCTOR?new this:[];!(step=call(next,iterator)).done;index++)value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],!0):step.value,createProperty(result,index,value);return result.length=index,result}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-includes.js":(module,__unused_webpack_exports,__webpack_require__)=>{var toIndexedObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-indexed-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var value,O=toIndexedObject($this),length=lengthOfArrayLike(O),index=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-iteration.js":(module,__unused_webpack_exports,__webpack_require__)=>{var bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),IndexedObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/indexed-object.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),arraySpeciesCreate=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-species-create.js"),push=uncurryThis([].push),createMethod=function(TYPE){var IS_MAP=1==TYPE,IS_FILTER=2==TYPE,IS_SOME=3==TYPE,IS_EVERY=4==TYPE,IS_FIND_INDEX=6==TYPE,IS_FILTER_REJECT=7==TYPE,NO_HOLES=5==TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject($this),self=IndexedObject(O),boundFunction=bind(callbackfn,that),length=lengthOfArrayLike(self),index=0,create=specificCreate||arraySpeciesCreate,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_REJECT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push(target,value)}else switch(TYPE){case 4:return!1;case 7:push(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-last-index-of.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var apply=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-apply.js"),toIndexedObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-indexed-object.js"),toIntegerOrInfinity=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-integer-or-infinity.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),arrayMethodIsStrict=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-method-is-strict.js"),min=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED=NEGATIVE_ZERO||!STRICT_METHOD;module.exports=FORCED?function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var O=toIndexedObject(this),length=lengthOfArrayLike(O),index=length-1;for(arguments.length>1&&(index=min(index,toIntegerOrInfinity(arguments[1]))),index<0&&(index=length+index);index>=0;index--)if(index in O&&O[index]===searchElement)return index||0;return-1}:$lastIndexOf},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-method-has-species-support.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),V8_VERSION=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-v8-version.js"),SPECIES=wellKnownSymbol("species");module.exports=function(METHOD_NAME){return V8_VERSION>=51||!fails((function(){var array=[];return(array.constructor={})[SPECIES]=function(){return{foo:1}},1!==array[METHOD_NAME](Boolean).foo}))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-method-is-strict.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails((function(){method.call(null,argument||function(){return 1},1)}))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-reduce.js":(module,__unused_webpack_exports,__webpack_require__)=>{var aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),IndexedObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/indexed-object.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),$TypeError=TypeError,createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){aCallable(callbackfn);var O=toObject(that),self=IndexedObject(O),length=lengthOfArrayLike(O),index=IS_RIGHT?length-1:0,i=IS_RIGHT?-1:1;if(argumentsLength<2)for(;;){if(index in self){memo=self[index],index+=i;break}if(index+=i,IS_RIGHT?index<0:length<=index)throw $TypeError("Reduce of empty array with no initial value")}for(;IS_RIGHT?index>=0:length>index;index+=i)index in self&&(memo=callbackfn(memo,self[index],index,O));return memo}};module.exports={left:createMethod(!1),right:createMethod(!0)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-set-length.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),isArray=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array.js"),$TypeError=TypeError,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(error){return error instanceof TypeError}}();module.exports=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(O,length){if(isArray(O)&&!getOwnPropertyDescriptor(O,"length").writable)throw $TypeError("Cannot set read only .length");return O.length=length}:function(O,length){return O.length=length}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-slice-simple.js":(module,__unused_webpack_exports,__webpack_require__)=>{var toAbsoluteIndex=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),createProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property.js"),$Array=Array,max=Math.max;module.exports=function(O,start,end){for(var length=lengthOfArrayLike(O),k=toAbsoluteIndex(start,length),fin=toAbsoluteIndex(void 0===end?length:end,length),result=$Array(max(fin-k,0)),n=0;k{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js");module.exports=uncurryThis([].slice)},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-sort.js":(module,__unused_webpack_exports,__webpack_require__)=>{var arraySlice=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-slice-simple.js"),floor=Math.floor,mergeSort=function(array,comparefn){var length=array.length,middle=floor(length/2);return length<8?insertionSort(array,comparefn):merge(array,mergeSort(arraySlice(array,0,middle),comparefn),mergeSort(arraySlice(array,middle),comparefn),comparefn)},insertionSort=function(array,comparefn){for(var element,j,length=array.length,i=1;i0;)array[j]=array[--j];j!==i++&&(array[j]=element)}return array},merge=function(array,left,right,comparefn){for(var llength=left.length,rlength=right.length,lindex=0,rindex=0;lindex{var isArray=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array.js"),isConstructor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-constructor.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),SPECIES=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("species"),$Array=Array;module.exports=function(originalArray){var C;return isArray(originalArray)&&(C=originalArray.constructor,(isConstructor(C)&&(C===$Array||isArray(C.prototype))||isObject(C)&&null===(C=C[SPECIES]))&&(C=void 0)),void 0===C?$Array:C}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-species-create.js":(module,__unused_webpack_exports,__webpack_require__)=>{var arraySpeciesConstructor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-species-constructor.js");module.exports=function(originalArray,length){return new(arraySpeciesConstructor(originalArray))(0===length?0:length)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/call-with-safe-iteration-closing.js":(module,__unused_webpack_exports,__webpack_require__)=>{var anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),iteratorClose=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-close.js");module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){iteratorClose(iterator,"throw",error)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/check-correctness-of-iteration.js":(module,__unused_webpack_exports,__webpack_require__)=>{var ITERATOR=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return!1;var ITERATION_SUPPORT=!1;try{var object={};object[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(object)}catch(error){}return ITERATION_SUPPORT}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),toString=uncurryThis({}.toString),stringSlice=uncurryThis("".slice);module.exports=function(it){return stringSlice(toString(it),8,-1)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof.js":(module,__unused_webpack_exports,__webpack_require__)=>{var TO_STRING_TAG_SUPPORT=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-string-tag-support.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),classofRaw=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js"),TO_STRING_TAG=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}());module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(tag=function(it,key){try{return it[key]}catch(error){}}(O=$Object(it),TO_STRING_TAG))?tag:CORRECT_ARGUMENTS?classofRaw(O):"Object"==(result=classofRaw(O))&&isCallable(O.callee)?"Arguments":result}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/collection-strong.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js").f,create=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-create.js"),defineBuiltIns=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-ins.js"),bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),anInstance=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-instance.js"),isNullOrUndefined=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js"),iterate=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterate.js"),defineIterator=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-define.js"),createIterResultObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-iter-result-object.js"),setSpecies=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/set-species.js"),DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),fastKey=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-metadata.js").fastKey,InternalStateModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-state.js"),setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor;module.exports={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper((function(that,iterable){anInstance(that,Prototype),setInternalState(that,{type:CONSTRUCTOR_NAME,index:create(null),first:void 0,last:void 0,size:0}),DESCRIPTORS||(that.size=0),isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that,AS_ENTRIES:IS_MAP})})),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var previous,index,state=getInternalState(that),entry=getEntry(that,key);return entry?entry.value=value:(state.last=entry={index:index=fastKey(key,!0),key,value,previous:previous=state.last,next:void 0,removed:!1},state.first||(state.first=entry),previous&&(previous.next=entry),DESCRIPTORS?state.size++:that.size++,"F"!==index&&(state.index[index]=entry)),that},getEntry=function(that,key){var entry,state=getInternalState(that),index=fastKey(key);if("F"!==index)return state.index[index];for(entry=state.first;entry;entry=entry.next)if(entry.key==key)return entry};return defineBuiltIns(Prototype,{clear:function clear(){for(var state=getInternalState(this),data=state.index,entry=state.first;entry;)entry.removed=!0,entry.previous&&(entry.previous=entry.previous.next=void 0),delete data[entry.index],entry=entry.next;state.first=state.last=void 0,DESCRIPTORS?state.size=0:this.size=0},delete:function(key){var state=getInternalState(this),entry=getEntry(this,key);if(entry){var next=entry.next,prev=entry.previous;delete state.index[entry.index],entry.removed=!0,prev&&(prev.next=next),next&&(next.previous=prev),state.first==entry&&(state.first=next),state.last==entry&&(state.last=prev),DESCRIPTORS?state.size--:this.size--}return!!entry},forEach:function forEach(callbackfn){for(var entry,state=getInternalState(this),boundFunction=bind(callbackfn,arguments.length>1?arguments[1]:void 0);entry=entry?entry.next:state.first;)for(boundFunction(entry.value,entry.key,this);entry&&entry.removed;)entry=entry.previous},has:function has(key){return!!getEntry(this,key)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value},set:function set(key,value){return define(this,0===key?0:key,value)}}:{add:function add(value){return define(this,value=0===value?0:value,value)}}),DESCRIPTORS&&defineProperty(Prototype,"size",{get:function(){return getInternalState(this).size}}),Constructor},setStrong:function(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+" Iterator",getInternalCollectionState=internalStateGetterFor(CONSTRUCTOR_NAME),getInternalIteratorState=internalStateGetterFor(ITERATOR_NAME);defineIterator(Constructor,CONSTRUCTOR_NAME,(function(iterated,kind){setInternalState(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind,last:void 0})}),(function(){for(var state=getInternalIteratorState(this),kind=state.kind,entry=state.last;entry&&entry.removed;)entry=entry.previous;return state.target&&(state.last=entry=entry?entry.next:state.state.first)?createIterResultObject("keys"==kind?entry.key:"values"==kind?entry.value:[entry.key,entry.value],!1):(state.target=void 0,createIterResultObject(void 0,!0))}),IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies(CONSTRUCTOR_NAME)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/collection-weak.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),defineBuiltIns=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-ins.js"),getWeakData=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-metadata.js").getWeakData,anInstance=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-instance.js"),anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),isNullOrUndefined=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),iterate=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterate.js"),ArrayIterationModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-iteration.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),InternalStateModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-state.js"),setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor,find=ArrayIterationModule.find,findIndex=ArrayIterationModule.findIndex,splice=uncurryThis([].splice),id=0,uncaughtFrozenStore=function(store){return store.frozen||(store.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find(store.entries,(function(it){return it[0]===key}))};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},delete:function(key){var index=findIndex(this.entries,(function(it){return it[0]===key}));return~index&&splice(this.entries,index,1),!!~index}},module.exports={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper((function(that,iterable){anInstance(that,Prototype),setInternalState(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:void 0}),isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that,AS_ENTRIES:IS_MAP})})),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject(key),!0);return!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value,that};return defineBuiltIns(Prototype,{delete:function(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).delete(key):data&&hasOwn(data,state.id)&&delete data[state.id]},has:function has(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&hasOwn(data,state.id)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var state=getInternalState(this);if(isObject(key)){var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).get(key):data?data[state.id]:void 0}},set:function set(key,value){return define(this,key,value)}}:{add:function add(value){return define(this,value,!0)}}),Constructor}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/collection.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),isForced=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-forced.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),InternalMetadataModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-metadata.js"),iterate=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterate.js"),anInstance=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-instance.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),isNullOrUndefined=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),checkCorrectnessOfIteration=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/check-correctness-of-iteration.js"),setToStringTag=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/set-to-string-tag.js"),inheritIfRequired=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/inherit-if-required.js");module.exports=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=global[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var uncurriedNativeMethod=uncurryThis(NativePrototype[KEY]);defineBuiltIn(NativePrototype,KEY,"add"==KEY?function add(value){return uncurriedNativeMethod(this,0===value?0:value),this}:"delete"==KEY?function(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:"get"==KEY?function get(key){return IS_WEAK&&!isObject(key)?void 0:uncurriedNativeMethod(this,0===key?0:key)}:"has"==KEY?function has(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:function set(key,value){return uncurriedNativeMethod(this,0===key?0:key,value),this})};if(isForced(CONSTRUCTOR_NAME,!isCallable(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails((function(){(new NativeConstructor).entries().next()})))))Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule.enable();else if(isForced(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance,THROWS_ON_PRIMITIVES=fails((function(){instance.has(1)})),ACCEPT_ITERABLES=checkCorrectnessOfIteration((function(iterable){new NativeConstructor(iterable)})),BUGGY_ZERO=!IS_WEAK&&fails((function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)}));ACCEPT_ITERABLES||((Constructor=wrapper((function(dummy,iterable){anInstance(dummy,NativePrototype);var that=inheritIfRequired(new NativeConstructor,dummy,Constructor);return isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that,AS_ENTRIES:IS_MAP}),that}))).prototype=NativePrototype,NativePrototype.constructor=Constructor),(THROWS_ON_PRIMITIVES||BUGGY_ZERO)&&(fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get")),(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER),IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}return exported[CONSTRUCTOR_NAME]=Constructor,$({global:!0,constructor:!0,forced:Constructor!=NativeConstructor},exported),setToStringTag(Constructor,CONSTRUCTOR_NAME),IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP),Constructor}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/copy-constructor-properties.js":(module,__unused_webpack_exports,__webpack_require__)=>{var hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),ownKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/own-keys.js"),getOwnPropertyDescriptorModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-descriptor.js"),definePropertyModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js");module.exports=function(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i{var MATCH=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("match");module.exports=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(error1){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(error2){}}return!1}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/correct-prototype-getter.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-html.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),requireObjectCoercible=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/require-object-coercible.js"),toString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-string.js"),quot=/"/g,replace=uncurryThis("".replace);module.exports=function(string,tag,attribute,value){var S=toString(requireObjectCoercible(string)),p1="<"+tag;return""!==attribute&&(p1+=" "+attribute+'="'+replace(toString(value),quot,""")+'"'),p1+">"+S+""}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-iter-result-object.js":module=>{module.exports=function(value,done){return{value,done}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js":(module,__unused_webpack_exports,__webpack_require__)=>{var DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),definePropertyModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js"),createPropertyDescriptor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property-descriptor.js");module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property-descriptor.js":module=>{module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPropertyKey=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-property-key.js"),definePropertyModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js"),createPropertyDescriptor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property-descriptor.js");module.exports=function(object,key,value){var propertyKey=toPropertyKey(key);propertyKey in object?definePropertyModule.f(object,propertyKey,createPropertyDescriptor(0,value)):object[propertyKey]=value}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/date-to-iso-string.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),padStart=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/string-pad.js").start,$RangeError=RangeError,$isFinite=isFinite,abs=Math.abs,DatePrototype=Date.prototype,nativeDateToISOString=DatePrototype.toISOString,thisTimeValue=uncurryThis(DatePrototype.getTime),getUTCDate=uncurryThis(DatePrototype.getUTCDate),getUTCFullYear=uncurryThis(DatePrototype.getUTCFullYear),getUTCHours=uncurryThis(DatePrototype.getUTCHours),getUTCMilliseconds=uncurryThis(DatePrototype.getUTCMilliseconds),getUTCMinutes=uncurryThis(DatePrototype.getUTCMinutes),getUTCMonth=uncurryThis(DatePrototype.getUTCMonth),getUTCSeconds=uncurryThis(DatePrototype.getUTCSeconds);module.exports=fails((function(){return"0385-07-25T07:06:39.999Z"!=nativeDateToISOString.call(new Date(-50000000000001))}))||!fails((function(){nativeDateToISOString.call(new Date(NaN))}))?function toISOString(){if(!$isFinite(thisTimeValue(this)))throw $RangeError("Invalid time value");var year=getUTCFullYear(this),milliseconds=getUTCMilliseconds(this),sign=year<0?"-":year>9999?"+":"";return sign+padStart(abs(year),sign?6:4,0)+"-"+padStart(getUTCMonth(this)+1,2,0)+"-"+padStart(getUTCDate(this),2,0)+"T"+padStart(getUTCHours(this),2,0)+":"+padStart(getUTCMinutes(this),2,0)+":"+padStart(getUTCSeconds(this),2,0)+"."+padStart(milliseconds,3,0)+"Z"}:nativeDateToISOString},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/date-to-primitive.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),ordinaryToPrimitive=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/ordinary-to-primitive.js"),$TypeError=TypeError;module.exports=function(hint){if(anObject(this),"string"===hint||"default"===hint)hint="string";else if("number"!==hint)throw $TypeError("Incorrect hint");return ordinaryToPrimitive(this,hint)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in-accessor.js":(module,__unused_webpack_exports,__webpack_require__)=>{var makeBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/make-built-in.js"),defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js");module.exports=function(target,name,descriptor){return descriptor.get&&makeBuiltIn(descriptor.get,name,{getter:!0}),descriptor.set&&makeBuiltIn(descriptor.set,name,{setter:!0}),defineProperty.f(target,name,descriptor)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),definePropertyModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js"),makeBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/make-built-in.js"),defineGlobalProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-global-property.js");module.exports=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=void 0!==options.name?options.name:key;if(isCallable(value)&&makeBuiltIn(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch(error){}simple?O[key]=value:definePropertyModule.f(O,key,{value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-ins.js":(module,__unused_webpack_exports,__webpack_require__)=>{var defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js");module.exports=function(target,src,options){for(var key in src)defineBuiltIn(target,key,src[key],options);return target}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-global-property.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),defineProperty=Object.defineProperty;module.exports=function(key,value){try{defineProperty(global,key,{value,configurable:!0,writable:!0})}catch(error){global[key]=value}return value}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/delete-property-or-throw.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),$TypeError=TypeError;module.exports=function(O,P){if(!delete O[P])throw $TypeError("Cannot delete property "+tryToString(P)+" of "+tryToString(O))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-all.js":module=>{var documentAll="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll&&void 0!==documentAll;module.exports={all:documentAll,IS_HTMLDDA}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-create-element.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),document=global.document,EXISTS=isObject(document)&&isObject(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/does-not-exceed-safe-integer.js":module=>{var $TypeError=TypeError;module.exports=function(it){if(it>9007199254740991)throw $TypeError("Maximum allowed index exceeded");return it}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/dom-iterables.js":module=>{module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/dom-token-list-prototype.js":(module,__unused_webpack_exports,__webpack_require__)=>{var classList=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-create-element.js")("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype;module.exports=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-ff-version.js":(module,__unused_webpack_exports,__webpack_require__)=>{var firefox=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js").match(/firefox\/(\d+)/i);module.exports=!!firefox&&+firefox[1]},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-browser.js":(module,__unused_webpack_exports,__webpack_require__)=>{var IS_DENO=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-deno.js"),IS_NODE=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-node.js");module.exports=!IS_DENO&&!IS_NODE&&"object"==typeof window&&"object"==typeof document},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-deno.js":module=>{module.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-ie-or-edge.js":(module,__unused_webpack_exports,__webpack_require__)=>{var UA=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js");module.exports=/MSIE|Trident/.test(UA)},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-ios-pebble.js":(module,__unused_webpack_exports,__webpack_require__)=>{var userAgent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js"),global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js");module.exports=/ipad|iphone|ipod/i.test(userAgent)&&void 0!==global.Pebble},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-ios.js":(module,__unused_webpack_exports,__webpack_require__)=>{var userAgent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js");module.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent)},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-node.js":(module,__unused_webpack_exports,__webpack_require__)=>{var classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js"),global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js");module.exports="process"==classof(global.process)},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-webos-webkit.js":(module,__unused_webpack_exports,__webpack_require__)=>{var userAgent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js");module.exports=/web0s(?!.*chrome)/i.test(userAgent)},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-built-in.js");module.exports=getBuiltIn("navigator","userAgent")||""},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-v8-version.js":(module,__unused_webpack_exports,__webpack_require__)=>{var match,version,global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),userAgent=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js"),process=global.process,Deno=global.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/))&&(version=+match[1]),module.exports=version},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-webkit-version.js":(module,__unused_webpack_exports,__webpack_require__)=>{var webkit=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-user-agent.js").match(/AppleWebKit\/(\d+)\./);module.exports=!!webkit&&+webkit[1]},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/enum-bug-keys.js":module=>{module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/export.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),getOwnPropertyDescriptor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-descriptor.js").f,createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),defineGlobalProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-global-property.js"),copyConstructorProperties=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/copy-constructor-properties.js"),isForced=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-forced.js");module.exports=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?global:STATIC?global[TARGET]||defineGlobalProperty(TARGET,{}):(global[TARGET]||{}).prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor(target,key))&&descriptor.value:target[key],!isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),defineBuiltIn(target,key,sourceProperty,options)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js":module=>{module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js");var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),regexpExec=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/regexp-exec.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),SPECIES=wellKnownSymbol("species"),RegExpPrototype=RegExp.prototype;module.exports=function(KEY,exec,FORCED,SHAM){var SYMBOL=wellKnownSymbol(KEY),DELEGATES_TO_SYMBOL=!fails((function(){var O={};return O[SYMBOL]=function(){return 7},7!=""[KEY](O)})),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL&&!fails((function(){var execCalled=!1,re=/a/;return"split"===KEY&&((re={}).constructor={},re.constructor[SPECIES]=function(){return re},re.flags="",re[SYMBOL]=/./[SYMBOL]),re.exec=function(){return execCalled=!0,null},re[SYMBOL](""),!execCalled}));if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||FORCED){var uncurriedNativeRegExpMethod=uncurryThis(/./[SYMBOL]),methods=exec(SYMBOL,""[KEY],(function(nativeMethod,regexp,str,arg2,forceStringMethod){var uncurriedNativeMethod=uncurryThis(nativeMethod),$exec=regexp.exec;return $exec===regexpExec||$exec===RegExpPrototype.exec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:uncurriedNativeRegExpMethod(regexp,str,arg2)}:{done:!0,value:uncurriedNativeMethod(str,regexp,arg2)}:{done:!1}}));defineBuiltIn(String.prototype,KEY,methods[0]),defineBuiltIn(RegExpPrototype,SYMBOL,methods[1])}SHAM&&createNonEnumerableProperty(RegExpPrototype[SYMBOL],"sham",!0)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/flatten-into-array.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isArray=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),doesNotExceedSafeInteger=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/does-not-exceed-safe-integer.js"),bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),flattenIntoArray=function(target,original,source,sourceLen,start,depth,mapper,thisArg){for(var element,elementLen,targetIndex=start,sourceIndex=0,mapFn=!!mapper&&bind(mapper,thisArg);sourceIndex0&&isArray(element)?(elementLen=lengthOfArrayLike(element),targetIndex=flattenIntoArray(target,original,element,elementLen,targetIndex,depth-1)-1):(doesNotExceedSafeInteger(targetIndex+1),target[targetIndex]=element),targetIndex++),sourceIndex++;return targetIndex};module.exports=flattenIntoArray},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/freezing.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-apply.js":(module,__unused_webpack_exports,__webpack_require__)=>{var NATIVE_BIND=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js"),FunctionPrototype=Function.prototype,apply=FunctionPrototype.apply,call=FunctionPrototype.call;module.exports="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call.bind(apply):function(){return call.apply(apply,arguments)})},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),NATIVE_BIND=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js"),bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){return aCallable(fn),void 0===that?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js");module.exports=!fails((function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),arraySlice=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/array-slice.js"),NATIVE_BIND=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js"),$Function=Function,concat=uncurryThis([].concat),join=uncurryThis([].join),factories={};module.exports=NATIVE_BIND?$Function.bind:function bind(that){var F=aCallable(this),Prototype=F.prototype,partArgs=arraySlice(arguments,1),boundFunction=function bound(){var args=concat(partArgs,arraySlice(arguments));return this instanceof boundFunction?function(C,argsLength,args){if(!hasOwn(factories,argsLength)){for(var list=[],i=0;i{var NATIVE_BIND=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js"),call=Function.prototype.call;module.exports=NATIVE_BIND?call.bind(call):function(){return call.apply(call,arguments)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-name.js":(module,__unused_webpack_exports,__webpack_require__)=>{var DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function something(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS||DESCRIPTORS&&getDescriptor(FunctionPrototype,"name").configurable);module.exports={EXISTS,PROPER,CONFIGURABLE}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js":(module,__unused_webpack_exports,__webpack_require__)=>{var NATIVE_BIND=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-native.js"),FunctionPrototype=Function.prototype,bind=FunctionPrototype.bind,call=FunctionPrototype.call,uncurryThis=NATIVE_BIND&&bind.bind(call,call);module.exports=NATIVE_BIND?function(fn){return fn&&uncurryThis(fn)}:function(fn){return fn&&function(){return call.apply(fn,arguments)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-built-in.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js");module.exports=function(namespace,method){return arguments.length<2?(argument=global[namespace],isCallable(argument)?argument:void 0):global[namespace]&&global[namespace][method];var argument}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator-method.js":(module,__unused_webpack_exports,__webpack_require__)=>{var classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof.js"),getMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-method.js"),isNullOrUndefined=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js"),Iterators=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators.js"),ITERATOR=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("iterator");module.exports=function(it){if(!isNullOrUndefined(it))return getMethod(it,ITERATOR)||getMethod(it,"@@iterator")||Iterators[classof(it)]}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator.js":(module,__unused_webpack_exports,__webpack_require__)=>{var call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),getIteratorMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator-method.js"),$TypeError=TypeError;module.exports=function(argument,usingIterator){var iteratorMethod=arguments.length<2?getIteratorMethod(argument):usingIterator;if(aCallable(iteratorMethod))return anObject(call(iteratorMethod,argument));throw $TypeError(tryToString(argument)+" is not iterable")}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-method.js":(module,__unused_webpack_exports,__webpack_require__)=>{var aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),isNullOrUndefined=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js");module.exports=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable(func)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-substitution.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),floor=Math.floor,charAt=uncurryThis("".charAt),replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g;module.exports=function(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),replace(replacement,symbols,(function(match,ch){var capture;switch(charAt(ch,0)){case"$":return"$";case"&":return matched;case"`":return stringSlice(str,0,position);case"'":return stringSlice(str,tailPos);case"<":capture=namedCaptures[stringSlice(ch,1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?charAt(ch,1):captures[f-1]+charAt(ch,1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js":(module,__unused_webpack_exports,__webpack_require__)=>{var check=function(it){return it&&it.Math==Math&&it};module.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof __webpack_require__.g&&__webpack_require__.g)||function(){return this}()||Function("return this")()},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/hidden-keys.js":module=>{module.exports={}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/host-report-errors.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js");module.exports=function(a,b){var console=global.console;console&&console.error&&(1==arguments.length?console.error(a):console.error(a,b))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/html.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-built-in.js");module.exports=getBuiltIn("document","documentElement")},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/ie8-dom-define.js":(module,__unused_webpack_exports,__webpack_require__)=>{var DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),createElement=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-create-element.js");module.exports=!DESCRIPTORS&&!fails((function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/ieee754.js":module=>{var $Array=Array,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2;module.exports={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,rt=23===mantissaLength?pow(2,-24)-pow(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor(log(number)/LN2),number*(c=pow(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow(2,mantissaLength),exponent+=eBias):(mantissa=number*pow(2,eBias-1)*pow(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[--index]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow(2,exponent-mantissaLength)}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/indexed-object.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js"),$Object=Object,split=uncurryThis("".split);module.exports=fails((function(){return!$Object("z").propertyIsEnumerable(0)}))?function(it){return"String"==classof(it)?split(it,""):$Object(it)}:$Object},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/inherit-if-required.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),setPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-set-prototype-of.js");module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;return setPrototypeOf&&isCallable(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf($this,NewTargetPrototype),$this}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/inspect-source.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),store=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/shared-store.js"),functionToString=uncurryThis(Function.toString);isCallable(store.inspectSource)||(store.inspectSource=function(it){return functionToString(it)}),module.exports=store.inspectSource},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-metadata.js":(module,__unused_webpack_exports,__webpack_require__)=>{var $=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/export.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),hiddenKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/hidden-keys.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),defineProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-property.js").f,getOwnPropertyNamesModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-names.js"),getOwnPropertyNamesExternalModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-names-external.js"),isExtensible=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-is-extensible.js"),uid=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/uid.js"),FREEZING=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/freezing.js"),REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(it){defineProperty(it,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},meta=module.exports={enable:function(){meta.enable=function(){},REQUIRED=!0;var getOwnPropertyNames=getOwnPropertyNamesModule.f,splice=uncurryThis([].splice),test={};test[METADATA]=1,getOwnPropertyNames(test).length&&(getOwnPropertyNamesModule.f=function(it){for(var result=getOwnPropertyNames(it),i=0,length=result.length;i{var set,get,has,NATIVE_WEAK_MAP=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/weak-map-basic-detection.js"),global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),shared=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/shared-store.js"),sharedKey=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/shared-key.js"),hiddenKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/hidden-keys.js"),TypeError=global.TypeError,WeakMap=global.WeakMap;if(NATIVE_WEAK_MAP||shared.state){var store=shared.state||(shared.state=new WeakMap),wmget=uncurryThis(store.get),wmhas=uncurryThis(store.has),wmset=uncurryThis(store.set);set=function(it,metadata){if(wmhas(store,it))throw TypeError("Object already initialized");return metadata.facade=it,wmset(store,it,metadata),metadata},get=function(it){return wmget(store,it)||{}},has=function(it){return wmhas(store,it)}}else{var STATE=sharedKey("state");hiddenKeys[STATE]=!0,set=function(it,metadata){if(hasOwn(it,STATE))throw TypeError("Object already initialized");return metadata.facade=it,createNonEnumerableProperty(it,STATE,metadata),metadata},get=function(it){return hasOwn(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn(it,STATE)}}module.exports={set,get,has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required");return state}}}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array-iterator-method.js":(module,__unused_webpack_exports,__webpack_require__)=>{var wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),Iterators=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators.js"),ITERATOR=wellKnownSymbol("iterator"),ArrayPrototype=Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array.js":(module,__unused_webpack_exports,__webpack_require__)=>{var classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js");module.exports=Array.isArray||function isArray(argument){return"Array"==classof(argument)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-big-int-array.js":(module,__unused_webpack_exports,__webpack_require__)=>{var classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof.js"),slice=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js")("".slice);module.exports=function(it){return"Big"===slice(classof(it),0,3)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js":(module,__unused_webpack_exports,__webpack_require__)=>{var $documentAll=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-all.js"),documentAll=$documentAll.all;module.exports=$documentAll.IS_HTMLDDA?function(argument){return"function"==typeof argument||argument===documentAll}:function(argument){return"function"==typeof argument}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-constructor.js":(module,__unused_webpack_exports,__webpack_require__)=>{var uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof.js"),getBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-built-in.js"),inspectSource=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/inspect-source.js"),noop=function(){},empty=[],construct=getBuiltIn("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function isConstructor(argument){if(!isCallable(argument))return!1;try{return construct(noop,empty,argument),!0}catch(error){return!1}},isConstructorLegacy=function isConstructor(argument){if(!isCallable(argument))return!1;switch(classof(argument)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(argument))}catch(error){return!0}};isConstructorLegacy.sham=!0,module.exports=!construct||fails((function(){var called;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){called=!0}))||called}))?isConstructorLegacy:isConstructorModern},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-data-descriptor.js":(module,__unused_webpack_exports,__webpack_require__)=>{var hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js");module.exports=function(descriptor){return void 0!==descriptor&&(hasOwn(descriptor,"value")||hasOwn(descriptor,"writable"))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-forced.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),replacement=/#|\.prototype\./,isForced=function(feature,detection){var value=data[normalize(feature)];return value==POLYFILL||value!=NATIVE&&(isCallable(detection)?fails(detection):!!detection)},normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced.data={},NATIVE=isForced.NATIVE="N",POLYFILL=isForced.POLYFILL="P";module.exports=isForced},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-integral-number.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),floor=Math.floor;module.exports=Number.isInteger||function isInteger(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-null-or-undefined.js":module=>{module.exports=function(it){return null==it}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),$documentAll=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-all.js"),documentAll=$documentAll.all;module.exports=$documentAll.IS_HTMLDDA?function(it){return"object"==typeof it?null!==it:isCallable(it)||it===documentAll}:function(it){return"object"==typeof it?null!==it:isCallable(it)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-pure.js":module=>{module.exports=!1},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-regexp.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),classof=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/classof-raw.js"),MATCH=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js")("match");module.exports=function(it){var isRegExp;return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==classof(it))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-symbol.js":(module,__unused_webpack_exports,__webpack_require__)=>{var getBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-built-in.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),isPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-is-prototype-of.js"),USE_SYMBOL_AS_UID=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/use-symbol-as-uid.js"),$Object=Object;module.exports=USE_SYMBOL_AS_UID?function(it){return"symbol"==typeof it}:function(it){var $Symbol=getBuiltIn("Symbol");return isCallable($Symbol)&&isPrototypeOf($Symbol.prototype,$Object(it))}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterate.js":(module,__unused_webpack_exports,__webpack_require__)=>{var bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),tryToString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/try-to-string.js"),isArrayIteratorMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-array-iterator-method.js"),lengthOfArrayLike=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js"),isPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-is-prototype-of.js"),getIterator=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator.js"),getIteratorMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-iterator-method.js"),iteratorClose=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-close.js"),$TypeError=TypeError,Result=function(stopped,result){this.stopped=stopped,this.result=result},ResultPrototype=Result.prototype;module.exports=function(iterable,unboundFunction,options){var iterator,iterFn,index,length,result,next,step,that=options&&options.that,AS_ENTRIES=!(!options||!options.AS_ENTRIES),IS_RECORD=!(!options||!options.IS_RECORD),IS_ITERATOR=!(!options||!options.IS_ITERATOR),INTERRUPTED=!(!options||!options.INTERRUPTED),fn=bind(unboundFunction,that),stop=function(condition){return iterator&&iteratorClose(iterator,"normal",condition),new Result(!0,condition)},callFn=function(value){return AS_ENTRIES?(anObject(value),INTERRUPTED?fn(value[0],value[1],stop):fn(value[0],value[1])):INTERRUPTED?fn(value,stop):fn(value)};if(IS_RECORD)iterator=iterable.iterator;else if(IS_ITERATOR)iterator=iterable;else{if(!(iterFn=getIteratorMethod(iterable)))throw $TypeError(tryToString(iterable)+" is not iterable");if(isArrayIteratorMethod(iterFn)){for(index=0,length=lengthOfArrayLike(iterable);length>index;index++)if((result=callFn(iterable[index]))&&isPrototypeOf(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if("object"==typeof result&&result&&isPrototypeOf(ResultPrototype,result))return result}return new Result(!1)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-close.js":(module,__unused_webpack_exports,__webpack_require__)=>{var call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),getMethod=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/get-method.js");module.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{if(!(innerResult=getMethod(iterator,"return"))){if("throw"===kind)throw value;return value}innerResult=call(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if("throw"===kind)throw value;if(innerError)throw innerResult;return anObject(innerResult),value}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-create-constructor.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var IteratorPrototype=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators-core.js").IteratorPrototype,create=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-create.js"),createPropertyDescriptor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-property-descriptor.js"),setToStringTag=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/set-to-string-tag.js"),Iterators=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators.js"),returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next,ENUMERABLE_NEXT){var TO_STRING_TAG=NAME+" Iterator";return IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(+!ENUMERABLE_NEXT,next)}),setToStringTag(IteratorConstructor,TO_STRING_TAG,!1,!0),Iterators[TO_STRING_TAG]=returnThis,IteratorConstructor}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-define.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var $=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/export.js"),call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),IS_PURE=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-pure.js"),FunctionName=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-name.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),createIteratorConstructor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterator-create-constructor.js"),getPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-set-prototype-of.js"),setToStringTag=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/set-to-string-tag.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),Iterators=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators.js"),IteratorsCore=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators-core.js"),PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR=wellKnownSymbol("iterator"),returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,NAME,next);var CurrentIteratorPrototype,methods,KEY,getIterationMethod=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case"keys":return function keys(){return new IteratorConstructor(this,KIND)};case"values":return function values(){return new IteratorConstructor(this,KIND)};case"entries":return function entries(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}},TO_STRING_TAG=NAME+" Iterator",INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT),anyNativeIterator="Array"==NAME&&IterablePrototype.entries||nativeIterator;if(anyNativeIterator&&(CurrentIteratorPrototype=getPrototypeOf(anyNativeIterator.call(new Iterable)))!==Object.prototype&&CurrentIteratorPrototype.next&&(IS_PURE||getPrototypeOf(CurrentIteratorPrototype)===IteratorPrototype||(setPrototypeOf?setPrototypeOf(CurrentIteratorPrototype,IteratorPrototype):isCallable(CurrentIteratorPrototype[ITERATOR])||defineBuiltIn(CurrentIteratorPrototype,ITERATOR,returnThis)),setToStringTag(CurrentIteratorPrototype,TO_STRING_TAG,!0,!0),IS_PURE&&(Iterators[TO_STRING_TAG]=returnThis)),PROPER_FUNCTION_NAME&&"values"==DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(!IS_PURE&&CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty(IterablePrototype,"name","values"):(INCORRECT_VALUES_NAME=!0,defaultIterator=function values(){return call(nativeIterator,this)})),DEFAULT)if(methods={values:getIterationMethod("values"),keys:IS_SET?defaultIterator:getIterationMethod("keys"),entries:getIterationMethod("entries")},FORCED)for(KEY in methods)(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype))&&defineBuiltIn(IterablePrototype,KEY,methods[KEY]);else $({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods);return IS_PURE&&!FORCED||IterablePrototype[ITERATOR]===defaultIterator||defineBuiltIn(IterablePrototype,ITERATOR,defaultIterator,{name:DEFAULT}),Iterators[NAME]=defaultIterator,methods}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators-core.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator,fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-object.js"),create=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-create.js"),getPrototypeOf=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-prototype-of.js"),defineBuiltIn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/define-built-in.js"),wellKnownSymbol=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/well-known-symbol.js"),IS_PURE=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-pure.js"),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)))!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS=!0),!isObject(IteratorPrototype)||fails((function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test}))?IteratorPrototype={}:IS_PURE&&(IteratorPrototype=create(IteratorPrototype)),isCallable(IteratorPrototype[ITERATOR])||defineBuiltIn(IteratorPrototype,ITERATOR,(function(){return this})),module.exports={IteratorPrototype,BUGGY_SAFARI_ITERATORS}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/iterators.js":module=>{module.exports={}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/length-of-array-like.js":(module,__unused_webpack_exports,__webpack_require__)=>{var toLength=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-length.js");module.exports=function(obj){return toLength(obj.length)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/make-built-in.js":(module,__unused_webpack_exports,__webpack_require__)=>{var fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-callable.js"),hasOwn=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/has-own-property.js"),DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),CONFIGURABLE_FUNCTION_NAME=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-name.js").CONFIGURABLE,inspectSource=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/inspect-source.js"),InternalStateModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/internal-state.js"),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,defineProperty=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails((function(){return 8!==defineProperty((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn=module.exports=function(value,name,options){"Symbol("===String(name).slice(0,7)&&(name="["+String(name).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&(DESCRIPTORS?defineProperty(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity&&defineProperty(value,"length",{value:options.arity});try{options&&hasOwn(options,"constructor")&&options.constructor?DESCRIPTORS&&defineProperty(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState(value);return hasOwn(state,"source")||(state.source=TEMPLATE.join("string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn((function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)}),"toString")},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/math-trunc.js":module=>{var ceil=Math.ceil,floor=Math.floor;module.exports=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/microtask.js":(module,__unused_webpack_exports,__webpack_require__)=>{var flush,head,last,notify,toggle,node,promise,then,global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),bind=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-bind-context.js"),getOwnPropertyDescriptor=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-descriptor.js").f,macrotask=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/task.js").set,IS_IOS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-ios.js"),IS_IOS_PEBBLE=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-ios-pebble.js"),IS_WEBOS_WEBKIT=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-webos-webkit.js"),IS_NODE=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/engine-is-node.js"),MutationObserver=global.MutationObserver||global.WebKitMutationObserver,document=global.document,process=global.process,Promise=global.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var parent,fn;for(IS_NODE&&(parent=process.domain)&&parent.exit();head;){fn=head.fn,head=head.next;try{fn()}catch(error){throw head?notify():last=void 0,error}}last=void 0,parent&&parent.enter()},IS_IOS||IS_NODE||IS_WEBOS_WEBKIT||!MutationObserver||!document?!IS_IOS_PEBBLE&&Promise&&Promise.resolve?((promise=Promise.resolve(void 0)).constructor=Promise,then=bind(promise.then,promise),notify=function(){then(flush)}):IS_NODE?notify=function(){process.nextTick(flush)}:(macrotask=bind(macrotask,global),notify=function(){macrotask(flush)}):(toggle=!0,node=document.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=!toggle})),module.exports=queueMicrotask||function(fn){var task={fn,next:void 0};last&&(last.next=task),head||(head=task,notify()),last=task}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/new-promise-capability.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aCallable=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/a-callable.js"),$TypeError=TypeError,PromiseCapability=function(C){var resolve,reject;this.promise=new C((function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw $TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject})),this.resolve=aCallable(resolve),this.reject=aCallable(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/not-a-regexp.js":(module,__unused_webpack_exports,__webpack_require__)=>{var isRegExp=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/is-regexp.js"),$TypeError=TypeError;module.exports=function(it){if(isRegExp(it))throw $TypeError("The method doesn't accept regular expressions");return it}},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/number-parse-float.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),toString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-string.js"),trim=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/string-trim.js").trim,whitespaces=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/whitespaces.js"),charAt=uncurryThis("".charAt),$parseFloat=global.parseFloat,Symbol=global.Symbol,ITERATOR=Symbol&&Symbol.iterator,FORCED=1/$parseFloat(whitespaces+"-0")!=-1/0||ITERATOR&&!fails((function(){$parseFloat(Object(ITERATOR))}));module.exports=FORCED?function parseFloat(string){var trimmedString=trim(toString(string)),result=$parseFloat(trimmedString);return 0===result&&"-"==charAt(trimmedString,0)?-0:result}:$parseFloat},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/number-parse-int.js":(module,__unused_webpack_exports,__webpack_require__)=>{var global=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/global.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),toString=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-string.js"),trim=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/string-trim.js").trim,whitespaces=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/whitespaces.js"),$parseInt=global.parseInt,Symbol=global.Symbol,ITERATOR=Symbol&&Symbol.iterator,hex=/^[+-]?0x/i,exec=uncurryThis(hex.exec),FORCED=8!==$parseInt(whitespaces+"08")||22!==$parseInt(whitespaces+"0x16")||ITERATOR&&!fails((function(){$parseInt(Object(ITERATOR))}));module.exports=FORCED?function parseInt(string,radix){var S=trim(toString(string));return $parseInt(S,radix>>>0||(exec(hex,S)?16:10))}:$parseInt},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-assign.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/descriptors.js"),uncurryThis=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-uncurry-this.js"),call=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/function-call.js"),fails=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/fails.js"),objectKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-keys.js"),getOwnPropertySymbolsModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-get-own-property-symbols.js"),propertyIsEnumerableModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-property-is-enumerable.js"),toObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/to-object.js"),IndexedObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/indexed-object.js"),$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis([].concat);module.exports=!$assign||fails((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol();return A[symbol]=7,"abcdefghijklmnopqrst".split("").forEach((function(chr){B[chr]=chr})),7!=$assign({},A)[symbol]||"abcdefghijklmnopqrst"!=objectKeys($assign({},B)).join("")}))?function assign(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var key,S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?concat(objectKeys(S),getOwnPropertySymbols(S)):objectKeys(S),length=keys.length,j=0;length>j;)key=keys[j++],DESCRIPTORS&&!call(propertyIsEnumerable,S,key)||(T[key]=S[key]);return T}:$assign},"./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-create.js":(module,__unused_webpack_exports,__webpack_require__)=>{var activeXDocument,anObject=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/an-object.js"),definePropertiesModule=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/object-define-properties.js"),enumBugKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/enum-bug-keys.js"),hiddenKeys=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/hidden-keys.js"),html=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/html.js"),documentCreateElement=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/document-create-element.js"),sharedKey=__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/internals/shared-key.js"),IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return" \ No newline at end of file + window['STORIES'] = [{"titlePrefix":"","directory":"./.storybook/stories","files":"**/*.stories.@(mdx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:\\.storybook\\/stories(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(mdx|ts|tsx))$"},{"titlePrefix":"","directory":"./components","files":"*/src/**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:components\\/(?!\\.)(?=.)[^/]*?\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"},{"titlePrefix":"","directory":"./components","files":"*/src/**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:components\\/(?!\\.)(?=.)[^/]*?\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./packages/storybook/src","files":"**/*.stories.@(js|jsx|mdx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:packages\\/storybook\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|mdx|ts|tsx))$"}]; \ No newline at end of file diff --git a/main.12e77b8f.iframe.bundle.js b/main.12e77b8f.iframe.bundle.js new file mode 100644 index 0000000000..8cb75f717f --- /dev/null +++ b/main.12e77b8f.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see main.12e77b8f.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_gemeente_denhaag_design_system=self.webpackChunk_gemeente_denhaag_design_system||[]).push([[179],{"./.storybook/stories sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Cts%7Ctsx))$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Border.stories.mdx":"./.storybook/stories/Border.stories.mdx","./BorderRadius.stories.mdx":"./.storybook/stories/BorderRadius.stories.mdx","./Breakpoints.stories.mdx":"./.storybook/stories/Breakpoints.stories.mdx","./Colors.stories.mdx":"./.storybook/stories/Colors.stories.mdx","./DesignTokens.stories.mdx":"./.storybook/stories/DesignTokens.stories.mdx","./Icons.stories.mdx":"./.storybook/stories/Icons.stories.mdx","./Introduction.stories.mdx":"./.storybook/stories/Introduction.stories.mdx","./ReleaseStrategy.stories.mdx":"./.storybook/stories/ReleaseStrategy.stories.mdx","./Size.stories.mdx":"./.storybook/stories/Size.stories.mdx","./Space.stories.mdx":"./.storybook/stories/Space.stories.mdx","./Typography.stories.mdx":"./.storybook/stories/Typography.stories.mdx","./ZIndex.stories.mdx":"./.storybook/stories/ZIndex.stories.mdx","./templates/01-Login-page.stories.tsx":"./.storybook/stories/templates/01-Login-page.stories.tsx","./templates/02-Overview-page.stories.tsx":"./.storybook/stories/templates/02-Overview-page.stories.tsx","./templates/04-Current-affairs-page.stories.tsx":"./.storybook/stories/templates/04-Current-affairs-page.stories.tsx","./templates/05-Case-detail-page.stories.tsx":"./.storybook/stories/templates/05-Case-detail-page.stories.tsx","./templates/Messages-page.stories.tsx":"./.storybook/stories/templates/Messages-page.stories.tsx"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./.storybook/stories sync recursive ^\\.(?:(?:^%7C\\/%7C(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/)(?%21\\.)(?=.)[^/]*?\\.stories\\.(mdx%7Cts%7Ctsx))$"},"./components sync recursive ^\\.[\\\\/](?:(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Avatar/src/stories/react.stories.tsx":"./components/Avatar/src/stories/react.stories.tsx","./Card/src/stories/react.stories.tsx":"./components/Card/src/stories/react.stories.tsx","./Icons/src/react.stories.tsx":"./components/Icons/src/react.stories.tsx","./Sheet/src/stories/react.stories.tsx":"./components/Sheet/src/stories/react.stories.tsx","./Switch/src/react.stories.tsx":"./components/Switch/src/react.stories.tsx","./Tab/src/react.stories.tsx":"./components/Tab/src/react.stories.tsx","./Timeline/src/stories/react.stories.tsx":"./components/Timeline/src/stories/react.stories.tsx","./Typography/src/stories/Heading1.react.stories.tsx":"./components/Typography/src/stories/Heading1.react.stories.tsx","./Typography/src/stories/Heading2.react.stories.tsx":"./components/Typography/src/stories/Heading2.react.stories.tsx","./Typography/src/stories/Heading3.react.stories.tsx":"./components/Typography/src/stories/Heading3.react.stories.tsx","./Typography/src/stories/Heading4.react.stories.tsx":"./components/Typography/src/stories/Heading4.react.stories.tsx","./Typography/src/stories/Heading5.react.stories.tsx":"./components/Typography/src/stories/Heading5.react.stories.tsx","./Typography/src/stories/LeadParagraph.react.stories.tsx":"./components/Typography/src/stories/LeadParagraph.react.stories.tsx","./Typography/src/stories/Paragraph.react.stories.tsx":"./components/Typography/src/stories/Paragraph.react.stories.tsx"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./components sync recursive ^\\.[\\\\/](?:(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$"},"./components sync recursive ^\\.[\\\\/](?:(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.mdx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Accordion/src/stories/bem.stories.mdx":"./components/Accordion/src/stories/bem.stories.mdx","./Action/src/stories/bem.stories.mdx":"./components/Action/src/stories/bem.stories.mdx","./Action/src/stories/react.stories.mdx":"./components/Action/src/stories/react.stories.mdx","./Alert/src/stories/bem.stories.mdx":"./components/Alert/src/stories/bem.stories.mdx","./Alert/src/stories/react.stories.mdx":"./components/Alert/src/stories/react.stories.mdx","./AnchorCollapse/src/stories/bem.stories.mdx":"./components/AnchorCollapse/src/stories/bem.stories.mdx","./AnchorNavigation/src/stories/bem.stories.mdx":"./components/AnchorNavigation/src/stories/bem.stories.mdx","./ArticleMeta/src/stories/bem.stories.mdx":"./components/ArticleMeta/src/stories/bem.stories.mdx","./AuthenticationBlock/src/stories/bem.stories.mdx":"./components/AuthenticationBlock/src/stories/bem.stories.mdx","./BadgeCounter/src/stories/bem.stories.mdx":"./components/BadgeCounter/src/stories/bem.stories.mdx","./BadgeCounter/src/stories/react.stories.mdx":"./components/BadgeCounter/src/stories/react.stories.mdx","./Blockquote/src/stories/bem.stories.mdx":"./components/Blockquote/src/stories/bem.stories.mdx","./Breadcrumb/src/stories/bem.stories.mdx":"./components/Breadcrumb/src/stories/bem.stories.mdx","./Button/src/stories/bem.stories.mdx":"./components/Button/src/stories/bem.stories.mdx","./Button/src/stories/react.stories.mdx":"./components/Button/src/stories/react.stories.mdx","./ButtonGroup/src/stories/bem.stories.mdx":"./components/ButtonGroup/src/stories/bem.stories.mdx","./CardAuthentication/src/stories/bem.stories.mdx":"./components/CardAuthentication/src/stories/bem.stories.mdx","./CardGroup/src/stories/bem.stories.mdx":"./components/CardGroup/src/stories/bem.stories.mdx","./CardNews/src/stories/bem.stories.mdx":"./components/CardNews/src/stories/bem.stories.mdx","./ContactTimeline/src/stories/bem.stories.mdx":"./components/ContactTimeline/src/stories/bem.stories.mdx","./ContactTimeline/src/stories/react.stories.mdx":"./components/ContactTimeline/src/stories/react.stories.mdx","./CtaDownload/src/stories/bem.stories.mdx":"./components/CtaDownload/src/stories/bem.stories.mdx","./CtaEvent/src/stories/bem.stories.mdx":"./components/CtaEvent/src/stories/bem.stories.mdx","./CtaImageContent/src/stories/bem.stories.mdx":"./components/CtaImageContent/src/stories/bem.stories.mdx","./CtaLink/src/stories/bem.stories.mdx":"./components/CtaLink/src/stories/bem.stories.mdx","./Datepicker/src/stories/react.stories.mdx":"./components/Datepicker/src/stories/react.stories.mdx","./DescriptionList/src/stories/bem.stories.mdx":"./components/DescriptionList/src/stories/bem.stories.mdx","./DescriptionList/src/stories/react.stories.mdx":"./components/DescriptionList/src/stories/react.stories.mdx","./Divider/src/stories/bem.stories.mdx":"./components/Divider/src/stories/bem.stories.mdx","./Divider/src/stories/react.stories.mdx":"./components/Divider/src/stories/react.stories.mdx","./DotIndicator/src/stories/react.stories.mdx":"./components/DotIndicator/src/stories/react.stories.mdx","./DynamicContent/src/stories/bem.stories.mdx":"./components/DynamicContent/src/stories/bem.stories.mdx","./EventDate/src/stories/bem.stories.mdx":"./components/EventDate/src/stories/bem.stories.mdx","./File/src/stories/bem.stories.mdx":"./components/File/src/stories/bem.stories.mdx","./File/src/stories/react.stories.mdx":"./components/File/src/stories/react.stories.mdx","./FloatingContact/src/stories/bem.stories.mdx":"./components/FloatingContact/src/stories/bem.stories.mdx","./Footer/src/stories/bem.stories.mdx":"./components/Footer/src/stories/bem.stories.mdx","./FormControlLabel/src/stories/react.stories.mdx":"./components/FormControlLabel/src/stories/react.stories.mdx","./FormGroup/src/stories/react.stories.mdx":"./components/FormGroup/src/stories/react.stories.mdx","./FormProgress/src/stories/bem.stories.mdx":"./components/FormProgress/src/stories/bem.stories.mdx","./FormProgress/src/stories/react.stories.mdx":"./components/FormProgress/src/stories/react.stories.mdx","./Header/src/stories/bem.stories.mdx":"./components/Header/src/stories/bem.stories.mdx","./Hero/src/stories/bem.stories.mdx":"./components/Hero/src/stories/bem.stories.mdx","./HighlightedLinks/src/stories/bem.stories.mdx":"./components/HighlightedLinks/src/stories/bem.stories.mdx","./IconButton/src/stories/react.stories.mdx":"./components/IconButton/src/stories/react.stories.mdx","./Image/src/stories/bem.stories.mdx":"./components/Image/src/stories/bem.stories.mdx","./Link/src/stories/bem.stories.mdx":"./components/Link/src/stories/bem.stories.mdx","./Link/src/stories/react.stories.mdx":"./components/Link/src/stories/react.stories.mdx","./LinkGroup/src/stories/bem.stories.mdx":"./components/LinkGroup/src/stories/bem.stories.mdx","./List/src/stories/bem.stories.mdx":"./components/List/src/stories/bem.stories.mdx","./List/src/stories/react.stories.mdx":"./components/List/src/stories/react.stories.mdx","./Menu/src/react.stories.mdx":"./components/Menu/src/react.stories.mdx","./Modal/src/stories/bem.stories.mdx":"./components/Modal/src/stories/bem.stories.mdx","./Note/src/stories/bem.stories.mdx":"./components/Note/src/stories/bem.stories.mdx","./OrderedList/src/stories/bem.stories.mdx":"./components/OrderedList/src/stories/bem.stories.mdx","./Page/src/stories/bem.stories.mdx":"./components/Page/src/stories/bem.stories.mdx","./PageButtons/src/stories/bem.stories.mdx":"./components/PageButtons/src/stories/bem.stories.mdx","./Pagination/src/stories/bem.stories.mdx":"./components/Pagination/src/stories/bem.stories.mdx","./PosttypeLabel/src/stories/bem.stories.mdx":"./components/PosttypeLabel/src/stories/bem.stories.mdx","./PosttypeLabel/src/stories/react.stories.mdx":"./components/PosttypeLabel/src/stories/react.stories.mdx","./ProcessSteps/src/stories/bem.stories.mdx":"./components/ProcessSteps/src/stories/bem.stories.mdx","./ProcessSteps/src/stories/react.stories.mdx":"./components/ProcessSteps/src/stories/react.stories.mdx","./Radio/src/stories/bem.stories.mdx":"./components/Radio/src/stories/bem.stories.mdx","./Radio/src/stories/react.stories.mdx":"./components/Radio/src/stories/react.stories.mdx","./ResponsiveContent/src/stories/bem.stories.mdx":"./components/ResponsiveContent/src/stories/bem.stories.mdx","./Sidenav/src/stories/bem.stories.mdx":"./components/Sidenav/src/stories/bem.stories.mdx","./Sidenav/src/stories/react.stories.mdx":"./components/Sidenav/src/stories/react.stories.mdx","./StepMarker/src/stories/bem.stories.mdx":"./components/StepMarker/src/stories/bem.stories.mdx","./StepMarker/src/stories/react.stories.mdx":"./components/StepMarker/src/stories/react.stories.mdx","./Table/src/stories/bem.stories.mdx":"./components/Table/src/stories/bem.stories.mdx","./Table/src/stories/react.stories.mdx":"./components/Table/src/stories/react.stories.mdx","./TextArea/src/stories/react.stories.mdx":"./components/TextArea/src/stories/react.stories.mdx","./TextField/src/stories/react.stories.mdx":"./components/TextField/src/stories/react.stories.mdx","./Typography/src/stories/heading1.bem.stories.mdx":"./components/Typography/src/stories/heading1.bem.stories.mdx","./Typography/src/stories/heading2.bem.stories.mdx":"./components/Typography/src/stories/heading2.bem.stories.mdx","./Typography/src/stories/heading3.bem.stories.mdx":"./components/Typography/src/stories/heading3.bem.stories.mdx","./Typography/src/stories/heading4.bem.stories.mdx":"./components/Typography/src/stories/heading4.bem.stories.mdx","./Typography/src/stories/heading5.bem.stories.mdx":"./components/Typography/src/stories/heading5.bem.stories.mdx","./Typography/src/stories/paragraph.bem.stories.mdx":"./components/Typography/src/stories/paragraph.bem.stories.mdx","./UnorderedList/src/stories/bem.stories.mdx":"./components/UnorderedList/src/stories/bem.stories.mdx"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./components sync recursive ^\\.[\\\\/](?:(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},"./.storybook/preview.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var preview_namespaceObject={};__webpack_require__.r(preview_namespaceObject),__webpack_require__.d(preview_namespaceObject,{__namedExportsOrder:()=>__namedExportsOrder,decorators:()=>decorators,parameters:()=>parameters});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.define-properties.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.define-property.js");var ClientApi=__webpack_require__("./node_modules/.pnpm/@storybook+client-api@6.5.16_react-dom@17.0.2_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),injectStylesIntoStyleTag=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/style-loader@2.0.0_webpack@5.89.0/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),theme=__webpack_require__("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.89.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].use[1]!./proprietary/Components/dist/theme/index.css"),options={insert:"head",singleton:!1};injectStylesIntoStyleTag_default()(theme.Z,options);theme.Z.locals;var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),StylesProvider_StylesProvider=__webpack_require__("./node_modules/.pnpm/@material-ui+styles@4.11.5_@types+react@17.0.69_react-dom@17.0.2_react@17.0.2/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js");!function styleInject(css,ref){void 0===ref&&(ref={});var insertAt=ref.insertAt;if(css&&"undefined"!=typeof document){var head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");style.type="text/css","top"===insertAt&&head.firstChild?head.insertBefore(style,head.firstChild):head.appendChild(style),style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css))}}(".utrecht-document{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;color:var(--utrecht-document-color,inherit);font-family:var(--utrecht-document-font-family,inherit);font-size:var(--utrecht-document-font-size,inherit);font-weight:var(--utrecht-document-font-weight,inherit);line-height:var(--utrecht-document-line-height,inherit);text-rendering:optimizeLegibility}.utrecht-document :lang(ar){letter-spacing:0!important}.utrecht-document--surface{background-color:var(--utrecht-document-background-color,inherit)}");var StylesProvider=function StylesProvider(props){var OldMaterialStylesProvider=StylesProvider_StylesProvider.ZP;return react.createElement("div",{className:"utrecht-document utrecht-document--surface"},react.createElement(OldMaterialStylesProvider,{injectFirst:!0},props.children))};StylesProvider.__docgenInfo={description:"Styles provider to be placed at the root of your application in which all other denhaag-components will exist.\r\n@param props Only allow for children",methods:[],displayName:"StylesProvider"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/StylesProvider/dist/mjs/index.js"]={name:"StylesProvider",docgenInfo:StylesProvider.__docgenInfo,path:"components/StylesProvider/dist/mjs/index.js"});var decorators_react=__webpack_require__("./node_modules/.pnpm/storybook-addon-themes@6.1.0_react-dom@17.0.2_react@17.0.2/node_modules/storybook-addon-themes/dist/decorators/react.js"),jsx_runtime=(__webpack_require__("./node_modules/.pnpm/storybook-addon-themes@6.1.0_react-dom@17.0.2_react@17.0.2/node_modules/storybook-addon-themes/dist/shared.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js")),tokenContext=__webpack_require__("./proprietary sync recursive !!./node_modules/.pnpm/raw-loader@4.0.2_webpack@5.89.0/node_modules/raw-loader/dist/cjs.js! ^((?%21[\\\\/]node_modules%7Cdist[\\\\/]).)*\\.(css%7Cless%7Cscss%7Csass%7Csvg)$"),parameters={actions:{argTypesRegex:"^on[A-Z].*"},designToken:{files:tokenContext.keys().map((function(filename){return{filename,content:tokenContext(filename).default}}))},format:!1,options:{storySort:{order:["Den Haag",["Introduction","Design Tokens"],"Components"]}},themes:{default:"Gemeente Den Haag",list:[{name:"Gemeente Den Haag",class:"denhaag-theme",color:"#227b3c"}]},status:{statuses:{PRODUCTION:{background:"#006400",color:"#ffffff",description:"Used in production in a variety of situations, well tested, stable APIs, mostly patches and minor releases."},BETA:{background:"#cca300",color:"#ffffff",description:"Used in production in a specific situation, evolving APIs based on feedback, breaking changes are still likely."},ALPHA:{background:"#cc0000",color:"#ffffff",description:"Used in prototypes and in projects that are still in development, breaking changes occur frequently and are not communicated."},"WORK IN PROGRESS":{background:"#cc0000",color:"#ffffff",description:"Do not use in production. Does not follow semantic versioning and any published packages are for internal use only."},DEPRECATED:{background:"#9e1616",color:"#ffffff",description:"This component is no longer supported. If used in production, please replace with the recommended alternative."}}},chromatic:{viewports:[1280]}},decorators=[function(Story){return(0,jsx_runtime.jsx)(decorators_react.F,{config:parameters.themes,children:(0,jsx_runtime.jsx)(StylesProvider,{children:(0,jsx_runtime.jsx)(Story,{})})})}],__namedExportsOrder=["parameters","decorators"];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(preview_namespaceObject).forEach((function(key){var value=preview_namespaceObject[key];switch(key){case"args":return(0,ClientApi.uc)(value);case"argTypes":return(0,ClientApi.v9)(value);case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{Hb:()=>footerLegalData,NF:()=>linkData,TJ:()=>headerProps,Yf:()=>contactData,iF:()=>copyright,lH:()=>newsletterData,nk:()=>footerSocialData});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-string.js");var _components_Icons_src__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./components/Icons/src/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=(__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js")),headerProps={breadcrumbs:{navigationPath:[{label:"Home",href:"https://denhaag.nl/"}]},userprofileMenu:{label:"Welkom Anne Klap",authorisedLoginLabel:"Ingelogd namens Jason Verploeg",navigationGroups:[{label:"MijnDenHaag",navigation:[{label:"Overzicht",href:""},{label:"Lopende zaken",href:""},{label:"Thema's",href:""},{label:"Mijn account",href:""}]}]},languageSwitcherMenu:{currentLanguageLabel:"NL",languageSwitcherProps:{variant:"button",label:"Kies uw voorkeurstaal",languages:[{id:"nl",label:"Nederlands",linkProps:{href:"#nl",lang:"nl",hrefLang:"nl-NL"},active:!0},{id:"en",label:"Engels",linkProps:{href:"#en",lang:"en",hrefLang:"en-GB"},active:!1},{id:"fr",label:"Français",linkProps:{href:"#fr",lang:"fr",hrefLang:"fr-FR"},active:!1}]}},logoutButton:{label:"Uitloggen",onLogoutClick:function onLogoutClick(){}},mobileMenu:{openLabel:"Menu",closeLabel:"Sluiten",navigation:[{label:"Home",href:"https://www.denhaag.nl"},{label:"Onderwerpen",navigation:[{label:"Omgeving",navigation:[{label:"Parkeren",href:"https://www.denhaag.nl/parkeren"},{label:"Afval",href:"https://www.denhaag.nl/afval"}]},{label:"Wonen",navigation:[{label:"Verhuizen en migratie",href:"https://www.denhaag.nl/verhuizen"},{label:"Belastingen",href:"https://www.denhaag.nl/belastingen"}]}]},{label:"MijnDenHaag",navigation:[{label:"Overzicht",href:"https://klantportaal.denhaag.nl/overzicht"},{label:"Lopende zaken",href:"https://klantportaal.denhaag.nl/zaken"},{label:"Thema's",href:"https://klantportaal.denhaag.nl/themas"},{label:"Mijn account",href:"https://klantportaal.denhaag.nl/account"}]}]}},linkData={name:"Example",link:"test/example.png",size:2e3,lastUpdated:new Date("Thu Aug 31 2023 11:22:11 GMT+0200")},footerLegalData=[{label:"Sitemap",href:"https://denhaag.nl/"},{label:"Toegankelijkheid",href:"https://denhaag.nl/"},{label:"Privacy",href:"https://denhaag.nl/"},{label:"Proclaimer",href:"https://denhaag.nl/"},{label:"Disclaimer",href:"https://denhaag.nl/"},{label:"Voorwaarden",href:"https://denhaag.nl/"}],footerSocialData={title:"Volg ons op",links:[{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_Icons_src__WEBPACK_IMPORTED_MODULE_1__.FacebookIcon,{}),label:"Facebook",href:"https://www.facebook.com/gemeenteDH/"},{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_Icons_src__WEBPACK_IMPORTED_MODULE_1__.TwitterIcon,{}),label:"Twitter",href:"https://twitter.com/gemeentedenhaag"},{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_Icons_src__WEBPACK_IMPORTED_MODULE_1__.LinkedInIcon,{}),label:"LinkedIn",href:"https://www.linkedin.com/company/gemeente-den-haag/"},{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_Icons_src__WEBPACK_IMPORTED_MODULE_1__.InstagramIcon,{}),label:"Instagram",href:"https://www.instagram.com/gemeentedenhaag/"},{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_components_Icons_src__WEBPACK_IMPORTED_MODULE_1__.YouTubeIcon,{}),label:"YouTube",href:"https://www.youtube.com/channel/UC5_HpKvZl7Oxr_UimTfC2Jg"}]},newsletterData={title:"Meld u aan voor de nieuwsbrief",text:"Blijf gemakkelijk op de hoogte van ontwikkelingen in uw stadsdeel en de belangrijkste zaken van Den Haag.",buttonLabel:"Aanmelden nieuwsbrief",href:"#"},contactData={title:"Contact",links:[{label:"Bel ons op 14070",href:"#"},{label:"Contactformulier",href:"#"}],buttonLabel:"Contactpagina",href:"https://www.denhaag.nl/nl/bestuur-en-organisatie/contact-met-de-gemeente.htm"},copyright="© 2022 Gemeente Den Haag"},"./components/Action/src/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{aU:()=>Action_Action,SA:()=>ActionActions_ActionActions,O6:()=>ActionContent_ActionContent,yq:()=>ActionDate_ActionDate,h8:()=>ActionDetails_ActionDetails,E3:()=>ActionMulti_ActionMulti,qr:()=>ActionSingle_ActionSingle,qp:()=>Time_Time});__webpack_require__("./components/Action/src/index.scss"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.link.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var jsx_runtime=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),Action_Action=function Action(props){return"link"in props?(0,jsx_runtime.jsx)(ActionSingle_ActionSingle,Object.assign({},props)):(0,jsx_runtime.jsx)(ActionMulti_ActionMulti,Object.assign({},props))};Action_Action.displayName="Action";try{Action_Action.displayName="Action",Action_Action.__docgenInfo={description:"",displayName:"Action",props:{link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}},actions:{defaultValue:null,description:"",name:"actions",required:!0,type:{name:"ReactNode"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/Action.tsx#Action"]={docgenInfo:Action_Action.__docgenInfo,name:"Action",path:"components/Action/src/Action.tsx#Action"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js");var clsx=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),_excluded=["children","link","dateTime","now","relativeDate","className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ActionSingle_ActionSingle=function ActionSingle(_ref){var children=_ref.children,link=_ref.link,dateTime=_ref.dateTime,now=_ref.now,relativeDate=_ref.relativeDate,className=_ref.className,rest=_objectWithoutProperties(_ref,_excluded);return(0,jsx_runtime.jsxs)("a",Object.assign({href:link,className:(0,clsx.Z)("denhaag-action denhaag-action--single",className)},rest,{children:[(0,jsx_runtime.jsx)(ActionContent_ActionContent,{children}),(0,jsx_runtime.jsx)(ActionDetails_ActionDetails,{dateTime,now,relativeDate})]}))};ActionSingle_ActionSingle.displayName="ActionSingle";try{ActionSingle_ActionSingle.displayName="ActionSingle",ActionSingle_ActionSingle.__docgenInfo={description:"",displayName:"ActionSingle",props:{link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionSingle.tsx#ActionSingle"]={docgenInfo:ActionSingle_ActionSingle.__docgenInfo,name:"ActionSingle",path:"components/Action/src/ActionSingle.tsx#ActionSingle"})}catch(__react_docgen_typescript_loader_error){}var ActionMulti_excluded=["children","actions","dateTime","now","relativeDate","className"];function ActionMulti_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function ActionMulti_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ActionMulti_ActionMulti=function ActionMulti(_ref){var children=_ref.children,actions=_ref.actions,dateTime=_ref.dateTime,now=_ref.now,relativeDate=_ref.relativeDate,className=_ref.className,rest=ActionMulti_objectWithoutProperties(_ref,ActionMulti_excluded);return(0,jsx_runtime.jsxs)("div",Object.assign({className:(0,clsx.Z)("denhaag-action",className)},rest,{children:[(0,jsx_runtime.jsx)(ActionContent_ActionContent,{children}),(0,jsx_runtime.jsx)(ActionDetails_ActionDetails,{dateTime,now,relativeDate,children:actions})]}))};ActionMulti_ActionMulti.displayName="ActionMulti";try{ActionMulti_ActionMulti.displayName="ActionMulti",ActionMulti_ActionMulti.__docgenInfo={description:"",displayName:"ActionMulti",props:{actions:{defaultValue:null,description:"",name:"actions",required:!0,type:{name:"ReactNode"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionMulti.tsx#ActionMulti"]={docgenInfo:ActionMulti_ActionMulti.__docgenInfo,name:"ActionMulti",path:"components/Action/src/ActionMulti.tsx#ActionMulti"})}catch(__react_docgen_typescript_loader_error){}var ActionContent_ActionContent=function ActionContent(_ref){var children=_ref.children;return(0,jsx_runtime.jsx)("div",{className:"denhaag-action__content",children})};ActionContent_ActionContent.displayName="ActionContent";try{ActionContent_ActionContent.displayName="ActionContent",ActionContent_ActionContent.__docgenInfo={description:"",displayName:"ActionContent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionContent.tsx#ActionContent"]={docgenInfo:ActionContent_ActionContent.__docgenInfo,name:"ActionContent",path:"components/Action/src/ActionContent.tsx#ActionContent"})}catch(__react_docgen_typescript_loader_error){}var ActionDetails_ActionDetails=function ActionDetails(_ref){var children=_ref.children,dateTime=_ref.dateTime,now=_ref.now,relativeDate=_ref.relativeDate;return(0,jsx_runtime.jsxs)("div",{className:"denhaag-action__details",children:[dateTime&&(0,jsx_runtime.jsx)(ActionDate_ActionDate,{dateTime,now,relative:relativeDate}),(0,jsx_runtime.jsx)(ActionActions_ActionActions,{children})]})};ActionDetails_ActionDetails.displayName="ActionDetails";try{ActionDetails_ActionDetails.displayName="ActionDetails",ActionDetails_ActionDetails.__docgenInfo={description:"",displayName:"ActionDetails",props:{dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionDetails.tsx#ActionDetails"]={docgenInfo:ActionDetails_ActionDetails.__docgenInfo,name:"ActionDetails",path:"components/Action/src/ActionDetails.tsx#ActionDetails"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-iso-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-string.js");var differenceInCalendarDays=__webpack_require__("./node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/differenceInCalendarDays/index.js"),format=__webpack_require__("./node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/format/index.js"),nl=__webpack_require__("./node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/nl/index.js"),mjs=__webpack_require__("./components/Icons/dist/mjs/index.js"),ActionDate_ActionDate=function ActionDate(_ref){var dateTime=_ref.dateTime,_ref$now=_ref.now,now=void 0===_ref$now?(new Date).toISOString():_ref$now,_ref$relative=_ref.relative,relative=void 0!==_ref$relative&&_ref$relative,_ref$locale=_ref.locale,locale=void 0===_ref$locale?nl.Z:_ref$locale,date=new Date(dateTime),daysDifference=(0,differenceInCalendarDays.Z)(date,new Date(now));return relative?daysDifference<0?null:daysDifference<=2?(0,jsx_runtime.jsxs)("div",{className:"denhaag-action__date denhaag-action__date--warning",children:[(0,jsx_runtime.jsx)(mjs.AlertTriangleFilledIcon,{className:"denhaag-action__warning-icon",useDefaultClass:!1}),(0,jsx_runtime.jsx)(Time_Time,{dateTime,children:"nog "+daysDifference+" dagen"})]}):(0,jsx_runtime.jsx)("div",{className:"denhaag-action__date",children:(0,jsx_runtime.jsx)(Time_Time,{dateTime,children:"vóór "+(0,format.Z)(date,"d MMMM yyyy",{locale})})}):0===daysDifference?(0,jsx_runtime.jsx)("div",{className:"denhaag-action__date",children:(0,jsx_runtime.jsx)(Time_Time,{dateTime,children:"vandaag"})}):(0,jsx_runtime.jsx)("div",{className:"denhaag-action__date",children:(0,jsx_runtime.jsx)(Time_Time,{dateTime,children:(0,format.Z)(date,"d-M-yyyy")})})};ActionDate_ActionDate.displayName="ActionDate";try{ActionDate_ActionDate.displayName="ActionDate",ActionDate_ActionDate.__docgenInfo={description:"",displayName:"ActionDate",props:{dateTime:{defaultValue:null,description:"",name:"dateTime",required:!0,type:{name:"string"}},now:{defaultValue:{value:"new Date().toISOString()"},description:"",name:"now",required:!1,type:{name:"string"}},relative:{defaultValue:{value:"false"},description:"",name:"relative",required:!1,type:{name:"boolean"}},locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"Locale"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionDate.tsx#ActionDate"]={docgenInfo:ActionDate_ActionDate.__docgenInfo,name:"ActionDate",path:"components/Action/src/ActionDate.tsx#ActionDate"})}catch(__react_docgen_typescript_loader_error){}var ActionActions_ActionActions=function ActionActions(_ref){var children=_ref.children;return(0,jsx_runtime.jsx)("div",{className:"denhaag-action__actions",children:children||(0,jsx_runtime.jsx)(mjs.ArrowRightIcon,{className:"denhaag-action__link-icon",useDefaultClass:!1})})};ActionActions_ActionActions.displayName="ActionActions";try{ActionActions_ActionActions.displayName="ActionActions",ActionActions_ActionActions.__docgenInfo={description:"",displayName:"ActionActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/ActionActions.tsx#ActionActions"]={docgenInfo:ActionActions_ActionActions.__docgenInfo,name:"ActionActions",path:"components/Action/src/ActionActions.tsx#ActionActions"})}catch(__react_docgen_typescript_loader_error){}var Time_excluded=["children"];function Time_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function Time_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Time_Time=function Time(_ref){var children=_ref.children,rest=Time_objectWithoutProperties(_ref,Time_excluded);return(0,jsx_runtime.jsx)("time",Object.assign({},rest,{children}))};Time_Time.displayName="Time";try{Time_Time.displayName="Time",Time_Time.__docgenInfo={description:"",displayName:"Time",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/Time.tsx#Time"]={docgenInfo:Time_Time.__docgenInfo,name:"Time",path:"components/Action/src/Time.tsx#Time"})}catch(__react_docgen_typescript_loader_error){}try{Action.displayName="Action",Action.__docgenInfo={description:"",displayName:"Action",props:{link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}},actions:{defaultValue:null,description:"",name:"actions",required:!0,type:{name:"ReactNode"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#Action"]={docgenInfo:Action.__docgenInfo,name:"Action",path:"components/Action/src/index.tsx#Action"})}catch(__react_docgen_typescript_loader_error){}try{ActionSingle.displayName="ActionSingle",ActionSingle.__docgenInfo={description:"",displayName:"ActionSingle",props:{link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionSingle"]={docgenInfo:ActionSingle.__docgenInfo,name:"ActionSingle",path:"components/Action/src/index.tsx#ActionSingle"})}catch(__react_docgen_typescript_loader_error){}try{ActionMulti.displayName="ActionMulti",ActionMulti.__docgenInfo={description:"",displayName:"ActionMulti",props:{actions:{defaultValue:null,description:"",name:"actions",required:!0,type:{name:"ReactNode"}},dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionMulti"]={docgenInfo:ActionMulti.__docgenInfo,name:"ActionMulti",path:"components/Action/src/index.tsx#ActionMulti"})}catch(__react_docgen_typescript_loader_error){}try{ActionContent.displayName="ActionContent",ActionContent.__docgenInfo={description:"",displayName:"ActionContent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionContent"]={docgenInfo:ActionContent.__docgenInfo,name:"ActionContent",path:"components/Action/src/index.tsx#ActionContent"})}catch(__react_docgen_typescript_loader_error){}try{ActionDetails.displayName="ActionDetails",ActionDetails.__docgenInfo={description:"",displayName:"ActionDetails",props:{dateTime:{defaultValue:null,description:"",name:"dateTime",required:!1,type:{name:"string"}},now:{defaultValue:null,description:"",name:"now",required:!1,type:{name:"string"}},relativeDate:{defaultValue:null,description:"",name:"relativeDate",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionDetails"]={docgenInfo:ActionDetails.__docgenInfo,name:"ActionDetails",path:"components/Action/src/index.tsx#ActionDetails"})}catch(__react_docgen_typescript_loader_error){}try{ActionDate.displayName="ActionDate",ActionDate.__docgenInfo={description:"",displayName:"ActionDate",props:{dateTime:{defaultValue:null,description:"",name:"dateTime",required:!0,type:{name:"string"}},now:{defaultValue:{value:"new Date().toISOString()"},description:"",name:"now",required:!1,type:{name:"string"}},relative:{defaultValue:{value:"false"},description:"",name:"relative",required:!1,type:{name:"boolean"}},locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"Locale"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionDate"]={docgenInfo:ActionDate.__docgenInfo,name:"ActionDate",path:"components/Action/src/index.tsx#ActionDate"})}catch(__react_docgen_typescript_loader_error){}try{ActionActions.displayName="ActionActions",ActionActions.__docgenInfo={description:"",displayName:"ActionActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#ActionActions"]={docgenInfo:ActionActions.__docgenInfo,name:"ActionActions",path:"components/Action/src/index.tsx#ActionActions"})}catch(__react_docgen_typescript_loader_error){}try{Time.displayName="Time",Time.__docgenInfo={description:"",displayName:"Time",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Action/src/index.tsx#Time"]={docgenInfo:Time.__docgenInfo,name:"Time",path:"components/Action/src/index.tsx#Time"})}catch(__react_docgen_typescript_loader_error){}},"./components/Alert/src/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{b:()=>Alert,Z:()=>components_Alert_src_0});__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var mjs=__webpack_require__("./components/Button/dist/mjs/index.js"),dist_mjs=__webpack_require__("./components/Typography/dist/mjs/index.js"),Icons_dist_mjs=__webpack_require__("./components/Icons/dist/mjs/index.js"),IconButton_dist_mjs=__webpack_require__("./components/IconButton/dist/mjs/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/.pnpm/style-loader@2.0.0_webpack@5.89.0/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),Alert_src=__webpack_require__("./node_modules/.pnpm/css-loader@5.2.7_webpack@5.89.0/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/sass-loader@13.3.2_sass@1.69.4_webpack@5.89.0/node_modules/sass-loader/dist/cjs.js!./components/Alert/src/index.scss"),options={insert:"head",singleton:!1};injectStylesIntoStyleTag_default()(Alert_src.Z,options);Alert_src.Z.locals;var clsx=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),jsx_runtime=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),Alert=function Alert(_ref){var icon,id=_ref.id,title=_ref.title,text=_ref.text,variant=_ref.variant,action=_ref.action,close=_ref.close,supportIcon=_ref.supportIcon,className=_ref.className,rootClassNames=(0,clsx.Z)("denhaag-alert","denhaag-alert--"+variant,className);if(void 0!==supportIcon)icon=supportIcon;else switch(variant){case"error":case"warning":icon=(0,jsx_runtime.jsx)(Icons_dist_mjs.AlertTriangleIcon,{});break;case"info":icon=(0,jsx_runtime.jsx)(Icons_dist_mjs.CircleInformationIcon,{});break;case"success":icon=(0,jsx_runtime.jsx)(Icons_dist_mjs.CheckCircleIcon,{})}return(0,jsx_runtime.jsxs)("div",{id,className:rootClassNames,children:[(0,jsx_runtime.jsxs)("div",{className:"denhaag-alert__main-content",children:[(0,jsx_runtime.jsx)("div",{className:"denhaag-alert__icon",children:icon}),(0,jsx_runtime.jsxs)("div",{className:"denhaag-alert__content",children:[(0,jsx_runtime.jsx)(dist_mjs.k8,{children:title}),(0,jsx_runtime.jsx)(dist_mjs.nv,{children:text}),action&&(0,jsx_runtime.jsx)(mjs.Z,{type:"button",onClick:function onClick(){return action.onClick()},children:action.buttonText})]})]}),close&&(0,jsx_runtime.jsx)("div",{className:"denhaag-alert__close",children:(0,jsx_runtime.jsx)(IconButton_dist_mjs.Z,{"aria-label":"Close",onClick:close,tabIndex:0,children:(0,jsx_runtime.jsx)(Icons_dist_mjs.CloseIcon,{})})})]})};Alert.displayName="Alert";const components_Alert_src_0=Alert;try{Alert.displayName="Alert",Alert.__docgenInfo={description:"Primary UI component for user interaction",displayName:"Alert",props:{title:{defaultValue:null,description:"The title of the alert.",name:"title",required:!0,type:{name:"string"}},text:{defaultValue:null,description:"The main text of the alert.",name:"text",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"The variant of the alert, determines which color and icon are displayed.",name:"variant",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},supportIcon:{defaultValue:null,description:"The support icon shown top-left.\nWhen left undefined, a default icon corresponding to 'variant' is provided.",name:"supportIcon",required:!1,type:{name:"ReactNode"}},action:{defaultValue:null,description:"The action of the alert, displays a clickable button that will fire this event.",name:"action",required:!1,type:{name:"{ buttonText: string; onClick: () => void; }"}},close:{defaultValue:null,description:"The action of the alert, displays a clickable CloseIcon Button that will fire this event.",name:"close",required:!1,type:{name:"(() => void)"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Alert/src/index.tsx#Alert"]={docgenInfo:Alert.__docgenInfo,name:"Alert",path:"components/Alert/src/index.tsx#Alert"})}catch(__react_docgen_typescript_loader_error){}try{src.displayName="src",src.__docgenInfo={description:"Primary UI component for user interaction",displayName:"src",props:{title:{defaultValue:null,description:"The title of the alert.",name:"title",required:!0,type:{name:"string"}},text:{defaultValue:null,description:"The main text of the alert.",name:"text",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"The variant of the alert, determines which color and icon are displayed.",name:"variant",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},supportIcon:{defaultValue:null,description:"The support icon shown top-left.\nWhen left undefined, a default icon corresponding to 'variant' is provided.",name:"supportIcon",required:!1,type:{name:"ReactNode"}},action:{defaultValue:null,description:"The action of the alert, displays a clickable button that will fire this event.",name:"action",required:!1,type:{name:"{ buttonText: string; onClick: () => void; }"}},close:{defaultValue:null,description:"The action of the alert, displays a clickable CloseIcon Button that will fire this event.",name:"close",required:!1,type:{name:"(() => void)"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Alert/src/index.tsx#src"]={docgenInfo:src.__docgenInfo,name:"src",path:"components/Alert/src/index.tsx#src"})}catch(__react_docgen_typescript_loader_error){}},"./components/BadgeCounter/src/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>BadgeCounter});var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js");function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Button,z:()=>Button});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_assign=function __assign(){return _assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i:first-child{font-size:var(--denhaag-typography-scale-lg-font-size)}.denhaag-button--large .denhaag-button__icon>:first-child{font-size:var(--denhaag-typography-scale-xl-font-size)}.denhaag-button--start-icon .denhaag-button__icon{display:inherit;margin-inline-end:8px;margin-inline-start:-4px}.denhaag-button--end-icon .denhaag-button__icon{display:inherit;margin-inline-end:-4px;margin-inline-start:8px}.denhaag-button__sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin-block-end:-1px;margin-block-start:-1px;margin-inline-end:-1px;margin-inline-start:-1px;overflow:hidden;padding-block-end:0;padding-block-start:0;padding-inline-end:0;padding-inline-start:0;position:absolute;width:1px}.denhaag-button--icon-only{--denhaag-button-medium-size-padding-inline:0.75rem;height:var(--denhaag-button-icon-only-height);padding-inline-end:var(--denhaag-button-medium-size-padding-inline);padding-inline-start:var(--denhaag-button-medium-size-padding-inline)}.denhaag-button--icon-only .denhaag-button__icon{height:var(--denhaag-button-icon-only-icon-height)}');var Button=react__WEBPACK_IMPORTED_MODULE_5__.forwardRef((function Button(_a,ref){var icon=_a.icon,className=_a.className,_b=_a.type,type=void 0===_b?"button":_b,_c=_a.iconAlign,iconAlign=void 0===_c?"start":_c,props=function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Card=function Card(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};Card.displayName="Card";const __WEBPACK_DEFAULT_EXPORT__=Card;try{Card.displayName="Card",Card.__docgenInfo={description:"",displayName:"Card",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/Card.tsx#Card"]={docgenInfo:Card.__docgenInfo,name:"Card",path:"components/Card/src/Card/Card.tsx#Card"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardAction.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>CardAction});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__("./components/Card/src/index.scss"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js")),_excluded=["children"],_excluded2=["className","children","Action"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var DefaultLink=function DefaultLink(_ref){var children=_ref.children,props=_objectWithoutProperties(_ref,_excluded);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("a",Object.assign({},props,{children}))};DefaultLink.displayName="DefaultLink";var CardAction=function CardAction(_ref2){var className=_ref2.className,children=_ref2.children,_ref2$Action=_ref2.Action,Action=void 0===_ref2$Action?DefaultLink:_ref2$Action,props=_objectWithoutProperties(_ref2,_excluded2),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__action-link",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(Action,Object.assign({},props,{className:classNames,children}))};CardAction.displayName="CardAction";try{CardAction.displayName="CardAction",CardAction.__docgenInfo={description:"",displayName:"CardAction",props:{Action:{defaultValue:{value:"({ children, ...props }: AnchorHTMLAttributes) => {children}"},description:"",name:"Action",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardAction.tsx#CardAction"]={docgenInfo:CardAction.__docgenInfo,name:"CardAction",path:"components/Card/src/Card/CardAction.tsx#CardAction"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardActions.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardActions=function CardActions(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__actions",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardActions.displayName="CardActions";const __WEBPACK_DEFAULT_EXPORT__=CardActions;try{CardActions.displayName="CardActions",CardActions.__docgenInfo={description:"",displayName:"CardActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardActions.tsx#CardActions"]={docgenInfo:CardActions.__docgenInfo,name:"CardActions",path:"components/Card/src/Card/CardActions.tsx#CardActions"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardBackground.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardBackground=function CardBackground(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__background",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardBackground.displayName="CardBackground";const __WEBPACK_DEFAULT_EXPORT__=CardBackground;try{CardBackground.displayName="CardBackground",CardBackground.__docgenInfo={description:"",displayName:"CardBackground",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardBackground.tsx#CardBackground"]={docgenInfo:CardBackground.__docgenInfo,name:"CardBackground",path:"components/Card/src/Card/CardBackground.tsx#CardBackground"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardContent.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardContent=function CardContent(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__content",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardContent.displayName="CardContent";const __WEBPACK_DEFAULT_EXPORT__=CardContent;try{CardContent.displayName="CardContent",CardContent.__docgenInfo={description:"",displayName:"CardContent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardContent.tsx#CardContent"]={docgenInfo:CardContent.__docgenInfo,name:"CardContent",path:"components/Card/src/Card/CardContent.tsx#CardContent"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardDate.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),CardDate=function CardDate(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("time",Object.assign({},props))};CardDate.displayName="CardDate";const __WEBPACK_DEFAULT_EXPORT__=CardDate;try{CardDate.displayName="CardDate",CardDate.__docgenInfo={description:"",displayName:"CardDate",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardDate.tsx#CardDate"]={docgenInfo:CardDate.__docgenInfo,name:"CardDate",path:"components/Card/src/Card/CardDate.tsx#CardDate"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardDateWrapper.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardDateWrapper=function CardDateWrapper(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__date-wrapper",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardDateWrapper.displayName="CardDateWrapper";const __WEBPACK_DEFAULT_EXPORT__=CardDateWrapper;try{CardDateWrapper.displayName="CardDateWrapper",CardDateWrapper.__docgenInfo={description:"",displayName:"CardDateWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardDateWrapper.tsx#CardDateWrapper"]={docgenInfo:CardDateWrapper.__docgenInfo,name:"CardDateWrapper",path:"components/Card/src/Card/CardDateWrapper.tsx#CardDateWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardTextWrapper.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardTextWrapper=function CardTextWrapper(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__text-wrapper",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardTextWrapper.displayName="CardTextWrapper";const __WEBPACK_DEFAULT_EXPORT__=CardTextWrapper;try{CardTextWrapper.displayName="CardTextWrapper",CardTextWrapper.__docgenInfo={description:"",displayName:"CardTextWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardTextWrapper.tsx#CardTextWrapper"]={docgenInfo:CardTextWrapper.__docgenInfo,name:"CardTextWrapper",path:"components/Card/src/Card/CardTextWrapper.tsx#CardTextWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CardWrapper.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("./components/Card/src/index.scss");var clsx__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),_excluded=["className"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var CardWrapper=function CardWrapper(_ref){var className=_ref.className,props=_objectWithoutProperties(_ref,_excluded),classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_7__.Z)("denhaag-card__wrapper",className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",Object.assign({className:classNames},props))};CardWrapper.displayName="CardWrapper";const __WEBPACK_DEFAULT_EXPORT__=CardWrapper;try{CardWrapper.displayName="CardWrapper",CardWrapper.__docgenInfo={description:"",displayName:"CardWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CardWrapper.tsx#CardWrapper"]={docgenInfo:CardWrapper.__docgenInfo,name:"CardWrapper",path:"components/Card/src/Card/CardWrapper.tsx#CardWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/CaseCard.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,h:()=>CaseCard});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-iso-string.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var _gemeente_denhaag_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./components/Icons/dist/mjs/index.js"),_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./components/Typography/dist/mjs/index.js"),clsx__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),_Card__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__("./components/Card/src/index.scss"),__webpack_require__("./components/Card/src/Card/Card.tsx")),_CardBackground__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./components/Card/src/Card/CardBackground.tsx"),_CardActions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./components/Card/src/Card/CardActions.tsx"),_CardContent__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./components/Card/src/Card/CardContent.tsx"),_CardTextWrapper__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./components/Card/src/Card/CardTextWrapper.tsx"),_CardWrapper__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./components/Card/src/Card/CardWrapper.tsx"),_CardDateWrapper__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./components/Card/src/Card/CardDateWrapper.tsx"),_CardDate__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./components/Card/src/Card/CardDate.tsx"),_CardAction__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./components/Card/src/Card/CardAction.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),CaseCard=function CaseCard(_ref){var title=_ref.title,subTitle=_ref.subTitle,date=_ref.date,href=_ref.href,_ref$active=_ref.active,active=void 0===_ref$active||_ref$active,Link=_ref.Link,classNames=(0,clsx__WEBPACK_IMPORTED_MODULE_15__.Z)("denhaag-case-card",!active&&"denhaag-case-card--archived");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_Card__WEBPACK_IMPORTED_MODULE_5__.C,{className:classNames,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(_CardWrapper__WEBPACK_IMPORTED_MODULE_10__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_CardBackground__WEBPACK_IMPORTED_MODULE_6__.Z,{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(_CardContent__WEBPACK_IMPORTED_MODULE_8__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(_CardTextWrapper__WEBPACK_IMPORTED_MODULE_9__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__.nv,{className:"denhaag-card__title",children:title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__.nv,{className:"denhaag-card__subtitle",children:subTitle})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(_CardActions__WEBPACK_IMPORTED_MODULE_7__.Z,{children:[date&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_CardDateWrapper__WEBPACK_IMPORTED_MODULE_11__.Z,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_CardDate__WEBPACK_IMPORTED_MODULE_12__.Z,{dateTime:date.toISOString(),children:date.toLocaleDateString()})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_CardAction__WEBPACK_IMPORTED_MODULE_13__.l,{"aria-label":title,href,Action:Link,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_gemeente_denhaag_icons__WEBPACK_IMPORTED_MODULE_2__.ArrowRightIcon,{className:"denhaag-card__arrow-icon"})})]})]})]})})};CaseCard.displayName="CaseCard";const __WEBPACK_DEFAULT_EXPORT__=CaseCard;try{CaseCard.displayName="CaseCard",CaseCard.__docgenInfo={description:"Primary UI component for user interaction",displayName:"CaseCard",props:{title:{defaultValue:null,description:"Determines the title of the card",name:"title",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"Determines the subtitle of the card",name:"subTitle",required:!1,type:{name:"string"}},date:{defaultValue:null,description:"Determines the date shown on the card",name:"date",required:!1,type:{name:"Date"}},href:{defaultValue:null,description:"Determines the url the card points to",name:"href",required:!1,type:{name:"string"}},active:{defaultValue:{value:"true"},description:"Determines the card color",name:"active",required:!1,type:{name:"boolean"}},Link:{defaultValue:null,description:"Custom Link component used for single-page apps.",name:"Link",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/CaseCard.tsx#CaseCard"]={docgenInfo:CaseCard.__docgenInfo,name:"CaseCard",path:"components/Card/src/Card/CaseCard.tsx#CaseCard"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/Card/SubjectCard.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-iso-string.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var _gemeente_denhaag_icons__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./components/Icons/dist/mjs/index.js"),_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./components/Typography/dist/mjs/index.js"),_Card__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__("./components/Card/src/index.scss"),__webpack_require__("./components/Card/src/Card/Card.tsx")),_CardActions__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./components/Card/src/Card/CardActions.tsx"),_CardContent__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./components/Card/src/Card/CardContent.tsx"),_CardTextWrapper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./components/Card/src/Card/CardTextWrapper.tsx"),_CardDateWrapper__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./components/Card/src/Card/CardDateWrapper.tsx"),_CardDate__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./components/Card/src/Card/CardDate.tsx"),_CardAction__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./components/Card/src/Card/CardAction.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),SubjectCard=function SubjectCard(_ref){var title=_ref.title,subTitle=_ref.subTitle,date=_ref.date,href=_ref.href,Link=_ref.Link;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_Card__WEBPACK_IMPORTED_MODULE_5__.C,{className:"denhaag-subject-card",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_CardContent__WEBPACK_IMPORTED_MODULE_7__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_CardTextWrapper__WEBPACK_IMPORTED_MODULE_8__.Z,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__.nv,{className:"denhaag-card__title",children:title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_gemeente_denhaag_typography__WEBPACK_IMPORTED_MODULE_3__.nv,{className:"denhaag-card__subtitle",children:subTitle})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(_CardActions__WEBPACK_IMPORTED_MODULE_6__.Z,{children:[date&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_CardDateWrapper__WEBPACK_IMPORTED_MODULE_9__.Z,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_CardDate__WEBPACK_IMPORTED_MODULE_10__.Z,{dateTime:date.toISOString(),children:date.toLocaleDateString()})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_CardAction__WEBPACK_IMPORTED_MODULE_11__.l,{"aria-label":title,href,Action:Link,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_gemeente_denhaag_icons__WEBPACK_IMPORTED_MODULE_2__.ArrowRightIcon,{className:"denhaag-card__arrow-icon"})})]})]})})};SubjectCard.displayName="SubjectCard";const __WEBPACK_DEFAULT_EXPORT__=SubjectCard;try{SubjectCard.displayName="SubjectCard",SubjectCard.__docgenInfo={description:"Primary UI component for user interaction",displayName:"SubjectCard",props:{title:{defaultValue:null,description:"Determines the title of the card",name:"title",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"Determines the subtitle of the card",name:"subTitle",required:!1,type:{name:"string"}},date:{defaultValue:null,description:"Determines the date shown on the card",name:"date",required:!1,type:{name:"Date"}},href:{defaultValue:null,description:"Determines the url the card points to",name:"href",required:!1,type:{name:"string"}},Link:{defaultValue:null,description:"Custom Link component used for single-page apps.",name:"Link",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/Card/SubjectCard.tsx#SubjectCard"]={docgenInfo:SubjectCard.__docgenInfo,name:"SubjectCard",path:"components/Card/src/Card/SubjectCard.tsx#SubjectCard"})}catch(__react_docgen_typescript_loader_error){}},"./components/Card/src/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{hZ:()=>_Card_CaseCard__WEBPACK_IMPORTED_MODULE_10__.h});__webpack_require__("./components/Card/src/index.scss"),__webpack_require__("./components/Card/src/Card/Card.tsx"),__webpack_require__("./components/Card/src/Card/CardAction.tsx"),__webpack_require__("./components/Card/src/Card/CardActions.tsx"),__webpack_require__("./components/Card/src/Card/CardBackground.tsx"),__webpack_require__("./components/Card/src/Card/CardContent.tsx"),__webpack_require__("./components/Card/src/Card/CardDate.tsx"),__webpack_require__("./components/Card/src/Card/CardDateWrapper.tsx"),__webpack_require__("./components/Card/src/Card/CardTextWrapper.tsx"),__webpack_require__("./components/Card/src/Card/CardWrapper.tsx");var _Card_CaseCard__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./components/Card/src/Card/CaseCard.tsx");__webpack_require__("./components/Card/src/Card/SubjectCard.tsx");try{Card.displayName="Card",Card.__docgenInfo={description:"",displayName:"Card",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#Card"]={docgenInfo:Card.__docgenInfo,name:"Card",path:"components/Card/src/index.tsx#Card"})}catch(__react_docgen_typescript_loader_error){}try{CardAction.displayName="CardAction",CardAction.__docgenInfo={description:"",displayName:"CardAction",props:{Action:{defaultValue:{value:"({ children, ...props }: AnchorHTMLAttributes) => {children}"},description:"",name:"Action",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardAction"]={docgenInfo:CardAction.__docgenInfo,name:"CardAction",path:"components/Card/src/index.tsx#CardAction"})}catch(__react_docgen_typescript_loader_error){}try{CardActions.displayName="CardActions",CardActions.__docgenInfo={description:"",displayName:"CardActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardActions"]={docgenInfo:CardActions.__docgenInfo,name:"CardActions",path:"components/Card/src/index.tsx#CardActions"})}catch(__react_docgen_typescript_loader_error){}try{CardBackground.displayName="CardBackground",CardBackground.__docgenInfo={description:"",displayName:"CardBackground",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardBackground"]={docgenInfo:CardBackground.__docgenInfo,name:"CardBackground",path:"components/Card/src/index.tsx#CardBackground"})}catch(__react_docgen_typescript_loader_error){}try{CardContent.displayName="CardContent",CardContent.__docgenInfo={description:"",displayName:"CardContent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardContent"]={docgenInfo:CardContent.__docgenInfo,name:"CardContent",path:"components/Card/src/index.tsx#CardContent"})}catch(__react_docgen_typescript_loader_error){}try{CardDate.displayName="CardDate",CardDate.__docgenInfo={description:"",displayName:"CardDate",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardDate"]={docgenInfo:CardDate.__docgenInfo,name:"CardDate",path:"components/Card/src/index.tsx#CardDate"})}catch(__react_docgen_typescript_loader_error){}try{CardDateWrapper.displayName="CardDateWrapper",CardDateWrapper.__docgenInfo={description:"",displayName:"CardDateWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardDateWrapper"]={docgenInfo:CardDateWrapper.__docgenInfo,name:"CardDateWrapper",path:"components/Card/src/index.tsx#CardDateWrapper"})}catch(__react_docgen_typescript_loader_error){}try{CardTextWrapper.displayName="CardTextWrapper",CardTextWrapper.__docgenInfo={description:"",displayName:"CardTextWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardTextWrapper"]={docgenInfo:CardTextWrapper.__docgenInfo,name:"CardTextWrapper",path:"components/Card/src/index.tsx#CardTextWrapper"})}catch(__react_docgen_typescript_loader_error){}try{CardWrapper.displayName="CardWrapper",CardWrapper.__docgenInfo={description:"",displayName:"CardWrapper",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CardWrapper"]={docgenInfo:CardWrapper.__docgenInfo,name:"CardWrapper",path:"components/Card/src/index.tsx#CardWrapper"})}catch(__react_docgen_typescript_loader_error){}try{CaseCard.displayName="CaseCard",CaseCard.__docgenInfo={description:"Primary UI component for user interaction",displayName:"CaseCard",props:{title:{defaultValue:null,description:"Determines the title of the card",name:"title",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"Determines the subtitle of the card",name:"subTitle",required:!1,type:{name:"string"}},date:{defaultValue:null,description:"Determines the date shown on the card",name:"date",required:!1,type:{name:"Date"}},href:{defaultValue:null,description:"Determines the url the card points to",name:"href",required:!1,type:{name:"string"}},active:{defaultValue:{value:"true"},description:"Determines the card color",name:"active",required:!1,type:{name:"boolean"}},Link:{defaultValue:null,description:"Custom Link component used for single-page apps.",name:"Link",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#CaseCard"]={docgenInfo:CaseCard.__docgenInfo,name:"CaseCard",path:"components/Card/src/index.tsx#CaseCard"})}catch(__react_docgen_typescript_loader_error){}try{SubjectCard.displayName="SubjectCard",SubjectCard.__docgenInfo={description:"Primary UI component for user interaction",displayName:"SubjectCard",props:{title:{defaultValue:null,description:"Determines the title of the card",name:"title",required:!0,type:{name:"string"}},subTitle:{defaultValue:null,description:"Determines the subtitle of the card",name:"subTitle",required:!1,type:{name:"string"}},date:{defaultValue:null,description:"Determines the date shown on the card",name:"date",required:!1,type:{name:"Date"}},href:{defaultValue:null,description:"Determines the url the card points to",name:"href",required:!1,type:{name:"string"}},Link:{defaultValue:null,description:"Custom Link component used for single-page apps.",name:"Link",required:!1,type:{name:"CustomLink"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Card/src/index.tsx#SubjectCard"]={docgenInfo:SubjectCard.__docgenInfo,name:"SubjectCard",path:"components/Card/src/index.tsx#SubjectCard"})}catch(__react_docgen_typescript_loader_error){}},"./components/CardGroup/src/story-template.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>AuthenticationCardGroup});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var clsx__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),AuthenticationCard=function AuthenticationCard(_ref){var _ref$authProvider=_ref.authProvider,authProvider=void 0===_ref$authProvider?"":_ref$authProvider,_ref$portrait=_ref.portrait,portrait=void 0!==_ref$portrait&&_ref$portrait,title=authProvider?"eIDAS"===authProvider?"Log in met uw Europese digitale identiteit":"Inloggen met "+authProvider:"Als gast doorgaan",subtitle=authProvider?"DigiD"===authProvider?"Laat zien wie u bent":"eHerkenning"===authProvider?"Voor bedrijf of instelling":"":"u hoeft niet in te loggen";return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("section",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_3__.Z)("denhaag-card-authentication",portrait&&"denhaag-card-authentication--portrait"),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("header",{className:"denhaag-card-authentication__header",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("hgroup",{className:"denhaag-card-authentication__heading",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h3",{className:"utrecht-heading-3 denhaag-card-authentication__title",children:title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_3__.Z)("utrecht-paragraph","denhaag-card-authentication__subtitle"),children:subtitle})]}),authProvider&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_3__.Z)("denhaag-image","denhaag-card-authentication__logo"),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("img",{width:"80",height:"80",src:{DigiD:"digid.svg",eHerkenning:"eherkenning.png",eIDAS:"eidas.svg"}[authProvider],className:"denhaag-image__image",alt:authProvider+" logo",loading:"lazy"})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:"denhaag-card-authentication__cta",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:"denhaag-button-group",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("a",{className:"denhaag-card-authentication__cta-link denhaag-button denhaag-button--large denhaag-button--primary-action denhaag-button--end-icon",href:"#example-link",target:"_self",title,children:["Inloggen",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",{className:"denhaag-button__icon",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("svg",{"aria-hidden":"true",className:"denhaag-icon",focusable:"false",height:"1em",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("path",{d:"M12.293 5.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L16.586 13H5a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"})})})]})})}),authProvider&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("footer",{className:"denhaag-card-authentication__footer",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("p",{className:"utrecht-paragraph",children:["eIDAS"!==authProvider&&"Geen "+authProvider+"? ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("a",{href:"#example-link",className:"denhaag-link denhaag-link--with-icon denhaag-link--with-icon-end denhaag-link--external",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",{className:"denhaag-link__icon",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"denhaag-icon",focusable:"false","aria-hidden":"true",shapeRendering:"auto",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("path",{d:"M14 5C13.4477 5 13 4.55228 13 4C13 3.44772 13.4477 3 14 3H20C20.2652 3 20.5196 3.10536 20.7071 3.29289C20.8946 3.48043 21 3.73478 21 4L21 10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10L19 6.41422L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L17.5858 5H14ZM3 7C3 5.89543 3.89543 5 5 5H10C10.5523 5 11 5.44772 11 6C11 6.55228 10.5523 7 10 7H5V19H17V14C17 13.4477 17.4477 13 18 13C18.5523 13 19 13.4477 19 14V19C19 20.1046 18.1046 21 17 21H5C3.89543 21 3 20.1046 3 19V7Z",fill:"currentColor"})})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("span",{className:"denhaag-link__label",children:"eIDAS"===authProvider?"How does eIDAS work?":"Vraag "+authProvider+" aan"})]})]})})]})};AuthenticationCard.displayName="AuthenticationCard";var AuthenticationCardGroup=function AuthenticationCardGroup(_ref2){var _ref2$cards=_ref2.cards,cards=void 0===_ref2$cards?[]:_ref2$cards,_ref2$rows=_ref2.rows,rows=void 0!==_ref2$rows&&_ref2$rows,_ref2$responsive=_ref2.responsive,responsive=void 0!==_ref2$responsive&&_ref2$responsive,_ref2$distanced=_ref2.distanced,distanced=void 0===_ref2$distanced||_ref2$distanced;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_3__.Z)("denhaag-card-group",rows&&"denhaag-card-group--rows",responsive&&"denhaag-card-group--responsive",distanced&&"denhaag-card-group--distanced"),children:cards.map((function(authProvider,index){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(AuthenticationCard,{authProvider},index)}))})};AuthenticationCardGroup.displayName="AuthenticationCardGroup";try{AuthenticationCard.displayName="AuthenticationCard",AuthenticationCard.__docgenInfo={description:"",displayName:"AuthenticationCard",props:{authProvider:{defaultValue:{value:""},description:"",name:"authProvider",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"DigiD"'},{value:'"eHerkenning"'},{value:'"eIDAS"'}]}},portrait:{defaultValue:{value:"false"},description:"",name:"portrait",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/CardGroup/src/story-template.tsx#AuthenticationCard"]={docgenInfo:AuthenticationCard.__docgenInfo,name:"AuthenticationCard",path:"components/CardGroup/src/story-template.tsx#AuthenticationCard"})}catch(__react_docgen_typescript_loader_error){}try{AuthenticationCardGroup.displayName="AuthenticationCardGroup",AuthenticationCardGroup.__docgenInfo={description:"",displayName:"AuthenticationCardGroup",props:{cards:{defaultValue:{value:"[]"},description:"",name:"cards",required:!1,type:{name:"AuthProvider[]"}},rows:{defaultValue:{value:"false"},description:"",name:"rows",required:!1,type:{name:"boolean"}},responsive:{defaultValue:{value:"false"},description:"",name:"responsive",required:!1,type:{name:"boolean"}},distanced:{defaultValue:{value:"true"},description:"",name:"distanced",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/CardGroup/src/story-template.tsx#AuthenticationCardGroup"]={docgenInfo:AuthenticationCardGroup.__docgenInfo,name:"AuthenticationCardGroup",path:"components/CardGroup/src/story-template.tsx#AuthenticationCardGroup"})}catch(__react_docgen_typescript_loader_error){}},"./components/Checkbox/dist/mjs/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>Checkbox});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.bind.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_assign$=function __assign$1(){return _assign$=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{gi:()=>ContactTimelineMobile});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-iso-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js");var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),mjs=__webpack_require__("./components/StepMarker/dist/mjs/index.js"),_assign$=(__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.bind.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),function __assign$2(){return _assign$=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ContactTimelineMobile=function ContactTimelineMobile(_ref){var items=_ref.items,todayLabel=_ref.todayLabel;return(0,jsx_runtime.jsx)(ContactTimelineList,{mobile:!0,className:"denhaag-process-steps",children:items.map((function(item,index){var nextItem=index{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>File_File});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.link.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.last-index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.bind.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var clsx=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),mjs=__webpack_require__("./components/Icons/dist/mjs/index.js"),jsx_runtime=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0?link.substring(link.lastIndexOf(".")+1,link.length):void 0,lastUpdatedDate=lastUpdated?new Date(lastUpdated).toLocaleDateString():null,FileTypeIcon=function FileTypeIcon(_ref2){var props=_extends({},(function _objectDestructuringEmpty(obj){if(null==obj)throw new TypeError("Cannot destructure "+obj)}(_ref2),_ref2));return"pdf"===extension?(0,jsx_runtime.jsx)(mjs.FileIcon,Object.assign({},props)):(0,jsx_runtime.jsx)(mjs.ImageIcon,Object.assign({},props))};return(0,jsx_runtime.jsxs)("a",{href:link,className:(0,clsx.Z)("denhaag-file",className),"aria-labelledby":"name","aria-describedby":"description",download:name,children:[(0,jsx_runtime.jsx)("div",{className:"denhaag-file__left",children:(0,jsx_runtime.jsx)(FileTypeIcon,{className:"denhaag-file__icon"})}),(0,jsx_runtime.jsxs)("div",{className:"denhaag-file__right",children:[(0,jsx_runtime.jsxs)("div",{className:"denhaag-file__label",children:[(0,jsx_runtime.jsxs)("span",{id:"name",children:[name," "]}),(extension||size||lastUpdated)&&(0,jsx_runtime.jsxs)("span",{id:"description",children:["(",[extension,size,lastUpdatedDate].filter(Boolean).join(", "),")"]})]}),(0,jsx_runtime.jsxs)("div",{className:"denhaag-file__link",children:[(0,jsx_runtime.jsx)(mjs.DownloadIcon,{className:"denhaag-file__link__icon"}),(0,jsx_runtime.jsx)("div",{className:"utrecht-link",tabIndex:-1,children:"Download"})]})]})]})};File_File.displayName="File";try{File_File.displayName="File",File_File.__docgenInfo={description:"",displayName:"File",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},lastUpdated:{defaultValue:null,description:"",name:"lastUpdated",required:!1,type:{name:"Date"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/File/src/File.tsx#File"]={docgenInfo:File_File.__docgenInfo,name:"File",path:"components/File/src/File.tsx#File"})}catch(__react_docgen_typescript_loader_error){}try{File.displayName="File",File.__docgenInfo={description:"",displayName:"File",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},link:{defaultValue:null,description:"",name:"link",required:!0,type:{name:"string"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"number"}},lastUpdated:{defaultValue:null,description:"",name:"lastUpdated",required:!1,type:{name:"Date"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/File/src/index.tsx#File"]={docgenInfo:File.__docgenInfo,name:"File",path:"components/File/src/index.tsx#File"})}catch(__react_docgen_typescript_loader_error){}},"./components/Footer/src/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ZP:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var _utrecht_component_library_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@utrecht+component-library-react@1.0.0-alpha.411_react-dom@18.2.0_react@18.2.0/node_modules/@utrecht/component-library-react/dist/index.esm.js"),_gemeente_denhaag_responsive_content__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./components/ResponsiveContent/dist/mjs/index.js"),clsx__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__("./components/Footer/src/index.scss"),__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js")),FooterLegal=function FooterLegal(props){var _props$legalData;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("section",{className:"denhaag-footer__legal",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_gemeente_denhaag_responsive_content__WEBPACK_IMPORTED_MODULE_2__.Z,{className:"denhaag-footer__legal-container",children:[props.legalData&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul",{className:"denhaag-list denhaag-footer__legal-links",children:null===(_props$legalData=props.legalData)||void 0===_props$legalData?void 0:_props$legalData.map((function(item,key){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li",{className:"denhaag-list__item",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a",{href:item.href,className:"denhaag-link",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("span",{className:"denhaag-link__label",children:item.label})})},key)}))}),props.copyrightLabel&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{className:"denhaag-footer__legal-copyright",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p",{className:"utrecht-paragraph",children:props.copyrightLabel})})]})})};FooterLegal.displayName="FooterLegal";var FooterContact=function FooterContact(props){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("section",{className:"denhaag-footer__contact",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_gemeente_denhaag_responsive_content__WEBPACK_IMPORTED_MODULE_2__.Z,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{className:"denhaag-footer-group",children:[props.newsletterData&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{className:"denhaag-link-group denhaag-link-group--dark",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{className:"utrecht-heading-4 denhaag-link-group__caption",children:props.newsletterData.title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p",{className:"utrecht-paragraph",children:props.newsletterData.text}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{className:"denhaag-button-group",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_utrecht_component_library_react__WEBPACK_IMPORTED_MODULE_5__.ZP,{appearance:"primary-action-button",href:props.newsletterData.href,children:props.newsletterData.buttonLabel})})]}),props.socialData&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{className:"denhaag-link-group denhaag-link-group--dark",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{className:"utrecht-heading-4 denhaag-link-group__caption",children:props.socialData.title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul",{className:"utrecht-list-social",children:props.socialData.links.map((function(item,key){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li",{className:"utrecht-list-social__item",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a",{href:item.href,className:"utrecht-link-social",title:item.label,children:item.icon})},key)}))})]}),props.contactData&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{className:"denhaag-link-group denhaag-link-group--dark",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{className:"utrecht-heading-4 denhaag-link-group__caption",children:props.contactData.title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul",{className:"utrecht-link-list utrecht-link-list--html-ul denhaag-link-group__list",children:props.contactData.links.map((function(item,key){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li",{className:"denhaag-link-group__list-item",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("a",{href:item.href,className:"denhaag-link denhaag-link--with-icon denhaag-link--with-icon-start",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("span",{className:"denhaag-link__icon",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"denhaag-icon",focusable:"false","aria-hidden":"true",shapeRendering:"auto",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path",{d:"M12.293 5.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L16.586 13H5a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",fill:"currentColor"})})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("span",{className:"denhaag-link__label",children:item.label})]})},key)}))}),props.contactData.buttonLabel&&props.contactData.href&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{className:"denhaag-button-group",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_utrecht_component_library_react__WEBPACK_IMPORTED_MODULE_5__.ZP,{appearance:"primary-action-button",href:props.contactData.href,children:props.contactData.buttonLabel})})]})]})})})};FooterContact.displayName="FooterContact";var Footer=function Footer(props){var rootClassNames=(0,clsx__WEBPACK_IMPORTED_MODULE_6__.Z)("denhaag-footer",props.className);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("footer",{className:rootClassNames,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(FooterContact,{socialData:props.socialData,newsletterData:props.newsletterData,contactData:props.contactData}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(FooterLegal,{legalData:props.legalData,copyrightLabel:props.copyrightLabel})]})};Footer.displayName="Footer";const __WEBPACK_DEFAULT_EXPORT__=Footer;try{FooterLegal.displayName="FooterLegal",FooterLegal.__docgenInfo={description:"",displayName:"FooterLegal",props:{legalData:{defaultValue:null,description:"",name:"legalData",required:!1,type:{name:"FooterListItemData[]"}},copyrightLabel:{defaultValue:null,description:"",name:"copyrightLabel",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},classes:{defaultValue:null,description:"Override or extend the styles applied to the component.",name:"classes",required:!1,type:{name:"Record"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Footer/src/index.tsx#FooterLegal"]={docgenInfo:FooterLegal.__docgenInfo,name:"FooterLegal",path:"components/Footer/src/index.tsx#FooterLegal"})}catch(__react_docgen_typescript_loader_error){}try{FooterContact.displayName="FooterContact",FooterContact.__docgenInfo={description:"",displayName:"FooterContact",props:{socialData:{defaultValue:null,description:"",name:"socialData",required:!1,type:{name:"FooterSocialData"}},newsletterData:{defaultValue:null,description:"",name:"newsletterData",required:!1,type:{name:"NewsLetterData"}},contactData:{defaultValue:null,description:"",name:"contactData",required:!1,type:{name:"ContactData"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},classes:{defaultValue:null,description:"Override or extend the styles applied to the component.",name:"classes",required:!1,type:{name:"Record"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Footer/src/index.tsx#FooterContact"]={docgenInfo:FooterContact.__docgenInfo,name:"FooterContact",path:"components/Footer/src/index.tsx#FooterContact"})}catch(__react_docgen_typescript_loader_error){}try{Footer.displayName="Footer",Footer.__docgenInfo={description:"",displayName:"Footer",props:{legalData:{defaultValue:null,description:"",name:"legalData",required:!1,type:{name:"FooterListItemData[]"}},copyrightLabel:{defaultValue:null,description:"",name:"copyrightLabel",required:!1,type:{name:"string"}},socialData:{defaultValue:null,description:"",name:"socialData",required:!1,type:{name:"FooterSocialData"}},newsletterData:{defaultValue:null,description:"",name:"newsletterData",required:!1,type:{name:"NewsLetterData"}},contactData:{defaultValue:null,description:"",name:"contactData",required:!1,type:{name:"ContactData"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},classes:{defaultValue:null,description:"Override or extend the styles applied to the component.",name:"classes",required:!1,type:{name:"Record"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Footer/src/index.tsx#Footer"]={docgenInfo:Footer.__docgenInfo,name:"Footer",path:"components/Footer/src/index.tsx#Footer"})}catch(__react_docgen_typescript_loader_error){}try{src.displayName="src",src.__docgenInfo={description:"",displayName:"src",props:{legalData:{defaultValue:null,description:"",name:"legalData",required:!1,type:{name:"FooterListItemData[]"}},copyrightLabel:{defaultValue:null,description:"",name:"copyrightLabel",required:!1,type:{name:"string"}},socialData:{defaultValue:null,description:"",name:"socialData",required:!1,type:{name:"FooterSocialData"}},newsletterData:{defaultValue:null,description:"",name:"newsletterData",required:!1,type:{name:"NewsLetterData"}},contactData:{defaultValue:null,description:"",name:"contactData",required:!1,type:{name:"ContactData"}},id:{defaultValue:null,description:"The id attribute is used to specify a unique id for an HTML element.",name:"id",required:!1,type:{name:"string"}},classes:{defaultValue:null,description:"Override or extend the styles applied to the component.",name:"classes",required:!1,type:{name:"Record"}},className:{defaultValue:null,description:"Extend the styles of the component by adding new classes.",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Footer/src/index.tsx#src"]={docgenInfo:src.__docgenInfo,name:"src",path:"components/Footer/src/index.tsx#src"})}catch(__react_docgen_typescript_loader_error){}},"./components/FormControlLabel/dist/mjs/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>FormControlLabel,Z:()=>FormControlLabel});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_assign=function __assign(){return _assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{Eq:()=>FormFieldLabel,Hq:()=>FormFieldInput,LV:()=>FormFieldGroup,Wi:()=>FormField,tk:()=>FormFieldGroupLabel,ue:()=>FormFieldDescription});__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_assign=function __assign(){return _assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{t9:()=>HeaderLogic_HeaderLogic});__webpack_require__("./components/Header/src/index.scss"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.is-array.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.from.js");var react=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),HeaderLogo=function HeaderLogo(){return react.createElement("svg",{className:"denhaag-header__logo",xmlns:"http://www.w3.org/2000/svg",width:"153",height:"48",viewBox:"0 0 153 48",fill:"none"},react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M133.269 22.8104C133.269 23.7002 132.638 24.6354 131.676 24.6354C131.105 24.6354 130.759 24.2431 130.759 23.7305C130.759 23.0818 131.3 22.5842 133.269 22.5842V22.8104ZM135.163 20.9099C135.163 19.2508 134.441 18.2705 132.142 18.2705C131.225 18.2705 130.188 18.4967 129.361 18.7983L129.647 20.2161C130.368 19.9294 131.24 19.7184 131.916 19.7184C132.923 19.7184 133.269 20.1407 133.269 21.0305V21.3472C130.654 21.3472 128.94 22.1918 128.94 23.9566C128.94 25.1782 129.737 26.0831 131.074 26.0831C132.202 26.0831 133.118 25.4798 133.479 24.6353L133.494 24.6502C133.434 25.0425 133.419 25.4949 133.419 25.9474C134.381 25.9775 135.523 25.9323 136.47 25.8116V24.6502C136.034 24.6202 135.523 24.5599 135.163 24.4994V20.9099ZM123.807 16.9583C124.153 17.0337 124.558 17.0942 124.919 17.1244V19.8392H120.546V17.1244C120.906 17.0942 121.312 17.0337 121.658 16.9583V15.7518H117.479V16.9281C117.87 17.0188 118.336 17.0942 118.787 17.1244V24.5599C118.336 24.5901 117.87 24.6655 117.479 24.7559V25.9324H121.658V24.7258C121.312 24.6503 120.906 24.5901 120.546 24.5599V21.4983H124.919V24.5599C124.558 24.5901 124.153 24.6503 123.807 24.7258V25.9324H127.985V24.7559C127.594 24.6655 127.129 24.5901 126.678 24.5599V17.1244C127.129 17.0942 127.594 17.0188 127.985 16.9281V15.7518H123.807V16.9583ZM150.402 22.0107C150.402 23.323 149.786 24.5145 148.749 24.5145C147.862 24.5145 147.441 23.7905 147.441 22.3879C147.441 20.5026 148.238 19.7938 149.365 19.7938C149.741 19.7938 150.071 19.839 150.402 19.9144V22.0107ZM149.545 18.3007C146.915 18.3007 145.472 20.0352 145.472 22.5689C145.472 24.8615 146.464 26.0831 148.253 26.0831C149.245 26.0831 150.086 25.5402 150.477 24.6655L150.507 24.6804C150.432 25.0727 150.417 25.4045 150.417 25.7815V26.2492C150.417 27.5311 149.741 28.1042 148.313 28.1042C147.576 28.1042 146.765 27.9685 146.103 27.7272L145.923 29.4314C146.554 29.5822 147.366 29.6879 148.207 29.6879C151.048 29.6879 152.265 28.3455 152.265 26.0682V18.527C151.454 18.3911 150.582 18.3007 149.545 18.3007ZM141.55 22.8104C141.55 23.7002 140.918 24.6354 139.957 24.6354C139.385 24.6354 139.04 24.2431 139.04 23.7305C139.04 23.0818 139.581 22.5842 141.55 22.5842V22.8104ZM143.444 20.9099C143.444 19.2508 142.722 18.2705 140.423 18.2705C139.506 18.2705 138.469 18.4967 137.642 18.7983L137.928 20.2161C138.649 19.9294 139.521 19.7184 140.197 19.7184C141.204 19.7184 141.55 20.1407 141.55 21.0305V21.3472C138.935 21.3472 137.221 22.1918 137.221 23.9566C137.221 25.1782 138.018 26.0831 139.355 26.0831C140.483 26.0831 141.4 25.4798 141.76 24.6353L141.775 24.6502C141.715 25.0425 141.7 25.4949 141.7 25.9474C142.662 25.9775 143.804 25.9323 144.751 25.8116V24.6502C144.315 24.6202 143.804 24.5599 143.444 24.4994V20.9099ZM99.7185 21.3019C99.8235 20.2764 100.425 19.673 101.236 19.673C102.063 19.673 102.589 20.231 102.559 21.3019H99.7185ZM101.327 18.2856C99.1171 18.2856 97.8094 20.0048 97.8094 22.2523C97.8094 24.8917 99.1171 26.0831 101.492 26.0831C102.379 26.0831 103.326 25.9174 104.167 25.6307L103.972 24.2279C103.205 24.4845 102.454 24.6202 101.717 24.6202C100.32 24.6202 99.7184 23.9114 99.7032 22.5688H104.363C104.363 22.5688 104.423 22.0261 104.423 21.468C104.423 19.6883 103.506 18.2856 101.327 18.2856ZM91.3024 24.3485C90.9267 24.3485 90.5057 24.3336 90.2202 24.2883V17.3352C90.5358 17.3052 90.9867 17.2899 91.4375 17.2899C93.7824 17.2899 94.6691 18.6023 94.6691 20.8193C94.6691 23.2626 93.2712 24.3485 91.3024 24.3485ZM91.5729 15.6914C90.3254 15.6914 89.078 15.7517 88.2663 15.7517H87.0038V16.9281C87.3946 17.0187 87.8605 17.0941 88.3114 17.1243V24.5599C87.8605 24.5901 87.3946 24.6655 87.0038 24.7558V25.9323H88.3114C88.8073 25.9323 90.0698 25.9928 91.122 25.9928C94.4285 25.9928 96.7133 24.1676 96.7133 20.6686C96.7133 17.1091 94.7143 15.6914 91.5729 15.6914ZM110.705 18.2856C109.473 18.2856 108.601 18.9041 108.15 19.8089L108.135 19.7939C108.21 19.3867 108.24 18.7832 108.24 18.4213C107.248 18.3911 106.106 18.4364 105.159 18.557V19.7184C105.595 19.7485 106.106 19.8089 106.467 19.8693V25.9323H108.345V22.3125C108.345 20.9702 109.112 19.854 110.104 19.854C110.84 19.854 111.066 20.3368 111.066 21.1361V25.9323H112.93V20.6686C112.93 19.3565 112.388 18.2856 110.705 18.2856Z",fill:"#155429"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.0044 40.7322H45.0341V47.9998H58.0044C67.4367 47.9998 70.9141 47.2803 70.9141 47.2803V39.9282C70.9141 39.9282 67.4035 40.7322 58.0044 40.7322Z",fill:"#1D6B35"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.2166 38.8932L30.5744 44.4397C32.3222 44.4203 34.0973 44.4102 35.8965 44.4102C38.6269 44.4102 41.303 44.4332 43.9092 44.4771V39.4079L54.79 37.9947C54.79 37.9947 53.2782 37.7322 49.168 37.4305C45.0582 37.1288 39.1552 37.2388 39.1552 37.2388C39.1552 37.2388 36.7875 38.0375 35.8742 38.1974C34.9607 38.0375 32.5933 37.2388 32.5933 37.2388C32.5933 37.2388 26.7349 37.129 22.6249 37.4305C18.5206 37.7313 15.7869 38.1651 15.7707 38.1675L28.2166 38.8932Z",fill:"#1D6B35"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.689 39.5922L27.7093 44.4801C28.655 44.4637 29.6103 44.4502 30.5743 44.4397L28.2166 38.8932L15.7707 38.1675V39.5667C24.1735 39.5462 27.689 39.5922 27.689 39.5922Z",fill:"#155429"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.564 40.7322H13.7434C4.34446 40.7322 0.833496 39.9282 0.833496 39.9282V47.2803C0.833496 47.2803 4.31124 47.9998 13.7434 47.9998H26.564V40.7322Z",fill:"#1D6B35"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.98302 40.1214C1.19158 40.0101 0.83374 39.9282 0.83374 39.9282V47.2803C0.83374 47.2803 2.08732 47.5395 5.12832 47.7467C3.11096 45.4611 2.13647 42.6289 1.98302 40.1214Z",fill:"#155429"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13794 42.4888H6.51626V42.9216H6.14279L7.02139 45.3659C7.05807 45.4661 7.07926 45.5823 7.10556 45.6877H7.11608C7.14223 45.5823 7.16342 45.4661 7.20024 45.3659L8.06292 42.9216H7.63684V42.4888H8.9836V42.9216H8.65221L7.38961 46.184H6.73719L5.45881 42.9216H5.13794V42.4888Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7589 44.1469C11.1744 44.1469 11.4637 43.9252 11.4637 43.5293C11.4637 43.144 11.227 42.9222 10.801 42.9222H10.3118L10.3012 44.1469H10.7589ZM9.33325 45.7518H9.69621L9.71725 42.9221H9.33325V42.4893H10.9693C11.7269 42.4893 12.0846 42.9275 12.0846 43.4659C12.0846 44.1046 11.6743 44.3951 11.2062 44.4426V44.453C11.4112 44.469 11.5479 44.643 11.6743 44.8542L12.0741 45.53C12.1793 45.7042 12.2793 45.7518 12.4003 45.7518H12.5372V46.1847H12.1951C11.8848 46.1847 11.7427 46.153 11.5271 45.7939L11.0219 44.9335C10.8694 44.6696 10.7905 44.6114 10.6169 44.6114H10.3013L10.2908 45.7518H10.7168V46.1847H9.33325V45.7518Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9893 45.7512H13.3575L13.3785 42.9216H12.9525V42.4888H15.5408L15.5618 43.46H15.0725L15.0409 42.9216H13.9729L13.9626 44.0619H15.0146V44.5264H13.9626L13.9519 45.7512H15.0725L15.1145 45.1493H15.6092L15.5671 46.184H12.9893V45.7512Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7552 45.7517C18.6547 45.7517 19.1598 45.2026 19.1598 44.2787C19.1598 43.45 18.6863 42.9222 17.7815 42.9222H17.187L17.1661 45.7517H17.7552ZM16.2032 45.7517H16.5767L16.5977 42.9221H16.2032V42.4893H17.9497C19.1334 42.4893 19.812 43.1807 19.812 44.2524C19.812 45.3452 19.1229 46.1845 17.9445 46.1845H16.2032V45.7517Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.2274 45.7512H20.5956L20.6166 42.9216H20.1906V42.4888H22.7789L22.7999 43.46H22.3106L22.279 42.9216H21.2112L21.2007 44.0619H22.2529V44.5264H21.2007L21.19 45.7512H22.3106L22.3528 45.1493H22.8473L22.805 46.184H20.2274V45.7512Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.2324 44.1469C50.6479 44.1469 50.9372 43.9252 50.9372 43.5293C50.9372 43.144 50.7005 42.9222 50.2743 42.9222H49.7851L49.7746 44.1469H50.2324ZM48.8066 45.7518H49.1695L49.1906 42.9221H48.8066V42.4893H50.4425C51.2001 42.4893 51.5578 42.9275 51.5578 43.4659C51.5578 44.1046 51.1475 44.3951 50.6794 44.4426V44.453C50.8845 44.469 51.0213 44.643 51.1475 44.8542L51.5475 45.53C51.6525 45.7042 51.7524 45.7518 51.8736 45.7518H52.0103V46.1847H51.6684C51.3579 46.1847 51.2159 46.153 51.0002 45.7939L50.4953 44.9335C50.3426 44.6696 50.2638 44.6114 50.0902 44.6114H49.7745L49.7639 45.7518H50.1902V46.1847H48.8066V45.7518Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.4622 45.7512H52.8305L52.8515 42.9216H52.4254V42.4888H55.0137L55.0346 43.46H54.5454L54.5139 42.9216H53.446L53.4355 44.0619H54.4877V44.5264H53.4355L53.4249 45.7512H54.5454L54.5877 45.1493H55.0821L55.0399 46.184H52.4622V45.7512Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.1171 43.5709V42.9797C57.9803 42.9426 57.7698 42.8898 57.4911 42.8898C56.6125 42.8898 56.1547 43.4284 56.1547 44.3521C56.1547 45.1917 56.6599 45.7829 57.4122 45.7829C57.6646 45.7829 57.9328 45.7563 58.0698 45.7299L58.0908 45.0648H58.6168L58.5959 46.0732C58.3591 46.1524 57.8856 46.2474 57.449 46.2474C56.1286 46.2474 55.5026 45.4238 55.5026 44.3732C55.5026 43.2223 56.2706 42.4253 57.4962 42.4253C57.9593 42.4253 58.3959 42.5256 58.6431 42.6259V43.5709H58.1171Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.5152 45.7512H61.8835L61.8941 44.5634H60.1844L60.1737 45.7512H60.5683V46.184H59.2111V45.7512H59.5793L59.6004 42.9216H59.2111V42.4888H60.5683V42.9216H60.1948L60.1844 44.0987H61.8941L61.9046 42.9216H61.5152V42.4888H62.8725V42.9216H62.4991L62.478 45.7512H62.8725V46.184H61.5152V45.7512Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.2677 45.7512H64.6466L64.6674 42.9216H63.8099L63.7888 43.46H63.2628L63.2839 42.4888H66.6245L66.6454 43.46H66.1194L66.0984 42.9216H65.2567L65.2355 45.7512H65.6616V46.184H64.2677V45.7512Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3715 5.93919C28.5313 5.83271 28.7492 5.75866 28.9844 5.7291C29.0546 5.72096 29.1249 5.71643 29.1945 5.71643C29.6391 5.71643 29.9596 5.89364 29.9925 6.15726C30.0304 6.46809 29.6538 6.75177 29.1174 6.81768C29.0463 6.82643 28.9761 6.8308 28.9068 6.8308C28.4621 6.8308 28.1412 6.65344 28.1092 6.38937C28.0891 6.22528 28.1821 6.06572 28.3715 5.93919ZM32.426 5.35831L33.5332 5.89325L32.4555 6.48656L31.348 5.95102L32.426 5.35831ZM35.8307 5.2552C36.4122 5.2552 36.8509 5.50646 36.8509 5.83976C36.8509 6.17305 36.4122 6.42446 35.8307 6.42446C35.2489 6.42446 34.8102 6.17305 34.8102 5.83976C34.8102 5.50646 35.2489 5.2552 35.8307 5.2552ZM39.2357 5.35831L40.3133 5.95102L39.2064 6.48656L38.1281 5.89371L39.2357 5.35831ZM41.6691 6.15772C41.7014 5.89364 42.0223 5.71643 42.467 5.71643C42.5363 5.71643 42.6072 5.72096 42.6777 5.7291C42.9129 5.75866 43.1298 5.83271 43.2899 5.93919C43.4789 6.06572 43.5724 6.22528 43.5521 6.38937C43.5198 6.65314 43.2 6.8308 42.7554 6.8308C42.686 6.8308 42.6147 6.82643 42.5444 6.81768C42.0073 6.75177 41.6315 6.46809 41.6691 6.15772ZM36.0602 7.6007C39.5777 7.6007 42.229 7.77338 43.9926 7.94501L44.3928 4.7298C42.6688 4.57687 39.4251 4.19531 35.8988 4.19531C32.3396 4.19531 28.9971 4.5817 27.2412 4.73402L27.6589 7.99282C29.4062 7.80701 32.2147 7.6007 36.0602 7.6007Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8644 1.90625C36.3935 1.90625 36.0121 2.28947 36.0121 2.76152C36.0121 3.13207 36.2465 3.44727 36.5751 3.56642L37.4137 2.10819C37.2652 1.98256 37.0737 1.90625 36.8644 1.90625ZM27.0798 2.48477C26.609 2.48477 26.2281 2.86769 26.2281 3.34004C26.2281 3.81209 26.609 4.19531 27.0798 4.19531C27.5508 4.19531 27.9323 3.81209 27.9323 3.34004C27.9323 2.86769 27.5508 2.48477 27.0798 2.48477ZM29.0374 2.34008C28.5665 2.34008 28.1848 2.7233 28.1848 3.19535C28.1848 3.6674 28.5665 4.05062 29.0374 4.05062C29.5082 4.05062 29.8894 3.6674 29.8894 3.19535C29.8894 2.7233 29.5082 2.34008 29.0374 2.34008ZM30.9936 2.19563C30.5235 2.19563 30.1414 2.57839 30.1414 3.05074C30.1414 3.52294 30.5235 3.90616 30.9936 3.90616C31.465 3.90616 31.8465 3.52294 31.8465 3.05074C31.8465 2.57839 31.465 2.19563 30.9936 2.19563ZM32.9506 2.05117C32.4798 2.05117 32.0983 2.43394 32.0983 2.90629C32.0983 3.37879 32.4798 3.76125 32.9506 3.76125C33.4215 3.76125 33.8028 3.37879 33.8028 2.90629C33.8028 2.43394 33.4215 2.05117 32.9506 2.05117ZM34.907 1.90625C34.4372 1.90625 34.0547 2.28947 34.0547 2.76152C34.0547 3.23402 34.4372 3.61679 34.907 3.61679C35.3777 3.61679 35.7596 3.23402 35.7596 2.76152C35.7596 2.28947 35.3777 1.90625 34.907 1.90625ZM27.6441 1.43409C27.6441 0.961737 27.2626 0.578518 26.7916 0.578518C26.3207 0.578518 25.9395 0.961737 25.9395 1.43409C25.9395 1.90614 26.3207 2.28905 26.7916 2.28905C27.2626 2.28905 27.6441 1.90614 27.6441 1.43409ZM36.738 0.855268C36.738 0.383219 36.3566 0 35.8857 0C35.415 0 35.0334 0.383219 35.0334 0.855268C35.0334 1.32822 35.415 1.71054 35.8857 1.71054C36.3566 1.71054 36.738 1.32822 36.738 0.855268Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.4135 2.10817L36.5749 3.56639C36.6651 3.59927 36.7626 3.61676 36.8642 3.61676C37.3351 3.61676 37.7167 3.234 37.7167 2.76149C37.7167 2.49953 37.5988 2.26501 37.4135 2.10817ZM38.8207 2.05127C38.3504 2.05127 37.9683 2.43403 37.9683 2.90638C37.9683 3.37889 38.3504 3.76135 38.8207 3.76135C39.2921 3.76135 39.6736 3.37889 39.6736 2.90638C39.6736 2.43403 39.2921 2.05127 38.8207 2.05127ZM40.7775 2.19572C40.3067 2.19572 39.9252 2.57849 39.9252 3.05084C39.9252 3.52304 40.3067 3.90626 40.7775 3.90626C41.2489 3.90626 41.63 3.52304 41.63 3.05084C41.63 2.57849 41.2489 2.19572 40.7775 2.19572ZM42.735 2.34018C42.2641 2.34018 41.8828 2.7234 41.8828 3.19545C41.8828 3.66749 42.2641 4.05071 42.735 4.05071C43.2054 4.05071 43.5868 3.66749 43.5868 3.19545C43.5868 2.7234 43.2054 2.34018 42.735 2.34018ZM44.6915 2.48487C44.221 2.48487 43.8392 2.86778 43.8392 3.34013C43.8392 3.81218 44.221 4.1954 44.6915 4.1954C45.1628 4.1954 45.5435 3.81218 45.5435 3.34013C45.5435 2.86778 45.1628 2.48487 44.6915 2.48487ZM44.9795 0.578613C44.5089 0.578613 44.1272 0.961832 44.1272 1.43418C44.1272 1.90623 44.5089 2.28915 44.9795 2.28915C45.4504 2.28915 45.8321 1.90623 45.8321 1.43418C45.8321 0.961832 45.4504 0.578613 44.9795 0.578613Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2362 5.3582L40.3137 5.9509L39.2069 6.48629L38.1285 5.89359L39.2362 5.3582ZM41.6696 6.15784C41.7019 5.89376 42.0227 5.71655 42.4675 5.71655C42.5367 5.71655 42.6077 5.72093 42.6782 5.72922C42.9134 5.75863 43.1302 5.83283 43.2903 5.93931C43.4794 6.06569 43.5727 6.2254 43.5526 6.38949C43.5202 6.65326 43.2004 6.83092 42.7559 6.83092C42.6864 6.83092 42.6152 6.8264 42.5449 6.8178C42.0077 6.75174 41.632 6.46806 41.6696 6.15784ZM35.8312 6.42427C35.4865 6.42427 35.1919 6.33574 35.009 6.19458L34.1664 7.61766C34.7676 7.60665 35.3987 7.60047 36.0606 7.60047C39.5781 7.60047 42.2294 7.7733 43.9928 7.94478L44.393 4.72972C42.7165 4.58117 39.6037 4.21605 36.1915 4.19629L35.5523 5.27552C35.6405 5.2624 35.7335 5.25501 35.8312 5.25501C36.4127 5.25501 36.8514 5.50626 36.8514 5.83956C36.8514 6.17286 36.4127 6.42427 35.8312 6.42427Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.9091 39.4079V39.5922H56.0221V38.1673C56.0221 38.1673 55.5779 38.0975 54.7899 37.9946L43.9091 39.4079Z",fill:"#155429"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.1289 47.406C70.6673 47.3225 70.9142 47.2803 70.9142 47.2803V39.9282C70.9142 39.9282 70.0488 40.1262 68.0284 40.3258C69.4005 42.0027 69.9481 44.7336 70.1289 47.406Z",fill:"#155429"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.8755 42.1995H33.1941L33.2123 39.7506H32.8436V39.376H35.0836L35.1018 40.2168H34.6784L34.651 39.7506H33.7269L33.7177 40.7375H34.6283V41.1396H33.7177L33.7087 42.1995H34.6784L34.7148 41.6788H35.1428L35.1064 42.5741H32.8755V42.1995Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.6751 42.1995H35.9847L36.0029 39.7506H35.6022V39.376H36.4399L37.915 41.3087C38.0107 41.4366 38.1472 41.6466 38.2338 41.7884H38.2429L38.2248 39.7506H37.8696V39.376H38.9804V39.7506H38.671L38.6526 42.5741H38.2384L36.6447 40.4998C36.5538 40.3812 36.4673 40.2533 36.4217 40.1619L36.4125 40.1711L36.4307 42.1995H36.7814V42.5741H35.6751V42.1995Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.926 33.2282H58.9268L58.926 33.2246V33.2282Z",fill:"url(#paint0_linear_10499_33040)"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.0351 17.7954C70.0351 16.144 67.8189 16.6658 66.6035 16.6658C65.3876 16.6658 65.4743 15.104 65.4743 15.104H67.7883C69.6351 15.104 70.8162 16.2364 70.0351 17.7954Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62.8545 14.4162C63.3944 13.879 63.9546 13.583 64.7512 13.583C66.5195 13.583 69.077 13.471 69.4339 12.5474C69.7443 12.8711 69.7155 13.5248 68.9598 14.276C70.9508 14.276 71.3013 14.7264 71.5022 15.1475C72.0218 16.236 71.1203 17.7952 70.0349 17.7952C70.816 16.2365 69.635 15.1039 67.7881 15.1039H65.4742H65.1279H64.7512C64.4801 15.1039 64.1829 15.2452 63.9356 15.4912C63.4112 16.0129 63.4112 16.862 63.9356 17.3836L67.6014 21.0298C67.8329 21.2599 68.0001 21.5212 68.1362 21.7995L62.1057 17.1995C61.84 16.2401 62.0977 15.1693 62.8545 14.4162Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5332 10.8457C58.5038 10.7362 58.485 10.6332 58.4747 10.5355C59.0067 9.91477 59.8945 9.67055 61.0939 10.1741C62.6034 10.8075 63.979 9.71045 63.979 9.71045C62.9409 11.6887 61.4995 11.0469 60.2495 10.6563C59.5669 10.4433 58.9263 10.6527 58.5332 10.8457Z",fill:"#B98F16"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.1796 18.2863C50.8966 17.5568 49.8652 17.025 49.8631 17.0241L49.8628 17.0239L50.351 19.1245C50.351 19.1245 48.9027 21.4686 48.1269 22.7407C48.1435 22.749 48.161 22.7554 48.1776 22.7643C48.1776 22.7643 52.1868 18.2906 52.1867 18.2905V18.2903C52.1842 18.289 52.182 18.2876 52.1796 18.2863Z",fill:"#B98F16"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59.1167 14.9694C59.1167 13.4313 58.0731 12.8007 57.6063 12.595C56.9143 12.5668 56.2008 12.6312 55.5887 12.8796C55.7885 14.6982 58.4148 17.129 59.9929 17.6659C60.0056 17.6696 60.0173 17.6737 60.0302 17.6776C59.2764 17.0993 60.5298 14.9694 59.1167 14.9694Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.781 19.2298C53.2424 18.8994 52.6953 18.5796 52.1869 18.2905L52.1867 18.2907L48.1776 22.7643C47.9552 22.6464 47.7063 22.5726 47.437 22.5726V24.1404H47.4394C46.7632 24.2888 46.3115 24.8459 46.3115 25.7055H47.4402L47.4394 27.1039C47.5887 27.2692 47.8238 27.3747 48.0629 27.3816L53.7876 19.2338C53.7851 19.2328 53.7795 19.2317 53.781 19.2298Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59.6778 19.1758C58.1159 20.1506 55.0021 20.0113 54.9991 20.0094C54.9975 20.0082 54.9958 20.0071 54.9942 20.0061C54.9905 20.0074 55.8734 20.5446 56.7864 21.42L62.9184 22.3911C62.9184 22.3911 60.9388 20.4269 59.6778 19.1758Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.374 30.157C65.6651 30.157 63.5231 29.8757 63.5231 28.312V25.0728L61.8876 27.7256L61.8662 30.4123C64.5077 33.4266 63.8459 36.8635 62.6409 38.2482V39.2882C63.3905 39.2738 64.1271 39.2564 64.833 39.2307L64.6489 38.4492L65.6274 36.7606C65.6274 36.7606 65.2 31.3245 66.374 30.157Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.7876 19.2339L48.0628 27.3815C48.0706 27.3815 48.0782 27.3828 48.0869 27.3828C48.1829 27.3828 50.1119 25.9571 50.1119 25.9571L54.9989 20.0093C54.6155 19.751 54.2043 19.4895 53.7876 19.2339Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.5887 12.8794C53.4727 13.9674 52.5031 17.1121 49.8629 17.0241C49.8667 17.0257 52.8635 18.5707 54.9989 20.009C55.003 20.0119 60.5499 20.2589 60.5499 17.7749C59.1419 17.7749 55.8143 14.935 55.5887 12.8794Z",fill:"#F6E477"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.2644 15.152C50.723 13.972 50.8912 12.0526 51.3937 10.147L48.9933 8.62875L48.4171 7.63477H45.7217L45.2204 8.49839C46.2612 8.59814 46.9272 8.67345 46.9477 8.6754L47.4184 8.73465V12.4787L50.2644 15.152Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.5169 6.03197V4.42474L55.1788 5.15245C55.164 5.06724 55.1289 4.61691 55.9111 4.18457C55.877 4.66911 56.5869 5.02539 57.4068 5.27456C56.5566 7.23987 55.2999 10.2479 55.5888 12.8794C53.4732 13.9675 52.5033 17.1122 49.863 17.0241C49.863 17.0241 49.1887 16.7056 48.9633 16.3153C51.4671 16.3153 50.1104 9.42089 53.5169 6.03197Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3877 32.0976C61.2023 32.9106 61.6911 33.8525 61.6911 34.7622C61.6911 36.8143 60.2941 37.5609 60.2941 37.5609C58.6369 37.0326 58.1723 38.7064 58.0572 39.3143C58.6431 39.3152 59.2531 39.3155 59.8878 39.3155C60.7948 39.3155 61.7814 39.3059 62.6409 39.2903V38.2478C63.846 36.8634 64.5077 33.4263 61.8663 30.4121L60.3877 32.0976Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.7697 29.2327C58.7693 28.9004 58.7689 28.3391 58.7685 28.0195L58.7682 28.0197C58.7683 28.0963 58.7683 28.1731 58.7685 28.2511L53.6321 29.4403L50.2315 36.1008C51.2516 36.1833 52.1675 36.2717 52.9614 36.3569L52.6341 35.4948L56.7799 29.6113L58.7697 29.2327Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.2341 29.9956C50.8515 33.3221 48.6572 34.3769 48.6572 34.3769C48.6572 34.3769 48.2383 34.2735 47.8043 34.2735C46.8392 34.2735 46.3672 35.8608 46.3672 35.8608C46.8765 35.8836 47.4101 35.914 47.944 35.9471C48.397 35.9711 48.8401 35.9985 49.2639 36.029C49.5967 36.0534 49.9164 36.0783 50.23 36.1044L53.6324 29.4404L51.2341 29.9956Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.7663 26.1761L56.5581 24.5659L50.3994 29.6374C50.3994 29.6374 50.7196 30.0813 51.2342 29.9955L58.7686 28.2511C58.7676 27.4591 58.7669 26.73 58.7663 26.1761Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54.9989 20.0093L53.2421 22.1475L58.7662 26.1761C58.7656 25.5404 58.7652 25.1356 58.7652 25.1356C58.7652 24.789 58.7062 24.4495 58.6034 24.1208C58.2823 23.0614 57.5255 22.1285 56.7865 21.4197C55.9023 20.5721 55.049 20.0432 54.9991 20.0093H54.9989Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.3082 6.8985C57.9364 6.91111 57.626 6.67154 57.6162 6.36386C57.615 6.32921 57.6191 6.29516 57.625 6.2617C58.083 6.29006 58.557 6.35156 58.9525 6.41397C58.9068 6.67769 58.6398 6.8871 58.3082 6.8985ZM61.4428 7.80981L60.0199 6.75522L59.7786 5.74804C59.7786 5.74804 58.4951 5.60598 57.4065 5.2749C56.5566 7.24006 55.2998 10.2483 55.5888 12.8798C57.5457 12.086 60.5377 13.1681 60.5377 13.1681L60.0678 11.9093L60.7546 11.1185C60.7546 11.1185 58.7161 11.3547 58.7153 11.3535C58.1136 10.0073 58.6171 9.34428 59.9283 9.34428C60.4753 9.34428 60.8997 9.608 60.8997 9.608L61.1835 8.68933L60.938 8.23419L61.2847 8.26599L61.4428 7.80981Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9673 33.2228H12.9679V33.2192L12.9673 33.2228Z",fill:"url(#paint1_linear_10499_33040)"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.61038 17.792C1.61038 16.1406 3.81566 16.6624 5.02507 16.6624C6.23494 16.6624 6.14865 15.1006 6.14865 15.1006H3.84612C2.00836 15.1006 0.833165 16.233 1.61038 17.792Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.75539 14.4128C8.21813 13.8756 7.66078 13.5796 6.8681 13.5796C5.10853 13.5796 2.56364 13.4676 2.20843 12.5439C1.89958 12.8677 1.92825 13.5214 2.68025 14.2725C0.699023 14.2725 0.35026 14.723 0.150367 15.1441C-0.366625 16.2326 0.530344 17.7918 1.6104 17.7918C0.833186 16.233 2.00838 15.1005 3.84614 15.1005H6.14867H6.49323H6.8681C7.13778 15.1005 7.43357 15.2418 7.67968 15.4878C8.20148 16.0095 8.20148 16.8586 7.67968 17.3802L4.03193 21.0264C3.80157 21.2565 3.63514 21.5178 3.49978 21.7961L9.50048 17.1961C9.76491 16.2366 9.50844 15.1659 8.75539 14.4128Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0555 10.8423C13.0847 10.7328 13.1035 10.6298 13.1137 10.5321C12.5844 9.91135 11.7009 9.66713 10.5074 10.1707C9.00539 10.8041 7.6366 9.70703 7.6366 9.70703C8.66953 11.6852 10.1039 11.0435 11.3477 10.6529C12.0269 10.4398 12.6644 10.6493 13.0555 10.8423Z",fill:"#B98F16"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3778 18.2829C20.6544 17.5534 21.6808 17.0216 21.6829 17.0207L21.6832 17.0205L21.1974 19.1211C21.1974 19.1211 22.6385 21.4652 23.4105 22.7373C23.394 22.7456 23.3765 22.752 23.36 22.7609L19.3707 18.2871V18.2869C19.3731 18.2856 19.3754 18.2842 19.3778 18.2829Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9775 12.5916C13.5131 12.7972 12.4746 13.4279 12.4746 14.9659C11.0684 14.9659 12.3158 17.0958 11.5659 17.6741C11.5785 17.6702 11.5902 17.6662 11.6028 17.6624C13.1732 17.1255 15.7866 14.6947 15.9852 12.8761C15.376 12.6277 14.6661 12.5635 13.9775 12.5916Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7841 19.2263C18.32 18.896 18.8645 18.5762 19.3704 18.2871L19.3705 18.2873L23.3598 22.7609C23.5812 22.643 23.8288 22.5692 24.0968 22.5692V24.137H24.0944C24.7673 24.2853 25.2168 24.8425 25.2168 25.7021H24.0937L24.0944 27.1005C23.9459 27.2658 23.7119 27.3712 23.474 27.3781L17.7775 19.2304C17.7801 19.2293 17.7856 19.2283 17.7841 19.2263Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9165 19.1724C13.4708 20.1471 16.5691 20.0079 16.5721 20.006C16.5738 20.0048 16.5754 20.0037 16.5771 20.0027C16.5807 20.004 15.7022 20.5412 14.7937 21.4165L8.69196 22.3877C8.69196 22.3877 10.6618 20.4235 11.9165 19.1724Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25311 30.1531C5.95859 30.1531 8.09004 29.8718 8.09004 28.3081V25.0688L9.7174 27.7217L9.73871 30.4084C7.11023 33.4227 7.76874 36.8596 8.9678 38.2443V39.2843C8.22195 39.2699 7.48901 39.2525 6.78653 39.2268L6.96976 38.4453L5.99611 36.7567C5.99611 36.7567 6.42141 31.3206 5.25311 30.1531Z",fill:"#F6E477"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.96785 39.287C9.8231 39.3026 10.8049 39.3122 11.7075 39.3122C12.339 39.3122 12.9461 39.3119 13.5291 39.311C13.4146 38.703 12.9522 37.0293 11.3032 37.5577C11.3032 37.5577 9.91314 36.8111 9.91314 34.7587C9.91314 33.8465 10.3946 32.908 11.2094 32.0935L9.73876 30.4087C7.11028 33.423 7.76879 36.86 8.96785 38.2446V39.287Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7776 19.23L23.4741 27.3776C23.4663 27.3776 23.4589 27.3789 23.4501 27.3789C23.3546 27.3789 21.4351 25.9532 21.4351 25.9532L16.5722 20.0054C16.9537 19.7471 17.3629 19.4856 17.7776 19.23Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0488 17.7715C11.0488 20.2557 16.5682 20.0085 16.5724 20.0057C18.6972 18.5674 21.6793 17.0223 21.6829 17.0207C19.0558 17.1087 18.0911 13.964 15.9855 12.876C15.7608 14.9316 12.4498 17.7715 11.0488 17.7715Z",fill:"#F6E477"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2834 15.1486C20.827 13.9686 20.6597 12.0492 20.1597 10.1436L22.5482 8.62533L23.1216 7.63135H25.8038L26.3025 8.49497C25.2669 8.59473 24.6041 8.67003 24.5837 8.67198L24.1154 8.73124V12.4752L21.2834 15.1486Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0469 6.02855V4.42132L16.3933 5.14903C16.408 5.06382 16.4431 4.61349 15.6646 4.18115C15.6985 4.66569 14.9921 5.02197 14.1763 5.27114C15.0223 7.23645 16.2728 10.2445 15.9853 12.876C18.0905 13.964 19.0556 17.1087 21.6828 17.0207C21.6828 17.0207 22.3538 16.7022 22.5782 16.3119C20.0867 16.3119 21.4367 9.41747 18.0469 6.02855Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.04572 25.0691C4.58537 25.6091 5.30376 25.9063 6.06792 25.9063C6.83162 25.9063 7.55031 25.6091 8.09011 25.0691L9.71747 27.7219L9.73878 30.4086L12.8146 33.9322C12.8161 32.9509 12.8247 25.1322 12.8247 25.1322C12.8247 24.7855 12.8833 24.4461 12.9855 24.1174C13.305 23.058 14.0582 22.1251 14.7936 21.4163L8.69189 22.3875L7.44166 23.6161C7.44166 23.6161 6.09793 24.9705 5.12202 23.9941C4.59963 23.472 4.59963 22.6233 5.12202 22.1017L8.76918 18.4558C9.13145 18.0938 9.37366 17.6577 9.50047 17.1963L3.49977 21.7963C2.98157 22.8624 3.16106 24.1846 4.04572 25.0691ZM14.7943 21.4156C14.7942 21.4159 14.7939 21.4161 14.7937 21.4162C14.7939 21.4161 14.7942 21.4159 14.7943 21.4156Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8201 29.2293C12.8205 28.897 12.8208 28.3356 12.8213 28.0161L12.8216 28.0163C12.8214 28.0929 12.8214 28.1697 12.8213 28.2477L17.9324 29.4369L21.3161 36.0974C20.3011 36.1799 19.3897 36.2683 18.5997 36.3535L18.9254 35.4914L14.8001 29.6079L12.8201 29.2293Z",fill:"#F6E477"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.3186 29.9922C20.6993 33.3187 22.8829 34.3735 22.8829 34.3735C22.8829 34.3735 23.2996 34.2701 23.7315 34.2701C24.6918 34.2701 25.1615 35.8574 25.1615 35.8574C24.6547 35.8802 24.1238 35.9106 23.5925 35.9436C23.1417 35.9676 22.7008 35.9951 22.2791 36.0255C21.9479 36.05 21.6298 36.0749 21.3178 36.101L17.9322 29.437L20.3186 29.9922Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8235 26.1727L15.0208 24.5625L21.1491 29.634C21.1491 29.634 20.8305 30.0778 20.3184 29.992L12.8212 28.2477C12.8221 27.4556 12.8229 26.7266 12.8235 26.1727Z",fill:"#E2C029"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5723 20.0059L18.3205 22.1441L12.8235 26.1727C12.8241 25.537 12.8246 25.1322 12.8246 25.1322C12.8246 24.7855 12.8833 24.4461 12.9856 24.1174C13.3051 23.058 14.0582 22.1251 14.7935 21.4163C15.6734 20.5687 16.5225 20.0398 16.5721 20.0059H16.5723Z",fill:"#B98F16"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2794 6.895C12.9493 6.88345 12.6837 6.67419 12.6383 6.41032C13.0317 6.34806 13.5034 6.28656 13.9592 6.25805C13.965 6.29166 13.9691 6.32571 13.9679 6.36036C13.9581 6.66804 13.6493 6.90746 13.2794 6.895ZM14.1765 5.27148C13.0933 5.60241 11.8162 5.74462 11.8162 5.74462L11.5761 6.75165L10.1602 7.80639L10.3175 8.26257L10.6625 8.23077L10.4182 8.68591L10.7006 9.60458C10.7006 9.60458 11.1229 9.34086 11.6672 9.34086C12.9719 9.34086 13.473 10.0038 12.8742 11.3501C12.8735 11.3513 10.845 11.1151 10.845 11.1151L11.5286 11.9059L11.0608 13.1647C11.0608 13.1647 14.038 12.0826 15.9853 12.8763C16.2729 10.2448 15.0223 7.23664 14.1765 5.27148Z",fill:"#EFD544"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M46.2697 28.7936C46.2697 34.6975 35.7429 36.7886 35.7429 36.7886C35.7429 36.7886 25.217 34.6975 25.217 28.7936V9.74011C25.217 9.74011 28.7789 9.06445 35.7429 9.06445C42.708 9.06445 46.2697 9.74011 46.2697 9.74011V28.7936Z",fill:"#D2AD15"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.7429 36.7885C35.7429 36.7885 46.2697 34.6975 46.2697 28.7934V9.73996C46.2697 9.73996 42.7078 9.06445 35.7429 9.06445C34.1024 9.06445 32.6507 9.10196 31.3898 9.15926C40.8936 9.53879 44.6918 10.8232 44.6918 10.8232C44.6918 10.8232 44.7004 24.1138 44.7004 28.9841C44.7004 33.8544 35.7429 36.7885 35.7429 36.7885Z",fill:"#B98F16"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.8685 20.6003L37.0628 20.5001L36.8135 20.8325L34.9315 19.6333C35.1207 20.58 35.6371 22.3836 36.9613 23.9179C37.8434 24.5559 38.7654 25.224 39.4975 25.7539C39.4397 22.6566 38.3906 20.9513 38.1176 20.2679L37.8685 20.6003Z",fill:"#4B4B4B"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.0162 21.7923C33.0299 21.0886 33.3527 19.6965 34.0015 19.0415L36.8134 20.8327L37.0626 20.5002L37.8684 20.6004L38.1175 20.268L40.1968 20.6256C39.8086 20.0048 39.1621 19.0051 38.1798 18.3357L38.429 18.0034C37.9269 17.767 36.779 17.5795 35.4519 17.5795H33.4281L34.8583 13.5038C35.2387 12.4068 34.5611 11.5292 33.8237 11.4478C32.7094 11.3252 32.2485 12.5235 32.2485 12.5235L33.4706 13.7678C33.4982 13.7742 31.8947 17.5125 31.8947 17.5125C31.7309 17.904 31.6238 18.4113 31.6202 18.9595C31.6134 20.0063 32.092 21.0749 33.0672 22.0218C33.8944 22.8251 37.4743 25.6319 37.4743 25.6319L37.7624 25.2492L39.4974 25.7541C39.4974 25.7541 34.2917 21.9884 34.0162 21.7923Z",fill:"white"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.9313 19.6335L34.0016 19.0415C33.3527 19.6965 33.0299 21.0886 34.0161 21.7923C34.3163 22.0057 35.5889 22.9256 36.9611 23.9181C35.6369 22.3838 35.1206 20.5803 34.9313 19.6335Z",fill:"#636363"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.1968 20.6257L38.1176 20.2681C38.3904 20.9515 39.4396 22.6569 39.4975 25.7542C40.3275 26.3554 40.913 26.779 40.913 26.779L41.3234 26.2324L42.3991 26.9765C42.3403 26.4834 42.257 26.0191 42.1549 25.5792C41.6885 23.3928 40.917 21.7475 40.1968 20.6257Z",fill:"black"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.3749 33.4062C38.3289 33.2904 38.243 33.1797 38.0784 33.1797H37.4742V30.3218L36.9793 30.5466V33.1711H36.0615C35.9549 33.1711 35.7493 33.3223 35.6788 33.3223H35.2686C35.1033 33.3223 35.0171 33.4324 34.9717 33.5487L34.9416 33.6387L34.9245 33.7524C34.9208 33.7889 34.9208 33.8133 34.9208 33.8133H35.9103L36.1137 33.6624H36.5265C36.2665 33.822 35.9882 33.9935 35.8827 34.0577C35.7414 34.1442 35.7241 34.2842 35.7447 34.4071L35.7666 34.5025L35.809 34.6054C35.8249 34.639 35.8365 34.66 35.8365 34.66L37.5132 33.6702H38.4258C38.4258 33.6702 38.4252 33.6462 38.4218 33.6094L38.3934 33.4917L38.3749 33.4062Z",fill:"#4B4B4B"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.6797 22.8035L29.5866 22.9281L29.642 23.7398L29.7969 23.5309L29.9084 23.5444L30.5481 24.6542C30.5481 24.6542 30.5564 24.6489 30.5699 24.6407L30.6493 24.5757L30.7187 24.5139C30.8112 24.4137 30.8891 24.268 30.796 24.1053C30.771 24.0619 30.7298 23.9899 30.6791 23.9017L32.5705 24.7992L33.3436 24.6167L30.2444 23.1492C30.1758 23.0316 30.0817 22.8528 30.0817 22.8528C30.0265 22.7673 29.821 22.7354 29.6797 22.8035Z",fill:"#636363"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.4706 13.7678L32.2485 12.5234L26.9834 13.7678H33.4706Z",fill:"black"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.4856 23.064L28.4783 23.1931C28.4783 23.1931 28.1776 23.5785 28.0241 23.7846C27.9253 23.9176 27.9609 24.0533 28.0256 24.16L28.0865 24.2389L28.1585 24.3203C28.1848 24.3446 28.2042 24.3595 28.2042 24.3595L28.7174 23.6696L29.1316 23.6109C28.9333 23.8781 28.7219 24.1621 28.6482 24.262C28.5495 24.3949 28.5853 24.531 28.6506 24.6375L28.716 24.7216L28.7828 24.7975C28.8092 24.8224 28.8286 24.8373 28.8286 24.8373L29.6418 23.7399L29.5865 22.9282L29.4856 23.064Z",fill:"#4B4B4B"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.275 24.6831C36.1176 24.5578 35.9516 24.4252 35.7804 24.2881V25.7264L35.7072 25.7354L33.3436 24.6166L32.5703 24.7992L35.5178 26.1982L35.8202 26.5878L36.305 26.5182L36.488 26.0591L36.275 25.7852V24.6831Z",fill:"#4B4B4B"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.1618 12.5193C34.1618 12.5193 33.5983 12.7713 33.4603 12.7713C33.323 12.7713 33.1943 12.6583 33.1943 12.5193C33.1943 12.38 33.323 12.2671 33.4603 12.2671C33.5983 12.2671 34.1618 12.5193 34.1618 12.5193Z",fill:"black"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3912 15.643C28.0378 15.0175 28.4515 14.6351 28.7421 14.3415C28.9522 14.128 29.1343 13.9449 29.1382 13.6754C29.1435 13.3217 28.9424 13.2571 28.4479 13.1854C28.1541 13.1426 27.8503 13.0985 27.6773 12.8757C27.5796 12.7484 27.5397 12.5999 27.5627 12.4467C27.614 12.1047 27.9648 11.8491 28.0043 11.8211C28.1035 11.7517 28.2387 11.7766 28.3069 11.8758C28.3757 11.9751 28.3516 12.1117 28.2531 12.1812C28.1754 12.2365 28.0103 12.3895 27.992 12.5127C27.9887 12.5373 27.9895 12.5657 28.0205 12.6059C28.0847 12.6896 28.3103 12.7221 28.5093 12.7512C28.9373 12.8133 29.5838 12.9072 29.5724 13.6817C29.5661 14.1289 29.2918 14.4066 29.0498 14.6516C28.7742 14.93 28.5495 15.1336 28.6985 15.5267C28.7962 15.7845 29.2383 15.9211 29.1534 16.0737C29.0733 16.2174 28.5644 15.9496 28.3912 15.643Z",fill:"black"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.4742 25.6321C37.4742 25.6321 37.2824 25.4818 36.9793 25.2422V26.1489H36.9851L36.7399 26.5771L36.9793 26.9967V30.5471L37.4742 30.3222V27.0053L37.7194 26.5771L37.4742 26.1489V25.6321Z",fill:"black"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.1624 26.4463L40.9131 26.7787L41.1624 26.4463Z",fill:"#636363"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.0719 19.83C40.3176 19.0498 39.4234 18.4218 38.4293 18.0034L38.1799 18.3358C39.1622 19.005 39.8087 20.0049 40.197 20.6256C40.9172 21.7474 41.6887 23.3928 42.1551 25.5793C42.257 26.019 42.3404 26.4833 42.3992 26.9764L43.4386 27.7048C43.9687 24.7001 42.9619 21.7848 41.0719 19.83Z",fill:"#636363"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.9874 21.7992L61.9868 17.1992C62.1135 17.6607 62.3559 18.0967 62.7181 18.4587L66.3651 22.1046C66.8875 22.6264 66.8875 23.475 66.3651 23.997C65.3894 24.9734 64.0455 23.6191 64.0455 23.6191L62.7953 22.3904L56.6936 21.4194C57.4291 22.128 58.1821 23.0609 58.5016 24.1205C58.604 24.449 58.6625 24.7886 58.6625 25.1352C58.6625 25.1352 58.671 32.9538 58.6727 33.9352L61.7485 30.4115L61.7697 27.7248L63.397 25.072C63.937 25.612 64.6555 25.9092 65.4194 25.9092C66.1834 25.9092 66.9019 25.612 67.4414 25.072C68.3261 24.1877 68.5056 22.8653 67.9874 21.7992ZM56.6935 21.4194C56.6933 21.4191 56.693 21.419 56.6929 21.4188C56.693 21.419 56.6933 21.4191 56.6935 21.4194Z",fill:"#E2C029"}),react.createElement("defs",null,react.createElement("linearGradient",{id:"paint0_linear_10499_33040",x1:"58.9277",y1:"33.2279",x2:"58.9265",y2:"33.2279",gradientUnits:"userSpaceOnUse"},react.createElement("stop",{stopColor:"#B88E15"}),react.createElement("stop",{offset:"1",stopColor:"#D1AC14"})),react.createElement("linearGradient",{id:"paint1_linear_10499_33040",x1:"12.9671",y1:"33.2236",x2:"12.9683",y2:"33.2236",gradientUnits:"userSpaceOnUse"},react.createElement("stop",{stopColor:"#B88E15"}),react.createElement("stop",{offset:"1",stopColor:"#D1AC14"}))))};HeaderLogo.__docgenInfo={description:"",methods:[],displayName:"HeaderLogo"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/HeaderLogo/dist/mjs/index.js"]={name:"HeaderLogo",docgenInfo:HeaderLogo.__docgenInfo,path:"components/HeaderLogo/dist/mjs/index.js"});var mjs=__webpack_require__("./components/ResponsiveContent/dist/mjs/index.js"),dist_mjs=__webpack_require__("./components/Link/dist/mjs/index.js");__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.function.bind.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.define-property.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-names.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.define-properties.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array.reduce.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.parse-float.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.string.small.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.uint8-array.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.copy-within.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.every.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.fill.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.filter.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.find.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.find-index.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.for-each.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.includes.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.iterator.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.join.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.last-index-of.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.map.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.reduce.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.reduce-right.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.reverse.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.set.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.slice.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.some.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.sort.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.subarray.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.to-locale-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.typed-array.to-string.js"),__webpack_require__("./node_modules/.pnpm/core-js@3.25.3/node_modules/core-js/modules/es.array-buffer.slice.js");function r$6(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t.denhaag-mobile-menu-list-item-button,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item--active>.denhaag-mobile-menu-list-item-link,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item--focus>.denhaag-mobile-menu-list-item-button,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item--focus>.denhaag-mobile-menu-list-item-link,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item:active>.denhaag-mobile-menu-list-item-button,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item:active>.denhaag-mobile-menu-list-item-link,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item:focus>.denhaag-mobile-menu-list-item-button,.denhaag-mobile-menu-list .denhaag-mobile-menu-list-item:focus>.denhaag-mobile-menu-list-item-link{font-weight:var(--denhaag-menu-button-active-font-weight)}.denhaag-mobile-menu-list-item--active .denhaag-mobile-menu-list-item-button--large .denhaag-icon{transform:var(--denhaag-mobile-menu-list-item-active-icon-transform)}.denhaag-mobile-menu-list-submenu-title{align-items:var(--denhaag-mobile-menu-list-submenu-title-align-items);border-bottom:var(--denhaag-mobile-menu-list-item-border-bottom);display:var(--denhaag-mobile-menu-list-submenu-title-display);font-size:var(--denhaag-mobile-menu-list-item-button-large-font-size);font-weight:var(--denhaag-mobile-menu-list-item-button-large-font-weight);min-block-size:var(--denhaag-mobile-menu-list-item-min-block-size)}");var MenuButton=function MenuButton(_a){var _b,_c=_a.active,active=void 0!==_c&&_c,props=__rest$4(_a,["active"]),className=clsx$6("denhaag-menu-button",{"denhaag-menu-button--active":active},props.className);return react.createElement("a",{id:props.id,href:props.href,hrefLang:props.hrefLang,download:props.download,media:props.media,ping:props.ping,rel:props.rel,target:props.target,type:props.type,referrerPolicy:props.referrerPolicy,className,title:null===(_b=props.children)||void 0===_b?void 0:_b.toString()},props.children)},MenuButtonExpandable=function MenuButtonExpandable(_a){var _b=_a.active,active=void 0!==_b&&_b,props=__rest$4(_a,["active"]),rootClassNames=clsx$6("denhaag-menu-button","denhaag-menu-button--expandable",{"denhaag-menu-button--active":active},props.className);return react.createElement("button",_assign$({className:rootClassNames},props),props.children,react.createElement("span",{className:"denhaag-menu-button__chevron"},react.createElement(ChevronDownIcon,{"aria-label":"ChevronDownIcon"})))};!function styleInject$3(css,ref){void 0===ref&&(ref={});var insertAt=ref.insertAt;if(css&&"undefined"!=typeof document){var head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");style.type="text/css","top"===insertAt&&head.firstChild?head.insertBefore(style,head.firstChild):head.appendChild(style),style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css))}}(".denhaag-sheet{background-color:var(--denhaag-sheet-background-color);left:var(--denhaag-sheet-left);margin-block-start:var(--denhaag-sheet-margin-block-start);min-height:var(--denhaag-sheet-min-height);overflow-x:var(--denhaag-sheet-overflow-x);position:var(--denhaag-sheet-position);top:var(--denhaag-sheet-top);width:var(--denhaag-sheet-width);z-index:var(--denhaag-sheet-z-index)}.denhaag-sheet.denhaag-sheet--dialog{border:var(--denhaag-sheet-dialog-border);margin-block-start:var(--denhaag-sheet-dialog-margin-block-start);max-height:var(--denhaag-sheet-dialog-max-height);max-width:var(--denhaag-sheet-dialog-max-width);overflow-y:var(--denhaag-sheet-dialog-overflow-y);padding-block-end:var(--denhaag-sheet-dialog-padding-block-end);padding-block-start:var(--denhaag-sheet-dialog-padding-block-start);padding-inline-end:var(--denhaag-sheet-dialog-padding-inline-end);padding-inline-start:var(--denhaag-sheet-dialog-padding-inline-start);top:var(--denhaag-sheet-dialog-top)}.denhaag-sheet.denhaag-sheet--dialog::backdrop{top:var(--denhaag-sheet-dialog-backdrop-top)}@media (width >= 1024px){.denhaag-sheet{min-height:var(--denhaag-sheet-desktop-min-height);padding-block-start:var(--denhaag-sheet-desktop-padding-block-start);top:var(--denhaag-sheet-desktop-top)}}.denhaag-sheet__close-button{float:var(--denhaag-sheet-close-button-float)}.denhaag-sheet__container{margin-block-end:var(--denhaag-sheet-container-margin-block-end)}.denhaag-sheet__container-menu{display:var(--denhaag-sheet-container-menu-display)}.denhaag-sheet-overlay{background-color:var(--denhaag-sheet-overlay-background-color);height:var(--denhaag-sheet-overlay-height);left:var(--denhaag-sheet-overlay-left);position:var(--denhaag-sheet-overlay-position);top:calc(var(--denhaag-sheet-overlay-top) + var(--denhaag-sheet-margin-block-start));width:var(--denhaag-sheet-overlay-width);z-index:var(--denhaag-sheet-overlay-z-index)}@media (width >= 768px){.denhaag-sheet-overlay{top:calc(var(--denhaag-sheet-overlay-tablet-top) + var(--denhaag-sheet-margin-block-start))}}@media (width >= 1024px){.denhaag-sheet-overlay{top:calc(var(--denhaag-sheet-overlay-desktop-top) + var(--denhaag-sheet-margin-block-start))}}.denhaag-sheet .denhaag-sheet-title{--utrecht-paragraph-font-size:var(--denhaag-sheet-title-font-size);--utrecht-paragraph-font-weight:var(--denhaag-sheet-title-font-weight);--utrecht-paragraph-margin-block-end:var(--denhaag-sheet-title-margin-block-end)}");var _assign$3=function __assign$3(){return _assign$3=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i= 1024px){.denhaag-language-switcher .denhaag-language-switcher__list{margin-block-end:var(--denhaag-language-switcher-list-margin-block-end);padding-block-start:var(--denhaag-language-switcher-list-padding-block-start)}}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item{list-style:var(--denhaag-language-switcher-list-item-list-style);padding-block-end:var(--denhaag-language-switcher-list-item-mobile-padding-block-end);padding-block-start:var(--denhaag-language-switcher-list-item-mobile-padding-block-start)}@media (width >= 768px){.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item{padding-block-end:var(--denhaag-language-switcher-list-item-tablet-padding-block-end);padding-block-start:var(--denhaag-language-switcher-list-item-tablet-padding-block-start)}}@media (width >= 1024px){.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item{padding-block-end:var(--denhaag-language-switcher-list-item-padding-block-end);padding-block-start:var(--denhaag-language-switcher-list-item-padding-block-start)}}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item .denhaag-language-switcher__list-item-button{--utrecht-button-icon-gap:var(--denhaag-language-switcher-list-item-button-icon-gap);--utrecht-icon-inset-block-start:var(--denhaag-language-switcher-list-item-button-icon-inset-block-start);--utrecht-icon-size:var(--denhaag-language-switcher-list-item-button-icon-size);--utrecht-link-hover-text-decoration:var(--denhaag-language-switcher-list-item-button-hover-text-decoration);--utrecht-link-text-decoration:var(--denhaag-language-switcher-list-item-button-text-decoration);--utrecht-link-text-underline-offset:var(--denhaag-language-switcher-list-item-button-text-underline-offset)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item .denhaag-language-switcher__list-item-button--active{color:var(--denhaag-language-switcher-list-item-link-active-color);font-weight:var(--denhaag-language-switcher-list-item-link-active-font-weight,bold)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item .denhaag-language-switcher__list-item-button .denhaag-language-switcher-icon{font-size:var(--denhaag-language-switcher-list-item-button-icon-size)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-link__icon{font-size:var(--denhaag-link-group-link-icon-font-size);width:var(--denhaag-link-group-link-icon-width)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-link__icon .denhaag-icon{align-self:var(--denhaag-link-group-link-icon-denhaag-icon-align-self);height:var(--denhaag-link-group-link-icon-denhaag-icon-height);padding-block-start:var(--denhaag-link-group-link-icon-denhaag-icon-padding-block-start)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item-link--active{color:var(--denhaag-language-switcher-list-item-link-active-color);font-weight:var(--denhaag-language-switcher-list-item-link-active-font-weight,bold)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item-link--active .denhaag-link__icon{margin-block-end:var(--denhaag-language-switcher-list-item-link-active-icon-margin-block-end);margin-block-start:var(--denhaag-language-switcher-list-item-link-active-icon-margin-block-start);margin-inline-end:var(--denhaag-language-switcher-list-item-link-active-icon-margin-inline-end);margin-inline-start:var(--denhaag-language-switcher-list-item-link-active-icon-margin-inline-start)}.denhaag-language-switcher .denhaag-language-switcher__list .denhaag-language-switcher__list-item-link--active .denhaag-link__icon .denhaag-icon{padding-block-start:var(--denhaag-language-switcher-list-item-link-active-icon-padding-block-start);padding-inline-start:var(--denhaag-language-switcher-list-item-link-active-icon-padding-inline-start)}");var LanguageSwitcherTitle=function LanguageSwitcherTitle(props){var className=clsx$2("denhaag-language-switcher__title",props.className);return react.createElement("h4",_assign$4({},props,{className}),props.children)},LanguageSwitcherList=function LanguageSwitcherList(props){var className=clsx$2("denhaag-language-switcher__list",props.className);return react.createElement("ul",_assign$4({},props,{className}),props.children)},LanguageSwitcherListItem=function LanguageSwitcherListItem(props){var className=clsx$2("denhaag-language-switcher__list-item",props.className);return react.createElement("li",_assign$4({},props,{className}),props.children)},LanguageSwitcherLink=function LanguageSwitcherLink(_a){var className=_a.className,children=_a.children,_b=_a.Link,Link=void 0===_b?function(_a){var children=_a.children,props=__rest$1(_a,["children"]);return react.createElement("a",_assign$4({},props),children)}:_b,props=__rest$1(_a,["className","children","Link"]);return react.createElement(Link,_assign$4({},props,{className}),children)},_assign$5=function __assign$2(){return _assign$5=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},getOwnPropertySymbols=Object.getOwnPropertySymbols,mjs_hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;(function shouldUseNative(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;var order2=Object.getOwnPropertyNames(test2).map((function(n){return test2[n]}));if("0123456789"!==order2.join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach((function(letter){test3[letter]=letter})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}})()&&Object.assign;var f=react,g=60103;if(reactJsxRuntime_production_min.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element"),reactJsxRuntime_production_min.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,k){var b,d={},e=null,l=null;for(b in void 0!==k&&(e=""+k),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(l=a.ref),a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q;function r$3(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t=2};(0,react.forwardRef)((function(_ref,ref){var children=_ref.children,className=_ref.className,restProps=_objectWithoutProperties(_ref,_excluded$15);return jsxRuntime.exports.jsx("p",_objectSpread$16(_objectSpread$16({role:hasManyElements(children)?"group":void 0},restProps),{},{ref,className:clsx$3("utrecht-button-group",className),children}))})).displayName="ButtonGroup";var _excluded$14=["appearance","children","className","external","href","placeholder","role"];function ownKeys$15(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$15(e){for(var r=1;r0&&"utrecht-currency-data--positive",className),"aria-label":labelFormatted,children:children||visuallyFormatted}))})).displayName="CurrencyData";var _excluded$_=["children","className","dateTime","value"];function ownKeys$$(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread$$(e){for(var r=1;r0&&react.createElement(LanguageSwitcherList,null,languageListContent))},_assign2=function __assign(){return _assign2=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i:first-child{font-size:var(--denhaag-typography-scale-lg-font-size)}.denhaag-button--large .denhaag-button__icon>:first-child{font-size:var(--denhaag-typography-scale-xl-font-size)}.denhaag-button--start-icon .denhaag-button__icon{display:inherit;margin-inline-end:8px;margin-inline-start:-4px}.denhaag-button--end-icon .denhaag-button__icon{display:inherit;margin-inline-end:-4px;margin-inline-start:8px}.denhaag-button__sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin-block-end:-1px;margin-block-start:-1px;margin-inline-end:-1px;margin-inline-start:-1px;overflow:hidden;padding-block-end:0;padding-block-start:0;padding-inline-end:0;padding-inline-start:0;position:absolute;width:1px}.denhaag-button--icon-only{--denhaag-button-medium-size-padding-inline:0.75rem;height:var(--denhaag-button-icon-only-height);padding-inline-end:var(--denhaag-button-medium-size-padding-inline);padding-inline-start:var(--denhaag-button-medium-size-padding-inline)}.denhaag-button--icon-only .denhaag-button__icon{height:var(--denhaag-button-icon-only-icon-height)}');var getRandomValues,Button=react.forwardRef((function Button(_a,ref){var icon=_a.icon,className=_a.className,_b=_a.type,type=void 0===_b?"button":_b,_c=_a.iconAlign,iconAlign=void 0===_c?"start":_c,props=function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i1&&void 0!==arguments[1]?arguments[1]:0;return byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]}(rnds)}var useToggleState=function useToggleState(callback){var _a=(0,react.useState)(!1),open=_a[0],setOpen=_a[1],handleCallback=(0,react.useCallback)((function(){return null==callback?void 0:callback()}),[callback]),ariaControls=v4(),toggleState=function toggleState(){setOpen((function(open){return!open})),handleCallback()};return{open,buttonProps:{"aria-expanded":open,"aria-controls":ariaControls,onClick:toggleState},expandableAreaProps:{id:ariaControls,active:open},toggleState}},ExpandedListItem=function ExpandedListItem(_a){var label=_a.label,navigation=_a.navigation,Link=_a.Link,scrollMenu=_a.scrollMenu,tabIndex=_a.tabIndex,toggle=useToggleState(scrollMenu);return react.createElement(MobileMenuListItem,null,react.createElement(MobileMenuButton,_assign$({},toggle.buttonProps,{tabIndex}),label),react.createElement(MobileSubMenu,_assign$({},toggle.expandableAreaProps),react.createElement("div",null,react.createElement("button",{onClick:toggle.toggleState,className:"denhaag-link denhaag-link--with-icon denhaag-link--with-icon-start denhaag-mobile-menu-list-submenu__back-button"},react.createElement("span",{className:"denhaag-link__icon"},react.createElement(ArrowLeftIcon,null)),react.createElement("span",{className:"denhaag-link__label"},"Terug")),react.createElement("span",{className:"denhaag-mobile-menu-list-submenu-title"},label),react.createElement(MobileMenuList,null,null==navigation?void 0:navigation.map((function(l3Nav,key){return react.createElement(MobileMenuListItem,{key},react.createElement(MobileMenuLink,{Link,href:l3Nav.href},react.createElement("span",null,l3Nav.label),react.createElement("span",{className:"denhaag-mobile-menu-list-submenu-list-item-link__icon"},react.createElement(ArrowRightIcon$1,null))))}))))))},ExpandedList=function ExpandedList(_a){var label=_a.label,navigation=_a.navigation,Link=_a.Link,scrollMenu=_a.scrollMenu,tabIndex=_a.tabIndex,toggle=useToggleState();return react.createElement(MobileMenuListItem,{active:toggle.open},react.createElement(MobileMenuButton,_assign$({},toggle.buttonProps,{tabIndex,large:!0}),react.createElement("p",{className:"denhaag-mobile-menu-list-item-button-text"},label),react.createElement(ChevronDownIcon,null)),react.createElement(MobileMenuList,_assign$({},toggle.expandableAreaProps,{expandable:!0}),null==navigation?void 0:navigation.map((function(l2Nav,key){return l2Nav.href?react.createElement(MobileMenuListItem,{key},react.createElement(MobileMenuLink,{Link,href:l2Nav.href,tabIndex},react.createElement("span",null,l2Nav.label),react.createElement("span",{className:"denhaag-mobile-menu-list-submenu-list-item-link__icon"},react.createElement(ArrowRightIcon$1,null)))):react.createElement(ExpandedListItem,_assign$({},l2Nav,{Link,tabIndex,scrollMenu,key}))}))))},MobileMenu=function MobileMenu(_a){var navigation=_a.navigation,languageSwitcherMenu=_a.languageSwitcherMenu,logoutButton=_a.logoutButton,Link=_a.Link,_b=(0,react.useState)(!1),menuScrolled=_b[0],setMenuScrolled=_b[1],classNames=clsx$6("denhaag-mobile-menu",menuScrolled?"denhaag-mobile-menu--scrolled":""),scrollMenu=function scrollMenu(){setMenuScrolled((function(menuScrolled){return!menuScrolled}))};return react.createElement(SheetContainer,{className:classNames},navigation&&react.createElement(MobileMenuList,null,navigation.map((function(l1Nav,key){return l1Nav.href?react.createElement(MobileMenuListItem,{key},react.createElement(MobileMenuLink,{Link,href:l1Nav.href,large:!0,tabIndex:menuScrolled?-1:void 0},l1Nav.label)):react.createElement(ExpandedList,_assign$({},l1Nav,{Link,tabIndex:menuScrolled?-1:void 0,scrollMenu,key}))}))),react.createElement("div",{className:"denhaag-mobile-menu-actions"},logoutButton&&react.createElement("div",{className:"denhaag-button-group"},react.createElement(Button,{tabIndex:menuScrolled?-1:void 0,icon:react.createElement(LogOutIcon,null),onClick:logoutButton.onLogoutClick},logoutButton.label)),languageSwitcherMenu&&react.createElement(LanguageSwitcherLogic,_assign$({},languageSwitcherMenu,{mobileMenuScrolled:menuScrolled}))))},Menu=function Menu(props){var rootClassNames=clsx$6("denhaag-menu",props.className);return react.createElement("div",{className:rootClassNames,id:props.id},props.children)};Menu.__docgenInfo={description:"",methods:[],displayName:"Menu"},MenuButton.__docgenInfo={description:"",methods:[],displayName:"MenuButton"},MenuButtonExpandable.__docgenInfo={description:"",methods:[],displayName:"MenuButtonExpandable"},MobileMenu.__docgenInfo={description:"",methods:[],displayName:"MobileMenu"},MobileMenuList.__docgenInfo={description:"",methods:[],displayName:"MobileMenuList"},MobileMenuListItem.__docgenInfo={description:"",methods:[],displayName:"MobileMenuListItem"},MobileSubMenu.__docgenInfo={description:"",methods:[],displayName:"MobileSubMenu"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"Menu",docgenInfo:Menu.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MenuButton",docgenInfo:MenuButton.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MenuButtonExpandable",docgenInfo:MenuButtonExpandable.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MobileMenu",docgenInfo:MobileMenu.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MobileMenuList",docgenInfo:MobileMenuList.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MobileMenuListItem",docgenInfo:MobileMenuListItem.__docgenInfo,path:"components/Menu/dist/mjs/index.js"}),"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Menu/dist/mjs/index.js"]={name:"MobileSubMenu",docgenInfo:MobileSubMenu.__docgenInfo,path:"components/Menu/dist/mjs/index.js"});var dist_clsx=__webpack_require__("./node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs"),jsx_runtime=__webpack_require__("./node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js"),Header_Header=function Header(props){var classNames=(0,dist_clsx.Z)("denhaag-header",props.className);return(0,jsx_runtime.jsx)("header",{id:"site-header",className:classNames,children:props.children})};Header_Header.displayName="Header";const src_Header=Header_Header;try{Header_Header.displayName="Header",Header_Header.__docgenInfo={description:"",displayName:"Header",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/Header.tsx#Header"]={docgenInfo:Header_Header.__docgenInfo,name:"Header",path:"components/Header/src/Header.tsx#Header"})}catch(__react_docgen_typescript_loader_error){}var HeaderContentContainer=function HeaderContentContainer(props){var classNames=(0,dist_clsx.Z)("denhaag-header__content-container",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderContentContainer.displayName="HeaderContentContainer";const src_HeaderContentContainer=HeaderContentContainer;try{HeaderContentContainer.displayName="HeaderContentContainer",HeaderContentContainer.__docgenInfo={description:"",displayName:"HeaderContentContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderContentContainer.tsx#HeaderContentContainer"]={docgenInfo:HeaderContentContainer.__docgenInfo,name:"HeaderContentContainer",path:"components/Header/src/HeaderContentContainer.tsx#HeaderContentContainer"})}catch(__react_docgen_typescript_loader_error){}var HeaderContent_HeaderContent=function HeaderContent(props){var classNames=(0,dist_clsx.Z)("denhaag-header__content",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderContent_HeaderContent.displayName="HeaderContent";const src_HeaderContent=HeaderContent_HeaderContent;try{HeaderContent_HeaderContent.displayName="HeaderContent",HeaderContent_HeaderContent.__docgenInfo={description:"",displayName:"HeaderContent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderContent.tsx#HeaderContent"]={docgenInfo:HeaderContent_HeaderContent.__docgenInfo,name:"HeaderContent",path:"components/Header/src/HeaderContent.tsx#HeaderContent"})}catch(__react_docgen_typescript_loader_error){}var HeaderLogoContainer_HeaderLogoContainer=function HeaderLogoContainer(props){var classNames=(0,dist_clsx.Z)("denhaag-header__logo-container",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderLogoContainer_HeaderLogoContainer.displayName="HeaderLogoContainer";const src_HeaderLogoContainer=HeaderLogoContainer_HeaderLogoContainer;try{HeaderLogoContainer_HeaderLogoContainer.displayName="HeaderLogoContainer",HeaderLogoContainer_HeaderLogoContainer.__docgenInfo={description:"",displayName:"HeaderLogoContainer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderLogoContainer.tsx#HeaderLogoContainer"]={docgenInfo:HeaderLogoContainer_HeaderLogoContainer.__docgenInfo,name:"HeaderLogoContainer",path:"components/Header/src/HeaderLogoContainer.tsx#HeaderLogoContainer"})}catch(__react_docgen_typescript_loader_error){}var HeaderActions_HeaderActions=function HeaderActions(props){var classNames=(0,dist_clsx.Z)("denhaag-header__actions",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderActions_HeaderActions.displayName="HeaderActions";const src_HeaderActions=HeaderActions_HeaderActions;try{HeaderActions_HeaderActions.displayName="HeaderActions",HeaderActions_HeaderActions.__docgenInfo={description:"",displayName:"HeaderActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderActions.tsx#HeaderActions"]={docgenInfo:HeaderActions_HeaderActions.__docgenInfo,name:"HeaderActions",path:"components/Header/src/HeaderActions.tsx#HeaderActions"})}catch(__react_docgen_typescript_loader_error){}var HeaderMobileActions_HeaderMobileActions=function HeaderMobileActions(props){var classNames=(0,dist_clsx.Z)("denhaag-header__mobile-actions",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderMobileActions_HeaderMobileActions.displayName="HeaderMobileActions";const src_HeaderMobileActions=HeaderMobileActions_HeaderMobileActions;try{HeaderMobileActions_HeaderMobileActions.displayName="HeaderMobileActions",HeaderMobileActions_HeaderMobileActions.__docgenInfo={description:"",displayName:"HeaderMobileActions",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderMobileActions.tsx#HeaderMobileActions"]={docgenInfo:HeaderMobileActions_HeaderMobileActions.__docgenInfo,name:"HeaderMobileActions",path:"components/Header/src/HeaderMobileActions.tsx#HeaderMobileActions"})}catch(__react_docgen_typescript_loader_error){}var HeaderAction_HeaderAction=function HeaderAction(props){var classNames=(0,dist_clsx.Z)("denhaag-header__actions-action",props.className);return(0,jsx_runtime.jsx)("div",{className:classNames,children:props.children})};HeaderAction_HeaderAction.displayName="HeaderAction";const src_HeaderAction=HeaderAction_HeaderAction;try{HeaderAction_HeaderAction.displayName="HeaderAction",HeaderAction_HeaderAction.__docgenInfo={description:"",displayName:"HeaderAction",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["components/Header/src/HeaderAction.tsx#HeaderAction"]={docgenInfo:HeaderAction_HeaderAction.__docgenInfo,name:"HeaderAction",path:"components/Header/src/HeaderAction.tsx#HeaderAction"})}catch(__react_docgen_typescript_loader_error){}function mjs_r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t= 360px){.denhaag-responsive-content{--denhaag-responsive-content-padding:var(--denhaag-responsive-content-xs-padding)}}@media (width <= 767px){.denhaag-responsive-content{box-sizing:border-box;padding-inline-end:var(--denhaag-responsive-content-padding);padding-inline-start:var(--denhaag-responsive-content-padding);width:100%}}@media (width >= 768px){.denhaag-responsive-content{--denhaag-responsive-content-max-width:var(--denhaag-responsive-content-sm-max-width);margin-inline-end:auto;margin-inline-start:auto;max-width:100%;width:var(--denhaag-responsive-content-max-width,100%)}}@media (width >= 1024px){.denhaag-responsive-content{--denhaag-responsive-content-max-width:var(--denhaag-responsive-content-md-max-width)}}@media (width >= 1280px){.denhaag-responsive-content{--denhaag-responsive-content-max-width:var(--denhaag-responsive-content-lg-max-width)}}.denhaag-responsive-content--sidebar{display:flex}");var ResponsiveContent=function ResponsiveContent(props){var classNames=function mjs_clsx$2(){for(var e,t,f=0,n="";f.denhaag-breadcrumb__link:before{background:var(--denhaag-breadcrumb-link-color);clip-path:path("M6.756 12.0899C6.43057 12.4153 5.90293 12.4153 5.57749 12.0899L0.577491 7.0899C0.421212 6.93362 0.333414 6.72166 0.333414 6.50065C0.333414 6.27964 0.421212 6.06767 0.577491 5.91139L5.57749 0.911394C5.90293 0.585957 6.43057 0.585957 6.756 0.911394C7.08144 1.23683 7.08144 1.76447 6.756 2.08991L3.17859 5.66732L12.8334 5.66732C13.2937 5.66732 13.6667 6.04041 13.6667 6.50065C13.6667 6.96089 13.2937 7.33398 12.8334 7.33398L3.17859 7.33398L6.756 10.9114C7.08144 11.2368 7.08144 11.7645 6.756 12.0899Z");content:var(--denhaag-breadcrumb-link-icon-content);height:var(--denhaag-breadcrumb-link-icon-height,var(--denhaag-breadcrumb-link-icon-width));margin-inline-end:var(--denhaag-breadcrumb-link-icon-margin-inline,var(--denhaag-breadcrumb-link-icon-width));width:var(--denhaag-breadcrumb-link-icon-width)}.denhaag-breadcrumb__link{align-items:center;color:var(--denhaag-breadcrumb-link-color,inherit);display:flex;pointer-events:var(--denhaag-breadcrumb-link-pointer-events);position:relative;text-decoration:var(--denhaag-breadcrumb-link-text-decoration,none)}.denhaag-breadcrumb__link--hover,.denhaag-breadcrumb__link:hover{--denhaag-breadcrumb-link-color:var(--denhaag-breadcrumb-link-hover-color,inherit);--denhaag-breadcrumb-link-text-decoration:var(--denhaag-breadcrumb-link-hover-text-decoration,underline)}.denhaag-breadcrumb__link--focus,.denhaag-breadcrumb__link:focus-visible{--denhaag-breadcrumb-link-color:var(--denhaag-breadcrumb-link-focus-color,inherit);--denhaag-breadcrumb-link-text-decoration:var(--denhaag-breadcrumb-link-focus-text-decoration,underline);outline:var(--denhaag-breadcrumb-link-focus-outline,var(--denhaag-link-focus-outline))}.denhaag-breadcrumb__item:first-child{padding-inline-start:0}.denhaag-breadcrumb__item:not(:first-child,:nth-last-child(3),:nth-last-child(2),:last-child){--denhaag-breadcrumb-link-background-color:var(--denhaag-breadcrumb-dots-background-color,inherit)}.denhaag-breadcrumb__item:not(:first-child,:nth-last-child(3),:nth-last-child(2),:last-child):hover{--denhaag-breadcrumb-link-background-color:var(--denhaag-breadcrumb-dots-hover-background-color,inherit)}.denhaag-breadcrumb__link>.denhaag-breadcrumb__text+.denhaag-icon,.denhaag-breadcrumb__link>.denhaag-icon+.denhaag-icon{color:initial;display:var(--denhaag-breadcrumb-chevron-display);font-size:inherit;margin-inline-end:calc(var(--denhaag-breadcrumb-spacing, 8px)*-1);margin-inline-start:var(--denhaag-breadcrumb-spacing,8px)}[dir=rtl] .denhaag-breadcrumb__item:nth-last-child(3)>.denhaag-breadcrumb__link:before,[dir=rtl] .denhaag-breadcrumb__link>.denhaag-breadcrumb__text+.denhaag-icon{transform:scaleX(-1)}.denhaag-breadcrumb__text{background-color:var(--denhaag-breadcrumb-link-background-color);overflow:hidden;position:relative;text-overflow:ellipsis}.denhaag-breadcrumb__item--hidden .denhaag-breadcrumb__text{aspect-ratio:24/16;border-radius:var(--denhaag-breadcrumb-dots-border-radius,var(--denhaag-border-radius));max-width:calc(var(--denhaag-breadcrumb-spacing, 8px)*3);text-indent:calc(var(--denhaag-breadcrumb-spacing, 8px)*3)}.denhaag-breadcrumb__item--hidden .denhaag-breadcrumb__text:before{color:var(--denhaag-breadcrumb-dots-color,inherit);content:"...";left:calc(50% - 7px);line-height:0;position:absolute;text-indent:0;top:calc(50% - 5px);vertical-align:baseline}@media (width >= 481px){.denhaag-breadcrumb{--denhaag-breadcrumb-chevron-display:inline-block;--denhaag-breadcrumb-link-icon-content:unset;--denhaag-breadcrumb-padding-block:var(--denhaag-breadcrumb-padding-block-md);background-color:var(--denhaag-breadcrumb-background-color,transparent)}.denhaag-breadcrumb__item{--denhaag-breadcrumb-item-display:flex}.denhaag-breadcrumb__item:not(:first-child,:nth-last-child(3),:nth-last-child(2),:last-child){--denhaag-breadcrumb-link-pointer-events:none}}@media (width >= 1124px){.denhaag-breadcrumb{--denhaag-breadcrumb-padding-inline:0}}.breadcrumbs-container .denhaag-breadcrumb .denhaag-breadcrumb__list{margin-inline-end:auto;margin-inline-start:auto;max-width:var(--denhaag-breadcrumb-list-max-width,100%)}.breadcrumbs-container .denhaag-breadcrumb .denhaag-breadcrumb__list .denhaag-breadcrumb__item .denhaag-breadcrumb__link{padding-inline-start:var(--denhaag-breadcrumb-spacing,8px)}.breadcrumbs-container .denhaag-breadcrumb .denhaag-breadcrumb__list .denhaag-breadcrumb__item:not(:first-child,:nth-last-child(3),:nth-last-child(2),:last-child) .denhaag-breadcrumb__text{aspect-ratio:24/16;border-radius:var(--denhaag-breadcrumb-dots-border-radius,var(--denhaag-border-radius));max-width:calc(var(--denhaag-breadcrumb-spacing, 8px)*3);text-indent:calc(var(--denhaag-breadcrumb-spacing, 8px)*3)}.breadcrumbs-container .denhaag-breadcrumb .denhaag-breadcrumb__list .denhaag-breadcrumb__item:not(:first-child,:nth-last-child(3),:nth-last-child(2),:last-child) .denhaag-breadcrumb__text:before{color:var(--denhaag-breadcrumb-dots-color,inherit);content:"...";left:calc(50% - 7px);line-height:0;position:absolute;text-indent:0;top:calc(50% - 5px);vertical-align:baseline}');var BreadcrumbNavigation=function BreadcrumbNavigation(props){var classNames=mjs_clsx("denhaag-breadcrumb",props.className);return react.createElement("nav",{"aria-label":"Breadcrumb",className:classNames},props.children)},_assign=function __assign(){return _assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;i