diff --git a/latest/729.902542b6.iframe.bundle.js b/latest/729.902542b6.iframe.bundle.js deleted file mode 100644 index ac02e48f..00000000 --- a/latest/729.902542b6.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 729.902542b6.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[729],{"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var target={};for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}__webpack_require__.d(__webpack_exports__,{A:()=>_objectWithoutPropertiesLoose})},"./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>createCache});var StyleSheet=function(){function StyleSheet(options){var _this=this;this._insertTag=function(tag){var before;before=0===_this.tags.length?_this.insertionPoint?_this.insertionPoint.nextSibling:_this.prepend?_this.container.firstChild:_this.before:_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.insertionPoint=options.insertionPoint,this.before=null}var _proto=StyleSheet.prototype;return _proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)},_proto.insert=function insert(rule){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}(this));var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i0?Utility_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)+"*"+Utility_from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}var COMMENT="comm",Enum_RULESET="rule",Enum_DECLARATION="decl";function Serializer_serialize(children,callback){for(var output="",length=Utility_sizeof(children),i=0;i0&&Utility_strlen(characters)-length&&Utility_append(property>32?declaration(characters+";",rule,parent,length-1):declaration(Utility_replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(Utility_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(99===atrule&&110===Utility_charat(characters,3)?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&Utility_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+Utility_strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=Utility_from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(Utility_strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=Utility_strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==Utility_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=Utility_sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:Utility_replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?Enum_RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,Utility_from(function Tokenizer_char(){return character}()),Utility_substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,Enum_DECLARATION,Utility_substr(value,0,length),Utility_substr(value,length+1,-1),length)}var identifierWithPointTracking=function identifierWithPointTracking(begin,points,index){for(var previous=0,character=0;previous=character,character=peek(),38===previous&&12===character&&(points[index]=1),!token(character);)next();return slice(begin,position)},getRules=function getRules(value,points){return dealloc(function toRules(parsed,points){var index=-1,character=44;do{switch(token(character)){case 0:38===character&&12===peek()&&(points[index]=1),parsed[index]+=identifierWithPointTracking(position-1,points,index);break;case 2:parsed[index]+=delimit(character);break;case 4:if(44===character){parsed[++index]=58===peek()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=Utility_from(character)}}while(character=next());return parsed}(alloc(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&!(element.length<1)){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i6)switch(Utility_charat(value,length+1)){case 109:if(45!==Utility_charat(value,length+4))break;case 102:return Utility_replace(value,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==Utility_charat(value,length+1))break;case 6444:switch(Utility_charat(value,Utility_strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return Utility_replace(value,":",":-webkit-")+value;case 101:return Utility_replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(value,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+value}break;case 5936:switch(Utility_charat(value,length+11)){case 114:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return"-webkit-"+value+"-ms-"+value+value}return value}var defaultStylisPlugins=[function prefixer(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case Enum_DECLARATION:element.return=emotion_cache_browser_esm_prefix(element.value,element.length);break;case"@keyframes":return Serializer_serialize([Tokenizer_copy(element,{value:Utility_replace(element.value,"@","@-webkit-")})],callback);case Enum_RULESET:if(element.length)return function Utility_combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function Utility_match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(read-\w+)/,":-moz-$1")]})],callback);case"::placeholder":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,"-ms-input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if("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=[];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{"use strict";__webpack_require__.d(__webpack_exports__,{AH:()=>css,cx:()=>cx});var emotion_cache_browser_esm=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js");function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach((function(className){void 0!==registered[className]?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "})),rawClassName}function insertWithoutScoping(cache,serialized){if(void 0===cache.inserted[serialized.name])return cache.insert("",serialized,cache.sheet,!0)}function merge(registered,css,className){var registeredStyles=[],rawClassName=getRegisteredStyles(registered,registeredStyles,className);return registeredStyles.length<2?className:rawClassName+css(registeredStyles)}var classnames=function classnames(args){for(var cls="",i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>ThemeProvider,u:()=>useTheme});var react=__webpack_require__("./node_modules/react/index.js"),emotion_cache_browser_esm=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),weakMemoize=function weakMemoize(func){var cache=new WeakMap;return function(arg){if(cache.has(arg))return cache.get(arg);var ret=func(arg);return cache.set(arg,ret),ret}},EmotionCacheContext=(__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),__webpack_require__("./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"),react.createContext("undefined"!=typeof HTMLElement?(0,emotion_cache_browser_esm.A)({key:"css"}):null));EmotionCacheContext.Provider;var ThemeContext=react.createContext({});var useTheme=function useTheme(){return react.useContext(ThemeContext)},createCacheWithTheme=weakMemoize((function(outerTheme){return weakMemoize((function(theme){return function getTheme(outerTheme,theme){return"function"==typeof theme?theme(outerTheme):(0,esm_extends.A)({},outerTheme,theme)}(outerTheme,theme)}))})),ThemeProvider=function ThemeProvider(props){var theme=react.useContext(ThemeContext);return props.theme!==theme&&(theme=createCacheWithTheme(theme)(props.theme)),react.createElement(ThemeContext.Provider,{value:theme},props.children)}},"./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>serializeStyles});var unitlessKeys={animationIterationCount:1,aspectRatio: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};function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}var hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName=memoize((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,(function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1}))}return 1===unitlessKeys[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation(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={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;return interpolation.styles+";"}return function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;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)}(styles)+identifierName;return{name,styles,next:cursor}}},"./node_modules/@loadable/component/dist/esm/loadable.esm.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);function invariant(condition,message){if(!condition){var error=new Error("loadable: "+message);throw error.framesToPop=1,error.name="Invariant Violation",error}}var Context=react__WEBPACK_IMPORTED_MODULE_0__.createContext();var LOADABLE_SHARED={initialChunks:{}};var identity=function identity(v){return v};function createLoadable(_ref){var _ref$defaultResolveCo=_ref.defaultResolveComponent,defaultResolveComponent=void 0===_ref$defaultResolveCo?identity:_ref$defaultResolveCo,_render=_ref.render,onLoad=_ref.onLoad;function loadable(loadableConstructor,options){void 0===options&&(options={});var ctor=function resolveConstructor(ctor){return"function"==typeof ctor?{requireAsync:ctor,resolve:function resolve(){},chunkName:function chunkName(){}}:ctor}(loadableConstructor),cache={};function _getCacheKey(props){return options.cacheKey?options.cacheKey(props):ctor.resolve?ctor.resolve(props):"static"}function resolve(module,props,Loadable){var Component=options.resolveComponent?options.resolveComponent(module,props):defaultResolveComponent(module);return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(Loadable,Component,{preload:!0}),Component}var cachedLoad=function cachedLoad(props){var cacheKey=_getCacheKey(props),promise=cache[cacheKey];return promise&&"REJECTED"!==promise.status||((promise=ctor.requireAsync(props)).status="PENDING",cache[cacheKey]=promise,promise.then((function(){promise.status="RESOLVED"}),(function(error){console.error("loadable-components: failed to asynchronously load component",{fileName:ctor.resolve(props),chunkName:ctor.chunkName(props),error:error?error.message:error}),promise.status="REJECTED"}))),promise},EnhancedInnerLoadable=function withChunkExtractor(Component){var LoadableWithChunkExtractor=function LoadableWithChunkExtractor(props){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Consumer,null,(function(extractor){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,Object.assign({__chunkExtractor:extractor},props))}))};return Component.displayName&&(LoadableWithChunkExtractor.displayName=Component.displayName+"WithChunkExtractor"),LoadableWithChunkExtractor}(function(_React$Component){function InnerLoadable(props){var _this;return(_this=_React$Component.call(this,props)||this).state={result:null,error:null,loading:!0,cacheKey:_getCacheKey(props)},invariant(!props.__chunkExtractor||ctor.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),props.__chunkExtractor?(!1===options.ssr||(ctor.requireAsync(props).catch((function(){return null})),_this.loadSync(),props.__chunkExtractor.addChunk(ctor.chunkName(props))),(0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__.A)(_this)):(!1!==options.ssr&&(ctor.isReady&&ctor.isReady(props)||ctor.chunkName&&LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])&&_this.loadSync(),_this)}(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__.A)(InnerLoadable,_React$Component),InnerLoadable.getDerivedStateFromProps=function getDerivedStateFromProps(props,state){var cacheKey=_getCacheKey(props);return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},state,{cacheKey,loading:state.loading||state.cacheKey!==cacheKey})};var _proto=InnerLoadable.prototype;return _proto.componentDidMount=function componentDidMount(){this.mounted=!0;var cachedPromise=this.getCache();cachedPromise&&"REJECTED"===cachedPromise.status&&this.setCache(),this.state.loading&&this.loadAsync()},_proto.componentDidUpdate=function componentDidUpdate(prevProps,prevState){prevState.cacheKey!==this.state.cacheKey&&this.loadAsync()},_proto.componentWillUnmount=function componentWillUnmount(){this.mounted=!1},_proto.safeSetState=function safeSetState(nextState,callback){this.mounted&&this.setState(nextState,callback)},_proto.getCacheKey=function getCacheKey(){return _getCacheKey(this.props)},_proto.getCache=function getCache(){return cache[this.getCacheKey()]},_proto.setCache=function setCache(value){void 0===value&&(value=void 0),cache[this.getCacheKey()]=value},_proto.triggerOnLoad=function triggerOnLoad(){var _this2=this;onLoad&&setTimeout((function(){onLoad(_this2.state.result,_this2.props)}))},_proto.loadSync=function loadSync(){if(this.state.loading)try{var result=resolve(ctor.requireSync(this.props),this.props,Loadable);this.state.result=result,this.state.loading=!1}catch(error){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:ctor.resolve(this.props),chunkName:ctor.chunkName(this.props),error:error?error.message:error}),this.state.error=error}},_proto.loadAsync=function loadAsync(){var _this3=this,promise=this.resolveAsync();return promise.then((function(loadedModule){var result=resolve(loadedModule,_this3.props,Loadable);_this3.safeSetState({result,loading:!1},(function(){return _this3.triggerOnLoad()}))})).catch((function(error){return _this3.safeSetState({error,loading:!1})})),promise},_proto.resolveAsync=function resolveAsync(){var _this$props=this.props,props=(_this$props.__chunkExtractor,_this$props.forwardedRef,(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__.A)(_this$props,["__chunkExtractor","forwardedRef"]));return cachedLoad(props)},_proto.render=function render(){var _this$props2=this.props,forwardedRef=_this$props2.forwardedRef,propFallback=_this$props2.fallback,props=(_this$props2.__chunkExtractor,(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__.A)(_this$props2,["forwardedRef","fallback","__chunkExtractor"])),_this$state=this.state,error=_this$state.error,loading=_this$state.loading,result=_this$state.result;if(options.suspense&&"PENDING"===(this.getCache()||this.loadAsync()).status)throw this.loadAsync();if(error)throw error;var fallback=propFallback||options.fallback||null;return loading?fallback:_render({fallback,result,options,props:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},props,{ref:forwardedRef})})},InnerLoadable}(react__WEBPACK_IMPORTED_MODULE_0__.Component)),Loadable=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EnhancedInnerLoadable,Object.assign({forwardedRef:ref},props))}));return Loadable.displayName="Loadable",Loadable.preload=function(props){Loadable.load(props)},Loadable.load=function(props){return cachedLoad(props)},Loadable}return{loadable,lazy:function lazy(ctor,options){return loadable(ctor,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},options,{suspense:!0}))}}}var _createLoadable=createLoadable({defaultResolveComponent:function defaultResolveComponent(loadedModule){return loadedModule.__esModule?loadedModule.default:loadedModule.default||loadedModule},render:function render(_ref){var Component=_ref.result,props=_ref.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,props)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function onLoad(result,props){result&&props.forwardedRef&&("function"==typeof props.forwardedRef?props.forwardedRef(result):props.forwardedRef.current=result)},render:function render(_ref){var result=_ref.result,props=_ref.props;return props.children?props.children(result):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy;var loadable$2=loadable;loadable$2.lib=loadable$1,lazy.lib=lazy$1;const __WEBPACK_DEFAULT_EXPORT__=loadable$2},"./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;tclsx,default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=clsx},"./node_modules/color-alpha/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>alpha});const color_name={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},color_parse=function parse(cstr){var m,space,parts=[],alpha=1;if("number"==typeof cstr)return{space:"rgb",values:[cstr>>>16,(65280&cstr)>>>8,255&cstr],alpha:1};if("number"==typeof cstr)return{space:"rgb",values:[cstr>>>16,(65280&cstr)>>>8,255&cstr],alpha:1};if(cstr=String(cstr).toLowerCase(),color_name[cstr])parts=color_name[cstr].slice(),space="rgb";else if("transparent"===cstr)alpha=0,space="rgb",parts=[0,0,0];else if("#"===cstr[0]){var base=cstr.slice(1),size=base.length;alpha=1,size<=4?(parts=[parseInt(base[0]+base[0],16),parseInt(base[1]+base[1],16),parseInt(base[2]+base[2],16)],4===size&&(alpha=parseInt(base[3]+base[3],16)/255)):(parts=[parseInt(base[0]+base[1],16),parseInt(base[2]+base[3],16),parseInt(base[4]+base[5],16)],8===size&&(alpha=parseInt(base[6]+base[7],16)/255)),parts[0]||(parts[0]=0),parts[1]||(parts[1]=0),parts[2]||(parts[2]=0),space="rgb"}else if(m=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(cstr)){var name=m[1],dims="cmyk"===(space=name.replace(/a$/,""))?4:"gray"===space?1:3;parts=m[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===space&&(space=parts.shift()),alpha=(parts=parts.map((function(x,i){if("%"===x[x.length-1])return x=parseFloat(x)/100,3===i?x:"rgb"===space?255*x:"h"===space[0]?100*x:"l"!==space[0]||i?"lab"===space?125*x:"lch"===space?i<2?150*x:360*x:"o"!==space[0]||i?"oklab"===space?.4*x:"oklch"===space?i<2?.4*x:360*x:x:x:100*x;if("h"===space[i]||2===i&&"h"===space[space.length-1]){if(void 0!==baseHues[x])return baseHues[x];if(x.endsWith("deg"))return parseFloat(x);if(x.endsWith("turn"))return 360*parseFloat(x);if(x.endsWith("grad"))return 360*parseFloat(x)/400;if(x.endsWith("rad"))return 180*parseFloat(x)/Math.PI}return"none"===x?0:parseFloat(x)}))).length>dims?parts.pop():1}else/[0-9](?:\s|\/|,)/.test(cstr)&&(parts=cstr.match(/([0-9]+)/g).map((function(value){return parseFloat(value)})),space=cstr.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space,values:parts,alpha}};var baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function alpha(color,value){var{space,values,alpha}=color_parse(color);return"h"===space[0]?`${space}a(${values[0]}, ${values[1]}%, ${values[2]}%, ${value})`:`${space}a(${values}, ${value})`}},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var reactIs=__webpack_require__("./node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i{var _=__webpack_require__("./node_modules/lodash/lodash.min.js").runInContext();module.exports=__webpack_require__("./node_modules/lodash/fp/_baseConvert.js")(_,_)},"./node_modules/lodash/fp/_baseConvert.js":(module,__unused_webpack_exports,__webpack_require__)=>{var mapping=__webpack_require__("./node_modules/lodash/fp/_mapping.js"),fallbackHolder=__webpack_require__("./node_modules/lodash/fp/placeholder.js"),push=Array.prototype.push;function baseAry(func,n){return 2==n?function(a,b){return func(a,b)}:function(a){return func(a)}}function cloneArray(array){for(var length=array?array.length:0,result=Array(length);length--;)result[length]=array[length];return result}function wrapImmutable(func,cloner){return function(){var length=arguments.length;if(length){for(var args=Array(length);length--;)args[length]=arguments[length];var result=args[0]=cloner.apply(void 0,args);return func.apply(void 0,args),result}}}module.exports=function baseConvert(util,name,func,options){var isLib="function"==typeof name,isObj=name===Object(name);if(isObj&&(options=func,func=name,name=void 0),null==func)throw new TypeError;options||(options={});var config={cap:!("cap"in options)||options.cap,curry:!("curry"in options)||options.curry,fixed:!("fixed"in options)||options.fixed,immutable:!("immutable"in options)||options.immutable,rearg:!("rearg"in options)||options.rearg},defaultHolder=isLib?func:fallbackHolder,forceCurry="curry"in options&&options.curry,forceFixed="fixed"in options&&options.fixed,forceRearg="rearg"in options&&options.rearg,pristine=isLib?func.runInContext():void 0,helpers=isLib?func:{ary:util.ary,assign:util.assign,clone:util.clone,curry:util.curry,forEach:util.forEach,isArray:util.isArray,isError:util.isError,isFunction:util.isFunction,isWeakMap:util.isWeakMap,iteratee:util.iteratee,keys:util.keys,rearg:util.rearg,toInteger:util.toInteger,toPath:util.toPath},ary=helpers.ary,assign=helpers.assign,clone=helpers.clone,curry=helpers.curry,each=helpers.forEach,isArray=helpers.isArray,isError=helpers.isError,isFunction=helpers.isFunction,isWeakMap=helpers.isWeakMap,keys=helpers.keys,rearg=helpers.rearg,toInteger=helpers.toInteger,toPath=helpers.toPath,aryMethodKeys=keys(mapping.aryMethod),wrappers={castArray:function(castArray){return function(){var value=arguments[0];return isArray(value)?castArray(cloneArray(value)):castArray.apply(void 0,arguments)}},iteratee:function(iteratee){return function(){var arity=arguments[1],result=iteratee(arguments[0],arity),length=result.length;return config.cap&&"number"==typeof arity?(arity=arity>2?arity-2:1,length&&length<=arity?result:baseAry(result,arity)):result}},mixin:function(mixin){return function(source){var func=this;if(!isFunction(func))return mixin(func,Object(source));var pairs=[];return each(keys(source),(function(key){isFunction(source[key])&&pairs.push([key,func.prototype[key]])})),mixin(func,Object(source)),each(pairs,(function(pair){var value=pair[1];isFunction(value)?func.prototype[pair[0]]=value:delete func.prototype[pair[0]]})),func}},nthArg:function(nthArg){return function(n){var arity=n<0?1:toInteger(n)+1;return curry(nthArg(n),arity)}},rearg:function(rearg){return function(func,indexes){var arity=indexes?indexes.length:0;return curry(rearg(func,indexes),arity)}},runInContext:function(runInContext){return function(context){return baseConvert(util,runInContext(context),options)}}};function castCap(name,func){if(config.cap){var indexes=mapping.iterateeRearg[name];if(indexes)return function iterateeRearg(func,indexes){return overArg(func,(function(func){var n=indexes.length;return function baseArity(func,n){return 2==n?function(a,b){return func.apply(void 0,arguments)}:function(a){return func.apply(void 0,arguments)}}(rearg(baseAry(func,n),indexes),n)}))}(func,indexes);var n=!isLib&&mapping.iterateeAry[name];if(n)return function iterateeAry(func,n){return overArg(func,(function(func){return"function"==typeof func?baseAry(func,n):func}))}(func,n)}return func}function castFixed(name,func,n){if(config.fixed&&(forceFixed||!mapping.skipFixed[name])){var data=mapping.methodSpread[name],start=data&&data.start;return void 0===start?ary(func,n):function flatSpread(func,start){return function(){for(var length=arguments.length,lastIndex=length-1,args=Array(length);length--;)args[length]=arguments[length];var array=args[start],otherArgs=args.slice(0,start);return array&&push.apply(otherArgs,array),start!=lastIndex&&push.apply(otherArgs,args.slice(start+1)),func.apply(this,otherArgs)}}(func,start)}return func}function castRearg(name,func,n){return config.rearg&&n>1&&(forceRearg||!mapping.skipRearg[name])?rearg(func,mapping.methodRearg[name]||mapping.aryRearg[n]):func}function cloneByPath(object,path){for(var index=-1,length=(path=toPath(path)).length,lastIndex=length-1,result=clone(Object(object)),nested=result;null!=nested&&++index1?curry(func,n):func}(0,result=castCap(realName,result),aryKey),!1}})),!result})),result||(result=wrapped),result==func&&(result=forceCurry?curry(result,1):function(){return func.apply(this,arguments)}),result.convert=createConverter(realName,func),result.placeholder=func.placeholder=placeholder,result}if(!isObj)return wrap(name,func,defaultHolder);var _=func,pairs=[];return each(aryMethodKeys,(function(aryKey){each(mapping.aryMethod[aryKey],(function(key){var func=_[mapping.remap[key]||key];func&&pairs.push([key,wrap(key,func,_)])}))})),each(keys(_),(function(key){var func=_[key];if("function"==typeof func){for(var length=pairs.length;length--;)if(pairs[length][0]==key)return;func.convert=createConverter(key,func),pairs.push([key,func])}})),each(pairs,(function(pair){_[pair[0]]=pair[1]})),_.convert=function convertLib(options){return _.runInContext.convert(options)(void 0)},_.placeholder=_,each(keys(_),(function(key){each(mapping.realToAlias[key]||[],(function(alias){_[alias]=_[key]}))})),_}},"./node_modules/lodash/fp/_mapping.js":(__unused_webpack_module,exports)=>{exports.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},exports.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},exports.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},exports.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},exports.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},exports.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},exports.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},exports.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},exports.realToAlias=function(){var hasOwnProperty=Object.prototype.hasOwnProperty,object=exports.aliasToReal,result={};for(var key in object){var value=object[key];hasOwnProperty.call(result,value)?result[value].push(key):result[value]=[key]}return result}(),exports.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},exports.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},exports.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./node_modules/lodash/fp/placeholder.js":module=>{module.exports={}},"./node_modules/lodash/lodash.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;module=__webpack_require__.nmd(module),function(){var undefined,FUNC_ERROR_TEXT="Expected a function",PLACEHOLDER="__lodash_placeholder__",wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,rsComboRange="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rsBreakRange="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsAstral="[\\ud800-\\udfff]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="[\\u2700-\\u27bf]",rsLower="[a-z\\xdf-\\xf6\\xf8-\\xff]",rsMisc="[^\\ud800-\\udfff"+rsBreakRange+rsDigits+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsNonAstral="[^\\ud800-\\udfff]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="[A-Z\\xc0-\\xd6\\xd8-\\xde]",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",reOptMod="(?:"+rsCombo+"|"+rsFitz+")"+"?",rsSeq="[\\ufe0e\\ufe0f]?"+reOptMod+("(?:\\u200d(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")[\\ufe0e\\ufe0f]?"+reOptMod+")*"),rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp("['’]","g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+(?:['’](?:d|ll|m|re|s|t|ve))?",rsUpper+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff"+rsComboRange+"\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags["[object Uint8ClampedArray]"]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index-1}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index-1;);return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}var deburrLetter=basePropertyOf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),escapeHtmlChar=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function hasUnicode(string){return reHasUnicode.test(string)}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index",""":'"',"'":"'"});var _=function runInContext(context){var uid,Array=(context=null==context?root:_.defaults(root.Object(),context,_.pick(root,contextProps))).Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError,arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=context["__core-js_shared__"],funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"",nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object),oldDash=root._,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined,defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse,DataView=getNative(context,"DataView"),Map=getNative(context,"Map"),Promise=getNative(context,"Promise"),Set=getNative(context,"Set"),WeakMap=getNative(context,"WeakMap"),nativeCreate=getNative(Object,"create"),metaMap=WeakMap&&new WeakMap,realNames={},dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result=new object;return object.prototype=undefined,result}}();function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value,this.__actions__=[],this.__chain__=!!chainAll,this.__index__=0,this.__values__=undefined}function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index=lower?number:lower)),number}function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=1&bitmask,isFlat=2&bitmask,isFull=4&bitmask;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=function initCloneArray(array){var length=array.length,result=new array.constructor(length);length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input);return result}(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value))return cloneBuffer(value,isDeep);if(tag==objectTag||tag==argsTag||isFunc&&!object){if(result=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}(value,function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object)}(result,value)):function copySymbols(source,object){return copyObject(source,getSymbols(source),object)}(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)}(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor;case numberTag:case stringTag:return new Ctor(object);case regexpTag:return function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result}(object);case setTag:return new Ctor;case symbolTag:return function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{}}(object)}}(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;stack.set(value,result),isSet(value)?value.forEach((function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))})):isMap(value)&&value.forEach((function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack))}));var props=isArr?undefined:(isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys)(value);return arrayEach(props||value,(function(subValue,key){props&&(subValue=value[key=subValue]),assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack))})),result}function baseConformsTo(object,source,props){var length=props.length;if(null==object)return!length;for(object=Object(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(value===undefined&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return setTimeout((function(){func.apply(undefined,args)}),wait)}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee))),comparator?(includes=arrayIncludesWith,isCommon=!1):values.length>=200&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));outer:for(;++index-1},ListCache.prototype.set=function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result},MapCache.prototype.get=function mapCacheGet(key){return getMapData(this,key).get(key)},MapCache.prototype.has=function mapCacheHas(key){return getMapData(this,key).has(key)},MapCache.prototype.set=function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this},SetCache.prototype.has=function setCacheHas(value){return this.__data__.has(value)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result},Stack.prototype.get=function stackGet(key){return this.__data__.get(key)},Stack.prototype.has=function stackHas(key){return this.__data__.has(key)},Stack.prototype.set=function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this};var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0);function baseEvery(collection,predicate){var result=!0;return baseEach(collection,(function(value,index,collection){return result=!!predicate(value,index,collection)})),result}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index0&&predicate(value)?depth>1?baseFlatten(value,depth-1,predicate,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}var baseFor=createBaseFor(),baseForRight=createBaseFor(!0);function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,(function(key){return isFunction(object[key])}))}function baseGet(object,path){for(var index=0,length=(path=castPath(path,object)).length;null!=object&&indexother}function baseHas(object,key){return null!=object&&hasOwnProperty.call(object,key)}function baseHasIn(object,key){return null!=object&&key in Object(object)}function baseIntersection(arrays,iteratee,comparator){for(var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=1/0,result=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee&&(array=arrayMap(array,baseUnary(iteratee))),maxLength=nativeMin(array.length,maxLength),caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined}array=arrays[0];var index=-1,seen=caches[0];outer:for(;++index=ordersLength?result:result*("desc"==orders[index]?-1:1)}return object.index-other.index}(object,other,orders)}))}function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result={};++index-1;)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1);return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRepeat(string,n){var result="";if(!string||n<1||n>9007199254740991)return result;do{n%2&&(result+=string),(n=nativeFloor(n/2))&&(string+=string)}while(n);return result}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values(collection))}function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;for(var index=-1,length=(path=castPath(path,object)).length,lastIndex=length-1,nested=object;null!=nested&&++indexlength?0:length+start),(end=end>length?length:end)<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index>>1,computed=array[mid];null!==computed&&!isSymbol(computed)&&(retHighest?computed<=value:computed=200){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index=length?array:baseSlice(array,start,end)}var clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id)};function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array(result).set(new Uint8Array(arrayBuffer)),result}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined,valIsNull=null===value,valIsReflexive=value==value,valIsSymbol=isSymbol(value),othIsDefined=other!==undefined,othIsNull=null===other,othIsReflexive=other==other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):undefined,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1),object=Object(object);++index-1?iterable[iteratee?collection[index]:index]:undefined}}function createFlow(fromRight){return flatRest((function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index--;){var func=funcs[index];if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);if(prereq&&!wrapper&&"wrapper"==getFuncName(func))var wrapper=new LodashWrapper([],!0)}for(index=wrapper?index:length;++index1&&args.reverse(),isAry&&aryarrLength))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=2&bitmask?new SetCache:undefined;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value1?"& ":"")+details[lastIndex],details=details.join(length>2?", ":" "),source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n")}(source,function updateWrapDetails(details,bitmask){return arrayEach(wrapFlags,(function(pair){var value="_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)})),details.sort()}(function getWrapDetails(source){var match=source.match(reWrapDetails);return match?match[1].split(reSplitDetails):[]}(source),bitmask)))}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=16-(stamp-lastCalled);if(lastCalled=stamp,remaining>0){if(++count>=800)return arguments[0]}else count=0;return func.apply(undefined,arguments)}}function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;for(size=size===undefined?length:size;++index1?arrays[length-1]:undefined;return iteratee="function"==typeof iteratee?(arrays.pop(),iteratee):undefined,unzipWith(arrays,iteratee)}));function chain(value){var result=lodash(value);return result.__chain__=!0,result}function thru(value,interceptor){return interceptor(value)}var wrapperAt=flatRest((function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths)};return!(length>1||this.__actions__.length)&&value instanceof LazyWrapper&&isIndex(start)?((value=value.slice(start,+start+(length?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(value,this.__chain__).thru((function(array){return length&&!array.length&&array.push(undefined),array}))):this.thru(interceptor)}));var countBy=createAggregator((function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:baseAssignValue(result,key,1)}));var find=createFind(findIndex),findLast=createFind(findLastIndex);function forEach(collection,iteratee){return(isArray(collection)?arrayEach:baseEach)(collection,getIteratee(iteratee,3))}function forEachRight(collection,iteratee){return(isArray(collection)?arrayEachRight:baseEachRight)(collection,getIteratee(iteratee,3))}var groupBy=createAggregator((function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):baseAssignValue(result,key,[value])}));var invokeMap=baseRest((function(collection,path,args){var index=-1,isFunc="function"==typeof path,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,(function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)})),result})),keyBy=createAggregator((function(result,value,key){baseAssignValue(result,key,value)}));function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,getIteratee(iteratee,3))}var partition=createAggregator((function(result,value,key){result[key?0:1].push(value)}),(function(){return[[],[]]}));var sortBy=baseRest((function(collection,iteratees){if(null==collection)return[];var length=iteratees.length;return length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]),baseOrderBy(collection,baseFlatten(iteratees,1),[])})),now=ctxNow||function(){return root.Date.now()};function ary(func,n,guard){return n=guard?undefined:n,n=func&&null==n?func.length:n,createWrap(func,128,undefined,undefined,undefined,undefined,n)}function before(n,func){var result;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(result=func.apply(this,arguments)),n<=1&&(func=undefined),result}}var bind=baseRest((function(func,thisArg,partials){var bitmask=1;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=32}return createWrap(func,bitmask,thisArg,partials,holders)})),bindKey=baseRest((function(object,key,partials){var bitmask=3;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=32}return createWrap(key,bitmask,object,partials,holders)}));function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=undefined,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=undefined,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=undefined,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(timerId===undefined)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return timerId===undefined&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){timerId!==undefined&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=undefined},debounced.flush=function flush(){return timerId===undefined?result:trailingEdge(now())},debounced}var defer=baseRest((function(func,args){return baseDelay(func,1,args)})),delay=baseRest((function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)}));function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(predicate){if("function"!=typeof predicate)throw new TypeError(FUNC_ERROR_TEXT);return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}memoize.Cache=MapCache;var overArgs=castRest((function(func,transforms){var funcsLength=(transforms=1==transforms.length&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()))).length;return baseRest((function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index=other})),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag};function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}var isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag};function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return tag==errorTag||"[object DOMException]"==tag||"string"==typeof value.message&&"string"==typeof value.name&&!isPlainObject(value)}function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return tag==funcTag||tag==genTag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}function isInteger(value){return"number"==typeof value&&value==toInteger(value)}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isObjectLike(value){return null!=value&&"object"==typeof value}var isMap=nodeIsMap?baseUnary(nodeIsMap):function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag};function isNumber(value){return"number"==typeof value||isObjectLike(value)&&baseGetTag(value)==numberTag}function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag)return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag};var isSet=nodeIsSet?baseUnary(nodeIsSet):function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag};function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&baseGetTag(value)==symbolTag}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]};var lt=createRelationalOperation(baseLt),lte=createRelationalOperation((function(value,other){return value<=other}));function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?stringToArray(value):copyArray(value);if(symIterator&&value[symIterator])return function iteratorToArray(iterator){for(var data,result=[];!(data=iterator.next()).done;)result.push(data.value);return result}(value[symIterator]());var tag=getTag(value);return(tag==mapTag?mapToArray:tag==setTag?setToArray:values)(value)}function toFinite(value){return value?Infinity===(value=toNumber(value))||-Infinity===value?17976931348623157e292*(value<0?-1:1):value==value?value:0:0===value?value:0}function toInteger(value){var result=toFinite(value),remainder=result%1;return result==result?remainder?result-remainder:result:0}function toLength(value){return value?baseClamp(toInteger(value),0,4294967295):0}function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toString(value){return null==value?"":baseToString(value)}var assign=createAssigner((function(object,source){if(isPrototype(source)||isArrayLike(source))copyObject(source,keys(source),object);else for(var key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,source[key])})),assignIn=createAssigner((function(object,source){copyObject(source,keysIn(source),object)})),assignInWith=createAssigner((function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)})),assignWith=createAssigner((function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)})),at=flatRest(baseAt);var defaults=baseRest((function(object,sources){object=Object(object);var index=-1,length=sources.length,guard=length>2?sources[2]:undefined;for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index1),path})),copyObject(object,getAllKeysIn(object),result),isDeep&&(result=baseClone(result,7,customOmitClone));for(var length=paths.length;length--;)baseUnset(result,paths[length]);return result}));var pick=flatRest((function(object,paths){return null==object?{}:function basePick(object,paths){return basePickBy(object,paths,(function(value,path){return hasIn(object,path)}))}(object,paths)}));function pickBy(object,predicate){if(null==object)return{};var props=arrayMap(getAllKeysIn(object),(function(prop){return[prop]}));return predicate=getIteratee(predicate),basePickBy(object,props,(function(value,path){return predicate(value,path[0])}))}var toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn);function values(object){return null==object?[]:baseValues(object,keys(object))}var camelCase=createCompounder((function(result,word,index){return word=word.toLowerCase(),result+(index?capitalize(word):word)}));function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return(string=toString(string))&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}var kebabCase=createCompounder((function(result,word,index){return result+(index?"-":"")+word.toLowerCase()})),lowerCase=createCompounder((function(result,word,index){return result+(index?" ":"")+word.toLowerCase()})),lowerFirst=createCaseFirst("toLowerCase");var snakeCase=createCompounder((function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}));var startCase=createCompounder((function(result,word,index){return result+(index?" ":"")+upperFirst(word)}));var upperCase=createCompounder((function(result,word,index){return result+(index?" ":"")+word.toUpperCase()})),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),(pattern=guard?undefined:pattern)===undefined?function hasUnicodeWord(string){return reHasUnicodeWord.test(string)}(string)?function unicodeWords(string){return string.match(reUnicodeWord)||[]}(string):function asciiWords(string){return string.match(reAsciiWord)||[]}(string):string.match(pattern)||[]}var attempt=baseRest((function(func,args){try{return apply(func,undefined,args)}catch(e){return isError(e)?e:new Error(e)}})),bindAll=flatRest((function(object,methodNames){return arrayEach(methodNames,(function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))})),object}));function constant(value){return function(){return value}}var flow=createFlow(),flowRight=createFlow(!0);function identity(value){return value}function iteratee(func){return baseIteratee("function"==typeof func?func:baseClone(func,1))}var method=baseRest((function(path,args){return function(object){return baseInvoke(object,path,args)}})),methodOf=baseRest((function(object,args){return function(path){return baseInvoke(object,path,args)}}));function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);null!=options||isObject(source)&&(methodNames.length||!props.length)||(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain=!(isObject(options)&&"chain"in options&&!options.chain),isFunc=isFunction(object);return arrayEach(methodNames,(function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__);return(result.__actions__=copyArray(this.__actions__)).push({func,args:arguments,thisArg:object}),result.__chain__=chainAll,result}return func.apply(object,arrayPush([this.value()],arguments))})})),object}function noop(){}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):function basePropertyDeep(path){return function(object){return baseGet(object,path)}}(path)}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var add=createMathOperation((function(augend,addend){return augend+addend}),0),ceil=createRound("ceil"),divide=createMathOperation((function(dividend,divisor){return dividend/divisor}),1),floor=createRound("floor");var source,multiply=createMathOperation((function(multiplier,multiplicand){return multiplier*multiplicand}),1),round=createRound("round"),subtract=createMathOperation((function(minuend,subtrahend){return minuend-subtrahend}),0);return lodash.after=function after(n,func){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){if(--n<1)return func.apply(this,arguments)}},lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=function castArray(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]},lodash.chain=chain,lodash.chunk=function chunk(array,size,guard){size=(guard?isIterateeCall(array,size,guard):size===undefined)?1:nativeMax(toInteger(size),0);var length=null==array?0:array.length;if(!length||size<1)return[];for(var index=0,resIndex=0,result=Array(nativeCeil(length/size));indexlength?0:length+start),(end=end===undefined||end>length?length:toInteger(end))<0&&(end+=length),end=start>end?0:toLength(end);start>>0)?(string=toString(string))&&("string"==typeof separator||null!=separator&&!isRegExp(separator))&&!(separator=baseToString(separator))&&hasUnicode(string)?castSlice(stringToArray(string),0,limit):string.split(separator,limit):[]},lodash.spread=function spread(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=null==start?0:nativeMax(toInteger(start),0),baseRest((function(args){var array=args[start],otherArgs=castSlice(args,0,start);return array&&arrayPush(otherArgs,array),apply(func,this,otherArgs)}))},lodash.tail=function tail(array){var length=null==array?0:array.length;return length?baseSlice(array,1,length):[]},lodash.take=function take(array,n,guard){return array&&array.length?baseSlice(array,0,(n=guard||n===undefined?1:toInteger(n))<0?0:n):[]},lodash.takeRight=function takeRight(array,n,guard){var length=null==array?0:array.length;return length?baseSlice(array,(n=length-(n=guard||n===undefined?1:toInteger(n)))<0?0:n,length):[]},lodash.takeRightWhile=function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]},lodash.takeWhile=function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]},lodash.tap=function tap(value,interceptor){return interceptor(value),value},lodash.throttle=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading,maxWait:wait,trailing})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);if(iteratee=getIteratee(iteratee,4),null==accumulator){var Ctor=object&&object.constructor;accumulator=isArrLike?isArr?new Ctor:[]:isObject(object)&&isFunction(Ctor)?baseCreate(getPrototype(object)):{}}return(isArrLike?arrayEach:baseForOwn)(object,(function(value,index,object){return iteratee(accumulator,value,index,object)})),accumulator},lodash.unary=function unary(func){return ary(func,1)},lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=function uniq(array){return array&&array.length?baseUniq(array):[]},lodash.uniqBy=function uniqBy(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[]},lodash.uniqWith=function uniqWith(array,comparator){return comparator="function"==typeof comparator?comparator:undefined,array&&array.length?baseUniq(array,undefined,comparator):[]},lodash.unset=function unset(object,path){return null==object||baseUnset(object,path)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(object,path,updater){return null==object?object:baseUpdate(object,path,castFunction(updater))},lodash.updateWith=function updateWith(object,path,updater,customizer){return customizer="function"==typeof customizer?customizer:undefined,null==object?object:baseUpdate(object,path,castFunction(updater),customizer)},lodash.values=values,lodash.valuesIn=function valuesIn(object){return null==object?[]:baseValues(object,keysIn(object))},lodash.without=without,lodash.words=words,lodash.wrap=function wrap(value,wrapper){return partial(castFunction(wrapper),value)},lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=function zipObject(props,values){return baseZipObject(props||[],values||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(props,values){return baseZipObject(props||[],values||[],baseSet)},lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=function clamp(number,lower,upper){return upper===undefined&&(upper=lower,lower=undefined),upper!==undefined&&(upper=(upper=toNumber(upper))==upper?upper:0),lower!==undefined&&(lower=(lower=toNumber(lower))==lower?lower:0),baseClamp(toNumber(number),lower,upper)},lodash.clone=function clone(value){return baseClone(value,4)},lodash.cloneDeep=function cloneDeep(value){return baseClone(value,5)},lodash.cloneDeepWith=function cloneDeepWith(value,customizer){return baseClone(value,5,customizer="function"==typeof customizer?customizer:undefined)},lodash.cloneWith=function cloneWith(value,customizer){return baseClone(value,4,customizer="function"==typeof customizer?customizer:undefined)},lodash.conformsTo=function conformsTo(object,source){return null==source||baseConformsTo(object,source,keys(source))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(value,defaultValue){return null==value||value!=value?defaultValue:value},lodash.divide=divide,lodash.endsWith=function endsWith(string,target,position){string=toString(string),target=baseToString(target);var length=string.length,end=position=position===undefined?length:baseClamp(toInteger(position),0,length);return(position-=target.length)>=0&&string.slice(position,end)==target},lodash.eq=eq,lodash.escape=function escape(string){return(string=toString(string))&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string},lodash.escapeRegExp=function escapeRegExp(string){return(string=toString(string))&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string},lodash.every=function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined),func(collection,getIteratee(predicate,3))},lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn)},lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)},lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(object,iteratee){return null==object?object:baseFor(object,getIteratee(iteratee,3),keysIn)},lodash.forInRight=function forInRight(object,iteratee){return null==object?object:baseForRight(object,getIteratee(iteratee,3),keysIn)},lodash.forOwn=function forOwn(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3))},lodash.forOwnRight=function forOwnRight(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3))},lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=function has(object,path){return null!=object&&hasPath(object,path,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection),fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;return fromIndex<0&&(fromIndex=nativeMax(length+fromIndex,0)),isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1},lodash.indexOf=function indexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=null==fromIndex?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseIndexOf(array,value,index)},lodash.inRange=function inRange(number,start,end){return start=toFinite(start),end===undefined?(end=start,start=0):end=toFinite(end),function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number=-9007199254740991&&value<=9007199254740991},lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=function isUndefined(value){return value===undefined},lodash.isWeakMap=function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag},lodash.isWeakSet=function isWeakSet(value){return isObjectLike(value)&&"[object WeakSet]"==baseGetTag(value)},lodash.join=function join(array,separator){return null==array?"":nativeJoin.call(array,separator)},lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length;return fromIndex!==undefined&&(index=(index=toInteger(fromIndex))<0?nativeMax(length+index,0):nativeMin(index,length-1)),value==value?function strictLastIndexOf(array,value,fromIndex){for(var index=fromIndex+1;index--;)if(array[index]===value)return index;return index}(array,value,index):baseFindIndex(array,baseIsNaN,index,!0)},lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined},lodash.maxBy=function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined},lodash.mean=function mean(array){return baseMean(array,identity)},lodash.meanBy=function meanBy(array,iteratee){return baseMean(array,getIteratee(iteratee,2))},lodash.min=function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined},lodash.minBy=function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=multiply,lodash.nth=function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined},lodash.noConflict=function noConflict(){return root._===this&&(root._=oldDash),this},lodash.noop=noop,lodash.now=now,lodash.pad=function pad(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;if(!length||strLength>=length)return string;var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars)},lodash.padEnd=function padEnd(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLengthupper){var temp=lower;lower=upper,upper=temp}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper)}return baseRandom(lower,upper)},lodash.reduce=function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach)},lodash.reduceRight=function reduceRight(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight)},lodash.repeat=function repeat(string,n,guard){return n=(guard?isIterateeCall(string,n,guard):n===undefined)?1:toInteger(n),baseRepeat(toString(string),n)},lodash.replace=function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2])},lodash.result=function result(object,path,defaultValue){var index=-1,length=(path=castPath(path,object)).length;for(length||(length=1,object=undefined);++index9007199254740991)return[];var index=4294967295,length=nativeMin(n,4294967295);n-=4294967295;for(var result=baseTimes(length,iteratee=getIteratee(iteratee));++index=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined)return result+omission;if(strSymbols&&(end+=result.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;for(separator.global||(separator=RegExp(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result=result.slice(0,newEnd===undefined?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);index>-1&&(result=result.slice(0,index))}return result+omission},lodash.unescape=function unescape(string){return(string=toString(string))&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string},lodash.uniqueId=function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id},lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(source={},baseForOwn(lodash,(function(func,methodName){hasOwnProperty.call(lodash.prototype,methodName)||(source[methodName]=func)})),source),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(methodName){lodash[methodName].placeholder=lodash})),arrayEach(["drop","take"],(function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result.__filtered__?result.__takeCount__=nativeMin(n,result.__takeCount__):result.__views__.push({size:nativeMin(n,4294967295),type:methodName+(result.__dir__<0?"Right":"")}),result},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(methodName,index){var type=index+1,isFilter=1==type||3==type;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();return result.__iteratees__.push({iteratee:getIteratee(iteratee,3),type}),result.__filtered__=result.__filtered__||isFilter,result}})),arrayEach(["head","last"],(function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}})),arrayEach(["initial","tail"],(function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest((function(path,args){return"function"==typeof path?new LazyWrapper(this):this.map((function(value){return baseInvoke(value,path,args)}))})),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;return result.__filtered__&&(start>0||end<0)?new LazyWrapper(result):(start<0?result=result.takeRight(-start):start&&(result=result.drop(start)),end!==undefined&&(result=(end=toInteger(end))<0?result.dropRight(-end):result.take(end-start)),result)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(4294967295)},baseForOwn(LazyWrapper.prototype,(function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+("last"==methodName?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);lodashFunc&&(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value),interceptor=function(value){var result=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?result[0]:result};useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);return result.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(result,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result=this.thru(interceptor),isUnwrapped?isTaker?result.value()[0]:result.value():result)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName]((function(value){return func.apply(isArray(value)?value:[],args)}))}})),baseForOwn(LazyWrapper.prototype,(function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}})),realNames[createHybrid(undefined,2).name]=[{name:"wrapper",func:undefined}],LazyWrapper.prototype.clone=function lazyClone(){var result=new LazyWrapper(this.__wrapped__);return result.__actions__=copyArray(this.__actions__),result.__dir__=this.__dir__,result.__filtered__=this.__filtered__,result.__iteratees__=copyArray(this.__iteratees__),result.__takeCount__=this.__takeCount__,result.__views__=copyArray(this.__views__),result},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1,result.__filtered__=!0}else(result=this.clone()).__dir__*=-1;return result},LazyWrapper.prototype.value=function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=function getView(start,end,transforms){var index=-1,length=transforms.length;for(;++index=this.__values__.length;return{done,value:done?undefined:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0,clone.__values__=undefined,result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}return previous.__wrapped__=value,result},lodash.prototype.reverse=function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),(wrapped=wrapped.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=function wrapperToIterator(){return this}),lodash}();root._=_,(__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module))===undefined||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}.call(this)},"./node_modules/lodash/lodash.min.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;module=__webpack_require__.nmd(module),function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function L(n,t){for(var r=n.length;r--&&y(t,n[r],0)>-1;);return r}function U(n){return"\\"+Yr[n]}function T(n){return Nr.test(n)}function $(n){return Pr.test(n)}function M(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function F(n,t){return function(r){return n(t(r))}}function N(n,t){for(var r=-1,e=n.length,u=0,i=[];++r"']/g,jt=RegExp(mt.source),At=RegExp(xt.source),kt=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(St.source),Lt=/^\s+/,Ct=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,$t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/[()=,{}\[\]\/\s]/,Mt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Yt="\\ud800-\\udfff",tr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rr="\\u2700-\\u27bf",er="a-z\\xdf-\\xf6\\xf8-\\xff",cr="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",lr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sr="['’]",hr="["+Yt+"]",pr="["+lr+"]",_r="["+tr+"]",vr="\\d+",gr="["+rr+"]",yr="["+er+"]",dr="[^"+Yt+lr+vr+rr+er+cr+"]",br="\\ud83c[\\udffb-\\udfff]",mr="[^"+Yt+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ar="["+cr+"]",Or="(?:"+yr+"|"+dr+")",Ir="(?:"+Ar+"|"+dr+")",Rr="(?:['’](?:d|ll|m|re|s|t|ve))?",zr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Er="(?:"+_r+"|"+br+")"+"?",Sr="["+ar+"]?",Ur=Sr+Er+("(?:\\u200d(?:"+[mr,xr,jr].join("|")+")"+Sr+Er+")*"),Br="(?:"+[gr,xr,jr].join("|")+")"+Ur,Tr="(?:"+[mr+_r+"?",_r,xr,jr,hr].join("|")+")",$r=RegExp(sr,"g"),Dr=RegExp(_r,"g"),Mr=RegExp(br+"(?="+br+")|"+Tr+Ur,"g"),Fr=RegExp([Ar+"?"+yr+"+"+Rr+"(?="+[pr,Ar,"$"].join("|")+")",Ir+"+"+zr+"(?="+[pr,Ar+Or,"$"].join("|")+")",Ar+"?"+Or+"+"+Rr,Ar+"+"+zr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vr,Br].join("|"),"g"),Nr=RegExp("[\\u200d"+Yt+tr+ar+"]"),Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zr=-1,Kr={};Kr[at]=Kr[lt]=Kr[st]=Kr[ht]=Kr[pt]=Kr[_t]=Kr[vt]=Kr[gt]=Kr[yt]=!0,Kr[Dn]=Kr[Mn]=Kr[ft]=Kr[Nn]=Kr[ct]=Kr[Pn]=Kr[Zn]=Kr[Kn]=Kr[Gn]=Kr[Hn]=Kr[Yn]=Kr[nt]=Kr[tt]=Kr[rt]=Kr[it]=!1;var Vr={};Vr[Dn]=Vr[Mn]=Vr[ft]=Vr[ct]=Vr[Nn]=Vr[Pn]=Vr[at]=Vr[lt]=Vr[st]=Vr[ht]=Vr[pt]=Vr[Gn]=Vr[Hn]=Vr[Yn]=Vr[nt]=Vr[tt]=Vr[rt]=Vr[et]=Vr[_t]=Vr[vt]=Vr[gt]=Vr[yt]=!0,Vr[Zn]=Vr[Kn]=Vr[it]=!1;var Yr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qr=parseFloat,Xr=parseInt,ne="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,te="object"==typeof self&&self&&self.Object===Object&&self,re=ne||te||Function("return this")(),ee=exports&&!exports.nodeType&&exports,ue=ee&&module&&!module.nodeType&&module,ie=ue&&ue.exports===ee,oe=ie&&ne.process,fe=function(){try{var n=ue&&ue.require&&ue.require("util").types;return n||oe&&oe.binding&&oe.binding("util")}catch(n){}}(),ce=fe&&fe.isArrayBuffer,ae=fe&&fe.isDate,le=fe&&fe.isMap,se=fe&&fe.isRegExp,he=fe&&fe.isSet,pe=fe&&fe.isTypedArray,_e=m("length"),ve=x({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ge=x({"&":"&","<":"<",">":">",'"':""","'":"'"}),ye=x({"&":"&","<":"<",">":">",""":'"',"'":"'"}),be=function p(x){function Z(n){if(cc(n)&&!bh(n)&&!(n instanceof Ct)){if(n instanceof Y)return n;if(bl.call(n,"__wrapped__"))return eo(n)}return new Y(n)}function J(){}function Y(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=X}function Ct(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Un,this.__views__=[]}function Xt(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function Fr(n,t,e,u,i,o){var f,c=1&t,a=2&t,l=4&t;if(e&&(f=i?e(n,u,i,o):e(n)),f!==X)return f;if(!fc(n))return n;var s=bh(n);if(s){if(f=function zi(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&bl.call(n,"index")&&(r.index=n.index,r.input=n.input),r}(n),!c)return Tu(n,f)}else{var h=zs(n),p=h==Kn||h==Vn;if(mh(n))return Iu(n,c);if(h==Yn||h==Dn||p&&!i){if(f=a||p?{}:Ei(n),!c)return a?function Mu(n,t){return $u(n,Rs(n),t)}(n,function Ur(n,t){return n&&$u(t,qc(t),n)}(f,n)):function Du(n,t){return $u(n,Is(n),t)}(n,Cr(f,n))}else{if(!Vr[h])return i?n:{};f=function Si(n,t,r){var e=n.constructor;switch(t){case ft:return Ru(n);case Nn:case Pn:return new e(+n);case ct:return function zu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.byteLength)}(n,r);case at:case lt:case st:case ht:case pt:case _t:case vt:case gt:case yt:return Wu(n,r);case Gn:return new e;case Hn:case rt:return new e(n);case nt:return function Eu(n){var t=new n.constructor(n.source,Nt.exec(n));return t.lastIndex=n.lastIndex,t}(n);case tt:return new e;case et:return function Su(n){return _s?ll(_s.call(n)):{}}(n)}}(n,h,c)}}o||(o=new wr);var _=o.get(n);if(_)return _;o.set(n,f),kh(n)?n.forEach((function(r){f.add(Fr(r,t,e,r,n,o))})):jh(n)&&n.forEach((function(r,u){f.set(u,Fr(r,t,e,u,n,o))}));var g=s?X:(l?a?di:yi:a?qc:Pc)(n);return r(g||n,(function(r,u){g&&(r=n[u=r]),Sr(f,u,Fr(r,t,e,u,n,o))})),f}function Pr(n,t,r){var e=r.length;if(null==n)return!e;for(n=ll(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===X&&!(u in n)||!i(o))return!1}return!0}function Gr(n,t,r){if("function"!=typeof n)throw new pl(en);return Ws((function(){n.apply(X,r)}),t)}function Hr(n,t,r,e){var u=-1,i=o,a=!0,l=n.length,s=[],h=t.length;if(!l)return s;r&&(t=c(t,z(r))),e?(i=f,a=!1):t.length>=200&&(i=S,a=!1,t=new yr(t));n:for(;++u0&&r(f)?t>1?ee(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function ue(n,t){return n&&bs(n,t,Pc)}function oe(n,t){return n&&ws(n,t,Pc)}function fe(n,t){return i(t,(function(t){return uc(n[t])}))}function _e(n,t){for(var r=0,e=(t=ku(t,n)).length;null!=n&&rt}function xe(n,t){return null!=n&&bl.call(n,t)}function je(n,t){return null!=n&&t in ll(n)}function ke(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=il(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,z(t))),s=Hl(p.length,s),l[a]=!r&&(t||u>=120&&p.length>=120)?new yr(a&&p):X}p=n[0];var _=-1,v=l[0];n:for(;++_=f?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ye(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Ll.call(f,a,1),Ll.call(n,a,1);return n}function nu(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Ci(u)?Ll.call(n,u,1):yu(n,u)}}return n}function tu(n,t){return n+Nl(Ql()*(t-n+1))}function eu(n,t){var r="";if(!n||t<1||t>Wn)return r;do{t%2&&(r+=n),(t=Nl(t/2))&&(n+=n)}while(t);return r}function uu(n,t){return Ls(Vi(n,t,La),n+"")}function iu(n){return Ir(ra(n))}function ou(n,t){var r=ra(n);return Xi(r,Mr(t,0,r.length))}function fu(n,t,r,e){if(!fc(n))return n;for(var u=-1,i=(t=ku(t,n)).length,o=i-1,f=n;null!=f&&++uu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=il(u);++e>>1,o=n[i];null!==o&&!bc(o)&&(r?o<=t:o=200){var s=t?null:ks(n);if(s)return P(s);c=!1,u=S,l=new yr}else l=t?[]:a;n:for(;++e=e?n:au(n,t,r)}function Iu(n,t){if(t)return n.slice();var r=n.length,e=zl?zl(r):new n.constructor(r);return n.copy(e),e}function Ru(n){var t=new n.constructor(n.byteLength);return new Rl(t).set(new Rl(n)),t}function Wu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.length)}function Lu(n,t){if(n!==t){var r=n!==X,e=null===n,u=n==n,i=bc(n),o=t!==X,f=null===t,c=t==t,a=bc(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n1?r[u-1]:X,o=u>2?r[2]:X;for(i=n.length>3&&"function"==typeof i?(u--,i):X,o&&Ui(r[0],r[1],o)&&(i=u<3?X:i,u=1),t=ll(t);++e-1?u[i?t[o]:o]:X}}function Yu(n){return gi((function(t){var r=t.length,e=r,u=Y.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if("function"!=typeof i)throw new pl(en);if(u&&!o&&"wrapper"==bi(i))var o=new Y([],!0)}for(e=o?e:r;++e1&&d.reverse(),s&&cf))return!1;var a=i.get(n),l=i.get(t);if(a&&l)return a==t&&l==n;var s=-1,p=!0,_=2&r?new yr:X;for(i.set(n,t),i.set(t,n);++s-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(Ut,"{\n/* [wrapped with "+t+"] */\n")}(e,ro(function Ii(n){var t=n.match(Bt);return t?t[1].split(Tt):[]}(e),r)))}function Qi(n){var t=0,r=0;return function(){var e=Jl(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(X,arguments)}}function Xi(n,t){var r=-1,e=n.length,u=e-1;for(t=t===X?e:t;++r0&&(r=t.apply(this,arguments)),n<=1&&(t=X),r}}function Wf(n,t,r){function e(t){var r=h,e=p;return h=p=X,d=t,v=n.apply(e,r)}function o(n){var r=n-y;return y===X||r>=t||r<0||w&&n-d>=_}function f(){var n=fh();return o(n)?c(n):(g=Ws(f,function i(n){var u=t-(n-y);return w?Hl(u,_-(n-d)):u}(n)),X)}function c(n){return g=X,m&&h?e(n):(h=p=X,v)}function s(){var n=fh(),r=o(n);if(h=arguments,p=this,y=n,r){if(g===X)return function u(n){return d=n,g=Ws(f,t),b?e(n):v}(y);if(w)return As(g),g=Ws(f,t),e(y)}return g===X&&(g=Ws(f,t)),v}var h,p,_,v,g,y,d=0,b=!1,w=!1,m=!0;if("function"!=typeof n)throw new pl(en);return t=Ic(t)||0,fc(r)&&(b=!!r.leading,_=(w="maxWait"in r)?Gl(Ic(r.maxWait)||0,t):_,m="trailing"in r?!!r.trailing:m),s.cancel=function a(){g!==X&&As(g),d=0,h=y=p=g=X},s.flush=function l(){return g===X?v:c(fh())},s}function Cf(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new pl(en);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Cf.Cache||sr),r}function Uf(n){if("function"!=typeof n)throw new pl(en);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Gf(n,t){return n===t||n!=n&&t!=t}function Hf(n){return null!=n&&oc(n.length)&&!uc(n)}function Jf(n){return cc(n)&&Hf(n)}function rc(n){if(!cc(n))return!1;var t=we(n);return t==Zn||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!gc(n)}function uc(n){if(!fc(n))return!1;var t=we(n);return t==Kn||t==Vn||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ic(n){return"number"==typeof n&&n==kc(n)}function oc(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=Wn}function fc(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function cc(n){return null!=n&&"object"==typeof n}function vc(n){return"number"==typeof n||cc(n)&&we(n)==Hn}function gc(n){if(!cc(n)||we(n)!=Yn)return!1;var t=El(n);if(null===t)return!0;var r=bl.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&dl.call(r)==jl}function dc(n){return"string"==typeof n||!bh(n)&&cc(n)&&we(n)==rt}function bc(n){return"symbol"==typeof n||cc(n)&&we(n)==et}function jc(n){if(!n)return[];if(Hf(n))return dc(n)?G(n):Tu(n);if(Ul&&n[Ul])return function D(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Ul]());var t=zs(n);return(t==Gn?M:t==tt?P:ra)(n)}function Ac(n){return n?(n=Ic(n))===Sn||n===-Sn?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function kc(n){var t=Ac(n),r=t%1;return t==t?r?t-r:t:0}function Oc(n){return n?Mr(kc(n),0,Un):0}function Ic(n){if("number"==typeof n)return n;if(bc(n))return Cn;if(fc(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=fc(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=R(n);var r=qt.test(n);return r||Kt.test(n)?Xr(n.slice(2),r?2:8):Pt.test(n)?Cn:+n}function Rc(n){return $u(n,qc(n))}function Ec(n){return null==n?"":vu(n)}function Mc(n,t,r){var e=null==n?X:_e(n,t);return e===X?r:e}function Nc(n,t){return null!=n&&Ri(n,t,je)}function Pc(n){return Hf(n)?Or(n):Me(n)}function qc(n){return Hf(n)?Or(n,!0):Fe(n)}function Gc(n,t){if(null==n)return{};var r=c(di(n),(function(n){return[n]}));return t=mi(t),Ye(n,r,(function(n,r){return t(n,r[0])}))}function ra(n){return null==n?[]:E(n,Pc(n))}function fa(n){return Qh(Ec(n).toLowerCase())}function ca(n){return(n=Ec(n))&&n.replace(Gt,ve).replace(Dr,"")}function Ra(n,t,r){return n=Ec(n),(t=r?X:t)===X?$(n)?Q(n):_(n):n.match(t)||[]}function Sa(n){return function(){return n}}function La(n){return n}function Ca(n){return De("function"==typeof n?n:Fr(n,1))}function Ta(n,t,e){var u=Pc(t),i=fe(t,u);null!=e||fc(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=fe(t,Pc(t)));var o=!(fc(e)&&"chain"in e&&!e.chain),f=uc(n);return r(i,(function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Tu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})})),n}function Da(){}function Fa(n){return Bi(n)?m(no(n)):function Qe(n){return function(t){return _e(t,n)}}(n)}function Pa(){return[]}function qa(){return!1}var il=(x=null==x?re:be.defaults(re.Object(),x,be.pick(re,qr))).Array,ol=x.Date,fl=x.Error,cl=x.Function,al=x.Math,ll=x.Object,sl=x.RegExp,hl=x.String,pl=x.TypeError,_l=il.prototype,vl=cl.prototype,gl=ll.prototype,yl=x["__core-js_shared__"],dl=vl.toString,bl=gl.hasOwnProperty,wl=0,ml=function(){var n=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),xl=gl.toString,jl=dl.call(ll),Al=re._,kl=sl("^"+dl.call(bl).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ol=ie?x.Buffer:X,Il=x.Symbol,Rl=x.Uint8Array,zl=Ol?Ol.allocUnsafe:X,El=F(ll.getPrototypeOf,ll),Sl=ll.create,Wl=gl.propertyIsEnumerable,Ll=_l.splice,Cl=Il?Il.isConcatSpreadable:X,Ul=Il?Il.iterator:X,Bl=Il?Il.toStringTag:X,Tl=function(){try{var n=Ai(ll,"defineProperty");return n({},"",{}),n}catch(n){}}(),$l=x.clearTimeout!==re.clearTimeout&&x.clearTimeout,Dl=ol&&ol.now!==re.Date.now&&ol.now,Ml=x.setTimeout!==re.setTimeout&&x.setTimeout,Fl=al.ceil,Nl=al.floor,Pl=ll.getOwnPropertySymbols,ql=Ol?Ol.isBuffer:X,Zl=x.isFinite,Kl=_l.join,Vl=F(ll.keys,ll),Gl=al.max,Hl=al.min,Jl=ol.now,Yl=x.parseInt,Ql=al.random,Xl=_l.reverse,ns=Ai(x,"DataView"),ts=Ai(x,"Map"),rs=Ai(x,"Promise"),es=Ai(x,"Set"),us=Ai(x,"WeakMap"),is=Ai(ll,"create"),os=us&&new us,fs={},cs=to(ns),as=to(ts),ls=to(rs),ss=to(es),hs=to(us),ps=Il?Il.prototype:X,_s=ps?ps.valueOf:X,vs=ps?ps.toString:X,gs=function(){function n(){}return function(t){if(!fc(t))return{};if(Sl)return Sl(t);n.prototype=t;var r=new n;return n.prototype=X,r}}();Z.templateSettings={escape:kt,evaluate:Ot,interpolate:It,variable:"",imports:{_:Z}},Z.prototype=J.prototype,Z.prototype.constructor=Z,Y.prototype=gs(J.prototype),Y.prototype.constructor=Y,Ct.prototype=gs(J.prototype),Ct.prototype.constructor=Ct,Xt.prototype.clear=function nr(){this.__data__=is?is(null):{},this.size=0},Xt.prototype.delete=function tr(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Xt.prototype.get=function rr(n){var t=this.__data__;if(is){var r=t[n];return r===on?X:r}return bl.call(t,n)?t[n]:X},Xt.prototype.has=function er(n){var t=this.__data__;return is?t[n]!==X:bl.call(t,n)},Xt.prototype.set=function ur(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=is&&t===X?on:t,this},ir.prototype.clear=function or(){this.__data__=[],this.size=0},ir.prototype.delete=function fr(n){var t=this.__data__,r=Wr(t,n);return!(r<0||(r==t.length-1?t.pop():Ll.call(t,r,1),--this.size,0))},ir.prototype.get=function cr(n){var t=this.__data__,r=Wr(t,n);return r<0?X:t[r][1]},ir.prototype.has=function ar(n){return Wr(this.__data__,n)>-1},ir.prototype.set=function lr(n,t){var r=this.__data__,e=Wr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},sr.prototype.clear=function hr(){this.size=0,this.__data__={hash:new Xt,map:new(ts||ir),string:new Xt}},sr.prototype.delete=function pr(n){var t=xi(this,n).delete(n);return this.size-=t?1:0,t},sr.prototype.get=function _r(n){return xi(this,n).get(n)},sr.prototype.has=function vr(n){return xi(this,n).has(n)},sr.prototype.set=function gr(n,t){var r=xi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},yr.prototype.add=yr.prototype.push=function dr(n){return this.__data__.set(n,on),this},yr.prototype.has=function br(n){return this.__data__.has(n)},wr.prototype.clear=function mr(){this.__data__=new ir,this.size=0},wr.prototype.delete=function xr(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},wr.prototype.get=function jr(n){return this.__data__.get(n)},wr.prototype.has=function Ar(n){return this.__data__.has(n)},wr.prototype.set=function kr(n,t){var r=this.__data__;if(r instanceof ir){var e=r.__data__;if(!ts||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new sr(e)}return r.set(n,t),this.size=r.size,this};var ys=Pu(ue),ds=Pu(oe,!0),bs=qu(),ws=qu(!0),ms=os?function(n,t){return os.set(n,t),n}:La,xs=Tl?function(n,t){return Tl(n,"toString",{configurable:!0,enumerable:!1,value:Sa(t),writable:!0})}:La,js=uu,As=$l||function(n){return re.clearTimeout(n)},ks=es&&1/P(new es([,-0]))[1]==Sn?function(n){return new es(n)}:Da,Os=os?function(n){return os.get(n)}:Da,Is=Pl?function(n){return null==n?[]:(n=ll(n),i(Pl(n),(function(t){return Wl.call(n,t)})))}:Pa,Rs=Pl?function(n){for(var t=[];n;)a(t,Is(n)),n=El(n);return t}:Pa,zs=we;(ns&&zs(new ns(new ArrayBuffer(1)))!=ct||ts&&zs(new ts)!=Gn||rs&&zs(rs.resolve())!=Qn||es&&zs(new es)!=tt||us&&zs(new us)!=it)&&(zs=function(n){var t=we(n),r=t==Yn?n.constructor:X,e=r?to(r):"";if(e)switch(e){case cs:return ct;case as:return Gn;case ls:return Qn;case ss:return tt;case hs:return it}return t});var Es=yl?uc:qa,Ss=Qi(ms),Ws=Ml||function(n,t){return re.setTimeout(n,t)},Ls=Qi(xs),Cs=function Pi(n){var t=Cf(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(Et,(function(n,r,e,u){t.push(e?u.replace(Mt,"$1"):r||n)})),t})),Us=uu((function(n,t){return Jf(n)?Hr(n,ee(t,1,Jf,!0)):[]})),Bs=uu((function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),mi(r,2)):[]})),Ts=uu((function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),X,r):[]})),$s=uu((function(n){var t=c(n,ju);return t.length&&t[0]===n[0]?ke(t):[]})),Ds=uu((function(n){var t=jo(n),r=c(n,ju);return t===jo(r)?t=X:r.pop(),r.length&&r[0]===n[0]?ke(r,mi(t,2)):[]})),Ms=uu((function(n){var t=jo(n),r=c(n,ju);return(t="function"==typeof t?t:X)&&r.pop(),r.length&&r[0]===n[0]?ke(r,X,t):[]})),Fs=uu(Oo),Ns=gi((function(n,t){var r=null==n?0:n.length,e=Tr(n,t);return nu(n,c(t,(function(n){return Ci(n,r)?+n:n})).sort(Lu)),e})),Ps=uu((function(n){return gu(ee(n,1,Jf,!0))})),qs=uu((function(n){var t=jo(n);return Jf(t)&&(t=X),gu(ee(n,1,Jf,!0),mi(t,2))})),Zs=uu((function(n){var t=jo(n);return t="function"==typeof t?t:X,gu(ee(n,1,Jf,!0),X,t)})),Ks=uu((function(n,t){return Jf(n)?Hr(n,t):[]})),Vs=uu((function(n){return mu(i(n,Jf))})),Gs=uu((function(n){var t=jo(n);return Jf(t)&&(t=X),mu(i(n,Jf),mi(t,2))})),Hs=uu((function(n){var t=jo(n);return t="function"==typeof t?t:X,mu(i(n,Jf),X,t)})),Js=uu(Go),Ys=uu((function(n){var t=n.length,r=t>1?n[t-1]:X;return r="function"==typeof r?(n.pop(),r):X,Ho(n,r)})),Qs=gi((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return Tr(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Ct&&Ci(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:nf,args:[u],thisArg:X}),new Y(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(X),n}))):this.thru(u)})),Xs=Fu((function(n,t,r){bl.call(n,r)?++n[r]:Br(n,r,1)})),nh=Ju(ho),th=Ju(po),rh=Fu((function(n,t,r){bl.call(n,r)?n[r].push(t):Br(n,r,[t])})),eh=uu((function(t,r,e){var u=-1,i="function"==typeof r,o=Hf(t)?il(t.length):[];return ys(t,(function(t){o[++u]=i?n(r,t,e):Ie(t,r,e)})),o})),uh=Fu((function(n,t,r){Br(n,r,t)})),ih=Fu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]})),oh=uu((function(n,t){if(null==n)return[];var r=t.length;return r>1&&Ui(n,t[0],t[1])?t=[]:r>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),He(n,ee(t,1),[])})),fh=Dl||function(){return re.Date.now()},ch=uu((function(n,t,r){var e=1;if(r.length){var u=N(r,wi(ch));e|=32}return ai(n,e,t,r,u)})),ah=uu((function(n,t,r){var e=3;if(r.length){var u=N(r,wi(ah));e|=32}return ai(t,e,n,r,u)})),lh=uu((function(n,t){return Gr(n,1,t)})),sh=uu((function(n,t,r){return Gr(n,Ic(t)||0,r)}));Cf.Cache=sr;var hh=js((function(t,r){var e=(r=1==r.length&&bh(r[0])?c(r[0],z(mi())):c(ee(r,1),z(mi()))).length;return uu((function(u){for(var i=-1,o=Hl(u.length,e);++i=t})),dh=Re(function(){return arguments}())?Re:function(n){return cc(n)&&bl.call(n,"callee")&&!Wl.call(n,"callee")},bh=il.isArray,wh=ce?z(ce):function ze(n){return cc(n)&&we(n)==ft},mh=ql||qa,xh=ae?z(ae):function Ee(n){return cc(n)&&we(n)==Pn},jh=le?z(le):function Le(n){return cc(n)&&zs(n)==Gn},Ah=se?z(se):function Be(n){return cc(n)&&we(n)==nt},kh=he?z(he):function Te(n){return cc(n)&&zs(n)==tt},Oh=pe?z(pe):function $e(n){return cc(n)&&oc(n.length)&&!!Kr[we(n)]},Ih=ii(Ne),Rh=ii((function(n,t){return n<=t})),zh=Nu((function(n,t){if(Mi(t)||Hf(t))return $u(t,Pc(t),n),X;for(var r in t)bl.call(t,r)&&Sr(n,r,t[r])})),Eh=Nu((function(n,t){$u(t,qc(t),n)})),Sh=Nu((function(n,t,r,e){$u(t,qc(t),n,e)})),Wh=Nu((function(n,t,r,e){$u(t,Pc(t),n,e)})),Lh=gi(Tr),Ch=uu((function(n,t){n=ll(n);var r=-1,e=t.length,u=e>2?t[2]:X;for(u&&Ui(t[0],t[1],u)&&(e=1);++r1),t})),$u(n,di(n),r),e&&(r=Fr(r,7,hi));for(var u=t.length;u--;)yu(r,t[u]);return r})),Nh=gi((function(n,t){return null==n?{}:function Je(n,t){return Ye(n,t,(function(t,r){return Nc(n,r)}))}(n,t)})),Ph=ci(Pc),qh=ci(qc),Zh=Vu((function(n,t,r){return t=t.toLowerCase(),n+(r?fa(t):t)})),Kh=Vu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Vh=Vu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Gh=Ku("toLowerCase"),Hh=Vu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()})),Jh=Vu((function(n,t,r){return n+(r?" ":"")+Qh(t)})),Yh=Vu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qh=Ku("toUpperCase"),Xh=uu((function(t,r){try{return n(t,X,r)}catch(n){return rc(n)?n:new fl(n)}})),np=gi((function(n,t){return r(t,(function(t){t=no(t),Br(n,t,ch(n[t],n))})),n})),tp=Yu(),rp=Yu(!0),ep=uu((function(n,t){return function(r){return Ie(r,n,t)}})),up=uu((function(n,t){return function(r){return Ie(n,r,t)}})),ip=ti(c),op=ti(u),fp=ti(h),cp=ui(),ap=ui(!0),lp=ni((function(n,t){return n+t}),0),sp=fi("ceil"),hp=ni((function(n,t){return n/t}),1),pp=fi("floor"),_p=ni((function(n,t){return n*t}),1),vp=fi("round"),gp=ni((function(n,t){return n-t}),0);return Z.after=function If(n,t){if("function"!=typeof t)throw new pl(en);return n=kc(n),function(){if(--n<1)return t.apply(this,arguments)}},Z.ary=Rf,Z.assign=zh,Z.assignIn=Eh,Z.assignInWith=Sh,Z.assignWith=Wh,Z.at=Lh,Z.before=zf,Z.bind=ch,Z.bindAll=np,Z.bindKey=ah,Z.castArray=function Nf(){if(!arguments.length)return[];var n=arguments[0];return bh(n)?n:[n]},Z.chain=Qo,Z.chunk=function uo(n,t,r){t=(r?Ui(n,t,r):t===X)?1:Gl(kc(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=il(Fl(e/t));uu?0:u+r),(e=e===X||e>u?u:kc(e))<0&&(e+=u),e=r>e?0:Oc(e);r>>0)?(n=Ec(n))&&("string"==typeof t||null!=t&&!Ah(t))&&(!(t=vu(t))&&T(n))?Ou(G(n),0,r):n.split(t,r):[]},Z.spread=function $f(t,r){if("function"!=typeof t)throw new pl(en);return r=null==r?0:Gl(kc(r),0),uu((function(e){var u=e[r],i=Ou(e,0,r);return u&&a(i,u),n(t,this,i)}))},Z.tail=function Mo(n){var t=null==n?0:n.length;return t?au(n,1,t):[]},Z.take=function Fo(n,t,r){return n&&n.length?au(n,0,(t=r||t===X?1:kc(t))<0?0:t):[]},Z.takeRight=function No(n,t,r){var e=null==n?0:n.length;return e?au(n,(t=e-(t=r||t===X?1:kc(t)))<0?0:t,e):[]},Z.takeRightWhile=function Po(n,t){return n&&n.length?bu(n,mi(t,3),!1,!0):[]},Z.takeWhile=function qo(n,t){return n&&n.length?bu(n,mi(t,3)):[]},Z.tap=function Xo(n,t){return t(n),n},Z.throttle=function Df(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new pl(en);return fc(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wf(n,t,{leading:e,maxWait:t,trailing:u})},Z.thru=nf,Z.toArray=jc,Z.toPairs=Ph,Z.toPairsIn=qh,Z.toPath=function Ha(n){return bh(n)?c(n,no):bc(n)?[n]:Tu(Cs(Ec(n)))},Z.toPlainObject=Rc,Z.transform=function Qc(n,t,e){var u=bh(n),i=u||mh(n)||Oh(n);if(t=mi(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:fc(n)&&uc(o)?gs(El(n)):{}}return(i?r:ue)(n,(function(n,r,u){return t(e,n,r,u)})),e},Z.unary=function Mf(n){return Rf(n,1)},Z.union=Ps,Z.unionBy=qs,Z.unionWith=Zs,Z.uniq=function Zo(n){return n&&n.length?gu(n):[]},Z.uniqBy=function Ko(n,t){return n&&n.length?gu(n,mi(t,2)):[]},Z.uniqWith=function Vo(n,t){return t="function"==typeof t?t:X,n&&n.length?gu(n,X,t):[]},Z.unset=function Xc(n,t){return null==n||yu(n,t)},Z.unzip=Go,Z.unzipWith=Ho,Z.update=function na(n,t,r){return null==n?n:du(n,t,Au(r))},Z.updateWith=function ta(n,t,r,e){return e="function"==typeof e?e:X,null==n?n:du(n,t,Au(r),e)},Z.values=ra,Z.valuesIn=function ea(n){return null==n?[]:E(n,qc(n))},Z.without=Ks,Z.words=Ra,Z.wrap=function Ff(n,t){return ph(Au(t),n)},Z.xor=Vs,Z.xorBy=Gs,Z.xorWith=Hs,Z.zip=Js,Z.zipObject=function Jo(n,t){return xu(n||[],t||[],Sr)},Z.zipObjectDeep=function Yo(n,t){return xu(n||[],t||[],fu)},Z.zipWith=Ys,Z.entries=Ph,Z.entriesIn=qh,Z.extend=Eh,Z.extendWith=Sh,Ta(Z,Z),Z.add=lp,Z.attempt=Xh,Z.camelCase=Zh,Z.capitalize=fa,Z.ceil=sp,Z.clamp=function ua(n,t,r){return r===X&&(r=t,t=X),r!==X&&(r=(r=Ic(r))==r?r:0),t!==X&&(t=(t=Ic(t))==t?t:0),Mr(Ic(n),t,r)},Z.clone=function Pf(n){return Fr(n,4)},Z.cloneDeep=function Zf(n){return Fr(n,5)},Z.cloneDeepWith=function Kf(n,t){return Fr(n,5,t="function"==typeof t?t:X)},Z.cloneWith=function qf(n,t){return Fr(n,4,t="function"==typeof t?t:X)},Z.conformsTo=function Vf(n,t){return null==t||Pr(n,t,Pc(t))},Z.deburr=ca,Z.defaultTo=function Wa(n,t){return null==n||n!=n?t:n},Z.divide=hp,Z.endsWith=function aa(n,t,r){n=Ec(n),t=vu(t);var e=n.length,u=r=r===X?e:Mr(kc(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},Z.eq=Gf,Z.escape=function la(n){return(n=Ec(n))&&At.test(n)?n.replace(xt,ge):n},Z.escapeRegExp=function sa(n){return(n=Ec(n))&&Wt.test(n)?n.replace(St,"\\$&"):n},Z.every=function af(n,t,r){var e=bh(n)?u:Jr;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))},Z.find=nh,Z.findIndex=ho,Z.findKey=function Wc(n,t){return v(n,mi(t,3),ue)},Z.findLast=th,Z.findLastIndex=po,Z.findLastKey=function Lc(n,t){return v(n,mi(t,3),oe)},Z.floor=pp,Z.forEach=_f,Z.forEachRight=vf,Z.forIn=function Cc(n,t){return null==n?n:bs(n,mi(t,3),qc)},Z.forInRight=function Uc(n,t){return null==n?n:ws(n,mi(t,3),qc)},Z.forOwn=function Bc(n,t){return n&&ue(n,mi(t,3))},Z.forOwnRight=function Tc(n,t){return n&&oe(n,mi(t,3))},Z.get=Mc,Z.gt=gh,Z.gte=yh,Z.has=function Fc(n,t){return null!=n&&Ri(n,t,xe)},Z.hasIn=Nc,Z.head=bo,Z.identity=La,Z.includes=function gf(n,t,r,e){n=Hf(n)?n:ra(n),r=r&&!e?kc(r):0;var u=n.length;return r<0&&(r=Gl(u+r,0)),dc(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&y(n,t,r)>-1},Z.indexOf=function wo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r);return u<0&&(u=Gl(e+u,0)),y(n,t,u)},Z.inRange=function ia(n,t,r){return t=Ac(t),r===X?(r=t,t=0):r=Ac(r),function Ae(n,t,r){return n>=Hl(t,r)&&n=-Wn&&n<=Wn},Z.isSet=kh,Z.isString=dc,Z.isSymbol=bc,Z.isTypedArray=Oh,Z.isUndefined=function wc(n){return n===X},Z.isWeakMap=function mc(n){return cc(n)&&zs(n)==it},Z.isWeakSet=function xc(n){return cc(n)&&"[object WeakSet]"==we(n)},Z.join=function xo(n,t){return null==n?"":Kl.call(n,t)},Z.kebabCase=Kh,Z.last=jo,Z.lastIndexOf=function Ao(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==X&&(u=(u=kc(r))<0?Gl(e+u,0):Hl(u,e-1)),t==t?function K(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):g(n,b,u,!0)},Z.lowerCase=Vh,Z.lowerFirst=Gh,Z.lt=Ih,Z.lte=Rh,Z.max=function Ya(n){return n&&n.length?Yr(n,La,me):X},Z.maxBy=function Qa(n,t){return n&&n.length?Yr(n,mi(t,2),me):X},Z.mean=function Xa(n){return w(n,La)},Z.meanBy=function nl(n,t){return w(n,mi(t,2))},Z.min=function tl(n){return n&&n.length?Yr(n,La,Ne):X},Z.minBy=function rl(n,t){return n&&n.length?Yr(n,mi(t,2),Ne):X},Z.stubArray=Pa,Z.stubFalse=qa,Z.stubObject=function Za(){return{}},Z.stubString=function Ka(){return""},Z.stubTrue=function Va(){return!0},Z.multiply=_p,Z.nth=function ko(n,t){return n&&n.length?Ge(n,kc(t)):X},Z.noConflict=function $a(){return re._===this&&(re._=Al),this},Z.noop=Da,Z.now=fh,Z.pad=function ha(n,t,r){n=Ec(n);var e=(t=kc(t))?V(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return ri(Nl(u),r)+n+ri(Fl(u),r)},Z.padEnd=function pa(n,t,r){n=Ec(n);var e=(t=kc(t))?V(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ql();return Hl(n+u*(t-n+Qr("1e-"+((u+"").length-1))),t)}return tu(n,t)},Z.reduce=function bf(n,t,r){var e=bh(n)?l:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ys)},Z.reduceRight=function wf(n,t,r){var e=bh(n)?s:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ds)},Z.repeat=function ga(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t),eu(Ec(n),t)},Z.replace=function ya(){var n=arguments,t=Ec(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Z.result=function Hc(n,t,r){var e=-1,u=(t=ku(t,n)).length;for(u||(u=1,n=X);++eWn)return[];var r=Un,e=Hl(n,Un);t=mi(t),n-=Un;for(var u=O(e,t);++r=i)return n;var f=r-V(e);if(f<1)return e;var c=o?Ou(o,0,f).join(""):n.slice(0,f);if(u===X)return c+e;if(o&&(f+=c.length-f),Ah(u)){if(n.slice(f).search(u)){var a,l=c;for(u.global||(u=sl(u.source,Ec(Nt.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var s=a.index;c=c.slice(0,s===X?f:s)}}else if(n.indexOf(vu(u),f)!=f){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+e},Z.unescape=function Ia(n){return(n=Ec(n))&&jt.test(n)?n.replace(mt,ye):n},Z.uniqueId=function Ja(n){var t=++wl;return Ec(n)+t},Z.upperCase=Yh,Z.upperFirst=Qh,Z.each=_f,Z.eachRight=vf,Z.first=bo,Ta(Z,function(){var n={};return ue(Z,(function(t,r){bl.call(Z.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Z.VERSION="4.17.21",r(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Z[n].placeholder=Z})),r(["drop","take"],(function(n,t){Ct.prototype[n]=function(r){r=r===X?1:Gl(kc(r),0);var e=this.__filtered__&&!t?new Ct(this):this.clone();return e.__filtered__?e.__takeCount__=Hl(r,e.__takeCount__):e.__views__.push({size:Hl(r,Un),type:n+(e.__dir__<0?"Right":"")}),e},Ct.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),r(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Ct.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:mi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),r(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Ct.prototype[n]=function(){return this[r](1).value()[0]}})),r(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Ct.prototype[n]=function(){return this.__filtered__?new Ct(this):this[r](1)}})),Ct.prototype.compact=function(){return this.filter(La)},Ct.prototype.find=function(n){return this.filter(n).head()},Ct.prototype.findLast=function(n){return this.reverse().find(n)},Ct.prototype.invokeMap=uu((function(n,t){return"function"==typeof n?new Ct(this):this.map((function(r){return Ie(r,n,t)}))})),Ct.prototype.reject=function(n){return this.filter(Uf(mi(n)))},Ct.prototype.slice=function(n,t){n=kc(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Ct(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==X&&(r=(t=kc(t))<0?r.dropRight(-t):r.take(t-n)),r)},Ct.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ct.prototype.toArray=function(){return this.take(Un)},ue(Ct.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Z[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(Z.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Ct,c=o[0],l=f||bh(t),s=function(n){var t=u.apply(Z,a([n],o));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,_=i&&!h,v=f&&!p;if(!i&&l){t=v?t:new Ct(this);var g=n.apply(t,o);return g.__actions__.push({func:nf,args:[s],thisArg:X}),new Y(g,h)}return _&&v?n.apply(this,o):(g=this.thru(s),_?e?g.value()[0]:g.value():g)})})),r(["pop","push","shift","sort","splice","unshift"],(function(n){var t=_l[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Z.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bh(u)?u:[],n)}return this[r]((function(r){return t.apply(bh(r)?r:[],n)}))}})),ue(Ct.prototype,(function(n,t){var r=Z[t];if(r){var e=r.name+"";bl.call(fs,e)||(fs[e]=[]),fs[e].push({name:t,func:r})}})),fs[Qu(X,2).name]=[{name:"wrapper",func:X}],Ct.prototype.clone=function $t(){var n=new Ct(this.__wrapped__);return n.__actions__=Tu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tu(this.__views__),n},Ct.prototype.reverse=function Yt(){if(this.__filtered__){var n=new Ct(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Ct.prototype.value=function Qt(){var n=this.__wrapped__.value(),t=this.__dir__,r=bh(n),e=t<0,u=r?n.length:0,i=function Oi(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?X:this.__values__[this.__index__++]}},Z.prototype.plant=function of(n){for(var t,r=this;r instanceof J;){var e=eo(r);e.__index__=0,e.__values__=X,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},Z.prototype.reverse=function ff(){var n=this.__wrapped__;if(n instanceof Ct){var t=n;return this.__actions__.length&&(t=new Ct(this)),(t=t.reverse()).__actions__.push({func:nf,args:[Eo],thisArg:X}),new Y(t,this.__chain__)}return this.thru(Eo)},Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=function cf(){return wu(this.__wrapped__,this.__actions__)},Z.prototype.first=Z.prototype.head,Ul&&(Z.prototype[Ul]=function uf(){return this}),Z}();re._=be,void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return be}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}.call(this)},"./node_modules/react-cool-dimensions/dist/index.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>useDimensions});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=val&&val>max&&(curBp=key,max=val)})),curBp}(breakpoints,width),e.currentBreakpoint!==prevBreakpointRef.current&&(onResizeRef.current&&onResizeRef.current(e),prevBreakpointRef.current=e.currentBreakpoint)):onResizeRef.current&&onResizeRef.current(e);var next={currentBreakpoint:e.currentBreakpoint,width,height,entry};shouldUpdateRef.current&&!shouldUpdateRef.current(next)||(!shouldUpdateRef.current&&breakpoints&&updateOnBreakpointChange?setState((function(prev){return prev.currentBreakpoint!==next.currentBreakpoint?next:prev})):setState(next))}}))})),observe(),function(){unobserve(),raf&&cancelAnimationFrame(raf)}}),[JSON.stringify(breakpoints),useBorderBoxSize,observe,unobserve,updateOnBreakpointChange]),_extends({},state,{observe,unobserve})}},"./node_modules/react-draggable/build/cjs/Draggable.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DraggableCore",{enumerable:!0,get:function(){return _DraggableCore.default}}),exports.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react/index.js")),_propTypes=_interopRequireDefault(__webpack_require__("./node_modules/prop-types/index.js")),_reactDom=_interopRequireDefault(__webpack_require__("./node_modules/react-dom/index.js")),_clsx=_interopRequireDefault(__webpack_require__("./node_modules/clsx/dist/clsx.m.js")),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js"),_positionFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/positionFns.js"),_shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_DraggableCore=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/DraggableCore.js")),_log=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/log.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{(0,_log.default)("Draggable: onDragStart: %j",coreData);if(!1===this.props.onStart(e,(0,_positionFns.createDraggableData)(this,coreData)))return!1;this.setState({dragging:!0,dragged:!0})})),_defineProperty(this,"onDrag",((e,coreData)=>{if(!this.state.dragging)return!1;(0,_log.default)("Draggable: onDrag: %j",coreData);const uiData=(0,_positionFns.createDraggableData)(this,coreData),newState={x:uiData.x,y:uiData.y,slackX:0,slackY:0};if(this.props.bounds){const{x,y}=newState;newState.x+=this.state.slackX,newState.y+=this.state.slackY;const[newStateX,newStateY]=(0,_positionFns.getBoundPosition)(this,newState.x,newState.y);newState.x=newStateX,newState.y=newStateY,newState.slackX=this.state.slackX+(x-newState.x),newState.slackY=this.state.slackY+(y-newState.y),uiData.x=newState.x,uiData.y=newState.y,uiData.deltaX=newState.x-this.state.x,uiData.deltaY=newState.y-this.state.y}if(!1===this.props.onDrag(e,uiData))return!1;this.setState(newState)})),_defineProperty(this,"onDragStop",((e,coreData)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,_positionFns.createDraggableData)(this,coreData)))return!1;(0,_log.default)("Draggable: onDragStop: %j",coreData);const newState={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x,y}=this.props.position;newState.x=x,newState.y=y}this.setState(newState)})),this.state={dragging:!1,dragged:!1,x:props.position?props.position.x:props.defaultPosition.x,y:props.position?props.position.y:props.defaultPosition.y,prevPropsPosition:{...props.position},slackX:0,slackY:0,isElementSVG:!1},!props.position||props.onDrag||props.onStop||console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _this$props$nodeRef$c,_this$props;return null!==(_this$props$nodeRef$c=null===(_this$props=this.props)||void 0===_this$props||null===(_this$props=_this$props.nodeRef)||void 0===_this$props?void 0:_this$props.current)&&void 0!==_this$props$nodeRef$c?_this$props$nodeRef$c:_reactDom.default.findDOMNode(this)}render(){const{axis,bounds,children,defaultPosition,defaultClassName,defaultClassNameDragging,defaultClassNameDragged,position,positionOffset,scale,...draggableCoreProps}=this.props;let style={},svgTransform=null;const draggable=!Boolean(position)||this.state.dragging,validPosition=position||defaultPosition,transformOpts={x:(0,_positionFns.canDragX)(this)&&draggable?this.state.x:validPosition.x,y:(0,_positionFns.canDragY)(this)&&draggable?this.state.y:validPosition.y};this.state.isElementSVG?svgTransform=(0,_domFns.createSVGTransform)(transformOpts,positionOffset):style=(0,_domFns.createCSSTransform)(transformOpts,positionOffset);const className=(0,_clsx.default)(children.props.className||"",defaultClassName,{[defaultClassNameDragging]:this.state.dragging,[defaultClassNameDragged]:this.state.dragged});return React.createElement(_DraggableCore.default,_extends({},draggableCoreProps,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),React.cloneElement(React.Children.only(children),{className,style:{...children.props.style,...style},transform:svgTransform}))}}exports.default=Draggable,_defineProperty(Draggable,"displayName","Draggable"),_defineProperty(Draggable,"propTypes",{..._DraggableCore.default.propTypes,axis:_propTypes.default.oneOf(["both","x","y","none"]),bounds:_propTypes.default.oneOfType([_propTypes.default.shape({left:_propTypes.default.number,right:_propTypes.default.number,top:_propTypes.default.number,bottom:_propTypes.default.number}),_propTypes.default.string,_propTypes.default.oneOf([!1])]),defaultClassName:_propTypes.default.string,defaultClassNameDragging:_propTypes.default.string,defaultClassNameDragged:_propTypes.default.string,defaultPosition:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),positionOffset:_propTypes.default.shape({x:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string]),y:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string])}),position:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe}),_defineProperty(Draggable,"defaultProps",{..._DraggableCore.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},"./node_modules/react-draggable/build/cjs/DraggableCore.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react/index.js")),_propTypes=_interopRequireDefault(__webpack_require__("./node_modules/prop-types/index.js")),_reactDom=_interopRequireDefault(__webpack_require__("./node_modules/react-dom/index.js")),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js"),_positionFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/positionFns.js"),_shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_log=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/log.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperty(obj,key,value){return(key=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)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const eventsFor_touch={start:"touchstart",move:"touchmove",stop:"touchend"},eventsFor_mouse={start:"mousedown",move:"mousemove",stop:"mouseup"};let dragEventFor=eventsFor_mouse;class DraggableCore extends React.Component{constructor(){super(...arguments),_defineProperty(this,"dragging",!1),_defineProperty(this,"lastX",NaN),_defineProperty(this,"lastY",NaN),_defineProperty(this,"touchIdentifier",null),_defineProperty(this,"mounted",!1),_defineProperty(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const thisNode=this.findDOMNode();if(!thisNode||!thisNode.ownerDocument||!thisNode.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument}=thisNode;if(this.props.disabled||!(e.target instanceof ownerDocument.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(e.target,this.props.handle,thisNode)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(e.target,this.props.cancel,thisNode))return;"touchstart"===e.type&&e.preventDefault();const touchIdentifier=(0,_domFns.getTouchIdentifier)(e);this.touchIdentifier=touchIdentifier;const position=(0,_positionFns.getControlPosition)(e,touchIdentifier,this);if(null==position)return;const{x,y}=position,coreEvent=(0,_positionFns.createCoreData)(this,x,y);(0,_log.default)("DraggableCore: handleDragStart: %j",coreEvent),(0,_log.default)("calling",this.props.onStart);!1!==this.props.onStart(e,coreEvent)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(ownerDocument),this.dragging=!0,this.lastX=x,this.lastY=y,(0,_domFns.addEvent)(ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(ownerDocument,dragEventFor.stop,this.handleDragStop))})),_defineProperty(this,"handleDrag",(e=>{const position=(0,_positionFns.getControlPosition)(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX,deltaY=y-this.lastY;if([deltaX,deltaY]=(0,_positionFns.snapToGrid)(this.props.grid,deltaX,deltaY),!deltaX&&!deltaY)return;x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=(0,_positionFns.createCoreData)(this,x,y);(0,_log.default)("DraggableCore: handleDrag: %j",coreEvent);if(!1!==this.props.onDrag(e,coreEvent)&&!1!==this.mounted)this.lastX=x,this.lastY=y;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(err){const event=document.createEvent("MouseEvents");event.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(event)}})),_defineProperty(this,"handleDragStop",(e=>{if(!this.dragging)return;const position=(0,_positionFns.getControlPosition)(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX||0,deltaY=y-this.lastY||0;[deltaX,deltaY]=(0,_positionFns.snapToGrid)(this.props.grid,deltaX,deltaY),x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=(0,_positionFns.createCoreData)(this,x,y);if(!1===this.props.onStop(e,coreEvent)||!1===this.mounted)return!1;const thisNode=this.findDOMNode();thisNode&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(thisNode.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",coreEvent),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,thisNode&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.stop,this.handleDragStop))})),_defineProperty(this,"onMouseDown",(e=>(dragEventFor=eventsFor_mouse,this.handleDragStart(e)))),_defineProperty(this,"onMouseUp",(e=>(dragEventFor=eventsFor_mouse,this.handleDragStop(e)))),_defineProperty(this,"onTouchStart",(e=>(dragEventFor=eventsFor_touch,this.handleDragStart(e)))),_defineProperty(this,"onTouchEnd",(e=>(dragEventFor=eventsFor_touch,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const thisNode=this.findDOMNode();thisNode&&(0,_domFns.addEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const thisNode=this.findDOMNode();if(thisNode){const{ownerDocument}=thisNode;(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(ownerDocument)}}findDOMNode(){var _this$props,_this$props2;return null!==(_this$props=this.props)&&void 0!==_this$props&&_this$props.nodeRef?null===(_this$props2=this.props)||void 0===_this$props2||null===(_this$props2=_this$props2.nodeRef)||void 0===_this$props2?void 0:_this$props2.current:_reactDom.default.findDOMNode(this)}render(){return React.cloneElement(React.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}exports.default=DraggableCore,_defineProperty(DraggableCore,"displayName","DraggableCore"),_defineProperty(DraggableCore,"propTypes",{allowAnyClick:_propTypes.default.bool,children:_propTypes.default.node.isRequired,disabled:_propTypes.default.bool,enableUserSelectHack:_propTypes.default.bool,offsetParent:function(props,propName){if(props[propName]&&1!==props[propName].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes.default.arrayOf(_propTypes.default.number),handle:_propTypes.default.string,cancel:_propTypes.default.string,nodeRef:_propTypes.default.object,onStart:_propTypes.default.func,onDrag:_propTypes.default.func,onStop:_propTypes.default.func,onMouseDown:_propTypes.default.func,scale:_propTypes.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe}),_defineProperty(DraggableCore,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},"./node_modules/react-draggable/build/cjs/cjs.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const{default:Draggable,DraggableCore}=__webpack_require__("./node_modules/react-draggable/build/cjs/Draggable.js");module.exports=Draggable,module.exports.default=Draggable,module.exports.DraggableCore=DraggableCore},"./node_modules/react-draggable/build/cjs/utils/domFns.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addClassName=addClassName,exports.addEvent=function addEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions};el.addEventListener?el.addEventListener(event,handler,options):el.attachEvent?el.attachEvent("on"+event,handler):el["on"+event]=handler},exports.addUserSelectStyles=function addUserSelectStyles(doc){if(!doc)return;let styleEl=doc.getElementById("react-draggable-style-el");styleEl||(styleEl=doc.createElement("style"),styleEl.type="text/css",styleEl.id="react-draggable-style-el",styleEl.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",styleEl.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",doc.getElementsByTagName("head")[0].appendChild(styleEl));doc.body&&addClassName(doc.body,"react-draggable-transparent-selection")},exports.createCSSTransform=function createCSSTransform(controlPos,positionOffset){const translation=getTranslation(controlPos,positionOffset,"px");return{[(0,_getPrefix.browserPrefixToKey)("transform",_getPrefix.default)]:translation}},exports.createSVGTransform=function createSVGTransform(controlPos,positionOffset){return getTranslation(controlPos,positionOffset,"")},exports.getTouch=function getTouch(e,identifier){return e.targetTouches&&(0,_shims.findInArray)(e.targetTouches,(t=>identifier===t.identifier))||e.changedTouches&&(0,_shims.findInArray)(e.changedTouches,(t=>identifier===t.identifier))},exports.getTouchIdentifier=function getTouchIdentifier(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},exports.getTranslation=getTranslation,exports.innerHeight=function innerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height-=(0,_shims.int)(computedStyle.paddingTop),height-=(0,_shims.int)(computedStyle.paddingBottom),height},exports.innerWidth=function innerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width-=(0,_shims.int)(computedStyle.paddingLeft),width-=(0,_shims.int)(computedStyle.paddingRight),width},exports.matchesSelector=matchesSelector,exports.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(el,selector,baseNode){let node=el;do{if(matchesSelector(node,selector))return!0;if(node===baseNode)return!1;node=node.parentNode}while(node);return!1},exports.offsetXYFromParent=function offsetXYFromParent(evt,offsetParent,scale){const offsetParentRect=offsetParent===offsetParent.ownerDocument.body?{left:0,top:0}:offsetParent.getBoundingClientRect(),x=(evt.clientX+offsetParent.scrollLeft-offsetParentRect.left)/scale,y=(evt.clientY+offsetParent.scrollTop-offsetParentRect.top)/scale;return{x,y}},exports.outerHeight=function outerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height+=(0,_shims.int)(computedStyle.borderTopWidth),height+=(0,_shims.int)(computedStyle.borderBottomWidth),height},exports.outerWidth=function outerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width+=(0,_shims.int)(computedStyle.borderLeftWidth),width+=(0,_shims.int)(computedStyle.borderRightWidth),width},exports.removeClassName=removeClassName,exports.removeEvent=function removeEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions};el.removeEventListener?el.removeEventListener(event,handler,options):el.detachEvent?el.detachEvent("on"+event,handler):el["on"+event]=null},exports.removeUserSelectStyles=function removeUserSelectStyles(doc){if(!doc)return;try{if(doc.body&&removeClassName(doc.body,"react-draggable-transparent-selection"),doc.selection)doc.selection.empty();else{const selection=(doc.defaultView||window).getSelection();selection&&"Caret"!==selection.type&&selection.removeAllRanges()}}catch(e){}};var _shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_getPrefix=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/getPrefix.js"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}let matchesSelectorFunc="";function matchesSelector(el,selector){return matchesSelectorFunc||(matchesSelectorFunc=(0,_shims.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(method){return(0,_shims.isFunction)(el[method])}))),!!(0,_shims.isFunction)(el[matchesSelectorFunc])&&el[matchesSelectorFunc](selector)}function getTranslation(_ref,positionOffset,unitSuffix){let{x,y}=_ref,translation="translate(".concat(x).concat(unitSuffix,",").concat(y).concat(unitSuffix,")");if(positionOffset){const defaultX="".concat("string"==typeof positionOffset.x?positionOffset.x:positionOffset.x+unitSuffix),defaultY="".concat("string"==typeof positionOffset.y?positionOffset.y:positionOffset.y+unitSuffix);translation="translate(".concat(defaultX,", ").concat(defaultY,")")+translation}return translation}function addClassName(el,className){el.classList?el.classList.add(className):el.className.match(new RegExp("(?:^|\\s)".concat(className,"(?!\\S)")))||(el.className+=" ".concat(className))}function removeClassName(el,className){el.classList?el.classList.remove(className):el.className=el.className.replace(new RegExp("(?:^|\\s)".concat(className,"(?!\\S)"),"g"),"")}},"./node_modules/react-draggable/build/cjs/utils/getPrefix.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.browserPrefixToKey=browserPrefixToKey,exports.browserPrefixToStyle=function browserPrefixToStyle(prop,prefix){return prefix?"-".concat(prefix.toLowerCase(),"-").concat(prop):prop},exports.default=void 0,exports.getPrefix=getPrefix;const prefixes=["Moz","Webkit","O","ms"];function getPrefix(){var _window$document;let prop=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const style=null===(_window$document=window.document)||void 0===_window$document||null===(_window$document=_window$document.documentElement)||void 0===_window$document?void 0:_window$document.style;if(!style)return"";if(prop in style)return"";for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function log(){0}},"./node_modules/react-draggable/build/cjs/utils/positionFns.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.canDragX=function canDragX(draggable){return"both"===draggable.props.axis||"x"===draggable.props.axis},exports.canDragY=function canDragY(draggable){return"both"===draggable.props.axis||"y"===draggable.props.axis},exports.createCoreData=function createCoreData(draggable,x,y){const isStart=!(0,_shims.isNum)(draggable.lastX),node=findDOMNode(draggable);return isStart?{node,deltaX:0,deltaY:0,lastX:x,lastY:y,x,y}:{node,deltaX:x-draggable.lastX,deltaY:y-draggable.lastY,lastX:draggable.lastX,lastY:draggable.lastY,x,y}},exports.createDraggableData=function createDraggableData(draggable,coreData){const scale=draggable.props.scale;return{node:coreData.node,x:draggable.state.x+coreData.deltaX/scale,y:draggable.state.y+coreData.deltaY/scale,deltaX:coreData.deltaX/scale,deltaY:coreData.deltaY/scale,lastX:draggable.state.x,lastY:draggable.state.y}},exports.getBoundPosition=function getBoundPosition(draggable,x,y){if(!draggable.props.bounds)return[x,y];let{bounds}=draggable.props;bounds="string"==typeof bounds?bounds:function cloneBounds(bounds){return{left:bounds.left,top:bounds.top,right:bounds.right,bottom:bounds.bottom}}(bounds);const node=findDOMNode(draggable);if("string"==typeof bounds){const{ownerDocument}=node,ownerWindow=ownerDocument.defaultView;let boundNode;if(boundNode="parent"===bounds?node.parentNode:ownerDocument.querySelector(bounds),!(boundNode instanceof ownerWindow.HTMLElement))throw new Error('Bounds selector "'+bounds+'" could not find an element.');const boundNodeEl=boundNode,nodeStyle=ownerWindow.getComputedStyle(node),boundNodeStyle=ownerWindow.getComputedStyle(boundNodeEl);bounds={left:-node.offsetLeft+(0,_shims.int)(boundNodeStyle.paddingLeft)+(0,_shims.int)(nodeStyle.marginLeft),top:-node.offsetTop+(0,_shims.int)(boundNodeStyle.paddingTop)+(0,_shims.int)(nodeStyle.marginTop),right:(0,_domFns.innerWidth)(boundNodeEl)-(0,_domFns.outerWidth)(node)-node.offsetLeft+(0,_shims.int)(boundNodeStyle.paddingRight)-(0,_shims.int)(nodeStyle.marginRight),bottom:(0,_domFns.innerHeight)(boundNodeEl)-(0,_domFns.outerHeight)(node)-node.offsetTop+(0,_shims.int)(boundNodeStyle.paddingBottom)-(0,_shims.int)(nodeStyle.marginBottom)}}(0,_shims.isNum)(bounds.right)&&(x=Math.min(x,bounds.right));(0,_shims.isNum)(bounds.bottom)&&(y=Math.min(y,bounds.bottom));(0,_shims.isNum)(bounds.left)&&(x=Math.max(x,bounds.left));(0,_shims.isNum)(bounds.top)&&(y=Math.max(y,bounds.top));return[x,y]},exports.getControlPosition=function getControlPosition(e,touchIdentifier,draggableCore){const touchObj="number"==typeof touchIdentifier?(0,_domFns.getTouch)(e,touchIdentifier):null;if("number"==typeof touchIdentifier&&!touchObj)return null;const node=findDOMNode(draggableCore),offsetParent=draggableCore.props.offsetParent||node.offsetParent||node.ownerDocument.body;return(0,_domFns.offsetXYFromParent)(touchObj||e,offsetParent,draggableCore.props.scale)},exports.snapToGrid=function snapToGrid(grid,pendingX,pendingY){const x=Math.round(pendingX/grid[0])*grid[0],y=Math.round(pendingY/grid[1])*grid[1];return[x,y]};var _shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js");function findDOMNode(draggable){const node=draggable.findDOMNode();if(!node)throw new Error(": Unmounted during event!");return node}},"./node_modules/react-draggable/build/cjs/utils/shims.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.dontSetMe=function dontSetMe(props,propName,componentName){if(props[propName])return new Error("Invalid prop ".concat(propName," passed to ").concat(componentName," - do not set this, set it on the child."))},exports.findInArray=function findInArray(array,callback){for(let i=0,length=array.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{GC:()=>es2015_MoveFocusInside,Ay:()=>es2015});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),useMergeRef=__webpack_require__("./node_modules/use-callback-ref/dist/es2015/useMergeRef.js"),hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},InFocusGuard=function InFocusGuard(_ref){var _ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return react.createElement(react.Fragment,null,react.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}),children,children&&react.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}))};InFocusGuard.propTypes={};var medium=__webpack_require__("./node_modules/use-sidecar/dist/es2015/medium.js"),mediumFocus=(0,medium.C)({},(function(_ref){return{target:_ref.target,currentTarget:_ref.currentTarget}})),mediumBlur=(0,medium.C)(),mediumEffect=(0,medium.C)(),mediumSidecar=(0,medium.f)({async:!0,ssr:"undefined"!=typeof document}),focusScope=(0,react.createContext)(void 0),emptyArray=[],FocusLock=react.forwardRef((function FocusLockUI(props,parentRef){var _extends2,_React$useState=react.useState(),realObserved=_React$useState[0],setObserved=_React$useState[1],observed=react.useRef(),isActive=react.useRef(!1),originalFocusedElement=react.useRef(null),update=react.useState({})[1],children=props.children,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled,_props$noFocusGuards=props.noFocusGuards,noFocusGuards=void 0!==_props$noFocusGuards&&_props$noFocusGuards,_props$persistentFocu=props.persistentFocus,persistentFocus=void 0!==_props$persistentFocu&&_props$persistentFocu,_props$crossFrame=props.crossFrame,crossFrame=void 0===_props$crossFrame||_props$crossFrame,_props$autoFocus=props.autoFocus,autoFocus=void 0===_props$autoFocus||_props$autoFocus,group=(props.allowTextSelection,props.group),className=props.className,whiteList=props.whiteList,hasPositiveIndices=props.hasPositiveIndices,_props$shards=props.shards,shards=void 0===_props$shards?emptyArray:_props$shards,_props$as=props.as,Container=void 0===_props$as?"div":_props$as,_props$lockProps=props.lockProps,containerProps=void 0===_props$lockProps?{}:_props$lockProps,SideCar=props.sideCar,_props$returnFocus=props.returnFocus,shouldReturnFocus=void 0!==_props$returnFocus&&_props$returnFocus,focusOptions=props.focusOptions,onActivationCallback=props.onActivation,onDeactivationCallback=props.onDeactivation,id=react.useState({})[0],onActivation=react.useCallback((function(_ref){var captureFocusRestore=_ref.captureFocusRestore;if(!originalFocusedElement.current){var _document,activeElement=null==(_document=document)?void 0:_document.activeElement;originalFocusedElement.current=activeElement,activeElement!==document.body&&(originalFocusedElement.current=captureFocusRestore(activeElement))}observed.current&&onActivationCallback&&onActivationCallback(observed.current),isActive.current=!0,update()}),[onActivationCallback]),onDeactivation=react.useCallback((function(){isActive.current=!1,onDeactivationCallback&&onDeactivationCallback(observed.current),update()}),[onDeactivationCallback]),returnFocus=react.useCallback((function(allowDefer){var focusRestore=originalFocusedElement.current;if(focusRestore){var returnFocusTo=("function"==typeof focusRestore?focusRestore():focusRestore)||document.body,howToReturnFocus="function"==typeof shouldReturnFocus?shouldReturnFocus(returnFocusTo):shouldReturnFocus;if(howToReturnFocus){var returnFocusOptions="object"==typeof howToReturnFocus?howToReturnFocus:void 0;originalFocusedElement.current=null,allowDefer?Promise.resolve().then((function(){return returnFocusTo.focus(returnFocusOptions)})):returnFocusTo.focus(returnFocusOptions)}}}),[shouldReturnFocus]),onFocus=react.useCallback((function(event){isActive.current&&mediumFocus.useMedium(event)}),[]),onBlur=mediumBlur.useMedium,setObserveNode=react.useCallback((function(newObserved){observed.current!==newObserved&&(observed.current=newObserved,setObserved(newObserved))}),[]);var lockProps=(0,esm_extends.A)(((_extends2={})["data-focus-lock-disabled"]=disabled&&"disabled",_extends2["data-focus-lock"]=group,_extends2),containerProps),hasLeadingGuards=!0!==noFocusGuards,hasTailingGuards=hasLeadingGuards&&"tail"!==noFocusGuards,mergedRef=(0,useMergeRef.S)([parentRef,setObserveNode]),focusScopeValue=react.useMemo((function(){return{observed,shards,enabled:!disabled,active:isActive.current}}),[disabled,isActive.current,shards,realObserved]);return react.createElement(react.Fragment,null,hasLeadingGuards&&[react.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:disabled?-1:0,style:hiddenGuard}),hasPositiveIndices?react.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:disabled?-1:1,style:hiddenGuard}):null],!disabled&&react.createElement(SideCar,{id,sideCar:mediumSidecar,observed:realObserved,disabled,persistentFocus,crossFrame,autoFocus,whiteList,shards,onActivation,onDeactivation,returnFocus,focusOptions}),react.createElement(Container,(0,esm_extends.A)({ref:mergedRef},lockProps,{className,onBlur,onFocus}),react.createElement(focusScope.Provider,{value:focusScopeValue},children)),hasTailingGuards&&react.createElement("div",{"data-focus-guard":!0,tabIndex:disabled?-1:0,style:hiddenGuard}))}));FocusLock.propTypes={};const Lock=FocusLock;var inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");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 toPropertyKey(t){var i=function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}const index_es=function withSideEffect(reducePropsToState,handleStateChangeOnClient){return function wrap(WrappedComponent){var state,mountedInstances=[];function emitChange(){state=reducePropsToState(mountedInstances.map((function(instance){return instance.props}))),handleStateChangeOnClient(state)}var SideEffect=function(_PureComponent){function SideEffect(){return _PureComponent.apply(this,arguments)||this}(0,inheritsLoose.A)(SideEffect,_PureComponent),SideEffect.peek=function peek(){return state};var _proto=SideEffect.prototype;return _proto.componentDidMount=function componentDidMount(){mountedInstances.push(this),emitChange()},_proto.componentDidUpdate=function componentDidUpdate(){emitChange()},_proto.componentWillUnmount=function componentWillUnmount(){var index=mountedInstances.indexOf(this);mountedInstances.splice(index,1),emitChange()},_proto.render=function render(){return react.createElement(WrappedComponent,this.props)},SideEffect}(react.PureComponent);return 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}(SideEffect,"displayName","SideEffect("+function getDisplayName(WrappedComponent){return WrappedComponent.displayName||WrappedComponent.name||"Component"}(WrappedComponent)+")"),SideEffect}};var toArray=function(a){for(var ret=Array(a.length),i=0;i=0})).sort(tabSort)},queryTabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(parent,withGuards){return toArray((parent.shadowRoot||parent).children).reduce((function(acc,child){return acc.concat(child.matches(withGuards?queryGuardTabbables:queryTabbables)?[child]:[],getFocusablesWithShadowDom(child))}),[])},getFocusables=function(parents,withGuards){return parents.reduce((function(acc,parent){var _a,focusableWithShadowDom=getFocusablesWithShadowDom(parent,withGuards),focusableWithIframes=(_a=[]).concat.apply(_a,focusableWithShadowDom.map((function(node){return function(parent,withGuards){var _a;return parent instanceof HTMLIFrameElement&&(null===(_a=parent.contentDocument)||void 0===_a?void 0:_a.body)?getFocusables([parent.contentDocument.body],withGuards):[parent]}(node,withGuards)})));return acc.concat(focusableWithIframes,parent.parentNode?toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter((function(node){return node===parent})):[])}),[])},filterFocusable=function(nodes,visibilityCache){return toArray(nodes).filter((function(node){return isVisibleCached(visibilityCache,node)})).filter((function(node){return function(node){return!((isHTMLInputElement(node)||function(node){return"BUTTON"===node.tagName}(node))&&("hidden"===node.type||node.disabled))}(node)}))},filterAutoFocusable=function(nodes,cache){return void 0===cache&&(cache=new Map),toArray(nodes).filter((function(node){return isAutoFocusAllowedCached(cache,node)}))},getTabbableNodes=function(topNodes,visibilityCache,withGuards){return orderByTabIndex(filterFocusable(getFocusables(topNodes,withGuards),visibilityCache),!0,withGuards)},getFocusableNodes=function(topNodes,visibilityCache){return orderByTabIndex(filterFocusable(getFocusables(topNodes),visibilityCache),!1)},parentAutofocusables=function(topNode,visibilityCache){return filterFocusable((parentFocus=topNode.querySelectorAll("[".concat("data-autofocus-inside","]")),toArray(parentFocus).map((function(node){return getFocusables([node])})).reduce((function(acc,nodes){return acc.concat(nodes)}),[])),visibilityCache);var parentFocus},contains=function(scope,element){return scope.shadowRoot?contains(scope.shadowRoot,element):!(void 0===Object.getPrototypeOf(scope).contains||!Object.getPrototypeOf(scope).contains.call(scope,element))||toArray(scope.children).some((function(child){var _a;if(child instanceof HTMLIFrameElement){var iframeBody=null===(_a=child.contentDocument)||void 0===_a?void 0:_a.body;return!!iframeBody&&contains(iframeBody,element)}return contains(child,element)}))},getActiveElement=function(inDocument){if(void 0===inDocument&&(inDocument=document),inDocument&&inDocument.activeElement){var activeElement=inDocument.activeElement;return activeElement.shadowRoot?getActiveElement(activeElement.shadowRoot):activeElement instanceof HTMLIFrameElement&&function(cb){try{return cb()}catch(e){return}}((function(){return activeElement.contentWindow.document}))?getActiveElement(activeElement.contentWindow.document):activeElement}},getTopParent=function(node){return node.parentNode?getTopParent(node.parentNode):node},getAllAffectedNodes=function(node){return asArray(node).filter(Boolean).reduce((function(acc,currentNode){var group=currentNode.getAttribute("data-focus-lock");return acc.push.apply(acc,group?function(nodes){for(var contained=new Set,l=nodes.length,i=0;i0&&contained.add(j),(position&Node.DOCUMENT_POSITION_CONTAINS)>0&&contained.add(i)}return nodes.filter((function(_,index){return!contained.has(index)}))}(toArray(getTopParent(currentNode).querySelectorAll("[".concat("data-focus-lock",'="').concat(group,'"]:not([').concat("data-focus-lock-disabled",'="disabled"])')))):[currentNode]),acc}),[])},focusInside=function(topNode,activeElement){return void 0===activeElement&&(activeElement=getActiveElement(getFirst(topNode).ownerDocument)),!(!activeElement||activeElement.dataset&&activeElement.dataset.focusGuard)&&getAllAffectedNodes(topNode).some((function(node){return contains(node,activeElement)||function(topNode,activeElement){return Boolean(toArray(topNode.querySelectorAll("iframe")).some((function(node){return function(frame,activeElement){return frame===activeElement}(node,activeElement)})))}(node,activeElement)}))},focusOn=function(target,focusOptions){target&&("focus"in target&&target.focus(focusOptions),"contentWindow"in target&&target.contentWindow&&target.contentWindow.focus())},correctNode=function(node,nodes){return isRadioElement(node)&&node.name?function(node,nodes){return nodes.filter(isRadioElement).filter((function(el){return el.name===node.name})).filter((function(el){return el.checked}))[0]||node}(node,nodes):node},pickFirstFocus=function(nodes){return nodes[0]&&nodes.length>1?correctNode(nodes[0],nodes):nodes[0]},pickFocusable=function(nodes,node){return nodes.indexOf(correctNode(node,nodes))},newFocus=function(innerNodes,innerTabbables,outerNodes,activeElement,lastNode){var cnt=innerNodes.length,firstFocus=innerNodes[0],lastFocus=innerNodes[cnt-1],isOnGuard=isGuard(activeElement);if(!(activeElement&&innerNodes.indexOf(activeElement)>=0)){var activeIndex=void 0!==activeElement?outerNodes.indexOf(activeElement):-1,lastIndex=lastNode?outerNodes.indexOf(lastNode):activeIndex,lastNodeInside=lastNode?innerNodes.indexOf(lastNode):-1;if(-1===activeIndex)return-1!==lastNodeInside?lastNodeInside:"NEW_FOCUS";if(-1===lastNodeInside)return"NEW_FOCUS";var nodes,resultSet,indexDiff=activeIndex-lastIndex,firstNodeIndex=outerNodes.indexOf(firstFocus),lastNodeIndex=outerNodes.indexOf(lastFocus),correctedNodes=(nodes=outerNodes,resultSet=new Set,nodes.forEach((function(node){return resultSet.add(correctNode(node,nodes))})),nodes.filter((function(node){return resultSet.has(node)}))),correctedIndexDiff=(void 0!==activeElement?correctedNodes.indexOf(activeElement):-1)-(lastNode?correctedNodes.indexOf(lastNode):activeIndex);if(!indexDiff&&lastNodeInside>=0)return lastNodeInside;if(0===innerTabbables.length)return lastNodeInside;var returnFirstNode=pickFocusable(innerNodes,innerTabbables[0]),returnLastNode=pickFocusable(innerNodes,innerTabbables[innerTabbables.length-1]);return activeIndex<=firstNodeIndex&&isOnGuard&&Math.abs(indexDiff)>1?returnLastNode:activeIndex>=lastNodeIndex&&isOnGuard&&Math.abs(indexDiff)>1?returnFirstNode:indexDiff&&Math.abs(correctedIndexDiff)>1?lastNodeInside:activeIndex<=firstNodeIndex?returnLastNode:activeIndex>lastNodeIndex?returnFirstNode:indexDiff?Math.abs(indexDiff)>1?lastNodeInside:(cnt+lastNodeInside+indexDiff)%cnt:void 0}},pickAutofocus=function(nodesIndexes,orderedNodes,groups){var autoFocusables,nodes=nodesIndexes.map((function(_a){return _a.node})),autoFocusable=filterAutoFocusable(nodes.filter((autoFocusables=groups,function(node){var _a,autofocus=null===(_a=getDataset(node))||void 0===_a?void 0:_a.autofocus;return node.autofocus||void 0!==autofocus&&"false"!==autofocus||autoFocusables.indexOf(node)>=0})));return autoFocusable&&autoFocusable.length?pickFirstFocus(autoFocusable):pickFirstFocus(filterAutoFocusable(orderedNodes))},getParents=function(node,parents){return void 0===parents&&(parents=[]),parents.push(node),node.parentNode&&getParents(node.parentNode.host||node.parentNode,parents),parents},getCommonParent=function(nodeA,nodeB){for(var parentsA=getParents(nodeA),parentsB=getParents(nodeB),i=0;i=0)return currentParent}return!1},getTopCommonParent=function(baseActiveElement,leftEntry,rightEntries){var activeElements=asArray(baseActiveElement),leftEntries=asArray(leftEntry),activeElement=activeElements[0],topCommon=!1;return leftEntries.filter(Boolean).forEach((function(entry){topCommon=getCommonParent(topCommon||entry,entry)||topCommon,rightEntries.filter(Boolean).forEach((function(subEntry){var common=getCommonParent(activeElement,subEntry);common&&(topCommon=!topCommon||contains(common,topCommon)?common:getCommonParent(common,topCommon))}))})),topCommon},allParentAutofocusables=function(entries,visibilityCache){return entries.reduce((function(acc,node){return acc.concat(parentAutofocusables(node,visibilityCache))}),[])},focusSolver=function(topNode,lastNode){var activeElement=getActiveElement(asArray(topNode).length>0?document:getFirst(topNode).ownerDocument),entries=getAllAffectedNodes(topNode).filter(isNotAGuard),commonParent=getTopCommonParent(activeElement||topNode,topNode,entries),visibilityCache=new Map,anyFocusable=getFocusableNodes(entries,visibilityCache),innerElements=anyFocusable.filter((function(_a){var node=_a.node;return isNotAGuard(node)}));if(innerElements[0]){var srcNodes,dstNodes,remap,outerNodes=getFocusableNodes([commonParent],visibilityCache).map((function(_a){return _a.node})),orderedInnerElements=(srcNodes=outerNodes,dstNodes=innerElements,remap=new Map,dstNodes.forEach((function(entity){return remap.set(entity.node,entity)})),srcNodes.map((function(node){return remap.get(node)})).filter(isDefined)),innerFocusables=orderedInnerElements.map((function(_a){return _a.node})),innerTabbable=orderedInnerElements.filter((function(_a){return _a.tabIndex>=0})).map((function(_a){return _a.node})),newId=newFocus(innerFocusables,innerTabbable,outerNodes,activeElement,lastNode);if("NEW_FOCUS"===newId){var focusNode=pickAutofocus(anyFocusable,innerTabbable,allParentAutofocusables(entries,visibilityCache))||pickAutofocus(anyFocusable,innerFocusables,allParentAutofocusables(entries,visibilityCache));return focusNode?{node:focusNode}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===newId?newId:orderedInnerElements[newId]}},guardCount=0,lockDisabled=!1,moveFocusInside=function(topNode,lastNode,options){void 0===options&&(options={});var focusable=focusSolver(topNode,lastNode);if(!lockDisabled&&focusable){if(guardCount>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,void setTimeout((function(){lockDisabled=!1}),1);guardCount++,focusOn(focusable.node,options.focusOptions),guardCount--}},moveFocus=function(fromElement,options,cb){void 0===options&&(options={});var newOptions=function(options){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},options)}(options),solution=function(element,scope,useTabbables){if(!element||!scope)return console.error("no element or scope given"),{};var shards=asArray(scope);if(shards.every((function(shard){return!contains(shard,element)})))return console.error("Active element is not contained in the scope"),{};var focusables=useTabbables?getTabbableNodes(shards,new Map):getFocusableNodes(shards,new Map),current=focusables.findIndex((function(_a){return _a.node===element}));return-1!==current?{prev:focusables[current-1],next:focusables[current+1],first:focusables[0],last:focusables[focusables.length-1]}:void 0}(fromElement,newOptions.scope,newOptions.onlyTabbable);if(solution){var target=cb(solution,newOptions.cycle);target&&focusOn(target.node,newOptions.focusOptions)}},pickBoundary=function(scope,options,what){var _a,shards,useTabbables,set,node=(shards=scope,useTabbables=null===(_a=options.onlyTabbable)||void 0===_a||_a,{first:(set=useTabbables?getTabbableNodes(asArray(shards),new Map):getFocusableNodes(asArray(shards),new Map))[0],last:set[set.length-1]})[what];node&&focusOn(node.node,options.focusOptions)};function weakRef(value){if(!value)return null;if("undefined"==typeof WeakRef)return function(){return value||null};var w=value?new WeakRef(value):null;return function(){return(null==w?void 0:w.deref())||null}}function deferAction(action){setTimeout(action,1)}var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref},isFreeFocus=function isFreeFocus(){return function focusOnBody(){return document&&document.activeElement===document.body}()||function(inDocument){void 0===inDocument&&(inDocument=document);var activeElement=getActiveElement(inDocument);return!!activeElement&&toArray(inDocument.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(node){return contains(node,activeElement)}))}()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function defaultWhitelist(){return!0};function autoGuard(startIndex,end,step,allNodes){var lastGuard=null,i=startIndex;do{var item=allNodes[i];if(item.guard)item.node.dataset.focusAutoGuard&&(lastGuard=item);else{if(!item.lockItem)break;if(i!==startIndex)return;lastGuard=null}}while((i+=step)!==end);lastGuard&&(lastGuard.node.tabIndex=0)}var checkInHost=function checkInHost(check,el,boundary){return el&&(el.host===check&&(!el.activeElement||boundary.contains(el.activeElement))||el.parentNode&&checkInHost(check,el.parentNode,boundary))},activateTrap=function activateTrap(){var topNode,entries,commonParent,outerNodes,innerElements,result=!1;if(lastActiveTrap){var _lastActiveTrap=lastActiveTrap,observed=_lastActiveTrap.observed,persistentFocus=_lastActiveTrap.persistentFocus,autoFocus=_lastActiveTrap.autoFocus,shards=_lastActiveTrap.shards,crossFrame=_lastActiveTrap.crossFrame,focusOptions=_lastActiveTrap.focusOptions,workingNode=observed||lastPortaledElement&&lastPortaledElement.portaledElement,activeElement=document&&document.activeElement;if(workingNode){var workingArea=[workingNode].concat(shards.map(extractRef).filter(Boolean));if(activeElement&&!function focusWhitelisted(activeElement){return(lastActiveTrap.whiteList||defaultWhitelist)(activeElement)}(activeElement)||(persistentFocus||function focusWasOutside(crossFrameOption){return crossFrameOption?Boolean(focusWasOutsideWindow):"meanwhile"===focusWasOutsideWindow}(crossFrame)||!isFreeFocus()||!lastActiveFocus&&autoFocus)&&(workingNode&&!(focusInside(workingArea)||activeElement&&function withinHost(activeElement,workingArea){return workingArea.some((function(area){return checkInHost(activeElement,area,area)}))}(activeElement,workingArea)||function focusIsPortaledPair(element){return lastPortaledElement&&lastPortaledElement.portaledElement===element}(activeElement))&&(document&&!lastActiveFocus&&activeElement&&!autoFocus?(activeElement.blur&&activeElement.blur(),document.body.focus()):(result=moveFocusInside(workingArea,lastActiveFocus,{focusOptions}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document&&activeElement!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var newActiveElement=document&&document.activeElement,allNodes=(entries=getAllAffectedNodes(topNode=workingArea).filter(isNotAGuard),commonParent=getTopCommonParent(topNode,topNode,entries),outerNodes=orderByTabIndex(getFocusables([commonParent],!0),!0,!0),innerElements=getFocusables(entries,!1),outerNodes.map((function(_a){var node=_a.node;return{node,index:_a.index,lockItem:innerElements.indexOf(node)>=0,guard:isGuard(node)}}))),focusedIndex=allNodes.map((function(_ref){return _ref.node})).indexOf(newActiveElement);focusedIndex>-1&&(allNodes.filter((function(_ref2){var guard=_ref2.guard,node=_ref2.node;return guard&&node.dataset.focusAutoGuard})).forEach((function(_ref3){return _ref3.node.removeAttribute("tabIndex")})),autoGuard(focusedIndex,allNodes.length,1,allNodes),autoGuard(focusedIndex,-1,-1,allNodes))}}}return result},onTrap=function onTrap(event){activateTrap()&&event&&(event.stopPropagation(),event.preventDefault())},onBlur=function onBlur(){return deferAction(activateTrap)},onFocus=function onFocus(event){var source=event.target,currentNode=event.currentTarget;currentNode.contains(source)||function recordPortal(observerNode,portaledElement){lastPortaledElement={observerNode,portaledElement}}(currentNode,source)},onWindowBlur=function onWindowBlur(){focusWasOutsideWindow="just",deferAction((function(){focusWasOutsideWindow="meanwhile"}))};var focusLockAPI={moveFocusInside,focusInside,focusNextElement:function(fromElement,options){void 0===options&&(options={}),moveFocus(fromElement,options,(function(_a,cycle){var next=_a.next,first=_a.first;return next||cycle&&first}))},focusPrevElement:function(fromElement,options){void 0===options&&(options={}),moveFocus(fromElement,options,(function(_a,cycle){var prev=_a.prev,last=_a.last;return prev||cycle&&last}))},focusFirstElement:function(scope,options){void 0===options&&(options={}),pickBoundary(scope,options,"first")},focusLastElement:function(scope,options){void 0===options&&(options={}),pickBoundary(scope,options,"last")},captureFocusRestore:function(targetElement){var location=function(element){if(!element)return null;for(var stack=[],currentElement=element;currentElement&¤tElement!==document.body;)stack.push({current:weakRef(currentElement),parent:weakRef(currentElement.parentElement),left:weakRef(currentElement.previousElementSibling),right:weakRef(currentElement.nextElementSibling)}),currentElement=currentElement.parentElement;return{element:weakRef(element),stack,ownerDocument:element.ownerDocument}}(targetElement);return function(){return function(location){var _a,_b,_c,_d,_e;if(location)for(var stack=location.stack,ownerDocument=location.ownerDocument,visibilityCache=new Map,_i=0,stack_1=stack;_i{"use strict";__webpack_require__.d(__webpack_exports__,{RT:()=>themedObjectInspector});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(cb,mod)=>function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},require_is_object=__commonJS({"node_modules/is-object/index.js"(exports,module){module.exports=function isObject(x){return"object"==typeof x&&null!==x}}}),require_is_window=__commonJS({"node_modules/is-window/index.js"(exports,module){module.exports=function(obj){if(null==obj)return!1;var o=Object(obj);return o===o.window}}}),require_is_dom=__commonJS({"node_modules/is-dom/index.js"(exports,module){var isObject=require_is_object(),isWindow=require_is_window();module.exports=function isNode(val){return!(!isObject(val)||!isWindow(window)||"function"!=typeof window.Node)&&("number"==typeof val.nodeType&&"string"==typeof val.nodeName)}}}),themes_exports={};((target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})})(themes_exports,{chromeDark:()=>theme,chromeLight:()=>theme2});var theme={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"},theme2={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"},ExpandedPathsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)([{},()=>{}]),unselectable={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},createTheme=theme3=>({DOMNodePreview:{htmlOpenTag:{base:{color:theme3.HTML_TAG_COLOR},tagName:{color:theme3.HTML_TAGNAME_COLOR,textTransform:theme3.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:theme3.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:theme3.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:theme3.HTML_TAG_COLOR},offsetLeft:{marginLeft:-theme3.TREENODE_PADDING_LEFT},tagName:{color:theme3.HTML_TAGNAME_COLOR,textTransform:theme3.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:theme3.HTML_COMMENT_COLOR},htmlDoctype:{color:theme3.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:theme3.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:theme3.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:theme3.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:theme3.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:theme3.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:theme3.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:theme3.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:theme3.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:theme3.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:theme3.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:theme3.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:theme3.BASE_COLOR,backgroundColor:theme3.BASE_BACKGROUND_COLOR,lineHeight:theme3.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:theme3.TREENODE_FONT_FAMILY,fontSize:theme3.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:theme3.ARROW_FONT_SIZE,marginRight:theme3.ARROW_MARGIN_RIGHT,...unselectable},treeNodeArrow:{base:{color:theme3.ARROW_COLOR,display:"inline-block",fontSize:theme3.ARROW_FONT_SIZE,marginRight:theme3.ARROW_MARGIN_RIGHT,...parseFloat(theme3.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${theme3.ARROW_ANIMATION_DURATION} ease 0s`}:{},...unselectable},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:theme3.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:theme3.BASE_COLOR,position:"relative",border:`1px solid ${theme3.TABLE_BORDER_COLOR}`,fontFamily:theme3.BASE_FONT_FAMILY,fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:theme3.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:theme3.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:theme3.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${theme3.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:theme3.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${theme3.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:theme3.TABLE_SORT_ICON_COLOR,fontSize:12,...unselectable}}),ThemeContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(createTheme(themes_exports.chromeLight)),useStyles=baseStylesKey=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext)[baseStylesKey],themeAcceptor=WrappedComponent=>({theme:theme3="chromeLight",...restProps})=>{const themeStyles=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{switch(Object.prototype.toString.call(theme3)){case"[object String]":return createTheme(themes_exports[theme3]);case"[object Object]":return createTheme(theme3);default:return createTheme(themes_exports.chromeLight)}}),[theme3]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThemeContext.Provider,{value:themeStyles},react__WEBPACK_IMPORTED_MODULE_0__.createElement(WrappedComponent,{...restProps}))},Arrow=({expanded,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{...styles.base,...expanded?styles.expanded:styles.collapsed}},"▶"),TreeNode=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((props=>{props={expanded:!0,nodeRenderer:({name})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,name),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...props};const{expanded,onClick,children,nodeRenderer,title,shouldShowArrow,shouldShowPlaceholder}=props,styles=useStyles("TreeNode"),NodeRenderer=nodeRenderer;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{"aria-expanded":expanded,role:"treeitem",style:styles.treeNodeBase,title},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.treeNodePreviewContainer,onClick},shouldShowArrow||react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Arrow,{expanded,styles:styles.treeNodeArrow}):shouldShowPlaceholder&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.treeNodePlaceholder}," "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(NodeRenderer,{...props})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol",{role:"group",style:styles.treeNodeChildNodesContainer},expanded?children:void 0))})),DEFAULT_ROOT_PATH="$";function hasChildNodes(data,dataIterator){return!dataIterator(data).next().done}var getExpandedPaths=(data,dataIterator,expandPaths,expandLevel,prevExpandedPaths)=>{const wildcardPaths=[].concat((level=expandLevel,Array.from({length:level},((_,i)=>[DEFAULT_ROOT_PATH].concat(Array.from({length:i},(()=>"*"))).join("."))))).concat(expandPaths).filter((path=>"string"==typeof path));var level;const expandedPaths=[];return wildcardPaths.forEach((wildcardPath=>{const keyPaths=wildcardPath.split("."),populatePaths=(curData,curPath,depth)=>{if(depth===keyPaths.length)return void expandedPaths.push(curPath);const key=keyPaths[depth];if(0===depth)!hasChildNodes(curData,dataIterator)||key!==DEFAULT_ROOT_PATH&&"*"!==key||populatePaths(curData,DEFAULT_ROOT_PATH,depth+1);else if("*"===key)for(const{name,data:data2}of dataIterator(curData))hasChildNodes(data2,dataIterator)&&populatePaths(data2,`${curPath}.${name}`,depth+1);else{const value=curData[key];hasChildNodes(value,dataIterator)&&populatePaths(value,`${curPath}.${key}`,depth+1)}};populatePaths(data,"",0)})),expandedPaths.reduce(((obj,path)=>(obj[path]=!0,obj)),{...prevExpandedPaths})},ConnectedTreeNode=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((props=>{const{data,dataIterator,path,depth,nodeRenderer}=props,[expandedPaths,setExpandedPaths]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ExpandedPathsContext),nodeHasChildNodes=hasChildNodes(data,dataIterator),expanded=!!expandedPaths[path],handleClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>nodeHasChildNodes&&setExpandedPaths((prevExpandedPaths=>({...prevExpandedPaths,[path]:!expanded})))),[nodeHasChildNodes,setExpandedPaths,path,expanded]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeNode,{expanded,onClick:handleClick,shouldShowArrow:nodeHasChildNodes,shouldShowPlaceholder:depth>0,nodeRenderer,...props},expanded?[...dataIterator(data)].map((({name,data:data2,...renderNodeProps})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ConnectedTreeNode,{name,data:data2,depth:depth+1,path:`${path}.${name}`,key:name,dataIterator,nodeRenderer,...renderNodeProps}))):null)})),TreeView=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((({name,data,dataIterator,nodeRenderer,expandPaths,expandLevel})=>{const styles=useStyles("TreeView"),stateAndSetter=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[,setExpandedPaths]=stateAndSetter;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>setExpandedPaths((prevExpandedPaths=>getExpandedPaths(data,dataIterator,expandPaths,expandLevel,prevExpandedPaths)))),[data,dataIterator,expandPaths,expandLevel]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpandedPathsContext.Provider,{value:stateAndSetter},react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol",{role:"tree",style:styles.treeViewOutline},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ConnectedTreeNode,{name,data,dataIterator,depth:0,path:DEFAULT_ROOT_PATH,nodeRenderer})))})),ObjectName=({name,dimmed=!1,styles={}})=>{const themeStyles=useStyles("ObjectName"),appliedStyles={...themeStyles.base,...dimmed?themeStyles.dimmed:{},...styles};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:appliedStyles},name)},ObjectValue=({object,styles})=>{const themeStyles=useStyles("ObjectValue"),mkStyle=key=>({...themeStyles[key],...styles});switch(typeof object){case"bigint":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNumber")},String(object),"n");case"number":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNumber")},String(object));case"string":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueString")},'"',object,'"');case"boolean":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueBoolean")},String(object));case"undefined":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueUndefined")},"undefined");case"object":return null===object?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNull")},"null"):object instanceof Date?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,object.toString()):object instanceof RegExp?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueRegExp")},object.toString()):Array.isArray(object)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,`Array(${object.length})`):object.constructor?"function"==typeof object.constructor.isBuffer&&object.constructor.isBuffer(object)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,`Buffer[${object.length}]`):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,object.constructor.name):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Object");case"function":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueFunctionPrefix")},"ƒ "),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueFunctionName")},object.name,"()"));case"symbol":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueSymbol")},object.toString());default:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null)}},hasOwnProperty=Object.prototype.hasOwnProperty,propertyIsEnumerable=Object.prototype.propertyIsEnumerable;function getPropertyValue(object,propertyName){const propertyDescriptor=Object.getOwnPropertyDescriptor(object,propertyName);if(propertyDescriptor.get)try{return propertyDescriptor.get()}catch{return propertyDescriptor.get}return object[propertyName]}function intersperse(arr,sep){return 0===arr.length?[]:arr.slice(1).reduce(((xs,x)=>xs.concat([sep,x])),[arr[0]])}var ObjectPreview=({data})=>{const styles=useStyles("ObjectPreview"),object=data;if("object"!=typeof object||null===object||object instanceof Date||object instanceof RegExp)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object});if(Array.isArray(object)){const maxProperties=styles.arrayMaxProperties,previewArray=object.slice(0,maxProperties).map(((element,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{key:index,object:element})));object.length>maxProperties&&previewArray.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:"ellipsis"},"…"));const arrayLength=object.length;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.objectDescription},0===arrayLength?"":`(${arrayLength}) `),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.preview},"[",intersperse(previewArray,", "),"]"))}{const maxProperties=styles.objectMaxProperties,propertyNodes=[];for(const propertyName in object)if(hasOwnProperty.call(object,propertyName)){let ellipsis;propertyNodes.length===maxProperties-1&&Object.keys(object).length>maxProperties&&(ellipsis=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:"ellipsis"},"…"));const propertyValue=getPropertyValue(object,propertyName);if(propertyNodes.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:propertyName},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name:propertyName||'""'}),": ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object:propertyValue}),ellipsis)),ellipsis)break}const objectConstructorName=object.constructor?object.constructor.name:"Object";return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.objectDescription},"Object"===objectConstructorName?"":`${objectConstructorName} `),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.preview},"{",intersperse(propertyNodes,", "),"}"))}},ObjectRootLabel=({name,data})=>"string"==typeof name?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,": "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data}),ObjectLabel=({name,data,isNonenumerable=!1})=>{const object=data;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"string"==typeof name?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name,dimmed:isNonenumerable}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data:name}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,": "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object}))},defaultNodeRenderer=({depth,name,data,isNonenumerable})=>0===depth?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectRootLabel,{name,data}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectLabel,{name,data,isNonenumerable}),themedObjectInspector=themeAcceptor((({showNonenumerable=!1,sortObjectKeys,nodeRenderer,...treeViewProps})=>{const dataIterator=((showNonenumerable,sortObjectKeys)=>function*(data){if(("object"!=typeof data||null===data)&&"function"!=typeof data)return;const dataIsArray=Array.isArray(data);if(!dataIsArray&&data[Symbol.iterator]){let i=0;for(const entry of data){if(Array.isArray(entry)&&2===entry.length){const[k,v]=entry;yield{name:k,data:v}}else yield{name:i.toString(),data:entry};i++}}else{const keys=Object.getOwnPropertyNames(data);!0!==sortObjectKeys||dataIsArray?"function"==typeof sortObjectKeys&&keys.sort(sortObjectKeys):keys.sort();for(const propertyName of keys)if(propertyIsEnumerable.call(data,propertyName)){const propertyValue=getPropertyValue(data,propertyName);yield{name:propertyName||'""',data:propertyValue}}else if(showNonenumerable){let propertyValue;try{propertyValue=getPropertyValue(data,propertyName)}catch(e){}void 0!==propertyValue&&(yield{name:propertyName,data:propertyValue,isNonenumerable:!0})}showNonenumerable&&data!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(data),isNonenumerable:!0})}})(showNonenumerable,sortObjectKeys),renderer=nodeRenderer||defaultNodeRenderer;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeView,{nodeRenderer:renderer,dataIterator,...treeViewProps})}));var mod,isNodeMode,target,DataContainer=({rows,columns,rowsData})=>{const styles=useStyles("TableInspectorDataContainer"),borderStyles=useStyles("TableInspectorLeftBorder");return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.div},react__WEBPACK_IMPORTED_MODULE_0__.createElement("table",{style:styles.table},react__WEBPACK_IMPORTED_MODULE_0__.createElement("colgroup",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,rows.map(((row,i)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:row,style:styles.tr},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{style:{...styles.td,...borderStyles.none}},row),columns.map((column=>{const rowData=rowsData[i];return"object"==typeof rowData&&null!==rowData&&hasOwnProperty.call(rowData,column)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{key:column,style:{...styles.td,...borderStyles.solid}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object:rowData[column]})):react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{key:column,style:{...styles.td,...borderStyles.solid}})}))))))))},SortIconContainer=props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},props.children),SortIcon=({sortAscending})=>{const styles=useStyles("TableInspectorSortIcon"),glyph=sortAscending?"▲":"▼";return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles},glyph)},TH=({sortAscending=!1,sorted=!1,onClick,borderStyle={},children,...thProps})=>{const styles=useStyles("TableInspectorTH"),[hovered,setHovered]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),handleMouseEnter=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setHovered(!0)),[]),handleMouseLeave=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setHovered(!1)),[]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",{...thProps,style:{...styles.base,...borderStyle,...hovered?styles.base[":hover"]:{}},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.div},children),sorted&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(SortIconContainer,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(SortIcon,{sortAscending})))},HeaderContainer=({indexColumnText="(index)",columns=[],sorted,sortIndexColumn,sortColumn,sortAscending,onTHClick,onIndexTHClick})=>{const styles=useStyles("TableInspectorHeaderContainer"),borderStyles=useStyles("TableInspectorLeftBorder");return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.base},react__WEBPACK_IMPORTED_MODULE_0__.createElement("table",{style:styles.table},react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TH,{borderStyle:borderStyles.none,sorted:sorted&&sortIndexColumn,sortAscending,onClick:onIndexTHClick},indexColumnText),columns.map((column=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(TH,{borderStyle:borderStyles.solid,key:column,sorted:sorted&&sortColumn===column,sortAscending,onClick:onTHClick.bind(null,column)},column)))))))},shouldInline=(themeAcceptor((({data,columns})=>{const styles=useStyles("TableInspector"),[{sorted,sortIndexColumn,sortColumn,sortAscending},setState]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),handleIndexTHClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setState((({sortIndexColumn:sortIndexColumn2,sortAscending:sortAscending2})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:!sortIndexColumn2||!sortAscending2})))}),[]),handleTHClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((col=>{setState((({sortColumn:sortColumn2,sortAscending:sortAscending2})=>({sorted:!0,sortIndexColumn:!1,sortColumn:col,sortAscending:col!==sortColumn2||!sortAscending2})))}),[]);if("object"!=typeof data||null===data)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null);let{rowHeaders,colHeaders}=function getHeaders(data){if("object"==typeof data){let rowHeaders=[];if(Array.isArray(data)){const nRows=data.length;rowHeaders=[...Array(nRows).keys()]}else null!==data&&(rowHeaders=Object.keys(data));const colHeaders=rowHeaders.reduce(((colHeaders2,rowHeader)=>{const row=data[rowHeader];return"object"==typeof row&&null!==row&&Object.keys(row).reduce(((xs,x)=>(xs.includes(x)||xs.push(x),xs)),colHeaders2),colHeaders2}),[]);return{rowHeaders,colHeaders}}}(data);void 0!==columns&&(colHeaders=columns);let columnDataWithRowIndexes,rowsData=rowHeaders.map((rowHeader=>data[rowHeader]));if(void 0!==sortColumn?columnDataWithRowIndexes=rowsData.map(((rowData,index)=>{if("object"==typeof rowData&&null!==rowData){return[rowData[sortColumn],index]}return[void 0,index]})):sortIndexColumn&&(columnDataWithRowIndexes=rowHeaders.map(((rowData,index)=>[rowHeaders[index],index]))),void 0!==columnDataWithRowIndexes){const comparator=(mapper,ascending)=>(a,b)=>{const v1=mapper(a),v2=mapper(b),type1=typeof v1,type2=typeof v2,lt=(v12,v22)=>v12v22?1:0;let result;if(type1===type2)result=lt(v1,v2);else{const order={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};result=lt(order[type1],order[type2])}return ascending||(result=-result),result},sortedRowIndexes=columnDataWithRowIndexes.sort(comparator((item=>item[0]),sortAscending)).map((item=>item[1]));rowHeaders=sortedRowIndexes.map((i=>rowHeaders[i])),rowsData=sortedRowIndexes.map((i=>rowsData[i]))}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.base},react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderContainer,{columns:colHeaders,sorted,sortIndexColumn,sortColumn,sortAscending,onTHClick:handleTHClick,onIndexTHClick:handleIndexTHClick}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DataContainer,{rows:rowHeaders,columns:colHeaders,rowsData}))})),data=>0===data.childNodes.length||1===data.childNodes.length&&data.childNodes[0].nodeType===Node.TEXT_NODE&&data.textContent.length<80),OpenTag=({tagName,attributes,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.base},"<",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.tagName},tagName),(()=>{if(attributes){const attributeNodes=[];for(let i=0;i"),CloseTag=({tagName,isChildNode=!1,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:Object.assign({},styles.base,isChildNode&&styles.offsetLeft)},""),nameByNodeType={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},DOMNodePreview=({isCloseTag,data,expanded})=>{const styles=useStyles("DOMNodePreview");if(isCloseTag)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(CloseTag,{styles:styles.htmlCloseTag,isChildNode:!0,tagName:data.tagName});switch(data.nodeType){case Node.ELEMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OpenTag,{tagName:data.tagName,attributes:data.attributes,styles:styles.htmlOpenTag}),shouldInline(data)?data.textContent:!expanded&&"…",!expanded&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(CloseTag,{tagName:data.tagName,styles:styles.htmlCloseTag}));case Node.TEXT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.textContent);case Node.CDATA_SECTION_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"");case Node.COMMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.htmlComment},"\x3c!--",data.textContent,"--\x3e");case Node.PROCESSING_INSTRUCTION_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.nodeName);case Node.DOCUMENT_TYPE_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.htmlDoctype},"");case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.nodeName);default:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,nameByNodeType[data.nodeType])}},domIterator=function*(data){if(data&&data.childNodes){if(shouldInline(data))return;for(let i=0;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeView,{nodeRenderer:DOMNodePreview,dataIterator:domIterator,...props}))),mod=require_is_dom(),target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)},"./node_modules/react-is/cjs/react-is.production.min.js":(__unused_webpack_module,exports)=>{"use strict";var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l,exports.ConcurrentMode=m,exports.ContextConsumer=k,exports.ContextProvider=h,exports.Element=c,exports.ForwardRef=n,exports.Fragment=e,exports.Lazy=t,exports.Memo=r,exports.Portal=d,exports.Profiler=g,exports.StrictMode=f,exports.Suspense=p,exports.isAsyncMode=function(a){return A(a)||z(a)===l},exports.isConcurrentMode=A,exports.isContextConsumer=function(a){return z(a)===k},exports.isContextProvider=function(a){return z(a)===h},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===c},exports.isForwardRef=function(a){return z(a)===n},exports.isFragment=function(a){return z(a)===e},exports.isLazy=function(a){return z(a)===t},exports.isMemo=function(a){return z(a)===r},exports.isPortal=function(a){return z(a)===d},exports.isProfiler=function(a){return z(a)===g},exports.isStrictMode=function(a){return z(a)===f},exports.isSuspense=function(a){return z(a)===p},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"==typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)},exports.typeOf=z},"./node_modules/react-is/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react-rnd/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>Rnd});var react=__webpack_require__("./node_modules/react/index.js"),cjs=__webpack_require__("./node_modules/react-draggable/build/cjs/cjs.js"),cjs_default=__webpack_require__.n(cjs),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),__extends=function(){var 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)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;iNumber(maxWidth)?maxWidth:max})}if(hasRight||this.props.lockAspectRatio&&!hasLeft&&!hasTop){max=offsetWidth+(boundaryLeft-selfLeft)/scale;this.setState({maxWidth:max>Number(maxWidth)?maxWidth:max})}if((hasTop||hasLeft)&&this.resizable){max=(selfTop-boundaryTop)/scale+this.resizable.size.height;this.setState({maxHeight:max>Number(maxHeight)?maxHeight:max})}if(hasBottom||this.props.lockAspectRatio&&!hasTop&&!hasLeft){max=offsetHeight+(boundaryTop-selfTop)/scale;this.setState({maxHeight:max>Number(maxHeight)?maxHeight:max})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,dir,elementRef)},Rnd.prototype.onResize=function(e,direction,elementRef,delta){var newPos={x:this.originalPosition.x,y:this.originalPosition.y},left=-delta.width,top=-delta.height;["top","left","topLeft","bottomLeft","topRight"].includes(direction)&&("bottomLeft"===direction?newPos.x+=left:("topRight"===direction||(newPos.x+=left),newPos.y+=top));var draggableState=this.draggable.state;newPos.x===draggableState.x&&newPos.y===draggableState.y||this.draggable.setState(newPos),this.updateOffsetFromParent();var offset=this.offsetFromParent,x=this.getDraggablePosition().x+offset.left,y=this.getDraggablePosition().y+offset.top;this.resizingPosition={x,y},this.props.onResize&&this.props.onResize(e,direction,elementRef,delta,{x,y})},Rnd.prototype.onResizeStop=function(e,direction,elementRef,delta){this.setState({resizing:!1});var _a=this.getMaxSizesFromProps(),maxWidth=_a.maxWidth,maxHeight=_a.maxHeight;this.setState({maxWidth,maxHeight}),this.props.onResizeStop&&this.props.onResizeStop(e,direction,elementRef,delta,this.resizingPosition)},Rnd.prototype.updateSize=function(size){this.resizable&&this.resizable.updateSize({width:size.width,height:size.height})},Rnd.prototype.updatePosition=function(position){this.draggable.setState(position)},Rnd.prototype.updateOffsetFromParent=function(){var scale=this.props.scale,parent=this.getParent(),self=this.getSelfElement();if(!parent||null===self)return{top:0,left:0};var parentRect=parent.getBoundingClientRect(),parentLeft=parentRect.left,parentTop=parentRect.top,selfRect=self.getBoundingClientRect(),position=this.getDraggablePosition(),scrollLeft=parent.scrollLeft,scrollTop=parent.scrollTop;this.offsetFromParent={left:selfRect.left-parentLeft+scrollLeft-position.x*scale,top:selfRect.top-parentTop+scrollTop-position.y*scale}},Rnd.prototype.render=function(){var _a=this.props,disableDragging=_a.disableDragging,style=_a.style,dragHandleClassName=_a.dragHandleClassName,position=_a.position,onMouseDown=_a.onMouseDown,onMouseUp=_a.onMouseUp,dragAxis=_a.dragAxis,dragGrid=_a.dragGrid,bounds=_a.bounds,enableUserSelectHack=_a.enableUserSelectHack,cancel=_a.cancel,children=_a.children,resizeHandleStyles=(_a.onResizeStart,_a.onResize,_a.onResizeStop,_a.onDragStart,_a.onDrag,_a.onDragStop,_a.resizeHandleStyles),resizeHandleClasses=_a.resizeHandleClasses,resizeHandleComponent=_a.resizeHandleComponent,enableResizing=_a.enableResizing,resizeGrid=_a.resizeGrid,resizeHandleWrapperClass=_a.resizeHandleWrapperClass,resizeHandleWrapperStyle=_a.resizeHandleWrapperStyle,scale=_a.scale,allowAnyClick=_a.allowAnyClick,resizableProps=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__,{A:()=>esm_CSSTransition});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function replaceClassName(origClass,classToRemove){return origClass.replace(new RegExp("(^|\\s)"+classToRemove+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var react=__webpack_require__("./node_modules/react/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js");const config_disabled=!1;var TransitionGroupContext=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroupContext.js"),forceReflow=function forceReflow(node){return node.scrollTop},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.A)(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&&forceReflow(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.A)(_this$props,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return react.createElement(TransitionGroupContext.A.Provider,{value:null},"function"==typeof children?children(status,childProps):react.cloneElement(react.Children.only(children),childProps))},Transition}(react.Component);function noop(){}Transition.contextType=TransitionGroupContext.A,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 removeClass=function removeClass(node,classes){return node&&classes&&classes.split(" ").forEach((function(c){return function removeClass_removeClass(element,className){element.classList?element.classList.remove(className):"string"==typeof element.className?element.className=replaceClassName(element.className,className):element.setAttribute("class",replaceClassName(element.className&&element.className.baseVal||"",className))}(node,c)}))},CSSTransition=function(_React$Component){function CSSTransition(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).appliedClasses={appear:{},enter:{},exit:{}},_this.onEnter=function(maybeNode,maybeAppearing){var _this$resolveArgument=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument[0],appearing=_this$resolveArgument[1];_this.removeClasses(node,"exit"),_this.addClass(node,appearing?"appear":"enter","base"),_this.props.onEnter&&_this.props.onEnter(maybeNode,maybeAppearing)},_this.onEntering=function(maybeNode,maybeAppearing){var _this$resolveArgument2=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument2[0],type=_this$resolveArgument2[1]?"appear":"enter";_this.addClass(node,type,"active"),_this.props.onEntering&&_this.props.onEntering(maybeNode,maybeAppearing)},_this.onEntered=function(maybeNode,maybeAppearing){var _this$resolveArgument3=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument3[0],type=_this$resolveArgument3[1]?"appear":"enter";_this.removeClasses(node,type),_this.addClass(node,type,"done"),_this.props.onEntered&&_this.props.onEntered(maybeNode,maybeAppearing)},_this.onExit=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.removeClasses(node,"appear"),_this.removeClasses(node,"enter"),_this.addClass(node,"exit","base"),_this.props.onExit&&_this.props.onExit(maybeNode)},_this.onExiting=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.addClass(node,"exit","active"),_this.props.onExiting&&_this.props.onExiting(maybeNode)},_this.onExited=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.removeClasses(node,"exit"),_this.addClass(node,"exit","done"),_this.props.onExited&&_this.props.onExited(maybeNode)},_this.resolveArguments=function(maybeNode,maybeAppearing){return _this.props.nodeRef?[_this.props.nodeRef.current,maybeNode]:[maybeNode,maybeAppearing]},_this.getClassNames=function(type){var classNames=_this.props.classNames,isStringClassNames="string"==typeof classNames,baseClassName=isStringClassNames?""+(isStringClassNames&&classNames?classNames+"-":"")+type:classNames[type];return{baseClassName,activeClassName:isStringClassNames?baseClassName+"-active":classNames[type+"Active"],doneClassName:isStringClassNames?baseClassName+"-done":classNames[type+"Done"]}},_this}(0,inheritsLoose.A)(CSSTransition,_React$Component);var _proto=CSSTransition.prototype;return _proto.addClass=function addClass(node,type,phase){var className=this.getClassNames(type)[phase+"ClassName"],doneClassName=this.getClassNames("enter").doneClassName;"appear"===type&&"done"===phase&&doneClassName&&(className+=" "+doneClassName),"active"===phase&&node&&forceReflow(node),className&&(this.appliedClasses[type][phase]=className,function addClass(node,classes){node&&classes&&classes.split(" ").forEach((function(c){return function addClass_addClass(element,className){element.classList?element.classList.add(className):function hasClass(element,className){return element.classList?!!className&&element.classList.contains(className):-1!==(" "+(element.className.baseVal||element.className)+" ").indexOf(" "+className+" ")}(element,className)||("string"==typeof element.className?element.className=element.className+" "+className:element.setAttribute("class",(element.className&&element.className.baseVal||"")+" "+className))}(node,c)}))}(node,className))},_proto.removeClasses=function removeClasses(node,type){var _this$appliedClasses$=this.appliedClasses[type],baseClassName=_this$appliedClasses$.base,activeClassName=_this$appliedClasses$.active,doneClassName=_this$appliedClasses$.done;this.appliedClasses[type]={},baseClassName&&removeClass(node,baseClassName),activeClassName&&removeClass(node,activeClassName),doneClassName&&removeClass(node,doneClassName)},_proto.render=function render(){var _this$props=this.props,props=(_this$props.classNames,(0,objectWithoutPropertiesLoose.A)(_this$props,["classNames"]));return react.createElement(esm_Transition,(0,esm_extends.A)({},props,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},CSSTransition}(react.Component);CSSTransition.defaultProps={classNames:""},CSSTransition.propTypes={};const esm_CSSTransition=CSSTransition},"./node_modules/react-transition-group/esm/TransitionGroup.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>esm_TransitionGroup});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),assertThisInitialized=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),TransitionGroupContext=__webpack_require__("./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;i{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("./node_modules/react/index.js").createContext(null)},"./node_modules/reselect/dist/reselect.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Mz:()=>createSelector});function assertIsFunction(func,errorMessage="expected a function, instead received "+typeof func){if("function"!=typeof func)throw new TypeError(errorMessage)}var ensureIsArray=item=>Array.isArray(item)?item:[item];function getDependencies(createSelectorArgs){const dependencies=Array.isArray(createSelectorArgs[0])?createSelectorArgs[0]:createSelectorArgs;return function assertIsArrayOfFunctions(array,errorMessage="expected all items to be functions, instead received the following types: "){if(!array.every((item=>"function"==typeof item))){const itemTypes=array.map((item=>"function"==typeof item?`function ${item.name||"unnamed"}()`:typeof item)).join(", ");throw new TypeError(`${errorMessage}[${itemTypes}]`)}}(dependencies,"createSelector expects all input-selectors to be functions, but received the following types: "),dependencies}Symbol(),Object.getPrototypeOf({});var Ref="undefined"!=typeof WeakRef?WeakRef:class{constructor(value){this.value=value}deref(){return this.value}},UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function weakMapMemoize(func,options={}){let fnNode=createCacheNode();const{resultEqualityCheck}=options;let lastResult,resultsCount=0;function memoized(){let cacheNode=fnNode;const{length}=arguments;for(let i=0,l=length;i{fnNode=createCacheNode(),memoized.resetResultsCount()},memoized.resultsCount=()=>resultsCount,memoized.resetResultsCount=()=>{resultsCount=0},memoized}function createSelectorCreator(memoizeOrOptions,...memoizeOptionsFromArgs){const createSelectorCreatorOptions="function"==typeof memoizeOrOptions?{memoize:memoizeOrOptions,memoizeOptions:memoizeOptionsFromArgs}:memoizeOrOptions,createSelector2=(...createSelectorArgs)=>{let lastResult,recomputations=0,dependencyRecomputations=0,directlyPassedOptions={},resultFunc=createSelectorArgs.pop();"object"==typeof resultFunc&&(directlyPassedOptions=resultFunc,resultFunc=createSelectorArgs.pop()),assertIsFunction(resultFunc,`createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);const combinedOptions={...createSelectorCreatorOptions,...directlyPassedOptions},{memoize,memoizeOptions=[],argsMemoize=weakMapMemoize,argsMemoizeOptions=[],devModeChecks={}}=combinedOptions,finalMemoizeOptions=ensureIsArray(memoizeOptions),finalArgsMemoizeOptions=ensureIsArray(argsMemoizeOptions),dependencies=getDependencies(createSelectorArgs),memoizedResultFunc=memoize((function recomputationWrapper(){return recomputations++,resultFunc.apply(null,arguments)}),...finalMemoizeOptions);const selector=argsMemoize((function dependenciesChecker(){dependencyRecomputations++;const inputSelectorResults=function collectInputSelectorResults(dependencies,inputSelectorArgs){const inputSelectorResults=[],{length}=dependencies;for(let i=0;idependencyRecomputations,resetDependencyRecomputations:()=>{dependencyRecomputations=0},lastResult:()=>lastResult,recomputations:()=>recomputations,resetRecomputations:()=>{recomputations=0},memoize,argsMemoize})};return Object.assign(createSelector2,{withTypes:()=>createSelector2}),createSelector2}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign(((inputSelectorsObject,selectorCreator=createSelector)=>{!function assertIsObject(object,errorMessage="expected an object, instead received "+typeof object){if("object"!=typeof object)throw new TypeError(errorMessage)}(inputSelectorsObject,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof inputSelectorsObject);const inputSelectorKeys=Object.keys(inputSelectorsObject);return selectorCreator(inputSelectorKeys.map((key=>inputSelectorsObject[key])),((...inputSelectorResults)=>inputSelectorResults.reduce(((composition,value,index)=>(composition[inputSelectorKeys[index]]=value,composition)),{})))}),{withTypes:()=>createStructuredSelector})},"./node_modules/rooks/dist/esm/hooks/useForkRef.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{N:()=>useForkRef});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function setRef(ref,value){"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}function useForkRef(refA,refB){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>null===refA&&null===refB?null:refValue=>{setRef(refA,refValue),setRef(refB,refValue)}),[refA,refB])}},"./node_modules/rooks/dist/esm/hooks/useMutationObserver.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>useMutationObserver});var react=__webpack_require__("./node_modules/react/index.js");const noop=()=>{},config={attributes:!0,characterData:!0,childList:!0,subtree:!0};function useMutationObserver(ref,callback,options=config){(0,react.useEffect)((()=>{if(ref.current){const observer=new MutationObserver(callback);return observer.observe(ref.current,options),()=>{observer.disconnect()}}return noop}),[callback,options,ref])}},"./node_modules/rooks/dist/esm/hooks/usePreviousDifferent.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>usePreviousDifferent});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function usePreviousDifferent(currentValue){const previousRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),previousRef2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{previousRef2.current=previousRef.current,previousRef.current=currentValue}),[currentValue]),currentValue===previousRef.current?previousRef2.current:previousRef.current}},"./node_modules/rooks/dist/esm/hooks/usePreviousImmediate.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>usePreviousImmediate});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function usePreviousImmediate(currentValue){const previousRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{previousRef.current=currentValue})),previousRef.current}}}]); \ No newline at end of file diff --git a/latest/904.11529f6e.iframe.bundle.js b/latest/904.11529f6e.iframe.bundle.js new file mode 100644 index 00000000..6343d77b --- /dev/null +++ b/latest/904.11529f6e.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 904.11529f6e.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[904],{"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var target={};for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}__webpack_require__.d(__webpack_exports__,{A:()=>_objectWithoutPropertiesLoose})},"./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>createCache});var StyleSheet=function(){function StyleSheet(options){var _this=this;this._insertTag=function(tag){var before;before=0===_this.tags.length?_this.insertionPoint?_this.insertionPoint.nextSibling:_this.prepend?_this.container.firstChild:_this.before:_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.insertionPoint=options.insertionPoint,this.before=null}var _proto=StyleSheet.prototype;return _proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)},_proto.insert=function insert(rule){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}(this));var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i0?Utility_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)+"*"+Utility_from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}var COMMENT="comm",Enum_RULESET="rule",Enum_DECLARATION="decl";function Serializer_serialize(children,callback){for(var output="",length=Utility_sizeof(children),i=0;i0&&Utility_strlen(characters)-length&&Utility_append(property>32?declaration(characters+";",rule,parent,length-1):declaration(Utility_replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(Utility_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(99===atrule&&110===Utility_charat(characters,3)?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&Utility_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+Utility_strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=Utility_from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(Utility_strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=Utility_strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==Utility_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=Utility_sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:Utility_replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?Enum_RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,Utility_from(function Tokenizer_char(){return character}()),Utility_substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,Enum_DECLARATION,Utility_substr(value,0,length),Utility_substr(value,length+1,-1),length)}var identifierWithPointTracking=function identifierWithPointTracking(begin,points,index){for(var previous=0,character=0;previous=character,character=peek(),38===previous&&12===character&&(points[index]=1),!token(character);)next();return slice(begin,position)},getRules=function getRules(value,points){return dealloc(function toRules(parsed,points){var index=-1,character=44;do{switch(token(character)){case 0:38===character&&12===peek()&&(points[index]=1),parsed[index]+=identifierWithPointTracking(position-1,points,index);break;case 2:parsed[index]+=delimit(character);break;case 4:if(44===character){parsed[++index]=58===peek()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=Utility_from(character)}}while(character=next());return parsed}(alloc(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&!(element.length<1)){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i6)switch(Utility_charat(value,length+1)){case 109:if(45!==Utility_charat(value,length+4))break;case 102:return Utility_replace(value,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==Utility_charat(value,length+1))break;case 6444:switch(Utility_charat(value,Utility_strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return Utility_replace(value,":",":-webkit-")+value;case 101:return Utility_replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(value,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+value}break;case 5936:switch(Utility_charat(value,length+11)){case 114:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return"-webkit-"+value+"-ms-"+value+value}return value}var defaultStylisPlugins=[function prefixer(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case Enum_DECLARATION:element.return=emotion_cache_browser_esm_prefix(element.value,element.length);break;case"@keyframes":return Serializer_serialize([Tokenizer_copy(element,{value:Utility_replace(element.value,"@","@-webkit-")})],callback);case Enum_RULESET:if(element.length)return function Utility_combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function Utility_match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(read-\w+)/,":-moz-$1")]})],callback);case"::placeholder":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,"-ms-input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if("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=[];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{"use strict";__webpack_require__.d(__webpack_exports__,{AH:()=>css,cx:()=>cx});var emotion_cache_browser_esm=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js");function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach((function(className){void 0!==registered[className]?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "})),rawClassName}function insertWithoutScoping(cache,serialized){if(void 0===cache.inserted[serialized.name])return cache.insert("",serialized,cache.sheet,!0)}function merge(registered,css,className){var registeredStyles=[],rawClassName=getRegisteredStyles(registered,registeredStyles,className);return registeredStyles.length<2?className:rawClassName+css(registeredStyles)}var classnames=function classnames(args){for(var cls="",i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>ThemeProvider,u:()=>useTheme});var react=__webpack_require__("./node_modules/react/index.js"),emotion_cache_browser_esm=__webpack_require__("./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),weakMemoize=function weakMemoize(func){var cache=new WeakMap;return function(arg){if(cache.has(arg))return cache.get(arg);var ret=func(arg);return cache.set(arg,ret),ret}},EmotionCacheContext=(__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),__webpack_require__("./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"),react.createContext("undefined"!=typeof HTMLElement?(0,emotion_cache_browser_esm.A)({key:"css"}):null));EmotionCacheContext.Provider;var ThemeContext=react.createContext({});var useTheme=function useTheme(){return react.useContext(ThemeContext)},createCacheWithTheme=weakMemoize((function(outerTheme){return weakMemoize((function(theme){return function getTheme(outerTheme,theme){return"function"==typeof theme?theme(outerTheme):(0,esm_extends.A)({},outerTheme,theme)}(outerTheme,theme)}))})),ThemeProvider=function ThemeProvider(props){var theme=react.useContext(ThemeContext);return props.theme!==theme&&(theme=createCacheWithTheme(theme)(props.theme)),react.createElement(ThemeContext.Provider,{value:theme},props.children)}},"./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>serializeStyles});var unitlessKeys={animationIterationCount:1,aspectRatio: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};function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}var hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName=memoize((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,(function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1}))}return 1===unitlessKeys[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation(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={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;return interpolation.styles+";"}return function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;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)}(styles)+identifierName;return{name,styles,next:cursor}}},"./node_modules/@loadable/component/dist/esm/loadable.esm.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);function invariant(condition,message){if(!condition){var error=new Error("loadable: "+message);throw error.framesToPop=1,error.name="Invariant Violation",error}}var Context=react__WEBPACK_IMPORTED_MODULE_0__.createContext();var LOADABLE_SHARED={initialChunks:{}};var identity=function identity(v){return v};function createLoadable(_ref){var _ref$defaultResolveCo=_ref.defaultResolveComponent,defaultResolveComponent=void 0===_ref$defaultResolveCo?identity:_ref$defaultResolveCo,_render=_ref.render,onLoad=_ref.onLoad;function loadable(loadableConstructor,options){void 0===options&&(options={});var ctor=function resolveConstructor(ctor){return"function"==typeof ctor?{requireAsync:ctor,resolve:function resolve(){},chunkName:function chunkName(){}}:ctor}(loadableConstructor),cache={};function _getCacheKey(props){return options.cacheKey?options.cacheKey(props):ctor.resolve?ctor.resolve(props):"static"}function resolve(module,props,Loadable){var Component=options.resolveComponent?options.resolveComponent(module,props):defaultResolveComponent(module);return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(Loadable,Component,{preload:!0}),Component}var cachedLoad=function cachedLoad(props){var cacheKey=_getCacheKey(props),promise=cache[cacheKey];return promise&&"REJECTED"!==promise.status||((promise=ctor.requireAsync(props)).status="PENDING",cache[cacheKey]=promise,promise.then((function(){promise.status="RESOLVED"}),(function(error){console.error("loadable-components: failed to asynchronously load component",{fileName:ctor.resolve(props),chunkName:ctor.chunkName(props),error:error?error.message:error}),promise.status="REJECTED"}))),promise},EnhancedInnerLoadable=function withChunkExtractor(Component){var LoadableWithChunkExtractor=function LoadableWithChunkExtractor(props){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Consumer,null,(function(extractor){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,Object.assign({__chunkExtractor:extractor},props))}))};return Component.displayName&&(LoadableWithChunkExtractor.displayName=Component.displayName+"WithChunkExtractor"),LoadableWithChunkExtractor}(function(_React$Component){function InnerLoadable(props){var _this;return(_this=_React$Component.call(this,props)||this).state={result:null,error:null,loading:!0,cacheKey:_getCacheKey(props)},invariant(!props.__chunkExtractor||ctor.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),props.__chunkExtractor?(!1===options.ssr||(ctor.requireAsync(props).catch((function(){return null})),_this.loadSync(),props.__chunkExtractor.addChunk(ctor.chunkName(props))),(0,_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__.A)(_this)):(!1!==options.ssr&&(ctor.isReady&&ctor.isReady(props)||ctor.chunkName&&LOADABLE_SHARED.initialChunks[ctor.chunkName(props)])&&_this.loadSync(),_this)}(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__.A)(InnerLoadable,_React$Component),InnerLoadable.getDerivedStateFromProps=function getDerivedStateFromProps(props,state){var cacheKey=_getCacheKey(props);return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},state,{cacheKey,loading:state.loading||state.cacheKey!==cacheKey})};var _proto=InnerLoadable.prototype;return _proto.componentDidMount=function componentDidMount(){this.mounted=!0;var cachedPromise=this.getCache();cachedPromise&&"REJECTED"===cachedPromise.status&&this.setCache(),this.state.loading&&this.loadAsync()},_proto.componentDidUpdate=function componentDidUpdate(prevProps,prevState){prevState.cacheKey!==this.state.cacheKey&&this.loadAsync()},_proto.componentWillUnmount=function componentWillUnmount(){this.mounted=!1},_proto.safeSetState=function safeSetState(nextState,callback){this.mounted&&this.setState(nextState,callback)},_proto.getCacheKey=function getCacheKey(){return _getCacheKey(this.props)},_proto.getCache=function getCache(){return cache[this.getCacheKey()]},_proto.setCache=function setCache(value){void 0===value&&(value=void 0),cache[this.getCacheKey()]=value},_proto.triggerOnLoad=function triggerOnLoad(){var _this2=this;onLoad&&setTimeout((function(){onLoad(_this2.state.result,_this2.props)}))},_proto.loadSync=function loadSync(){if(this.state.loading)try{var result=resolve(ctor.requireSync(this.props),this.props,Loadable);this.state.result=result,this.state.loading=!1}catch(error){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:ctor.resolve(this.props),chunkName:ctor.chunkName(this.props),error:error?error.message:error}),this.state.error=error}},_proto.loadAsync=function loadAsync(){var _this3=this,promise=this.resolveAsync();return promise.then((function(loadedModule){var result=resolve(loadedModule,_this3.props,Loadable);_this3.safeSetState({result,loading:!1},(function(){return _this3.triggerOnLoad()}))})).catch((function(error){return _this3.safeSetState({error,loading:!1})})),promise},_proto.resolveAsync=function resolveAsync(){var _this$props=this.props,props=(_this$props.__chunkExtractor,_this$props.forwardedRef,(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__.A)(_this$props,["__chunkExtractor","forwardedRef"]));return cachedLoad(props)},_proto.render=function render(){var _this$props2=this.props,forwardedRef=_this$props2.forwardedRef,propFallback=_this$props2.fallback,props=(_this$props2.__chunkExtractor,(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__.A)(_this$props2,["forwardedRef","fallback","__chunkExtractor"])),_this$state=this.state,error=_this$state.error,loading=_this$state.loading,result=_this$state.result;if(options.suspense&&"PENDING"===(this.getCache()||this.loadAsync()).status)throw this.loadAsync();if(error)throw error;var fallback=propFallback||options.fallback||null;return loading?fallback:_render({fallback,result,options,props:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},props,{ref:forwardedRef})})},InnerLoadable}(react__WEBPACK_IMPORTED_MODULE_0__.Component)),Loadable=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EnhancedInnerLoadable,Object.assign({forwardedRef:ref},props))}));return Loadable.displayName="Loadable",Loadable.preload=function(props){Loadable.load(props)},Loadable.load=function(props){return cachedLoad(props)},Loadable}return{loadable,lazy:function lazy(ctor,options){return loadable(ctor,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},options,{suspense:!0}))}}}var _createLoadable=createLoadable({defaultResolveComponent:function defaultResolveComponent(loadedModule){return loadedModule.__esModule?loadedModule.default:loadedModule.default||loadedModule},render:function render(_ref){var Component=_ref.result,props=_ref.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,props)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function onLoad(result,props){result&&props.forwardedRef&&("function"==typeof props.forwardedRef?props.forwardedRef(result):props.forwardedRef.current=result)},render:function render(_ref){var result=_ref.result,props=_ref.props;return props.children?props.children(result):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy;var loadable$2=loadable;loadable$2.lib=loadable$1,lazy.lib=lazy$1;const __WEBPACK_DEFAULT_EXPORT__=loadable$2},"./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;tclsx,default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=clsx},"./node_modules/color-alpha/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>alpha});const color_name={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},color_parse=function parse(cstr){var m,space,parts=[],alpha=1;if("number"==typeof cstr)return{space:"rgb",values:[cstr>>>16,(65280&cstr)>>>8,255&cstr],alpha:1};if("number"==typeof cstr)return{space:"rgb",values:[cstr>>>16,(65280&cstr)>>>8,255&cstr],alpha:1};if(cstr=String(cstr).toLowerCase(),color_name[cstr])parts=color_name[cstr].slice(),space="rgb";else if("transparent"===cstr)alpha=0,space="rgb",parts=[0,0,0];else if("#"===cstr[0]){var base=cstr.slice(1),size=base.length;alpha=1,size<=4?(parts=[parseInt(base[0]+base[0],16),parseInt(base[1]+base[1],16),parseInt(base[2]+base[2],16)],4===size&&(alpha=parseInt(base[3]+base[3],16)/255)):(parts=[parseInt(base[0]+base[1],16),parseInt(base[2]+base[3],16),parseInt(base[4]+base[5],16)],8===size&&(alpha=parseInt(base[6]+base[7],16)/255)),parts[0]||(parts[0]=0),parts[1]||(parts[1]=0),parts[2]||(parts[2]=0),space="rgb"}else if(m=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(cstr)){var name=m[1],dims="cmyk"===(space=name.replace(/a$/,""))?4:"gray"===space?1:3;parts=m[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===space&&(space=parts.shift()),alpha=(parts=parts.map((function(x,i){if("%"===x[x.length-1])return x=parseFloat(x)/100,3===i?x:"rgb"===space?255*x:"h"===space[0]?100*x:"l"!==space[0]||i?"lab"===space?125*x:"lch"===space?i<2?150*x:360*x:"o"!==space[0]||i?"oklab"===space?.4*x:"oklch"===space?i<2?.4*x:360*x:x:x:100*x;if("h"===space[i]||2===i&&"h"===space[space.length-1]){if(void 0!==baseHues[x])return baseHues[x];if(x.endsWith("deg"))return parseFloat(x);if(x.endsWith("turn"))return 360*parseFloat(x);if(x.endsWith("grad"))return 360*parseFloat(x)/400;if(x.endsWith("rad"))return 180*parseFloat(x)/Math.PI}return"none"===x?0:parseFloat(x)}))).length>dims?parts.pop():1}else/[0-9](?:\s|\/|,)/.test(cstr)&&(parts=cstr.match(/([0-9]+)/g).map((function(value){return parseFloat(value)})),space=cstr.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space,values:parts,alpha}};var baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function alpha(color,value){var{space,values,alpha}=color_parse(color);return"h"===space[0]?`${space}a(${values[0]}, ${values[1]}%, ${values[2]}%, ${value})`:`${space}a(${values}, ${value})`}},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var reactIs=__webpack_require__("./node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i{var NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectToString=Object.prototype.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root.Date.now()};function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function toNumber(value){if("number"==typeof value)return value;if(function isSymbol(value){return"symbol"==typeof value||function isObjectLike(value){return!!value&&"object"==typeof value}(value)&&objectToString.call(value)==symbolTag}(value))return NAN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}module.exports=function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var result=wait-(time-lastCallTime);return maxing?nativeMin(result,maxWait-(time-lastInvokeTime)):result}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}},"./node_modules/lodash/fp.js":(module,__unused_webpack_exports,__webpack_require__)=>{var _=__webpack_require__("./node_modules/lodash/lodash.min.js").runInContext();module.exports=__webpack_require__("./node_modules/lodash/fp/_baseConvert.js")(_,_)},"./node_modules/lodash/fp/_baseConvert.js":(module,__unused_webpack_exports,__webpack_require__)=>{var mapping=__webpack_require__("./node_modules/lodash/fp/_mapping.js"),fallbackHolder=__webpack_require__("./node_modules/lodash/fp/placeholder.js"),push=Array.prototype.push;function baseAry(func,n){return 2==n?function(a,b){return func(a,b)}:function(a){return func(a)}}function cloneArray(array){for(var length=array?array.length:0,result=Array(length);length--;)result[length]=array[length];return result}function wrapImmutable(func,cloner){return function(){var length=arguments.length;if(length){for(var args=Array(length);length--;)args[length]=arguments[length];var result=args[0]=cloner.apply(void 0,args);return func.apply(void 0,args),result}}}module.exports=function baseConvert(util,name,func,options){var isLib="function"==typeof name,isObj=name===Object(name);if(isObj&&(options=func,func=name,name=void 0),null==func)throw new TypeError;options||(options={});var config={cap:!("cap"in options)||options.cap,curry:!("curry"in options)||options.curry,fixed:!("fixed"in options)||options.fixed,immutable:!("immutable"in options)||options.immutable,rearg:!("rearg"in options)||options.rearg},defaultHolder=isLib?func:fallbackHolder,forceCurry="curry"in options&&options.curry,forceFixed="fixed"in options&&options.fixed,forceRearg="rearg"in options&&options.rearg,pristine=isLib?func.runInContext():void 0,helpers=isLib?func:{ary:util.ary,assign:util.assign,clone:util.clone,curry:util.curry,forEach:util.forEach,isArray:util.isArray,isError:util.isError,isFunction:util.isFunction,isWeakMap:util.isWeakMap,iteratee:util.iteratee,keys:util.keys,rearg:util.rearg,toInteger:util.toInteger,toPath:util.toPath},ary=helpers.ary,assign=helpers.assign,clone=helpers.clone,curry=helpers.curry,each=helpers.forEach,isArray=helpers.isArray,isError=helpers.isError,isFunction=helpers.isFunction,isWeakMap=helpers.isWeakMap,keys=helpers.keys,rearg=helpers.rearg,toInteger=helpers.toInteger,toPath=helpers.toPath,aryMethodKeys=keys(mapping.aryMethod),wrappers={castArray:function(castArray){return function(){var value=arguments[0];return isArray(value)?castArray(cloneArray(value)):castArray.apply(void 0,arguments)}},iteratee:function(iteratee){return function(){var arity=arguments[1],result=iteratee(arguments[0],arity),length=result.length;return config.cap&&"number"==typeof arity?(arity=arity>2?arity-2:1,length&&length<=arity?result:baseAry(result,arity)):result}},mixin:function(mixin){return function(source){var func=this;if(!isFunction(func))return mixin(func,Object(source));var pairs=[];return each(keys(source),(function(key){isFunction(source[key])&&pairs.push([key,func.prototype[key]])})),mixin(func,Object(source)),each(pairs,(function(pair){var value=pair[1];isFunction(value)?func.prototype[pair[0]]=value:delete func.prototype[pair[0]]})),func}},nthArg:function(nthArg){return function(n){var arity=n<0?1:toInteger(n)+1;return curry(nthArg(n),arity)}},rearg:function(rearg){return function(func,indexes){var arity=indexes?indexes.length:0;return curry(rearg(func,indexes),arity)}},runInContext:function(runInContext){return function(context){return baseConvert(util,runInContext(context),options)}}};function castCap(name,func){if(config.cap){var indexes=mapping.iterateeRearg[name];if(indexes)return function iterateeRearg(func,indexes){return overArg(func,(function(func){var n=indexes.length;return function baseArity(func,n){return 2==n?function(a,b){return func.apply(void 0,arguments)}:function(a){return func.apply(void 0,arguments)}}(rearg(baseAry(func,n),indexes),n)}))}(func,indexes);var n=!isLib&&mapping.iterateeAry[name];if(n)return function iterateeAry(func,n){return overArg(func,(function(func){return"function"==typeof func?baseAry(func,n):func}))}(func,n)}return func}function castFixed(name,func,n){if(config.fixed&&(forceFixed||!mapping.skipFixed[name])){var data=mapping.methodSpread[name],start=data&&data.start;return void 0===start?ary(func,n):function flatSpread(func,start){return function(){for(var length=arguments.length,lastIndex=length-1,args=Array(length);length--;)args[length]=arguments[length];var array=args[start],otherArgs=args.slice(0,start);return array&&push.apply(otherArgs,array),start!=lastIndex&&push.apply(otherArgs,args.slice(start+1)),func.apply(this,otherArgs)}}(func,start)}return func}function castRearg(name,func,n){return config.rearg&&n>1&&(forceRearg||!mapping.skipRearg[name])?rearg(func,mapping.methodRearg[name]||mapping.aryRearg[n]):func}function cloneByPath(object,path){for(var index=-1,length=(path=toPath(path)).length,lastIndex=length-1,result=clone(Object(object)),nested=result;null!=nested&&++index1?curry(func,n):func}(0,result=castCap(realName,result),aryKey),!1}})),!result})),result||(result=wrapped),result==func&&(result=forceCurry?curry(result,1):function(){return func.apply(this,arguments)}),result.convert=createConverter(realName,func),result.placeholder=func.placeholder=placeholder,result}if(!isObj)return wrap(name,func,defaultHolder);var _=func,pairs=[];return each(aryMethodKeys,(function(aryKey){each(mapping.aryMethod[aryKey],(function(key){var func=_[mapping.remap[key]||key];func&&pairs.push([key,wrap(key,func,_)])}))})),each(keys(_),(function(key){var func=_[key];if("function"==typeof func){for(var length=pairs.length;length--;)if(pairs[length][0]==key)return;func.convert=createConverter(key,func),pairs.push([key,func])}})),each(pairs,(function(pair){_[pair[0]]=pair[1]})),_.convert=function convertLib(options){return _.runInContext.convert(options)(void 0)},_.placeholder=_,each(keys(_),(function(key){each(mapping.realToAlias[key]||[],(function(alias){_[alias]=_[key]}))})),_}},"./node_modules/lodash/fp/_mapping.js":(__unused_webpack_module,exports)=>{exports.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},exports.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},exports.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},exports.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},exports.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},exports.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},exports.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},exports.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},exports.realToAlias=function(){var hasOwnProperty=Object.prototype.hasOwnProperty,object=exports.aliasToReal,result={};for(var key in object){var value=object[key];hasOwnProperty.call(result,value)?result[value].push(key):result[value]=[key]}return result}(),exports.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},exports.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},exports.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},"./node_modules/lodash/fp/placeholder.js":module=>{module.exports={}},"./node_modules/lodash/lodash.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;module=__webpack_require__.nmd(module),function(){var undefined,FUNC_ERROR_TEXT="Expected a function",PLACEHOLDER="__lodash_placeholder__",wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,rsComboRange="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rsBreakRange="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsAstral="[\\ud800-\\udfff]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="[\\u2700-\\u27bf]",rsLower="[a-z\\xdf-\\xf6\\xf8-\\xff]",rsMisc="[^\\ud800-\\udfff"+rsBreakRange+rsDigits+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsNonAstral="[^\\ud800-\\udfff]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="[A-Z\\xc0-\\xd6\\xd8-\\xde]",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",reOptMod="(?:"+rsCombo+"|"+rsFitz+")"+"?",rsSeq="[\\ufe0e\\ufe0f]?"+reOptMod+("(?:\\u200d(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")[\\ufe0e\\ufe0f]?"+reOptMod+")*"),rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp("['’]","g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+(?:['’](?:d|ll|m|re|s|t|ve))?",rsUpper+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff"+rsComboRange+"\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags["[object Uint8ClampedArray]"]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index-1}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index-1;);return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}var deburrLetter=basePropertyOf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),escapeHtmlChar=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function hasUnicode(string){return reHasUnicode.test(string)}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index",""":'"',"'":"'"});var _=function runInContext(context){var uid,Array=(context=null==context?root:_.defaults(root.Object(),context,_.pick(root,contextProps))).Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError,arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype,coreJsData=context["__core-js_shared__"],funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"",nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object),oldDash=root._,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined,defineProperty=function(){try{var func=getNative(Object,"defineProperty");return func({},"",{}),func}catch(e){}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse,DataView=getNative(context,"DataView"),Map=getNative(context,"Map"),Promise=getNative(context,"Promise"),Set=getNative(context,"Set"),WeakMap=getNative(context,"WeakMap"),nativeCreate=getNative(Object,"create"),metaMap=WeakMap&&new WeakMap,realNames={},dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result=new object;return object.prototype=undefined,result}}();function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value,this.__actions__=[],this.__chain__=!!chainAll,this.__index__=0,this.__values__=undefined}function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index=lower?number:lower)),number}function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=1&bitmask,isFlat=2&bitmask,isFull=4&bitmask;if(customizer&&(result=object?customizer(value,key,object,stack):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=function initCloneArray(array){var length=array.length,result=new array.constructor(length);length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input);return result}(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value))return cloneBuffer(value,isDeep);if(tag==objectTag||tag==argsTag||isFunc&&!object){if(result=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}(value,function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object)}(result,value)):function copySymbols(source,object){return copyObject(source,getSymbols(source),object)}(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)}(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor;case numberTag:case stringTag:return new Ctor(object);case regexpTag:return function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result.lastIndex=regexp.lastIndex,result}(object);case setTag:return new Ctor;case symbolTag:return function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{}}(object)}}(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;stack.set(value,result),isSet(value)?value.forEach((function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))})):isMap(value)&&value.forEach((function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack))}));var props=isArr?undefined:(isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys)(value);return arrayEach(props||value,(function(subValue,key){props&&(subValue=value[key=subValue]),assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack))})),result}function baseConformsTo(object,source,props){var length=props.length;if(null==object)return!length;for(object=Object(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(value===undefined&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return setTimeout((function(){func.apply(undefined,args)}),wait)}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee))),comparator?(includes=arrayIncludesWith,isCommon=!1):values.length>=200&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));outer:for(;++index-1},ListCache.prototype.set=function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result},MapCache.prototype.get=function mapCacheGet(key){return getMapData(this,key).get(key)},MapCache.prototype.has=function mapCacheHas(key){return getMapData(this,key).has(key)},MapCache.prototype.set=function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this},SetCache.prototype.has=function setCacheHas(value){return this.__data__.has(value)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result},Stack.prototype.get=function stackGet(key){return this.__data__.get(key)},Stack.prototype.has=function stackHas(key){return this.__data__.has(key)},Stack.prototype.set=function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this};var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0);function baseEvery(collection,predicate){var result=!0;return baseEach(collection,(function(value,index,collection){return result=!!predicate(value,index,collection)})),result}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index0&&predicate(value)?depth>1?baseFlatten(value,depth-1,predicate,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}var baseFor=createBaseFor(),baseForRight=createBaseFor(!0);function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,(function(key){return isFunction(object[key])}))}function baseGet(object,path){for(var index=0,length=(path=castPath(path,object)).length;null!=object&&indexother}function baseHas(object,key){return null!=object&&hasOwnProperty.call(object,key)}function baseHasIn(object,key){return null!=object&&key in Object(object)}function baseIntersection(arrays,iteratee,comparator){for(var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=1/0,result=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee&&(array=arrayMap(array,baseUnary(iteratee))),maxLength=nativeMin(array.length,maxLength),caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined}array=arrays[0];var index=-1,seen=caches[0];outer:for(;++index=ordersLength?result:result*("desc"==orders[index]?-1:1)}return object.index-other.index}(object,other,orders)}))}function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result={};++index-1;)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1);return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRepeat(string,n){var result="";if(!string||n<1||n>9007199254740991)return result;do{n%2&&(result+=string),(n=nativeFloor(n/2))&&(string+=string)}while(n);return result}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values(collection))}function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;for(var index=-1,length=(path=castPath(path,object)).length,lastIndex=length-1,nested=object;null!=nested&&++indexlength?0:length+start),(end=end>length?length:end)<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index>>1,computed=array[mid];null!==computed&&!isSymbol(computed)&&(retHighest?computed<=value:computed=200){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index=length?array:baseSlice(array,start,end)}var clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id)};function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array(result).set(new Uint8Array(arrayBuffer)),result}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined,valIsNull=null===value,valIsReflexive=value==value,valIsSymbol=isSymbol(value),othIsDefined=other!==undefined,othIsNull=null===other,othIsReflexive=other==other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):undefined,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1),object=Object(object);++index-1?iterable[iteratee?collection[index]:index]:undefined}}function createFlow(fromRight){return flatRest((function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index--;){var func=funcs[index];if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);if(prereq&&!wrapper&&"wrapper"==getFuncName(func))var wrapper=new LodashWrapper([],!0)}for(index=wrapper?index:length;++index1&&args.reverse(),isAry&&aryarrLength))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=2&bitmask?new SetCache:undefined;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value1?"& ":"")+details[lastIndex],details=details.join(length>2?", ":" "),source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n")}(source,function updateWrapDetails(details,bitmask){return arrayEach(wrapFlags,(function(pair){var value="_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)})),details.sort()}(function getWrapDetails(source){var match=source.match(reWrapDetails);return match?match[1].split(reSplitDetails):[]}(source),bitmask)))}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=16-(stamp-lastCalled);if(lastCalled=stamp,remaining>0){if(++count>=800)return arguments[0]}else count=0;return func.apply(undefined,arguments)}}function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;for(size=size===undefined?length:size;++index1?arrays[length-1]:undefined;return iteratee="function"==typeof iteratee?(arrays.pop(),iteratee):undefined,unzipWith(arrays,iteratee)}));function chain(value){var result=lodash(value);return result.__chain__=!0,result}function thru(value,interceptor){return interceptor(value)}var wrapperAt=flatRest((function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths)};return!(length>1||this.__actions__.length)&&value instanceof LazyWrapper&&isIndex(start)?((value=value.slice(start,+start+(length?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(value,this.__chain__).thru((function(array){return length&&!array.length&&array.push(undefined),array}))):this.thru(interceptor)}));var countBy=createAggregator((function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:baseAssignValue(result,key,1)}));var find=createFind(findIndex),findLast=createFind(findLastIndex);function forEach(collection,iteratee){return(isArray(collection)?arrayEach:baseEach)(collection,getIteratee(iteratee,3))}function forEachRight(collection,iteratee){return(isArray(collection)?arrayEachRight:baseEachRight)(collection,getIteratee(iteratee,3))}var groupBy=createAggregator((function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):baseAssignValue(result,key,[value])}));var invokeMap=baseRest((function(collection,path,args){var index=-1,isFunc="function"==typeof path,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,(function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)})),result})),keyBy=createAggregator((function(result,value,key){baseAssignValue(result,key,value)}));function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,getIteratee(iteratee,3))}var partition=createAggregator((function(result,value,key){result[key?0:1].push(value)}),(function(){return[[],[]]}));var sortBy=baseRest((function(collection,iteratees){if(null==collection)return[];var length=iteratees.length;return length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]),baseOrderBy(collection,baseFlatten(iteratees,1),[])})),now=ctxNow||function(){return root.Date.now()};function ary(func,n,guard){return n=guard?undefined:n,n=func&&null==n?func.length:n,createWrap(func,128,undefined,undefined,undefined,undefined,n)}function before(n,func){var result;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(result=func.apply(this,arguments)),n<=1&&(func=undefined),result}}var bind=baseRest((function(func,thisArg,partials){var bitmask=1;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=32}return createWrap(func,bitmask,thisArg,partials,holders)})),bindKey=baseRest((function(object,key,partials){var bitmask=3;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=32}return createWrap(key,bitmask,object,partials,holders)}));function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=undefined,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=undefined,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=undefined,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(timerId===undefined)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return timerId===undefined&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){timerId!==undefined&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=undefined},debounced.flush=function flush(){return timerId===undefined?result:trailingEdge(now())},debounced}var defer=baseRest((function(func,args){return baseDelay(func,1,args)})),delay=baseRest((function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)}));function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(predicate){if("function"!=typeof predicate)throw new TypeError(FUNC_ERROR_TEXT);return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}memoize.Cache=MapCache;var overArgs=castRest((function(func,transforms){var funcsLength=(transforms=1==transforms.length&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()))).length;return baseRest((function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index=other})),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag};function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}var isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag};function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return tag==errorTag||"[object DOMException]"==tag||"string"==typeof value.message&&"string"==typeof value.name&&!isPlainObject(value)}function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return tag==funcTag||tag==genTag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}function isInteger(value){return"number"==typeof value&&value==toInteger(value)}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isObjectLike(value){return null!=value&&"object"==typeof value}var isMap=nodeIsMap?baseUnary(nodeIsMap):function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag};function isNumber(value){return"number"==typeof value||isObjectLike(value)&&baseGetTag(value)==numberTag}function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag)return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag};var isSet=nodeIsSet?baseUnary(nodeIsSet):function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag};function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&baseGetTag(value)==symbolTag}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]};var lt=createRelationalOperation(baseLt),lte=createRelationalOperation((function(value,other){return value<=other}));function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?stringToArray(value):copyArray(value);if(symIterator&&value[symIterator])return function iteratorToArray(iterator){for(var data,result=[];!(data=iterator.next()).done;)result.push(data.value);return result}(value[symIterator]());var tag=getTag(value);return(tag==mapTag?mapToArray:tag==setTag?setToArray:values)(value)}function toFinite(value){return value?Infinity===(value=toNumber(value))||-Infinity===value?17976931348623157e292*(value<0?-1:1):value==value?value:0:0===value?value:0}function toInteger(value){var result=toFinite(value),remainder=result%1;return result==result?remainder?result-remainder:result:0}function toLength(value){return value?baseClamp(toInteger(value),0,4294967295):0}function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toString(value){return null==value?"":baseToString(value)}var assign=createAssigner((function(object,source){if(isPrototype(source)||isArrayLike(source))copyObject(source,keys(source),object);else for(var key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,source[key])})),assignIn=createAssigner((function(object,source){copyObject(source,keysIn(source),object)})),assignInWith=createAssigner((function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)})),assignWith=createAssigner((function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)})),at=flatRest(baseAt);var defaults=baseRest((function(object,sources){object=Object(object);var index=-1,length=sources.length,guard=length>2?sources[2]:undefined;for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index1),path})),copyObject(object,getAllKeysIn(object),result),isDeep&&(result=baseClone(result,7,customOmitClone));for(var length=paths.length;length--;)baseUnset(result,paths[length]);return result}));var pick=flatRest((function(object,paths){return null==object?{}:function basePick(object,paths){return basePickBy(object,paths,(function(value,path){return hasIn(object,path)}))}(object,paths)}));function pickBy(object,predicate){if(null==object)return{};var props=arrayMap(getAllKeysIn(object),(function(prop){return[prop]}));return predicate=getIteratee(predicate),basePickBy(object,props,(function(value,path){return predicate(value,path[0])}))}var toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn);function values(object){return null==object?[]:baseValues(object,keys(object))}var camelCase=createCompounder((function(result,word,index){return word=word.toLowerCase(),result+(index?capitalize(word):word)}));function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return(string=toString(string))&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}var kebabCase=createCompounder((function(result,word,index){return result+(index?"-":"")+word.toLowerCase()})),lowerCase=createCompounder((function(result,word,index){return result+(index?" ":"")+word.toLowerCase()})),lowerFirst=createCaseFirst("toLowerCase");var snakeCase=createCompounder((function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}));var startCase=createCompounder((function(result,word,index){return result+(index?" ":"")+upperFirst(word)}));var upperCase=createCompounder((function(result,word,index){return result+(index?" ":"")+word.toUpperCase()})),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),(pattern=guard?undefined:pattern)===undefined?function hasUnicodeWord(string){return reHasUnicodeWord.test(string)}(string)?function unicodeWords(string){return string.match(reUnicodeWord)||[]}(string):function asciiWords(string){return string.match(reAsciiWord)||[]}(string):string.match(pattern)||[]}var attempt=baseRest((function(func,args){try{return apply(func,undefined,args)}catch(e){return isError(e)?e:new Error(e)}})),bindAll=flatRest((function(object,methodNames){return arrayEach(methodNames,(function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))})),object}));function constant(value){return function(){return value}}var flow=createFlow(),flowRight=createFlow(!0);function identity(value){return value}function iteratee(func){return baseIteratee("function"==typeof func?func:baseClone(func,1))}var method=baseRest((function(path,args){return function(object){return baseInvoke(object,path,args)}})),methodOf=baseRest((function(object,args){return function(path){return baseInvoke(object,path,args)}}));function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);null!=options||isObject(source)&&(methodNames.length||!props.length)||(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain=!(isObject(options)&&"chain"in options&&!options.chain),isFunc=isFunction(object);return arrayEach(methodNames,(function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__);return(result.__actions__=copyArray(this.__actions__)).push({func,args:arguments,thisArg:object}),result.__chain__=chainAll,result}return func.apply(object,arrayPush([this.value()],arguments))})})),object}function noop(){}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):function basePropertyDeep(path){return function(object){return baseGet(object,path)}}(path)}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var add=createMathOperation((function(augend,addend){return augend+addend}),0),ceil=createRound("ceil"),divide=createMathOperation((function(dividend,divisor){return dividend/divisor}),1),floor=createRound("floor");var source,multiply=createMathOperation((function(multiplier,multiplicand){return multiplier*multiplicand}),1),round=createRound("round"),subtract=createMathOperation((function(minuend,subtrahend){return minuend-subtrahend}),0);return lodash.after=function after(n,func){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){if(--n<1)return func.apply(this,arguments)}},lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=function castArray(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]},lodash.chain=chain,lodash.chunk=function chunk(array,size,guard){size=(guard?isIterateeCall(array,size,guard):size===undefined)?1:nativeMax(toInteger(size),0);var length=null==array?0:array.length;if(!length||size<1)return[];for(var index=0,resIndex=0,result=Array(nativeCeil(length/size));indexlength?0:length+start),(end=end===undefined||end>length?length:toInteger(end))<0&&(end+=length),end=start>end?0:toLength(end);start>>0)?(string=toString(string))&&("string"==typeof separator||null!=separator&&!isRegExp(separator))&&!(separator=baseToString(separator))&&hasUnicode(string)?castSlice(stringToArray(string),0,limit):string.split(separator,limit):[]},lodash.spread=function spread(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=null==start?0:nativeMax(toInteger(start),0),baseRest((function(args){var array=args[start],otherArgs=castSlice(args,0,start);return array&&arrayPush(otherArgs,array),apply(func,this,otherArgs)}))},lodash.tail=function tail(array){var length=null==array?0:array.length;return length?baseSlice(array,1,length):[]},lodash.take=function take(array,n,guard){return array&&array.length?baseSlice(array,0,(n=guard||n===undefined?1:toInteger(n))<0?0:n):[]},lodash.takeRight=function takeRight(array,n,guard){var length=null==array?0:array.length;return length?baseSlice(array,(n=length-(n=guard||n===undefined?1:toInteger(n)))<0?0:n,length):[]},lodash.takeRightWhile=function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]},lodash.takeWhile=function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]},lodash.tap=function tap(value,interceptor){return interceptor(value),value},lodash.throttle=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading,maxWait:wait,trailing})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);if(iteratee=getIteratee(iteratee,4),null==accumulator){var Ctor=object&&object.constructor;accumulator=isArrLike?isArr?new Ctor:[]:isObject(object)&&isFunction(Ctor)?baseCreate(getPrototype(object)):{}}return(isArrLike?arrayEach:baseForOwn)(object,(function(value,index,object){return iteratee(accumulator,value,index,object)})),accumulator},lodash.unary=function unary(func){return ary(func,1)},lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=function uniq(array){return array&&array.length?baseUniq(array):[]},lodash.uniqBy=function uniqBy(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[]},lodash.uniqWith=function uniqWith(array,comparator){return comparator="function"==typeof comparator?comparator:undefined,array&&array.length?baseUniq(array,undefined,comparator):[]},lodash.unset=function unset(object,path){return null==object||baseUnset(object,path)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(object,path,updater){return null==object?object:baseUpdate(object,path,castFunction(updater))},lodash.updateWith=function updateWith(object,path,updater,customizer){return customizer="function"==typeof customizer?customizer:undefined,null==object?object:baseUpdate(object,path,castFunction(updater),customizer)},lodash.values=values,lodash.valuesIn=function valuesIn(object){return null==object?[]:baseValues(object,keysIn(object))},lodash.without=without,lodash.words=words,lodash.wrap=function wrap(value,wrapper){return partial(castFunction(wrapper),value)},lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=function zipObject(props,values){return baseZipObject(props||[],values||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(props,values){return baseZipObject(props||[],values||[],baseSet)},lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=function clamp(number,lower,upper){return upper===undefined&&(upper=lower,lower=undefined),upper!==undefined&&(upper=(upper=toNumber(upper))==upper?upper:0),lower!==undefined&&(lower=(lower=toNumber(lower))==lower?lower:0),baseClamp(toNumber(number),lower,upper)},lodash.clone=function clone(value){return baseClone(value,4)},lodash.cloneDeep=function cloneDeep(value){return baseClone(value,5)},lodash.cloneDeepWith=function cloneDeepWith(value,customizer){return baseClone(value,5,customizer="function"==typeof customizer?customizer:undefined)},lodash.cloneWith=function cloneWith(value,customizer){return baseClone(value,4,customizer="function"==typeof customizer?customizer:undefined)},lodash.conformsTo=function conformsTo(object,source){return null==source||baseConformsTo(object,source,keys(source))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(value,defaultValue){return null==value||value!=value?defaultValue:value},lodash.divide=divide,lodash.endsWith=function endsWith(string,target,position){string=toString(string),target=baseToString(target);var length=string.length,end=position=position===undefined?length:baseClamp(toInteger(position),0,length);return(position-=target.length)>=0&&string.slice(position,end)==target},lodash.eq=eq,lodash.escape=function escape(string){return(string=toString(string))&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string},lodash.escapeRegExp=function escapeRegExp(string){return(string=toString(string))&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string},lodash.every=function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined),func(collection,getIteratee(predicate,3))},lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn)},lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)},lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(object,iteratee){return null==object?object:baseFor(object,getIteratee(iteratee,3),keysIn)},lodash.forInRight=function forInRight(object,iteratee){return null==object?object:baseForRight(object,getIteratee(iteratee,3),keysIn)},lodash.forOwn=function forOwn(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3))},lodash.forOwnRight=function forOwnRight(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3))},lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=function has(object,path){return null!=object&&hasPath(object,path,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection),fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;return fromIndex<0&&(fromIndex=nativeMax(length+fromIndex,0)),isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1},lodash.indexOf=function indexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=null==fromIndex?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseIndexOf(array,value,index)},lodash.inRange=function inRange(number,start,end){return start=toFinite(start),end===undefined?(end=start,start=0):end=toFinite(end),function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number=-9007199254740991&&value<=9007199254740991},lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=function isUndefined(value){return value===undefined},lodash.isWeakMap=function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag},lodash.isWeakSet=function isWeakSet(value){return isObjectLike(value)&&"[object WeakSet]"==baseGetTag(value)},lodash.join=function join(array,separator){return null==array?"":nativeJoin.call(array,separator)},lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length;return fromIndex!==undefined&&(index=(index=toInteger(fromIndex))<0?nativeMax(length+index,0):nativeMin(index,length-1)),value==value?function strictLastIndexOf(array,value,fromIndex){for(var index=fromIndex+1;index--;)if(array[index]===value)return index;return index}(array,value,index):baseFindIndex(array,baseIsNaN,index,!0)},lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined},lodash.maxBy=function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined},lodash.mean=function mean(array){return baseMean(array,identity)},lodash.meanBy=function meanBy(array,iteratee){return baseMean(array,getIteratee(iteratee,2))},lodash.min=function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined},lodash.minBy=function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=multiply,lodash.nth=function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined},lodash.noConflict=function noConflict(){return root._===this&&(root._=oldDash),this},lodash.noop=noop,lodash.now=now,lodash.pad=function pad(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;if(!length||strLength>=length)return string;var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars)},lodash.padEnd=function padEnd(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLengthupper){var temp=lower;lower=upper,upper=temp}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper)}return baseRandom(lower,upper)},lodash.reduce=function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach)},lodash.reduceRight=function reduceRight(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight)},lodash.repeat=function repeat(string,n,guard){return n=(guard?isIterateeCall(string,n,guard):n===undefined)?1:toInteger(n),baseRepeat(toString(string),n)},lodash.replace=function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2])},lodash.result=function result(object,path,defaultValue){var index=-1,length=(path=castPath(path,object)).length;for(length||(length=1,object=undefined);++index9007199254740991)return[];var index=4294967295,length=nativeMin(n,4294967295);n-=4294967295;for(var result=baseTimes(length,iteratee=getIteratee(iteratee));++index=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined)return result+omission;if(strSymbols&&(end+=result.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;for(separator.global||(separator=RegExp(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result=result.slice(0,newEnd===undefined?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);index>-1&&(result=result.slice(0,index))}return result+omission},lodash.unescape=function unescape(string){return(string=toString(string))&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string},lodash.uniqueId=function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id},lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(source={},baseForOwn(lodash,(function(func,methodName){hasOwnProperty.call(lodash.prototype,methodName)||(source[methodName]=func)})),source),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(methodName){lodash[methodName].placeholder=lodash})),arrayEach(["drop","take"],(function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result.__filtered__?result.__takeCount__=nativeMin(n,result.__takeCount__):result.__views__.push({size:nativeMin(n,4294967295),type:methodName+(result.__dir__<0?"Right":"")}),result},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(methodName,index){var type=index+1,isFilter=1==type||3==type;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();return result.__iteratees__.push({iteratee:getIteratee(iteratee,3),type}),result.__filtered__=result.__filtered__||isFilter,result}})),arrayEach(["head","last"],(function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}})),arrayEach(["initial","tail"],(function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest((function(path,args){return"function"==typeof path?new LazyWrapper(this):this.map((function(value){return baseInvoke(value,path,args)}))})),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;return result.__filtered__&&(start>0||end<0)?new LazyWrapper(result):(start<0?result=result.takeRight(-start):start&&(result=result.drop(start)),end!==undefined&&(result=(end=toInteger(end))<0?result.dropRight(-end):result.take(end-start)),result)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(4294967295)},baseForOwn(LazyWrapper.prototype,(function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+("last"==methodName?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);lodashFunc&&(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value),interceptor=function(value){var result=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?result[0]:result};useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);return result.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(result,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result=this.thru(interceptor),isUnwrapped?isTaker?result.value()[0]:result.value():result)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName]((function(value){return func.apply(isArray(value)?value:[],args)}))}})),baseForOwn(LazyWrapper.prototype,(function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}})),realNames[createHybrid(undefined,2).name]=[{name:"wrapper",func:undefined}],LazyWrapper.prototype.clone=function lazyClone(){var result=new LazyWrapper(this.__wrapped__);return result.__actions__=copyArray(this.__actions__),result.__dir__=this.__dir__,result.__filtered__=this.__filtered__,result.__iteratees__=copyArray(this.__iteratees__),result.__takeCount__=this.__takeCount__,result.__views__=copyArray(this.__views__),result},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1,result.__filtered__=!0}else(result=this.clone()).__dir__*=-1;return result},LazyWrapper.prototype.value=function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=function getView(start,end,transforms){var index=-1,length=transforms.length;for(;++index=this.__values__.length;return{done,value:done?undefined:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0,clone.__values__=undefined,result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}return previous.__wrapped__=value,result},lodash.prototype.reverse=function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),(wrapped=wrapped.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=function wrapperToIterator(){return this}),lodash}();root._=_,(__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module))===undefined||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}.call(this)},"./node_modules/lodash/lodash.min.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;module=__webpack_require__.nmd(module),function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function L(n,t){for(var r=n.length;r--&&y(t,n[r],0)>-1;);return r}function U(n){return"\\"+Yr[n]}function T(n){return Nr.test(n)}function $(n){return Pr.test(n)}function M(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function F(n,t){return function(r){return n(t(r))}}function N(n,t){for(var r=-1,e=n.length,u=0,i=[];++r"']/g,jt=RegExp(mt.source),At=RegExp(xt.source),kt=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Wt=RegExp(St.source),Lt=/^\s+/,Ct=/\s/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,$t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dt=/[()=,{}\[\]\/\s]/,Mt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Yt="\\ud800-\\udfff",tr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rr="\\u2700-\\u27bf",er="a-z\\xdf-\\xf6\\xf8-\\xff",cr="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",lr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sr="['’]",hr="["+Yt+"]",pr="["+lr+"]",_r="["+tr+"]",vr="\\d+",gr="["+rr+"]",yr="["+er+"]",dr="[^"+Yt+lr+vr+rr+er+cr+"]",br="\\ud83c[\\udffb-\\udfff]",mr="[^"+Yt+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",jr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ar="["+cr+"]",Or="(?:"+yr+"|"+dr+")",Ir="(?:"+Ar+"|"+dr+")",Rr="(?:['’](?:d|ll|m|re|s|t|ve))?",zr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Er="(?:"+_r+"|"+br+")"+"?",Sr="["+ar+"]?",Ur=Sr+Er+("(?:\\u200d(?:"+[mr,xr,jr].join("|")+")"+Sr+Er+")*"),Br="(?:"+[gr,xr,jr].join("|")+")"+Ur,Tr="(?:"+[mr+_r+"?",_r,xr,jr,hr].join("|")+")",$r=RegExp(sr,"g"),Dr=RegExp(_r,"g"),Mr=RegExp(br+"(?="+br+")|"+Tr+Ur,"g"),Fr=RegExp([Ar+"?"+yr+"+"+Rr+"(?="+[pr,Ar,"$"].join("|")+")",Ir+"+"+zr+"(?="+[pr,Ar+Or,"$"].join("|")+")",Ar+"?"+Or+"+"+Rr,Ar+"+"+zr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vr,Br].join("|"),"g"),Nr=RegExp("[\\u200d"+Yt+tr+ar+"]"),Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zr=-1,Kr={};Kr[at]=Kr[lt]=Kr[st]=Kr[ht]=Kr[pt]=Kr[_t]=Kr[vt]=Kr[gt]=Kr[yt]=!0,Kr[Dn]=Kr[Mn]=Kr[ft]=Kr[Nn]=Kr[ct]=Kr[Pn]=Kr[Zn]=Kr[Kn]=Kr[Gn]=Kr[Hn]=Kr[Yn]=Kr[nt]=Kr[tt]=Kr[rt]=Kr[it]=!1;var Vr={};Vr[Dn]=Vr[Mn]=Vr[ft]=Vr[ct]=Vr[Nn]=Vr[Pn]=Vr[at]=Vr[lt]=Vr[st]=Vr[ht]=Vr[pt]=Vr[Gn]=Vr[Hn]=Vr[Yn]=Vr[nt]=Vr[tt]=Vr[rt]=Vr[et]=Vr[_t]=Vr[vt]=Vr[gt]=Vr[yt]=!0,Vr[Zn]=Vr[Kn]=Vr[it]=!1;var Yr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qr=parseFloat,Xr=parseInt,ne="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,te="object"==typeof self&&self&&self.Object===Object&&self,re=ne||te||Function("return this")(),ee=exports&&!exports.nodeType&&exports,ue=ee&&module&&!module.nodeType&&module,ie=ue&&ue.exports===ee,oe=ie&&ne.process,fe=function(){try{var n=ue&&ue.require&&ue.require("util").types;return n||oe&&oe.binding&&oe.binding("util")}catch(n){}}(),ce=fe&&fe.isArrayBuffer,ae=fe&&fe.isDate,le=fe&&fe.isMap,se=fe&&fe.isRegExp,he=fe&&fe.isSet,pe=fe&&fe.isTypedArray,_e=m("length"),ve=x({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ge=x({"&":"&","<":"<",">":">",'"':""","'":"'"}),ye=x({"&":"&","<":"<",">":">",""":'"',"'":"'"}),be=function p(x){function Z(n){if(cc(n)&&!bh(n)&&!(n instanceof Ct)){if(n instanceof Y)return n;if(bl.call(n,"__wrapped__"))return eo(n)}return new Y(n)}function J(){}function Y(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=X}function Ct(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Un,this.__views__=[]}function Xt(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function Fr(n,t,e,u,i,o){var f,c=1&t,a=2&t,l=4&t;if(e&&(f=i?e(n,u,i,o):e(n)),f!==X)return f;if(!fc(n))return n;var s=bh(n);if(s){if(f=function zi(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&bl.call(n,"index")&&(r.index=n.index,r.input=n.input),r}(n),!c)return Tu(n,f)}else{var h=zs(n),p=h==Kn||h==Vn;if(mh(n))return Iu(n,c);if(h==Yn||h==Dn||p&&!i){if(f=a||p?{}:Ei(n),!c)return a?function Mu(n,t){return $u(n,Rs(n),t)}(n,function Ur(n,t){return n&&$u(t,qc(t),n)}(f,n)):function Du(n,t){return $u(n,Is(n),t)}(n,Cr(f,n))}else{if(!Vr[h])return i?n:{};f=function Si(n,t,r){var e=n.constructor;switch(t){case ft:return Ru(n);case Nn:case Pn:return new e(+n);case ct:return function zu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.byteLength)}(n,r);case at:case lt:case st:case ht:case pt:case _t:case vt:case gt:case yt:return Wu(n,r);case Gn:return new e;case Hn:case rt:return new e(n);case nt:return function Eu(n){var t=new n.constructor(n.source,Nt.exec(n));return t.lastIndex=n.lastIndex,t}(n);case tt:return new e;case et:return function Su(n){return _s?ll(_s.call(n)):{}}(n)}}(n,h,c)}}o||(o=new wr);var _=o.get(n);if(_)return _;o.set(n,f),kh(n)?n.forEach((function(r){f.add(Fr(r,t,e,r,n,o))})):jh(n)&&n.forEach((function(r,u){f.set(u,Fr(r,t,e,u,n,o))}));var g=s?X:(l?a?di:yi:a?qc:Pc)(n);return r(g||n,(function(r,u){g&&(r=n[u=r]),Sr(f,u,Fr(r,t,e,u,n,o))})),f}function Pr(n,t,r){var e=r.length;if(null==n)return!e;for(n=ll(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===X&&!(u in n)||!i(o))return!1}return!0}function Gr(n,t,r){if("function"!=typeof n)throw new pl(en);return Ws((function(){n.apply(X,r)}),t)}function Hr(n,t,r,e){var u=-1,i=o,a=!0,l=n.length,s=[],h=t.length;if(!l)return s;r&&(t=c(t,z(r))),e?(i=f,a=!1):t.length>=200&&(i=S,a=!1,t=new yr(t));n:for(;++u0&&r(f)?t>1?ee(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function ue(n,t){return n&&bs(n,t,Pc)}function oe(n,t){return n&&ws(n,t,Pc)}function fe(n,t){return i(t,(function(t){return uc(n[t])}))}function _e(n,t){for(var r=0,e=(t=ku(t,n)).length;null!=n&&rt}function xe(n,t){return null!=n&&bl.call(n,t)}function je(n,t){return null!=n&&t in ll(n)}function ke(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=il(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,z(t))),s=Hl(p.length,s),l[a]=!r&&(t||u>=120&&p.length>=120)?new yr(a&&p):X}p=n[0];var _=-1,v=l[0];n:for(;++_=f?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ye(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Ll.call(f,a,1),Ll.call(n,a,1);return n}function nu(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Ci(u)?Ll.call(n,u,1):yu(n,u)}}return n}function tu(n,t){return n+Nl(Ql()*(t-n+1))}function eu(n,t){var r="";if(!n||t<1||t>Wn)return r;do{t%2&&(r+=n),(t=Nl(t/2))&&(n+=n)}while(t);return r}function uu(n,t){return Ls(Vi(n,t,La),n+"")}function iu(n){return Ir(ra(n))}function ou(n,t){var r=ra(n);return Xi(r,Mr(t,0,r.length))}function fu(n,t,r,e){if(!fc(n))return n;for(var u=-1,i=(t=ku(t,n)).length,o=i-1,f=n;null!=f&&++uu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=il(u);++e>>1,o=n[i];null!==o&&!bc(o)&&(r?o<=t:o=200){var s=t?null:ks(n);if(s)return P(s);c=!1,u=S,l=new yr}else l=t?[]:a;n:for(;++e=e?n:au(n,t,r)}function Iu(n,t){if(t)return n.slice();var r=n.length,e=zl?zl(r):new n.constructor(r);return n.copy(e),e}function Ru(n){var t=new n.constructor(n.byteLength);return new Rl(t).set(new Rl(n)),t}function Wu(n,t){return new n.constructor(t?Ru(n.buffer):n.buffer,n.byteOffset,n.length)}function Lu(n,t){if(n!==t){var r=n!==X,e=null===n,u=n==n,i=bc(n),o=t!==X,f=null===t,c=t==t,a=bc(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n1?r[u-1]:X,o=u>2?r[2]:X;for(i=n.length>3&&"function"==typeof i?(u--,i):X,o&&Ui(r[0],r[1],o)&&(i=u<3?X:i,u=1),t=ll(t);++e-1?u[i?t[o]:o]:X}}function Yu(n){return gi((function(t){var r=t.length,e=r,u=Y.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if("function"!=typeof i)throw new pl(en);if(u&&!o&&"wrapper"==bi(i))var o=new Y([],!0)}for(e=o?e:r;++e1&&d.reverse(),s&&cf))return!1;var a=i.get(n),l=i.get(t);if(a&&l)return a==t&&l==n;var s=-1,p=!0,_=2&r?new yr:X;for(i.set(n,t),i.set(t,n);++s-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(Ut,"{\n/* [wrapped with "+t+"] */\n")}(e,ro(function Ii(n){var t=n.match(Bt);return t?t[1].split(Tt):[]}(e),r)))}function Qi(n){var t=0,r=0;return function(){var e=Jl(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(X,arguments)}}function Xi(n,t){var r=-1,e=n.length,u=e-1;for(t=t===X?e:t;++r0&&(r=t.apply(this,arguments)),n<=1&&(t=X),r}}function Wf(n,t,r){function e(t){var r=h,e=p;return h=p=X,d=t,v=n.apply(e,r)}function o(n){var r=n-y;return y===X||r>=t||r<0||w&&n-d>=_}function f(){var n=fh();return o(n)?c(n):(g=Ws(f,function i(n){var u=t-(n-y);return w?Hl(u,_-(n-d)):u}(n)),X)}function c(n){return g=X,m&&h?e(n):(h=p=X,v)}function s(){var n=fh(),r=o(n);if(h=arguments,p=this,y=n,r){if(g===X)return function u(n){return d=n,g=Ws(f,t),b?e(n):v}(y);if(w)return As(g),g=Ws(f,t),e(y)}return g===X&&(g=Ws(f,t)),v}var h,p,_,v,g,y,d=0,b=!1,w=!1,m=!0;if("function"!=typeof n)throw new pl(en);return t=Ic(t)||0,fc(r)&&(b=!!r.leading,_=(w="maxWait"in r)?Gl(Ic(r.maxWait)||0,t):_,m="trailing"in r?!!r.trailing:m),s.cancel=function a(){g!==X&&As(g),d=0,h=y=p=g=X},s.flush=function l(){return g===X?v:c(fh())},s}function Cf(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new pl(en);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Cf.Cache||sr),r}function Uf(n){if("function"!=typeof n)throw new pl(en);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Gf(n,t){return n===t||n!=n&&t!=t}function Hf(n){return null!=n&&oc(n.length)&&!uc(n)}function Jf(n){return cc(n)&&Hf(n)}function rc(n){if(!cc(n))return!1;var t=we(n);return t==Zn||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!gc(n)}function uc(n){if(!fc(n))return!1;var t=we(n);return t==Kn||t==Vn||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ic(n){return"number"==typeof n&&n==kc(n)}function oc(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=Wn}function fc(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function cc(n){return null!=n&&"object"==typeof n}function vc(n){return"number"==typeof n||cc(n)&&we(n)==Hn}function gc(n){if(!cc(n)||we(n)!=Yn)return!1;var t=El(n);if(null===t)return!0;var r=bl.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&dl.call(r)==jl}function dc(n){return"string"==typeof n||!bh(n)&&cc(n)&&we(n)==rt}function bc(n){return"symbol"==typeof n||cc(n)&&we(n)==et}function jc(n){if(!n)return[];if(Hf(n))return dc(n)?G(n):Tu(n);if(Ul&&n[Ul])return function D(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Ul]());var t=zs(n);return(t==Gn?M:t==tt?P:ra)(n)}function Ac(n){return n?(n=Ic(n))===Sn||n===-Sn?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function kc(n){var t=Ac(n),r=t%1;return t==t?r?t-r:t:0}function Oc(n){return n?Mr(kc(n),0,Un):0}function Ic(n){if("number"==typeof n)return n;if(bc(n))return Cn;if(fc(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=fc(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=R(n);var r=qt.test(n);return r||Kt.test(n)?Xr(n.slice(2),r?2:8):Pt.test(n)?Cn:+n}function Rc(n){return $u(n,qc(n))}function Ec(n){return null==n?"":vu(n)}function Mc(n,t,r){var e=null==n?X:_e(n,t);return e===X?r:e}function Nc(n,t){return null!=n&&Ri(n,t,je)}function Pc(n){return Hf(n)?Or(n):Me(n)}function qc(n){return Hf(n)?Or(n,!0):Fe(n)}function Gc(n,t){if(null==n)return{};var r=c(di(n),(function(n){return[n]}));return t=mi(t),Ye(n,r,(function(n,r){return t(n,r[0])}))}function ra(n){return null==n?[]:E(n,Pc(n))}function fa(n){return Qh(Ec(n).toLowerCase())}function ca(n){return(n=Ec(n))&&n.replace(Gt,ve).replace(Dr,"")}function Ra(n,t,r){return n=Ec(n),(t=r?X:t)===X?$(n)?Q(n):_(n):n.match(t)||[]}function Sa(n){return function(){return n}}function La(n){return n}function Ca(n){return De("function"==typeof n?n:Fr(n,1))}function Ta(n,t,e){var u=Pc(t),i=fe(t,u);null!=e||fc(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=fe(t,Pc(t)));var o=!(fc(e)&&"chain"in e&&!e.chain),f=uc(n);return r(i,(function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Tu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})})),n}function Da(){}function Fa(n){return Bi(n)?m(no(n)):function Qe(n){return function(t){return _e(t,n)}}(n)}function Pa(){return[]}function qa(){return!1}var il=(x=null==x?re:be.defaults(re.Object(),x,be.pick(re,qr))).Array,ol=x.Date,fl=x.Error,cl=x.Function,al=x.Math,ll=x.Object,sl=x.RegExp,hl=x.String,pl=x.TypeError,_l=il.prototype,vl=cl.prototype,gl=ll.prototype,yl=x["__core-js_shared__"],dl=vl.toString,bl=gl.hasOwnProperty,wl=0,ml=function(){var n=/[^.]+$/.exec(yl&&yl.keys&&yl.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),xl=gl.toString,jl=dl.call(ll),Al=re._,kl=sl("^"+dl.call(bl).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ol=ie?x.Buffer:X,Il=x.Symbol,Rl=x.Uint8Array,zl=Ol?Ol.allocUnsafe:X,El=F(ll.getPrototypeOf,ll),Sl=ll.create,Wl=gl.propertyIsEnumerable,Ll=_l.splice,Cl=Il?Il.isConcatSpreadable:X,Ul=Il?Il.iterator:X,Bl=Il?Il.toStringTag:X,Tl=function(){try{var n=Ai(ll,"defineProperty");return n({},"",{}),n}catch(n){}}(),$l=x.clearTimeout!==re.clearTimeout&&x.clearTimeout,Dl=ol&&ol.now!==re.Date.now&&ol.now,Ml=x.setTimeout!==re.setTimeout&&x.setTimeout,Fl=al.ceil,Nl=al.floor,Pl=ll.getOwnPropertySymbols,ql=Ol?Ol.isBuffer:X,Zl=x.isFinite,Kl=_l.join,Vl=F(ll.keys,ll),Gl=al.max,Hl=al.min,Jl=ol.now,Yl=x.parseInt,Ql=al.random,Xl=_l.reverse,ns=Ai(x,"DataView"),ts=Ai(x,"Map"),rs=Ai(x,"Promise"),es=Ai(x,"Set"),us=Ai(x,"WeakMap"),is=Ai(ll,"create"),os=us&&new us,fs={},cs=to(ns),as=to(ts),ls=to(rs),ss=to(es),hs=to(us),ps=Il?Il.prototype:X,_s=ps?ps.valueOf:X,vs=ps?ps.toString:X,gs=function(){function n(){}return function(t){if(!fc(t))return{};if(Sl)return Sl(t);n.prototype=t;var r=new n;return n.prototype=X,r}}();Z.templateSettings={escape:kt,evaluate:Ot,interpolate:It,variable:"",imports:{_:Z}},Z.prototype=J.prototype,Z.prototype.constructor=Z,Y.prototype=gs(J.prototype),Y.prototype.constructor=Y,Ct.prototype=gs(J.prototype),Ct.prototype.constructor=Ct,Xt.prototype.clear=function nr(){this.__data__=is?is(null):{},this.size=0},Xt.prototype.delete=function tr(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Xt.prototype.get=function rr(n){var t=this.__data__;if(is){var r=t[n];return r===on?X:r}return bl.call(t,n)?t[n]:X},Xt.prototype.has=function er(n){var t=this.__data__;return is?t[n]!==X:bl.call(t,n)},Xt.prototype.set=function ur(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=is&&t===X?on:t,this},ir.prototype.clear=function or(){this.__data__=[],this.size=0},ir.prototype.delete=function fr(n){var t=this.__data__,r=Wr(t,n);return!(r<0||(r==t.length-1?t.pop():Ll.call(t,r,1),--this.size,0))},ir.prototype.get=function cr(n){var t=this.__data__,r=Wr(t,n);return r<0?X:t[r][1]},ir.prototype.has=function ar(n){return Wr(this.__data__,n)>-1},ir.prototype.set=function lr(n,t){var r=this.__data__,e=Wr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},sr.prototype.clear=function hr(){this.size=0,this.__data__={hash:new Xt,map:new(ts||ir),string:new Xt}},sr.prototype.delete=function pr(n){var t=xi(this,n).delete(n);return this.size-=t?1:0,t},sr.prototype.get=function _r(n){return xi(this,n).get(n)},sr.prototype.has=function vr(n){return xi(this,n).has(n)},sr.prototype.set=function gr(n,t){var r=xi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},yr.prototype.add=yr.prototype.push=function dr(n){return this.__data__.set(n,on),this},yr.prototype.has=function br(n){return this.__data__.has(n)},wr.prototype.clear=function mr(){this.__data__=new ir,this.size=0},wr.prototype.delete=function xr(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},wr.prototype.get=function jr(n){return this.__data__.get(n)},wr.prototype.has=function Ar(n){return this.__data__.has(n)},wr.prototype.set=function kr(n,t){var r=this.__data__;if(r instanceof ir){var e=r.__data__;if(!ts||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new sr(e)}return r.set(n,t),this.size=r.size,this};var ys=Pu(ue),ds=Pu(oe,!0),bs=qu(),ws=qu(!0),ms=os?function(n,t){return os.set(n,t),n}:La,xs=Tl?function(n,t){return Tl(n,"toString",{configurable:!0,enumerable:!1,value:Sa(t),writable:!0})}:La,js=uu,As=$l||function(n){return re.clearTimeout(n)},ks=es&&1/P(new es([,-0]))[1]==Sn?function(n){return new es(n)}:Da,Os=os?function(n){return os.get(n)}:Da,Is=Pl?function(n){return null==n?[]:(n=ll(n),i(Pl(n),(function(t){return Wl.call(n,t)})))}:Pa,Rs=Pl?function(n){for(var t=[];n;)a(t,Is(n)),n=El(n);return t}:Pa,zs=we;(ns&&zs(new ns(new ArrayBuffer(1)))!=ct||ts&&zs(new ts)!=Gn||rs&&zs(rs.resolve())!=Qn||es&&zs(new es)!=tt||us&&zs(new us)!=it)&&(zs=function(n){var t=we(n),r=t==Yn?n.constructor:X,e=r?to(r):"";if(e)switch(e){case cs:return ct;case as:return Gn;case ls:return Qn;case ss:return tt;case hs:return it}return t});var Es=yl?uc:qa,Ss=Qi(ms),Ws=Ml||function(n,t){return re.setTimeout(n,t)},Ls=Qi(xs),Cs=function Pi(n){var t=Cf(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(Et,(function(n,r,e,u){t.push(e?u.replace(Mt,"$1"):r||n)})),t})),Us=uu((function(n,t){return Jf(n)?Hr(n,ee(t,1,Jf,!0)):[]})),Bs=uu((function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),mi(r,2)):[]})),Ts=uu((function(n,t){var r=jo(t);return Jf(r)&&(r=X),Jf(n)?Hr(n,ee(t,1,Jf,!0),X,r):[]})),$s=uu((function(n){var t=c(n,ju);return t.length&&t[0]===n[0]?ke(t):[]})),Ds=uu((function(n){var t=jo(n),r=c(n,ju);return t===jo(r)?t=X:r.pop(),r.length&&r[0]===n[0]?ke(r,mi(t,2)):[]})),Ms=uu((function(n){var t=jo(n),r=c(n,ju);return(t="function"==typeof t?t:X)&&r.pop(),r.length&&r[0]===n[0]?ke(r,X,t):[]})),Fs=uu(Oo),Ns=gi((function(n,t){var r=null==n?0:n.length,e=Tr(n,t);return nu(n,c(t,(function(n){return Ci(n,r)?+n:n})).sort(Lu)),e})),Ps=uu((function(n){return gu(ee(n,1,Jf,!0))})),qs=uu((function(n){var t=jo(n);return Jf(t)&&(t=X),gu(ee(n,1,Jf,!0),mi(t,2))})),Zs=uu((function(n){var t=jo(n);return t="function"==typeof t?t:X,gu(ee(n,1,Jf,!0),X,t)})),Ks=uu((function(n,t){return Jf(n)?Hr(n,t):[]})),Vs=uu((function(n){return mu(i(n,Jf))})),Gs=uu((function(n){var t=jo(n);return Jf(t)&&(t=X),mu(i(n,Jf),mi(t,2))})),Hs=uu((function(n){var t=jo(n);return t="function"==typeof t?t:X,mu(i(n,Jf),X,t)})),Js=uu(Go),Ys=uu((function(n){var t=n.length,r=t>1?n[t-1]:X;return r="function"==typeof r?(n.pop(),r):X,Ho(n,r)})),Qs=gi((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return Tr(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Ct&&Ci(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:nf,args:[u],thisArg:X}),new Y(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(X),n}))):this.thru(u)})),Xs=Fu((function(n,t,r){bl.call(n,r)?++n[r]:Br(n,r,1)})),nh=Ju(ho),th=Ju(po),rh=Fu((function(n,t,r){bl.call(n,r)?n[r].push(t):Br(n,r,[t])})),eh=uu((function(t,r,e){var u=-1,i="function"==typeof r,o=Hf(t)?il(t.length):[];return ys(t,(function(t){o[++u]=i?n(r,t,e):Ie(t,r,e)})),o})),uh=Fu((function(n,t,r){Br(n,r,t)})),ih=Fu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]})),oh=uu((function(n,t){if(null==n)return[];var r=t.length;return r>1&&Ui(n,t[0],t[1])?t=[]:r>2&&Ui(t[0],t[1],t[2])&&(t=[t[0]]),He(n,ee(t,1),[])})),fh=Dl||function(){return re.Date.now()},ch=uu((function(n,t,r){var e=1;if(r.length){var u=N(r,wi(ch));e|=32}return ai(n,e,t,r,u)})),ah=uu((function(n,t,r){var e=3;if(r.length){var u=N(r,wi(ah));e|=32}return ai(t,e,n,r,u)})),lh=uu((function(n,t){return Gr(n,1,t)})),sh=uu((function(n,t,r){return Gr(n,Ic(t)||0,r)}));Cf.Cache=sr;var hh=js((function(t,r){var e=(r=1==r.length&&bh(r[0])?c(r[0],z(mi())):c(ee(r,1),z(mi()))).length;return uu((function(u){for(var i=-1,o=Hl(u.length,e);++i=t})),dh=Re(function(){return arguments}())?Re:function(n){return cc(n)&&bl.call(n,"callee")&&!Wl.call(n,"callee")},bh=il.isArray,wh=ce?z(ce):function ze(n){return cc(n)&&we(n)==ft},mh=ql||qa,xh=ae?z(ae):function Ee(n){return cc(n)&&we(n)==Pn},jh=le?z(le):function Le(n){return cc(n)&&zs(n)==Gn},Ah=se?z(se):function Be(n){return cc(n)&&we(n)==nt},kh=he?z(he):function Te(n){return cc(n)&&zs(n)==tt},Oh=pe?z(pe):function $e(n){return cc(n)&&oc(n.length)&&!!Kr[we(n)]},Ih=ii(Ne),Rh=ii((function(n,t){return n<=t})),zh=Nu((function(n,t){if(Mi(t)||Hf(t))return $u(t,Pc(t),n),X;for(var r in t)bl.call(t,r)&&Sr(n,r,t[r])})),Eh=Nu((function(n,t){$u(t,qc(t),n)})),Sh=Nu((function(n,t,r,e){$u(t,qc(t),n,e)})),Wh=Nu((function(n,t,r,e){$u(t,Pc(t),n,e)})),Lh=gi(Tr),Ch=uu((function(n,t){n=ll(n);var r=-1,e=t.length,u=e>2?t[2]:X;for(u&&Ui(t[0],t[1],u)&&(e=1);++r1),t})),$u(n,di(n),r),e&&(r=Fr(r,7,hi));for(var u=t.length;u--;)yu(r,t[u]);return r})),Nh=gi((function(n,t){return null==n?{}:function Je(n,t){return Ye(n,t,(function(t,r){return Nc(n,r)}))}(n,t)})),Ph=ci(Pc),qh=ci(qc),Zh=Vu((function(n,t,r){return t=t.toLowerCase(),n+(r?fa(t):t)})),Kh=Vu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Vh=Vu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Gh=Ku("toLowerCase"),Hh=Vu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()})),Jh=Vu((function(n,t,r){return n+(r?" ":"")+Qh(t)})),Yh=Vu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qh=Ku("toUpperCase"),Xh=uu((function(t,r){try{return n(t,X,r)}catch(n){return rc(n)?n:new fl(n)}})),np=gi((function(n,t){return r(t,(function(t){t=no(t),Br(n,t,ch(n[t],n))})),n})),tp=Yu(),rp=Yu(!0),ep=uu((function(n,t){return function(r){return Ie(r,n,t)}})),up=uu((function(n,t){return function(r){return Ie(n,r,t)}})),ip=ti(c),op=ti(u),fp=ti(h),cp=ui(),ap=ui(!0),lp=ni((function(n,t){return n+t}),0),sp=fi("ceil"),hp=ni((function(n,t){return n/t}),1),pp=fi("floor"),_p=ni((function(n,t){return n*t}),1),vp=fi("round"),gp=ni((function(n,t){return n-t}),0);return Z.after=function If(n,t){if("function"!=typeof t)throw new pl(en);return n=kc(n),function(){if(--n<1)return t.apply(this,arguments)}},Z.ary=Rf,Z.assign=zh,Z.assignIn=Eh,Z.assignInWith=Sh,Z.assignWith=Wh,Z.at=Lh,Z.before=zf,Z.bind=ch,Z.bindAll=np,Z.bindKey=ah,Z.castArray=function Nf(){if(!arguments.length)return[];var n=arguments[0];return bh(n)?n:[n]},Z.chain=Qo,Z.chunk=function uo(n,t,r){t=(r?Ui(n,t,r):t===X)?1:Gl(kc(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=il(Fl(e/t));uu?0:u+r),(e=e===X||e>u?u:kc(e))<0&&(e+=u),e=r>e?0:Oc(e);r>>0)?(n=Ec(n))&&("string"==typeof t||null!=t&&!Ah(t))&&(!(t=vu(t))&&T(n))?Ou(G(n),0,r):n.split(t,r):[]},Z.spread=function $f(t,r){if("function"!=typeof t)throw new pl(en);return r=null==r?0:Gl(kc(r),0),uu((function(e){var u=e[r],i=Ou(e,0,r);return u&&a(i,u),n(t,this,i)}))},Z.tail=function Mo(n){var t=null==n?0:n.length;return t?au(n,1,t):[]},Z.take=function Fo(n,t,r){return n&&n.length?au(n,0,(t=r||t===X?1:kc(t))<0?0:t):[]},Z.takeRight=function No(n,t,r){var e=null==n?0:n.length;return e?au(n,(t=e-(t=r||t===X?1:kc(t)))<0?0:t,e):[]},Z.takeRightWhile=function Po(n,t){return n&&n.length?bu(n,mi(t,3),!1,!0):[]},Z.takeWhile=function qo(n,t){return n&&n.length?bu(n,mi(t,3)):[]},Z.tap=function Xo(n,t){return t(n),n},Z.throttle=function Df(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new pl(en);return fc(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wf(n,t,{leading:e,maxWait:t,trailing:u})},Z.thru=nf,Z.toArray=jc,Z.toPairs=Ph,Z.toPairsIn=qh,Z.toPath=function Ha(n){return bh(n)?c(n,no):bc(n)?[n]:Tu(Cs(Ec(n)))},Z.toPlainObject=Rc,Z.transform=function Qc(n,t,e){var u=bh(n),i=u||mh(n)||Oh(n);if(t=mi(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:fc(n)&&uc(o)?gs(El(n)):{}}return(i?r:ue)(n,(function(n,r,u){return t(e,n,r,u)})),e},Z.unary=function Mf(n){return Rf(n,1)},Z.union=Ps,Z.unionBy=qs,Z.unionWith=Zs,Z.uniq=function Zo(n){return n&&n.length?gu(n):[]},Z.uniqBy=function Ko(n,t){return n&&n.length?gu(n,mi(t,2)):[]},Z.uniqWith=function Vo(n,t){return t="function"==typeof t?t:X,n&&n.length?gu(n,X,t):[]},Z.unset=function Xc(n,t){return null==n||yu(n,t)},Z.unzip=Go,Z.unzipWith=Ho,Z.update=function na(n,t,r){return null==n?n:du(n,t,Au(r))},Z.updateWith=function ta(n,t,r,e){return e="function"==typeof e?e:X,null==n?n:du(n,t,Au(r),e)},Z.values=ra,Z.valuesIn=function ea(n){return null==n?[]:E(n,qc(n))},Z.without=Ks,Z.words=Ra,Z.wrap=function Ff(n,t){return ph(Au(t),n)},Z.xor=Vs,Z.xorBy=Gs,Z.xorWith=Hs,Z.zip=Js,Z.zipObject=function Jo(n,t){return xu(n||[],t||[],Sr)},Z.zipObjectDeep=function Yo(n,t){return xu(n||[],t||[],fu)},Z.zipWith=Ys,Z.entries=Ph,Z.entriesIn=qh,Z.extend=Eh,Z.extendWith=Sh,Ta(Z,Z),Z.add=lp,Z.attempt=Xh,Z.camelCase=Zh,Z.capitalize=fa,Z.ceil=sp,Z.clamp=function ua(n,t,r){return r===X&&(r=t,t=X),r!==X&&(r=(r=Ic(r))==r?r:0),t!==X&&(t=(t=Ic(t))==t?t:0),Mr(Ic(n),t,r)},Z.clone=function Pf(n){return Fr(n,4)},Z.cloneDeep=function Zf(n){return Fr(n,5)},Z.cloneDeepWith=function Kf(n,t){return Fr(n,5,t="function"==typeof t?t:X)},Z.cloneWith=function qf(n,t){return Fr(n,4,t="function"==typeof t?t:X)},Z.conformsTo=function Vf(n,t){return null==t||Pr(n,t,Pc(t))},Z.deburr=ca,Z.defaultTo=function Wa(n,t){return null==n||n!=n?t:n},Z.divide=hp,Z.endsWith=function aa(n,t,r){n=Ec(n),t=vu(t);var e=n.length,u=r=r===X?e:Mr(kc(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},Z.eq=Gf,Z.escape=function la(n){return(n=Ec(n))&&At.test(n)?n.replace(xt,ge):n},Z.escapeRegExp=function sa(n){return(n=Ec(n))&&Wt.test(n)?n.replace(St,"\\$&"):n},Z.every=function af(n,t,r){var e=bh(n)?u:Jr;return r&&Ui(n,t,r)&&(t=X),e(n,mi(t,3))},Z.find=nh,Z.findIndex=ho,Z.findKey=function Wc(n,t){return v(n,mi(t,3),ue)},Z.findLast=th,Z.findLastIndex=po,Z.findLastKey=function Lc(n,t){return v(n,mi(t,3),oe)},Z.floor=pp,Z.forEach=_f,Z.forEachRight=vf,Z.forIn=function Cc(n,t){return null==n?n:bs(n,mi(t,3),qc)},Z.forInRight=function Uc(n,t){return null==n?n:ws(n,mi(t,3),qc)},Z.forOwn=function Bc(n,t){return n&&ue(n,mi(t,3))},Z.forOwnRight=function Tc(n,t){return n&&oe(n,mi(t,3))},Z.get=Mc,Z.gt=gh,Z.gte=yh,Z.has=function Fc(n,t){return null!=n&&Ri(n,t,xe)},Z.hasIn=Nc,Z.head=bo,Z.identity=La,Z.includes=function gf(n,t,r,e){n=Hf(n)?n:ra(n),r=r&&!e?kc(r):0;var u=n.length;return r<0&&(r=Gl(u+r,0)),dc(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&y(n,t,r)>-1},Z.indexOf=function wo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:kc(r);return u<0&&(u=Gl(e+u,0)),y(n,t,u)},Z.inRange=function ia(n,t,r){return t=Ac(t),r===X?(r=t,t=0):r=Ac(r),function Ae(n,t,r){return n>=Hl(t,r)&&n=-Wn&&n<=Wn},Z.isSet=kh,Z.isString=dc,Z.isSymbol=bc,Z.isTypedArray=Oh,Z.isUndefined=function wc(n){return n===X},Z.isWeakMap=function mc(n){return cc(n)&&zs(n)==it},Z.isWeakSet=function xc(n){return cc(n)&&"[object WeakSet]"==we(n)},Z.join=function xo(n,t){return null==n?"":Kl.call(n,t)},Z.kebabCase=Kh,Z.last=jo,Z.lastIndexOf=function Ao(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==X&&(u=(u=kc(r))<0?Gl(e+u,0):Hl(u,e-1)),t==t?function K(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):g(n,b,u,!0)},Z.lowerCase=Vh,Z.lowerFirst=Gh,Z.lt=Ih,Z.lte=Rh,Z.max=function Ya(n){return n&&n.length?Yr(n,La,me):X},Z.maxBy=function Qa(n,t){return n&&n.length?Yr(n,mi(t,2),me):X},Z.mean=function Xa(n){return w(n,La)},Z.meanBy=function nl(n,t){return w(n,mi(t,2))},Z.min=function tl(n){return n&&n.length?Yr(n,La,Ne):X},Z.minBy=function rl(n,t){return n&&n.length?Yr(n,mi(t,2),Ne):X},Z.stubArray=Pa,Z.stubFalse=qa,Z.stubObject=function Za(){return{}},Z.stubString=function Ka(){return""},Z.stubTrue=function Va(){return!0},Z.multiply=_p,Z.nth=function ko(n,t){return n&&n.length?Ge(n,kc(t)):X},Z.noConflict=function $a(){return re._===this&&(re._=Al),this},Z.noop=Da,Z.now=fh,Z.pad=function ha(n,t,r){n=Ec(n);var e=(t=kc(t))?V(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return ri(Nl(u),r)+n+ri(Fl(u),r)},Z.padEnd=function pa(n,t,r){n=Ec(n);var e=(t=kc(t))?V(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ql();return Hl(n+u*(t-n+Qr("1e-"+((u+"").length-1))),t)}return tu(n,t)},Z.reduce=function bf(n,t,r){var e=bh(n)?l:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ys)},Z.reduceRight=function wf(n,t,r){var e=bh(n)?s:j,u=arguments.length<3;return e(n,mi(t,4),r,u,ds)},Z.repeat=function ga(n,t,r){return t=(r?Ui(n,t,r):t===X)?1:kc(t),eu(Ec(n),t)},Z.replace=function ya(){var n=arguments,t=Ec(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Z.result=function Hc(n,t,r){var e=-1,u=(t=ku(t,n)).length;for(u||(u=1,n=X);++eWn)return[];var r=Un,e=Hl(n,Un);t=mi(t),n-=Un;for(var u=O(e,t);++r=i)return n;var f=r-V(e);if(f<1)return e;var c=o?Ou(o,0,f).join(""):n.slice(0,f);if(u===X)return c+e;if(o&&(f+=c.length-f),Ah(u)){if(n.slice(f).search(u)){var a,l=c;for(u.global||(u=sl(u.source,Ec(Nt.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var s=a.index;c=c.slice(0,s===X?f:s)}}else if(n.indexOf(vu(u),f)!=f){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+e},Z.unescape=function Ia(n){return(n=Ec(n))&&jt.test(n)?n.replace(mt,ye):n},Z.uniqueId=function Ja(n){var t=++wl;return Ec(n)+t},Z.upperCase=Yh,Z.upperFirst=Qh,Z.each=_f,Z.eachRight=vf,Z.first=bo,Ta(Z,function(){var n={};return ue(Z,(function(t,r){bl.call(Z.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Z.VERSION="4.17.21",r(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Z[n].placeholder=Z})),r(["drop","take"],(function(n,t){Ct.prototype[n]=function(r){r=r===X?1:Gl(kc(r),0);var e=this.__filtered__&&!t?new Ct(this):this.clone();return e.__filtered__?e.__takeCount__=Hl(r,e.__takeCount__):e.__views__.push({size:Hl(r,Un),type:n+(e.__dir__<0?"Right":"")}),e},Ct.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),r(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Ct.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:mi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),r(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Ct.prototype[n]=function(){return this[r](1).value()[0]}})),r(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Ct.prototype[n]=function(){return this.__filtered__?new Ct(this):this[r](1)}})),Ct.prototype.compact=function(){return this.filter(La)},Ct.prototype.find=function(n){return this.filter(n).head()},Ct.prototype.findLast=function(n){return this.reverse().find(n)},Ct.prototype.invokeMap=uu((function(n,t){return"function"==typeof n?new Ct(this):this.map((function(r){return Ie(r,n,t)}))})),Ct.prototype.reject=function(n){return this.filter(Uf(mi(n)))},Ct.prototype.slice=function(n,t){n=kc(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Ct(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==X&&(r=(t=kc(t))<0?r.dropRight(-t):r.take(t-n)),r)},Ct.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ct.prototype.toArray=function(){return this.take(Un)},ue(Ct.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=Z[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(Z.prototype[t]=function(){var t=this.__wrapped__,o=e?[1]:arguments,f=t instanceof Ct,c=o[0],l=f||bh(t),s=function(n){var t=u.apply(Z,a([n],o));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,_=i&&!h,v=f&&!p;if(!i&&l){t=v?t:new Ct(this);var g=n.apply(t,o);return g.__actions__.push({func:nf,args:[s],thisArg:X}),new Y(g,h)}return _&&v?n.apply(this,o):(g=this.thru(s),_?e?g.value()[0]:g.value():g)})})),r(["pop","push","shift","sort","splice","unshift"],(function(n){var t=_l[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Z.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(bh(u)?u:[],n)}return this[r]((function(r){return t.apply(bh(r)?r:[],n)}))}})),ue(Ct.prototype,(function(n,t){var r=Z[t];if(r){var e=r.name+"";bl.call(fs,e)||(fs[e]=[]),fs[e].push({name:t,func:r})}})),fs[Qu(X,2).name]=[{name:"wrapper",func:X}],Ct.prototype.clone=function $t(){var n=new Ct(this.__wrapped__);return n.__actions__=Tu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tu(this.__views__),n},Ct.prototype.reverse=function Yt(){if(this.__filtered__){var n=new Ct(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Ct.prototype.value=function Qt(){var n=this.__wrapped__.value(),t=this.__dir__,r=bh(n),e=t<0,u=r?n.length:0,i=function Oi(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?X:this.__values__[this.__index__++]}},Z.prototype.plant=function of(n){for(var t,r=this;r instanceof J;){var e=eo(r);e.__index__=0,e.__values__=X,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},Z.prototype.reverse=function ff(){var n=this.__wrapped__;if(n instanceof Ct){var t=n;return this.__actions__.length&&(t=new Ct(this)),(t=t.reverse()).__actions__.push({func:nf,args:[Eo],thisArg:X}),new Y(t,this.__chain__)}return this.thru(Eo)},Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=function cf(){return wu(this.__wrapped__,this.__actions__)},Z.prototype.first=Z.prototype.head,Ul&&(Z.prototype[Ul]=function uf(){return this}),Z}();re._=be,void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return be}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}.call(this)},"./node_modules/react-cool-dimensions/dist/index.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>useDimensions});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=val&&val>max&&(curBp=key,max=val)})),curBp}(breakpoints,width),e.currentBreakpoint!==prevBreakpointRef.current&&(onResizeRef.current&&onResizeRef.current(e),prevBreakpointRef.current=e.currentBreakpoint)):onResizeRef.current&&onResizeRef.current(e);var next={currentBreakpoint:e.currentBreakpoint,width,height,entry};shouldUpdateRef.current&&!shouldUpdateRef.current(next)||(!shouldUpdateRef.current&&breakpoints&&updateOnBreakpointChange?setState((function(prev){return prev.currentBreakpoint!==next.currentBreakpoint?next:prev})):setState(next))}}))})),observe(),function(){unobserve(),raf&&cancelAnimationFrame(raf)}}),[JSON.stringify(breakpoints),useBorderBoxSize,observe,unobserve,updateOnBreakpointChange]),_extends({},state,{observe,unobserve})}},"./node_modules/react-draggable/build/cjs/Draggable.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DraggableCore",{enumerable:!0,get:function(){return _DraggableCore.default}}),exports.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react/index.js")),_propTypes=_interopRequireDefault(__webpack_require__("./node_modules/prop-types/index.js")),_reactDom=_interopRequireDefault(__webpack_require__("./node_modules/react-dom/index.js")),_clsx=_interopRequireDefault(__webpack_require__("./node_modules/clsx/dist/clsx.m.js")),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js"),_positionFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/positionFns.js"),_shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_DraggableCore=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/DraggableCore.js")),_log=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/log.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{(0,_log.default)("Draggable: onDragStart: %j",coreData);if(!1===this.props.onStart(e,(0,_positionFns.createDraggableData)(this,coreData)))return!1;this.setState({dragging:!0,dragged:!0})})),_defineProperty(this,"onDrag",((e,coreData)=>{if(!this.state.dragging)return!1;(0,_log.default)("Draggable: onDrag: %j",coreData);const uiData=(0,_positionFns.createDraggableData)(this,coreData),newState={x:uiData.x,y:uiData.y,slackX:0,slackY:0};if(this.props.bounds){const{x,y}=newState;newState.x+=this.state.slackX,newState.y+=this.state.slackY;const[newStateX,newStateY]=(0,_positionFns.getBoundPosition)(this,newState.x,newState.y);newState.x=newStateX,newState.y=newStateY,newState.slackX=this.state.slackX+(x-newState.x),newState.slackY=this.state.slackY+(y-newState.y),uiData.x=newState.x,uiData.y=newState.y,uiData.deltaX=newState.x-this.state.x,uiData.deltaY=newState.y-this.state.y}if(!1===this.props.onDrag(e,uiData))return!1;this.setState(newState)})),_defineProperty(this,"onDragStop",((e,coreData)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,_positionFns.createDraggableData)(this,coreData)))return!1;(0,_log.default)("Draggable: onDragStop: %j",coreData);const newState={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x,y}=this.props.position;newState.x=x,newState.y=y}this.setState(newState)})),this.state={dragging:!1,dragged:!1,x:props.position?props.position.x:props.defaultPosition.x,y:props.position?props.position.y:props.defaultPosition.y,prevPropsPosition:{...props.position},slackX:0,slackY:0,isElementSVG:!1},!props.position||props.onDrag||props.onStop||console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _this$props$nodeRef$c,_this$props;return null!==(_this$props$nodeRef$c=null===(_this$props=this.props)||void 0===_this$props||null===(_this$props=_this$props.nodeRef)||void 0===_this$props?void 0:_this$props.current)&&void 0!==_this$props$nodeRef$c?_this$props$nodeRef$c:_reactDom.default.findDOMNode(this)}render(){const{axis,bounds,children,defaultPosition,defaultClassName,defaultClassNameDragging,defaultClassNameDragged,position,positionOffset,scale,...draggableCoreProps}=this.props;let style={},svgTransform=null;const draggable=!Boolean(position)||this.state.dragging,validPosition=position||defaultPosition,transformOpts={x:(0,_positionFns.canDragX)(this)&&draggable?this.state.x:validPosition.x,y:(0,_positionFns.canDragY)(this)&&draggable?this.state.y:validPosition.y};this.state.isElementSVG?svgTransform=(0,_domFns.createSVGTransform)(transformOpts,positionOffset):style=(0,_domFns.createCSSTransform)(transformOpts,positionOffset);const className=(0,_clsx.default)(children.props.className||"",defaultClassName,{[defaultClassNameDragging]:this.state.dragging,[defaultClassNameDragged]:this.state.dragged});return React.createElement(_DraggableCore.default,_extends({},draggableCoreProps,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),React.cloneElement(React.Children.only(children),{className,style:{...children.props.style,...style},transform:svgTransform}))}}exports.default=Draggable,_defineProperty(Draggable,"displayName","Draggable"),_defineProperty(Draggable,"propTypes",{..._DraggableCore.default.propTypes,axis:_propTypes.default.oneOf(["both","x","y","none"]),bounds:_propTypes.default.oneOfType([_propTypes.default.shape({left:_propTypes.default.number,right:_propTypes.default.number,top:_propTypes.default.number,bottom:_propTypes.default.number}),_propTypes.default.string,_propTypes.default.oneOf([!1])]),defaultClassName:_propTypes.default.string,defaultClassNameDragging:_propTypes.default.string,defaultClassNameDragged:_propTypes.default.string,defaultPosition:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),positionOffset:_propTypes.default.shape({x:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string]),y:_propTypes.default.oneOfType([_propTypes.default.number,_propTypes.default.string])}),position:_propTypes.default.shape({x:_propTypes.default.number,y:_propTypes.default.number}),className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe}),_defineProperty(Draggable,"defaultProps",{..._DraggableCore.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},"./node_modules/react-draggable/build/cjs/DraggableCore.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react/index.js")),_propTypes=_interopRequireDefault(__webpack_require__("./node_modules/prop-types/index.js")),_reactDom=_interopRequireDefault(__webpack_require__("./node_modules/react-dom/index.js")),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js"),_positionFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/positionFns.js"),_shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_log=_interopRequireDefault(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/log.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperty(obj,key,value){return(key=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)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const eventsFor_touch={start:"touchstart",move:"touchmove",stop:"touchend"},eventsFor_mouse={start:"mousedown",move:"mousemove",stop:"mouseup"};let dragEventFor=eventsFor_mouse;class DraggableCore extends React.Component{constructor(){super(...arguments),_defineProperty(this,"dragging",!1),_defineProperty(this,"lastX",NaN),_defineProperty(this,"lastY",NaN),_defineProperty(this,"touchIdentifier",null),_defineProperty(this,"mounted",!1),_defineProperty(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const thisNode=this.findDOMNode();if(!thisNode||!thisNode.ownerDocument||!thisNode.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument}=thisNode;if(this.props.disabled||!(e.target instanceof ownerDocument.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(e.target,this.props.handle,thisNode)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(e.target,this.props.cancel,thisNode))return;"touchstart"===e.type&&e.preventDefault();const touchIdentifier=(0,_domFns.getTouchIdentifier)(e);this.touchIdentifier=touchIdentifier;const position=(0,_positionFns.getControlPosition)(e,touchIdentifier,this);if(null==position)return;const{x,y}=position,coreEvent=(0,_positionFns.createCoreData)(this,x,y);(0,_log.default)("DraggableCore: handleDragStart: %j",coreEvent),(0,_log.default)("calling",this.props.onStart);!1!==this.props.onStart(e,coreEvent)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(ownerDocument),this.dragging=!0,this.lastX=x,this.lastY=y,(0,_domFns.addEvent)(ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(ownerDocument,dragEventFor.stop,this.handleDragStop))})),_defineProperty(this,"handleDrag",(e=>{const position=(0,_positionFns.getControlPosition)(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX,deltaY=y-this.lastY;if([deltaX,deltaY]=(0,_positionFns.snapToGrid)(this.props.grid,deltaX,deltaY),!deltaX&&!deltaY)return;x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=(0,_positionFns.createCoreData)(this,x,y);(0,_log.default)("DraggableCore: handleDrag: %j",coreEvent);if(!1!==this.props.onDrag(e,coreEvent)&&!1!==this.mounted)this.lastX=x,this.lastY=y;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(err){const event=document.createEvent("MouseEvents");event.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(event)}})),_defineProperty(this,"handleDragStop",(e=>{if(!this.dragging)return;const position=(0,_positionFns.getControlPosition)(e,this.touchIdentifier,this);if(null==position)return;let{x,y}=position;if(Array.isArray(this.props.grid)){let deltaX=x-this.lastX||0,deltaY=y-this.lastY||0;[deltaX,deltaY]=(0,_positionFns.snapToGrid)(this.props.grid,deltaX,deltaY),x=this.lastX+deltaX,y=this.lastY+deltaY}const coreEvent=(0,_positionFns.createCoreData)(this,x,y);if(!1===this.props.onStop(e,coreEvent)||!1===this.mounted)return!1;const thisNode=this.findDOMNode();thisNode&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(thisNode.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",coreEvent),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,thisNode&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(thisNode.ownerDocument,dragEventFor.stop,this.handleDragStop))})),_defineProperty(this,"onMouseDown",(e=>(dragEventFor=eventsFor_mouse,this.handleDragStart(e)))),_defineProperty(this,"onMouseUp",(e=>(dragEventFor=eventsFor_mouse,this.handleDragStop(e)))),_defineProperty(this,"onTouchStart",(e=>(dragEventFor=eventsFor_touch,this.handleDragStart(e)))),_defineProperty(this,"onTouchEnd",(e=>(dragEventFor=eventsFor_touch,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const thisNode=this.findDOMNode();thisNode&&(0,_domFns.addEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const thisNode=this.findDOMNode();if(thisNode){const{ownerDocument}=thisNode;(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.move,this.handleDrag),(0,_domFns.removeEvent)(ownerDocument,eventsFor_mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)(ownerDocument,eventsFor_touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(thisNode,eventsFor_touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(ownerDocument)}}findDOMNode(){var _this$props,_this$props2;return null!==(_this$props=this.props)&&void 0!==_this$props&&_this$props.nodeRef?null===(_this$props2=this.props)||void 0===_this$props2||null===(_this$props2=_this$props2.nodeRef)||void 0===_this$props2?void 0:_this$props2.current:_reactDom.default.findDOMNode(this)}render(){return React.cloneElement(React.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}exports.default=DraggableCore,_defineProperty(DraggableCore,"displayName","DraggableCore"),_defineProperty(DraggableCore,"propTypes",{allowAnyClick:_propTypes.default.bool,children:_propTypes.default.node.isRequired,disabled:_propTypes.default.bool,enableUserSelectHack:_propTypes.default.bool,offsetParent:function(props,propName){if(props[propName]&&1!==props[propName].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes.default.arrayOf(_propTypes.default.number),handle:_propTypes.default.string,cancel:_propTypes.default.string,nodeRef:_propTypes.default.object,onStart:_propTypes.default.func,onDrag:_propTypes.default.func,onStop:_propTypes.default.func,onMouseDown:_propTypes.default.func,scale:_propTypes.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe}),_defineProperty(DraggableCore,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},"./node_modules/react-draggable/build/cjs/cjs.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const{default:Draggable,DraggableCore}=__webpack_require__("./node_modules/react-draggable/build/cjs/Draggable.js");module.exports=Draggable,module.exports.default=Draggable,module.exports.DraggableCore=DraggableCore},"./node_modules/react-draggable/build/cjs/utils/domFns.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addClassName=addClassName,exports.addEvent=function addEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions};el.addEventListener?el.addEventListener(event,handler,options):el.attachEvent?el.attachEvent("on"+event,handler):el["on"+event]=handler},exports.addUserSelectStyles=function addUserSelectStyles(doc){if(!doc)return;let styleEl=doc.getElementById("react-draggable-style-el");styleEl||(styleEl=doc.createElement("style"),styleEl.type="text/css",styleEl.id="react-draggable-style-el",styleEl.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",styleEl.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",doc.getElementsByTagName("head")[0].appendChild(styleEl));doc.body&&addClassName(doc.body,"react-draggable-transparent-selection")},exports.createCSSTransform=function createCSSTransform(controlPos,positionOffset){const translation=getTranslation(controlPos,positionOffset,"px");return{[(0,_getPrefix.browserPrefixToKey)("transform",_getPrefix.default)]:translation}},exports.createSVGTransform=function createSVGTransform(controlPos,positionOffset){return getTranslation(controlPos,positionOffset,"")},exports.getTouch=function getTouch(e,identifier){return e.targetTouches&&(0,_shims.findInArray)(e.targetTouches,(t=>identifier===t.identifier))||e.changedTouches&&(0,_shims.findInArray)(e.changedTouches,(t=>identifier===t.identifier))},exports.getTouchIdentifier=function getTouchIdentifier(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},exports.getTranslation=getTranslation,exports.innerHeight=function innerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height-=(0,_shims.int)(computedStyle.paddingTop),height-=(0,_shims.int)(computedStyle.paddingBottom),height},exports.innerWidth=function innerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width-=(0,_shims.int)(computedStyle.paddingLeft),width-=(0,_shims.int)(computedStyle.paddingRight),width},exports.matchesSelector=matchesSelector,exports.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(el,selector,baseNode){let node=el;do{if(matchesSelector(node,selector))return!0;if(node===baseNode)return!1;node=node.parentNode}while(node);return!1},exports.offsetXYFromParent=function offsetXYFromParent(evt,offsetParent,scale){const offsetParentRect=offsetParent===offsetParent.ownerDocument.body?{left:0,top:0}:offsetParent.getBoundingClientRect(),x=(evt.clientX+offsetParent.scrollLeft-offsetParentRect.left)/scale,y=(evt.clientY+offsetParent.scrollTop-offsetParentRect.top)/scale;return{x,y}},exports.outerHeight=function outerHeight(node){let height=node.clientHeight;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return height+=(0,_shims.int)(computedStyle.borderTopWidth),height+=(0,_shims.int)(computedStyle.borderBottomWidth),height},exports.outerWidth=function outerWidth(node){let width=node.clientWidth;const computedStyle=node.ownerDocument.defaultView.getComputedStyle(node);return width+=(0,_shims.int)(computedStyle.borderLeftWidth),width+=(0,_shims.int)(computedStyle.borderRightWidth),width},exports.removeClassName=removeClassName,exports.removeEvent=function removeEvent(el,event,handler,inputOptions){if(!el)return;const options={capture:!0,...inputOptions};el.removeEventListener?el.removeEventListener(event,handler,options):el.detachEvent?el.detachEvent("on"+event,handler):el["on"+event]=null},exports.removeUserSelectStyles=function removeUserSelectStyles(doc){if(!doc)return;try{if(doc.body&&removeClassName(doc.body,"react-draggable-transparent-selection"),doc.selection)doc.selection.empty();else{const selection=(doc.defaultView||window).getSelection();selection&&"Caret"!==selection.type&&selection.removeAllRanges()}}catch(e){}};var _shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_getPrefix=function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!=typeof obj&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(__webpack_require__("./node_modules/react-draggable/build/cjs/utils/getPrefix.js"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}let matchesSelectorFunc="";function matchesSelector(el,selector){return matchesSelectorFunc||(matchesSelectorFunc=(0,_shims.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(method){return(0,_shims.isFunction)(el[method])}))),!!(0,_shims.isFunction)(el[matchesSelectorFunc])&&el[matchesSelectorFunc](selector)}function getTranslation(_ref,positionOffset,unitSuffix){let{x,y}=_ref,translation="translate(".concat(x).concat(unitSuffix,",").concat(y).concat(unitSuffix,")");if(positionOffset){const defaultX="".concat("string"==typeof positionOffset.x?positionOffset.x:positionOffset.x+unitSuffix),defaultY="".concat("string"==typeof positionOffset.y?positionOffset.y:positionOffset.y+unitSuffix);translation="translate(".concat(defaultX,", ").concat(defaultY,")")+translation}return translation}function addClassName(el,className){el.classList?el.classList.add(className):el.className.match(new RegExp("(?:^|\\s)".concat(className,"(?!\\S)")))||(el.className+=" ".concat(className))}function removeClassName(el,className){el.classList?el.classList.remove(className):el.className=el.className.replace(new RegExp("(?:^|\\s)".concat(className,"(?!\\S)"),"g"),"")}},"./node_modules/react-draggable/build/cjs/utils/getPrefix.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.browserPrefixToKey=browserPrefixToKey,exports.browserPrefixToStyle=function browserPrefixToStyle(prop,prefix){return prefix?"-".concat(prefix.toLowerCase(),"-").concat(prop):prop},exports.default=void 0,exports.getPrefix=getPrefix;const prefixes=["Moz","Webkit","O","ms"];function getPrefix(){var _window$document;let prop=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const style=null===(_window$document=window.document)||void 0===_window$document||null===(_window$document=_window$document.documentElement)||void 0===_window$document?void 0:_window$document.style;if(!style)return"";if(prop in style)return"";for(let i=0;i{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function log(){0}},"./node_modules/react-draggable/build/cjs/utils/positionFns.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.canDragX=function canDragX(draggable){return"both"===draggable.props.axis||"x"===draggable.props.axis},exports.canDragY=function canDragY(draggable){return"both"===draggable.props.axis||"y"===draggable.props.axis},exports.createCoreData=function createCoreData(draggable,x,y){const isStart=!(0,_shims.isNum)(draggable.lastX),node=findDOMNode(draggable);return isStart?{node,deltaX:0,deltaY:0,lastX:x,lastY:y,x,y}:{node,deltaX:x-draggable.lastX,deltaY:y-draggable.lastY,lastX:draggable.lastX,lastY:draggable.lastY,x,y}},exports.createDraggableData=function createDraggableData(draggable,coreData){const scale=draggable.props.scale;return{node:coreData.node,x:draggable.state.x+coreData.deltaX/scale,y:draggable.state.y+coreData.deltaY/scale,deltaX:coreData.deltaX/scale,deltaY:coreData.deltaY/scale,lastX:draggable.state.x,lastY:draggable.state.y}},exports.getBoundPosition=function getBoundPosition(draggable,x,y){if(!draggable.props.bounds)return[x,y];let{bounds}=draggable.props;bounds="string"==typeof bounds?bounds:function cloneBounds(bounds){return{left:bounds.left,top:bounds.top,right:bounds.right,bottom:bounds.bottom}}(bounds);const node=findDOMNode(draggable);if("string"==typeof bounds){const{ownerDocument}=node,ownerWindow=ownerDocument.defaultView;let boundNode;if(boundNode="parent"===bounds?node.parentNode:ownerDocument.querySelector(bounds),!(boundNode instanceof ownerWindow.HTMLElement))throw new Error('Bounds selector "'+bounds+'" could not find an element.');const boundNodeEl=boundNode,nodeStyle=ownerWindow.getComputedStyle(node),boundNodeStyle=ownerWindow.getComputedStyle(boundNodeEl);bounds={left:-node.offsetLeft+(0,_shims.int)(boundNodeStyle.paddingLeft)+(0,_shims.int)(nodeStyle.marginLeft),top:-node.offsetTop+(0,_shims.int)(boundNodeStyle.paddingTop)+(0,_shims.int)(nodeStyle.marginTop),right:(0,_domFns.innerWidth)(boundNodeEl)-(0,_domFns.outerWidth)(node)-node.offsetLeft+(0,_shims.int)(boundNodeStyle.paddingRight)-(0,_shims.int)(nodeStyle.marginRight),bottom:(0,_domFns.innerHeight)(boundNodeEl)-(0,_domFns.outerHeight)(node)-node.offsetTop+(0,_shims.int)(boundNodeStyle.paddingBottom)-(0,_shims.int)(nodeStyle.marginBottom)}}(0,_shims.isNum)(bounds.right)&&(x=Math.min(x,bounds.right));(0,_shims.isNum)(bounds.bottom)&&(y=Math.min(y,bounds.bottom));(0,_shims.isNum)(bounds.left)&&(x=Math.max(x,bounds.left));(0,_shims.isNum)(bounds.top)&&(y=Math.max(y,bounds.top));return[x,y]},exports.getControlPosition=function getControlPosition(e,touchIdentifier,draggableCore){const touchObj="number"==typeof touchIdentifier?(0,_domFns.getTouch)(e,touchIdentifier):null;if("number"==typeof touchIdentifier&&!touchObj)return null;const node=findDOMNode(draggableCore),offsetParent=draggableCore.props.offsetParent||node.offsetParent||node.ownerDocument.body;return(0,_domFns.offsetXYFromParent)(touchObj||e,offsetParent,draggableCore.props.scale)},exports.snapToGrid=function snapToGrid(grid,pendingX,pendingY){const x=Math.round(pendingX/grid[0])*grid[0],y=Math.round(pendingY/grid[1])*grid[1];return[x,y]};var _shims=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/shims.js"),_domFns=__webpack_require__("./node_modules/react-draggable/build/cjs/utils/domFns.js");function findDOMNode(draggable){const node=draggable.findDOMNode();if(!node)throw new Error(": Unmounted during event!");return node}},"./node_modules/react-draggable/build/cjs/utils/shims.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.dontSetMe=function dontSetMe(props,propName,componentName){if(props[propName])return new Error("Invalid prop ".concat(propName," passed to ").concat(componentName," - do not set this, set it on the child."))},exports.findInArray=function findInArray(array,callback){for(let i=0,length=array.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{GC:()=>es2015_MoveFocusInside,Ay:()=>es2015});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),useMergeRef=__webpack_require__("./node_modules/use-callback-ref/dist/es2015/useMergeRef.js"),hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},InFocusGuard=function InFocusGuard(_ref){var _ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return react.createElement(react.Fragment,null,react.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}),children,children&&react.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:hiddenGuard}))};InFocusGuard.propTypes={};var medium=__webpack_require__("./node_modules/use-sidecar/dist/es2015/medium.js"),mediumFocus=(0,medium.C)({},(function(_ref){return{target:_ref.target,currentTarget:_ref.currentTarget}})),mediumBlur=(0,medium.C)(),mediumEffect=(0,medium.C)(),mediumSidecar=(0,medium.f)({async:!0,ssr:"undefined"!=typeof document}),focusScope=(0,react.createContext)(void 0),emptyArray=[],FocusLock=react.forwardRef((function FocusLockUI(props,parentRef){var _extends2,_React$useState=react.useState(),realObserved=_React$useState[0],setObserved=_React$useState[1],observed=react.useRef(),isActive=react.useRef(!1),originalFocusedElement=react.useRef(null),update=react.useState({})[1],children=props.children,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled,_props$noFocusGuards=props.noFocusGuards,noFocusGuards=void 0!==_props$noFocusGuards&&_props$noFocusGuards,_props$persistentFocu=props.persistentFocus,persistentFocus=void 0!==_props$persistentFocu&&_props$persistentFocu,_props$crossFrame=props.crossFrame,crossFrame=void 0===_props$crossFrame||_props$crossFrame,_props$autoFocus=props.autoFocus,autoFocus=void 0===_props$autoFocus||_props$autoFocus,group=(props.allowTextSelection,props.group),className=props.className,whiteList=props.whiteList,hasPositiveIndices=props.hasPositiveIndices,_props$shards=props.shards,shards=void 0===_props$shards?emptyArray:_props$shards,_props$as=props.as,Container=void 0===_props$as?"div":_props$as,_props$lockProps=props.lockProps,containerProps=void 0===_props$lockProps?{}:_props$lockProps,SideCar=props.sideCar,_props$returnFocus=props.returnFocus,shouldReturnFocus=void 0!==_props$returnFocus&&_props$returnFocus,focusOptions=props.focusOptions,onActivationCallback=props.onActivation,onDeactivationCallback=props.onDeactivation,id=react.useState({})[0],onActivation=react.useCallback((function(_ref){var captureFocusRestore=_ref.captureFocusRestore;if(!originalFocusedElement.current){var _document,activeElement=null==(_document=document)?void 0:_document.activeElement;originalFocusedElement.current=activeElement,activeElement!==document.body&&(originalFocusedElement.current=captureFocusRestore(activeElement))}observed.current&&onActivationCallback&&onActivationCallback(observed.current),isActive.current=!0,update()}),[onActivationCallback]),onDeactivation=react.useCallback((function(){isActive.current=!1,onDeactivationCallback&&onDeactivationCallback(observed.current),update()}),[onDeactivationCallback]),returnFocus=react.useCallback((function(allowDefer){var focusRestore=originalFocusedElement.current;if(focusRestore){var returnFocusTo=("function"==typeof focusRestore?focusRestore():focusRestore)||document.body,howToReturnFocus="function"==typeof shouldReturnFocus?shouldReturnFocus(returnFocusTo):shouldReturnFocus;if(howToReturnFocus){var returnFocusOptions="object"==typeof howToReturnFocus?howToReturnFocus:void 0;originalFocusedElement.current=null,allowDefer?Promise.resolve().then((function(){return returnFocusTo.focus(returnFocusOptions)})):returnFocusTo.focus(returnFocusOptions)}}}),[shouldReturnFocus]),onFocus=react.useCallback((function(event){isActive.current&&mediumFocus.useMedium(event)}),[]),onBlur=mediumBlur.useMedium,setObserveNode=react.useCallback((function(newObserved){observed.current!==newObserved&&(observed.current=newObserved,setObserved(newObserved))}),[]);var lockProps=(0,esm_extends.A)(((_extends2={})["data-focus-lock-disabled"]=disabled&&"disabled",_extends2["data-focus-lock"]=group,_extends2),containerProps),hasLeadingGuards=!0!==noFocusGuards,hasTailingGuards=hasLeadingGuards&&"tail"!==noFocusGuards,mergedRef=(0,useMergeRef.S)([parentRef,setObserveNode]),focusScopeValue=react.useMemo((function(){return{observed,shards,enabled:!disabled,active:isActive.current}}),[disabled,isActive.current,shards,realObserved]);return react.createElement(react.Fragment,null,hasLeadingGuards&&[react.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:disabled?-1:0,style:hiddenGuard}),hasPositiveIndices?react.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:disabled?-1:1,style:hiddenGuard}):null],!disabled&&react.createElement(SideCar,{id,sideCar:mediumSidecar,observed:realObserved,disabled,persistentFocus,crossFrame,autoFocus,whiteList,shards,onActivation,onDeactivation,returnFocus,focusOptions}),react.createElement(Container,(0,esm_extends.A)({ref:mergedRef},lockProps,{className,onBlur,onFocus}),react.createElement(focusScope.Provider,{value:focusScopeValue},children)),hasTailingGuards&&react.createElement("div",{"data-focus-guard":!0,tabIndex:disabled?-1:0,style:hiddenGuard}))}));FocusLock.propTypes={};const Lock=FocusLock;var inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");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 toPropertyKey(t){var i=function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}const index_es=function withSideEffect(reducePropsToState,handleStateChangeOnClient){return function wrap(WrappedComponent){var state,mountedInstances=[];function emitChange(){state=reducePropsToState(mountedInstances.map((function(instance){return instance.props}))),handleStateChangeOnClient(state)}var SideEffect=function(_PureComponent){function SideEffect(){return _PureComponent.apply(this,arguments)||this}(0,inheritsLoose.A)(SideEffect,_PureComponent),SideEffect.peek=function peek(){return state};var _proto=SideEffect.prototype;return _proto.componentDidMount=function componentDidMount(){mountedInstances.push(this),emitChange()},_proto.componentDidUpdate=function componentDidUpdate(){emitChange()},_proto.componentWillUnmount=function componentWillUnmount(){var index=mountedInstances.indexOf(this);mountedInstances.splice(index,1),emitChange()},_proto.render=function render(){return react.createElement(WrappedComponent,this.props)},SideEffect}(react.PureComponent);return 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}(SideEffect,"displayName","SideEffect("+function getDisplayName(WrappedComponent){return WrappedComponent.displayName||WrappedComponent.name||"Component"}(WrappedComponent)+")"),SideEffect}};var toArray=function(a){for(var ret=Array(a.length),i=0;i=0})).sort(tabSort)},queryTabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(parent,withGuards){return toArray((parent.shadowRoot||parent).children).reduce((function(acc,child){return acc.concat(child.matches(withGuards?queryGuardTabbables:queryTabbables)?[child]:[],getFocusablesWithShadowDom(child))}),[])},getFocusables=function(parents,withGuards){return parents.reduce((function(acc,parent){var _a,focusableWithShadowDom=getFocusablesWithShadowDom(parent,withGuards),focusableWithIframes=(_a=[]).concat.apply(_a,focusableWithShadowDom.map((function(node){return function(parent,withGuards){var _a;return parent instanceof HTMLIFrameElement&&(null===(_a=parent.contentDocument)||void 0===_a?void 0:_a.body)?getFocusables([parent.contentDocument.body],withGuards):[parent]}(node,withGuards)})));return acc.concat(focusableWithIframes,parent.parentNode?toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter((function(node){return node===parent})):[])}),[])},filterFocusable=function(nodes,visibilityCache){return toArray(nodes).filter((function(node){return isVisibleCached(visibilityCache,node)})).filter((function(node){return function(node){return!((isHTMLInputElement(node)||function(node){return"BUTTON"===node.tagName}(node))&&("hidden"===node.type||node.disabled))}(node)}))},filterAutoFocusable=function(nodes,cache){return void 0===cache&&(cache=new Map),toArray(nodes).filter((function(node){return isAutoFocusAllowedCached(cache,node)}))},getTabbableNodes=function(topNodes,visibilityCache,withGuards){return orderByTabIndex(filterFocusable(getFocusables(topNodes,withGuards),visibilityCache),!0,withGuards)},getFocusableNodes=function(topNodes,visibilityCache){return orderByTabIndex(filterFocusable(getFocusables(topNodes),visibilityCache),!1)},parentAutofocusables=function(topNode,visibilityCache){return filterFocusable((parentFocus=topNode.querySelectorAll("[".concat("data-autofocus-inside","]")),toArray(parentFocus).map((function(node){return getFocusables([node])})).reduce((function(acc,nodes){return acc.concat(nodes)}),[])),visibilityCache);var parentFocus},contains=function(scope,element){return scope.shadowRoot?contains(scope.shadowRoot,element):!(void 0===Object.getPrototypeOf(scope).contains||!Object.getPrototypeOf(scope).contains.call(scope,element))||toArray(scope.children).some((function(child){var _a;if(child instanceof HTMLIFrameElement){var iframeBody=null===(_a=child.contentDocument)||void 0===_a?void 0:_a.body;return!!iframeBody&&contains(iframeBody,element)}return contains(child,element)}))},getActiveElement=function(inDocument){if(void 0===inDocument&&(inDocument=document),inDocument&&inDocument.activeElement){var activeElement=inDocument.activeElement;return activeElement.shadowRoot?getActiveElement(activeElement.shadowRoot):activeElement instanceof HTMLIFrameElement&&function(cb){try{return cb()}catch(e){return}}((function(){return activeElement.contentWindow.document}))?getActiveElement(activeElement.contentWindow.document):activeElement}},getTopParent=function(node){return node.parentNode?getTopParent(node.parentNode):node},getAllAffectedNodes=function(node){return asArray(node).filter(Boolean).reduce((function(acc,currentNode){var group=currentNode.getAttribute("data-focus-lock");return acc.push.apply(acc,group?function(nodes){for(var contained=new Set,l=nodes.length,i=0;i0&&contained.add(j),(position&Node.DOCUMENT_POSITION_CONTAINS)>0&&contained.add(i)}return nodes.filter((function(_,index){return!contained.has(index)}))}(toArray(getTopParent(currentNode).querySelectorAll("[".concat("data-focus-lock",'="').concat(group,'"]:not([').concat("data-focus-lock-disabled",'="disabled"])')))):[currentNode]),acc}),[])},focusInside=function(topNode,activeElement){return void 0===activeElement&&(activeElement=getActiveElement(getFirst(topNode).ownerDocument)),!(!activeElement||activeElement.dataset&&activeElement.dataset.focusGuard)&&getAllAffectedNodes(topNode).some((function(node){return contains(node,activeElement)||function(topNode,activeElement){return Boolean(toArray(topNode.querySelectorAll("iframe")).some((function(node){return function(frame,activeElement){return frame===activeElement}(node,activeElement)})))}(node,activeElement)}))},focusOn=function(target,focusOptions){target&&("focus"in target&&target.focus(focusOptions),"contentWindow"in target&&target.contentWindow&&target.contentWindow.focus())},correctNode=function(node,nodes){return isRadioElement(node)&&node.name?function(node,nodes){return nodes.filter(isRadioElement).filter((function(el){return el.name===node.name})).filter((function(el){return el.checked}))[0]||node}(node,nodes):node},pickFirstFocus=function(nodes){return nodes[0]&&nodes.length>1?correctNode(nodes[0],nodes):nodes[0]},pickFocusable=function(nodes,node){return nodes.indexOf(correctNode(node,nodes))},newFocus=function(innerNodes,innerTabbables,outerNodes,activeElement,lastNode){var cnt=innerNodes.length,firstFocus=innerNodes[0],lastFocus=innerNodes[cnt-1],isOnGuard=isGuard(activeElement);if(!(activeElement&&innerNodes.indexOf(activeElement)>=0)){var activeIndex=void 0!==activeElement?outerNodes.indexOf(activeElement):-1,lastIndex=lastNode?outerNodes.indexOf(lastNode):activeIndex,lastNodeInside=lastNode?innerNodes.indexOf(lastNode):-1;if(-1===activeIndex)return-1!==lastNodeInside?lastNodeInside:"NEW_FOCUS";if(-1===lastNodeInside)return"NEW_FOCUS";var nodes,resultSet,indexDiff=activeIndex-lastIndex,firstNodeIndex=outerNodes.indexOf(firstFocus),lastNodeIndex=outerNodes.indexOf(lastFocus),correctedNodes=(nodes=outerNodes,resultSet=new Set,nodes.forEach((function(node){return resultSet.add(correctNode(node,nodes))})),nodes.filter((function(node){return resultSet.has(node)}))),correctedIndexDiff=(void 0!==activeElement?correctedNodes.indexOf(activeElement):-1)-(lastNode?correctedNodes.indexOf(lastNode):activeIndex);if(!indexDiff&&lastNodeInside>=0)return lastNodeInside;if(0===innerTabbables.length)return lastNodeInside;var returnFirstNode=pickFocusable(innerNodes,innerTabbables[0]),returnLastNode=pickFocusable(innerNodes,innerTabbables[innerTabbables.length-1]);return activeIndex<=firstNodeIndex&&isOnGuard&&Math.abs(indexDiff)>1?returnLastNode:activeIndex>=lastNodeIndex&&isOnGuard&&Math.abs(indexDiff)>1?returnFirstNode:indexDiff&&Math.abs(correctedIndexDiff)>1?lastNodeInside:activeIndex<=firstNodeIndex?returnLastNode:activeIndex>lastNodeIndex?returnFirstNode:indexDiff?Math.abs(indexDiff)>1?lastNodeInside:(cnt+lastNodeInside+indexDiff)%cnt:void 0}},pickAutofocus=function(nodesIndexes,orderedNodes,groups){var autoFocusables,nodes=nodesIndexes.map((function(_a){return _a.node})),autoFocusable=filterAutoFocusable(nodes.filter((autoFocusables=groups,function(node){var _a,autofocus=null===(_a=getDataset(node))||void 0===_a?void 0:_a.autofocus;return node.autofocus||void 0!==autofocus&&"false"!==autofocus||autoFocusables.indexOf(node)>=0})));return autoFocusable&&autoFocusable.length?pickFirstFocus(autoFocusable):pickFirstFocus(filterAutoFocusable(orderedNodes))},getParents=function(node,parents){return void 0===parents&&(parents=[]),parents.push(node),node.parentNode&&getParents(node.parentNode.host||node.parentNode,parents),parents},getCommonParent=function(nodeA,nodeB){for(var parentsA=getParents(nodeA),parentsB=getParents(nodeB),i=0;i=0)return currentParent}return!1},getTopCommonParent=function(baseActiveElement,leftEntry,rightEntries){var activeElements=asArray(baseActiveElement),leftEntries=asArray(leftEntry),activeElement=activeElements[0],topCommon=!1;return leftEntries.filter(Boolean).forEach((function(entry){topCommon=getCommonParent(topCommon||entry,entry)||topCommon,rightEntries.filter(Boolean).forEach((function(subEntry){var common=getCommonParent(activeElement,subEntry);common&&(topCommon=!topCommon||contains(common,topCommon)?common:getCommonParent(common,topCommon))}))})),topCommon},allParentAutofocusables=function(entries,visibilityCache){return entries.reduce((function(acc,node){return acc.concat(parentAutofocusables(node,visibilityCache))}),[])},focusSolver=function(topNode,lastNode){var activeElement=getActiveElement(asArray(topNode).length>0?document:getFirst(topNode).ownerDocument),entries=getAllAffectedNodes(topNode).filter(isNotAGuard),commonParent=getTopCommonParent(activeElement||topNode,topNode,entries),visibilityCache=new Map,anyFocusable=getFocusableNodes(entries,visibilityCache),innerElements=anyFocusable.filter((function(_a){var node=_a.node;return isNotAGuard(node)}));if(innerElements[0]){var srcNodes,dstNodes,remap,outerNodes=getFocusableNodes([commonParent],visibilityCache).map((function(_a){return _a.node})),orderedInnerElements=(srcNodes=outerNodes,dstNodes=innerElements,remap=new Map,dstNodes.forEach((function(entity){return remap.set(entity.node,entity)})),srcNodes.map((function(node){return remap.get(node)})).filter(isDefined)),innerFocusables=orderedInnerElements.map((function(_a){return _a.node})),innerTabbable=orderedInnerElements.filter((function(_a){return _a.tabIndex>=0})).map((function(_a){return _a.node})),newId=newFocus(innerFocusables,innerTabbable,outerNodes,activeElement,lastNode);if("NEW_FOCUS"===newId){var focusNode=pickAutofocus(anyFocusable,innerTabbable,allParentAutofocusables(entries,visibilityCache))||pickAutofocus(anyFocusable,innerFocusables,allParentAutofocusables(entries,visibilityCache));return focusNode?{node:focusNode}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===newId?newId:orderedInnerElements[newId]}},guardCount=0,lockDisabled=!1,moveFocusInside=function(topNode,lastNode,options){void 0===options&&(options={});var focusable=focusSolver(topNode,lastNode);if(!lockDisabled&&focusable){if(guardCount>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,void setTimeout((function(){lockDisabled=!1}),1);guardCount++,focusOn(focusable.node,options.focusOptions),guardCount--}},moveFocus=function(fromElement,options,cb){void 0===options&&(options={});var newOptions=function(options){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},options)}(options),solution=function(element,scope,useTabbables){if(!element||!scope)return console.error("no element or scope given"),{};var shards=asArray(scope);if(shards.every((function(shard){return!contains(shard,element)})))return console.error("Active element is not contained in the scope"),{};var focusables=useTabbables?getTabbableNodes(shards,new Map):getFocusableNodes(shards,new Map),current=focusables.findIndex((function(_a){return _a.node===element}));return-1!==current?{prev:focusables[current-1],next:focusables[current+1],first:focusables[0],last:focusables[focusables.length-1]}:void 0}(fromElement,newOptions.scope,newOptions.onlyTabbable);if(solution){var target=cb(solution,newOptions.cycle);target&&focusOn(target.node,newOptions.focusOptions)}},pickBoundary=function(scope,options,what){var _a,shards,useTabbables,set,node=(shards=scope,useTabbables=null===(_a=options.onlyTabbable)||void 0===_a||_a,{first:(set=useTabbables?getTabbableNodes(asArray(shards),new Map):getFocusableNodes(asArray(shards),new Map))[0],last:set[set.length-1]})[what];node&&focusOn(node.node,options.focusOptions)};function weakRef(value){if(!value)return null;if("undefined"==typeof WeakRef)return function(){return value||null};var w=value?new WeakRef(value):null;return function(){return(null==w?void 0:w.deref())||null}}function deferAction(action){setTimeout(action,1)}var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref},isFreeFocus=function isFreeFocus(){return function focusOnBody(){return document&&document.activeElement===document.body}()||function(inDocument){void 0===inDocument&&(inDocument=document);var activeElement=getActiveElement(inDocument);return!!activeElement&&toArray(inDocument.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(node){return contains(node,activeElement)}))}()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function defaultWhitelist(){return!0};function autoGuard(startIndex,end,step,allNodes){var lastGuard=null,i=startIndex;do{var item=allNodes[i];if(item.guard)item.node.dataset.focusAutoGuard&&(lastGuard=item);else{if(!item.lockItem)break;if(i!==startIndex)return;lastGuard=null}}while((i+=step)!==end);lastGuard&&(lastGuard.node.tabIndex=0)}var checkInHost=function checkInHost(check,el,boundary){return el&&(el.host===check&&(!el.activeElement||boundary.contains(el.activeElement))||el.parentNode&&checkInHost(check,el.parentNode,boundary))},activateTrap=function activateTrap(){var topNode,entries,commonParent,outerNodes,innerElements,result=!1;if(lastActiveTrap){var _lastActiveTrap=lastActiveTrap,observed=_lastActiveTrap.observed,persistentFocus=_lastActiveTrap.persistentFocus,autoFocus=_lastActiveTrap.autoFocus,shards=_lastActiveTrap.shards,crossFrame=_lastActiveTrap.crossFrame,focusOptions=_lastActiveTrap.focusOptions,workingNode=observed||lastPortaledElement&&lastPortaledElement.portaledElement,activeElement=document&&document.activeElement;if(workingNode){var workingArea=[workingNode].concat(shards.map(extractRef).filter(Boolean));if(activeElement&&!function focusWhitelisted(activeElement){return(lastActiveTrap.whiteList||defaultWhitelist)(activeElement)}(activeElement)||(persistentFocus||function focusWasOutside(crossFrameOption){return crossFrameOption?Boolean(focusWasOutsideWindow):"meanwhile"===focusWasOutsideWindow}(crossFrame)||!isFreeFocus()||!lastActiveFocus&&autoFocus)&&(workingNode&&!(focusInside(workingArea)||activeElement&&function withinHost(activeElement,workingArea){return workingArea.some((function(area){return checkInHost(activeElement,area,area)}))}(activeElement,workingArea)||function focusIsPortaledPair(element){return lastPortaledElement&&lastPortaledElement.portaledElement===element}(activeElement))&&(document&&!lastActiveFocus&&activeElement&&!autoFocus?(activeElement.blur&&activeElement.blur(),document.body.focus()):(result=moveFocusInside(workingArea,lastActiveFocus,{focusOptions}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document&&activeElement!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var newActiveElement=document&&document.activeElement,allNodes=(entries=getAllAffectedNodes(topNode=workingArea).filter(isNotAGuard),commonParent=getTopCommonParent(topNode,topNode,entries),outerNodes=orderByTabIndex(getFocusables([commonParent],!0),!0,!0),innerElements=getFocusables(entries,!1),outerNodes.map((function(_a){var node=_a.node;return{node,index:_a.index,lockItem:innerElements.indexOf(node)>=0,guard:isGuard(node)}}))),focusedIndex=allNodes.map((function(_ref){return _ref.node})).indexOf(newActiveElement);focusedIndex>-1&&(allNodes.filter((function(_ref2){var guard=_ref2.guard,node=_ref2.node;return guard&&node.dataset.focusAutoGuard})).forEach((function(_ref3){return _ref3.node.removeAttribute("tabIndex")})),autoGuard(focusedIndex,allNodes.length,1,allNodes),autoGuard(focusedIndex,-1,-1,allNodes))}}}return result},onTrap=function onTrap(event){activateTrap()&&event&&(event.stopPropagation(),event.preventDefault())},onBlur=function onBlur(){return deferAction(activateTrap)},onFocus=function onFocus(event){var source=event.target,currentNode=event.currentTarget;currentNode.contains(source)||function recordPortal(observerNode,portaledElement){lastPortaledElement={observerNode,portaledElement}}(currentNode,source)},onWindowBlur=function onWindowBlur(){focusWasOutsideWindow="just",deferAction((function(){focusWasOutsideWindow="meanwhile"}))};var focusLockAPI={moveFocusInside,focusInside,focusNextElement:function(fromElement,options){void 0===options&&(options={}),moveFocus(fromElement,options,(function(_a,cycle){var next=_a.next,first=_a.first;return next||cycle&&first}))},focusPrevElement:function(fromElement,options){void 0===options&&(options={}),moveFocus(fromElement,options,(function(_a,cycle){var prev=_a.prev,last=_a.last;return prev||cycle&&last}))},focusFirstElement:function(scope,options){void 0===options&&(options={}),pickBoundary(scope,options,"first")},focusLastElement:function(scope,options){void 0===options&&(options={}),pickBoundary(scope,options,"last")},captureFocusRestore:function(targetElement){var location=function(element){if(!element)return null;for(var stack=[],currentElement=element;currentElement&¤tElement!==document.body;)stack.push({current:weakRef(currentElement),parent:weakRef(currentElement.parentElement),left:weakRef(currentElement.previousElementSibling),right:weakRef(currentElement.nextElementSibling)}),currentElement=currentElement.parentElement;return{element:weakRef(element),stack,ownerDocument:element.ownerDocument}}(targetElement);return function(){return function(location){var _a,_b,_c,_d,_e;if(location)for(var stack=location.stack,ownerDocument=location.ownerDocument,visibilityCache=new Map,_i=0,stack_1=stack;_i{"use strict";__webpack_require__.d(__webpack_exports__,{RT:()=>themedObjectInspector});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS=(cb,mod)=>function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},require_is_object=__commonJS({"node_modules/is-object/index.js"(exports,module){module.exports=function isObject(x){return"object"==typeof x&&null!==x}}}),require_is_window=__commonJS({"node_modules/is-window/index.js"(exports,module){module.exports=function(obj){if(null==obj)return!1;var o=Object(obj);return o===o.window}}}),require_is_dom=__commonJS({"node_modules/is-dom/index.js"(exports,module){var isObject=require_is_object(),isWindow=require_is_window();module.exports=function isNode(val){return!(!isObject(val)||!isWindow(window)||"function"!=typeof window.Node)&&("number"==typeof val.nodeType&&"string"==typeof val.nodeName)}}}),themes_exports={};((target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})})(themes_exports,{chromeDark:()=>theme,chromeLight:()=>theme2});var theme={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"},theme2={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"},ExpandedPathsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)([{},()=>{}]),unselectable={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},createTheme=theme3=>({DOMNodePreview:{htmlOpenTag:{base:{color:theme3.HTML_TAG_COLOR},tagName:{color:theme3.HTML_TAGNAME_COLOR,textTransform:theme3.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:theme3.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:theme3.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:theme3.HTML_TAG_COLOR},offsetLeft:{marginLeft:-theme3.TREENODE_PADDING_LEFT},tagName:{color:theme3.HTML_TAGNAME_COLOR,textTransform:theme3.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:theme3.HTML_COMMENT_COLOR},htmlDoctype:{color:theme3.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:theme3.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:theme3.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:theme3.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:theme3.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:theme3.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:theme3.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:theme3.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:theme3.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:theme3.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:theme3.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:theme3.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:theme3.BASE_COLOR,backgroundColor:theme3.BASE_BACKGROUND_COLOR,lineHeight:theme3.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:theme3.TREENODE_FONT_FAMILY,fontSize:theme3.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:theme3.ARROW_FONT_SIZE,marginRight:theme3.ARROW_MARGIN_RIGHT,...unselectable},treeNodeArrow:{base:{color:theme3.ARROW_COLOR,display:"inline-block",fontSize:theme3.ARROW_FONT_SIZE,marginRight:theme3.ARROW_MARGIN_RIGHT,...parseFloat(theme3.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${theme3.ARROW_ANIMATION_DURATION} ease 0s`}:{},...unselectable},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:theme3.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:theme3.BASE_COLOR,position:"relative",border:`1px solid ${theme3.TABLE_BORDER_COLOR}`,fontFamily:theme3.BASE_FONT_FAMILY,fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:theme3.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:theme3.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:theme3.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${theme3.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:theme3.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:theme3.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${theme3.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:theme3.TABLE_SORT_ICON_COLOR,fontSize:12,...unselectable}}),ThemeContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(createTheme(themes_exports.chromeLight)),useStyles=baseStylesKey=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext)[baseStylesKey],themeAcceptor=WrappedComponent=>({theme:theme3="chromeLight",...restProps})=>{const themeStyles=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>{switch(Object.prototype.toString.call(theme3)){case"[object String]":return createTheme(themes_exports[theme3]);case"[object Object]":return createTheme(theme3);default:return createTheme(themes_exports.chromeLight)}}),[theme3]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThemeContext.Provider,{value:themeStyles},react__WEBPACK_IMPORTED_MODULE_0__.createElement(WrappedComponent,{...restProps}))},Arrow=({expanded,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{...styles.base,...expanded?styles.expanded:styles.collapsed}},"▶"),TreeNode=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((props=>{props={expanded:!0,nodeRenderer:({name})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,name),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...props};const{expanded,onClick,children,nodeRenderer,title,shouldShowArrow,shouldShowPlaceholder}=props,styles=useStyles("TreeNode"),NodeRenderer=nodeRenderer;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{"aria-expanded":expanded,role:"treeitem",style:styles.treeNodeBase,title},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.treeNodePreviewContainer,onClick},shouldShowArrow||react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Arrow,{expanded,styles:styles.treeNodeArrow}):shouldShowPlaceholder&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.treeNodePlaceholder}," "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(NodeRenderer,{...props})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol",{role:"group",style:styles.treeNodeChildNodesContainer},expanded?children:void 0))})),DEFAULT_ROOT_PATH="$";function hasChildNodes(data,dataIterator){return!dataIterator(data).next().done}var getExpandedPaths=(data,dataIterator,expandPaths,expandLevel,prevExpandedPaths)=>{const wildcardPaths=[].concat((level=expandLevel,Array.from({length:level},((_,i)=>[DEFAULT_ROOT_PATH].concat(Array.from({length:i},(()=>"*"))).join("."))))).concat(expandPaths).filter((path=>"string"==typeof path));var level;const expandedPaths=[];return wildcardPaths.forEach((wildcardPath=>{const keyPaths=wildcardPath.split("."),populatePaths=(curData,curPath,depth)=>{if(depth===keyPaths.length)return void expandedPaths.push(curPath);const key=keyPaths[depth];if(0===depth)!hasChildNodes(curData,dataIterator)||key!==DEFAULT_ROOT_PATH&&"*"!==key||populatePaths(curData,DEFAULT_ROOT_PATH,depth+1);else if("*"===key)for(const{name,data:data2}of dataIterator(curData))hasChildNodes(data2,dataIterator)&&populatePaths(data2,`${curPath}.${name}`,depth+1);else{const value=curData[key];hasChildNodes(value,dataIterator)&&populatePaths(value,`${curPath}.${key}`,depth+1)}};populatePaths(data,"",0)})),expandedPaths.reduce(((obj,path)=>(obj[path]=!0,obj)),{...prevExpandedPaths})},ConnectedTreeNode=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((props=>{const{data,dataIterator,path,depth,nodeRenderer}=props,[expandedPaths,setExpandedPaths]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ExpandedPathsContext),nodeHasChildNodes=hasChildNodes(data,dataIterator),expanded=!!expandedPaths[path],handleClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>nodeHasChildNodes&&setExpandedPaths((prevExpandedPaths=>({...prevExpandedPaths,[path]:!expanded})))),[nodeHasChildNodes,setExpandedPaths,path,expanded]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeNode,{expanded,onClick:handleClick,shouldShowArrow:nodeHasChildNodes,shouldShowPlaceholder:depth>0,nodeRenderer,...props},expanded?[...dataIterator(data)].map((({name,data:data2,...renderNodeProps})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ConnectedTreeNode,{name,data:data2,depth:depth+1,path:`${path}.${name}`,key:name,dataIterator,nodeRenderer,...renderNodeProps}))):null)})),TreeView=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((({name,data,dataIterator,nodeRenderer,expandPaths,expandLevel})=>{const styles=useStyles("TreeView"),stateAndSetter=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[,setExpandedPaths]=stateAndSetter;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((()=>setExpandedPaths((prevExpandedPaths=>getExpandedPaths(data,dataIterator,expandPaths,expandLevel,prevExpandedPaths)))),[data,dataIterator,expandPaths,expandLevel]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpandedPathsContext.Provider,{value:stateAndSetter},react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol",{role:"tree",style:styles.treeViewOutline},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ConnectedTreeNode,{name,data,dataIterator,depth:0,path:DEFAULT_ROOT_PATH,nodeRenderer})))})),ObjectName=({name,dimmed=!1,styles={}})=>{const themeStyles=useStyles("ObjectName"),appliedStyles={...themeStyles.base,...dimmed?themeStyles.dimmed:{},...styles};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:appliedStyles},name)},ObjectValue=({object,styles})=>{const themeStyles=useStyles("ObjectValue"),mkStyle=key=>({...themeStyles[key],...styles});switch(typeof object){case"bigint":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNumber")},String(object),"n");case"number":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNumber")},String(object));case"string":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueString")},'"',object,'"');case"boolean":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueBoolean")},String(object));case"undefined":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueUndefined")},"undefined");case"object":return null===object?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueNull")},"null"):object instanceof Date?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,object.toString()):object instanceof RegExp?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueRegExp")},object.toString()):Array.isArray(object)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,`Array(${object.length})`):object.constructor?"function"==typeof object.constructor.isBuffer&&object.constructor.isBuffer(object)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,`Buffer[${object.length}]`):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,object.constructor.name):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Object");case"function":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueFunctionPrefix")},"ƒ "),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueFunctionName")},object.name,"()"));case"symbol":return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:mkStyle("objectValueSymbol")},object.toString());default:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null)}},hasOwnProperty=Object.prototype.hasOwnProperty,propertyIsEnumerable=Object.prototype.propertyIsEnumerable;function getPropertyValue(object,propertyName){const propertyDescriptor=Object.getOwnPropertyDescriptor(object,propertyName);if(propertyDescriptor.get)try{return propertyDescriptor.get()}catch{return propertyDescriptor.get}return object[propertyName]}function intersperse(arr,sep){return 0===arr.length?[]:arr.slice(1).reduce(((xs,x)=>xs.concat([sep,x])),[arr[0]])}var ObjectPreview=({data})=>{const styles=useStyles("ObjectPreview"),object=data;if("object"!=typeof object||null===object||object instanceof Date||object instanceof RegExp)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object});if(Array.isArray(object)){const maxProperties=styles.arrayMaxProperties,previewArray=object.slice(0,maxProperties).map(((element,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{key:index,object:element})));object.length>maxProperties&&previewArray.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:"ellipsis"},"…"));const arrayLength=object.length;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.objectDescription},0===arrayLength?"":`(${arrayLength}) `),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.preview},"[",intersperse(previewArray,", "),"]"))}{const maxProperties=styles.objectMaxProperties,propertyNodes=[];for(const propertyName in object)if(hasOwnProperty.call(object,propertyName)){let ellipsis;propertyNodes.length===maxProperties-1&&Object.keys(object).length>maxProperties&&(ellipsis=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:"ellipsis"},"…"));const propertyValue=getPropertyValue(object,propertyName);if(propertyNodes.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:propertyName},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name:propertyName||'""'}),": ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object:propertyValue}),ellipsis)),ellipsis)break}const objectConstructorName=object.constructor?object.constructor.name:"Object";return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.objectDescription},"Object"===objectConstructorName?"":`${objectConstructorName} `),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.preview},"{",intersperse(propertyNodes,", "),"}"))}},ObjectRootLabel=({name,data})=>"string"==typeof name?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,": "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data}),ObjectLabel=({name,data,isNonenumerable=!1})=>{const object=data;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"string"==typeof name?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectName,{name,dimmed:isNonenumerable}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectPreview,{data:name}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,": "),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object}))},defaultNodeRenderer=({depth,name,data,isNonenumerable})=>0===depth?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectRootLabel,{name,data}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectLabel,{name,data,isNonenumerable}),themedObjectInspector=themeAcceptor((({showNonenumerable=!1,sortObjectKeys,nodeRenderer,...treeViewProps})=>{const dataIterator=((showNonenumerable,sortObjectKeys)=>function*(data){if(("object"!=typeof data||null===data)&&"function"!=typeof data)return;const dataIsArray=Array.isArray(data);if(!dataIsArray&&data[Symbol.iterator]){let i=0;for(const entry of data){if(Array.isArray(entry)&&2===entry.length){const[k,v]=entry;yield{name:k,data:v}}else yield{name:i.toString(),data:entry};i++}}else{const keys=Object.getOwnPropertyNames(data);!0!==sortObjectKeys||dataIsArray?"function"==typeof sortObjectKeys&&keys.sort(sortObjectKeys):keys.sort();for(const propertyName of keys)if(propertyIsEnumerable.call(data,propertyName)){const propertyValue=getPropertyValue(data,propertyName);yield{name:propertyName||'""',data:propertyValue}}else if(showNonenumerable){let propertyValue;try{propertyValue=getPropertyValue(data,propertyName)}catch(e){}void 0!==propertyValue&&(yield{name:propertyName,data:propertyValue,isNonenumerable:!0})}showNonenumerable&&data!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(data),isNonenumerable:!0})}})(showNonenumerable,sortObjectKeys),renderer=nodeRenderer||defaultNodeRenderer;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeView,{nodeRenderer:renderer,dataIterator,...treeViewProps})}));var mod,isNodeMode,target,DataContainer=({rows,columns,rowsData})=>{const styles=useStyles("TableInspectorDataContainer"),borderStyles=useStyles("TableInspectorLeftBorder");return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.div},react__WEBPACK_IMPORTED_MODULE_0__.createElement("table",{style:styles.table},react__WEBPACK_IMPORTED_MODULE_0__.createElement("colgroup",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,rows.map(((row,i)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:row,style:styles.tr},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{style:{...styles.td,...borderStyles.none}},row),columns.map((column=>{const rowData=rowsData[i];return"object"==typeof rowData&&null!==rowData&&hasOwnProperty.call(rowData,column)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{key:column,style:{...styles.td,...borderStyles.solid}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ObjectValue,{object:rowData[column]})):react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{key:column,style:{...styles.td,...borderStyles.solid}})}))))))))},SortIconContainer=props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},props.children),SortIcon=({sortAscending})=>{const styles=useStyles("TableInspectorSortIcon"),glyph=sortAscending?"▲":"▼";return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles},glyph)},TH=({sortAscending=!1,sorted=!1,onClick,borderStyle={},children,...thProps})=>{const styles=useStyles("TableInspectorTH"),[hovered,setHovered]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),handleMouseEnter=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setHovered(!0)),[]),handleMouseLeave=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setHovered(!1)),[]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",{...thProps,style:{...styles.base,...borderStyle,...hovered?styles.base[":hover"]:{}},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.div},children),sorted&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(SortIconContainer,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(SortIcon,{sortAscending})))},HeaderContainer=({indexColumnText="(index)",columns=[],sorted,sortIndexColumn,sortColumn,sortAscending,onTHClick,onIndexTHClick})=>{const styles=useStyles("TableInspectorHeaderContainer"),borderStyles=useStyles("TableInspectorLeftBorder");return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.base},react__WEBPACK_IMPORTED_MODULE_0__.createElement("table",{style:styles.table},react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TH,{borderStyle:borderStyles.none,sorted:sorted&&sortIndexColumn,sortAscending,onClick:onIndexTHClick},indexColumnText),columns.map((column=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(TH,{borderStyle:borderStyles.solid,key:column,sorted:sorted&&sortColumn===column,sortAscending,onClick:onTHClick.bind(null,column)},column)))))))},shouldInline=(themeAcceptor((({data,columns})=>{const styles=useStyles("TableInspector"),[{sorted,sortIndexColumn,sortColumn,sortAscending},setState]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),handleIndexTHClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setState((({sortIndexColumn:sortIndexColumn2,sortAscending:sortAscending2})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:!sortIndexColumn2||!sortAscending2})))}),[]),handleTHClick=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((col=>{setState((({sortColumn:sortColumn2,sortAscending:sortAscending2})=>({sorted:!0,sortIndexColumn:!1,sortColumn:col,sortAscending:col!==sortColumn2||!sortAscending2})))}),[]);if("object"!=typeof data||null===data)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null);let{rowHeaders,colHeaders}=function getHeaders(data){if("object"==typeof data){let rowHeaders=[];if(Array.isArray(data)){const nRows=data.length;rowHeaders=[...Array(nRows).keys()]}else null!==data&&(rowHeaders=Object.keys(data));const colHeaders=rowHeaders.reduce(((colHeaders2,rowHeader)=>{const row=data[rowHeader];return"object"==typeof row&&null!==row&&Object.keys(row).reduce(((xs,x)=>(xs.includes(x)||xs.push(x),xs)),colHeaders2),colHeaders2}),[]);return{rowHeaders,colHeaders}}}(data);void 0!==columns&&(colHeaders=columns);let columnDataWithRowIndexes,rowsData=rowHeaders.map((rowHeader=>data[rowHeader]));if(void 0!==sortColumn?columnDataWithRowIndexes=rowsData.map(((rowData,index)=>{if("object"==typeof rowData&&null!==rowData){return[rowData[sortColumn],index]}return[void 0,index]})):sortIndexColumn&&(columnDataWithRowIndexes=rowHeaders.map(((rowData,index)=>[rowHeaders[index],index]))),void 0!==columnDataWithRowIndexes){const comparator=(mapper,ascending)=>(a,b)=>{const v1=mapper(a),v2=mapper(b),type1=typeof v1,type2=typeof v2,lt=(v12,v22)=>v12v22?1:0;let result;if(type1===type2)result=lt(v1,v2);else{const order={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};result=lt(order[type1],order[type2])}return ascending||(result=-result),result},sortedRowIndexes=columnDataWithRowIndexes.sort(comparator((item=>item[0]),sortAscending)).map((item=>item[1]));rowHeaders=sortedRowIndexes.map((i=>rowHeaders[i])),rowsData=sortedRowIndexes.map((i=>rowsData[i]))}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:styles.base},react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderContainer,{columns:colHeaders,sorted,sortIndexColumn,sortColumn,sortAscending,onTHClick:handleTHClick,onIndexTHClick:handleIndexTHClick}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DataContainer,{rows:rowHeaders,columns:colHeaders,rowsData}))})),data=>0===data.childNodes.length||1===data.childNodes.length&&data.childNodes[0].nodeType===Node.TEXT_NODE&&data.textContent.length<80),OpenTag=({tagName,attributes,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.base},"<",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.tagName},tagName),(()=>{if(attributes){const attributeNodes=[];for(let i=0;i"),CloseTag=({tagName,isChildNode=!1,styles})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:Object.assign({},styles.base,isChildNode&&styles.offsetLeft)},""),nameByNodeType={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},DOMNodePreview=({isCloseTag,data,expanded})=>{const styles=useStyles("DOMNodePreview");if(isCloseTag)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(CloseTag,{styles:styles.htmlCloseTag,isChildNode:!0,tagName:data.tagName});switch(data.nodeType){case Node.ELEMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OpenTag,{tagName:data.tagName,attributes:data.attributes,styles:styles.htmlOpenTag}),shouldInline(data)?data.textContent:!expanded&&"…",!expanded&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(CloseTag,{tagName:data.tagName,styles:styles.htmlCloseTag}));case Node.TEXT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.textContent);case Node.CDATA_SECTION_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"");case Node.COMMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.htmlComment},"\x3c!--",data.textContent,"--\x3e");case Node.PROCESSING_INSTRUCTION_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.nodeName);case Node.DOCUMENT_TYPE_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:styles.htmlDoctype},"");case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,data.nodeName);default:return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,nameByNodeType[data.nodeType])}},domIterator=function*(data){if(data&&data.childNodes){if(shouldInline(data))return;for(let i=0;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeView,{nodeRenderer:DOMNodePreview,dataIterator:domIterator,...props}))),mod=require_is_dom(),target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)},"./node_modules/react-is/cjs/react-is.production.min.js":(__unused_webpack_module,exports)=>{"use strict";var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l,exports.ConcurrentMode=m,exports.ContextConsumer=k,exports.ContextProvider=h,exports.Element=c,exports.ForwardRef=n,exports.Fragment=e,exports.Lazy=t,exports.Memo=r,exports.Portal=d,exports.Profiler=g,exports.StrictMode=f,exports.Suspense=p,exports.isAsyncMode=function(a){return A(a)||z(a)===l},exports.isConcurrentMode=A,exports.isContextConsumer=function(a){return z(a)===k},exports.isContextProvider=function(a){return z(a)===h},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===c},exports.isForwardRef=function(a){return z(a)===n},exports.isFragment=function(a){return z(a)===e},exports.isLazy=function(a){return z(a)===t},exports.isMemo=function(a){return z(a)===r},exports.isPortal=function(a){return z(a)===d},exports.isProfiler=function(a){return z(a)===g},exports.isStrictMode=function(a){return z(a)===f},exports.isSuspense=function(a){return z(a)===p},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"==typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)},exports.typeOf=z},"./node_modules/react-is/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/react-rnd/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>Rnd});var react=__webpack_require__("./node_modules/react/index.js"),cjs=__webpack_require__("./node_modules/react-draggable/build/cjs/cjs.js"),cjs_default=__webpack_require__.n(cjs),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),__extends=function(){var 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)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};return function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}}(),__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;iNumber(maxWidth)?maxWidth:max})}if(hasRight||this.props.lockAspectRatio&&!hasLeft&&!hasTop){max=offsetWidth+(boundaryLeft-selfLeft)/scale;this.setState({maxWidth:max>Number(maxWidth)?maxWidth:max})}if((hasTop||hasLeft)&&this.resizable){max=(selfTop-boundaryTop)/scale+this.resizable.size.height;this.setState({maxHeight:max>Number(maxHeight)?maxHeight:max})}if(hasBottom||this.props.lockAspectRatio&&!hasTop&&!hasLeft){max=offsetHeight+(boundaryTop-selfTop)/scale;this.setState({maxHeight:max>Number(maxHeight)?maxHeight:max})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,dir,elementRef)},Rnd.prototype.onResize=function(e,direction,elementRef,delta){var _this=this,newPos={x:this.originalPosition.x,y:this.originalPosition.y},left=-delta.width,top=-delta.height;["top","left","topLeft","bottomLeft","topRight"].includes(direction)&&("bottomLeft"===direction?newPos.x+=left:("topRight"===direction||(newPos.x+=left),newPos.y+=top));var draggableState=this.draggable.state;newPos.x===draggableState.x&&newPos.y===draggableState.y||(0,react_dom.flushSync)((function(){_this.draggable.setState(newPos)})),this.updateOffsetFromParent();var offset=this.offsetFromParent,x=this.getDraggablePosition().x+offset.left,y=this.getDraggablePosition().y+offset.top;this.resizingPosition={x,y},this.props.onResize&&this.props.onResize(e,direction,elementRef,delta,{x,y})},Rnd.prototype.onResizeStop=function(e,direction,elementRef,delta){this.setState({resizing:!1});var _a=this.getMaxSizesFromProps(),maxWidth=_a.maxWidth,maxHeight=_a.maxHeight;this.setState({maxWidth,maxHeight}),this.props.onResizeStop&&this.props.onResizeStop(e,direction,elementRef,delta,this.resizingPosition)},Rnd.prototype.updateSize=function(size){this.resizable&&this.resizable.updateSize({width:size.width,height:size.height})},Rnd.prototype.updatePosition=function(position){this.draggable.setState(position)},Rnd.prototype.updateOffsetFromParent=function(){var scale=this.props.scale,parent=this.getParent(),self=this.getSelfElement();if(!parent||null===self)return{top:0,left:0};var parentRect=parent.getBoundingClientRect(),parentLeft=parentRect.left,parentTop=parentRect.top,selfRect=self.getBoundingClientRect(),position=this.getDraggablePosition(),scrollLeft=parent.scrollLeft,scrollTop=parent.scrollTop;this.offsetFromParent={left:selfRect.left-parentLeft+scrollLeft-position.x*scale,top:selfRect.top-parentTop+scrollTop-position.y*scale}},Rnd.prototype.render=function(){var _this=this,_a=this.props,disableDragging=_a.disableDragging,style=_a.style,dragHandleClassName=_a.dragHandleClassName,position=_a.position,onMouseDown=_a.onMouseDown,onMouseUp=_a.onMouseUp,dragAxis=_a.dragAxis,dragGrid=_a.dragGrid,bounds=_a.bounds,enableUserSelectHack=_a.enableUserSelectHack,cancel=_a.cancel,children=_a.children,resizeHandleStyles=(_a.onResizeStart,_a.onResize,_a.onResizeStop,_a.onDragStart,_a.onDrag,_a.onDragStop,_a.resizeHandleStyles),resizeHandleClasses=_a.resizeHandleClasses,resizeHandleComponent=_a.resizeHandleComponent,enableResizing=_a.enableResizing,resizeGrid=_a.resizeGrid,resizeHandleWrapperClass=_a.resizeHandleWrapperClass,resizeHandleWrapperStyle=_a.resizeHandleWrapperStyle,scale=_a.scale,allowAnyClick=_a.allowAnyClick,resizableProps=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__,{A:()=>esm_CSSTransition});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");function replaceClassName(origClass,classToRemove){return origClass.replace(new RegExp("(^|\\s)"+classToRemove+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var react=__webpack_require__("./node_modules/react/index.js"),react_dom=__webpack_require__("./node_modules/react-dom/index.js");const config_disabled=!1;var TransitionGroupContext=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroupContext.js"),forceReflow=function forceReflow(node){return node.scrollTop},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.A)(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&&forceReflow(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.A)(_this$props,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return react.createElement(TransitionGroupContext.A.Provider,{value:null},"function"==typeof children?children(status,childProps):react.cloneElement(react.Children.only(children),childProps))},Transition}(react.Component);function noop(){}Transition.contextType=TransitionGroupContext.A,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 removeClass=function removeClass(node,classes){return node&&classes&&classes.split(" ").forEach((function(c){return function removeClass_removeClass(element,className){element.classList?element.classList.remove(className):"string"==typeof element.className?element.className=replaceClassName(element.className,className):element.setAttribute("class",replaceClassName(element.className&&element.className.baseVal||"",className))}(node,c)}))},CSSTransition=function(_React$Component){function CSSTransition(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_React$Component.call.apply(_React$Component,[this].concat(args))||this).appliedClasses={appear:{},enter:{},exit:{}},_this.onEnter=function(maybeNode,maybeAppearing){var _this$resolveArgument=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument[0],appearing=_this$resolveArgument[1];_this.removeClasses(node,"exit"),_this.addClass(node,appearing?"appear":"enter","base"),_this.props.onEnter&&_this.props.onEnter(maybeNode,maybeAppearing)},_this.onEntering=function(maybeNode,maybeAppearing){var _this$resolveArgument2=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument2[0],type=_this$resolveArgument2[1]?"appear":"enter";_this.addClass(node,type,"active"),_this.props.onEntering&&_this.props.onEntering(maybeNode,maybeAppearing)},_this.onEntered=function(maybeNode,maybeAppearing){var _this$resolveArgument3=_this.resolveArguments(maybeNode,maybeAppearing),node=_this$resolveArgument3[0],type=_this$resolveArgument3[1]?"appear":"enter";_this.removeClasses(node,type),_this.addClass(node,type,"done"),_this.props.onEntered&&_this.props.onEntered(maybeNode,maybeAppearing)},_this.onExit=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.removeClasses(node,"appear"),_this.removeClasses(node,"enter"),_this.addClass(node,"exit","base"),_this.props.onExit&&_this.props.onExit(maybeNode)},_this.onExiting=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.addClass(node,"exit","active"),_this.props.onExiting&&_this.props.onExiting(maybeNode)},_this.onExited=function(maybeNode){var node=_this.resolveArguments(maybeNode)[0];_this.removeClasses(node,"exit"),_this.addClass(node,"exit","done"),_this.props.onExited&&_this.props.onExited(maybeNode)},_this.resolveArguments=function(maybeNode,maybeAppearing){return _this.props.nodeRef?[_this.props.nodeRef.current,maybeNode]:[maybeNode,maybeAppearing]},_this.getClassNames=function(type){var classNames=_this.props.classNames,isStringClassNames="string"==typeof classNames,baseClassName=isStringClassNames?""+(isStringClassNames&&classNames?classNames+"-":"")+type:classNames[type];return{baseClassName,activeClassName:isStringClassNames?baseClassName+"-active":classNames[type+"Active"],doneClassName:isStringClassNames?baseClassName+"-done":classNames[type+"Done"]}},_this}(0,inheritsLoose.A)(CSSTransition,_React$Component);var _proto=CSSTransition.prototype;return _proto.addClass=function addClass(node,type,phase){var className=this.getClassNames(type)[phase+"ClassName"],doneClassName=this.getClassNames("enter").doneClassName;"appear"===type&&"done"===phase&&doneClassName&&(className+=" "+doneClassName),"active"===phase&&node&&forceReflow(node),className&&(this.appliedClasses[type][phase]=className,function addClass(node,classes){node&&classes&&classes.split(" ").forEach((function(c){return function addClass_addClass(element,className){element.classList?element.classList.add(className):function hasClass(element,className){return element.classList?!!className&&element.classList.contains(className):-1!==(" "+(element.className.baseVal||element.className)+" ").indexOf(" "+className+" ")}(element,className)||("string"==typeof element.className?element.className=element.className+" "+className:element.setAttribute("class",(element.className&&element.className.baseVal||"")+" "+className))}(node,c)}))}(node,className))},_proto.removeClasses=function removeClasses(node,type){var _this$appliedClasses$=this.appliedClasses[type],baseClassName=_this$appliedClasses$.base,activeClassName=_this$appliedClasses$.active,doneClassName=_this$appliedClasses$.done;this.appliedClasses[type]={},baseClassName&&removeClass(node,baseClassName),activeClassName&&removeClass(node,activeClassName),doneClassName&&removeClass(node,doneClassName)},_proto.render=function render(){var _this$props=this.props,props=(_this$props.classNames,(0,objectWithoutPropertiesLoose.A)(_this$props,["classNames"]));return react.createElement(esm_Transition,(0,esm_extends.A)({},props,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},CSSTransition}(react.Component);CSSTransition.defaultProps={classNames:""},CSSTransition.propTypes={};const esm_CSSTransition=CSSTransition},"./node_modules/react-transition-group/esm/TransitionGroup.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>esm_TransitionGroup});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),assertThisInitialized=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),TransitionGroupContext=__webpack_require__("./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;i{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("./node_modules/react/index.js").createContext(null)},"./node_modules/reselect/dist/reselect.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Mz:()=>createSelector});function assertIsFunction(func,errorMessage="expected a function, instead received "+typeof func){if("function"!=typeof func)throw new TypeError(errorMessage)}var ensureIsArray=item=>Array.isArray(item)?item:[item];function getDependencies(createSelectorArgs){const dependencies=Array.isArray(createSelectorArgs[0])?createSelectorArgs[0]:createSelectorArgs;return function assertIsArrayOfFunctions(array,errorMessage="expected all items to be functions, instead received the following types: "){if(!array.every((item=>"function"==typeof item))){const itemTypes=array.map((item=>"function"==typeof item?`function ${item.name||"unnamed"}()`:typeof item)).join(", ");throw new TypeError(`${errorMessage}[${itemTypes}]`)}}(dependencies,"createSelector expects all input-selectors to be functions, but received the following types: "),dependencies}Symbol(),Object.getPrototypeOf({});var Ref="undefined"!=typeof WeakRef?WeakRef:class{constructor(value){this.value=value}deref(){return this.value}},UNTERMINATED=0,TERMINATED=1;function createCacheNode(){return{s:UNTERMINATED,v:void 0,o:null,p:null}}function weakMapMemoize(func,options={}){let fnNode=createCacheNode();const{resultEqualityCheck}=options;let lastResult,resultsCount=0;function memoized(){let cacheNode=fnNode;const{length}=arguments;for(let i=0,l=length;i{fnNode=createCacheNode(),memoized.resetResultsCount()},memoized.resultsCount=()=>resultsCount,memoized.resetResultsCount=()=>{resultsCount=0},memoized}function createSelectorCreator(memoizeOrOptions,...memoizeOptionsFromArgs){const createSelectorCreatorOptions="function"==typeof memoizeOrOptions?{memoize:memoizeOrOptions,memoizeOptions:memoizeOptionsFromArgs}:memoizeOrOptions,createSelector2=(...createSelectorArgs)=>{let lastResult,recomputations=0,dependencyRecomputations=0,directlyPassedOptions={},resultFunc=createSelectorArgs.pop();"object"==typeof resultFunc&&(directlyPassedOptions=resultFunc,resultFunc=createSelectorArgs.pop()),assertIsFunction(resultFunc,`createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`);const combinedOptions={...createSelectorCreatorOptions,...directlyPassedOptions},{memoize,memoizeOptions=[],argsMemoize=weakMapMemoize,argsMemoizeOptions=[],devModeChecks={}}=combinedOptions,finalMemoizeOptions=ensureIsArray(memoizeOptions),finalArgsMemoizeOptions=ensureIsArray(argsMemoizeOptions),dependencies=getDependencies(createSelectorArgs),memoizedResultFunc=memoize((function recomputationWrapper(){return recomputations++,resultFunc.apply(null,arguments)}),...finalMemoizeOptions);const selector=argsMemoize((function dependenciesChecker(){dependencyRecomputations++;const inputSelectorResults=function collectInputSelectorResults(dependencies,inputSelectorArgs){const inputSelectorResults=[],{length}=dependencies;for(let i=0;idependencyRecomputations,resetDependencyRecomputations:()=>{dependencyRecomputations=0},lastResult:()=>lastResult,recomputations:()=>recomputations,resetRecomputations:()=>{recomputations=0},memoize,argsMemoize})};return Object.assign(createSelector2,{withTypes:()=>createSelector2}),createSelector2}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign(((inputSelectorsObject,selectorCreator=createSelector)=>{!function assertIsObject(object,errorMessage="expected an object, instead received "+typeof object){if("object"!=typeof object)throw new TypeError(errorMessage)}(inputSelectorsObject,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof inputSelectorsObject);const inputSelectorKeys=Object.keys(inputSelectorsObject);return selectorCreator(inputSelectorKeys.map((key=>inputSelectorsObject[key])),((...inputSelectorResults)=>inputSelectorResults.reduce(((composition,value,index)=>(composition[inputSelectorKeys[index]]=value,composition)),{})))}),{withTypes:()=>createStructuredSelector})},"./node_modules/rooks/dist/esm/hooks/useDebounce.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>useDebounce});var lodash_debounce=__webpack_require__("./node_modules/lodash.debounce/index.js"),lodash_debounce_default=__webpack_require__.n(lodash_debounce),react=__webpack_require__("./node_modules/react/index.js");const useIsomorphicEffect="undefined"==typeof window?react.useEffect:react.useLayoutEffect;function useDebounce(callback,wait,options){const createDebouncedCallback=(0,react.useCallback)((function_=>lodash_debounce_default()(function_,wait,options)),[wait,options]),freshCallback=function useFreshRef(value,preferLayoutEffect=!1){const useEffectToUse=preferLayoutEffect?useIsomorphicEffect:react.useEffect,ref=(0,react.useRef)(value);return useEffectToUse((()=>{ref.current=value})),ref}(callback);const debouncedCallbackRef=(0,react.useRef)(createDebouncedCallback((function tick(...args){var _a;null===(_a=freshCallback.current)||void 0===_a||_a.call(freshCallback,...args)})));return function useWillUnmount(callback){(0,react.useEffect)((()=>callback),[])}((()=>{var _a;return null===(_a=debouncedCallbackRef.current)||void 0===_a?void 0:_a.cancel()})),debouncedCallbackRef.current}},"./node_modules/rooks/dist/esm/hooks/useForkRef.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{N:()=>useForkRef});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function setRef(ref,value){"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}function useForkRef(refA,refB){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>null===refA&&null===refB?null:refValue=>{setRef(refA,refValue),setRef(refB,refValue)}),[refA,refB])}},"./node_modules/rooks/dist/esm/hooks/useMutationObserver.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>useMutationObserver});var react=__webpack_require__("./node_modules/react/index.js");const noop=()=>{},config={attributes:!0,characterData:!0,childList:!0,subtree:!0};function useMutationObserver(ref,callback,options=config){(0,react.useEffect)((()=>{if(ref.current){const observer=new MutationObserver(callback);return observer.observe(ref.current,options),()=>{observer.disconnect()}}return noop}),[callback,options,ref])}},"./node_modules/rooks/dist/esm/hooks/usePreviousDifferent.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>usePreviousDifferent});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function usePreviousDifferent(currentValue){const previousRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),previousRef2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{previousRef2.current=previousRef.current,previousRef.current=currentValue}),[currentValue]),currentValue===previousRef.current?previousRef2.current:previousRef.current}},"./node_modules/rooks/dist/esm/hooks/usePreviousImmediate.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>usePreviousImmediate});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function usePreviousImmediate(currentValue){const previousRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{previousRef.current=currentValue})),previousRef.current}}}]); \ No newline at end of file diff --git a/latest/729.902542b6.iframe.bundle.js.LICENSE.txt b/latest/904.11529f6e.iframe.bundle.js.LICENSE.txt similarity index 100% rename from latest/729.902542b6.iframe.bundle.js.LICENSE.txt rename to latest/904.11529f6e.iframe.bundle.js.LICENSE.txt diff --git a/latest/demo-stories.677d45f1.iframe.bundle.js b/latest/demo-stories.677d45f1.iframe.bundle.js deleted file mode 100644 index 8aba378e..00000000 --- a/latest/demo-stories.677d45f1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[650],{"./src/ViewportContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{k:()=>ViewportContext});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_z9df655u9(){var path="/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"836ffed334b31848df58aadde8c0a4d2e0a25b74"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx",statementMap:{0:{start:{line:2,column:44},end:{line:5,column:2}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,names:["createContext","ViewportContext","width","height"],sources:["/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx"],mappings:"AAAA,SAASA,aAAa,QAAQ,OAAO;AAOrC,OAAO,MAAMC,eAAe,gBAAGD,aAAa,CAAsB;EAAEE,KAAK,EAAE,CAAC;EAAEC,MAAM,EAAE;AAAE,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"836ffed334b31848df58aadde8c0a4d2e0a25b74"});var actualCoverage=coverage[path];return cov_z9df655u9=function(){return actualCoverage},actualCoverage}cov_z9df655u9();const ViewportContext=(cov_z9df655u9().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({width:0,height:0}))},"./src/components/window/WindowContent.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>useWindowContext,M:()=>WindowContent});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_19al8znur2(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx",statementMap:{0:{start:{line:2,column:38},end:{line:2,column:57}},1:{start:{line:4,column:18},end:{line:4,column:46}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:50}},4:{start:{line:8,column:2},end:{line:8,column:17}},5:{start:{line:10,column:42},end:{line:19,column:2}},6:{start:{line:14,column:6},end:{line:14,column:10}},7:{start:{line:15,column:20},end:{line:15,column:33}},8:{start:{line:16,column:2},end:{line:18,column:57}}},fnMap:{0:{name:"useWindowContext",decl:{start:{line:3,column:16},end:{line:3,column:32}},loc:{start:{line:3,column:35},end:{line:9,column:1}},line:3},1:{name:"WindowContent",decl:{start:{line:10,column:56},end:{line:10,column:69}},loc:{start:{line:10,column:76},end:{line:19,column:1}},line:10}},branchMap:{0:{loc:{start:{line:5,column:2},end:{line:7,column:3}},type:"if",locations:[{start:{line:5,column:2},end:{line:7,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["React","createContext","memo","useContext","WindowContentCtx","useWindowContext","context","Error","WindowContent","_ref","contentGetter","props","Component","createElement","Provider","value"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,IAAI,EAAEC,UAAU,QAAQ,OAAO;AAK9D,MAAMC,gBAAgB,gBAAGH,aAAa,CAAqB,IAAI,CAAC;AAEhE,OAAO,SAASI,gBAAgBA,CAAA,EAA2E;EACzG,MAAMC,OAAO,GAAGH,UAAU,CAACC,gBAAgB,CAAC;EAE5C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;EAC/C;EAEA,OAAOD,OAAO;AAChB;AAEA,OAAO,MAAME,aAAa,gBAAGN,IAAI,CAAC,SAASM,aAAaA,CAAAC,IAAA,EAG2B;EAAA,IAHO;IACxFC,aAAa;IACb,GAAGC;EAC8D,CAAC,GAAAF,IAAA;EAClE,MAAMG,SAAS,GAAGF,aAAa;EAC/B,oBACEV,KAAA,CAAAa,aAAA,CAACT,gBAAgB,CAACU,QAAQ;IAACC,KAAK,EAAEJ;EAAM,gBACtCX,KAAA,CAAAa,aAAA,CAACD,SAAS,EAAKD,KAAQ,CACE,CAAC;AAEhC,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c6e70adee5d7f60168582317e22591c68561cb3f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c6e70adee5d7f60168582317e22591c68561cb3f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_19al8znur2=function(){return actualCoverage},actualCoverage}cov_19al8znur2();const WindowContentCtx=(cov_19al8znur2().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null));function useWindowContext(){cov_19al8znur2().f[0]++;const context=(cov_19al8znur2().s[1]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(WindowContentCtx));if(cov_19al8znur2().s[2]++,!context)throw cov_19al8znur2().b[0][0]++,cov_19al8znur2().s[3]++,new Error("used outside WindowContent");return cov_19al8znur2().b[0][1]++,cov_19al8znur2().s[4]++,context}const WindowContent=(cov_19al8znur2().s[5]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((function WindowContent(_ref){cov_19al8znur2().f[1]++;let{contentGetter,...props}=(cov_19al8znur2().s[6]++,_ref);const Component=(cov_19al8znur2().s[7]++,contentGetter);return cov_19al8znur2().s[8]++,react__WEBPACK_IMPORTED_MODULE_0__.createElement(WindowContentCtx.Provider,{value:props},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,props))})));try{WindowContent.displayName="WindowContent",WindowContent.__docgenInfo={description:"",displayName:"WindowContent",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowContent.tsx#WindowContent"]={docgenInfo:WindowContent.__docgenInfo,name:"WindowContent",path:"src/components/window/WindowContent.tsx#WindowContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/window/content/OverflowContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>OverflowContext,s:()=>useOverflow});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_1zq6720iuq(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx",statementMap:{0:{start:{line:2,column:44},end:{line:6,column:2}},1:{start:{line:8,column:18},end:{line:8,column:45}},2:{start:{line:9,column:2},end:{line:11,column:3}},3:{start:{line:10,column:4},end:{line:10,column:61}},4:{start:{line:12,column:2},end:{line:12,column:17}}},fnMap:{0:{name:"useOverflow",decl:{start:{line:7,column:16},end:{line:7,column:27}},loc:{start:{line:7,column:30},end:{line:13,column:1}},line:7}},branchMap:{0:{loc:{start:{line:9,column:2},end:{line:11,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:11,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:9}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["createContext","useContext","OverflowContext","scrollTo","scrollToTop","scrollToBottom","useOverflow","context","Error"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx"],mappings:"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAQjD,OAAO,MAAMC,eAAe,gBAAGF,aAAa,CAAM;EAChDG,QAAQ,EAAE,IAAI;EACdC,WAAW,EAAE,IAAI;EACjBC,cAAc,EAAE;AAClB,CAAC,CAAC;AAEF,OAAO,SAASC,WAAWA,CAAA,EAAQ;EACjC,MAAMC,OAAO,GAAGN,UAAU,CAACC,eAAe,CAAC;EAC3C,IAAI,CAACK,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,uCAAuC,CAAC;EAC1D;EACA,OAAOD,OAAO;AAChB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7ded16dc1f392c1a3c4661f28006910bb09de0c8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7ded16dc1f392c1a3c4661f28006910bb09de0c8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1zq6720iuq=function(){return actualCoverage},actualCoverage}cov_1zq6720iuq();const OverflowContext=(cov_1zq6720iuq().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({scrollTo:null,scrollToTop:null,scrollToBottom:null}));function useOverflow(){cov_1zq6720iuq().f[0]++;const context=(cov_1zq6720iuq().s[1]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(OverflowContext));if(cov_1zq6720iuq().s[2]++,!context)throw cov_1zq6720iuq().b[0][0]++,cov_1zq6720iuq().s[3]++,new Error("used outside OverflowContext.Provider");return cov_1zq6720iuq().b[0][1]++,cov_1zq6720iuq().s[4]++,context}},"./src/context/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>WindowManagerContext,s:()=>WindowManagerContextProvider});var react=__webpack_require__("./node_modules/react/index.js"),store=__webpack_require__("./src/store/index.ts");function cov_2lxmx46sj9(){var path="/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"08119edf3fee48d4622e9a3e8d94f8d5ecc3b52d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx",statementMap:{0:{start:{line:3,column:49},end:{line:3,column:68}},1:{start:{line:7,column:6},end:{line:7,column:10}},2:{start:{line:8,column:28},end:{line:11,column:4}},3:{start:{line:13,column:2},end:{line:15,column:18}},4:{start:{line:13,column:18},end:{line:15,column:4}},5:{start:{line:13,column:24},end:{line:15,column:4}},6:{start:{line:16,column:2},end:{line:18,column:15}}},fnMap:{0:{name:"WindowManagerContextProvider",decl:{start:{line:4,column:16},end:{line:4,column:44}},loc:{start:{line:4,column:51},end:{line:19,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:13,column:12},end:{line:13,column:13}},loc:{start:{line:13,column:18},end:{line:15,column:4}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:13,column:18},end:{line:13,column:19}},loc:{start:{line:13,column:24},end:{line:15,column:4}},line:13}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,names:["React","createContext","useEffect","reducer","useReducerWithThunk","WindowManagerContext","WindowManagerContextProvider","_ref","children","state","dispatch","windows","order","type","createElement","Provider","value"],sources:["/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAqBC,SAAS,QAAQ,OAAO;AAC1E,SAASC,OAAO,EAAoBC,mBAAmB,QAAQ,UAAU;AAEzE,OAAO,MAAMC,oBAAoB,gBAAGJ,aAAa,CAAmC,IAAI,CAAC;AAEzF,OAAO,SAASK,4BAA4BA,CAAAC,IAAA,EAAwD;EAAA,IAAvD;IAAEC;EAAqC,CAAC,GAAAD,IAAA;EACnF,MAAM,CAACE,KAAK,EAAEC,QAAQ,CAAC,GAAGN,mBAAmB,CAACD,OAAO,EAAE;IAAEQ,OAAO,EAAE,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAC,CAAC;EAClF;EACAV,SAAS,CAAC,MAAM,MAAMQ,QAAQ,CAAC;IAAEG,IAAI,EAAE;EAAgB,CAAC,CAAC,EAAE,CAACH,QAAQ,CAAC,CAAC;EAEtE,oBAAOV,KAAA,CAAAc,aAAA,CAACT,oBAAoB,CAACU,QAAQ;IAACC,KAAK,EAAE,CAACP,KAAK,EAAEC,QAAQ;EAAE,GAAEF,QAAwC,CAAC;AAC5G",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"08119edf3fee48d4622e9a3e8d94f8d5ecc3b52d"});var actualCoverage=coverage[path];return cov_2lxmx46sj9=function(){return actualCoverage},actualCoverage}cov_2lxmx46sj9();const WindowManagerContext=(cov_2lxmx46sj9().s[0]++,(0,react.createContext)(null));function WindowManagerContextProvider(_ref){cov_2lxmx46sj9().f[0]++;let{children}=(cov_2lxmx46sj9().s[1]++,_ref);const[state,dispatch]=(cov_2lxmx46sj9().s[2]++,(0,store.Ix)(store.Ff,{windows:[],order:[]}));return cov_2lxmx46sj9().s[3]++,(0,react.useEffect)((()=>(cov_2lxmx46sj9().f[1]++,cov_2lxmx46sj9().s[4]++,()=>(cov_2lxmx46sj9().f[2]++,cov_2lxmx46sj9().s[5]++,dispatch({type:"CLEAR_WINDOWS"})))),[dispatch]),cov_2lxmx46sj9().s[6]++,react.createElement(WindowManagerContext.Provider,{value:[state,dispatch]},children)}try{WindowManagerContextProvider.displayName="WindowManagerContextProvider",WindowManagerContextProvider.__docgenInfo={description:"",displayName:"WindowManagerContextProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/context/WindowManagerContextProvider.tsx#WindowManagerContextProvider"]={docgenInfo:WindowManagerContextProvider.__docgenInfo,name:"WindowManagerContextProvider",path:"src/context/WindowManagerContextProvider.tsx#WindowManagerContextProvider"})}catch(__react_docgen_typescript_loader_error){}function cov_1wpsvslzw0(){var path="/home/runner/work/nk-windows/nk-windows/src/context/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7fb9093f26df7b193cc93ad990aa3a9eb7f59d87"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/context/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowManagerContext","WindowManagerContextProvider"],sources:["/home/runner/work/nk-windows/nk-windows/src/context/index.ts"],mappings:"AAAA,SAASA,oBAAoB,EAAEC,4BAA4B,QAAQ,gCAAgC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7fb9093f26df7b193cc93ad990aa3a9eb7f59d87"});var actualCoverage=coverage[path];return cov_1wpsvslzw0=function(){return actualCoverage},actualCoverage}cov_1wpsvslzw0()},"./src/demo/DemoWindowKind.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function cov_1b6kdg2f7y(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c8f34d302a5738865969fa29d8f43f4890fe6ea3"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx",statementMap:{0:{start:{line:1,column:41},end:{line:6,column:5}},1:{start:{line:2,column:2},end:{line:2,column:60}},2:{start:{line:3,column:2},end:{line:3,column:58}},3:{start:{line:4,column:2},end:{line:4,column:54}},4:{start:{line:5,column:2},end:{line:5,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:1,column:41},end:{line:1,column:42}},loc:{start:{line:1,column:67},end:{line:6,column:1}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["DemoWindowKind"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx"],mappings:"AAAA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c8f34d302a5738865969fa29d8f43f4890fe6ea3"});var actualCoverage=coverage[path];return cov_1b6kdg2f7y=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{G:()=>DemoWindowKind}),cov_1b6kdg2f7y();let DemoWindowKind=(cov_1b6kdg2f7y().s[0]++,function(DemoWindowKind){return cov_1b6kdg2f7y().f[0]++,cov_1b6kdg2f7y().s[1]++,DemoWindowKind[DemoWindowKind.default=0]="default",cov_1b6kdg2f7y().s[2]++,DemoWindowKind[DemoWindowKind.danger=1]="danger",cov_1b6kdg2f7y().s[3]++,DemoWindowKind[DemoWindowKind.lazy=2]="lazy",cov_1b6kdg2f7y().s[4]++,DemoWindowKind}({}))},"./src/demo/demoDefaultContent.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>DemoDefaultContent});var react=__webpack_require__("./node_modules/react/index.js"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),DemoWindowKind=__webpack_require__("./src/demo/DemoWindowKind.tsx");function cov_19g9g8nayc(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ce974344d009e3a85a8c462ec38f15844e39e566"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx",statementMap:{0:{start:{line:4,column:13},end:{line:4,column:103}},1:{start:{line:5,column:2},end:{line:22,column:3}},2:{start:{line:7,column:6},end:{line:10,column:9}},3:{start:{line:12,column:6},end:{line:15,column:9}},4:{start:{line:18,column:6},end:{line:21,column:9}}},fnMap:{0:{name:"getWindowDemoColors",decl:{start:{line:3,column:16},end:{line:3,column:35}},loc:{start:{line:3,column:38},end:{line:23,column:1}},line:3}},branchMap:{0:{loc:{start:{line:4,column:13},end:{line:4,column:103}},type:"cond-expr",locations:[{start:{line:4,column:66},end:{line:4,column:78}},{start:{line:4,column:81},end:{line:4,column:103}}],line:4},1:{loc:{start:{line:4,column:13},end:{line:4,column:63}},type:"binary-expr",locations:[{start:{line:4,column:13},end:{line:4,column:33}},{start:{line:4,column:37},end:{line:4,column:63}}],line:4},2:{loc:{start:{line:5,column:2},end:{line:22,column:3}},type:"switch",locations:[{start:{line:6,column:4},end:{line:10,column:9}},{start:{line:11,column:4},end:{line:15,column:9}},{start:{line:16,column:4},end:{line:16,column:32}},{start:{line:17,column:4},end:{line:21,column:9}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0,0,0]},inputSourceMap:{version:3,names:["css","DemoWindowKind","getWindowDemoColors","type","arguments","length","undefined","default","danger","backgroundColor","color","lazy"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,SAASC,mBAAmBA,CAAA,EAAwD;EAAA,IAAvDC,IAAoB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,cAAc,CAACM,OAAO;EAC/E,QAAQJ,IAAI;IACV,KAAKF,cAAc,CAACO,MAAM;MACxB,OAAOR,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;IAC5D,KAAKT,cAAc,CAACU,IAAI;MACtB,OAAOX,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;IAC5D,KAAKT,cAAc,CAACM,OAAO;IAC3B;MACE,OAAOP,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;EAC9D;AACF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ce974344d009e3a85a8c462ec38f15844e39e566"});var actualCoverage=coverage[path];return cov_19g9g8nayc=function(){return actualCoverage},actualCoverage}function getWindowDemoColors(){cov_19g9g8nayc().f[0]++;let type=(cov_19g9g8nayc().s[0]++,cov_19g9g8nayc().b[1][0]++,arguments.length>0&&(cov_19g9g8nayc().b[1][1]++,void 0!==arguments[0])?(cov_19g9g8nayc().b[0][0]++,arguments[0]):(cov_19g9g8nayc().b[0][1]++,DemoWindowKind.G.default));switch(cov_19g9g8nayc().s[1]++,type){case DemoWindowKind.G.danger:return cov_19g9g8nayc().b[2][0]++,cov_19g9g8nayc().s[2]++,(0,emotion_css_esm.AH)({backgroundColor:"#A82121",color:"white"});case DemoWindowKind.G.lazy:return cov_19g9g8nayc().b[2][1]++,cov_19g9g8nayc().s[3]++,(0,emotion_css_esm.AH)({backgroundColor:"#2165a8",color:"white"});case DemoWindowKind.G.default:cov_19g9g8nayc().b[2][2]++;default:return cov_19g9g8nayc().b[2][3]++,cov_19g9g8nayc().s[4]++,(0,emotion_css_esm.AH)({backgroundColor:"#2D8E54",color:"white"})}}cov_19g9g8nayc();try{getWindowDemoColors.displayName="getWindowDemoColors",getWindowDemoColors.__docgenInfo={description:"",displayName:"getWindowDemoColors",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/getWindowDefaultColors.tsx#getWindowDemoColors"]={docgenInfo:getWindowDemoColors.__docgenInfo,name:"getWindowDemoColors",path:"src/demo/getWindowDefaultColors.tsx#getWindowDemoColors"})}catch(__react_docgen_typescript_loader_error){}var src=__webpack_require__("./src/index.ts");function cov_1p0g24ubbg(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:5,column:34},end:{line:9,column:10}},10:{start:{line:5,column:56},end:{line:9,column:10}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:5,column:34},end:{line:5,column:35}},loc:{start:{line:5,column:56},end:{line:9,column:10}},line:5}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","getWindowDemoColors","DefaultContent","DemoDefaultContent","props","createElement","_extends","classnames","header","data","kind"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx"],mappings:";AAAA,OAAOA,KAAK,MAA6B,OAAO;AAEhD,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,cAAc,QAA6B,UAAU;AAE9D,OAAO,MAAMC,kBAAkB,GAAIC,KAA6D,iBAC9FJ,KAAA,CAAAK,aAAA,CAACH,cAAc,EAAAI,QAAA;EAACC,UAAU,EAAE;IAAEC,MAAM,EAAEP,mBAAmB,CAACG,KAAK,CAACK,IAAI,CAACC,IAAI;EAAE;AAAE,GAAKN,KAAK,CAAG,CAC3F",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d5602feea82ba5b2af9c3320aada17100cf3c58"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0d5602feea82ba5b2af9c3320aada17100cf3c58"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1p0g24ubbg=function(){return actualCoverage},actualCoverage}function _extends(){return cov_1p0g24ubbg().f[0]++,cov_1p0g24ubbg().s[0]++,_extends=Object.assign?(cov_1p0g24ubbg().b[0][0]++,Object.assign.bind()):(cov_1p0g24ubbg().b[0][1]++,function(target){cov_1p0g24ubbg().f[1]++,cov_1p0g24ubbg().s[1]++;for(var i=(cov_1p0g24ubbg().s[2]++,1);i(cov_1p0g24ubbg().f[2]++,cov_1p0g24ubbg().s[10]++,react.createElement(src.l7,_extends({classnames:{header:getWindowDemoColors(props.data.kind)}},props)));try{DemoDefaultContent.displayName="DemoDefaultContent",DemoDefaultContent.__docgenInfo={description:"",displayName:"DemoDefaultContent",props:{buttons:{defaultValue:null,description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/demoDefaultContent.tsx#DemoDefaultContent"]={docgenInfo:DemoDefaultContent.__docgenInfo,name:"DemoDefaultContent",path:"src/demo/demoDefaultContent.tsx#DemoDefaultContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{XX:()=>useSize,lR:()=>useViewportSize,$k:()=>WindowContent.$,HM:()=>useWindowManager,dz:()=>useWindowZoom});var react=__webpack_require__("./node_modules/react/index.js"),WindowContent=__webpack_require__("./src/components/window/WindowContent.tsx");function cov_i0b71a907(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"a67a1716268a9dd66e9721012964af7d3fb734df"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:8,column:26},end:{line:8,column:47}},2:{start:{line:9,column:21},end:{line:12,column:26}},3:{start:{line:9,column:35},end:{line:12,column:10}},4:{start:{line:10,column:16},end:{line:10,column:88}},5:{start:{line:11,column:4},end:{line:11,column:53}},6:{start:{line:11,column:24},end:{line:11,column:51}},7:{start:{line:13,column:2},end:{line:13,column:28}}},fnMap:{0:{name:"useWindowZoom",decl:{start:{line:3,column:16},end:{line:3,column:29}},loc:{start:{line:3,column:36},end:{line:14,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:9,column:29},end:{line:9,column:30}},loc:{start:{line:9,column:35},end:{line:12,column:10}},line:9},2:{name:"(anonymous_2)",decl:{start:{line:9,column:49},end:{line:9,column:50}},loc:{start:{line:9,column:61},end:{line:12,column:3}},line:9},3:{name:"(anonymous_3)",decl:{start:{line:11,column:19},end:{line:11,column:20}},loc:{start:{line:11,column:24},end:{line:11,column:51}},line:11}},branchMap:{0:{loc:{start:{line:9,column:35},end:{line:12,column:10}},type:"cond-expr",locations:[{start:{line:9,column:49},end:{line:12,column:3}},{start:{line:12,column:6},end:{line:12,column:10}}],line:9},1:{loc:{start:{line:10,column:16},end:{line:10,column:88}},type:"cond-expr",locations:[{start:{line:10,column:69},end:{line:10,column:81}},{start:{line:10,column:84},end:{line:10,column:88}}],line:10},2:{loc:{start:{line:10,column:16},end:{line:10,column:66}},type:"binary-expr",locations:[{start:{line:10,column:16},end:{line:10,column:36}},{start:{line:10,column:40},end:{line:10,column:66}}],line:10},3:{loc:{start:{line:11,column:24},end:{line:11,column:51}},type:"cond-expr",locations:[{start:{line:11,column:41},end:{line:11,column:46}},{start:{line:11,column:49},end:{line:11,column:51}}],line:11}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,names:["useMemo","useState","useWindowContext","useWindowZoom","_ref","isMaximized","isResizable","zoom","setZoom","toggleZoom","value","arguments","length","undefined","z"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts"],mappings:"AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,oCAAoC;AAErE,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAMY;EAAA,IANX;IAC5BC,WAAW;IACXC;EAIF,CAAC,GAAAF,IAAA;EACC,MAAM,CAACG,IAAI,EAAEC,OAAO,CAAC,GAAGP,QAAQ,CAACI,WAAW,CAAC;EAC7C,MAAMI,UAAU,GAAGT,OAAO,CACxB,MAAOM,WAAW,GAAG;IAAA,IAACI,KAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;IAAA,OAAKH,OAAO,CAAEM,CAAC,IAAMJ,KAAK,KAAK,IAAI,GAAGA,KAAK,GAAG,CAACI,CAAE,CAAC;EAAA,IAAG,IAAK,EACrG,CAACR,WAAW,CACd,CAAC;EACD,OAAO,CAACC,IAAI,EAAEE,UAAU,CAAC;AAC3B",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a67a1716268a9dd66e9721012964af7d3fb734df"});var actualCoverage=coverage[path];return cov_i0b71a907=function(){return actualCoverage},actualCoverage}function useWindowZoom(_ref){cov_i0b71a907().f[0]++;let{isMaximized,isResizable}=(cov_i0b71a907().s[0]++,_ref);const[zoom,setZoom]=(cov_i0b71a907().s[1]++,(0,react.useState)(isMaximized)),toggleZoom=(cov_i0b71a907().s[2]++,(0,react.useMemo)((()=>(cov_i0b71a907().f[1]++,cov_i0b71a907().s[3]++,isResizable?(cov_i0b71a907().b[0][0]++,function(){cov_i0b71a907().f[2]++;let value=(cov_i0b71a907().s[4]++,cov_i0b71a907().b[2][0]++,arguments.length>0&&(cov_i0b71a907().b[2][1]++,void 0!==arguments[0])?(cov_i0b71a907().b[1][0]++,arguments[0]):(cov_i0b71a907().b[1][1]++,null));return cov_i0b71a907().s[5]++,setZoom((z=>(cov_i0b71a907().f[3]++,cov_i0b71a907().s[6]++,null!==value?(cov_i0b71a907().b[3][0]++,value):(cov_i0b71a907().b[3][1]++,!z))))}):(cov_i0b71a907().b[0][1]++,null))),[isResizable]));return cov_i0b71a907().s[7]++,[zoom,toggleZoom]}cov_i0b71a907();var context=__webpack_require__("./src/context/index.ts"),store=__webpack_require__("./src/store/index.ts"),ViewportContext=__webpack_require__("./src/ViewportContext.tsx");function cov_wz5labld7(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts",statementMap:{0:{start:{line:6,column:18},end:{line:6,column:45}},1:{start:{line:7,column:2},end:{line:9,column:3}},2:{start:{line:8,column:4},end:{line:8,column:50}},3:{start:{line:10,column:2},end:{line:10,column:17}},4:{start:{line:13,column:18},end:{line:13,column:50}},5:{start:{line:14,column:2},end:{line:14,column:15}},6:{start:{line:17,column:28},end:{line:17,column:60}},7:{start:{line:18,column:15},end:{line:24,column:24}},8:{start:{line:19,column:21},end:{line:19,column:91}},9:{start:{line:20,column:4},end:{line:23,column:8}},10:{start:{line:25,column:16},end:{line:31,column:24}},11:{start:{line:26,column:13},end:{line:26,column:87}},12:{start:{line:27,column:4},end:{line:30,column:7}},13:{start:{line:32,column:16},end:{line:36,column:24}},14:{start:{line:33,column:13},end:{line:33,column:87}},15:{start:{line:34,column:4},end:{line:34,column:36}},16:{start:{line:35,column:4},end:{line:35,column:14}},17:{start:{line:37,column:18},end:{line:37,column:68}},18:{start:{line:37,column:32},end:{line:37,column:58}},19:{start:{line:38,column:19},end:{line:46,column:22}},20:{start:{line:39,column:12},end:{line:39,column:87}},21:{start:{line:40,column:4},end:{line:45,column:8}},22:{start:{line:43,column:10},end:{line:43,column:14}},23:{start:{line:44,column:6},end:{line:44,column:23}},24:{start:{line:47,column:2},end:{line:53,column:4}}},fnMap:{0:{name:"useViewportSize",decl:{start:{line:5,column:16},end:{line:5,column:31}},loc:{start:{line:5,column:34},end:{line:11,column:1}},line:5},1:{name:"useRawState",decl:{start:{line:12,column:16},end:{line:12,column:27}},loc:{start:{line:12,column:30},end:{line:15,column:1}},line:12},2:{name:"useWindowManager",decl:{start:{line:16,column:16},end:{line:16,column:32}},loc:{start:{line:16,column:41},end:{line:54,column:1}},line:16},3:{name:"(anonymous_3)",decl:{start:{line:18,column:27},end:{line:18,column:28}},loc:{start:{line:18,column:39},end:{line:24,column:3}},line:18},4:{name:"(anonymous_4)",decl:{start:{line:25,column:28},end:{line:25,column:29}},loc:{start:{line:25,column:40},end:{line:31,column:3}},line:25},5:{name:"(anonymous_5)",decl:{start:{line:32,column:28},end:{line:32,column:29}},loc:{start:{line:32,column:46},end:{line:36,column:3}},line:32},6:{name:"(anonymous_6)",decl:{start:{line:37,column:26},end:{line:37,column:27}},loc:{start:{line:37,column:32},end:{line:37,column:58}},line:37},7:{name:"(anonymous_7)",decl:{start:{line:38,column:31},end:{line:38,column:32}},loc:{start:{line:38,column:49},end:{line:46,column:3}},line:38},8:{name:"(anonymous_8)",decl:{start:{line:40,column:35},end:{line:40,column:36}},loc:{start:{line:40,column:43},end:{line:45,column:5}},line:40}},branchMap:{0:{loc:{start:{line:7,column:2},end:{line:9,column:3}},type:"if",locations:[{start:{line:7,column:2},end:{line:9,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:7},1:{loc:{start:{line:19,column:21},end:{line:19,column:91}},type:"cond-expr",locations:[{start:{line:19,column:74},end:{line:19,column:86}},{start:{line:19,column:89},end:{line:19,column:91}}],line:19},2:{loc:{start:{line:19,column:21},end:{line:19,column:71}},type:"binary-expr",locations:[{start:{line:19,column:21},end:{line:19,column:41}},{start:{line:19,column:45},end:{line:19,column:71}}],line:19},3:{loc:{start:{line:26,column:13},end:{line:26,column:87}},type:"cond-expr",locations:[{start:{line:26,column:66},end:{line:26,column:78}},{start:{line:26,column:81},end:{line:26,column:87}}],line:26},4:{loc:{start:{line:26,column:13},end:{line:26,column:63}},type:"binary-expr",locations:[{start:{line:26,column:13},end:{line:26,column:33}},{start:{line:26,column:37},end:{line:26,column:63}}],line:26},5:{loc:{start:{line:33,column:13},end:{line:33,column:87}},type:"cond-expr",locations:[{start:{line:33,column:66},end:{line:33,column:78}},{start:{line:33,column:81},end:{line:33,column:87}}],line:33},6:{loc:{start:{line:33,column:13},end:{line:33,column:63}},type:"binary-expr",locations:[{start:{line:33,column:13},end:{line:33,column:33}},{start:{line:33,column:37},end:{line:33,column:63}}],line:33},7:{loc:{start:{line:39,column:12},end:{line:39,column:87}},type:"cond-expr",locations:[{start:{line:39,column:65},end:{line:39,column:77}},{start:{line:39,column:80},end:{line:39,column:87}}],line:39},8:{loc:{start:{line:39,column:12},end:{line:39,column:62}},type:"binary-expr",locations:[{start:{line:39,column:12},end:{line:39,column:32}},{start:{line:39,column:36},end:{line:39,column:62}}],line:39}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0]},inputSourceMap:{version:3,names:["useCallback","useContext","useMemo","WindowManagerContext","closeWindow","getWindowsWithOrder","openWindow","ViewportContext","useViewportSize","context","Error","useRawState","state","useWindowManager","parent","dispatch","open","windowData","arguments","length","undefined","focus","id","type","close","windows","closeAll","w","Promise","all","map","_ref"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts"],mappings:"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACxD,SAASC,oBAAoB,QAAQ,YAAY;AACjD,SAASC,WAAW,EAAEC,mBAAmB,EAAEC,UAAU,QAAQ,UAAU;AAEvE,SAASC,eAAe,QAA6B,oBAAoB;AAEzE,OAAO,SAASC,eAAeA,CAAA,EAAwB;EACrD,MAAMC,OAAO,GAAGR,UAAU,CAACM,eAAe,CAAC;EAC3C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;EAC/C;EACA,OAAOD,OAAO;AAChB;AAEA,OAAO,SAASE,WAAWA,CAAA,EAA2D;EACpF,MAAM,CAACC,KAAK,CAAC,GAAGX,UAAU,CAACE,oBAAoB,CAAC;EAChD,OAAOS,KAAK;AACd;AAEA,OAAO,SAASC,gBAAgBA,CAAkCC,MAAiB,EAAE;EACnF,MAAM,CAACF,KAAK,EAAEG,QAAQ,CAAC,GAAGd,UAAU,CAACE,oBAAoB,CAAC;EAE1D,MAAMa,IAAI,GAAGhB,WAAW,CACtB,YAAsG;IAAA,IAArDiB,UAA2C,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IAC/F,OAAOH,QAAQ,CAACT,UAAU,CAAC;MAAEQ,MAAM;MAAE,GAAGG;IAAW,CAAC,CAAC,CAAC;EACxD,CAAC,EACD,CAACF,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMO,KAAK,GAAGrB,WAAW,CACvB,YAA2B;IAAA,IAA1BsB,EAAY,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,MAAM;IACpBC,QAAQ,CAAC;MAAEQ,IAAI,EAAE,cAAc;MAAED;IAAG,CAAC,CAAC;EACxC,CAAC,EACD,CAACP,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMU,KAAK,GAAGxB,WAAW,CACvB,kBAAiC;IAAA,IAA1BsB,EAAY,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,MAAM;IAC1B,MAAMC,QAAQ,CAACX,WAAW,CAACkB,EAAE,CAAC,CAAC;IAC/B,OAAOA,EAAE;EACX,CAAC,EACD,CAACP,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMW,OAAO,GAAGvB,OAAO,CAAC,MAAMG,mBAAmB,CAACO,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAElE,MAAMc,QAAQ,GAAG1B,WAAW,CAC1B,kBAAuB;IAAA,IAAhB2B,CAAC,GAAAT,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGO,OAAO;IAChB,OAAO,MAAMG,OAAO,CAACC,GAAG,CAACF,CAAC,CAACG,GAAG,CAACC,IAAA;MAAA,IAAC;QAAET;MAAG,CAAC,GAAAS,IAAA;MAAA,OAAKP,KAAK,CAACF,EAAE,CAAC;IAAA,EAAC,CAAC;EACxD,CAAC,EACD,CAACE,KAAK,EAAEC,OAAO,CACjB,CAAC;EAED,OAAO;IAAEA,OAAO;IAAET,IAAI;IAAEK,KAAK;IAAEG,KAAK;IAAEE;EAAS,CAAC;AAClD",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7086071327827aa3fa82d04bb01c0493a9f389e8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7086071327827aa3fa82d04bb01c0493a9f389e8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_wz5labld7=function(){return actualCoverage},actualCoverage}function useViewportSize(){cov_wz5labld7().f[0]++;const context=(cov_wz5labld7().s[0]++,(0,react.useContext)(ViewportContext.k));if(cov_wz5labld7().s[1]++,!context)throw cov_wz5labld7().b[0][0]++,cov_wz5labld7().s[2]++,new Error("used outside WindowManager");return cov_wz5labld7().b[0][1]++,cov_wz5labld7().s[3]++,context}function useWindowManager(parent){cov_wz5labld7().f[2]++;const[state,dispatch]=(cov_wz5labld7().s[6]++,(0,react.useContext)(context.J)),open=(cov_wz5labld7().s[7]++,(0,react.useCallback)((function(){cov_wz5labld7().f[3]++;let windowData=(cov_wz5labld7().s[8]++,cov_wz5labld7().b[2][0]++,arguments.length>0&&(cov_wz5labld7().b[2][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[1][0]++,arguments[0]):(cov_wz5labld7().b[1][1]++,{}));return cov_wz5labld7().s[9]++,dispatch((0,store.D1)({parent,...windowData}))}),[dispatch,parent])),focus=(cov_wz5labld7().s[10]++,(0,react.useCallback)((function(){cov_wz5labld7().f[4]++;let id=(cov_wz5labld7().s[11]++,cov_wz5labld7().b[4][0]++,arguments.length>0&&(cov_wz5labld7().b[4][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[3][0]++,arguments[0]):(cov_wz5labld7().b[3][1]++,parent));cov_wz5labld7().s[12]++,dispatch({type:"FOCUS_WINDOW",id})}),[dispatch,parent])),close=(cov_wz5labld7().s[13]++,(0,react.useCallback)((async function(){cov_wz5labld7().f[5]++;let id=(cov_wz5labld7().s[14]++,cov_wz5labld7().b[6][0]++,arguments.length>0&&(cov_wz5labld7().b[6][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[5][0]++,arguments[0]):(cov_wz5labld7().b[5][1]++,parent));return cov_wz5labld7().s[15]++,await dispatch((0,store.Do)(id)),cov_wz5labld7().s[16]++,id}),[dispatch,parent])),windows=(cov_wz5labld7().s[17]++,(0,react.useMemo)((()=>(cov_wz5labld7().f[6]++,cov_wz5labld7().s[18]++,(0,store.sJ)(state))),[state])),closeAll=(cov_wz5labld7().s[19]++,(0,react.useCallback)((async function(){cov_wz5labld7().f[7]++;let w=(cov_wz5labld7().s[20]++,cov_wz5labld7().b[8][0]++,arguments.length>0&&(cov_wz5labld7().b[8][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[7][0]++,arguments[0]):(cov_wz5labld7().b[7][1]++,windows));return cov_wz5labld7().s[21]++,await Promise.all(w.map((_ref=>{cov_wz5labld7().f[8]++;let{id}=(cov_wz5labld7().s[22]++,_ref);return cov_wz5labld7().s[23]++,close(id)})))}),[close,windows]));return cov_wz5labld7().s[24]++,{windows,open,focus,close,closeAll}}cov_wz5labld7();var index_esm=__webpack_require__("./node_modules/react-cool-dimensions/dist/index.esm.js");function cov_269cqit9gn(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx",statementMap:{0:{start:{line:2,column:0},end:{line:11,column:5}},1:{start:{line:3,column:2},end:{line:10,column:3}},2:{start:{line:7,column:8},end:{line:7,column:47}},3:{start:{line:8,column:4},end:{line:8,column:41}},4:{start:{line:9,column:4},end:{line:9,column:51}},5:{start:{line:12,column:23},end:{line:14,column:1}},6:{start:{line:13,column:2},end:{line:13,column:32}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:2,column:1},end:{line:2,column:2}},loc:{start:{line:2,column:13},end:{line:11,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:12,column:23},end:{line:12,column:24}},loc:{start:{line:12,column:34},end:{line:14,column:1}},line:12}},branchMap:{0:{loc:{start:{line:3,column:2},end:{line:10,column:3}},type:"if",locations:[{start:{line:3,column:2},end:{line:10,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useDimensions","window","ResizeObserver","ResizeObserverEntry","self","useSize","options"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx"],mappings:"AAAA,OAAOA,aAAa,MAAM,uBAAuB;AAEjD,CAAC,YAAY;EACX,IAAI,EAAE,gBAAgB,IAAIC,MAAM,CAAC,EAAE;IACjC,MAAM;MAAEC,cAAc;MAAEC;IAAoB,CAAC,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;IACvFC,IAAI,CAACF,cAAc,GAAGA,cAAc;IACpCE,IAAI,CAACD,mBAAmB,GAAGA,mBAA0B,CAAC,CAAC;EACzD;AACF,CAAC,EAAE,CAAC;AAEJ,OAAO,MAAME,OAA6B,GAAIC,OAAO,IAAK;EACxD,OAAON,aAAa,CAACM,OAAO,CAAC;AAC/B,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"31e6b87d1bdf532fd890283758d07f111b51ce2e"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"31e6b87d1bdf532fd890283758d07f111b51ce2e"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_269cqit9gn=function(){return actualCoverage},actualCoverage}cov_269cqit9gn(),cov_269cqit9gn().s[0]++,(async()=>{if(cov_269cqit9gn().f[0]++,cov_269cqit9gn().s[1]++,"ResizeObserver"in window)cov_269cqit9gn().b[0][1]++;else{cov_269cqit9gn().b[0][0]++;const{ResizeObserver,ResizeObserverEntry}=(cov_269cqit9gn().s[2]++,await __webpack_require__.e(564).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js")));cov_269cqit9gn().s[3]++,self.ResizeObserver=ResizeObserver,cov_269cqit9gn().s[4]++,self.ResizeObserverEntry=ResizeObserverEntry}})(),cov_269cqit9gn().s[5]++;const useSize=options=>(cov_269cqit9gn().f[1]++,cov_269cqit9gn().s[6]++,(0,index_esm.Ay)(options));try{useSize.displayName="useSize",useSize.__docgenInfo={description:"",displayName:"useSize",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useSize.tsx#useSize"]={docgenInfo:useSize.__docgenInfo,name:"useSize",path:"src/hooks/useSize.tsx#useSize"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_1yrfr2kcjq(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"5d7c15502c59f7acdbb931c5b9a2b6612d0d0bd8"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["useOverflow"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts"],mappings:"AAAA,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,SAASA,WAAW,QAAQ,8CAA8C",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5d7c15502c59f7acdbb931c5b9a2b6612d0d0bd8"});var actualCoverage=coverage[path];return cov_1yrfr2kcjq=function(){return actualCoverage},actualCoverage}cov_1yrfr2kcjq()},"./src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{l7:()=>DefaultContent,ty:()=>WindowManager,$k:()=>hooks.$k});var FooterButton_namespaceObject={};__webpack_require__.r(FooterButton_namespaceObject),__webpack_require__.d(FooterButton_namespaceObject,{M:()=>FooterButton});var HeaderTitle_namespaceObject={};__webpack_require__.r(HeaderTitle_namespaceObject),__webpack_require__.d(HeaderTitle_namespaceObject,{g:()=>HeaderTitle});var HeaderButton_namespaceObject={};__webpack_require__.r(HeaderButton_namespaceObject),__webpack_require__.d(HeaderButton_namespaceObject,{I:()=>HeaderButton});var HeaderButtonClose_namespaceObject={};__webpack_require__.r(HeaderButtonClose_namespaceObject),__webpack_require__.d(HeaderButtonClose_namespaceObject,{E:()=>HeaderButtonClose});var HeaderButtonZoom_namespaceObject={};__webpack_require__.r(HeaderButtonZoom_namespaceObject),__webpack_require__.d(HeaderButtonZoom_namespaceObject,{D:()=>HeaderButtonZoom});var header_namespaceObject={};__webpack_require__.r(header_namespaceObject),__webpack_require__.d(header_namespaceObject,{HeaderButtonClose:()=>HeaderButtonClose,HeaderButtonCloseProps:()=>HeaderButtonClose_namespaceObject.HeaderButtonCloseProps,HeaderButtonZoom:()=>HeaderButtonZoom,HeaderButtonZoomProps:()=>HeaderButtonZoom_namespaceObject.HeaderButtonZoomProps,HeaderTitle:()=>HeaderTitle,HeaderTitleProps:()=>HeaderTitle_namespaceObject.HeaderTitleProps});var WindowHeader_namespaceObject={};__webpack_require__.r(WindowHeader_namespaceObject),__webpack_require__.d(WindowHeader_namespaceObject,{y:()=>WindowHeader});var WithOverflow_namespaceObject={};__webpack_require__.r(WithOverflow_namespaceObject),__webpack_require__.d(WithOverflow_namespaceObject,{$:()=>WithOverflow});var footer_namespaceObject={};__webpack_require__.r(footer_namespaceObject),__webpack_require__.d(footer_namespaceObject,{FooterButton:()=>FooterButton,FooterButtonProps:()=>FooterButton_namespaceObject.FooterButtonProps});var WindowFooter_namespaceObject={};__webpack_require__.r(WindowFooter_namespaceObject),__webpack_require__.d(WindowFooter_namespaceObject,{O:()=>WindowFooter});var defaultComponents_namespaceObject={};function cov_20lhh6w4yl(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e8a0b1bac282329f45dd518d5aaf4444617eec1a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx"],mappings:"",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e8a0b1bac282329f45dd518d5aaf4444617eec1a"});var actualCoverage=coverage[path];return cov_20lhh6w4yl=function(){return actualCoverage},actualCoverage}__webpack_require__.r(defaultComponents_namespaceObject),__webpack_require__.d(defaultComponents_namespaceObject,{Content:()=>WithOverflow,ContentProps:()=>WithOverflow_namespaceObject.WithOverflowProps,Footer:()=>WindowFooter,FooterButton:()=>FooterButton,FooterButtonProps:()=>FooterButton_namespaceObject.FooterButtonProps,FooterProps:()=>WindowFooter_namespaceObject.WindowFooterProps,Header:()=>WindowHeader,HeaderButton:()=>HeaderButton,HeaderButtonClose:()=>HeaderButtonClose,HeaderButtonCloseProps:()=>HeaderButtonClose_namespaceObject.HeaderButtonCloseProps,HeaderButtonProps:()=>HeaderButton_namespaceObject.HeaderButtonProps,HeaderButtonZoom:()=>HeaderButtonZoom,HeaderButtonZoomProps:()=>HeaderButtonZoom_namespaceObject.HeaderButtonZoomProps,HeaderProps:()=>WindowHeader_namespaceObject.WindowHeaderProps,HeaderTitle:()=>HeaderTitle,HeaderTitleProps:()=>HeaderTitle_namespaceObject.HeaderTitleProps}),cov_20lhh6w4yl();var WindowContent=__webpack_require__("./src/components/window/WindowContent.tsx"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),emotion_element_43c6fea0_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"),react=__webpack_require__("./node_modules/react/index.js");function cov_15da4fkcyx(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"f1cac0b8a9fa176b0fe030dbf4b7b47a7eaca049"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx",statementMap:{0:{start:{line:2,column:27},end:{line:9,column:2}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,names:["css","buttonReset","padding","margin","border","background","outline","appearance"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAElC,OAAO,MAAMC,WAAW,GAAGD,GAAG,CAAC;EAC7BE,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,UAAU,EAAE,aAAa;EACzBC,OAAO,EAAE,MAAM;EACfC,UAAU,EAAE;AACd,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f1cac0b8a9fa176b0fe030dbf4b7b47a7eaca049"});var actualCoverage=coverage[path];return cov_15da4fkcyx=function(){return actualCoverage},actualCoverage}cov_15da4fkcyx();const buttonReset=(cov_15da4fkcyx().s[0]++,(0,emotion_css_esm.AH)({padding:0,margin:0,border:0,background:"transparent",outline:"none",appearance:"none"}));function cov_19ty7ydoxf(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:6,column:23},end:{line:37,column:1}},10:{start:{line:10,column:6},end:{line:10,column:16}},11:{start:{line:13,column:6},end:{line:13,column:13}},12:{start:{line:14,column:2},end:{line:36,column:5}},13:{start:{line:45,column:6},end:{line:45,column:10}},14:{start:{line:46,column:32},end:{line:46,column:47}},15:{start:{line:47,column:28},end:{line:47,column:43}},16:{start:{line:48,column:18},end:{line:57,column:14}},17:{start:{line:49,column:4},end:{line:49,column:21}},18:{start:{line:50,column:4},end:{line:50,column:19}},19:{start:{line:51,column:4},end:{line:55,column:5}},20:{start:{line:52,column:6},end:{line:52,column:21}},21:{start:{line:54,column:6},end:{line:54,column:21}},22:{start:{line:56,column:4},end:{line:56,column:22}},23:{start:{line:58,column:21},end:{line:58,column:40}},24:{start:{line:59,column:22},end:{line:59,column:38}},25:{start:{line:60,column:2},end:{line:67,column:26}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:6,column:23},end:{line:6,column:24}},loc:{start:{line:6,column:29},end:{line:37,column:1}},line:6},3:{name:"FooterButton",decl:{start:{line:38,column:16},end:{line:38,column:28}},loc:{start:{line:38,column:35},end:{line:68,column:1}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:48,column:30},end:{line:48,column:31}},loc:{start:{line:48,column:42},end:{line:57,column:3}},line:48}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},3:{loc:{start:{line:12,column:4},end:{line:12,column:16}},type:"default-arg",locations:[{start:{line:12,column:15},end:{line:12,column:16}}],line:12},4:{loc:{start:{line:43,column:4},end:{line:43,column:25}},type:"default-arg",locations:[{start:{line:43,column:16},end:{line:43,column:25}}],line:43},5:{loc:{start:{line:58,column:21},end:{line:58,column:40}},type:"binary-expr",locations:[{start:{line:58,column:21},end:{line:58,column:29}},{start:{line:58,column:33},end:{line:58,column:40}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0],3:[0],4:[0],5:[0,0]},inputSourceMap:{version:3,names:["css","cx","useTheme","React","useCallback","useState","buttonReset","useButtonTheme","spacing","colors","baseUnit","textTransform","paddingTop","paddingBottom","paddingLeft","paddingRight","border","margin","marginLeft","marginRight","opacity","backgroundColor","primaryBackground","borderColor","focusColor","secondaryBackground","FooterButton","_ref","action","disabled","classname","className","props","working","setWorking","error","setError","onClick","e","isDisabled","buttonTheme","createElement","_extends","type","title"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,WAAW,QAAQ,eAAe;AAa3C,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAC3B,MAAM;IAAEC,OAAO,GAAG,CAAC,CAAC;IAAEC;EAAO,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC3C,MAAM;IAAEQ,QAAQ,GAAG;EAAE,CAAC,GAAGF,OAAO;EAChC,OAAOR,GAAG,CAAC;IACTW,aAAa,EAAE,WAAW;IAC1BC,UAAU,EAAEF,QAAQ;IACpBG,aAAa,EAAEH,QAAQ;IACvBI,WAAW,EAAEJ,QAAQ,GAAG,CAAC;IACzBK,YAAY,EAAEL,QAAQ,GAAG,CAAC;IAC1BM,MAAM,EAAE,WAAW;IACnBC,MAAM,EAAEP,QAAQ,GAAG,CAAC;IACpB,oBAAoB,EAAE;MACpBQ,UAAU,EAAER;IACd,CAAC;IACD,mBAAmB,EAAE;MACnBS,WAAW,EAAET;IACf,CAAC;IACD,WAAW,EAAE;MACXU,OAAO,EAAE;IACX,CAAC;IACDC,eAAe,EAAEZ,MAAM,CAACa,iBAAiB;IACzC,+BAA+B,EAAE;MAC/BC,WAAW,EAAEd,MAAM,CAACe,UAAU;MAC9BH,eAAe,EAAEZ,MAAM,CAACgB;IAC1B;EACF,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAAmG;EAAA,IAAlG;IAAEC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,SAAS,GAAGD,SAAS;IAAE,GAAGE;EAAyB,CAAC,GAAAL,IAAA;EAC9G,MAAM,CAACM,OAAO,EAAEC,UAAU,CAAC,GAAG7B,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM,CAAC8B,KAAK,EAAEC,QAAQ,CAAC,GAAG/B,QAAQ,CAAC,KAAK,CAAC;EACzC,MAAMgC,OAAO,GAAGjC,WAAW,CAAC,YAAY;IACtC8B,UAAU,CAAC,IAAI,CAAC;IAChBE,QAAQ,CAAC,IAAI,CAAC;IACd,IAAI;MACF,MAAMR,MAAM,CAAC,CAAC;IAChB,CAAC,CAAC,OAAOU,CAAC,EAAE;MACVF,QAAQ,CAAC,IAAI,CAAC;IAChB;IACAF,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EACZ,MAAMW,UAAU,GAAGV,QAAQ,IAAII,OAAO;EACtC,MAAMO,WAAW,GAAGjC,cAAc,CAAC,CAAC;EACpC,oBACEJ,KAAA,CAAAsC,aAAA,WAAAC,QAAA;IACEC,IAAI,EAAC,QAAQ;IACbZ,SAAS,EAAE9B,EAAE,CAACK,WAAW,EAAEkC,WAAW,EAAE;MAAE,eAAe,EAAEL;IAAM,CAAC,EAAEJ,SAAS,CAAE;IAC/EM,OAAO,EAAEA,OAAQ;IACjBR,QAAQ,EAAEU;EAAW,GACjBP,KAAK,GAERA,KAAK,CAACY,KACD,CAAC;AAEb",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ec3ff1a94fefceb40348d7db1c5c2e8bfa917b0f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ec3ff1a94fefceb40348d7db1c5c2e8bfa917b0f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_19ty7ydoxf=function(){return actualCoverage},actualCoverage}function _extends(){return cov_19ty7ydoxf().f[0]++,cov_19ty7ydoxf().s[0]++,_extends=Object.assign?(cov_19ty7ydoxf().b[0][0]++,Object.assign.bind()):(cov_19ty7ydoxf().b[0][1]++,function(target){cov_19ty7ydoxf().f[1]++,cov_19ty7ydoxf().s[1]++;for(var i=(cov_19ty7ydoxf().s[2]++,1);i{cov_19ty7ydoxf().f[2]++;const{spacing=(cov_19ty7ydoxf().b[2][0]++,{}),colors}=(cov_19ty7ydoxf().s[10]++,(0,emotion_element_43c6fea0_browser_esm.u)()),{baseUnit=(cov_19ty7ydoxf().b[3][0]++,2)}=(cov_19ty7ydoxf().s[11]++,spacing);return cov_19ty7ydoxf().s[12]++,(0,emotion_css_esm.AH)({textTransform:"uppercase",paddingTop:baseUnit,paddingBottom:baseUnit,paddingLeft:6*baseUnit,paddingRight:6*baseUnit,border:"1px solid",margin:2*baseUnit,":not(:first-child)":{marginLeft:baseUnit},":not(:last-child)":{marginRight:baseUnit},":disabled":{opacity:.5},backgroundColor:colors.primaryBackground,":focus, :not(:disabled):hover":{borderColor:colors.focusColor,backgroundColor:colors.secondaryBackground}})};function FooterButton(_ref){cov_19ty7ydoxf().f[3]++;let{action,disabled,classname,className=(cov_19ty7ydoxf().b[4][0]++,classname),...props}=(cov_19ty7ydoxf().s[13]++,_ref);const[working,setWorking]=(cov_19ty7ydoxf().s[14]++,(0,react.useState)(!1)),[error,setError]=(cov_19ty7ydoxf().s[15]++,(0,react.useState)(!1)),onClick=(cov_19ty7ydoxf().s[16]++,(0,react.useCallback)((async()=>{cov_19ty7ydoxf().f[4]++,cov_19ty7ydoxf().s[17]++,setWorking(!0),cov_19ty7ydoxf().s[18]++,setError(null),cov_19ty7ydoxf().s[19]++;try{cov_19ty7ydoxf().s[20]++,await action()}catch(e){cov_19ty7ydoxf().s[21]++,setError(!0)}cov_19ty7ydoxf().s[22]++,setWorking(!1)}),[action])),isDisabled=(cov_19ty7ydoxf().s[23]++,cov_19ty7ydoxf().b[5][0]++,disabled||(cov_19ty7ydoxf().b[5][1]++,working)),buttonTheme=(cov_19ty7ydoxf().s[24]++,useButtonTheme());return cov_19ty7ydoxf().s[25]++,react.createElement("button",_extends({type:"button",className:(0,emotion_css_esm.cx)(buttonReset,buttonTheme,{"action-failed":error},className),onClick,disabled:isDisabled},props),props.title)}try{FooterButton.displayName="FooterButton",FooterButton.__docgenInfo={description:"",displayName:"FooterButton",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},action:{defaultValue:null,description:"",name:"action",required:!0,type:{name:"() => void | Promise"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},classname:{defaultValue:null,description:"@deprecated use className instead",name:"classname",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/footer/FooterButton.tsx#FooterButton"]={docgenInfo:FooterButton.__docgenInfo,name:"FooterButton",path:"src/components/window/footer/FooterButton.tsx#FooterButton"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/types.ts");var hooks=__webpack_require__("./src/hooks/index.ts"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),context=__webpack_require__("./src/context/index.ts"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),TransitionGroup=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroup.js"),CSSTransition=__webpack_require__("./node_modules/react-transition-group/esm/CSSTransition.js");function cov_12hfal0e6l(){var path="/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c06c4d9325a3434f34f305c753588ddafcd07d91"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts",statementMap:{0:{start:{line:2,column:34},end:{line:22,column:1}},1:{start:{line:3,column:10},end:{line:3,column:82}},2:{start:{line:4,column:2},end:{line:21,column:4}},3:{start:{line:23,column:36},end:{line:23,column:56}},4:{start:{line:24,column:33},end:{line:24,column:57}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:2,column:34},end:{line:2,column:35}},loc:{start:{line:2,column:46},end:{line:22,column:1}},line:2}},branchMap:{0:{loc:{start:{line:3,column:10},end:{line:3,column:82}},type:"cond-expr",locations:[{start:{line:3,column:63},end:{line:3,column:75}},{start:{line:3,column:78},end:{line:3,column:82}}],line:3},1:{loc:{start:{line:3,column:10},end:{line:3,column:60}},type:"binary-expr",locations:[{start:{line:3,column:10},end:{line:3,column:30}},{start:{line:3,column:34},end:{line:3,column:60}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","getFadeInAnimation","t","arguments","length","undefined","enter","opacity","enterActive","transition","pointerEvents","exit","exitActive","defaultFadeAnimation","fastFadeAnimation"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAElC,OAAO,MAAMC,kBAAkB,GAAG,SAAAA,CAAA;EAAA,IAACC,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAAA,OAAM;IAC/CG,KAAK,EAAEN,GAAG,CAAC;MACTO,OAAO,EAAE;IACX,CAAC,CAAC;IACFC,WAAW,EAAER,GAAG,CAAC;MACfO,OAAO,EAAE,CAAC;MACVE,UAAU,EAAG,WAAUP,CAAE,eAAc;MACvCQ,aAAa,EAAE;IACjB,CAAC,CAAC;IACFC,IAAI,EAAEX,GAAG,CAAC;MACRO,OAAO,EAAE;IACX,CAAC,CAAC;IACFK,UAAU,EAAEZ,GAAG,CAAC;MACdO,OAAO,EAAE,CAAC;MACVE,UAAU,EAAG,WAAUP,CAAE,eAAc;MACvCQ,aAAa,EAAE;IACjB,CAAC;EACH,CAAC;AAAA,CAAC;AAEF,OAAO,MAAMG,oBAAoB,GAAGZ,kBAAkB,CAAC,CAAC;AACxD,OAAO,MAAMa,iBAAiB,GAAGb,kBAAkB,CAAC,IAAI,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c06c4d9325a3434f34f305c753588ddafcd07d91"});var actualCoverage=coverage[path];return cov_12hfal0e6l=function(){return actualCoverage},actualCoverage}cov_12hfal0e6l(),cov_12hfal0e6l().s[0]++;const getFadeInAnimation=function(){cov_12hfal0e6l().f[0]++;let t=(cov_12hfal0e6l().s[1]++,cov_12hfal0e6l().b[1][0]++,arguments.length>0&&(cov_12hfal0e6l().b[1][1]++,void 0!==arguments[0])?(cov_12hfal0e6l().b[0][0]++,arguments[0]):(cov_12hfal0e6l().b[0][1]++,.25));return cov_12hfal0e6l().s[2]++,{enter:(0,emotion_css_esm.AH)({opacity:0}),enterActive:(0,emotion_css_esm.AH)({opacity:1,transition:`opacity ${t}s ease-in-out`,pointerEvents:"none"}),exit:(0,emotion_css_esm.AH)({opacity:1}),exitActive:(0,emotion_css_esm.AH)({opacity:0,transition:`opacity ${t}s ease-in-out`,pointerEvents:"none"})}},defaultFadeAnimation=(cov_12hfal0e6l().s[3]++,getFadeInAnimation()),fastFadeAnimation=(cov_12hfal0e6l().s[4]++,getFadeInAnimation(.15));var color_alpha=__webpack_require__("./node_modules/color-alpha/index.js");function cov_lfk3shxj1(){var path="/home/runner/work/nk-windows/nk-windows/src/rgba.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"5c5435ad636202b164074595fa67781b2fc73215"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/rgba.tsx",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:25}}},fnMap:{0:{name:"rgba",decl:{start:{line:2,column:16},end:{line:2,column:20}},loc:{start:{line:2,column:31},end:{line:4,column:1}},line:2}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["alpha","rgba","color","a"],sources:["/home/runner/work/nk-windows/nk-windows/src/rgba.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,aAAa;AAE/B,OAAO,SAASC,IAAIA,CAACC,KAAa,EAAEC,CAAS,EAAU;EACrD,OAAOH,KAAK,CAACE,KAAK,EAAEC,CAAC,CAAC;AACxB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5c5435ad636202b164074595fa67781b2fc73215"});var actualCoverage=coverage[path];return cov_lfk3shxj1=function(){return actualCoverage},actualCoverage}function rgba(color,a){return cov_lfk3shxj1().f[0]++,cov_lfk3shxj1().s[0]++,(0,color_alpha.A)(color,a)}function cov_rrhoce58i(){var path="/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"f08e43195b8f320908186a96232be30c04812194"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx",statementMap:{0:{start:{line:11,column:6},end:{line:11,column:16}},1:{start:{line:14,column:6},end:{line:14,column:13}},2:{start:{line:15,column:28},end:{line:17,column:4}},3:{start:{line:18,column:23},end:{line:18,column:75}},4:{start:{line:18,column:37},end:{line:18,column:62}},5:{start:{line:19,column:22},end:{line:24,column:103}},6:{start:{line:19,column:36},end:{line:24,column:5}},7:{start:{line:25,column:2},end:{line:29,column:4}},8:{start:{line:32,column:16},end:{line:32,column:26}},9:{start:{line:33,column:25},end:{line:35,column:4}},10:{start:{line:36,column:2},end:{line:36,column:24}}},fnMap:{0:{name:"useFrameTheme",decl:{start:{line:5,column:16},end:{line:5,column:29}},loc:{start:{line:5,column:32},end:{line:30,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:18,column:31},end:{line:18,column:32}},loc:{start:{line:18,column:37},end:{line:18,column:62}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:19,column:30},end:{line:19,column:31}},loc:{start:{line:19,column:36},end:{line:24,column:5}},line:19},3:{name:"useModalMaskTheme",decl:{start:{line:31,column:16},end:{line:31,column:33}},loc:{start:{line:31,column:36},end:{line:37,column:1}},line:31}},branchMap:{0:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},1:{loc:{start:{line:13,column:4},end:{line:13,column:16}},type:"default-arg",locations:[{start:{line:13,column:15},end:{line:13,column:16}}],line:13}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0],1:[0]},inputSourceMap:{version:3,names:["css","cx","useTheme","useMemo","rgba","useFrameTheme","colors","spacing","backgroundOpacity","backdropFilter","baseUnit","focusWrapperTheme","border","Math","round","borderColor","windowMargin","max","windowTheme","background","primaryBackground","boxShadow","margin","useModalMaskTheme","theme","modalMaskTheme"],sources:["/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAAgBC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,QAAQ,QAAQ;AAE7B,OAAO,SAASC,aAAaA,CAAA,EAAG;EAC9B,MAAM;IAAEC,MAAM;IAAEC,OAAO,GAAG,CAAC,CAAC;IAAEC,iBAAiB;IAAEC;EAAe,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC9E,MAAM;IAAEQ,QAAQ,GAAG;EAAE,CAAC,GAAGH,OAAO;EAChC,MAAMI,iBAAiB,GAAGX,GAAG,CAAC;IAC5BY,MAAM,EAAG,GAAEC,IAAI,CAACC,KAAK,CAACJ,QAAQ,GAAG,CAAC,CAAE,YAAWJ,MAAM,EAAES,WAAY;EACrE,CAAC,CAAC;EACF,MAAMC,YAAY,GAAGb,OAAO,CAAC,MAAMU,IAAI,CAACI,GAAG,CAAC,CAAC,EAAEP,QAAQ,GAAG,CAAC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EACzE,MAAMQ,WAAW,GAAGf,OAAO,CACzB,MACEF,EAAE,CACAD,GAAG,CAAC;IACFS,cAAc,EAAEA,cAAc;IAC9BU,UAAU,EAAEf,IAAI,CAACE,MAAM,CAACc,iBAAiB,EAAEZ,iBAAiB,CAAC;IAC7Da,SAAS,EAAG,gBAAejB,IAAI,CAACE,MAAM,CAACS,WAAW,EAAE,GAAG,CAAE,EAAC;IAC1DO,MAAM,EAAEN,YAAY,CAAE;EACxB,CAAC,CACH,CAAC,EACH,CAACP,cAAc,EAAED,iBAAiB,EAAEF,MAAM,CAACS,WAAW,EAAET,MAAM,CAACc,iBAAiB,EAAEJ,YAAY,CAChG,CAAC;EAED,OAAO;IAAEL,iBAAiB;IAAEO,WAAW;IAAEF;EAAa,CAAC;AACzD;AAEA,OAAO,SAASO,iBAAiBA,CAAA,EAAG;EAClC,MAAMC,KAAK,GAAGtB,QAAQ,CAAC,CAAC;EACxB,MAAMuB,cAAc,GAAGzB,GAAG,CAAC;IACzBmB,UAAU,EAAEf,IAAI,CAACoB,KAAK,CAAClB,MAAM,CAACS,WAAW,EAAE,GAAG;EAChD,CAAC,CAAC;EACF,OAAOU,cAAc;AACvB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f08e43195b8f320908186a96232be30c04812194"});var actualCoverage=coverage[path];return cov_rrhoce58i=function(){return actualCoverage},actualCoverage}function cov_2je9arqzo9(){var path="/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"531e360c4a2dd869755386182c7b104cdf272c6b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx",statementMap:{0:{start:{line:5,column:38},end:{line:25,column:2}},1:{start:{line:8,column:6},end:{line:8,column:10}},2:{start:{line:9,column:25},end:{line:9,column:44}},3:{start:{line:10,column:25},end:{line:17,column:4}},4:{start:{line:18,column:2},end:{line:24,column:5}},5:{start:{line:26,column:0},end:{line:26,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:49},end:{line:5,column:50}},loc:{start:{line:5,column:64},end:{line:25,column:1}},line:5}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","forwardRef","rgba","useModalMaskTheme","ModalMask","_ref","ref","zIndex","modalMaskTheme","modalMaskClass","top","left","right","bottom","position","background","createElement","className","style","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAIC,UAAU,QAAmB,OAAO;AACpD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,iBAAiB,QAAQ,eAAe;AAEjD,OAAO,MAAMC,SAAS,gBAAGH,UAAU,CAAC,CAAAI,IAAA,EAAkCC,GAA8B,KAAkB;EAAA,IAAjF;IAAEC;EAA4B,CAAC,GAAAF,IAAA;EAClE,MAAMG,cAAc,GAAGL,iBAAiB,CAAC,CAAC;EAC1C,MAAMM,cAAc,GAAGX,GAAG,CAAC;IACzBY,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,QAAQ,EAAE,OAAO;IACjBC,UAAU,EAAEb,IAAI,CAAC,OAAO,EAAE,GAAG;EAC/B,CAAC,CAAC;EACF,oBAAOF,KAAA,CAAAgB,aAAA;IAAKV,GAAG,EAAEA,GAAI;IAACW,SAAS,EAAElB,EAAE,CAACU,cAAc,EAAED,cAAc,CAAE;IAACU,KAAK,EAAE;MAAEX;IAAO;EAAE,CAAE,CAAC;AAC5F,CAAC,CAAC;AAEFH,SAAS,CAACe,WAAW,GAAG,WAAW",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"531e360c4a2dd869755386182c7b104cdf272c6b"});var actualCoverage=coverage[path];return cov_2je9arqzo9=function(){return actualCoverage},actualCoverage}cov_lfk3shxj1(),cov_rrhoce58i(),cov_2je9arqzo9();const ModalMask=(cov_2je9arqzo9().s[0]++,(0,react.forwardRef)(((_ref,ref)=>{cov_2je9arqzo9().f[0]++;let{zIndex}=(cov_2je9arqzo9().s[1]++,_ref);const modalMaskTheme=(cov_2je9arqzo9().s[2]++,function useModalMaskTheme(){cov_rrhoce58i().f[3]++;const theme=(cov_rrhoce58i().s[8]++,(0,emotion_element_43c6fea0_browser_esm.u)()),modalMaskTheme=(cov_rrhoce58i().s[9]++,(0,emotion_css_esm.AH)({background:rgba(theme.colors.borderColor,.6)}));return cov_rrhoce58i().s[10]++,modalMaskTheme}()),modalMaskClass=(cov_2je9arqzo9().s[3]++,(0,emotion_css_esm.AH)({top:0,left:0,right:0,bottom:0,position:"fixed",background:rgba("black",.6)}));return cov_2je9arqzo9().s[4]++,react.createElement("div",{ref,className:(0,emotion_css_esm.cx)(modalMaskClass,modalMaskTheme),style:{zIndex}})})));cov_2je9arqzo9().s[5]++,ModalMask.displayName="ModalMask";try{ModalMask.displayName="ModalMask",ModalMask.__docgenInfo={description:"",displayName:"ModalMask",props:{zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ModalMask.tsx#ModalMask"]={docgenInfo:ModalMask.__docgenInfo,name:"ModalMask",path:"src/components/ModalMask.tsx#ModalMask"})}catch(__react_docgen_typescript_loader_error){}var fp=__webpack_require__("./node_modules/lodash/fp.js"),es2015=__webpack_require__("./node_modules/react-focus-lock/dist/es2015/index.js"),lib=__webpack_require__("./node_modules/react-rnd/lib/index.js"),useMutationObserver=__webpack_require__("./node_modules/rooks/dist/esm/hooks/useMutationObserver.js"),usePreviousImmediate=__webpack_require__("./node_modules/rooks/dist/esm/hooks/usePreviousImmediate.js"),usePreviousDifferent=__webpack_require__("./node_modules/rooks/dist/esm/hooks/usePreviousDifferent.js");function cov_lzyxjvp10(){var path="/home/runner/work/nk-windows/nk-windows/src/consts.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6a44a03f6907727c5f9ccdeacb710e298890b024"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/consts.ts",statementMap:{0:{start:{line:1,column:38},end:{line:1,column:51}},1:{start:{line:2,column:39},end:{line:2,column:48}}},fnMap:{},branchMap:{},s:{0:0,1:0},f:{},b:{},inputSourceMap:{version:3,names:["DRAG_HANDLE_CLASS_NAME","DRAG_PREVENT_CLASS_NAME"],sources:["/home/runner/work/nk-windows/nk-windows/src/consts.ts"],mappings:"AAAA,OAAO,MAAMA,sBAAsB,GAAG,aAAa;AACnD,OAAO,MAAMC,uBAAuB,GAAG,SAAS",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6a44a03f6907727c5f9ccdeacb710e298890b024"});var actualCoverage=coverage[path];return cov_lzyxjvp10=function(){return actualCoverage},actualCoverage}cov_lzyxjvp10();const DRAG_HANDLE_CLASS_NAME=(cov_lzyxjvp10().s[0]++,"drag-handle"),DRAG_PREVENT_CLASS_NAME=(cov_lzyxjvp10().s[1]++,"no-drag");function cov_2bu7blp47f(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:3,column:26}},1:{start:{line:4,column:20},end:{line:4,column:32}},2:{start:{line:5,column:2},end:{line:20,column:11}},3:{start:{line:6,column:27},end:{line:9,column:5}},4:{start:{line:7,column:6},end:{line:7,column:33}},5:{start:{line:8,column:6},end:{line:8,column:68}},6:{start:{line:10,column:28},end:{line:13,column:5}},7:{start:{line:11,column:6},end:{line:11,column:29}},8:{start:{line:12,column:6},end:{line:12,column:68}},9:{start:{line:14,column:4},end:{line:14,column:52}},10:{start:{line:15,column:4},end:{line:15,column:54}},11:{start:{line:16,column:4},end:{line:19,column:6}},12:{start:{line:17,column:6},end:{line:17,column:57}},13:{start:{line:18,column:6},end:{line:18,column:59}},14:{start:{line:21,column:2},end:{line:34,column:11}},15:{start:{line:22,column:21},end:{line:29,column:5}},16:{start:{line:23,column:6},end:{line:28,column:7}},17:{start:{line:24,column:8},end:{line:24,column:42}},18:{start:{line:25,column:8},end:{line:27,column:9}},19:{start:{line:26,column:10},end:{line:26,column:72}},20:{start:{line:30,column:4},end:{line:30,column:57}},21:{start:{line:31,column:4},end:{line:33,column:6}},22:{start:{line:32,column:6},end:{line:32,column:62}}},fnMap:{0:{name:"useScrollFix",decl:{start:{line:2,column:16},end:{line:2,column:28}},loc:{start:{line:2,column:33},end:{line:35,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:5,column:12},end:{line:5,column:13}},loc:{start:{line:5,column:18},end:{line:20,column:3}},line:5},2:{name:"(anonymous_2)",decl:{start:{line:6,column:27},end:{line:6,column:28}},loc:{start:{line:6,column:32},end:{line:9,column:5}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:10,column:28},end:{line:10,column:29}},loc:{start:{line:10,column:33},end:{line:13,column:5}},line:10},4:{name:"(anonymous_4)",decl:{start:{line:16,column:11},end:{line:16,column:12}},loc:{start:{line:16,column:17},end:{line:19,column:5}},line:16},5:{name:"(anonymous_5)",decl:{start:{line:21,column:12},end:{line:21,column:13}},loc:{start:{line:21,column:18},end:{line:34,column:3}},line:21},6:{name:"(anonymous_6)",decl:{start:{line:22,column:21},end:{line:22,column:22}},loc:{start:{line:22,column:26},end:{line:29,column:5}},line:22},7:{name:"(anonymous_7)",decl:{start:{line:31,column:11},end:{line:31,column:12}},loc:{start:{line:31,column:17},end:{line:33,column:5}},line:31}},branchMap:{0:{loc:{start:{line:23,column:6},end:{line:28,column:7}},type:"if",locations:[{start:{line:23,column:6},end:{line:28,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:23},1:{loc:{start:{line:23,column:10},end:{line:23,column:91}},type:"binary-expr",locations:[{start:{line:23,column:10},end:{line:23,column:36}},{start:{line:23,column:40},end:{line:23,column:91}}],line:23},2:{loc:{start:{line:25,column:8},end:{line:27,column:9}},type:"if",locations:[{start:{line:25,column:8},end:{line:27,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:25}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,names:["useEffect","useRef","useScrollFix","el","focused","scrollTop","focusInHandler","e","current","target","window","document","documentElement","focusOutHandler","addEventListener","removeEventListener","listener","visualViewport","height","innerHeight","scrollIntoView"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx"],mappings:"AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,OAAO,SAASC,YAAYA,CAACC,EAAe,EAAE;EAC5C,MAAMC,OAAO,GAAGH,MAAM,CAAc,CAAC;EACrC,MAAMI,SAAS,GAAGJ,MAAM,CAAS,IAAI,CAAC;EAEtCD,SAAS,CAAC,MAAM;IACd,MAAMM,cAAc,GAAIC,CAAC,IAAK;MAC5BH,OAAO,CAACI,OAAO,GAAGD,CAAC,CAACE,MAAM;MAC1BJ,SAAS,CAACG,OAAO,GAAGE,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS;IAC/D,CAAC;IACD,MAAMQ,eAAe,GAAIN,CAAC,IAAK;MAC7BH,OAAO,CAACI,OAAO,GAAG,IAAI;MACtBH,SAAS,CAACG,OAAO,GAAGE,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS;IAC/D,CAAC;IACDF,EAAE,EAAEW,gBAAgB,CAAC,SAAS,EAAER,cAAc,CAAC;IAC/CH,EAAE,EAAEW,gBAAgB,CAAC,UAAU,EAAED,eAAe,CAAC;IACjD,OAAO,MAAM;MACXV,EAAE,EAAEY,mBAAmB,CAAC,SAAS,EAAET,cAAc,CAAC;MAClDH,EAAE,EAAEY,mBAAmB,CAAC,UAAU,EAAEF,eAAe,CAAC;IACtD,CAAC;EACH,CAAC,EAAE,CAACV,EAAE,CAAC,CAAC;EAERH,SAAS,CAAC,MAAM;IACd,MAAMgB,QAAQ,GAAIT,CAAC,IAAK;MACtB,IAAI,gBAAgB,IAAIG,MAAM,IAAIA,MAAM,CAACO,cAAc,CAACC,MAAM,KAAKR,MAAM,CAACS,WAAW,EAAE;QACrFf,OAAO,CAACI,OAAO,EAAEY,cAAc,CAAC,CAAC;QACjC,IAAIf,SAAS,KAAK,IAAI,EAAE;UACtBK,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS,GAAGA,SAAS,CAACG,OAAO;QAC/D;MACF;IACF,CAAC;IACDS,cAAc,EAAEH,gBAAgB,CAAC,QAAQ,EAAEE,QAAQ,CAAC;IACpD,OAAO,MAAM;MACXC,cAAc,EAAEF,mBAAmB,CAAC,QAAQ,EAAEC,QAAQ,CAAC;IACzD,CAAC;EACH,CAAC,EAAE,CAACb,EAAE,CAAC,CAAC;AACV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0528a40bbcf4486b38a5b370b8d64d949c38b643"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0528a40bbcf4486b38a5b370b8d64d949c38b643"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2bu7blp47f=function(){return actualCoverage},actualCoverage}function useScrollFix(el){cov_2bu7blp47f().f[0]++;const focused=(cov_2bu7blp47f().s[0]++,(0,react.useRef)()),scrollTop=(cov_2bu7blp47f().s[1]++,(0,react.useRef)(null));cov_2bu7blp47f().s[2]++,(0,react.useEffect)((()=>{cov_2bu7blp47f().f[1]++,cov_2bu7blp47f().s[3]++;const focusInHandler=e=>{cov_2bu7blp47f().f[2]++,cov_2bu7blp47f().s[4]++,focused.current=e.target,cov_2bu7blp47f().s[5]++,scrollTop.current=window.document.documentElement.scrollTop};cov_2bu7blp47f().s[6]++;const focusOutHandler=e=>{cov_2bu7blp47f().f[3]++,cov_2bu7blp47f().s[7]++,focused.current=null,cov_2bu7blp47f().s[8]++,scrollTop.current=window.document.documentElement.scrollTop};return cov_2bu7blp47f().s[9]++,el?.addEventListener("focusin",focusInHandler),cov_2bu7blp47f().s[10]++,el?.addEventListener("focusout",focusOutHandler),cov_2bu7blp47f().s[11]++,()=>{cov_2bu7blp47f().f[4]++,cov_2bu7blp47f().s[12]++,el?.removeEventListener("focusin",focusInHandler),cov_2bu7blp47f().s[13]++,el?.removeEventListener("focusout",focusOutHandler)}}),[el]),cov_2bu7blp47f().s[14]++,(0,react.useEffect)((()=>{cov_2bu7blp47f().f[5]++,cov_2bu7blp47f().s[15]++;const listener=e=>{cov_2bu7blp47f().f[6]++,cov_2bu7blp47f().s[16]++,cov_2bu7blp47f().b[1][0]++,"visualViewport"in window&&(cov_2bu7blp47f().b[1][1]++,window.visualViewport.height!==window.innerHeight)?(cov_2bu7blp47f().b[0][0]++,cov_2bu7blp47f().s[17]++,focused.current?.scrollIntoView(),cov_2bu7blp47f().s[18]++,null!==scrollTop?(cov_2bu7blp47f().b[2][0]++,cov_2bu7blp47f().s[19]++,window.document.documentElement.scrollTop=scrollTop.current):cov_2bu7blp47f().b[2][1]++):cov_2bu7blp47f().b[0][1]++};return cov_2bu7blp47f().s[20]++,visualViewport?.addEventListener("scroll",listener),cov_2bu7blp47f().s[21]++,()=>{cov_2bu7blp47f().f[7]++,cov_2bu7blp47f().s[22]++,visualViewport?.removeEventListener("scroll",listener)}}),[el])}cov_2bu7blp47f();try{useScrollFix.displayName="useScrollFix",useScrollFix.__docgenInfo={description:"",displayName:"useScrollFix",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useScrollFix.tsx#useScrollFix"]={docgenInfo:useScrollFix.__docgenInfo,name:"useScrollFix",path:"src/hooks/useScrollFix.tsx#useScrollFix"})}catch(__react_docgen_typescript_loader_error){}function cov_1ij5oj001f(){var path="/home/runner/work/nk-windows/nk-windows/src/utils.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"4956204ab69252a892673c59f65873bb98a33183"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/utils.ts",statementMap:{0:{start:{line:2,column:13},end:{line:2,column:36}},1:{start:{line:3,column:2},end:{line:5,column:4}},2:{start:{line:4,column:4},end:{line:4,column:21}},3:{start:{line:8,column:2},end:{line:8,column:28}},4:{start:{line:11,column:2},end:{line:11,column:35}}},fnMap:{0:{name:"delay",decl:{start:{line:1,column:16},end:{line:1,column:21}},loc:{start:{line:1,column:35},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:3,column:9},end:{line:3,column:10}},loc:{start:{line:3,column:15},end:{line:5,column:3}},line:3},2:{name:"defer",decl:{start:{line:7,column:16},end:{line:7,column:21}},loc:{start:{line:7,column:32},end:{line:9,column:1}},line:7},3:{name:"random",decl:{start:{line:10,column:16},end:{line:10,column:22}},loc:{start:{line:10,column:26},end:{line:12,column:1}},line:10}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0,2:0,3:0},b:{},inputSourceMap:{version:3,names:["delay","t","callback","to","setTimeout","clearTimeout","defer","random","n","Math"],sources:["/home/runner/work/nk-windows/nk-windows/src/utils.ts"],mappings:"AAAA,OAAO,SAASA,KAAKA,CAACC,CAAS,EAAEC,QAAoB,EAAc;EACjE,MAAMC,EAAE,GAAGC,UAAU,CAACF,QAAQ,EAAED,CAAC,CAAC;EAClC,OAAO,MAAM;IACXI,YAAY,CAACF,EAAE,CAAC;EAClB,CAAC;AACH;AAEA,OAAO,SAASG,KAAKA,CAACJ,QAAoB,EAAc;EACtD,OAAOF,KAAK,CAAC,CAAC,EAAEE,QAAQ,CAAC;AAC3B;AAEA,OAAO,SAASK,MAAMA,CAACC,CAAS,EAAU;EACxC,OAAO,CAACC,IAAI,CAACF,MAAM,CAAC,CAAC,GAAG,GAAG,IAAIC,CAAC;AAClC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4956204ab69252a892673c59f65873bb98a33183"});var actualCoverage=coverage[path];return cov_1ij5oj001f=function(){return actualCoverage},actualCoverage}function cov_23u2ihntpe(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e25f70fe22fe22015d02337b5ac739d2338d0ae8"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx",statementMap:{0:{start:{line:6,column:24},end:{line:36,column:1}},1:{start:{line:9,column:6},end:{line:9,column:10}},2:{start:{line:10,column:18},end:{line:10,column:30}},3:{start:{line:16,column:6},end:{line:16,column:16}},4:{start:{line:17,column:2},end:{line:35,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:24},end:{line:6,column:25}},loc:{start:{line:6,column:32},end:{line:36,column:1}},line:6}},branchMap:{0:{loc:{start:{line:17,column:65},end:{line:35,column:5}},type:"binary-expr",locations:[{start:{line:17,column:65},end:{line:17,column:75}},{start:{line:17,column:92},end:{line:35,column:5}}],line:17}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useTheme","React","useRef","CSSTransition","TransitionGroup","rgba","fastFadeAnimation","SnapMask","_ref","previewBox","nodeRef","colors","spacing","baseUnit","createElement","timeout","classNames","ref","style","boxSizing","position","zIndex","background","focusColor","border","Math","round","top","y","left","x","width","height","transition"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx"],mappings:"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;AACvE,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,iBAAiB,QAAQ,uBAAuB;AAGzD,OAAO,MAAMC,QAAQ,GAAGC,IAAA,IAAyC;EAAA,IAAxC;IAAEC;EAAgC,CAAC,GAAAD,IAAA;EAC1D,MAAME,OAAO,GAAGR,MAAM,CAAiB,IAAI,CAAC;EAC5C,MAAM;IACJS,MAAM;IACNC,OAAO,EAAE;MAAEC;IAAS;EACtB,CAAC,GAAGb,QAAQ,CAAC,CAAC;EAEd,oBACEC,KAAA,CAAAa,aAAA,CAACV,eAAe,QACbK,UAAU,iBACTR,KAAA,CAAAa,aAAA,CAACX,aAAa;IAACO,OAAO,EAAEA,OAAQ;IAACK,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEV;EAAkB,gBAC3EL,KAAA,CAAAa,aAAA;IACEG,GAAG,EAAEP,OAAQ;IACbQ,KAAK,EAAE;MACLC,SAAS,EAAE,YAAY;MACvBC,QAAQ,EAAE,OAAO;MACjBC,MAAM,EAAE,EAAE;MACVC,UAAU,EAAEjB,IAAI,CAACM,MAAM,CAACY,UAAU,EAAE,IAAI,CAAC;MACzCC,MAAM,EAAG,GAAEC,IAAI,CAACC,KAAK,CAACb,QAAQ,GAAG,CAAC,CAAE,YAAWF,MAAM,EAAEY,UAAW,EAAC;MACnEI,GAAG,EAAElB,UAAU,CAACmB,CAAC;MACjBC,IAAI,EAAEpB,UAAU,CAACqB,CAAC;MAClBC,KAAK,EAAEtB,UAAU,CAACsB,KAAK;MACvBC,MAAM,EAAEvB,UAAU,CAACuB,MAAM;MACzBC,UAAU,EAAE;IACd;EAAE,CACH,CACY,CAEF,CAAC;AAEtB,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e25f70fe22fe22015d02337b5ac739d2338d0ae8"});var actualCoverage=coverage[path];return cov_23u2ihntpe=function(){return actualCoverage},actualCoverage}cov_1ij5oj001f(),cov_23u2ihntpe(),cov_23u2ihntpe().s[0]++;const SnapMask=_ref=>{cov_23u2ihntpe().f[0]++;let{previewBox}=(cov_23u2ihntpe().s[1]++,_ref);const nodeRef=(cov_23u2ihntpe().s[2]++,(0,react.useRef)(null)),{colors,spacing:{baseUnit}}=(cov_23u2ihntpe().s[3]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_23u2ihntpe().s[4]++,react.createElement(TransitionGroup.A,null,(cov_23u2ihntpe().b[0][0]++,previewBox&&(cov_23u2ihntpe().b[0][1]++,react.createElement(CSSTransition.A,{nodeRef,timeout:250,classNames:fastFadeAnimation},react.createElement("div",{ref:nodeRef,style:{boxSizing:"border-box",position:"fixed",zIndex:10,background:rgba(colors.focusColor,.25),border:`${Math.round(baseUnit/3)}px solid ${colors?.focusColor}`,top:previewBox.y,left:previewBox.x,width:previewBox.width,height:previewBox.height,transition:"all .15s ease-in-out"}})))))};try{SnapMask.displayName="SnapMask",SnapMask.__docgenInfo={description:"",displayName:"SnapMask",props:{previewBox:{defaultValue:null,description:"",name:"previewBox",required:!0,type:{name:"Box"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/SnapMask.tsx#SnapMask"]={docgenInfo:SnapMask.__docgenInfo,name:"SnapMask",path:"src/components/window/SnapMask.tsx#SnapMask"})}catch(__react_docgen_typescript_loader_error){}function cov_23097d1g9o(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"189bb014479d1dde3bfa0480667abb9cde2593c6"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts",statementMap:{0:{start:{line:1,column:31},end:{line:12,column:5}},1:{start:{line:2,column:2},end:{line:2,column:34}},2:{start:{line:3,column:2},end:{line:3,column:32}},3:{start:{line:4,column:2},end:{line:4,column:36}},4:{start:{line:5,column:2},end:{line:5,column:38}},5:{start:{line:6,column:2},end:{line:6,column:34}},6:{start:{line:7,column:2},end:{line:7,column:40}},7:{start:{line:8,column:2},end:{line:8,column:42}},8:{start:{line:9,column:2},end:{line:9,column:47}},9:{start:{line:10,column:2},end:{line:10,column:48}},10:{start:{line:11,column:2},end:{line:11,column:14}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:1,column:31},end:{line:1,column:32}},loc:{start:{line:1,column:47},end:{line:12,column:1}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["Side"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts"],mappings:"AAAA,WAAYA,IAAI,0BAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAA,OAAJA,IAAI;AAAA",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"189bb014479d1dde3bfa0480667abb9cde2593c6"});var actualCoverage=coverage[path];return cov_23097d1g9o=function(){return actualCoverage},actualCoverage}cov_23097d1g9o();let Side=(cov_23097d1g9o().s[0]++,function(Side){return cov_23097d1g9o().f[0]++,cov_23097d1g9o().s[1]++,Side[Side.none=0]="none",cov_23097d1g9o().s[2]++,Side[Side.top=1]="top",cov_23097d1g9o().s[3]++,Side[Side.right=2]="right",cov_23097d1g9o().s[4]++,Side[Side.bottom=4]="bottom",cov_23097d1g9o().s[5]++,Side[Side.left=8]="left",cov_23097d1g9o().s[6]++,Side[Side.topLeft=9]="topLeft",cov_23097d1g9o().s[7]++,Side[Side.topRight=3]="topRight",cov_23097d1g9o().s[8]++,Side[Side.bottomLeft=12]="bottomLeft",cov_23097d1g9o().s[9]++,Side[Side.bottomRight=6]="bottomRight",cov_23097d1g9o().s[10]++,Side}({}));function cov_re07yzcqk(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx",statementMap:{0:{start:{line:5,column:2},end:{line:10,column:4}},1:{start:{line:13,column:15},end:{line:13,column:84}},2:{start:{line:14,column:23},end:{line:14,column:70}},3:{start:{line:18,column:6},end:{line:18,column:23}},4:{start:{line:19,column:38},end:{line:19,column:52}},5:{start:{line:20,column:18},end:{line:53,column:21}},6:{start:{line:22,column:17},end:{line:22,column:23}},7:{start:{line:23,column:17},end:{line:23,column:21}},8:{start:{line:24,column:17},end:{line:24,column:32}},9:{start:{line:25,column:17},end:{line:25,column:30}},10:{start:{line:26,column:17},end:{line:26,column:24}},11:{start:{line:27,column:17},end:{line:27,column:24}},12:{start:{line:28,column:17},end:{line:28,column:24}},13:{start:{line:29,column:6},end:{line:29,column:34}},14:{start:{line:31,column:33},end:{line:31,column:72}},15:{start:{line:32,column:33},end:{line:32,column:74}},16:{start:{line:33,column:4},end:{line:52,column:5}},17:{start:{line:35,column:8},end:{line:35,column:35}},18:{start:{line:37,column:8},end:{line:37,column:35}},19:{start:{line:39,column:8},end:{line:39,column:35}},20:{start:{line:41,column:8},end:{line:41,column:35}},21:{start:{line:43,column:8},end:{line:43,column:35}},22:{start:{line:45,column:8},end:{line:45,column:35}},23:{start:{line:47,column:8},end:{line:47,column:35}},24:{start:{line:49,column:8},end:{line:49,column:35}},25:{start:{line:51,column:8},end:{line:51,column:20}},26:{start:{line:54,column:25},end:{line:64,column:31}},27:{start:{line:55,column:17},end:{line:55,column:30}},28:{start:{line:56,column:4},end:{line:63,column:5}},29:{start:{line:57,column:6},end:{line:59,column:7}},30:{start:{line:58,column:8},end:{line:58,column:37}},31:{start:{line:60,column:6},end:{line:60,column:26}},32:{start:{line:62,column:6},end:{line:62,column:26}},33:{start:{line:65,column:2},end:{line:65,column:38}}},fnMap:{0:{name:"box",decl:{start:{line:4,column:9},end:{line:4,column:12}},loc:{start:{line:4,column:25},end:{line:11,column:1}},line:4},1:{name:"useSnapAreas",decl:{start:{line:12,column:16},end:{line:12,column:28}},loc:{start:{line:12,column:31},end:{line:66,column:1}},line:12},2:{name:"(anonymous_2)",decl:{start:{line:20,column:30},end:{line:20,column:31}},loc:{start:{line:20,column:38},end:{line:53,column:3}},line:20},3:{name:"points",decl:{start:{line:21,column:13},end:{line:21,column:19}},loc:{start:{line:21,column:36},end:{line:30,column:5}},line:21},4:{name:"(anonymous_4)",decl:{start:{line:54,column:37},end:{line:54,column:38}},loc:{start:{line:54,column:58},end:{line:64,column:3}},line:54}},branchMap:{0:{loc:{start:{line:13,column:15},end:{line:13,column:84}},type:"cond-expr",locations:[{start:{line:13,column:68},end:{line:13,column:80}},{start:{line:13,column:83},end:{line:13,column:84}}],line:13},1:{loc:{start:{line:13,column:15},end:{line:13,column:65}},type:"binary-expr",locations:[{start:{line:13,column:15},end:{line:13,column:35}},{start:{line:13,column:39},end:{line:13,column:65}}],line:13},2:{loc:{start:{line:14,column:23},end:{line:14,column:70}},type:"cond-expr",locations:[{start:{line:14,column:46},end:{line:14,column:58}},{start:{line:14,column:61},end:{line:14,column:70}}],line:14},3:{loc:{start:{line:33,column:4},end:{line:52,column:5}},type:"switch",locations:[{start:{line:34,column:6},end:{line:35,column:35}},{start:{line:36,column:6},end:{line:37,column:35}},{start:{line:38,column:6},end:{line:39,column:35}},{start:{line:40,column:6},end:{line:41,column:35}},{start:{line:42,column:6},end:{line:43,column:35}},{start:{line:44,column:6},end:{line:45,column:35}},{start:{line:46,column:6},end:{line:47,column:35}},{start:{line:48,column:6},end:{line:49,column:35}},{start:{line:50,column:6},end:{line:51,column:20}}],line:33},4:{loc:{start:{line:56,column:4},end:{line:63,column:5}},type:"if",locations:[{start:{line:56,column:4},end:{line:63,column:5}},{start:{line:61,column:11},end:{line:63,column:5}}],line:56},5:{loc:{start:{line:57,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:59,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0,0,0,0,0,0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,names:["useCallback","useState","useViewportSize","Side","box","x","y","w","h","Math","round","width","height","useSnapAreas","margin","arguments","length","undefined","onSnapCallback","previewBox","setPreviewBox","getBBox","side","points","fullSize","size","p0","p1","p2","p3","w0","w1","w2","x0","x2","wf","wl","wr","y0","y2","hf","ht","hb","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight","onSideEdgeSnap","isDropped","bBox"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx"],mappings:"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC7C,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAAiBC,IAAI,QAAc,SAAS;AAE5C,SAASC,GAAGA,CAACC,CAAS,EAAEC,CAAS,EAAEC,CAAS,EAAEC,CAAS,EAAO;EAC5D,OAAO;IAAEH,CAAC,EAAEI,IAAI,CAACC,KAAK,CAACL,CAAC,CAAC;IAAEC,CAAC,EAAEG,IAAI,CAACC,KAAK,CAACJ,CAAC,CAAC;IAAEK,KAAK,EAAEF,IAAI,CAACC,KAAK,CAACH,CAAC,CAAC;IAAEK,MAAM,EAAEH,IAAI,CAACC,KAAK,CAACF,CAAC;EAAE,CAAC;AAC5F;AAIA,OAAO,SAASK,YAAYA,CAAA,EAA+G;EAAA,IAA9GC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,cAA+C,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EACtF,MAAM;IAAEN,KAAK;IAAEC;EAAO,CAAC,GAAGV,eAAe,CAAC,CAAC;EAC3C,MAAM,CAACiB,UAAU,EAAEC,aAAa,CAAC,GAAGnB,QAAQ,CAAa,IAAI,CAAC;EAE9D,MAAMoB,OAAO,GAAGrB,WAAW,CACxBsB,IAAU,IAAU;IACnB,SAASC,MAAMA,CAACC,QAAQ,EAAEC,IAAI,EAAE;MAC9B,MAAMC,EAAE,GAAGZ,MAAM;MACjB,MAAMa,EAAE,GAAGF,IAAI;MACf,MAAMG,EAAE,GAAGJ,QAAQ,GAAGC,IAAI;MAC1B,MAAMI,EAAE,GAAGL,QAAQ,GAAGE,EAAE;MAExB,MAAMI,EAAE,GAAGD,EAAE,GAAGH,EAAE;MAClB,MAAMK,EAAE,GAAGJ,EAAE,GAAGD,EAAE;MAClB,MAAMM,EAAE,GAAGH,EAAE,GAAGD,EAAE;MAClB,OAAO,CAACF,EAAE,EAAEE,EAAE,EAAEE,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC;IAC7B;IAEA,MAAM,CAACC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC,GAAGd,MAAM,CAACZ,KAAK,EAAEA,KAAK,GAAG,GAAG,GAAGG,MAAM,GAAG,CAAC,CAAC;IACpE,MAAM,CAACwB,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC,GAAGnB,MAAM,CAACX,MAAM,EAAEA,MAAM,GAAG,GAAG,GAAGE,MAAM,GAAG,CAAC,CAAC;IAEtE,QAAQQ,IAAI;MACV,KAAKnB,IAAI,CAACwC,GAAG;QACX,OAAOvC,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEH,EAAE,EAAEM,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAACyC,MAAM;QACd,OAAOxC,GAAG,CAAC6B,EAAE,EAAEM,EAAE,EAAEJ,EAAE,EAAEO,EAAE,CAAC;MAC5B,KAAKvC,IAAI,CAAC0C,IAAI;QACZ,OAAOzC,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEI,EAAE,CAAC;MAC5B,KAAKrC,IAAI,CAAC2C,KAAK;QACb,OAAO1C,GAAG,CAAC8B,EAAE,EAAEI,EAAE,EAAED,EAAE,EAAEG,EAAE,CAAC;MAC5B,KAAKrC,IAAI,CAAC4C,OAAO;QACf,OAAO3C,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEK,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAAC6C,QAAQ;QAChB,OAAO5C,GAAG,CAAC8B,EAAE,EAAEI,EAAE,EAAED,EAAE,EAAEI,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAAC8C,UAAU;QAClB,OAAO7C,GAAG,CAAC6B,EAAE,EAAEM,EAAE,EAAEH,EAAE,EAAEM,EAAE,CAAC;MAC5B,KAAKvC,IAAI,CAAC+C,WAAW;QACnB,OAAO9C,GAAG,CAAC8B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEK,EAAE,CAAC;MAC5B;QACE,OAAO,IAAI;IACf;EACF,CAAC,EACD,CAAC9B,MAAM,EAAED,KAAK,CAChB,CAAC;EAED,MAAMwC,cAAc,GAAGnD,WAAW,CAChC,CAACsB,IAAU,EAAE8B,SAAkB,KAAK;IAClC,MAAMC,IAAI,GAAGhC,OAAO,CAACC,IAAI,CAAC;IAC1B,IAAI8B,SAAS,EAAE;MACb,IAAIC,IAAI,EAAE;QACRnC,cAAc,GAAGmC,IAAI,EAAE/B,IAAI,CAAC;MAC9B;MACAF,aAAa,CAAC,IAAI,CAAC;IACrB,CAAC,MAAM;MACLA,aAAa,CAACiC,IAAI,CAAC;IACrB;EACF,CAAC,EACD,CAAChC,OAAO,EAAEH,cAAc,CAC1B,CAAC;EACD,OAAO,CAACC,UAAU,EAAEgC,cAAc,CAAC;AACrC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ed0dfbcd0a4b901a8f2d8ea2772fc64cbc92977a"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ed0dfbcd0a4b901a8f2d8ea2772fc64cbc92977a"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_re07yzcqk=function(){return actualCoverage},actualCoverage}function box(x,y,w,h){return cov_re07yzcqk().f[0]++,cov_re07yzcqk().s[0]++,{x:Math.round(x),y:Math.round(y),width:Math.round(w),height:Math.round(h)}}function cov_2j6j0vjz8o(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx",statementMap:{0:{start:{line:5,column:19},end:{line:5,column:36}},1:{start:{line:6,column:2},end:{line:28,column:47}},2:{start:{line:7,column:20},end:{line:7,column:90}},3:{start:{line:13,column:8},end:{line:13,column:44}},4:{start:{line:14,column:15},end:{line:14,column:24}},5:{start:{line:15,column:4},end:{line:17,column:5}},6:{start:{line:16,column:6},end:{line:16,column:23}},7:{start:{line:18,column:4},end:{line:20,column:5}},8:{start:{line:19,column:6},end:{line:19,column:26}},9:{start:{line:21,column:4},end:{line:23,column:5}},10:{start:{line:22,column:6},end:{line:22,column:24}},11:{start:{line:24,column:4},end:{line:26,column:5}},12:{start:{line:25,column:6},end:{line:25,column:25}},13:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"useSnapSide",decl:{start:{line:4,column:16},end:{line:4,column:27}},loc:{start:{line:4,column:33},end:{line:29,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:6,column:21},end:{line:6,column:22}},loc:{start:{line:6,column:33},end:{line:28,column:3}},line:6}},branchMap:{0:{loc:{start:{line:7,column:20},end:{line:7,column:90}},type:"cond-expr",locations:[{start:{line:7,column:73},end:{line:7,column:85}},{start:{line:7,column:88},end:{line:7,column:90}}],line:7},1:{loc:{start:{line:7,column:20},end:{line:7,column:70}},type:"binary-expr",locations:[{start:{line:7,column:20},end:{line:7,column:40}},{start:{line:7,column:44},end:{line:7,column:70}}],line:7},2:{loc:{start:{line:15,column:4},end:{line:17,column:5}},type:"if",locations:[{start:{line:15,column:4},end:{line:17,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},3:{loc:{start:{line:18,column:4},end:{line:20,column:5}},type:"if",locations:[{start:{line:18,column:4},end:{line:20,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:21,column:4},end:{line:23,column:5}},type:"if",locations:[{start:{line:21,column:4},end:{line:23,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},5:{loc:{start:{line:24,column:4},end:{line:26,column:5}},type:"if",locations:[{start:{line:24,column:4},end:{line:26,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:24}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,names:["useCallback","useViewportSize","Side","useSnapSide","ref","viewport","threshold","arguments","length","undefined","top","left","right","bottom","current","getBoundingClientRect","side","none","Math","round","height","width"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx"],mappings:"AAAA,SAAkCA,WAAW,QAAQ,OAAO;AAC5D,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,IAAI,QAAQ,SAAS;AAE9B,OAAO,SAASC,WAAWA,CAACC,GAAiD,EAAE;EAC7E,MAAMC,QAAQ,GAAGJ,eAAe,CAAC,CAAC;EAClC,OAAOD,WAAW,CAChB,YAA0B;IAAA,IAAzBM,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;IACb,MAAM;MAAEG,GAAG;MAAEC,IAAI;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAGT,GAAG,CAACU,OAAO,EAAEC,qBAAqB,CAAC,CAAC;IAEzE,IAAIC,IAAI,GAAGd,IAAI,CAACe,IAAI;IACpB,IAAIP,GAAG,IAAIJ,SAAS,EAAE;MACpBU,IAAI,IAAId,IAAI,CAACQ,GAAG;IAClB;IACA,IAAIQ,IAAI,CAACC,KAAK,CAACd,QAAQ,EAAEe,MAAM,GAAGP,MAAM,CAAC,IAAIP,SAAS,EAAE;MACtDU,IAAI,IAAId,IAAI,CAACW,MAAM;IACrB;IACA,IAAIF,IAAI,IAAIL,SAAS,EAAE;MACrBU,IAAI,IAAId,IAAI,CAACS,IAAI;IACnB;IACA,IAAIO,IAAI,CAACC,KAAK,CAACd,QAAQ,EAAEgB,KAAK,GAAGT,KAAK,CAAC,IAAIN,SAAS,EAAE;MACpDU,IAAI,IAAId,IAAI,CAACU,KAAK;IACpB;IACA,OAAOI,IAAI;EACb,CAAC,EACD,CAACZ,GAAG,EAAEC,QAAQ,EAAEe,MAAM,EAAEf,QAAQ,EAAEgB,KAAK,CACzC,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"12af31e29046ee90e7af506d6ffeb3f6feff5d70"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"12af31e29046ee90e7af506d6ffeb3f6feff5d70"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2j6j0vjz8o=function(){return actualCoverage},actualCoverage}function useSnapSide(ref){cov_2j6j0vjz8o().f[0]++;const viewport=(cov_2j6j0vjz8o().s[0]++,(0,hooks.lR)());return cov_2j6j0vjz8o().s[1]++,(0,react.useCallback)((function(){cov_2j6j0vjz8o().f[1]++;let threshold=(cov_2j6j0vjz8o().s[2]++,cov_2j6j0vjz8o().b[1][0]++,arguments.length>0&&(cov_2j6j0vjz8o().b[1][1]++,void 0!==arguments[0])?(cov_2j6j0vjz8o().b[0][0]++,arguments[0]):(cov_2j6j0vjz8o().b[0][1]++,15));const{top,left,right,bottom}=(cov_2j6j0vjz8o().s[3]++,ref.current?.getBoundingClientRect());let side=(cov_2j6j0vjz8o().s[4]++,Side.none);return cov_2j6j0vjz8o().s[5]++,top<=threshold?(cov_2j6j0vjz8o().b[2][0]++,cov_2j6j0vjz8o().s[6]++,side|=Side.top):cov_2j6j0vjz8o().b[2][1]++,cov_2j6j0vjz8o().s[7]++,Math.round(viewport?.height-bottom)<=threshold?(cov_2j6j0vjz8o().b[3][0]++,cov_2j6j0vjz8o().s[8]++,side|=Side.bottom):cov_2j6j0vjz8o().b[3][1]++,cov_2j6j0vjz8o().s[9]++,left<=threshold?(cov_2j6j0vjz8o().b[4][0]++,cov_2j6j0vjz8o().s[10]++,side|=Side.left):cov_2j6j0vjz8o().b[4][1]++,cov_2j6j0vjz8o().s[11]++,Math.round(viewport?.width-right)<=threshold?(cov_2j6j0vjz8o().b[5][0]++,cov_2j6j0vjz8o().s[12]++,side|=Side.right):cov_2j6j0vjz8o().b[5][1]++,cov_2j6j0vjz8o().s[13]++,side}),[ref,viewport?.height,viewport?.width])}cov_re07yzcqk(),cov_2j6j0vjz8o();try{useSnapSide.displayName="useSnapSide",useSnapSide.__docgenInfo={description:"",displayName:"useSnapSide",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/useSnapSide.tsx#useSnapSide"]={docgenInfo:useSnapSide.__docgenInfo,name:"useSnapSide",path:"src/components/window/useSnapSide.tsx#useSnapSide"})}catch(__react_docgen_typescript_loader_error){}function cov_1wie91cq08(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx",statementMap:{0:{start:{line:19,column:22},end:{line:26,column:1}},1:{start:{line:28,column:2},end:{line:28,column:102}},2:{start:{line:30,column:20},end:{line:30,column:41}},3:{start:{line:32,column:38},end:{line:32,column:48}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:44}},6:{start:{line:38,column:2},end:{line:38,column:74}},7:{start:{line:38,column:33},end:{line:38,column:72}},8:{start:{line:39,column:2},end:{line:39,column:100}},9:{start:{line:39,column:24},end:{line:39,column:67}},10:{start:{line:40,column:2},end:{line:40,column:22}},11:{start:{line:42,column:26},end:{line:49,column:2}},12:{start:{line:50,column:20},end:{line:56,column:2}},13:{start:{line:57,column:40},end:{line:332,column:2}},14:{start:{line:69,column:6},end:{line:69,column:11}},15:{start:{line:73,column:6},end:{line:73,column:16}},16:{start:{line:74,column:14},end:{line:74,column:22}},17:{start:{line:75,column:19},end:{line:75,column:36}},18:{start:{line:76,column:34},end:{line:76,column:44}},19:{start:{line:77,column:26},end:{line:90,column:4}},20:{start:{line:85,column:8},end:{line:85,column:18}},21:{start:{line:86,column:4},end:{line:89,column:6}},22:{start:{line:91,column:19},end:{line:91,column:45}},23:{start:{line:96,column:6},end:{line:96,column:21}},24:{start:{line:97,column:19},end:{line:97,column:32}},25:{start:{line:98,column:33},end:{line:98,column:48}},26:{start:{line:99,column:16},end:{line:99,column:56}},27:{start:{line:99,column:34},end:{line:99,column:51}},28:{start:{line:100,column:28},end:{line:118,column:58}},29:{start:{line:101,column:4},end:{line:117,column:5}},30:{start:{line:102,column:24},end:{line:102,column:82}},31:{start:{line:102,column:39},end:{line:102,column:81}},32:{start:{line:106,column:10},end:{line:106,column:45}},33:{start:{line:107,column:16},end:{line:107,column:44}},34:{start:{line:108,column:16},end:{line:108,column:53}},35:{start:{line:109,column:21},end:{line:112,column:8}},36:{start:{line:113,column:6},end:{line:116,column:10}},37:{start:{line:119,column:27},end:{line:136,column:79}},38:{start:{line:120,column:4},end:{line:135,column:5}},39:{start:{line:124,column:10},end:{line:124,column:45}},40:{start:{line:130,column:10},end:{line:130,column:20}},41:{start:{line:131,column:6},end:{line:134,column:9}},42:{start:{line:137,column:27},end:{line:137,column:70}},43:{start:{line:138,column:23},end:{line:138,column:54}},44:{start:{line:141,column:27},end:{line:149,column:26}},45:{start:{line:142,column:14},end:{line:142,column:117}},46:{start:{line:143,column:18},end:{line:143,column:48}},47:{start:{line:144,column:19},end:{line:144,column:51}},48:{start:{line:145,column:4},end:{line:148,column:7}},49:{start:{line:150,column:2},end:{line:155,column:88}},50:{start:{line:151,column:4},end:{line:154,column:5}},51:{start:{line:152,column:23},end:{line:152,column:49}},52:{start:{line:153,column:6},end:{line:153,column:78}},53:{start:{line:153,column:29},end:{line:153,column:76}},54:{start:{line:156,column:23},end:{line:156,column:109}},55:{start:{line:156,column:47},end:{line:156,column:95}},56:{start:{line:157,column:26},end:{line:157,column:45}},57:{start:{line:158,column:22},end:{line:158,column:38}},58:{start:{line:159,column:22},end:{line:174,column:8}},59:{start:{line:165,column:8},end:{line:165,column:11}},60:{start:{line:166,column:4},end:{line:169,column:7}},61:{start:{line:170,column:4},end:{line:173,column:7}},62:{start:{line:175,column:39},end:{line:175,column:78}},63:{start:{line:176,column:2},end:{line:178,column:25}},64:{start:{line:177,column:4},end:{line:177,column:42}},65:{start:{line:179,column:18},end:{line:179,column:26}},66:{start:{line:180,column:17},end:{line:196,column:41}},67:{start:{line:181,column:4},end:{line:181,column:28}},68:{start:{line:182,column:4},end:{line:182,column:34}},69:{start:{line:183,column:4},end:{line:185,column:5}},70:{start:{line:184,column:6},end:{line:184,column:13}},71:{start:{line:186,column:17},end:{line:186,column:31}},72:{start:{line:187,column:4},end:{line:195,column:5}},73:{start:{line:188,column:6},end:{line:192,column:14}},74:{start:{line:189,column:8},end:{line:191,column:9}},75:{start:{line:190,column:10},end:{line:190,column:24}},76:{start:{line:194,column:6},end:{line:194,column:20}},77:{start:{line:197,column:21},end:{line:216,column:54}},78:{start:{line:201,column:8},end:{line:201,column:12}},79:{start:{line:202,column:4},end:{line:204,column:5}},80:{start:{line:203,column:6},end:{line:203,column:13}},81:{start:{line:205,column:4},end:{line:205,column:29}},82:{start:{line:206,column:4},end:{line:209,column:7}},83:{start:{line:210,column:4},end:{line:210,column:29}},84:{start:{line:211,column:4},end:{line:214,column:7}},85:{start:{line:215,column:4},end:{line:215,column:23}},86:{start:{line:217,column:18},end:{line:226,column:8}},87:{start:{line:221,column:8},end:{line:221,column:43}},88:{start:{line:222,column:4},end:{line:225,column:7}},89:{start:{line:227,column:19},end:{line:229,column:16}},90:{start:{line:228,column:4},end:{line:228,column:30}},91:{start:{line:230,column:23},end:{line:240,column:19}},92:{start:{line:234,column:8},end:{line:234,column:34}},93:{start:{line:235,column:4},end:{line:239,column:7}},94:{start:{line:241,column:32},end:{line:241,column:47}},95:{start:{line:242,column:16},end:{line:245,column:15}},96:{start:{line:243,column:4},end:{line:243,column:14}},97:{start:{line:244,column:4},end:{line:244,column:21}},98:{start:{line:246,column:15},end:{line:248,column:8}},99:{start:{line:247,column:4},end:{line:247,column:22}},100:{start:{line:249,column:18},end:{line:252,column:48}},101:{start:{line:249,column:33},end:{line:252,column:3}},102:{start:{line:253,column:27},end:{line:265,column:49}},103:{start:{line:254,column:4},end:{line:256,column:5}},104:{start:{line:255,column:6},end:{line:255,column:15}},105:{start:{line:257,column:4},end:{line:259,column:5}},106:{start:{line:258,column:6},end:{line:258,column:26}},107:{start:{line:260,column:20},end:{line:260,column:51}},108:{start:{line:261,column:4},end:{line:263,column:5}},109:{start:{line:262,column:6},end:{line:262,column:21}},110:{start:{line:264,column:4},end:{line:264,column:16}},111:{start:{line:266,column:26},end:{line:266,column:129}},112:{start:{line:266,column:40},end:{line:266,column:82}},113:{start:{line:267,column:27},end:{line:267,column:134}},114:{start:{line:267,column:41},end:{line:267,column:85}},115:{start:{line:268,column:2},end:{line:268,column:28}},116:{start:{line:269,column:2},end:{line:331,column:6}},117:{start:{line:323,column:6},end:{line:323,column:45}},118:{start:{line:324,column:6},end:{line:324,column:14}},119:{start:{line:333,column:0},end:{line:333,column:40}}},fnMap:{0:{name:"calcCoord",decl:{start:{line:27,column:9},end:{line:27,column:18}},loc:{start:{line:27,column:60},end:{line:29,column:1}},line:27},1:{name:"useContentVisibility",decl:{start:{line:31,column:9},end:{line:31,column:29}},loc:{start:{line:31,column:52},end:{line:41,column:1}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:38,column:27},end:{line:38,column:28}},loc:{start:{line:38,column:33},end:{line:38,column:72}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:39,column:18},end:{line:39,column:19}},loc:{start:{line:39,column:24},end:{line:39,column:67}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:57,column:51},end:{line:57,column:52}},loc:{start:{line:57,column:73},end:{line:332,column:1}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:77,column:35},end:{line:77,column:36}},loc:{start:{line:77,column:41},end:{line:90,column:3}},line:77},6:{name:"(anonymous_6)",decl:{start:{line:99,column:28},end:{line:99,column:29}},loc:{start:{line:99,column:34},end:{line:99,column:51}},line:99},7:{name:"(anonymous_7)",decl:{start:{line:100,column:40},end:{line:100,column:41}},loc:{start:{line:100,column:59},end:{line:118,column:3}},line:100},8:{name:"(anonymous_8)",decl:{start:{line:102,column:34},end:{line:102,column:35}},loc:{start:{line:102,column:39},end:{line:102,column:81}},line:102},9:{name:"(anonymous_9)",decl:{start:{line:119,column:39},end:{line:119,column:40}},loc:{start:{line:119,column:45},end:{line:136,column:3}},line:119},10:{name:"(anonymous_10)",decl:{start:{line:141,column:39},end:{line:141,column:40}},loc:{start:{line:141,column:59},end:{line:149,column:3}},line:141},11:{name:"(anonymous_11)",decl:{start:{line:150,column:18},end:{line:150,column:19}},loc:{start:{line:150,column:24},end:{line:155,column:3}},line:150},12:{name:"(anonymous_12)",decl:{start:{line:153,column:18},end:{line:153,column:19}},loc:{start:{line:153,column:29},end:{line:153,column:76}},line:153},13:{name:"(anonymous_13)",decl:{start:{line:156,column:35},end:{line:156,column:36}},loc:{start:{line:156,column:47},end:{line:156,column:95}},line:156},14:{name:"(anonymous_14)",decl:{start:{line:159,column:34},end:{line:159,column:35}},loc:{start:{line:159,column:41},end:{line:174,column:3}},line:159},15:{name:"(anonymous_15)",decl:{start:{line:176,column:12},end:{line:176,column:13}},loc:{start:{line:176,column:18},end:{line:178,column:3}},line:176},16:{name:"(anonymous_16)",decl:{start:{line:180,column:29},end:{line:180,column:30}},loc:{start:{line:180,column:35},end:{line:196,column:3}},line:180},17:{name:"(anonymous_17)",decl:{start:{line:188,column:35},end:{line:188,column:36}},loc:{start:{line:188,column:41},end:{line:192,column:7}},line:188},18:{name:"(anonymous_18)",decl:{start:{line:197,column:33},end:{line:197,column:34}},loc:{start:{line:197,column:46},end:{line:216,column:3}},line:197},19:{name:"(anonymous_19)",decl:{start:{line:217,column:30},end:{line:217,column:31}},loc:{start:{line:217,column:36},end:{line:226,column:3}},line:217},20:{name:"(anonymous_20)",decl:{start:{line:227,column:31},end:{line:227,column:32}},loc:{start:{line:227,column:37},end:{line:229,column:3}},line:227},21:{name:"(anonymous_21)",decl:{start:{line:230,column:35},end:{line:230,column:36}},loc:{start:{line:230,column:68},end:{line:240,column:3}},line:230},22:{name:"(anonymous_22)",decl:{start:{line:242,column:28},end:{line:242,column:29}},loc:{start:{line:242,column:34},end:{line:245,column:3}},line:242},23:{name:"(anonymous_23)",decl:{start:{line:246,column:27},end:{line:246,column:28}},loc:{start:{line:246,column:33},end:{line:248,column:3}},line:246},24:{name:"(anonymous_24)",decl:{start:{line:249,column:26},end:{line:249,column:27}},loc:{start:{line:249,column:33},end:{line:252,column:3}},line:249},25:{name:"(anonymous_25)",decl:{start:{line:253,column:39},end:{line:253,column:40}},loc:{start:{line:253,column:63},end:{line:265,column:3}},line:253},26:{name:"(anonymous_26)",decl:{start:{line:266,column:34},end:{line:266,column:35}},loc:{start:{line:266,column:40},end:{line:266,column:82}},line:266},27:{name:"(anonymous_27)",decl:{start:{line:267,column:35},end:{line:267,column:36}},loc:{start:{line:267,column:41},end:{line:267,column:85}},line:267},28:{name:"(anonymous_28)",decl:{start:{line:322,column:15},end:{line:322,column:16}},loc:{start:{line:322,column:24},end:{line:325,column:5}},line:322}},branchMap:{0:{loc:{start:{line:28,column:27},end:{line:28,column:100}},type:"cond-expr",locations:[{start:{line:28,column:63},end:{line:28,column:92}},{start:{line:28,column:95},end:{line:28,column:100}}],line:28},1:{loc:{start:{line:33,column:2},end:{line:35,column:3}},type:"if",locations:[{start:{line:33,column:2},end:{line:35,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:33},2:{loc:{start:{line:39,column:24},end:{line:39,column:67}},type:"binary-expr",locations:[{start:{line:39,column:24},end:{line:39,column:34}},{start:{line:39,column:38},end:{line:39,column:67}}],line:39},3:{loc:{start:{line:65,column:4},end:{line:65,column:21}},type:"default-arg",locations:[{start:{line:65,column:16},end:{line:65,column:21}}],line:65},4:{loc:{start:{line:66,column:4},end:{line:66,column:21}},type:"default-arg",locations:[{start:{line:66,column:16},end:{line:66,column:21}}],line:66},5:{loc:{start:{line:67,column:4},end:{line:67,column:20}},type:"default-arg",locations:[{start:{line:67,column:15},end:{line:67,column:20}}],line:67},6:{loc:{start:{line:68,column:4},end:{line:68,column:19}},type:"default-arg",locations:[{start:{line:68,column:17},end:{line:68,column:19}}],line:68},7:{loc:{start:{line:71,column:4},end:{line:71,column:36}},type:"default-arg",locations:[{start:{line:71,column:15},end:{line:71,column:36}}],line:71},8:{loc:{start:{line:71,column:15},end:{line:71,column:36}},type:"binary-expr",locations:[{start:{line:71,column:15},end:{line:71,column:29}},{start:{line:71,column:33},end:{line:71,column:36}}],line:71},9:{loc:{start:{line:72,column:4},end:{line:72,column:38}},type:"default-arg",locations:[{start:{line:72,column:16},end:{line:72,column:38}}],line:72},10:{loc:{start:{line:72,column:16},end:{line:72,column:38}},type:"binary-expr",locations:[{start:{line:72,column:16},end:{line:72,column:31}},{start:{line:72,column:35},end:{line:72,column:38}}],line:72},11:{loc:{start:{line:87,column:14},end:{line:87,column:95}},type:"cond-expr",locations:[{start:{line:87,column:40},end:{line:87,column:70}},{start:{line:87,column:73},end:{line:87,column:95}}],line:87},12:{loc:{start:{line:87,column:14},end:{line:87,column:37}},type:"binary-expr",locations:[{start:{line:87,column:14},end:{line:87,column:22}},{start:{line:87,column:26},end:{line:87,column:37}}],line:87},13:{loc:{start:{line:87,column:73},end:{line:87,column:95}},type:"binary-expr",locations:[{start:{line:87,column:73},end:{line:87,column:79}},{start:{line:87,column:83},end:{line:87,column:95}}],line:87},14:{loc:{start:{line:88,column:13},end:{line:88,column:91}},type:"cond-expr",locations:[{start:{line:88,column:39},end:{line:88,column:68}},{start:{line:88,column:71},end:{line:88,column:91}}],line:88},15:{loc:{start:{line:88,column:13},end:{line:88,column:36}},type:"binary-expr",locations:[{start:{line:88,column:13},end:{line:88,column:22}},{start:{line:88,column:26},end:{line:88,column:36}}],line:88},16:{loc:{start:{line:88,column:71},end:{line:88,column:91}},type:"binary-expr",locations:[{start:{line:88,column:71},end:{line:88,column:76}},{start:{line:88,column:80},end:{line:88,column:91}}],line:88},17:{loc:{start:{line:101,column:4},end:{line:117,column:5}},type:"if",locations:[{start:{line:101,column:4},end:{line:117,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},18:{loc:{start:{line:114,column:11},end:{line:114,column:40}},type:"binary-expr",locations:[{start:{line:114,column:11},end:{line:114,column:28}},{start:{line:114,column:32},end:{line:114,column:40}}],line:114},19:{loc:{start:{line:115,column:11},end:{line:115,column:40}},type:"binary-expr",locations:[{start:{line:115,column:11},end:{line:115,column:28}},{start:{line:115,column:32},end:{line:115,column:40}}],line:115},20:{loc:{start:{line:120,column:4},end:{line:135,column:5}},type:"if",locations:[{start:{line:120,column:4},end:{line:135,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:120},21:{loc:{start:{line:132,column:11},end:{line:132,column:77}},type:"cond-expr",locations:[{start:{line:132,column:40},end:{line:132,column:70}},{start:{line:132,column:73},end:{line:132,column:77}}],line:132},22:{loc:{start:{line:132,column:11},end:{line:132,column:37}},type:"binary-expr",locations:[{start:{line:132,column:11},end:{line:132,column:23}},{start:{line:132,column:27},end:{line:132,column:37}}],line:132},23:{loc:{start:{line:133,column:11},end:{line:133,column:79}},type:"cond-expr",locations:[{start:{line:133,column:40},end:{line:133,column:73}},{start:{line:133,column:76},end:{line:133,column:79}}],line:133},24:{loc:{start:{line:133,column:11},end:{line:133,column:37}},type:"binary-expr",locations:[{start:{line:133,column:11},end:{line:133,column:22}},{start:{line:133,column:26},end:{line:133,column:37}}],line:133},25:{loc:{start:{line:142,column:14},end:{line:142,column:117}},type:"cond-expr",locations:[{start:{line:142,column:67},end:{line:142,column:79}},{start:{line:142,column:82},end:{line:142,column:117}}],line:142},26:{loc:{start:{line:142,column:14},end:{line:142,column:64}},type:"binary-expr",locations:[{start:{line:142,column:14},end:{line:142,column:34}},{start:{line:142,column:38},end:{line:142,column:64}}],line:142},27:{loc:{start:{line:143,column:18},end:{line:143,column:48}},type:"binary-expr",locations:[{start:{line:143,column:18},end:{line:143,column:29}},{start:{line:143,column:33},end:{line:143,column:43}},{start:{line:143,column:47},end:{line:143,column:48}}],line:143},28:{loc:{start:{line:144,column:19},end:{line:144,column:51}},type:"binary-expr",locations:[{start:{line:144,column:19},end:{line:144,column:31}},{start:{line:144,column:35},end:{line:144,column:46}},{start:{line:144,column:50},end:{line:144,column:51}}],line:144},29:{loc:{start:{line:151,column:4},end:{line:154,column:5}},type:"if",locations:[{start:{line:151,column:4},end:{line:154,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:151},30:{loc:{start:{line:151,column:8},end:{line:151,column:68}},type:"binary-expr",locations:[{start:{line:151,column:8},end:{line:151,column:24}},{start:{line:151,column:28},end:{line:151,column:36}},{start:{line:151,column:40},end:{line:151,column:68}}],line:151},31:{loc:{start:{line:151,column:42},end:{line:151,column:67}},type:"binary-expr",locations:[{start:{line:151,column:42},end:{line:151,column:51}},{start:{line:151,column:55},end:{line:151,column:67}}],line:151},32:{loc:{start:{line:153,column:29},end:{line:153,column:76}},type:"cond-expr",locations:[{start:{line:153,column:58},end:{line:153,column:65}},{start:{line:153,column:68},end:{line:153,column:76}}],line:153},33:{loc:{start:{line:156,column:47},end:{line:156,column:95}},type:"binary-expr",locations:[{start:{line:156,column:47},end:{line:156,column:57}},{start:{line:156,column:61},end:{line:156,column:95}}],line:156},34:{loc:{start:{line:183,column:4},end:{line:185,column:5}},type:"if",locations:[{start:{line:183,column:4},end:{line:185,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},35:{loc:{start:{line:187,column:4},end:{line:195,column:5}},type:"if",locations:[{start:{line:187,column:4},end:{line:195,column:5}},{start:{line:193,column:11},end:{line:195,column:5}}],line:187},36:{loc:{start:{line:189,column:8},end:{line:191,column:9}},type:"if",locations:[{start:{line:189,column:8},end:{line:191,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:189},37:{loc:{start:{line:189,column:12},end:{line:189,column:42}},type:"binary-expr",locations:[{start:{line:189,column:12},end:{line:189,column:28}},{start:{line:189,column:32},end:{line:189,column:42}}],line:189},38:{loc:{start:{line:202,column:4},end:{line:204,column:5}},type:"if",locations:[{start:{line:202,column:4},end:{line:204,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:202},39:{loc:{start:{line:228,column:12},end:{line:228,column:28}},type:"binary-expr",locations:[{start:{line:228,column:12},end:{line:228,column:20}},{start:{line:228,column:24},end:{line:228,column:28}}],line:228},40:{loc:{start:{line:250,column:26},end:{line:250,column:91}},type:"cond-expr",locations:[{start:{line:250,column:56},end:{line:250,column:72}},{start:{line:250,column:75},end:{line:250,column:91}}],line:250},41:{loc:{start:{line:250,column:75},end:{line:250,column:91}},type:"binary-expr",locations:[{start:{line:250,column:75},end:{line:250,column:86}},{start:{line:250,column:90},end:{line:250,column:91}}],line:250},42:{loc:{start:{line:251,column:31},end:{line:251,column:96}},type:"cond-expr",locations:[{start:{line:251,column:61},end:{line:251,column:77}},{start:{line:251,column:80},end:{line:251,column:96}}],line:251},43:{loc:{start:{line:251,column:80},end:{line:251,column:96}},type:"binary-expr",locations:[{start:{line:251,column:80},end:{line:251,column:91}},{start:{line:251,column:95},end:{line:251,column:96}}],line:251},44:{loc:{start:{line:254,column:4},end:{line:256,column:5}},type:"if",locations:[{start:{line:254,column:4},end:{line:256,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},45:{loc:{start:{line:257,column:4},end:{line:259,column:5}},type:"if",locations:[{start:{line:257,column:4},end:{line:259,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:257},46:{loc:{start:{line:261,column:4},end:{line:263,column:5}},type:"if",locations:[{start:{line:261,column:4},end:{line:263,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:261},47:{loc:{start:{line:283,column:21},end:{line:283,column:43}},type:"binary-expr",locations:[{start:{line:283,column:21},end:{line:283,column:30}},{start:{line:283,column:34},end:{line:283,column:43}}],line:283},48:{loc:{start:{line:284,column:20},end:{line:284,column:43}},type:"binary-expr",locations:[{start:{line:284,column:20},end:{line:284,column:29}},{start:{line:284,column:33},end:{line:284,column:43}}],line:284},49:{loc:{start:{line:293,column:14},end:{line:296,column:16}},type:"cond-expr",locations:[{start:{line:293,column:26},end:{line:296,column:5}},{start:{line:296,column:8},end:{line:296,column:16}}],line:293},50:{loc:{start:{line:323,column:6},end:{line:323,column:44}},type:"binary-expr",locations:[{start:{line:323,column:6},end:{line:323,column:28}},{start:{line:323,column:32},end:{line:323,column:44}}],line:323}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0],4:[0],5:[0],6:[0],7:[0],8:[0,0],9:[0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0,0],28:[0,0,0],29:[0,0],30:[0,0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0]},inputSourceMap:{version:3,names:["css","cx","isEqual","mapValues","React","forwardRef","useCallback","useEffect","useLayoutEffect","useMemo","useRef","useState","FocusLock","Rnd","CSSTransition","useMutationObserver","usePreviousDifferent","usePreviousImmediate","DRAG_HANDLE_CLASS_NAME","DRAG_PREVENT_CLASS_NAME","useViewportSize","useScrollFix","useFrameTheme","random","defaultFadeAnimation","SnapMask","Side","useSnapAreas","useSnapSide","zoomAnimation","enter","transition","exit","calcCoord","start","end","size","viewportSize","padding","Math","max","roundCoords","round","useContentVisibility","ref","onContentChange","firstChild","setFirstChild","current","children","focusWrapperClass","boxSizing","overflow","width","height","display","outline","windowClass","backfaceVisibility","perspective","willChange","WindowFrame","props","windowRef","focusGroup","zIndex","randomizePosition","onFocus","onEscape","onEdgeSnap","onSnapCallback","maximized","resizable","moveable","layoutData","minWidth","minHeight","viewport","position","setPosition","setSize","right","bottom","left","top","prevSize","focusWrapperTheme","windowTheme","windowMargin","dragging","touched","_setTouched","touch","forceCenterWindow","initialPosition","randomize","v","getBoundingClientRect","x","y","center","onContentChanged","contentAvailable","wasMaximized","calcEdgePosition","box","arguments","length","undefined","newValue","savePosition","side","setSide","none","getSnapSide","setFrameBox","snapPreviewBox","onSideSnap","timeout","onDrag","clearTimeout","setTimeout","onDragStop","e","_ref","name","code","onEnter","onExited","onResizeStop","dir","el","delta","focused","setFocused","focus","blur","maxSize","normalizeMinSize","currentMinWidth","currentMinHeight","createElement","nodeRef","in","classNames","disableDragging","enableResizing","className","style","bounds","maxHeight","maxWidth","onMouseDown","onDragStart","onResizeStart","dragHandleClassName","cancel","flex","group","disabled","returnFocus","autoFocus","onBlur","onKeyDown","event","key","tabIndex","previewBox","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,SAAS,QAAQ,WAAW;AACrC,OAAOC,KAAK,IAAIC,UAAU,EAAgCC,WAAW,EAAEC,SAAS,EAAEC,eAAe,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC3I,OAAOC,SAAS,MAAM,kBAAkB;AACxC,SAAmBC,GAAG,QAAQ,WAAW;AACzC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,mBAAmB,EAAEC,oBAAoB,EAAEC,oBAAoB,QAAQ,OAAO;AACvF,SAASC,sBAAsB,EAAEC,uBAAuB,QAAQ,cAAc;AAC9E,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,YAAY,QAAQ,0BAA0B;AACvD,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,MAAM,QAAQ,aAAa;AACpC,SAASC,oBAAoB,QAAQ,uBAAuB;AAC5D,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAAiBC,IAAI,QAAc,SAAS;AAC5C,SAAcC,YAAY,QAAQ,gBAAgB;AAClD,SAASC,WAAW,QAAQ,eAAe;AA+B3C,MAAMC,aAAa,GAAG;EACpBC,KAAK,EAAE9B,GAAG,CAAC;IAAE+B,UAAU,EAAE;EAAY,CAAC,CAAC;EACvCC,IAAI,EAAEhC,GAAG,CAAC;IAAE+B,UAAU,EAAE;EAAY,CAAC;AACvC,CAAC;AAED,SAASE,SAASA,CAACC,KAAa,EAAEC,GAAW,EAAEC,IAAY,EAAEC,YAAoB,EAAEC,OAAe,EAAE;EAClG,OAAOC,IAAI,CAACC,GAAG,CAACF,OAAO,EAAEH,GAAG,IAAIE,YAAY,GAAGC,OAAO,GAAG,CAAC,GAAGD,YAAY,GAAGD,IAAI,GAAGE,OAAO,GAAGJ,KAAK,CAAC;AACrG;AAEA,MAAMO,WAAW,GAAGtC,SAAS,CAAiBoC,IAAI,CAACG,KAAK,CAAC;AAEzD,SAASC,oBAAoBA,CAACC,GAAwC,EAAEC,eAA6C,EAAE;EACrH,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGpC,QAAQ,CAAU,CAAC;EACvD,IAAImC,UAAU,KAAKF,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,EAAE;IAC3CF,aAAa,CAACH,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,CAAC;EACzC;;EAEA;EACAlC,mBAAmB,CAAC6B,GAAG,EAAE,MAAMG,aAAa,CAACH,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;EAEvEzC,eAAe,CAAC,MAAMsC,UAAU,IAAID,eAAe,GAAGC,UAAU,CAAC,EAAE,CAACD,eAAe,EAAEC,UAAU,CAAC,CAAC;EAEjG,OAAO,CAAC,CAACA,UAAU;AACrB;AAEA,MAAMI,iBAAiB,GAAGlD,GAAG,CAAC;EAC5BmD,SAAS,EAAE,YAAY;EACvBC,QAAQ,EAAE,MAAM;EAChBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,MAAMC,WAAW,GAAGzD,GAAG,CAAC;EACtBmD,SAAS,EAAE,YAAY;EACvBC,QAAQ,EAAE,SAAS;EACnBM,kBAAkB,EAAE,QAAQ;EAC5BC,WAAW,EAAE,MAAM;EACnBC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,WAAW,gBAAGxD,UAAU,CAAC,CAACyD,KAA0C,EAAEC,SAAoC,KAAkB;EACvI,MAAM;IACJC,UAAU;IACVC,MAAM;IACNC,iBAAiB;IACjBC,OAAO;IACPC,QAAQ;IACRC,UAAU,EAAEC,cAAc;IAC1BC,SAAS,GAAG,KAAK;IACjBC,SAAS,GAAG,KAAK;IACjBC,QAAQ,GAAG,KAAK;IAChBC,UAAU,GAAG,CAAC;EAChB,CAAC,GAAGZ,KAAK;EACT,MAAM;IAAEa,QAAQ,GAAGb,KAAK,CAACa,QAAQ,IAAI,GAAG;IAAEC,SAAS,GAAGd,KAAK,CAACc,SAAS,IAAI;EAAI,CAAC,GAAGF,UAAU;EAC3F,MAAM9B,GAAG,GAAGlC,MAAM,CAAiB,CAAC;EACpC,MAAMmE,QAAQ,GAAGzD,eAAe,CAAC,CAAC;EAClC,MAAM,CAAC0D,QAAQ,EAAEC,WAAW,CAAC,GAAGpE,QAAQ,CAAS,CAAC;EAClD,MAAM,CAACyB,IAAI,EAAE4C,OAAO,CAAC,GAAGrE,QAAQ,CAAO,MAAM;IAC3C,MAAM;MAAEsE,KAAK;MAAEC,MAAM;MAAEC,IAAI;MAAEC,GAAG;MAAE/B,KAAK;MAAEC;IAAO,CAAC,GAAGoB,UAAU;IAC9D,OAAO;MACLpB,MAAM,EAAE8B,GAAG,IAAI,CAAC,IAAIF,MAAM,IAAI,CAAC,GAAGL,QAAQ,CAACvB,MAAM,GAAG8B,GAAG,GAAGF,MAAM,GAAG5B,MAAM,IAAIQ,KAAK,CAACR,MAAM;MACzFD,KAAK,EAAE8B,IAAI,IAAI,CAAC,IAAIF,KAAK,IAAI,CAAC,GAAGJ,QAAQ,CAACxB,KAAK,GAAG8B,IAAI,GAAGF,KAAK,GAAG5B,KAAK,IAAIS,KAAK,CAACT;IAClF,CAAC;EACH,CAAC,CAAC;EACF,MAAMgC,QAAQ,GAAGpE,oBAAoB,CAACmB,IAAI,CAAC;EAE3C,MAAM;IAAEkD,iBAAiB;IAAEC,WAAW;IAAEC;EAAa,CAAC,GAAGlE,aAAa,CAAC,CAAC;EACxE,MAAMmE,QAAQ,GAAG/E,MAAM,CAAC,KAAK,CAAC;EAE9B,MAAM,CAACgF,OAAO,EAAEC,WAAW,CAAC,GAAGhF,QAAQ,CAAC,KAAK,CAAC;EAC9C,MAAMiF,KAAK,GAAGtF,WAAW,CAAC,MAAMqF,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;EAEtD,MAAME,iBAAiB,GAAGvF,WAAW,CAClCwF,eAAuB,IAAK;IAC3B,IAAIlD,GAAG,CAACI,OAAO,EAAE;MACf,MAAM+C,SAAS,GAAG5F,SAAS,CAAkB6F,CAAS,IAAKzD,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEwD,CAAC,GAAGzE,MAAM,CAAC2C,iBAAiB,CAAC,CAAC,CAAC;MACtG,MAAM;QAAEZ,MAAM;QAAED;MAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;MAC7D,MAAMC,CAAC,GAAG,CAACrB,QAAQ,CAACxB,KAAK,GAAGA,KAAK,IAAI,CAAC;MACtC,MAAM8C,CAAC,GAAG,CAACtB,QAAQ,CAACvB,MAAM,GAAG,IAAI,GAAGA,MAAM,IAAI,CAAC;MAC/C,MAAM8C,MAAM,GAAGL,SAAS,CAAC;QAAEG,CAAC;QAAEC;MAAE,CAAC,CAAC;MAElCpB,WAAW,CACTtC,WAAW,CAAC;QACVyD,CAAC,EAAEJ,eAAe,CAACI,CAAC,IAAIE,MAAM,CAACF,CAAC;QAChCC,CAAC,EAAEL,eAAe,CAACK,CAAC,IAAIC,MAAM,CAACD;MACjC,CAAC,CACH,CAAC;IACH;EACF,CAAC,EACD,CAACjC,iBAAiB,EAAEW,QAAQ,CAACvB,MAAM,EAAEuB,QAAQ,CAACxB,KAAK,CACrD,CAAC;EAED,MAAMgD,gBAAgB,GAAG/F,WAAW,CAAC,MAAM;IACzC,IAAI,CAACoF,OAAO,EAAE;MACZ,MAAM;QAAEpC,MAAM;QAAED;MAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;MAC7D,MAAM;QAAEhB,KAAK;QAAEC,MAAM;QAAEC,IAAI;QAAEC;MAAI,CAAC,GAAGV,UAAU;MAC/CmB,iBAAiB,CAAC;QAChBK,CAAC,EAAE,EAAEf,IAAI,IAAI,CAAC,CAAC,IAAIF,KAAK,IAAI,CAAC,GAAGJ,QAAQ,CAACxB,KAAK,GAAG4B,KAAK,GAAG5B,KAAK,GAAG8B,IAAI;QACrEgB,CAAC,EAAE,EAAEf,GAAG,IAAI,CAAC,CAAC,IAAIF,MAAM,IAAI,CAAC,GAAGL,QAAQ,CAACvB,MAAM,GAAG4B,MAAM,GAAG5B,MAAM,GAAG8B;MACtE,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACS,iBAAiB,EAAEnB,UAAU,EAAEgB,OAAO,EAAEb,QAAQ,CAACvB,MAAM,EAAEuB,QAAQ,CAACxB,KAAK,CAAC,CAAC;EAE7E,MAAMiD,gBAAgB,GAAG3D,oBAAoB,CAACC,GAAG,EAAEyD,gBAAgB,CAAC;EAEpE,MAAME,YAAY,GAAGvF,oBAAoB,CAACuD,SAAS,CAAC;;EAEpD;EACA,MAAMiC,gBAAgB,GAAGlG,WAAW,CAClC,UAACuE,QAAQ,EAAqD;IAAA,IAAnD4B,GAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG9D,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;IACvD,MAAM5C,KAAK,GAAGjB,IAAI,EAAEiB,KAAK,IAAIoD,GAAG,EAAEpD,KAAK,IAAI,CAAC;IAC5C,MAAMC,MAAM,GAAGlB,IAAI,EAAEkB,MAAM,IAAImD,GAAG,EAAEnD,MAAM,IAAI,CAAC;IAC/C,OAAOb,WAAW,CAAC;MACjByD,CAAC,EAAEjE,SAAS,CAACwE,GAAG,CAACP,CAAC,EAAEO,GAAG,CAACP,CAAC,GAAGO,GAAG,CAACpD,KAAK,EAAEA,KAAK,EAAEwB,QAAQ,CAACxB,KAAK,EAAEmC,YAAY,CAAC;MAC3EW,CAAC,EAAElE,SAAS,CAACwE,GAAG,CAACN,CAAC,EAAEM,GAAG,CAACN,CAAC,GAAGM,GAAG,CAACnD,MAAM,EAAEA,MAAM,EAAEuB,QAAQ,CAACvB,MAAM,EAAEkC,YAAY;IAC/E,CAAC,CAAC;EACJ,CAAC,EACD,CAACpD,IAAI,EAAEoD,YAAY,CACrB,CAAC;EAEDhF,eAAe,CAAC,MAAM;IACpB,IAAI8F,gBAAgB,IAAIxB,QAAQ,IAAI,EAAEP,SAAS,IAAIgC,YAAY,CAAC,EAAE;MAChE,MAAMM,QAAQ,GAAGL,gBAAgB,CAAC3B,QAAQ,CAAC;MAC3CE,WAAW,CAAE/B,OAAO,IAAM9C,OAAO,CAAC2G,QAAQ,EAAE7D,OAAO,CAAC,GAAGA,OAAO,GAAG6D,QAAS,CAAC;IAC7E;EACF,CAAC,EAAE,CAACP,gBAAgB,EAAEC,YAAY,EAAEC,gBAAgB,EAAEjC,SAAS,EAAEO,QAAQ,EAAED,QAAQ,CAAC,CAAC;EAErF,MAAMiC,YAAY,GAAGxG,WAAW,CAAEwE,QAAkB,IAAK,CAACP,SAAS,IAAIQ,WAAW,CAACtC,WAAW,CAACqC,QAAQ,CAAC,CAAC,EAAE,CAACP,SAAS,CAAC,CAAC;EAEvH,MAAM,CAACwC,IAAI,EAAEC,OAAO,CAAC,GAAGrG,QAAQ,CAAOe,IAAI,CAACuF,IAAI,CAAC;EACjD,MAAMC,WAAW,GAAGtF,WAAW,CAACgB,GAAG,CAAC;EAEpC,MAAMuE,WAAW,GAAG7G,WAAW,CAAEmG,GAAQ,IAAK;IAC5C,MAAM;MAAEN,CAAC;MAAE7C,MAAM;MAAED,KAAK;MAAE6C;IAAE,CAAC,GAAGO,GAAG;IACnCzB,OAAO,CAAC;MAAE3B,KAAK;MAAEC;IAAO,CAAC,CAAC;IAC1ByB,WAAW,CAAC;MAAEmB,CAAC;MAAEC;IAAE,CAAC,CAAC;EACvB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM,CAACiB,cAAc,EAAEC,UAAU,CAAC,GAAG1F,YAAY,CAAC6D,YAAY,EAAE2B,WAAW,CAAC;EAE5E5G,SAAS,CAAC,MAAM;IACd8G,UAAU,GAAGN,IAAI,EAAE,CAACtB,QAAQ,CAACzC,OAAO,CAAC;EACvC,CAAC,EAAE,CAACqE,UAAU,EAAEN,IAAI,CAAC,CAAC;EAEtB,MAAMO,OAAO,GAAG5G,MAAM,CAAiB,CAAC;EACxC,MAAM6G,MAAM,GAAGjH,WAAW,CAAC,MAAM;IAC/BmF,QAAQ,CAACzC,OAAO,GAAG,IAAI;IAEvBwE,YAAY,CAACF,OAAO,CAACtE,OAAO,CAAC;IAE7B,IAAI,CAACwB,SAAS,EAAE;MACd;IACF;IAEA,MAAMuC,IAAI,GAAGG,WAAW,CAAC,CAAC,CAAC;IAE3B,IAAIH,IAAI,EAAE;MACRO,OAAO,CAACtE,OAAO,GAAGyE,UAAU,CAAC,MAAM;QACjC,IAAIhC,QAAQ,CAACzC,OAAO,IAAI,CAACuB,SAAS,EAAE;UAClCyC,OAAO,CAACD,IAAI,CAAC;QACf;MACF,CAAC,EAAE,GAAG,CAAC;IACT,CAAC,MAAM;MACLC,OAAO,CAACD,IAAI,CAAC;IACf;EACF,CAAC,EAAE,CAACG,WAAW,EAAE3C,SAAS,EAAEC,SAAS,CAAC,CAAC;EAEvC,MAAMkD,UAAU,GAAGpH,WAAW,CAC5B,CAACqH,CAAC,EAAAC,IAAA,KAAe;IAAA,IAAb;MAAE1B,CAAC;MAAEC;IAAE,CAAC,GAAAyB,IAAA;IACV,IAAI,CAACnC,QAAQ,CAACzC,OAAO,EAAE;MACrB;IACF;IAEAyC,QAAQ,CAACzC,OAAO,GAAG,KAAK;IACxB8D,YAAY,CAAC;MAAEZ,CAAC;MAAEC;IAAE,CAAC,CAAC;IACtBkB,UAAU,GAAGN,IAAI,EAAE,IAAI,CAAC;IACxBzC,cAAc,GAAG;MAAEuD,IAAI,EAAEnG,IAAI,CAACqF,IAAI,CAAC;MAAEe,IAAI,EAAEf;IAAK,CAAC,CAAC;IAClDC,OAAO,CAACtF,IAAI,CAACuF,IAAI,CAAC;EACpB,CAAC,EACD,CAACI,UAAU,EAAE/C,cAAc,EAAEwC,YAAY,EAAEC,IAAI,CACjD,CAAC;EAED,MAAMgB,OAAO,GAAGzH,WAAW,CAAC,MAAM;IAChC,MAAM;MAAEgD,MAAM;MAAED;IAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;IAC7DjB,OAAO,CAAC;MAAE3B,KAAK;MAAEC;IAAO,CAAC,CAAC;EAC5B,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM0E,QAAQ,GAAG1H,WAAW,CAAC,MAAM;IACjC0E,OAAO,CAACK,QAAQ,IAAI,IAAI,CAAC;EAC3B,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEd,MAAM4C,YAAY,GAAG3H,WAAW,CAC9B,CAACqH,CAAC,EAAEO,GAAG,EAAEC,EAAE,EAAEC,KAAK,EAAEtD,QAAQ,KAAK;IAC/B,MAAM;MAAEzB,KAAK;MAAEC;IAAO,CAAC,GAAG6E,EAAE,CAAClC,qBAAqB,CAAC,CAAC;IACpDkB,WAAW,CAAC;MAAE,GAAGrC,QAAQ;MAAEzB,KAAK;MAAEC;IAAO,CAAC,CAAC;EAC7C,CAAC,EACD,CAAC6D,WAAW,CACd,CAAC;EAED,MAAM,CAACkB,OAAO,EAAEC,UAAU,CAAC,GAAG3H,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM4H,KAAK,GAAGjI,WAAW,CAAC,MAAM;IAC9B6D,OAAO,CAAC,CAAC;IACTmE,UAAU,CAAC,IAAI,CAAC;EAClB,CAAC,EAAE,CAACnE,OAAO,CAAC,CAAC;EACb,MAAMqE,IAAI,GAAGlI,WAAW,CAAC,MAAM;IAC7BgI,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMG,OAAO,GAAGhI,OAAO,CACrB,OAAO;IACL4C,KAAK,EAAG,eAAcyB,QAAQ,EAAEoB,CAAC,IAAIV,YAAY,GAAGA,YAAY,GAAG,CAAC,GAAGV,QAAQ,EAAEoB,CAAC,IAAI,CAAE,KAAI;IAC5F5C,MAAM,EAAEuB,QAAQ,CAACvB,MAAM,IAAIwB,QAAQ,EAAEqB,CAAC,IAAIX,YAAY,GAAGA,YAAY,GAAG,CAAC,GAAGV,QAAQ,EAAEqB,CAAC,IAAI,CAAC;EAC9F,CAAC,CAAC,EACF,CAACX,YAAY,EAAEV,QAAQ,EAAED,QAAQ,CAACvB,MAAM,CAC1C,CAAC;EAED,MAAMoF,gBAAgB,GAAGpI,WAAW,CAClC,CAAC8B,IAAY,EAAEC,YAAoB,KAAK;IACtC,IAAI,CAACiE,gBAAgB,EAAE;MACrB,OAAO,CAAC;IACV;IACA,IAAI/B,SAAS,EAAE;MACb,OAAOlC,YAAY;IACrB;IACA,MAAMoG,OAAO,GAAGpG,YAAY,GAAGmD,YAAY,GAAG,CAAC;IAC/C,IAAIpD,IAAI,IAAIqG,OAAO,EAAE;MACnB,OAAOA,OAAO;IAChB;IACA,OAAOrG,IAAI;EACb,CAAC,EACD,CAACkE,gBAAgB,EAAE/B,SAAS,EAAEiB,YAAY,CAC5C,CAAC;EAED,MAAMmD,eAAe,GAAGlI,OAAO,CAAC,MAAMiI,gBAAgB,CAAC/D,QAAQ,EAAEE,QAAQ,CAACxB,KAAK,CAAC,EAAE,CAACqF,gBAAgB,EAAE7D,QAAQ,CAACxB,KAAK,EAAEsB,QAAQ,CAAC,CAAC;EAE/H,MAAMiE,gBAAgB,GAAGnI,OAAO,CAAC,MAAMiI,gBAAgB,CAAC9D,SAAS,EAAEC,QAAQ,CAACvB,MAAM,CAAC,EAAE,CAACoF,gBAAgB,EAAE7D,QAAQ,CAACvB,MAAM,EAAEsB,SAAS,CAAC,CAAC;EAEpIvD,YAAY,CAACuB,GAAG,CAACI,OAAO,CAAC;EAEzB,oBACE5C,KAAA,CAAAyI,aAAA;IAAKjG,GAAG,EAAEmB;EAAU,gBAElB3D,KAAA,CAAAyI,aAAA,CAAC/H,aAAa;IAACgI,OAAO,EAAElG,GAAI;IAACmG,EAAE,EAAEzC,gBAAiB;IAACgB,OAAO,EAAE,GAAI;IAAC0B,UAAU,EAAExH;EAAqB,gBAChGpB,KAAA,CAAAyI,aAAA,CAAC/H,aAAa;IAACiI,EAAE,EAAExE,SAAU;IAAC+C,OAAO,EAAE,GAAI;IAAC0B,UAAU,EAAEnH,aAAc;IAACkG,OAAO,EAAEA,OAAQ;IAACC,QAAQ,EAAEA;EAAS,gBAC1G5H,KAAA,CAAAyI,aAAA,CAAChI,GAAG;IACFoI,eAAe,EAAE1E,SAAS,IAAI,CAACE,QAAS;IACxCyE,cAAc,EAAE1E,SAAS,IAAI,CAACD,SAAU;IACxC4E,SAAS,EAAElJ,EAAE,CAACwD,WAAW,EAAE8B,WAAW,CAAE;IACxC6D,KAAK,EAAE;MAAE7F,OAAO,EAAE,MAAM;MAAEU;IAAO,CAAE,CAAC;IAAA;IACpCoF,MAAM,EAAC,kBAAkB;IACzBjH,IAAI,EAAEA,IAAK;IACX0C,QAAQ,EAAEP,SAAS,GAAG;MAAE2B,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,GAAGrB,QAAS;IAChDH,QAAQ,EAAEgE,eAAgB;IAC1B/D,SAAS,EAAEgE,gBAAiB;IAC5BU,SAAS,EAAEb,OAAO,CAACnF,MAAO;IAC1BiG,QAAQ,EAAEd,OAAO,CAACpF,KAAM;IACxB4E,YAAY,EAAEA,YAAa;IAC3BV,MAAM,EAAEA,MAAO;IACfiC,WAAW,EAAE5D,KAAM;IACnB6D,WAAW,EAAE7D,KAAM;IACnB8D,aAAa,EAAE9D,KAAM;IACrB8B,UAAU,EAAEA,UAAW;IACvBiC,mBAAmB,EAAEzI,sBAAuB;IAC5C0I,MAAM,EAAG,6CAA4CzI,uBAAwB,EAAE;IAC/E,eAAY;EAAc,gBAG1Bf,KAAA,CAAAyI,aAAA,CAACjI,SAAS;IAACuI,SAAS,EAAEnJ,GAAG,CAAC;MAAE6J,IAAI,EAAE;IAAE,CAAC,CAAE;IAACC,KAAK,EAAE9F,UAAW;IAAC+F,QAAQ,EAAE,CAAC/F,UAAW;IAACgG,WAAW;IAACC,SAAS;EAAA,gBACrG7J,KAAA,CAAAyI,aAAA;IACEjG,GAAG,EAAEA,GAAI;IACTuB,OAAO,EAAEoE,KAAM;IACf2B,MAAM,EAAE1B,IAAK;IACb2B,SAAS,EAAGC,KAAK,IAAK;MACpBA,KAAK,CAACC,GAAG,KAAK,QAAQ,IAAIjG,QAAQ,GAAG,CAAC;MACtCwB,KAAK,CAAC,CAAC;IACT,CAAE;IACF0E,QAAQ,EAAE,CAAC,CAAE;IACbnB,SAAS,EAAElJ,EAAE,CAACiD,iBAAiB,EAAEoC,iBAAiB,CAAE;IACpD,eAAY;EAAQ,GAEnBxB,KAAK,CAACb,QACJ,CACI,CACR,CACQ,CACF,CAAC,eAChB7C,KAAA,CAAAyI,aAAA,CAACpH,QAAQ;IAAC8I,UAAU,EAAEnD;EAAe,CAAE,CACpC,CAAC;AAEV,CAAC,CAAC;AAEFvD,WAAW,CAAC2G,WAAW,GAAG,aAAa",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e728f1895aab2d0fde6ea4e07c97d497fb37c75c"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e728f1895aab2d0fde6ea4e07c97d497fb37c75c"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1wie91cq08=function(){return actualCoverage},actualCoverage}cov_1wie91cq08();const zoomAnimation=(cov_1wie91cq08().s[0]++,{enter:(0,emotion_css_esm.AH)({transition:"all 150ms"}),exit:(0,emotion_css_esm.AH)({transition:"all 150ms"})});function calcCoord(start,end,size,viewportSize,padding){return cov_1wie91cq08().f[0]++,cov_1wie91cq08().s[1]++,Math.max(padding,end>=viewportSize-padding/2?(cov_1wie91cq08().b[0][0]++,viewportSize-size-padding):(cov_1wie91cq08().b[0][1]++,start))}const roundCoords=(cov_1wie91cq08().s[2]++,(0,fp.mapValues)(Math.round));const focusWrapperClass=(cov_1wie91cq08().s[11]++,(0,emotion_css_esm.AH)({boxSizing:"border-box",overflow:"auto",width:"100%",height:"100%",display:"flex",outline:"none"})),windowClass=(cov_1wie91cq08().s[12]++,(0,emotion_css_esm.AH)({boxSizing:"border-box",overflow:"visible",backfaceVisibility:"hidden",perspective:"1000",willChange:"transform, top, left, minWidth, minHeight, width, height"})),WindowFrame=(cov_1wie91cq08().s[13]++,(0,react.forwardRef)(((props,windowRef)=>{cov_1wie91cq08().f[4]++;const{focusGroup,zIndex,randomizePosition,onFocus,onEscape,onEdgeSnap:onSnapCallback,maximized=(cov_1wie91cq08().b[3][0]++,!1),resizable=(cov_1wie91cq08().b[4][0]++,!1),moveable=(cov_1wie91cq08().b[5][0]++,!1),layoutData=(cov_1wie91cq08().b[6][0]++,{})}=(cov_1wie91cq08().s[14]++,props),{minWidth=(cov_1wie91cq08().b[7][0]++,cov_1wie91cq08().b[8][0]++,props.minWidth??(cov_1wie91cq08().b[8][1]++,400)),minHeight=(cov_1wie91cq08().b[9][0]++,cov_1wie91cq08().b[10][0]++,props.minHeight??(cov_1wie91cq08().b[10][1]++,140))}=(cov_1wie91cq08().s[15]++,layoutData),ref=(cov_1wie91cq08().s[16]++,(0,react.useRef)()),viewport=(cov_1wie91cq08().s[17]++,(0,hooks.lR)()),[position,setPosition]=(cov_1wie91cq08().s[18]++,(0,react.useState)()),[size,setSize]=(cov_1wie91cq08().s[19]++,(0,react.useState)((()=>{cov_1wie91cq08().f[5]++;const{right,bottom,left,top,width,height}=(cov_1wie91cq08().s[20]++,layoutData);return cov_1wie91cq08().s[21]++,{height:(cov_1wie91cq08().b[12][0]++,top>=0&&(cov_1wie91cq08().b[12][1]++,bottom>=0)?(cov_1wie91cq08().b[11][0]++,viewport.height-top-bottom):(cov_1wie91cq08().b[11][1]++,cov_1wie91cq08().b[13][0]++,height??(cov_1wie91cq08().b[13][1]++,props.height))),width:(cov_1wie91cq08().b[15][0]++,left>=0&&(cov_1wie91cq08().b[15][1]++,right>=0)?(cov_1wie91cq08().b[14][0]++,viewport.width-left-right):(cov_1wie91cq08().b[14][1]++,cov_1wie91cq08().b[16][0]++,width??(cov_1wie91cq08().b[16][1]++,props.width)))}}))),prevSize=(cov_1wie91cq08().s[22]++,(0,usePreviousImmediate.y)(size)),{focusWrapperTheme,windowTheme,windowMargin}=(cov_1wie91cq08().s[23]++,function useFrameTheme(){cov_rrhoce58i().f[0]++;const{colors,spacing=(cov_rrhoce58i().b[0][0]++,{}),backgroundOpacity,backdropFilter}=(cov_rrhoce58i().s[0]++,(0,emotion_element_43c6fea0_browser_esm.u)()),{baseUnit=(cov_rrhoce58i().b[1][0]++,0)}=(cov_rrhoce58i().s[1]++,spacing),focusWrapperTheme=(cov_rrhoce58i().s[2]++,(0,emotion_css_esm.AH)({border:`${Math.round(baseUnit/2)}px solid ${colors?.borderColor}`})),windowMargin=(cov_rrhoce58i().s[3]++,(0,react.useMemo)((()=>(cov_rrhoce58i().f[1]++,cov_rrhoce58i().s[4]++,Math.max(8,2*baseUnit))),[baseUnit])),windowTheme=(cov_rrhoce58i().s[5]++,(0,react.useMemo)((()=>(cov_rrhoce58i().f[2]++,cov_rrhoce58i().s[6]++,(0,emotion_css_esm.cx)((0,emotion_css_esm.AH)({backdropFilter,background:rgba(colors.primaryBackground,backgroundOpacity),boxShadow:`0 4px 16px 0 ${rgba(colors.borderColor,.5)}`,margin:windowMargin})))),[backdropFilter,backgroundOpacity,colors.borderColor,colors.primaryBackground,windowMargin]));return cov_rrhoce58i().s[7]++,{focusWrapperTheme,windowTheme,windowMargin}}()),dragging=(cov_1wie91cq08().s[24]++,(0,react.useRef)(!1)),[touched,_setTouched]=(cov_1wie91cq08().s[25]++,(0,react.useState)(!1)),touch=(cov_1wie91cq08().s[26]++,(0,react.useCallback)((()=>(cov_1wie91cq08().f[6]++,cov_1wie91cq08().s[27]++,_setTouched(!0))),[])),forceCenterWindow=(cov_1wie91cq08().s[28]++,(0,react.useCallback)((initialPosition=>{if(cov_1wie91cq08().f[7]++,cov_1wie91cq08().s[29]++,ref.current){cov_1wie91cq08().b[17][0]++;const randomize=(cov_1wie91cq08().s[30]++,(0,fp.mapValues)((v=>(cov_1wie91cq08().f[8]++,cov_1wie91cq08().s[31]++,Math.max(0,v+function random(n){return cov_1ij5oj001f().f[3]++,cov_1ij5oj001f().s[4]++,(Math.random()-.5)*n}(randomizePosition)))))),{height,width}=(cov_1wie91cq08().s[32]++,ref.current.getBoundingClientRect()),x=(cov_1wie91cq08().s[33]++,(viewport.width-width)/2),y=(cov_1wie91cq08().s[34]++,(.75*viewport.height-height)/2),center=(cov_1wie91cq08().s[35]++,randomize({x,y}));cov_1wie91cq08().s[36]++,setPosition(roundCoords({x:(cov_1wie91cq08().b[18][0]++,initialPosition.x??(cov_1wie91cq08().b[18][1]++,center.x)),y:(cov_1wie91cq08().b[19][0]++,initialPosition.y??(cov_1wie91cq08().b[19][1]++,center.y))}))}else cov_1wie91cq08().b[17][1]++}),[randomizePosition,viewport.height,viewport.width])),onContentChanged=(cov_1wie91cq08().s[37]++,(0,react.useCallback)((()=>{if(cov_1wie91cq08().f[9]++,cov_1wie91cq08().s[38]++,touched)cov_1wie91cq08().b[20][1]++;else{cov_1wie91cq08().b[20][0]++;const{height,width}=(cov_1wie91cq08().s[39]++,ref.current.getBoundingClientRect()),{right,bottom,left,top}=(cov_1wie91cq08().s[40]++,layoutData);cov_1wie91cq08().s[41]++,forceCenterWindow({x:(cov_1wie91cq08().b[22][0]++,!(left>=0)&&(cov_1wie91cq08().b[22][1]++,right>=0)?(cov_1wie91cq08().b[21][0]++,viewport.width-right-width):(cov_1wie91cq08().b[21][1]++,left)),y:(cov_1wie91cq08().b[24][0]++,!(top>=0)&&(cov_1wie91cq08().b[24][1]++,bottom>=0)?(cov_1wie91cq08().b[23][0]++,viewport.height-bottom-height):(cov_1wie91cq08().b[23][1]++,top))})}}),[forceCenterWindow,layoutData,touched,viewport.height,viewport.width])),contentAvailable=(cov_1wie91cq08().s[42]++,function useContentVisibility(ref,onContentChange){cov_1wie91cq08().f[1]++;const[firstChild,setFirstChild]=(cov_1wie91cq08().s[3]++,(0,react.useState)());return cov_1wie91cq08().s[4]++,firstChild!==ref.current?.children[0]?(cov_1wie91cq08().b[1][0]++,cov_1wie91cq08().s[5]++,setFirstChild(ref.current?.children[0])):cov_1wie91cq08().b[1][1]++,cov_1wie91cq08().s[6]++,(0,useMutationObserver.P)(ref,(()=>(cov_1wie91cq08().f[2]++,cov_1wie91cq08().s[7]++,setFirstChild(ref.current?.children[0])))),cov_1wie91cq08().s[8]++,(0,react.useLayoutEffect)((()=>(cov_1wie91cq08().f[3]++,cov_1wie91cq08().s[9]++,cov_1wie91cq08().b[2][0]++,firstChild&&(cov_1wie91cq08().b[2][1]++,onContentChange?.(firstChild)))),[onContentChange,firstChild]),cov_1wie91cq08().s[10]++,!!firstChild}(ref,onContentChanged)),wasMaximized=(cov_1wie91cq08().s[43]++,(0,usePreviousDifferent.O)(maximized)),calcEdgePosition=(cov_1wie91cq08().s[44]++,(0,react.useCallback)((function(viewport){cov_1wie91cq08().f[10]++;let box=(cov_1wie91cq08().s[45]++,cov_1wie91cq08().b[26][0]++,arguments.length>1&&(cov_1wie91cq08().b[26][1]++,void 0!==arguments[1])?(cov_1wie91cq08().b[25][0]++,arguments[1]):(cov_1wie91cq08().b[25][1]++,ref.current.getBoundingClientRect()));const width=(cov_1wie91cq08().s[46]++,cov_1wie91cq08().b[27][0]++,size?.width||(cov_1wie91cq08().b[27][1]++,box?.width)||(cov_1wie91cq08().b[27][2]++,0)),height=(cov_1wie91cq08().s[47]++,cov_1wie91cq08().b[28][0]++,size?.height||(cov_1wie91cq08().b[28][1]++,box?.height)||(cov_1wie91cq08().b[28][2]++,0));return cov_1wie91cq08().s[48]++,roundCoords({x:calcCoord(box.x,box.x+box.width,width,viewport.width,windowMargin),y:calcCoord(box.y,box.y+box.height,height,viewport.height,windowMargin)})}),[size,windowMargin]));cov_1wie91cq08().s[49]++,(0,react.useLayoutEffect)((()=>{if(cov_1wie91cq08().f[11]++,cov_1wie91cq08().s[50]++,cov_1wie91cq08().b[30][0]++,contentAvailable&&(cov_1wie91cq08().b[30][1]++,position)&&(cov_1wie91cq08().b[30][2]++,cov_1wie91cq08().b[31][0]++,!maximized&&(cov_1wie91cq08().b[31][1]++,!wasMaximized))){cov_1wie91cq08().b[29][0]++;const newValue=(cov_1wie91cq08().s[51]++,calcEdgePosition(viewport));cov_1wie91cq08().s[52]++,setPosition((current=>(cov_1wie91cq08().f[12]++,cov_1wie91cq08().s[53]++,(0,lodash.isEqual)(newValue,current)?(cov_1wie91cq08().b[32][0]++,current):(cov_1wie91cq08().b[32][1]++,newValue))))}else cov_1wie91cq08().b[29][1]++}),[contentAvailable,wasMaximized,calcEdgePosition,maximized,position,viewport]);const savePosition=(cov_1wie91cq08().s[54]++,(0,react.useCallback)((position=>(cov_1wie91cq08().f[13]++,cov_1wie91cq08().s[55]++,cov_1wie91cq08().b[33][0]++,!maximized&&(cov_1wie91cq08().b[33][1]++,setPosition(roundCoords(position))))),[maximized])),[side,setSide]=(cov_1wie91cq08().s[56]++,(0,react.useState)(Side.none)),getSnapSide=(cov_1wie91cq08().s[57]++,useSnapSide(ref)),setFrameBox=(cov_1wie91cq08().s[58]++,(0,react.useCallback)((box=>{cov_1wie91cq08().f[14]++;const{y,height,width,x}=(cov_1wie91cq08().s[59]++,box);cov_1wie91cq08().s[60]++,setSize({width,height}),cov_1wie91cq08().s[61]++,setPosition({x,y})}),[])),[snapPreviewBox,onSideSnap]=(cov_1wie91cq08().s[62]++,function useSnapAreas(){cov_re07yzcqk().f[1]++;let margin=(cov_re07yzcqk().s[1]++,cov_re07yzcqk().b[1][0]++,arguments.length>0&&(cov_re07yzcqk().b[1][1]++,void 0!==arguments[0])?(cov_re07yzcqk().b[0][0]++,arguments[0]):(cov_re07yzcqk().b[0][1]++,0)),onSnapCallback=(cov_re07yzcqk().s[2]++,arguments.length>1?(cov_re07yzcqk().b[2][0]++,arguments[1]):void cov_re07yzcqk().b[2][1]++);const{width,height}=(cov_re07yzcqk().s[3]++,(0,hooks.lR)()),[previewBox,setPreviewBox]=(cov_re07yzcqk().s[4]++,(0,react.useState)(null)),getBBox=(cov_re07yzcqk().s[5]++,(0,react.useCallback)((side=>{function points(fullSize,size){cov_re07yzcqk().f[3]++;const p0=(cov_re07yzcqk().s[6]++,margin),p1=(cov_re07yzcqk().s[7]++,size),p2=(cov_re07yzcqk().s[8]++,fullSize-size),p3=(cov_re07yzcqk().s[9]++,fullSize-p0),w0=(cov_re07yzcqk().s[10]++,p3-p0),w1=(cov_re07yzcqk().s[11]++,p1-p0),w2=(cov_re07yzcqk().s[12]++,p3-p2);return cov_re07yzcqk().s[13]++,[p0,p2,w0,w1,w2]}cov_re07yzcqk().f[2]++;const[x0,x2,wf,wl,wr]=(cov_re07yzcqk().s[14]++,points(width,.5*width-margin/2)),[y0,y2,hf,ht,hb]=(cov_re07yzcqk().s[15]++,points(height,.5*height-margin/2));switch(cov_re07yzcqk().s[16]++,side){case Side.top:return cov_re07yzcqk().b[3][0]++,cov_re07yzcqk().s[17]++,box(x0,y0,wf,ht);case Side.bottom:return cov_re07yzcqk().b[3][1]++,cov_re07yzcqk().s[18]++,box(x0,y2,wf,hb);case Side.left:return cov_re07yzcqk().b[3][2]++,cov_re07yzcqk().s[19]++,box(x0,y0,wl,hf);case Side.right:return cov_re07yzcqk().b[3][3]++,cov_re07yzcqk().s[20]++,box(x2,y0,wr,hf);case Side.topLeft:return cov_re07yzcqk().b[3][4]++,cov_re07yzcqk().s[21]++,box(x0,y0,wl,ht);case Side.topRight:return cov_re07yzcqk().b[3][5]++,cov_re07yzcqk().s[22]++,box(x2,y0,wr,ht);case Side.bottomLeft:return cov_re07yzcqk().b[3][6]++,cov_re07yzcqk().s[23]++,box(x0,y2,wl,hb);case Side.bottomRight:return cov_re07yzcqk().b[3][7]++,cov_re07yzcqk().s[24]++,box(x2,y2,wr,hb);default:return cov_re07yzcqk().b[3][8]++,cov_re07yzcqk().s[25]++,null}}),[height,width])),onSideEdgeSnap=(cov_re07yzcqk().s[26]++,(0,react.useCallback)(((side,isDropped)=>{cov_re07yzcqk().f[4]++;const bBox=(cov_re07yzcqk().s[27]++,getBBox(side));cov_re07yzcqk().s[28]++,isDropped?(cov_re07yzcqk().b[4][0]++,cov_re07yzcqk().s[29]++,bBox?(cov_re07yzcqk().b[5][0]++,cov_re07yzcqk().s[30]++,onSnapCallback?.(bBox,side)):cov_re07yzcqk().b[5][1]++,cov_re07yzcqk().s[31]++,setPreviewBox(null)):(cov_re07yzcqk().b[4][1]++,cov_re07yzcqk().s[32]++,setPreviewBox(bBox))}),[getBBox,onSnapCallback]));return cov_re07yzcqk().s[33]++,[previewBox,onSideEdgeSnap]}(windowMargin,setFrameBox));cov_1wie91cq08().s[63]++,(0,react.useEffect)((()=>{cov_1wie91cq08().f[15]++,cov_1wie91cq08().s[64]++,onSideSnap?.(side,!dragging.current)}),[onSideSnap,side]);const timeout=(cov_1wie91cq08().s[65]++,(0,react.useRef)()),onDrag=(cov_1wie91cq08().s[66]++,(0,react.useCallback)((()=>{if(cov_1wie91cq08().f[16]++,cov_1wie91cq08().s[67]++,dragging.current=!0,cov_1wie91cq08().s[68]++,clearTimeout(timeout.current),cov_1wie91cq08().s[69]++,!resizable)return cov_1wie91cq08().b[34][0]++,void cov_1wie91cq08().s[70]++;cov_1wie91cq08().b[34][1]++;const side=(cov_1wie91cq08().s[71]++,getSnapSide(1));cov_1wie91cq08().s[72]++,side?(cov_1wie91cq08().b[35][0]++,cov_1wie91cq08().s[73]++,timeout.current=setTimeout((()=>{cov_1wie91cq08().f[17]++,cov_1wie91cq08().s[74]++,cov_1wie91cq08().b[37][0]++,dragging.current&&(cov_1wie91cq08().b[37][1]++,!maximized)?(cov_1wie91cq08().b[36][0]++,cov_1wie91cq08().s[75]++,setSide(side)):cov_1wie91cq08().b[36][1]++}),100)):(cov_1wie91cq08().b[35][1]++,cov_1wie91cq08().s[76]++,setSide(side))}),[getSnapSide,maximized,resizable])),onDragStop=(cov_1wie91cq08().s[77]++,(0,react.useCallback)(((e,_ref)=>{cov_1wie91cq08().f[18]++;let{x,y}=(cov_1wie91cq08().s[78]++,_ref);if(cov_1wie91cq08().s[79]++,!dragging.current)return cov_1wie91cq08().b[38][0]++,void cov_1wie91cq08().s[80]++;cov_1wie91cq08().b[38][1]++,cov_1wie91cq08().s[81]++,dragging.current=!1,cov_1wie91cq08().s[82]++,savePosition({x,y}),cov_1wie91cq08().s[83]++,onSideSnap?.(side,!0),cov_1wie91cq08().s[84]++,onSnapCallback?.({name:Side[side],code:side}),cov_1wie91cq08().s[85]++,setSide(Side.none)}),[onSideSnap,onSnapCallback,savePosition,side])),onEnter=(cov_1wie91cq08().s[86]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[19]++;const{height,width}=(cov_1wie91cq08().s[87]++,ref.current.getBoundingClientRect());cov_1wie91cq08().s[88]++,setSize({width,height})}),[])),onExited=(cov_1wie91cq08().s[89]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[20]++,cov_1wie91cq08().s[90]++,setSize((cov_1wie91cq08().b[39][0]++,prevSize||(cov_1wie91cq08().b[39][1]++,null)))}),[prevSize])),onResizeStop=(cov_1wie91cq08().s[91]++,(0,react.useCallback)(((e,dir,el,delta,position)=>{cov_1wie91cq08().f[21]++;const{width,height}=(cov_1wie91cq08().s[92]++,el.getBoundingClientRect());cov_1wie91cq08().s[93]++,setFrameBox({...position,width,height})}),[setFrameBox])),[focused,setFocused]=(cov_1wie91cq08().s[94]++,(0,react.useState)(!1)),focus=(cov_1wie91cq08().s[95]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[22]++,cov_1wie91cq08().s[96]++,onFocus(),cov_1wie91cq08().s[97]++,setFocused(!0)}),[onFocus])),blur=(cov_1wie91cq08().s[98]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[23]++,cov_1wie91cq08().s[99]++,setFocused(!1)}),[])),maxSize=(cov_1wie91cq08().s[100]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[24]++,cov_1wie91cq08().s[101]++,{width:`calc(100% - ${position?.x<=windowMargin?(cov_1wie91cq08().b[40][0]++,2*windowMargin):(cov_1wie91cq08().b[40][1]++,cov_1wie91cq08().b[41][0]++,position?.x||(cov_1wie91cq08().b[41][1]++,0))}px)`,height:viewport.height-(position?.y<=windowMargin?(cov_1wie91cq08().b[42][0]++,2*windowMargin):(cov_1wie91cq08().b[42][1]++,cov_1wie91cq08().b[43][0]++,position?.y||(cov_1wie91cq08().b[43][1]++,0)))})),[windowMargin,position,viewport.height])),normalizeMinSize=(cov_1wie91cq08().s[102]++,(0,react.useCallback)(((size,viewportSize)=>{if(cov_1wie91cq08().f[25]++,cov_1wie91cq08().s[103]++,!contentAvailable)return cov_1wie91cq08().b[44][0]++,cov_1wie91cq08().s[104]++,0;if(cov_1wie91cq08().b[44][1]++,cov_1wie91cq08().s[105]++,maximized)return cov_1wie91cq08().b[45][0]++,cov_1wie91cq08().s[106]++,viewportSize;cov_1wie91cq08().b[45][1]++;const maxSize=(cov_1wie91cq08().s[107]++,viewportSize-2*windowMargin);return cov_1wie91cq08().s[108]++,size>=maxSize?(cov_1wie91cq08().b[46][0]++,cov_1wie91cq08().s[109]++,maxSize):(cov_1wie91cq08().b[46][1]++,cov_1wie91cq08().s[110]++,size)}),[contentAvailable,maximized,windowMargin])),currentMinWidth=(cov_1wie91cq08().s[111]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[26]++,cov_1wie91cq08().s[112]++,normalizeMinSize(minWidth,viewport.width))),[normalizeMinSize,viewport.width,minWidth])),currentMinHeight=(cov_1wie91cq08().s[113]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[27]++,cov_1wie91cq08().s[114]++,normalizeMinSize(minHeight,viewport.height))),[normalizeMinSize,viewport.height,minHeight]));return cov_1wie91cq08().s[115]++,useScrollFix(ref.current),cov_1wie91cq08().s[116]++,react.createElement("div",{ref:windowRef},react.createElement(CSSTransition.A,{nodeRef:ref,in:contentAvailable,timeout:250,classNames:defaultFadeAnimation},react.createElement(CSSTransition.A,{in:maximized,timeout:250,classNames:zoomAnimation,onEnter,onExited},react.createElement(lib.p,{disableDragging:(cov_1wie91cq08().b[47][0]++,maximized||(cov_1wie91cq08().b[47][1]++,!moveable)),enableResizing:(cov_1wie91cq08().b[48][0]++,resizable&&(cov_1wie91cq08().b[48][1]++,!maximized)),className:(0,emotion_css_esm.cx)(windowClass,windowTheme),style:{display:"flex",zIndex},bounds:"#windowsViewport",size,position:maximized?(cov_1wie91cq08().b[49][0]++,{x:0,y:0}):(cov_1wie91cq08().b[49][1]++,position),minWidth:currentMinWidth,minHeight:currentMinHeight,maxHeight:maxSize.height,maxWidth:maxSize.width,onResizeStop,onDrag,onMouseDown:touch,onDragStart:touch,onResizeStart:touch,onDragStop,dragHandleClassName:DRAG_HANDLE_CLASS_NAME,cancel:`a[href], textarea, input, select, button, ${DRAG_PREVENT_CLASS_NAME}`,"data-testid":"window-frame"},react.createElement(es2015.Ay,{className:(0,emotion_css_esm.AH)({flex:1}),group:focusGroup,disabled:!focusGroup,returnFocus:!0,autoFocus:!0},react.createElement("div",{ref,onFocus:focus,onBlur:blur,onKeyDown:event=>{cov_1wie91cq08().f[28]++,cov_1wie91cq08().s[117]++,cov_1wie91cq08().b[50][0]++,"Escape"===event.key&&(cov_1wie91cq08().b[50][1]++,onEscape?.()),cov_1wie91cq08().s[118]++,touch()},tabIndex:-1,className:(0,emotion_css_esm.cx)(focusWrapperClass,focusWrapperTheme),"data-testid":"window"},props.children))))),react.createElement(SnapMask,{previewBox:snapPreviewBox}))})));cov_1wie91cq08().s[119]++,WindowFrame.displayName="WindowFrame";try{WindowFrame.displayName="WindowFrame",WindowFrame.__docgenInfo={description:"",displayName:"WindowFrame",props:{focusGroup:{defaultValue:null,description:"",name:"focusGroup",required:!1,type:{name:"string"}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"number"}},randomizePosition:{defaultValue:null,description:"",name:"randomizePosition",required:!1,type:{name:"number"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"() => void"}},moveable:{defaultValue:null,description:"",name:"moveable",required:!1,type:{name:"boolean"}},resizable:{defaultValue:null,description:"",name:"resizable",required:!1,type:{name:"boolean"}},maximized:{defaultValue:null,description:"",name:"maximized",required:!1,type:{name:"boolean"}},onEscape:{defaultValue:null,description:"",name:"onEscape",required:!1,type:{name:"() => void"}},onEdgeSnap:{defaultValue:null,description:"",name:"onEdgeSnap",required:!1,type:{name:"(e: { name: string; code: Side; }) => void"}},width:{defaultValue:null,description:"@deprecated use layoutData",name:"width",required:!1,type:{name:"number"}},height:{defaultValue:null,description:"@deprecated use layoutData",name:"height",required:!1,type:{name:"number"}},minWidth:{defaultValue:null,description:"@deprecated use layoutData",name:"minWidth",required:!1,type:{name:"number"}},minHeight:{defaultValue:null,description:"@deprecated use layoutData",name:"minHeight",required:!1,type:{name:"number"}},layoutData:{defaultValue:null,description:"",name:"layoutData",required:!1,type:{name:"LayoutData"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowFrame.tsx#WindowFrame"]={docgenInfo:WindowFrame.__docgenInfo,name:"WindowFrame",path:"src/components/window/WindowFrame.tsx#WindowFrame"})}catch(__react_docgen_typescript_loader_error){}function cov_2po8udkhob(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"608040ffd8fbf4a785141e409e2c463136f0e296"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx",statementMap:{0:{start:{line:5,column:35},end:{line:52,column:2}},1:{start:{line:9,column:6},end:{line:9,column:10}},2:{start:{line:17,column:6},end:{line:17,column:10}},3:{start:{line:21,column:6},end:{line:21,column:26}},4:{start:{line:22,column:31},end:{line:22,column:50}},5:{start:{line:23,column:19},end:{line:23,column:96}},6:{start:{line:23,column:37},end:{line:23,column:66}},7:{start:{line:24,column:2},end:{line:51,column:6}},8:{start:{line:53,column:0},end:{line:53,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:46},end:{line:5,column:47}},loc:{start:{line:5,column:61},end:{line:52,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:23,column:31},end:{line:23,column:32}},loc:{start:{line:23,column:37},end:{line:23,column:66}},line:23}},branchMap:{0:{loc:{start:{line:23,column:37},end:{line:23,column:66}},type:"binary-expr",locations:[{start:{line:23,column:37},end:{line:23,column:53}},{start:{line:23,column:57},end:{line:23,column:66}}],line:23},1:{loc:{start:{line:31,column:23},end:{line:31,column:45}},type:"cond-expr",locations:[{start:{line:31,column:38},end:{line:31,column:39}},{start:{line:31,column:42},end:{line:31,column:45}}],line:31}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","forwardRef","useCallback","useWindowManager","useWindowZoom","WindowContent","WindowFrame","Window","_ref","ref","data","contentGetter","isResizable","isStatic","focusParent","id","order","shouldCloseOnEsc","focus","onFocus","close","onClose","zoom","onToggleZoom","onEscKey","createElement","zIndex","focusGroup","maximized","resizable","moveable","randomizePosition","isModal","onEscape","width","height","minWidth","minHeight","layoutData","isMaximized","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAaC,WAAW,QAAQ,OAAO;AACjE,SAASC,gBAAgB,EAAEC,aAAa,QAAQ,aAAa;AAE7D,SAAwBC,aAAa,QAAQ,iBAAiB;AAC9D,SAASC,WAAW,QAAQ,eAAe;AAO3C,OAAO,MAAMC,MAAM,gBAAGN,UAAU,CAAC,CAAAO,IAAA,EAAuCC,GAA8B,KAAkB;EAAA,IAAtF;IAAEC,IAAI;IAAEC;EAA2B,CAAC,GAAAH,IAAA;EACpE,MAAM;IAAEI,WAAW;IAAEC,QAAQ;IAAEC,WAAW;IAAEC,EAAE;IAAEC,KAAK;IAAEC;EAAiB,CAAC,GAAGP,IAAI;EAEhF,MAAM;IAAEQ,KAAK,EAAEC,OAAO;IAAEC,KAAK,EAAEC;EAAQ,CAAC,GAAGlB,gBAAgB,CAACY,EAAE,CAAC;EAC/D,MAAM,CAACO,IAAI,EAAEC,YAAY,CAAC,GAAGnB,aAAa,CAACM,IAAI,CAAC;EAEhD,MAAMc,QAAQ,GAAGtB,WAAW,CAAC,MAAMe,gBAAgB,IAAII,OAAO,CAAC,CAAC,EAAE,CAACA,OAAO,EAAEJ,gBAAgB,CAAC,CAAC;EAE9F,oBACEjB,KAAA,CAAAyB,aAAA,CAACnB,WAAW;IACVoB,MAAM,EAAEV,KAAM;IACdW,UAAU,EAAEb,WAAY;IACxBK,OAAO,EAAEA,OAAQ;IACjBS,SAAS,EAAEN,IAAK;IAChBO,SAAS,EAAEjB,WAAY;IACvBkB,QAAQ,EAAE,CAACjB,QAAS;IACpBkB,iBAAiB,EAAErB,IAAI,CAACsB,OAAO,GAAG,CAAC,GAAG,GAAI;IAC1CC,QAAQ,EAAET,QAAS;IACnBU,KAAK,EAAExB,IAAI,CAACwB,KAAM;IAClBC,MAAM,EAAEzB,IAAI,CAACyB,MAAO;IACpBC,QAAQ,EAAE1B,IAAI,CAAC0B,QAAS;IACxBC,SAAS,EAAE3B,IAAI,CAAC2B,SAAU;IAC1B5B,GAAG,EAAEA,GAAI;IACT6B,UAAU,EAAE;MACVJ,KAAK,EAAExB,IAAI,CAACwB,KAAK;MACjBC,MAAM,EAAEzB,IAAI,CAACyB,MAAM;MACnBC,QAAQ,EAAE1B,IAAI,CAAC0B,QAAQ;MACvBC,SAAS,EAAE3B,IAAI,CAAC2B,SAAS;MACzB,GAAG3B,IAAI,CAAC4B;IACV;EAAE,gBAEFtC,KAAA,CAAAyB,aAAA,CAACpB,aAAa;IAACM,aAAa,EAAEA,aAAc;IAACD,IAAI,EAAEA,IAAK;IAACU,KAAK,EAAEC,OAAQ;IAACC,IAAI,EAAEC,YAAa;IAACgB,WAAW,EAAEjB;EAAK,CAAE,CACtG,CAAC;AAElB,CAAC,CAAC;AAEFf,MAAM,CAACiC,WAAW,GAAG,QAAQ",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"608040ffd8fbf4a785141e409e2c463136f0e296"});var actualCoverage=coverage[path];return cov_2po8udkhob=function(){return actualCoverage},actualCoverage}cov_2po8udkhob();const Window=(cov_2po8udkhob().s[0]++,(0,react.forwardRef)(((_ref,ref)=>{cov_2po8udkhob().f[0]++;let{data,contentGetter}=(cov_2po8udkhob().s[1]++,_ref);const{isResizable,isStatic,focusParent,id,order,shouldCloseOnEsc}=(cov_2po8udkhob().s[2]++,data),{focus:onFocus,close:onClose}=(cov_2po8udkhob().s[3]++,(0,hooks.HM)(id)),[zoom,onToggleZoom]=(cov_2po8udkhob().s[4]++,(0,hooks.dz)(data)),onEscKey=(cov_2po8udkhob().s[5]++,(0,react.useCallback)((()=>(cov_2po8udkhob().f[1]++,cov_2po8udkhob().s[6]++,cov_2po8udkhob().b[0][0]++,shouldCloseOnEsc&&(cov_2po8udkhob().b[0][1]++,onClose()))),[onClose,shouldCloseOnEsc]));return cov_2po8udkhob().s[7]++,react.createElement(WindowFrame,{zIndex:order,focusGroup:focusParent,onFocus,maximized:zoom,resizable:isResizable,moveable:!isStatic,randomizePosition:data.isModal?(cov_2po8udkhob().b[1][0]++,0):(cov_2po8udkhob().b[1][1]++,100),onEscape:onEscKey,width:data.width,height:data.height,minWidth:data.minWidth,minHeight:data.minHeight,ref,layoutData:{width:data.width,height:data.height,minWidth:data.minWidth,minHeight:data.minHeight,...data.layoutData}},react.createElement(WindowContent.M,{contentGetter,data,close:onClose,zoom:onToggleZoom,isMaximized:zoom}))})));cov_2po8udkhob().s[8]++,Window.displayName="Window";try{Window.displayName="Window",Window.__docgenInfo={description:"",displayName:"Window",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowWithOrder"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/Window.tsx#Window"]={docgenInfo:Window.__docgenInfo,name:"Window",path:"src/components/window/Window.tsx#Window"})}catch(__react_docgen_typescript_loader_error){}var ViewportContext=__webpack_require__("./src/ViewportContext.tsx");function cov_zij9mc4a2(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6bc1efa0da5e5547448a85788d337ab476eba821"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx",statementMap:{0:{start:{line:6,column:28},end:{line:11,column:2}},1:{start:{line:12,column:24},end:{line:18,column:2}},2:{start:{line:22,column:6},end:{line:22,column:10}},3:{start:{line:27,column:6},end:{line:27,column:15}},4:{start:{line:28,column:16},end:{line:31,column:22}},5:{start:{line:28,column:31},end:{line:31,column:3}},6:{start:{line:34,column:6},end:{line:34,column:16}},7:{start:{line:35,column:2},end:{line:43,column:16}}},fnMap:{0:{name:"WindowsViewport",decl:{start:{line:19,column:16},end:{line:19,column:31}},loc:{start:{line:19,column:38},end:{line:44,column:1}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:28,column:24},end:{line:28,column:25}},loc:{start:{line:28,column:31},end:{line:31,column:3}},line:28}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,names:["css","cx","useTheme","React","useMemo","useSize","ViewportContext","ignorePointerEvents","pointerEvents","fullscreenFixed","top","bottom","left","right","position","WindowsViewport","_ref","children","observe","height","width","value","zIndex","createElement","id","className","ref","Provider"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAuBC,OAAO,QAAQ,OAAO;AACzD,SAASC,OAAO,QAAQ,UAAU;AAClC,SAASC,eAAe,QAAQ,oBAAoB;AAEpD,MAAMC,mBAAmB,GAAGP,GAAG,CAAC;EAC9BQ,aAAa,EAAE,MAAM;EACrB,OAAO,EAAE;IACPA,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAGT,GAAG,CAAC;EAC1BU,GAAG,EAAE,CAAC;EACNC,MAAM,EAAE,CAAC;EACTC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,QAAQ,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,SAASC,eAAeA,CAAAC,IAAA,EAAwD;EAAA,IAAvD;IAAEC;EAAqC,CAAC,GAAAD,IAAA;EACtE,MAAM;IAAEE,OAAO;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGf,OAAO,CAAC,CAAC;EAC5C,MAAMgB,KAAK,GAAGjB,OAAO,CAAC,OAAO;IAAEgB,KAAK;IAAED;EAAO,CAAC,CAAC,EAAE,CAACA,MAAM,EAAEC,KAAK,CAAC,CAAC;EAEjE,MAAM;IAAEE;EAAO,CAAC,GAAGpB,QAAQ,CAAC,CAAC;EAC7B,oBACEC,KAAA,CAAAoB,aAAA;IAAKC,EAAE,EAAE,iBAAkB;IAACC,SAAS,EAAExB,EAAE,CAACQ,eAAe,EAAEF,mBAAmB,EAAEP,GAAG,CAAC;MAAEsB;IAAO,CAAC,CAAC,CAAE;IAACI,GAAG,EAAER;EAAQ,gBAC7Gf,KAAA,CAAAoB,aAAA,CAACjB,eAAe,CAACqB,QAAQ;IAACN,KAAK,EAAEA;EAAM,GAAEJ,QAAmC,CACzE,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6bc1efa0da5e5547448a85788d337ab476eba821"});var actualCoverage=coverage[path];return cov_zij9mc4a2=function(){return actualCoverage},actualCoverage}cov_zij9mc4a2();const ignorePointerEvents=(cov_zij9mc4a2().s[0]++,(0,emotion_css_esm.AH)({pointerEvents:"none","& > *":{pointerEvents:"auto"}})),fullscreenFixed=(cov_zij9mc4a2().s[1]++,(0,emotion_css_esm.AH)({top:0,bottom:0,left:0,right:0,position:"fixed"}));function WindowsViewport(_ref){cov_zij9mc4a2().f[0]++;let{children}=(cov_zij9mc4a2().s[2]++,_ref);const{observe,height,width}=(cov_zij9mc4a2().s[3]++,(0,hooks.XX)()),value=(cov_zij9mc4a2().s[4]++,(0,react.useMemo)((()=>(cov_zij9mc4a2().f[1]++,cov_zij9mc4a2().s[5]++,{width,height})),[height,width])),{zIndex}=(cov_zij9mc4a2().s[6]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_zij9mc4a2().s[7]++,react.createElement("div",{id:"windowsViewport",className:(0,emotion_css_esm.cx)(fullscreenFixed,ignorePointerEvents,(0,emotion_css_esm.AH)({zIndex})),ref:observe},react.createElement(ViewportContext.k.Provider,{value},children))}try{WindowsViewport.displayName="WindowsViewport",WindowsViewport.__docgenInfo={description:"",displayName:"WindowsViewport",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowsViewport.tsx#WindowsViewport"]={docgenInfo:WindowsViewport.__docgenInfo,name:"WindowsViewport",path:"src/components/WindowsViewport.tsx#WindowsViewport"})}catch(__react_docgen_typescript_loader_error){}function cov_16r9agufb4(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"aed874a5b6e204f5c93ab8cefbb00ca38cecce81"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx",statementMap:{0:{start:{line:14,column:6},end:{line:14,column:10}},1:{start:{line:17,column:6},end:{line:17,column:24}},2:{start:{line:18,column:23},end:{line:18,column:31}},3:{start:{line:19,column:20},end:{line:19,column:28}},4:{start:{line:20,column:2},end:{line:40,column:37}},5:{start:{line:22,column:36},end:{line:40,column:6}}},fnMap:{0:{name:"WindowsContainer",decl:{start:{line:10,column:16},end:{line:10,column:32}},loc:{start:{line:10,column:39},end:{line:41,column:1}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:22,column:22},end:{line:22,column:23}},loc:{start:{line:22,column:36},end:{line:40,column:6}},line:22}},branchMap:{0:{loc:{start:{line:12,column:4},end:{line:12,column:29}},type:"default-arg",locations:[{start:{line:12,column:16},end:{line:12,column:29}}],line:12},1:{loc:{start:{line:22,column:37},end:{line:31,column:5}},type:"binary-expr",locations:[{start:{line:22,column:37},end:{line:22,column:46}},{start:{line:22,column:63},end:{line:31,column:5}}],line:22}},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{0:[0],1:[0,0]},inputSourceMap:{version:3,names:["flatMap","React","useRef","createPortal","CSSTransition","TransitionGroup","useWindowManager","defaultFadeAnimation","ModalMask","Window","WindowsViewport","WindowsContainer","_ref","container","document","body","contentGetter","windows","modalMaskRef","windowRef","createElement","component","d","index","isModal","nodeRef","key","id","timeout","classNames","ref","zIndex","data","filter","Boolean"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx"],mappings:"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAChC,OAAOC,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;AACvE,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,oBAAoB,QAAQ,sBAAsB;AAC3D,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,MAAM,QAAQ,iBAAiB;AAExC,SAASC,eAAe,QAAQ,mBAAmB;AAOnD,OAAO,SAASC,gBAAgBA,CAAAC,IAAA,EAAmF;EAAA,IAAlF;IAAEC,SAAS,GAAGC,QAAQ,CAACC,IAAI;IAAEC;EAAqC,CAAC,GAAAJ,IAAA;EAClG,MAAM;IAAEK;EAAQ,CAAC,GAAGX,gBAAgB,CAAC,CAAC;EACtC,MAAMY,YAAY,GAAGhB,MAAM,CAAiB,CAAC;EAC7C,MAAMiB,SAAS,GAAGjB,MAAM,CAAiB,CAAC;EAE1C,oBAAOC,YAAY,eACjBF,KAAA,CAAAmB,aAAA,CAACf,eAAe;IAACgB,SAAS,EAAEX;EAAgB,GACzCV,OAAO,CAACiB,OAAO,EAAE,CAACK,CAAC,EAAEC,KAAK,KAAK,CAC9BD,CAAC,CAACE,OAAO,iBACPvB,KAAA,CAAAmB,aAAA,CAAChB,aAAa;IAACqB,OAAO,EAAEP,YAAa;IAACQ,GAAG,EAAG,GAAEJ,CAAC,CAACK,EAAG,OAAO;IAACC,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEtB;EAAqB,gBACxGN,KAAA,CAAAmB,aAAA,CAACZ,SAAS;IAACsB,GAAG,EAAEZ,YAAa;IAACQ,GAAG,EAAG,GAAEJ,CAAC,CAACK,EAAG,OAAO;IAACI,MAAM,EAAER;EAAM,CAAE,CACtD,CAChB,eACDtB,KAAA,CAAAmB,aAAA,CAAChB,aAAa;IAACqB,OAAO,EAAEN,SAAU;IAACO,GAAG,EAAEJ,CAAC,CAACK,EAAG;IAACC,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEtB;EAAqB,gBAC3FN,KAAA,CAAAmB,aAAA,CAACX,MAAM;IAACqB,GAAG,EAAEX,SAAU;IAACa,IAAI,EAAEV,CAAE;IAACN,aAAa,EAAEA;EAAc,CAAE,CACnD,CAAC,CACjB,CAAC,CAACiB,MAAM,CAACC,OAAO,CACF,CAAC,EAClBrB,SACF,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"aed874a5b6e204f5c93ab8cefbb00ca38cecce81"});var actualCoverage=coverage[path];return cov_16r9agufb4=function(){return actualCoverage},actualCoverage}function WindowsContainer(_ref){cov_16r9agufb4().f[0]++;let{container=(cov_16r9agufb4().b[0][0]++,document.body),contentGetter}=(cov_16r9agufb4().s[0]++,_ref);const{windows}=(cov_16r9agufb4().s[1]++,(0,hooks.HM)()),modalMaskRef=(cov_16r9agufb4().s[2]++,(0,react.useRef)()),windowRef=(cov_16r9agufb4().s[3]++,(0,react.useRef)());return cov_16r9agufb4().s[4]++,(0,react_dom.createPortal)(react.createElement(TransitionGroup.A,{component:WindowsViewport},(0,lodash.flatMap)(windows,((d,index)=>(cov_16r9agufb4().f[1]++,cov_16r9agufb4().s[5]++,[(cov_16r9agufb4().b[1][0]++,d.isModal&&(cov_16r9agufb4().b[1][1]++,react.createElement(CSSTransition.A,{nodeRef:modalMaskRef,key:`${d.id}/mask`,timeout:250,classNames:defaultFadeAnimation},react.createElement(ModalMask,{ref:modalMaskRef,key:`${d.id}/mask`,zIndex:index})))),react.createElement(CSSTransition.A,{nodeRef:windowRef,key:d.id,timeout:250,classNames:defaultFadeAnimation},react.createElement(Window,{ref:windowRef,data:d,contentGetter}))]))).filter(Boolean)),container)}cov_16r9agufb4();try{WindowsContainer.displayName="WindowsContainer",WindowsContainer.__docgenInfo={description:"",displayName:"WindowsContainer",props:{container:{defaultValue:{value:"document.body"},description:"",name:"container",required:!1,type:{name:"HTMLElement"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowsContainer.tsx#WindowsContainer"]={docgenInfo:WindowsContainer.__docgenInfo,name:"WindowsContainer",path:"src/components/WindowsContainer.tsx#WindowsContainer"})}catch(__react_docgen_typescript_loader_error){}function cov_13pj6er948(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"1607c464f18594d30a67f6c23ecf10ac30ad5383"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx",statementMap:{0:{start:{line:6,column:21},end:{line:20,column:1}},1:{start:{line:27,column:6},end:{line:27,column:10}},2:{start:{line:28,column:2},end:{line:35,column:8}},3:{start:{line:30,column:23},end:{line:30,column:93}},4:{start:{line:31,column:6},end:{line:31,column:59}}},fnMap:{0:{name:"WindowManager",decl:{start:{line:21,column:16},end:{line:21,column:29}},loc:{start:{line:21,column:36},end:{line:36,column:1}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:29,column:11},end:{line:29,column:12}},loc:{start:{line:29,column:23},end:{line:32,column:5}},line:29}},branchMap:{0:{loc:{start:{line:23,column:4},end:{line:23,column:14}},type:"default-arg",locations:[{start:{line:23,column:12},end:{line:23,column:14}}],line:23},1:{loc:{start:{line:30,column:23},end:{line:30,column:93}},type:"cond-expr",locations:[{start:{line:30,column:76},end:{line:30,column:88}},{start:{line:30,column:91},end:{line:30,column:93}}],line:30},2:{loc:{start:{line:30,column:23},end:{line:30,column:73}},type:"binary-expr",locations:[{start:{line:30,column:23},end:{line:30,column:43}},{start:{line:30,column:47},end:{line:30,column:73}}],line:30}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{0:[0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,names:["ThemeProvider","defaultsDeep","React","WindowManagerContextProvider","WindowsContainer","defaultTheme","backgroundOpacity","backdropFilter","colors","focusColor","primaryBackground","secondaryBackground","borderColor","mutedColor","spacing","baseUnit","zIndex","WindowManager","_ref","theme","contentGetter","children","props","createElement","outerTheme","arguments","length","undefined"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx"],mappings:"AAAA,SAASA,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,YAAY,QAAQ,QAAQ;AACrC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,SAASC,4BAA4B,QAAQ,YAAY;AAEzD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,MAAMC,YAAY,GAAG;EACnBC,iBAAiB,EAAE,GAAG;EACtBC,cAAc,EAAE,YAAY;EAC5BC,MAAM,EAAE;IACNC,UAAU,EAAE,SAAS;IACrBC,iBAAiB,EAAE,SAAS;IAC5BC,mBAAmB,EAAE,SAAS;IAC9BC,WAAW,EAAE,SAAS;IACtBC,UAAU,EAAE;EACd,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDC,MAAM,EAAE;AACV,CAAC;AAOD,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAKU;EAAA,IALwB;IAC7DC,KAAK,GAAG,CAAC,CAAC;IACVC,aAAa;IACbC,QAAQ;IACR,GAAGC;EACkB,CAAC,GAAAJ,IAAA;EACtB,oBACEhB,KAAA,CAAAqB,aAAA,CAACpB,4BAA4B,qBAC3BD,KAAA,CAAAqB,aAAA,QAASD,KAAK,EACXD,QAAQ,eACTnB,KAAA,CAAAqB,aAAA,CAACvB,aAAa;IAACmB,KAAK,EAAE,SAAAA,CAAA;MAAA,IAACK,UAAU,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKxB,YAAY,CAACkB,KAAK,EAAEK,UAAU,EAAEnB,YAAY,CAAC;IAAA;EAAC,gBACvFH,KAAA,CAAAqB,aAAA,CAACnB,gBAAgB;IAACgB,aAAa,EAAEA;EAAc,CAAE,CACpC,CACZ,CACuB,CAAC;AAEnC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1607c464f18594d30a67f6c23ecf10ac30ad5383"});var actualCoverage=coverage[path];return cov_13pj6er948=function(){return actualCoverage},actualCoverage}cov_13pj6er948();const defaultTheme=(cov_13pj6er948().s[0]++,{backgroundOpacity:.9,backdropFilter:"blur(16px)",colors:{focusColor:"#0082c2",primaryBackground:"#FFFFFF",secondaryBackground:"#CCCCCC",borderColor:"#000000",mutedColor:"#999999"},spacing:{baseUnit:5},zIndex:1500});function WindowManager(_ref){cov_13pj6er948().f[0]++;let{theme=(cov_13pj6er948().b[0][0]++,{}),contentGetter,children,...props}=(cov_13pj6er948().s[1]++,_ref);return cov_13pj6er948().s[2]++,react.createElement(context.s,null,react.createElement("div",props,children,react.createElement(emotion_element_43c6fea0_browser_esm.a,{theme:function(){cov_13pj6er948().f[1]++;let outerTheme=(cov_13pj6er948().s[3]++,cov_13pj6er948().b[2][0]++,arguments.length>0&&(cov_13pj6er948().b[2][1]++,void 0!==arguments[0])?(cov_13pj6er948().b[1][0]++,arguments[0]):(cov_13pj6er948().b[1][1]++,{}));return cov_13pj6er948().s[4]++,(0,lodash.defaultsDeep)(theme,outerTheme,defaultTheme)}},react.createElement(WindowsContainer,{contentGetter}))))}try{WindowManager.displayName="WindowManager",WindowManager.__docgenInfo={description:"",displayName:"WindowManager",props:{theme:{defaultValue:{value:"{}"},description:"",name:"theme",required:!1,type:{name:"Partial<{ backgroundOpacity: number; backdropFilter: string; spacing: Partial<{ baseUnit: number; }>; colors: Partial<{ borderColor: string; focusColor: string; mutedColor: string; primaryBackground: string; secondaryBackground: string; }>; zIndex: number; }>"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowManager.tsx#WindowManager"]={docgenInfo:WindowManager.__docgenInfo,name:"WindowManager",path:"src/components/WindowManager.tsx#WindowManager"})}catch(__react_docgen_typescript_loader_error){}function cov_28p8fiqlf(){var path="/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"feed4fa0efcd3e7e67dab56831afe0ca9e6b5978"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx",statementMap:{0:{start:{line:10,column:6},end:{line:10,column:11}},1:{start:{line:11,column:18},end:{line:11,column:41}},2:{start:{line:12,column:2},end:{line:18,column:5}}},fnMap:{0:{name:"DragHandle",decl:{start:{line:4,column:16},end:{line:4,column:26}},loc:{start:{line:4,column:34},end:{line:19,column:1}},line:4}},branchMap:{0:{loc:{start:{line:9,column:4},end:{line:9,column:54}},type:"default-arg",locations:[{start:{line:9,column:22},end:{line:9,column:54}}],line:9},1:{loc:{start:{line:15,column:14},end:{line:15,column:43}},type:"cond-expr",locations:[{start:{line:15,column:25},end:{line:15,column:34}},{start:{line:15,column:37},end:{line:15,column:43}}],line:15},2:{loc:{start:{line:16,column:8},end:{line:16,column:43}},type:"binary-expr",locations:[{start:{line:16,column:8},end:{line:16,column:17}},{start:{line:16,column:21},end:{line:16,column:43}}],line:16},3:{loc:{start:{line:17,column:14},end:{line:17,column:48}},type:"binary-expr",locations:[{start:{line:17,column:14},end:{line:17,column:22}},{start:{line:17,column:26},end:{line:17,column:48}}],line:17}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","DRAG_HANDLE_CLASS_NAME","DragHandle","props","children","className","disabled","el","createElement","element","Children","only","cloneElement","cursor"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA2C,OAAO;AAC9D,SAASC,sBAAsB,QAAQ,WAAW;AAYlD,OAAO,SAASC,UAAUA,CAACC,KAAyC,EAAe;EACjF,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,EAAE,gBAAGP,KAAA,CAAAQ,aAAA,YAAM;EAAE,CAAC,GAAGL,KAAK;EAE7D,MAAMM,OAAO,GAAGT,KAAK,CAACU,QAAQ,CAACC,IAAI,CAACJ,EAAE,CAAC;EACvC,oBAAOP,KAAK,CAACY,YAAY,CAACH,OAAO,EAAE;IACjC,GAAGA,OAAO,CAACN,KAAK;IAChBE,SAAS,EAAEN,EAAE,CAAC,CACZD,GAAG,CAAC;MAAEe,MAAM,EAAEP,QAAQ,GAAG,SAAS,GAAG;IAAO,CAAC,CAAC,EAC9C,CAACA,QAAQ,IAAIL,sBAAsB,EACnCQ,OAAO,CAACN,KAAK,CAACE,SAAS,EACvBA,SAAS,CACV,CAAC;IACFD,QAAQ,EAAEA,QAAQ,IAAIK,OAAO,CAACN,KAAK,CAACC;EACtC,CAAC,CAAC;AACJ",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"feed4fa0efcd3e7e67dab56831afe0ca9e6b5978"});var actualCoverage=coverage[path];return cov_28p8fiqlf=function(){return actualCoverage},actualCoverage}function DragHandle(props){cov_28p8fiqlf().f[0]++;const{children,className,disabled,el=(cov_28p8fiqlf().b[0][0]++,react.createElement("div",null))}=(cov_28p8fiqlf().s[0]++,props),element=(cov_28p8fiqlf().s[1]++,react.Children.only(el));return cov_28p8fiqlf().s[2]++,react.cloneElement(element,{...element.props,className:(0,emotion_css_esm.cx)([(0,emotion_css_esm.AH)({cursor:disabled?(cov_28p8fiqlf().b[1][0]++,"inherit"):(cov_28p8fiqlf().b[1][1]++,"move")}),(cov_28p8fiqlf().b[2][0]++,!disabled&&(cov_28p8fiqlf().b[2][1]++,DRAG_HANDLE_CLASS_NAME)),element.props.className,className]),children:(cov_28p8fiqlf().b[3][0]++,children||(cov_28p8fiqlf().b[3][1]++,element.props.children))})}cov_28p8fiqlf();try{DragHandle.displayName="DragHandle",DragHandle.__docgenInfo={description:"",displayName:"DragHandle",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},ignoredChildren:{defaultValue:null,description:'@deprecated this is ignored now - use DRAG_PREVENT_CLASS_NAME ("no-drag")',name:"ignoredChildren",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},el:{defaultValue:null,description:"",name:"el",required:!1,type:{name:"ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/DragHandle.tsx#DragHandle"]={docgenInfo:DragHandle.__docgenInfo,name:"DragHandle",path:"src/components/DragHandle.tsx#DragHandle"})}catch(__react_docgen_typescript_loader_error){}function cov_126cf4s501(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c956ec0875c67ddda0e67eff4334a02902487b1f"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx",statementMap:{0:{start:{line:3,column:23},end:{line:7,column:2}},1:{start:{line:12,column:6},end:{line:12,column:10}},2:{start:{line:13,column:2},end:{line:15,column:63}}},fnMap:{0:{name:"HeaderTitle",decl:{start:{line:8,column:16},end:{line:8,column:27}},loc:{start:{line:8,column:34},end:{line:16,column:1}},line:8}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","titleClassName","fontWeight","textTransform","padding","HeaderTitle","_ref","children","className","createElement"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAIhE,MAAMC,cAAc,GAAGH,GAAG,CAAC;EACzBI,UAAU,EAAE,GAAG;EACfC,aAAa,EAAE,WAAW;EAC1BC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,SAASC,WAAWA,CAAAC,IAAA,EAAyD;EAAA,IAAxD;IAAEC,QAAQ;IAAEC;EAA4B,CAAC,GAAAF,IAAA;EACnE,oBACEN,KAAA,CAAAS,aAAA;IAAKD,SAAS,EAAET,EAAE,CAACE,cAAc,EAAEO,SAAS;EAAE,gBAC5CR,KAAA,CAAAS,aAAA,eAAOF,QAAe,CACnB,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c956ec0875c67ddda0e67eff4334a02902487b1f"});var actualCoverage=coverage[path];return cov_126cf4s501=function(){return actualCoverage},actualCoverage}cov_126cf4s501();const titleClassName=(cov_126cf4s501().s[0]++,(0,emotion_css_esm.AH)({fontWeight:600,textTransform:"lowercase",padding:".25em .5em"}));function HeaderTitle(_ref){cov_126cf4s501().f[0]++;let{children,className}=(cov_126cf4s501().s[1]++,_ref);return cov_126cf4s501().s[2]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(titleClassName,className)},react.createElement("span",null,children))}try{HeaderTitle.displayName="HeaderTitle",HeaderTitle.__docgenInfo={description:"",displayName:"HeaderTitle",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderTitle.tsx#HeaderTitle"]={docgenInfo:HeaderTitle.__docgenInfo,name:"HeaderTitle",path:"src/components/window/header/HeaderTitle.tsx#HeaderTitle"})}catch(__react_docgen_typescript_loader_error){}var _g;function close_extends(){return close_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i(cov_cneuq5z0p().f[4]++,cov_cneuq5z0p().s[13]++,keys.includes(e.key)?(cov_cneuq5z0p().b[2][1]++,cov_cneuq5z0p().s[15]++,action(e)):(cov_cneuq5z0p().b[2][0]++,void cov_cneuq5z0p().s[14]++))}const HeaderButton=(cov_cneuq5z0p().s[16]++,(0,react.forwardRef)((function HeaderButton(_ref,ref){cov_cneuq5z0p().f[5]++;let{className,action,...props}=(cov_cneuq5z0p().s[17]++,_ref);const headerButtonTheme=(cov_cneuq5z0p().s[18]++,(()=>{cov_cneuq5z0p().f[2]++;const{colors}=(cov_cneuq5z0p().s[10]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_cneuq5z0p().s[11]++,(0,emotion_css_esm.AH)({lineHeight:0,svg:{height:"2em",path:{fill:colors.mutedColor}},":focus, :hover":{svg:{path:{fill:colors.focusColor}}}})})());return cov_cneuq5z0p().s[19]++,react.createElement("button",HeaderButton_extends({className:(0,emotion_css_esm.cx)(buttonReset,headerButtonTheme,className),onPointerDown:action,onKeyDown:filterByKeys(action,["Enter"," "])},props,{ref}))})));try{HeaderButton.displayName="HeaderButton",HeaderButton.__docgenInfo={description:"",displayName:"HeaderButton",props:{action:{defaultValue:null,description:"",name:"action",required:!1,type:{name:"PointerEventHandler & KeyboardEventHandler"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButton.tsx#HeaderButton"]={docgenInfo:HeaderButton.__docgenInfo,name:"HeaderButton",path:"src/components/window/header/HeaderButton.tsx#HeaderButton"})}catch(__react_docgen_typescript_loader_error){}function cov_1xpd4jdg23(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fe99673b55ba1c5e6a6f187f4b767e1ef2f25375"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:8,column:2},end:{line:11,column:56}},2:{start:{line:10,column:18},end:{line:10,column:31}}},fnMap:{0:{name:"HeaderButtonClose",decl:{start:{line:4,column:16},end:{line:4,column:33}},loc:{start:{line:4,column:40},end:{line:12,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:10,column:12},end:{line:10,column:13}},loc:{start:{line:10,column:18},end:{line:10,column:31}},line:10}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,names:["React","CloseIcon","HeaderButton","HeaderButtonClose","_ref","closeDialog","createElement","name","action"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,YAAY,QAAQ,gBAAgB;AAM7C,OAAO,SAASC,iBAAiBA,CAAAC,IAAA,EAAuD;EAAA,IAAtD;IAAEC;EAAoC,CAAC,GAAAD,IAAA;EACvE,oBACEJ,KAAA,CAAAM,aAAA,CAACJ,YAAY;IAACK,IAAI,EAAC,OAAO;IAACC,MAAM,EAAEA,CAAA,KAAMH,WAAW,CAAC;EAAE,gBACrDL,KAAA,CAAAM,aAAA,CAACL,SAAS,MAAE,CACA,CAAC;AAEnB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fe99673b55ba1c5e6a6f187f4b767e1ef2f25375"});var actualCoverage=coverage[path];return cov_1xpd4jdg23=function(){return actualCoverage},actualCoverage}function HeaderButtonClose(_ref){cov_1xpd4jdg23().f[0]++;let{closeDialog}=(cov_1xpd4jdg23().s[0]++,_ref);return cov_1xpd4jdg23().s[1]++,react.createElement(HeaderButton,{name:"close",action:()=>(cov_1xpd4jdg23().f[1]++,cov_1xpd4jdg23().s[2]++,closeDialog())},react.createElement(header_close,null))}cov_1xpd4jdg23();try{HeaderButtonClose.displayName="HeaderButtonClose",HeaderButtonClose.__docgenInfo={description:"",displayName:"HeaderButtonClose",props:{closeDialog:{defaultValue:null,description:"",name:"closeDialog",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButtonClose.tsx#HeaderButtonClose"]={docgenInfo:HeaderButtonClose.__docgenInfo,name:"HeaderButtonClose",path:"src/components/window/header/HeaderButtonClose.tsx#HeaderButtonClose"})}catch(__react_docgen_typescript_loader_error){}var restore_g;function restore_extends(){return restore_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{cov_2a7hr40j5z().f[1]++,cov_2a7hr40j5z().s[3]++,event.preventDefault(),cov_2a7hr40j5z().s[4]++,zoomDialog(),cov_2a7hr40j5z().s[5]++,keepFocus?cov_2a7hr40j5z().b[0][1]++:(cov_2a7hr40j5z().b[0][0]++,cov_2a7hr40j5z().s[6]++,ref.current?.blur())}),[keepFocus,zoomDialog]));return cov_2a7hr40j5z().s[7]++,react.createElement(HeaderButton,{name:"zoom",ref,action},isMaximized?(cov_2a7hr40j5z().b[1][0]++,react.createElement(restore,null)):(cov_2a7hr40j5z().b[1][1]++,react.createElement(zoom,null)))}cov_2a7hr40j5z();try{HeaderButtonZoom.displayName="HeaderButtonZoom",HeaderButtonZoom.__docgenInfo={description:"",displayName:"HeaderButtonZoom",props:{zoomDialog:{defaultValue:null,description:"",name:"zoomDialog",required:!0,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!0,type:{name:"boolean"}},keepFocus:{defaultValue:null,description:"",name:"keepFocus",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButtonZoom.tsx#HeaderButtonZoom"]={docgenInfo:HeaderButtonZoom.__docgenInfo,name:"HeaderButtonZoom",path:"src/components/window/header/HeaderButtonZoom.tsx#HeaderButtonZoom"})}catch(__react_docgen_typescript_loader_error){}function cov_1b0v0vnj9k(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"d17f3849033fdd13dcedf2de816b3ba9fd43e7aa"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["HeaderTitle","HeaderTitleProps","HeaderButtonClose","HeaderButtonCloseProps","HeaderButtonZoom","HeaderButtonZoomProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts"],mappings:"AAAA,SAASA,WAAW,EAAEC,gBAAgB,QAAQ,eAAe;AAC7D,SAASC,iBAAiB,EAAEC,sBAAsB,QAAQ,qBAAqB;AAC/E,SAASC,gBAAgB,EAAEC,qBAAqB,QAAQ,oBAAoB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d17f3849033fdd13dcedf2de816b3ba9fd43e7aa"});var actualCoverage=coverage[path];return cov_1b0v0vnj9k=function(){return actualCoverage},actualCoverage}function cov_sf3p82aj4(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:8,column:6},end:{line:8,column:10}},10:{start:{line:9,column:2},end:{line:13,column:13}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"HeaderButtons",decl:{start:{line:4,column:16},end:{line:4,column:29}},loc:{start:{line:4,column:36},end:{line:14,column:1}},line:4}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","HeaderButtons","_ref","className","props","createElement","_extends","display"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAA0G;EAAA,IAAzG;IAAEC,SAAS;IAAE,GAAGC;EAAyE,CAAC,GAAAF,IAAA;EACtH,oBAAOF,KAAA,CAAAK,aAAA,QAAAC,QAAA;IAAKH,SAAS,EAAEJ,EAAE,CAACD,GAAG,CAAC;MAAES,OAAO,EAAE;IAAQ,CAAC,CAAC,EAAEJ,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AAChF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d718ed7d20eb94f4fa68944524404da55f3df468"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"d718ed7d20eb94f4fa68944524404da55f3df468"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_sf3p82aj4=function(){return actualCoverage},actualCoverage}function HeaderButtons_extends(){return cov_sf3p82aj4().f[0]++,cov_sf3p82aj4().s[0]++,HeaderButtons_extends=Object.assign?(cov_sf3p82aj4().b[0][0]++,Object.assign.bind()):(cov_sf3p82aj4().b[0][1]++,function(target){cov_sf3p82aj4().f[1]++,cov_sf3p82aj4().s[1]++;for(var i=(cov_sf3p82aj4().s[2]++,1);i(cov_19gjfuh229().f[3]++,cov_19gjfuh229().s[12]++,react.createElement("header",{className:(0,emotion_css_esm.cx)(flexRow,(0,emotion_css_esm.AH)({justifyContent:"space-between"})),onDoubleClick:()=>(cov_19gjfuh229().f[4]++,cov_19gjfuh229().s[13]++,zoomDialog?.())}))),[zoomDialog])),{HeaderButtonClose:Close,HeaderButtonZoom:Zoom,HeaderTitle:Title}=(cov_19gjfuh229().s[14]++,(0,react.useMemo)((()=>(cov_19gjfuh229().f[5]++,cov_19gjfuh229().s[15]++,{...header_namespaceObject,...components})),[components]));return cov_19gjfuh229().s[16]++,react.createElement(DragHandle,WindowHeader_extends({el:header,disabled:(cov_19gjfuh229().b[3][0]++,isStatic||(cov_19gjfuh229().b[3][1]++,isMaximized))},props),title?(cov_19gjfuh229().b[4][0]++,react.createElement(Title,{className:classnames.header},title)):(cov_19gjfuh229().b[4][1]++,react.createElement("div",null)),react.createElement(HeaderButtons,{className:(0,emotion_css_esm.cx)(flexRow,classnames.headerButtons)},(cov_19gjfuh229().b[5][0]++,zoomDialog&&(cov_19gjfuh229().b[5][1]++,react.createElement(Zoom,{zoomDialog,isMaximized}))),(cov_19gjfuh229().b[6][0]++,closeDialog&&(cov_19gjfuh229().b[6][1]++,react.createElement(Close,{closeDialog})))))}try{WindowHeader.displayName="WindowHeader",WindowHeader.__docgenInfo={description:"",displayName:"WindowHeader",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},closeDialog:{defaultValue:null,description:"",name:"closeDialog",required:!1,type:{name:"() => void"}},zoomDialog:{defaultValue:null,description:"",name:"zoomDialog",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}},isStatic:{defaultValue:null,description:"",name:"isStatic",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:'Pick'}},components:{defaultValue:{value:"{}"},description:"",name:"components",required:!1,type:{name:'Partial'}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowHeader.tsx#WindowHeader"]={docgenInfo:WindowHeader.__docgenInfo,name:"WindowHeader",path:"src/components/window/WindowHeader.tsx#WindowHeader"})}catch(__react_docgen_typescript_loader_error){}var useForkRef=__webpack_require__("./node_modules/rooks/dist/esm/hooks/useForkRef.js"),OverflowContext=__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_55mv2zfq6(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"615a2ae8c16db5bf75ffd2c54b791a2b2f79385b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx",statementMap:{0:{start:{line:11,column:6},end:{line:11,column:11}},1:{start:{line:16,column:6},end:{line:16,column:15}},2:{start:{line:20,column:6},end:{line:20,column:15}},3:{start:{line:21,column:22},end:{line:30,column:9}},4:{start:{line:21,column:36},end:{line:30,column:4}},5:{start:{line:31,column:23},end:{line:31,column:128}},6:{start:{line:31,column:37},end:{line:31,column:93}},7:{start:{line:32,column:40},end:{line:32,column:51}},8:{start:{line:33,column:46},end:{line:33,column:57}},9:{start:{line:34,column:26},end:{line:40,column:27}},10:{start:{line:35,column:22},end:{line:35,column:50}},11:{start:{line:36,column:24},end:{line:36,column:64}},12:{start:{line:37,column:27},end:{line:37,column:84}},13:{start:{line:38,column:4},end:{line:38,column:32}},14:{start:{line:39,column:4},end:{line:39,column:38}},15:{start:{line:41,column:2},end:{line:43,column:24}},16:{start:{line:42,column:4},end:{line:42,column:22}},17:{start:{line:44,column:24},end:{line:46,column:37}},18:{start:{line:44,column:38},end:{line:46,column:5}},19:{start:{line:44,column:81},end:{line:46,column:3}},20:{start:{line:47,column:20},end:{line:47,column:28}},21:{start:{line:48,column:14},end:{line:48,column:46}},22:{start:{line:49,column:19},end:{line:52,column:9}},23:{start:{line:49,column:38},end:{line:52,column:4}},24:{start:{line:53,column:14},end:{line:57,column:61}},25:{start:{line:53,column:29},end:{line:57,column:3}},26:{start:{line:55,column:37},end:{line:55,column:48}},27:{start:{line:56,column:43},end:{line:56,column:66}},28:{start:{line:58,column:2},end:{line:81,column:8}}},fnMap:{0:{name:"WithOverflow",decl:{start:{line:7,column:16},end:{line:7,column:28}},loc:{start:{line:7,column:36},end:{line:82,column:1}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:21,column:30},end:{line:21,column:31}},loc:{start:{line:21,column:36},end:{line:30,column:4}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:31,column:31},end:{line:31,column:32}},loc:{start:{line:31,column:37},end:{line:31,column:93}},line:31},3:{name:"(anonymous_3)",decl:{start:{line:34,column:38},end:{line:34,column:39}},loc:{start:{line:34,column:44},end:{line:40,column:3}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:41,column:12},end:{line:41,column:13}},loc:{start:{line:41,column:18},end:{line:43,column:3}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:32},end:{line:44,column:33}},loc:{start:{line:44,column:38},end:{line:46,column:5}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:44,column:72},end:{line:44,column:73}},loc:{start:{line:44,column:81},end:{line:46,column:3}},line:44},7:{name:"(anonymous_7)",decl:{start:{line:49,column:31},end:{line:49,column:32}},loc:{start:{line:49,column:38},end:{line:52,column:4}},line:49},8:{name:"(anonymous_8)",decl:{start:{line:53,column:22},end:{line:53,column:23}},loc:{start:{line:53,column:29},end:{line:57,column:3}},line:53},9:{name:"(anonymous_9)",decl:{start:{line:55,column:31},end:{line:55,column:32}},loc:{start:{line:55,column:37},end:{line:55,column:48}},line:55},10:{name:"(anonymous_10)",decl:{start:{line:56,column:37},end:{line:56,column:38}},loc:{start:{line:56,column:43},end:{line:56,column:66}},line:56}},branchMap:{0:{loc:{start:{line:35,column:22},end:{line:35,column:50}},type:"binary-expr",locations:[{start:{line:35,column:22},end:{line:35,column:45}},{start:{line:35,column:49},end:{line:35,column:50}}],line:35},1:{loc:{start:{line:54,column:14},end:{line:54,column:61}},type:"cond-expr",locations:[{start:{line:54,column:46},end:{line:54,column:54}},{start:{line:54,column:57},end:{line:54,column:61}}],line:54},2:{loc:{start:{line:54,column:14},end:{line:54,column:43}},type:"binary-expr",locations:[{start:{line:54,column:14},end:{line:54,column:25}},{start:{line:54,column:29},end:{line:54,column:43}}],line:54},3:{loc:{start:{line:55,column:17},end:{line:55,column:55}},type:"cond-expr",locations:[{start:{line:55,column:31},end:{line:55,column:48}},{start:{line:55,column:51},end:{line:55,column:55}}],line:55},4:{loc:{start:{line:56,column:20},end:{line:56,column:73}},type:"cond-expr",locations:[{start:{line:56,column:37},end:{line:56,column:66}},{start:{line:56,column:69},end:{line:56,column:73}}],line:56},5:{loc:{start:{line:66,column:5},end:{line:72,column:5}},type:"binary-expr",locations:[{start:{line:66,column:5},end:{line:66,column:22}},{start:{line:66,column:39},end:{line:72,column:5}}],line:66},6:{loc:{start:{line:75,column:73},end:{line:81,column:5}},type:"binary-expr",locations:[{start:{line:75,column:73},end:{line:75,column:90}},{start:{line:75,column:107},end:{line:81,column:5}}],line:75}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","useCallback","useEffect","useMemo","useRef","useState","MoveFocusInside","useForkRef","useSize","OverflowContext","WithOverflow","props","children","className","observe","parentRef","height","availableHeight","entry","childRef","contentHeight","innerShadow","position","left","zIndex","content","width","overflowSize","Math","max","round","overflowTop","setOverflowTop","overflowBottom","setOverflowBottom","updateOverflows","scrollTop","target","topOverflow","min","bottomOverflow","top","bottom","map","size","boxShadow","scrollRef","ref","scrollTo","current","behavior","ctx","scrollToTop","scrollToBottom","createElement","Provider","value","onScroll","overflow","style"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAuBC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnG,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,UAAU,QAAQ,OAAO;AAClC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAAcC,eAAe,QAAQ,mBAAmB;AAMxD,OAAO,SAASC,YAAYA,CAACC,KAAwB,EAAe;EAClE,MAAM;IAAEC,QAAQ;IAAEC;EAAU,CAAC,GAAGF,KAAK;EACrC,MAAM;IAAEG,OAAO,EAAEC,SAAS;IAAEC,MAAM,EAAEC,eAAe;IAAEC;EAAM,CAAC,GAAGV,OAAO,CAAC,CAAC;EACxE,MAAM;IAAEM,OAAO,EAAEK,QAAQ;IAAEH,MAAM,EAAEI;EAAc,CAAC,GAAGZ,OAAO,CAAC,CAAC;EAE9D,MAAMa,WAAW,GAAGlB,OAAO,CACzB,MACEL,GAAG,CAAC;IACFwB,QAAQ,EAAE,QAAQ;IAClBC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,CAAC;IACT,OAAO,EAAE;MACPC,OAAO,EAAE,IAAI;MACbH,QAAQ,EAAE,UAAU;MACpBI,KAAK,EAAE;IACT;EACF,CAAC,CAAC,EACJ,EACF,CAAC;EAED,MAAMC,YAAY,GAAGxB,OAAO,CAAC,MAAMyB,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,KAAK,CAACV,aAAa,GAAGH,eAAe,CAAC,CAAC,EAAE,CAACA,eAAe,EAAEG,aAAa,CAAC,CAAC;EAC9H,MAAM,CAACW,WAAW,EAAEC,cAAc,CAAC,GAAG3B,QAAQ,CAAC,CAAC,CAAC;EACjD,MAAM,CAAC4B,cAAc,EAAEC,iBAAiB,CAAC,GAAG7B,QAAQ,CAAC,CAAC,CAAC;EACvD,MAAM8B,eAAe,GAAGlC,WAAW,CAAC,MAAM;IACxC,MAAMmC,SAAS,GAAGlB,KAAK,EAAEmB,MAAM,CAACD,SAAS,IAAI,CAAC;IAC9C,MAAME,WAAW,GAAGV,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACW,GAAG,CAAC,CAAC,EAAEH,SAAS,GAAG,EAAE,CAAC,CAAC;IAC5D,MAAMI,cAAc,GAAGZ,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACW,GAAG,CAAC,CAAC,EAAE,CAACZ,YAAY,GAAGS,SAAS,IAAI,EAAE,CAAC,CAAC;IAChFJ,cAAc,CAACM,WAAW,CAAC;IAC3BJ,iBAAiB,CAACM,cAAc,CAAC;EACnC,CAAC,EAAE,CAACtB,KAAK,EAAES,YAAY,CAAC,CAAC;EAEzBzB,SAAS,CAAC,MAAM;IACdiC,eAAe,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,MAAM,CAACM,GAAG,EAAEC,MAAM,CAAC,GAAGvC,OAAO,CAC3B,MACE,CAAC4B,WAAW,EAAEE,cAAc,CAAC,CAACU,GAAG,CAAEC,IAAI,KAAM;IAC3CC,SAAS,EAAG,WAAUjB,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEe,IAAI,CAAE;EAC1C,CAAC,CAAC,CAAC,EACL,CAACX,cAAc,EAAEF,WAAW,CAC9B,CAAC;EACD,MAAMe,SAAS,GAAG1C,MAAM,CAAiB,CAAC;EAC1C,MAAM2C,GAAG,GAAGxC,UAAU,CAACQ,SAAS,EAAE+B,SAAS,CAAC;EAE5C,MAAME,QAAQ,GAAG/C,WAAW,CAAEwC,GAAW,IAAKK,SAAS,CAACG,OAAO,CAACD,QAAQ,CAAC;IAAEP,GAAG;IAAES,QAAQ,EAAE;EAAS,CAAC,CAAC,EAAE,EAAE,CAAC;EAC1G,MAAMC,GAAG,GAAGhD,OAAO,CACjB,OAAO;IACL6C,QAAQ,EAAEjB,WAAW,IAAIE,cAAc,GAAGe,QAAQ,GAAG,IAAI;IACzDI,WAAW,EAAErB,WAAW,GAAG,MAAMiB,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;IACnDK,cAAc,EAAEpB,cAAc,GAAG,MAAMe,QAAQ,CAAC5B,aAAa,CAAC,GAAG;EACnE,CAAC,CAAC,EACF,CAACA,aAAa,EAAEa,cAAc,EAAEF,WAAW,EAAEiB,QAAQ,CACvD,CAAC;EAED,oBACEhD,KAAA,CAAAsD,aAAA,CAAC7C,eAAe,CAAC8C,QAAQ;IAACC,KAAK,EAAEL;EAAI,gBACnCnD,KAAA,CAAAsD,aAAA;IAASP,GAAG,EAAEA,GAAI;IAACU,QAAQ,EAAEtB,eAAgB;IAACtB,SAAS,EAAEf,GAAG,CAAC;MAAE4D,QAAQ,EAAE;IAAO,CAAC;EAAE,GAChF/B,YAAY,IAAI,CAAC,iBAChB3B,KAAA,CAAAsD,aAAA;IAAKzC,SAAS,EAAEd,EAAE,CAACsB,WAAW,EAAEvB,GAAG,CAAC;MAAE2C,GAAG,EAAE;IAAE,CAAC,CAAC;EAAE,gBAC/CzC,KAAA,CAAAsD,aAAA;IAAKK,KAAK,EAAElB;EAAI,CAAE,CACf,CACN,eAEDzC,KAAA,CAAAsD,aAAA;IAAKP,GAAG,EAAE5B,QAAS;IAACN,SAAS,EAAEd,EAAE,CAACc,SAAS;EAAE,gBAC3Cb,KAAA,CAAAsD,aAAA,CAAChD,eAAe,QAAEM,QAA0B,CACzC,CAAC,EAELe,YAAY,IAAI,CAAC,iBAChB3B,KAAA,CAAAsD,aAAA;IAAKzC,SAAS,EAAEd,EAAE,CAACsB,WAAW,EAAEvB,GAAG,CAAC;MAAE4C,MAAM,EAAE;IAAE,CAAC,CAAC;EAAE,gBAClD1C,KAAA,CAAAsD,aAAA;IAAKK,KAAK,EAAEjB;EAAO,CAAE,CAClB,CAEA,CACe,CAAC;AAE/B",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"615a2ae8c16db5bf75ffd2c54b791a2b2f79385b"});var actualCoverage=coverage[path];return cov_55mv2zfq6=function(){return actualCoverage},actualCoverage}function WithOverflow(props){cov_55mv2zfq6().f[0]++;const{children,className}=(cov_55mv2zfq6().s[0]++,props),{observe:parentRef,height:availableHeight,entry}=(cov_55mv2zfq6().s[1]++,(0,hooks.XX)()),{observe:childRef,height:contentHeight}=(cov_55mv2zfq6().s[2]++,(0,hooks.XX)()),innerShadow=(cov_55mv2zfq6().s[3]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[1]++,cov_55mv2zfq6().s[4]++,(0,emotion_css_esm.AH)({position:"sticky",left:0,zIndex:1,"&>div":{content:"''",position:"absolute",width:"100%"}}))),[])),overflowSize=(cov_55mv2zfq6().s[5]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[2]++,cov_55mv2zfq6().s[6]++,Math.max(0,Math.round(contentHeight-availableHeight)))),[availableHeight,contentHeight])),[overflowTop,setOverflowTop]=(cov_55mv2zfq6().s[7]++,(0,react.useState)(0)),[overflowBottom,setOverflowBottom]=(cov_55mv2zfq6().s[8]++,(0,react.useState)(0)),updateOverflows=(cov_55mv2zfq6().s[9]++,(0,react.useCallback)((()=>{cov_55mv2zfq6().f[3]++;const scrollTop=(cov_55mv2zfq6().s[10]++,cov_55mv2zfq6().b[0][0]++,entry?.target.scrollTop||(cov_55mv2zfq6().b[0][1]++,0)),topOverflow=(cov_55mv2zfq6().s[11]++,Math.max(0,Math.min(2,scrollTop/10))),bottomOverflow=(cov_55mv2zfq6().s[12]++,Math.max(0,Math.min(2,(overflowSize-scrollTop)/10)));cov_55mv2zfq6().s[13]++,setOverflowTop(topOverflow),cov_55mv2zfq6().s[14]++,setOverflowBottom(bottomOverflow)}),[entry,overflowSize]));cov_55mv2zfq6().s[15]++,(0,react.useEffect)((()=>{cov_55mv2zfq6().f[4]++,cov_55mv2zfq6().s[16]++,updateOverflows()}),[updateOverflows]);const[top,bottom]=(cov_55mv2zfq6().s[17]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[5]++,cov_55mv2zfq6().s[18]++,[overflowTop,overflowBottom].map((size=>(cov_55mv2zfq6().f[6]++,cov_55mv2zfq6().s[19]++,{boxShadow:`0 0 4px ${Math.max(0,size)}px rgba(0,0,0, .5)`}))))),[overflowBottom,overflowTop])),scrollRef=(cov_55mv2zfq6().s[20]++,(0,react.useRef)()),ref=(cov_55mv2zfq6().s[21]++,(0,useForkRef.N)(parentRef,scrollRef)),scrollTo=(cov_55mv2zfq6().s[22]++,(0,react.useCallback)((top=>(cov_55mv2zfq6().f[7]++,cov_55mv2zfq6().s[23]++,scrollRef.current.scrollTo({top,behavior:"smooth"}))),[])),ctx=(cov_55mv2zfq6().s[24]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[8]++,cov_55mv2zfq6().s[25]++,{scrollTo:(cov_55mv2zfq6().b[2][0]++,overflowTop||(cov_55mv2zfq6().b[2][1]++,overflowBottom)?(cov_55mv2zfq6().b[1][0]++,scrollTo):(cov_55mv2zfq6().b[1][1]++,null)),scrollToTop:overflowTop?(cov_55mv2zfq6().b[3][0]++,()=>(cov_55mv2zfq6().f[9]++,cov_55mv2zfq6().s[26]++,scrollTo(0))):(cov_55mv2zfq6().b[3][1]++,null),scrollToBottom:overflowBottom?(cov_55mv2zfq6().b[4][0]++,()=>(cov_55mv2zfq6().f[10]++,cov_55mv2zfq6().s[27]++,scrollTo(contentHeight))):(cov_55mv2zfq6().b[4][1]++,null)})),[contentHeight,overflowBottom,overflowTop,scrollTo]));return cov_55mv2zfq6().s[28]++,react.createElement(OverflowContext.a.Provider,{value:ctx},react.createElement("section",{ref,onScroll:updateOverflows,className:(0,emotion_css_esm.AH)({overflow:"auto"})},(cov_55mv2zfq6().b[5][0]++,overflowSize>=0&&(cov_55mv2zfq6().b[5][1]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(innerShadow,(0,emotion_css_esm.AH)({top:0}))},react.createElement("div",{style:top})))),react.createElement("div",{ref:childRef,className:(0,emotion_css_esm.cx)(className)},react.createElement(es2015.GC,null,children)),(cov_55mv2zfq6().b[6][0]++,overflowSize>=0&&(cov_55mv2zfq6().b[6][1]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(innerShadow,(0,emotion_css_esm.AH)({bottom:0}))},react.createElement("div",{style:bottom}))))))}cov_55mv2zfq6();try{WithOverflow.displayName="WithOverflow",WithOverflow.__docgenInfo={description:"",displayName:"WithOverflow",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/content/WithOverflow.tsx#WithOverflow"]={docgenInfo:WithOverflow.__docgenInfo,name:"WithOverflow",path:"src/components/window/content/WithOverflow.tsx#WithOverflow"})}catch(__react_docgen_typescript_loader_error){}function cov_21e5ia05sn(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"b61ad9568c85a0bf39b11e333fe24ab0f856a12b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WithOverflow","Content","WithOverflowProps","ContentProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts"],mappings:"AAAA,SAASA,YAAY,IAAIC,OAAO,EAAEC,iBAAiB,IAAIC,YAAY,QAAQ,gBAAgB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b61ad9568c85a0bf39b11e333fe24ab0f856a12b"});var actualCoverage=coverage[path];return cov_21e5ia05sn=function(){return actualCoverage},actualCoverage}function cov_laux7r8r8(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e494cd0db2beb5cc22f3c3433b7712a78d6476f2"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["FooterButton","FooterButtonProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts"],mappings:"AAAA,SAASA,YAAY,EAAEC,iBAAiB,QAAQ,gBAAgB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e494cd0db2beb5cc22f3c3433b7712a78d6476f2"});var actualCoverage=coverage[path];return cov_laux7r8r8=function(){return actualCoverage},actualCoverage}function cov_qzikirygi(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:14,column:6},end:{line:14,column:10}},10:{start:{line:15,column:22},end:{line:15,column:51}},11:{start:{line:15,column:43},end:{line:15,column:50}},12:{start:{line:16,column:20},end:{line:21,column:4}},13:{start:{line:24,column:6},end:{line:27,column:19}},14:{start:{line:24,column:21},end:{line:27,column:3}},15:{start:{line:28,column:2},end:{line:47,column:7}},16:{start:{line:39,column:8},end:{line:39,column:13}},17:{start:{line:40,column:4},end:{line:46,column:8}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"WindowFooter",decl:{start:{line:6,column:16},end:{line:6,column:28}},loc:{start:{line:6,column:35},end:{line:48,column:1}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:15,column:38},end:{line:15,column:39}},loc:{start:{line:15,column:43},end:{line:15,column:50}},line:15},4:{name:"(anonymous_4)",decl:{start:{line:24,column:14},end:{line:24,column:15}},loc:{start:{line:24,column:21},end:{line:27,column:3}},line:24},5:{name:"(anonymous_5)",decl:{start:{line:32,column:77},end:{line:32,column:78}},loc:{start:{line:32,column:86},end:{line:47,column:3}},line:32}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},3:{loc:{start:{line:11,column:4},end:{line:11,column:19}},type:"default-arg",locations:[{start:{line:11,column:17},end:{line:11,column:19}}],line:11},4:{loc:{start:{line:12,column:4},end:{line:12,column:19}},type:"default-arg",locations:[{start:{line:12,column:17},end:{line:12,column:19}}],line:12},5:{loc:{start:{line:36,column:6},end:{line:36,column:27}},type:"default-arg",locations:[{start:{line:36,column:18},end:{line:36,column:27}}],line:36},6:{loc:{start:{line:43,column:16},end:{line:43,column:39}},type:"binary-expr",locations:[{start:{line:43,column:16},end:{line:43,column:27}},{start:{line:43,column:31},end:{line:43,column:39}}],line:43}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0],3:[0],4:[0],5:[0],6:[0,0]},inputSourceMap:{version:3,names:["css","cx","uniqBy","React","useMemo","defaultFooterComponents","WindowFooter","_ref","buttons","disabled","allDisabled","children","classnames","components","className","uniqButtons","b","title","flexClass","display","alignContent","alignItems","flexDirection","FooterButton","Button","createElement","justifyContent","footer","map","_ref2","classname","props","_extends","key","footerButton"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAOC,KAAK,IAAuBC,OAAO,QAAQ,OAAO;AAEzD,OAAO,KAAKC,uBAAuB,MAAM,UAAU;AAWnD,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAOO;EAAA,IAPN;IAC3BC,OAAO,GAAG,EAAE;IACZC,QAAQ,EAAEC,WAAW;IACrBC,QAAQ;IACRC,UAAU,GAAG,CAAC,CAAC;IACfC,UAAU,GAAG,CAAC,CAAC;IACfC;EACiB,CAAC,GAAAP,IAAA;EAClB,MAAMQ,WAAW,GAAGb,MAAM,CAACM,OAAO,EAAGQ,CAAC,IAAKA,CAAC,CAACC,KAAK,CAAC;EACnD,MAAMC,SAAS,GAAGlB,GAAG,CAAC;IACpBmB,OAAO,EAAE,MAAM;IACfC,YAAY,EAAE,SAAS;IACvBC,UAAU,EAAE,SAAS;IACrBC,aAAa,EAAE;EACjB,CAAC,CAAC;EAEF,MAAM;IAAEC,YAAY,EAAEC;EAAO,CAAC,GAAGpB,OAAO,CACtC,OAAO;IACL,GAAGC,uBAAuB;IAC1B,GAAGQ;EACL,CAAC,CAAC,EACF,CAACA,UAAU,CACb,CAAC;EAED,oBACEV,KAAA,CAAAsB,aAAA;IAAQX,SAAS,EAAEb,EAAE,CAACiB,SAAS,EAAElB,GAAG,CAAC;MAAE0B,cAAc,EAAE;IAAS,CAAC,CAAC,EAAEd,UAAU,CAACe,MAAM,EAAEb,SAAS;EAAE,GAC/FH,QAAQ,eACTR,KAAA,CAAAsB,aAAA,cACGV,WAAW,CAACa,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEpB,QAAQ;MAAEqB,SAAS;MAAEhB,SAAS,GAAGgB,SAAS;MAAEb,KAAK;MAAE,GAAGc;IAAM,CAAC,GAAAF,KAAA;IAAA,oBAC/E1B,KAAA,CAAAsB,aAAA,CAACD,MAAM,EAAAQ,QAAA;MACLC,GAAG,EAAEhB,KAAM;MACXA,KAAK,EAAEA,KAAM;MACbR,QAAQ,EAAEC,WAAW,IAAID;IAAS,GAC9BsB,KAAK;MACTjB,SAAS,EAAEb,EAAE,CAACa,SAAS,EAAEF,UAAU,CAACsB,YAAY;IAAE,EACnD,CAAC;EAAA,CACH,CACE,CACC,CAAC;AAEb",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"672149fc3202585a3a61b793b5f911fb2ab2b73f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"672149fc3202585a3a61b793b5f911fb2ab2b73f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_qzikirygi=function(){return actualCoverage},actualCoverage}function WindowFooter_extends(){return cov_qzikirygi().f[0]++,cov_qzikirygi().s[0]++,WindowFooter_extends=Object.assign?(cov_qzikirygi().b[0][0]++,Object.assign.bind()):(cov_qzikirygi().b[0][1]++,function(target){cov_qzikirygi().f[1]++,cov_qzikirygi().s[1]++;for(var i=(cov_qzikirygi().s[2]++,1);i(cov_qzikirygi().f[3]++,cov_qzikirygi().s[11]++,b.title)))),flexClass=(cov_qzikirygi().s[12]++,(0,emotion_css_esm.AH)({display:"flex",alignContent:"stretch",alignItems:"stretch",flexDirection:"row"})),{FooterButton:Button}=(cov_qzikirygi().s[13]++,(0,react.useMemo)((()=>(cov_qzikirygi().f[4]++,cov_qzikirygi().s[14]++,{...footer_namespaceObject,...components})),[components]));return cov_qzikirygi().s[15]++,react.createElement("footer",{className:(0,emotion_css_esm.cx)(flexClass,(0,emotion_css_esm.AH)({justifyContent:"center"}),classnames.footer,className)},children,react.createElement("div",null,uniqButtons.map((_ref2=>{cov_qzikirygi().f[5]++;let{disabled,classname,className=(cov_qzikirygi().b[5][0]++,classname),title,...props}=(cov_qzikirygi().s[16]++,_ref2);return cov_qzikirygi().s[17]++,react.createElement(Button,WindowFooter_extends({key:title,title,disabled:(cov_qzikirygi().b[6][0]++,allDisabled||(cov_qzikirygi().b[6][1]++,disabled))},props,{className:(0,emotion_css_esm.cx)(className,classnames.footerButton)}))}))))}cov_21e5ia05sn(),cov_laux7r8r8(),cov_qzikirygi();try{WindowFooter.displayName="WindowFooter",WindowFooter.__docgenInfo={description:"",displayName:"WindowFooter",props:{buttons:{defaultValue:{value:"[]"},description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},classnames:{defaultValue:{value:"{}"},description:"",name:"classnames",required:!1,type:{name:'Pick'}},components:{defaultValue:{value:"{}"},description:"",name:"components",required:!1,type:{name:'Partial'}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowFooter.tsx#WindowFooter"]={docgenInfo:WindowFooter.__docgenInfo,name:"WindowFooter",path:"src/components/window/WindowFooter.tsx#WindowFooter"})}catch(__react_docgen_typescript_loader_error){}function cov_1cd9ihclqz(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e3eda2dececf04eb429042bc63577aec709fb5bc"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowHeader","Header","WindowHeaderProps","HeaderProps","HeaderButton","HeaderButtonProps","HeaderTitle","HeaderTitleProps","HeaderButtonZoom","HeaderButtonZoomProps","HeaderButtonClose","HeaderButtonCloseProps","Content","ContentProps","WindowFooter","Footer","WindowFooterProps","FooterProps","FooterButton","FooterButtonProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts"],mappings:"AAAA,SAASA,YAAY,IAAIC,MAAM,EAAEC,iBAAiB,IAAIC,WAAW,QAAQ,gBAAgB;AACzF,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,uBAAuB;AACvE,SACEC,WAAW,EACXC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,iBAAiB,EACjBC,sBAAsB,QACjB,UAAU;AACjB,SAASC,OAAO,EAAEC,YAAY,QAAQ,WAAW;AACjD,SAASC,YAAY,IAAIC,MAAM,EAAEC,iBAAiB,IAAIC,WAAW,QAAQ,gBAAgB;AACzF,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,UAAU",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e3eda2dececf04eb429042bc63577aec709fb5bc"});var actualCoverage=coverage[path];return cov_1cd9ihclqz=function(){return actualCoverage},actualCoverage}function cov_2g1mxo987k(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:8,column:6},end:{line:8,column:10}},10:{start:{line:9,column:23},end:{line:14,column:4}},11:{start:{line:15,column:2},end:{line:17,column:13}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"WindowContentGrid",decl:{start:{line:4,column:16},end:{line:4,column:33}},loc:{start:{line:4,column:40},end:{line:18,column:1}},line:4}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","WindowContentGrid","_ref","className","props","contentClass","width","height","display","gridTemplateRows","createElement","_extends"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,OAAO,SAASC,iBAAiBA,CAAAC,IAAA,EAA0G;EAAA,IAAzG;IAAEC,SAAS;IAAE,GAAGC;EAAyE,CAAC,GAAAF,IAAA;EAC1H,MAAMG,YAAY,GAAGP,GAAG,CAAC;IACvBQ,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,OAAO,EAAE,MAAM;IACfC,gBAAgB,EAAE;EACpB,CAAC,CAAC;EACF,oBAAOT,KAAA,CAAAU,aAAA,QAAAC,QAAA;IAAKR,SAAS,EAAEJ,EAAE,CAACM,YAAY,EAAEF,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AACnE",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fb0808779aa383085fd8f652df579e4f796d8f51"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fb0808779aa383085fd8f652df579e4f796d8f51"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2g1mxo987k=function(){return actualCoverage},actualCoverage}function WindowContentGrid_extends(){return cov_2g1mxo987k().f[0]++,cov_2g1mxo987k().s[0]++,WindowContentGrid_extends=Object.assign?(cov_2g1mxo987k().b[0][0]++,Object.assign.bind()):(cov_2g1mxo987k().b[0][1]++,function(target){cov_2g1mxo987k().f[1]++,cov_2g1mxo987k().s[1]++;for(var i=(cov_2g1mxo987k().s[2]++,1);i(cov_2j1ts03jqu().f[1]++,cov_2j1ts03jqu().s[1]++,close())}]),close,zoom,data,isMaximized,components=(cov_2j1ts03jqu().b[2][0]++,{})}=(cov_2j1ts03jqu().s[0]++,props),{Content,Header,Footer,...passComponents}=(cov_2j1ts03jqu().s[2]++,(0,react.useMemo)((()=>(cov_2j1ts03jqu().f[2]++,cov_2j1ts03jqu().s[3]++,{...defaultComponents_namespaceObject,...components})),[components]));return cov_2j1ts03jqu().s[4]++,react.createElement(WindowContentGrid,null,react.createElement(Header,{title:(cov_2j1ts03jqu().b[3][0]++,title||(cov_2j1ts03jqu().b[3][1]++,data.title)),classnames,isStatic:(cov_2j1ts03jqu().b[4][0]++,isMaximized||(cov_2j1ts03jqu().b[4][1]++,data.isStatic)),isMaximized,zoomDialog:zoom,closeDialog:close,components:passComponents}),react.createElement(Content,{className:classnames.content},children),react.createElement(Footer,{buttons,classnames,components:passComponents}))}function DefaultContent(_ref){cov_2j1ts03jqu().f[3]++;let{backgroundDrag,...props}=(cov_2j1ts03jqu().s[5]++,_ref);return cov_2j1ts03jqu().s[6]++,react.createElement(react.Fragment,null,backgroundDrag?(cov_2j1ts03jqu().b[5][0]++,react.createElement(DragHandle,{disabled:(cov_2j1ts03jqu().b[6][0]++,props.isMaximized||(cov_2j1ts03jqu().b[6][1]++,props.data.isStatic))},react.createElement(Content,props))):(cov_2j1ts03jqu().b[5][1]++,react.createElement(Content,props)))}cov_2j1ts03jqu();try{DefaultContent.displayName="DefaultContent",DefaultContent.__docgenInfo={description:"",displayName:"DefaultContent",props:{buttons:{defaultValue:null,description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/DefaultContent.tsx#DefaultContent"]={docgenInfo:DefaultContent.__docgenInfo,name:"DefaultContent",path:"src/components/window/DefaultContent.tsx#DefaultContent"})}catch(__react_docgen_typescript_loader_error){}function cov_flolopwsl(){var path="/home/runner/work/nk-windows/nk-windows/src/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"de1f2696c89ddbd46e57d06b76dc061ba522cea5"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowContentProps","ContentGetter","FooterButtonProps","WindowButtonProps","WindowId","WindowType","useWindowManager","useOverflow","useWindowContext","WindowManager","WindowManagerProvider","DefaultContent","DefaultContentProps","_DefaultComponents","DefaultComponents","DRAG_PREVENT_CLASS_NAME"],sources:["/home/runner/work/nk-windows/nk-windows/src/index.ts"],mappings:"AAAA,SAASA,kBAAkB,QAAQ,wCAAwC;AAC3E,SAASC,aAAa,QAAQ,mCAAmC;AACjE,SAASC,iBAAiB,IAAIC,iBAAiB,QAAQ,yCAAyC;AAChG,SAASC,QAAQ,EAAEC,UAAU,QAAQ,SAAS;AAC9C,SAASC,gBAAgB,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,SAAS;AACzE,SAASC,aAAa,IAAIC,qBAAqB,QAAQ,4BAA4B;AACnF,SAASC,cAAc,EAAEC,mBAAmB,QAAQ,oCAAoC;AAAC,YAAAC,kBAAA,MACtD,uCAAuC;AAAA,SAAAA,kBAAA,IAA9DC,iBAAiB;AAC7B,SAASC,uBAAuB,QAAQ,UAAU",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"de1f2696c89ddbd46e57d06b76dc061ba522cea5"});var actualCoverage=coverage[path];return cov_flolopwsl=function(){return actualCoverage},actualCoverage}cov_flolopwsl()},"./src/store/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Do:()=>closeWindow,sJ:()=>getWindowsWithOrder,D1:()=>openWindow,Ff:()=>reducer,Ix:()=>useReducerWithThunk});var reselect=__webpack_require__("./node_modules/reselect/dist/reselect.mjs");function cov_z35rdk4li(){var path="/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ab95d51cbbce8a09020dace3e33c18241849c082"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:28}},1:{start:{line:3,column:15},end:{line:3,column:27}},2:{start:{line:5,column:24},end:{line:8,column:1}},3:{start:{line:5,column:41},end:{line:8,column:1}},4:{start:{line:9,column:20},end:{line:14,column:1}},5:{start:{line:12,column:6},end:{line:12,column:10}},6:{start:{line:13,column:2},end:{line:13,column:12}},7:{start:{line:15,column:26},end:{line:20,column:2}},8:{start:{line:18,column:6},end:{line:18,column:11}},9:{start:{line:19,column:2},end:{line:19,column:23}},10:{start:{line:21,column:25},end:{line:21,column:113}},11:{start:{line:21,column:82},end:{line:21,column:112}},12:{start:{line:21,column:100},end:{line:21,column:111}},13:{start:{line:22,column:17},end:{line:27,column:2}},14:{start:{line:25,column:6},end:{line:25,column:11}},15:{start:{line:26,column:2},end:{line:26,column:30}},16:{start:{line:28,column:31},end:{line:34,column:2}},17:{start:{line:32,column:6},end:{line:32,column:11}},18:{start:{line:33,column:2},end:{line:33,column:59}},19:{start:{line:33,column:26},end:{line:33,column:57}},20:{start:{line:35,column:35},end:{line:38,column:4}},21:{start:{line:35,column:92},end:{line:38,column:3}},22:{start:{line:35,column:113},end:{line:38,column:1}},23:{start:{line:37,column:31},end:{line:37,column:45}}},fnMap:{0:{name:"byId",decl:{start:{line:2,column:16},end:{line:2,column:20}},loc:{start:{line:2,column:25},end:{line:4,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:3,column:9},end:{line:3,column:10}},loc:{start:{line:3,column:15},end:{line:3,column:27}},line:3},2:{name:"(anonymous_2)",decl:{start:{line:5,column:24},end:{line:5,column:25}},loc:{start:{line:5,column:41},end:{line:8,column:1}},line:5},3:{name:"(anonymous_3)",decl:{start:{line:9,column:20},end:{line:9,column:21}},loc:{start:{line:9,column:37},end:{line:14,column:1}},line:9},4:{name:"(anonymous_4)",decl:{start:{line:15,column:58},end:{line:15,column:59}},loc:{start:{line:15,column:67},end:{line:20,column:1}},line:15},5:{name:"(anonymous_5)",decl:{start:{line:21,column:65},end:{line:21,column:66}},loc:{start:{line:21,column:82},end:{line:21,column:112}},line:21},6:{name:"(anonymous_6)",decl:{start:{line:21,column:95},end:{line:21,column:96}},loc:{start:{line:21,column:100},end:{line:21,column:111}},line:21},7:{name:"(anonymous_7)",decl:{start:{line:22,column:49},end:{line:22,column:50}},loc:{start:{line:22,column:58},end:{line:27,column:1}},line:22},8:{name:"(anonymous_8)",decl:{start:{line:28,column:63},end:{line:28,column:64}},loc:{start:{line:28,column:72},end:{line:34,column:1}},line:28},9:{name:"(anonymous_9)",decl:{start:{line:33,column:20},end:{line:33,column:21}},loc:{start:{line:33,column:26},end:{line:33,column:57}},line:33},10:{name:"(anonymous_10)",decl:{start:{line:35,column:72},end:{line:35,column:73}},loc:{start:{line:35,column:92},end:{line:38,column:3}},line:35},11:{name:"(anonymous_11)",decl:{start:{line:35,column:104},end:{line:35,column:105}},loc:{start:{line:35,column:113},end:{line:38,column:1}},line:35},12:{name:"(anonymous_12)",decl:{start:{line:37,column:25},end:{line:37,column:26}},loc:{start:{line:37,column:31},end:{line:37,column:45}},line:37}},branchMap:{0:{loc:{start:{line:5,column:41},end:{line:8,column:1}},type:"binary-expr",locations:[{start:{line:5,column:41},end:{line:5,column:54}},{start:{line:5,column:58},end:{line:8,column:1}}],line:5},1:{loc:{start:{line:19,column:9},end:{line:19,column:22}},type:"binary-expr",locations:[{start:{line:19,column:9},end:{line:19,column:16}},{start:{line:19,column:20},end:{line:19,column:22}}],line:19}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["createSelector","byId","id","el","getWindowsState","windowManager","windows","order","getWindowId","state","_ref","getWindows","_ref2","getWindow","find","w","getOrder","_ref3","reverse","getTopmostModal","_ref4","isModal","getWindowsWithOrder","map","data","findIndex"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts"],mappings:"AAAA,SAASA,cAAc,QAAQ,UAAU;AAGzC,OAAO,SAASC,IAAIA,CAAkCC,EAAW,EAAE;EACjE,OAAQC,EAAK,IAAcD,EAAE,KAAKC,EAAE,CAACD,EAAE;AACzC;AAEA,MAAME,eAAe,GAAIC,aAAiC,IAAyBA,aAAa,IAAI;EAAEC,OAAO,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAC9H,MAAMC,WAAW,GAAGA,CAACC,KAAyB,EAAAC,IAAA;EAAA,IAAE;IAAER;EAAqB,CAAC,GAAAQ,IAAA;EAAA,OAAeR,EAAE;AAAA;AAEzF,OAAO,MAAMS,UAAU,GAAGX,cAAc,CAACI,eAAe,EAAEQ,KAAA;EAAA,IAAC;IAAEN;EAAQ,CAAC,GAAAM,KAAA;EAAA,OAAKN,OAAO,IAAI,EAAE;AAAA,EAAC;AAEzF,OAAO,MAAMO,SAAS,GAAGb,cAAc,CAACW,UAAU,EAAEH,WAAW,EAAE,CAACF,OAAO,EAAEJ,EAAE,KAAKI,OAAO,CAACQ,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACb,EAAE,KAAKA,EAAE,CAAC,CAAC;AAEnH,MAAMc,QAAQ,GAAGhB,cAAc,CAACI,eAAe,EAAEa,KAAA;EAAA,IAAC;IAAEV;EAAM,CAAC,GAAAU,KAAA;EAAA,OAAK,CAAC,GAAGV,KAAK,CAAC,CAACW,OAAO,CAAC,CAAC;AAAA,EAAC;AAErF,OAAO,MAAMC,eAAe,GAAGnB,cAAc,CAC3CI,eAAe,EACfgB,KAAA;EAAA,IAAC;IAAEb,KAAK;IAAED;EAAQ,CAAC,GAAAc,KAAA;EAAA,OAAeb,KAAK,CAACO,IAAI,CAAEZ,EAAE,IAAKI,OAAO,CAACQ,IAAI,CAACb,IAAI,CAACC,EAAE,CAAC,CAAC,EAAEmB,OAAO,CAAC;AAAA,CACvF,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAAGtB,cAAc,CAC/CW,UAAU,EACVK,QAAQ,EACR,CAAkCV,OAAO,EAAEC,KAAK,KAC9CD,OAAO,CAACiB,GAAG,CAAEC,IAAI,KAAM;EACrB,GAAGA,IAAI;EACPjB,KAAK,EAAEA,KAAK,CAACkB,SAAS,CAAEvB,EAAE,IAAKsB,IAAI,CAACtB,EAAE,KAAKA,EAAE;AAC/C,CAAC,CAAC,CACN,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ab95d51cbbce8a09020dace3e33c18241849c082"});var actualCoverage=coverage[path];return cov_z35rdk4li=function(){return actualCoverage},actualCoverage}cov_z35rdk4li(),cov_z35rdk4li().s[2]++;const getWindowsState=windowManager=>(cov_z35rdk4li().f[2]++,cov_z35rdk4li().s[3]++,cov_z35rdk4li().b[0][0]++,windowManager||(cov_z35rdk4li().b[0][1]++,{windows:[],order:[]}));cov_z35rdk4li().s[4]++;const getWindows=(cov_z35rdk4li().s[7]++,(0,reselect.Mz)(getWindowsState,(_ref2=>{cov_z35rdk4li().f[4]++;let{windows}=(cov_z35rdk4li().s[8]++,_ref2);return cov_z35rdk4li().s[9]++,cov_z35rdk4li().b[1][0]++,windows||(cov_z35rdk4li().b[1][1]++,[])}))),getOrder=(cov_z35rdk4li().s[10]++,(0,reselect.Mz)(getWindows,((state,_ref)=>{cov_z35rdk4li().f[3]++;let{id}=(cov_z35rdk4li().s[5]++,_ref);return cov_z35rdk4li().s[6]++,id}),((windows,id)=>(cov_z35rdk4li().f[5]++,cov_z35rdk4li().s[11]++,windows.find((w=>(cov_z35rdk4li().f[6]++,cov_z35rdk4li().s[12]++,w.id===id)))))),cov_z35rdk4li().s[13]++,(0,reselect.Mz)(getWindowsState,(_ref3=>{cov_z35rdk4li().f[7]++;let{order}=(cov_z35rdk4li().s[14]++,_ref3);return cov_z35rdk4li().s[15]++,[...order].reverse()}))),getTopmostModal=(cov_z35rdk4li().s[16]++,(0,reselect.Mz)(getWindowsState,(_ref4=>{cov_z35rdk4li().f[8]++;let{order,windows}=(cov_z35rdk4li().s[17]++,_ref4);return cov_z35rdk4li().s[18]++,order.find((id=>(cov_z35rdk4li().f[9]++,cov_z35rdk4li().s[19]++,windows.find(function byId(id){return cov_z35rdk4li().f[0]++,cov_z35rdk4li().s[0]++,el=>(cov_z35rdk4li().f[1]++,cov_z35rdk4li().s[1]++,id===el.id)}(id))?.isModal)))}))),getWindowsWithOrder=(cov_z35rdk4li().s[20]++,(0,reselect.Mz)(getWindows,getOrder,((windows,order)=>(cov_z35rdk4li().f[10]++,cov_z35rdk4li().s[21]++,windows.map((data=>(cov_z35rdk4li().f[11]++,cov_z35rdk4li().s[22]++,{...data,order:order.findIndex((id=>(cov_z35rdk4li().f[12]++,cov_z35rdk4li().s[23]++,data.id===id)))})))))));var v4=__webpack_require__("./node_modules/uuid/dist/esm-browser/v4.js");function cov_11jza4j3r5(){var path="/home/runner/work/nk-windows/nk-windows/src/store/actions.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"2bb3b97c1bd893c300604f0472ae4ea24260c8f4"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/actions.ts",statementMap:{0:{start:{line:3,column:16},end:{line:6,column:1}},1:{start:{line:4,column:10},end:{line:4,column:79}},2:{start:{line:5,column:2},end:{line:5,column:56}},3:{start:{line:5,column:32},end:{line:5,column:54}},4:{start:{line:7,column:17},end:{line:11,column:1}},5:{start:{line:16,column:6},end:{line:16,column:10}},6:{start:{line:17,column:23},end:{line:20,column:3}},7:{start:{line:21,column:2},end:{line:34,column:4}},8:{start:{line:22,column:18},end:{line:22,column:28}},9:{start:{line:23,column:23},end:{line:27,column:5}},10:{start:{line:28,column:4},end:{line:28,column:22}},11:{start:{line:29,column:4},end:{line:32,column:7}},12:{start:{line:33,column:4},end:{line:33,column:22}},13:{start:{line:37,column:11},end:{line:37,column:83}},14:{start:{line:38,column:2},end:{line:50,column:4}},15:{start:{line:39,column:18},end:{line:39,column:28}},16:{start:{line:40,column:4},end:{line:43,column:7}},17:{start:{line:44,column:4},end:{line:49,column:8}},18:{start:{line:44,column:52},end:{line:44,column:103}},19:{start:{line:47,column:10},end:{line:47,column:15}},20:{start:{line:48,column:6},end:{line:48,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:16},end:{line:3,column:17}},loc:{start:{line:3,column:28},end:{line:6,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:5,column:21},end:{line:5,column:22}},loc:{start:{line:5,column:32},end:{line:5,column:54}},line:5},2:{name:"openWindow",decl:{start:{line:12,column:16},end:{line:12,column:26}},loc:{start:{line:12,column:33},end:{line:35,column:1}},line:12},3:{name:"(anonymous_3)",decl:{start:{line:21,column:9},end:{line:21,column:10}},loc:{start:{line:21,column:39},end:{line:34,column:3}},line:21},4:{name:"closeWindow",decl:{start:{line:36,column:16},end:{line:36,column:27}},loc:{start:{line:36,column:30},end:{line:51,column:1}},line:36},5:{name:"(anonymous_5)",decl:{start:{line:38,column:9},end:{line:38,column:10}},loc:{start:{line:38,column:39},end:{line:50,column:3}},line:38},6:{name:"(anonymous_6)",decl:{start:{line:44,column:47},end:{line:44,column:48}},loc:{start:{line:44,column:52},end:{line:44,column:103}},line:44},7:{name:"(anonymous_7)",decl:{start:{line:44,column:109},end:{line:44,column:110}},loc:{start:{line:44,column:118},end:{line:49,column:5}},line:44}},branchMap:{0:{loc:{start:{line:4,column:10},end:{line:4,column:79}},type:"cond-expr",locations:[{start:{line:4,column:63},end:{line:4,column:75}},{start:{line:4,column:78},end:{line:4,column:79}}],line:4},1:{loc:{start:{line:4,column:10},end:{line:4,column:60}},type:"binary-expr",locations:[{start:{line:4,column:10},end:{line:4,column:30}},{start:{line:4,column:34},end:{line:4,column:60}}],line:4},2:{loc:{start:{line:14,column:4},end:{line:14,column:15}},type:"default-arg",locations:[{start:{line:14,column:9},end:{line:14,column:15}}],line:14},3:{loc:{start:{line:26,column:19},end:{line:26,column:69}},type:"cond-expr",locations:[{start:{line:26,column:42},end:{line:26,column:44}},{start:{line:26,column:47},end:{line:26,column:69}}],line:26},4:{loc:{start:{line:37,column:11},end:{line:37,column:83}},type:"cond-expr",locations:[{start:{line:37,column:64},end:{line:37,column:76}},{start:{line:37,column:79},end:{line:37,column:83}}],line:37},5:{loc:{start:{line:37,column:11},end:{line:37,column:61}},type:"binary-expr",locations:[{start:{line:37,column:11},end:{line:37,column:31}},{start:{line:37,column:35},end:{line:37,column:61}}],line:37},6:{loc:{start:{line:44,column:52},end:{line:44,column:103}},type:"binary-expr",locations:[{start:{line:44,column:52},end:{line:44,column:67}},{start:{line:44,column:71},end:{line:44,column:82}},{start:{line:44,column:86},end:{line:44,column:103}}],line:44}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0],3:[0,0],4:[0,0],5:[0,0],6:[0,0,0]},inputSourceMap:{version:3,names:["v4","uuid","getTopmostModal","getWindows","timeout","t","arguments","length","undefined","Promise","resolve","setTimeout","defaults","isModal","isResizable","shouldCloseOnEsc","openWindow","_ref","id","data","withDefaults","dispatch","getState","state","windowData","focusParent","type","closeWindow","all","filter","w","parent","map","_ref2"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/actions.ts"],mappings:"AAAA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;AAGjC,SAASC,eAAe,EAAEC,UAAU,QAAQ,aAAa;AAEzD,MAAMC,OAAO,GAAG,SAAAA,CAAA;EAAA,IAACC,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,OAAK,IAAIG,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,OAAO,EAAEL,CAAC,CAAC,CAAC;AAAA;AAE3E,MAAMO,QAA6B,GAAG;EACpCC,OAAO,EAAE,IAAI;EACbC,WAAW,EAAE,IAAI;EACjBC,gBAAgB,EAAE;AACpB,CAAC;AAED,OAAO,SAASC,UAAUA,CAAAC,IAAA,EAGqD;EAAA,IAHF;IAC3EC,EAAE,GAAGjB,IAAI,CAAC,CAAC;IACX,GAAGkB;EAC4B,CAAC,GAAAF,IAAA;EAChC,MAAMG,YAAY,GAAG;IAAE,GAAGR,QAAQ;IAAE,GAAGO;EAAK,CAAC;EAC7C,OAAO,OAAOE,QAAQ,EAAEC,QAAQ,KAAK;IACnC,MAAMC,KAAK,GAAGD,QAAQ,CAAC,CAAC;IACxB,MAAME,UAAU,GAAG;MACjB,GAAGJ,YAAY;MACfF,EAAE;MACFO,WAAW,EAAEL,YAAY,CAACP,OAAO,GAAGK,EAAE,GAAGhB,eAAe,CAACqB,KAAK;IAChE,CAAC;IAED,MAAMnB,OAAO,CAAC,EAAE,CAAC;IACjBiB,QAAQ,CAAC;MAAEK,IAAI,EAAE,aAAa;MAAEF;IAAW,CAAC,CAAC;IAC7C,OAAOA,UAAU;EACnB,CAAC;AACH;AAEA,OAAO,SAASG,WAAWA,CAAA,EAA8B;EAAA,IAA7BT,EAAU,GAAAZ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAC3C,OAAO,OAAOe,QAAQ,EAAEC,QAAQ,KAAK;IACnC,MAAMC,KAAK,GAAGD,QAAQ,CAAC,CAAC;IACxBD,QAAQ,CAAC;MAAEK,IAAI,EAAE,cAAc;MAAER;IAAG,CAAC,CAAC;IACtC,MAAMT,OAAO,CAACmB,GAAG,CACfzB,UAAU,CAACoB,KAAK,CAAC,CACdM,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,MAAM,KAAKb,EAAE,IAAIY,CAAC,CAACZ,EAAE,KAAKA,EAAE,IAAIY,CAAC,CAACZ,EAAE,KAAKY,CAAC,CAACC,MAAM,CAAC,CAClEC,GAAG,CAACC,KAAA;MAAA,IAAC;QAAEf;MAAG,CAAC,GAAAe,KAAA;MAAA,OAAKZ,QAAQ,CAACM,WAAW,CAACT,EAAE,CAAC,CAAC;IAAA,EAC9C,CAAC;EACH,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2bb3b97c1bd893c300604f0472ae4ea24260c8f4"});var actualCoverage=coverage[path];return cov_11jza4j3r5=function(){return actualCoverage},actualCoverage}cov_11jza4j3r5(),cov_11jza4j3r5().s[0]++;const timeout=function(){cov_11jza4j3r5().f[0]++;let t=(cov_11jza4j3r5().s[1]++,cov_11jza4j3r5().b[1][0]++,arguments.length>0&&(cov_11jza4j3r5().b[1][1]++,void 0!==arguments[0])?(cov_11jza4j3r5().b[0][0]++,arguments[0]):(cov_11jza4j3r5().b[0][1]++,0));return cov_11jza4j3r5().s[2]++,new Promise((resolve=>(cov_11jza4j3r5().f[1]++,cov_11jza4j3r5().s[3]++,setTimeout(resolve,t))))},defaults=(cov_11jza4j3r5().s[4]++,{isModal:!0,isResizable:!0,shouldCloseOnEsc:!0});function openWindow(_ref){cov_11jza4j3r5().f[2]++;let{id=(cov_11jza4j3r5().b[2][0]++,(0,v4.A)()),...data}=(cov_11jza4j3r5().s[5]++,_ref);const withDefaults=(cov_11jza4j3r5().s[6]++,{...defaults,...data});return cov_11jza4j3r5().s[7]++,async(dispatch,getState)=>{cov_11jza4j3r5().f[3]++;const state=(cov_11jza4j3r5().s[8]++,getState()),windowData=(cov_11jza4j3r5().s[9]++,{...withDefaults,id,focusParent:withDefaults.isModal?(cov_11jza4j3r5().b[3][0]++,id):(cov_11jza4j3r5().b[3][1]++,getTopmostModal(state))});return cov_11jza4j3r5().s[10]++,await timeout(50),cov_11jza4j3r5().s[11]++,dispatch({type:"OPEN_WINDOW",windowData}),cov_11jza4j3r5().s[12]++,windowData}}function closeWindow(){cov_11jza4j3r5().f[4]++;let id=(cov_11jza4j3r5().s[13]++,cov_11jza4j3r5().b[5][0]++,arguments.length>0&&(cov_11jza4j3r5().b[5][1]++,void 0!==arguments[0])?(cov_11jza4j3r5().b[4][0]++,arguments[0]):(cov_11jza4j3r5().b[4][1]++,null));return cov_11jza4j3r5().s[14]++,async(dispatch,getState)=>{cov_11jza4j3r5().f[5]++;const state=(cov_11jza4j3r5().s[15]++,getState());cov_11jza4j3r5().s[16]++,dispatch({type:"CLOSE_WINDOW",id}),cov_11jza4j3r5().s[17]++,await Promise.all(getWindows(state).filter((w=>(cov_11jza4j3r5().f[6]++,cov_11jza4j3r5().s[18]++,cov_11jza4j3r5().b[6][0]++,w.parent===id&&(cov_11jza4j3r5().b[6][1]++,w.id!==id)&&(cov_11jza4j3r5().b[6][2]++,w.id!==w.parent)))).map((_ref2=>{cov_11jza4j3r5().f[7]++;let{id}=(cov_11jza4j3r5().s[19]++,_ref2);return cov_11jza4j3r5().s[20]++,dispatch(closeWindow(id))})))}}var lodash=__webpack_require__("./node_modules/lodash/lodash.js");function cov_76dlciu03(){var path="/home/runner/work/nk-windows/nk-windows/src/store/combine.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6569886d55b07bc5c4c54a62e25b3fe0a8533b4d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/combine.ts",statementMap:{0:{start:{line:2,column:2},end:{line:5,column:10}},1:{start:{line:2,column:32},end:{line:5,column:9}},2:{start:{line:2,column:86},end:{line:5,column:3}}},fnMap:{0:{name:"combine",decl:{start:{line:1,column:16},end:{line:1,column:23}},loc:{start:{line:1,column:34},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:2,column:9},end:{line:2,column:10}},loc:{start:{line:2,column:32},end:{line:5,column:9}},line:2},2:{name:"(anonymous_2)",decl:{start:{line:2,column:61},end:{line:2,column:62}},loc:{start:{line:2,column:86},end:{line:5,column:3}},line:2}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,names:["combine","reducers","prevState","action","Object","keys","reduce","previousValue","key"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/combine.ts"],mappings:"AAMA,OAAO,SAASA,OAAOA,CAA8BC,QAAwB,EAAK;EAChF,OAAQ,CAACC,SAAS,EAAEC,MAAM,KACxBC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAACK,MAAM,CAC1B,CAACC,aAAa,EAAEC,GAAG,MAAM;IACvB,GAAGD,aAAa;IAChB,CAACC,GAAG,GAAGP,QAAQ,CAACO,GAAG,CAAC,CAACN,SAAS,GAAGM,GAAG,CAAC,EAAEL,MAAM;EAC/C,CAAC,CAAC,EACF,CAAC,CACH,CAAC;AACL",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6569886d55b07bc5c4c54a62e25b3fe0a8533b4d"});var actualCoverage=coverage[path];return cov_76dlciu03=function(){return actualCoverage},actualCoverage}function cov_i8lxl3k8t(){var path="/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts",statementMap:{0:{start:{line:4,column:2},end:{line:4,column:40}},1:{start:{line:4,column:26},end:{line:4,column:38}},2:{start:{line:6,column:16},end:{line:23,column:1}},3:{start:{line:7,column:16},end:{line:7,column:86}},4:{start:{line:8,column:15},end:{line:8,column:62}},5:{start:{line:9,column:2},end:{line:22,column:3}},6:{start:{line:11,column:6},end:{line:11,column:16}},7:{start:{line:13,column:29},end:{line:13,column:77}},8:{start:{line:13,column:47},end:{line:13,column:76}},9:{start:{line:14,column:6},end:{line:16,column:7}},10:{start:{line:15,column:8},end:{line:15,column:93}},11:{start:{line:15,column:37},end:{line:15,column:91}},12:{start:{line:17,column:6},end:{line:17,column:45}},13:{start:{line:19,column:6},end:{line:19,column:43}},14:{start:{line:21,column:6},end:{line:21,column:21}},15:{start:{line:24,column:14},end:{line:39,column:1}},16:{start:{line:25,column:14},end:{line:25,column:84}},17:{start:{line:26,column:15},end:{line:26,column:62}},18:{start:{line:27,column:2},end:{line:38,column:3}},19:{start:{line:29,column:6},end:{line:29,column:16}},20:{start:{line:31,column:6},end:{line:31,column:99}},21:{start:{line:33,column:6},end:{line:33,column:39}},22:{start:{line:35,column:6},end:{line:35,column:74}},23:{start:{line:37,column:6},end:{line:37,column:19}},24:{start:{line:40,column:23},end:{line:43,column:2}}},fnMap:{0:{name:"withoutId",decl:{start:{line:3,column:16},end:{line:3,column:25}},loc:{start:{line:3,column:35},end:{line:5,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:4,column:20},end:{line:4,column:21}},loc:{start:{line:4,column:26},end:{line:4,column:38}},line:4},2:{name:"(anonymous_2)",decl:{start:{line:6,column:16},end:{line:6,column:17}},loc:{start:{line:6,column:28},end:{line:23,column:1}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:13,column:42},end:{line:13,column:43}},loc:{start:{line:13,column:47},end:{line:13,column:76}},line:13},4:{name:"(anonymous_4)",decl:{start:{line:15,column:27},end:{line:15,column:28}},loc:{start:{line:15,column:37},end:{line:15,column:91}},line:15},5:{name:"(anonymous_5)",decl:{start:{line:24,column:14},end:{line:24,column:15}},loc:{start:{line:24,column:26},end:{line:39,column:1}},line:24}},branchMap:{0:{loc:{start:{line:7,column:16},end:{line:7,column:86}},type:"cond-expr",locations:[{start:{line:7,column:69},end:{line:7,column:81}},{start:{line:7,column:84},end:{line:7,column:86}}],line:7},1:{loc:{start:{line:7,column:16},end:{line:7,column:66}},type:"binary-expr",locations:[{start:{line:7,column:16},end:{line:7,column:36}},{start:{line:7,column:40},end:{line:7,column:66}}],line:7},2:{loc:{start:{line:8,column:15},end:{line:8,column:62}},type:"cond-expr",locations:[{start:{line:8,column:38},end:{line:8,column:50}},{start:{line:8,column:53},end:{line:8,column:62}}],line:8},3:{loc:{start:{line:9,column:2},end:{line:22,column:3}},type:"switch",locations:[{start:{line:10,column:4},end:{line:11,column:16}},{start:{line:12,column:4},end:{line:17,column:45}},{start:{line:18,column:4},end:{line:19,column:43}},{start:{line:20,column:4},end:{line:21,column:21}}],line:9},4:{loc:{start:{line:14,column:6},end:{line:16,column:7}},type:"if",locations:[{start:{line:14,column:6},end:{line:16,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:14},5:{loc:{start:{line:15,column:37},end:{line:15,column:91}},type:"cond-expr",locations:[{start:{line:15,column:65},end:{line:15,column:82}},{start:{line:15,column:85},end:{line:15,column:91}}],line:15},6:{loc:{start:{line:25,column:14},end:{line:25,column:84}},type:"cond-expr",locations:[{start:{line:25,column:67},end:{line:25,column:79}},{start:{line:25,column:82},end:{line:25,column:84}}],line:25},7:{loc:{start:{line:25,column:14},end:{line:25,column:64}},type:"binary-expr",locations:[{start:{line:25,column:14},end:{line:25,column:34}},{start:{line:25,column:38},end:{line:25,column:64}}],line:25},8:{loc:{start:{line:26,column:15},end:{line:26,column:62}},type:"cond-expr",locations:[{start:{line:26,column:38},end:{line:26,column:50}},{start:{line:26,column:53},end:{line:26,column:62}}],line:26},9:{loc:{start:{line:27,column:2},end:{line:38,column:3}},type:"switch",locations:[{start:{line:28,column:4},end:{line:29,column:16}},{start:{line:30,column:4},end:{line:31,column:99}},{start:{line:32,column:4},end:{line:33,column:39}},{start:{line:34,column:4},end:{line:35,column:74}},{start:{line:36,column:4},end:{line:37,column:19}}],line:27},10:{loc:{start:{line:31,column:13},end:{line:31,column:98}},type:"cond-expr",locations:[{start:{line:31,column:52},end:{line:31,column:57}},{start:{line:31,column:60},end:{line:31,column:98}}],line:31},11:{loc:{start:{line:35,column:13},end:{line:35,column:73}},type:"cond-expr",locations:[{start:{line:35,column:38},end:{line:35,column:65}},{start:{line:35,column:68},end:{line:35,column:73}}],line:35}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0,0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,names:["uniq","without","combine","withoutId","arr","id","filter","el","windows","arguments","length","undefined","action","type","existingWindow","find","w","windowData","map","window","order","state","includes","reducer"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts"],mappings:"AAAA,SAASA,IAAI,EAAEC,OAAO,QAAQ,QAAQ;AAItC,SAASC,OAAO,QAAQ,WAAW;AAEnC,OAAO,SAASC,SAASA,CAAkCC,GAAQ,EAAEC,EAAW,EAAO;EACrF,OAAOD,GAAG,CAACE,MAAM,CAAEC,EAAE,IAAKF,EAAE,KAAKE,EAAE,CAACF,EAAE,CAAC;AACzC;AAEA,MAAMG,OAAsC,GAAG,SAAAA,CAAA,EAA0B;EAAA,IAAzBA,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAClE,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAK,eAAe;MAClB,OAAO,EAAE;IACX,KAAK,aAAa;MAChB,MAAMC,cAAc,GAAGN,OAAO,CAACO,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACX,EAAE,KAAKO,MAAM,CAACK,UAAU,CAACZ,EAAE,CAAC;MACzE,IAAIS,cAAc,EAAE;QAClB,OAAON,OAAO,CAACU,GAAG,CAAEC,MAAM,IAAMA,MAAM,KAAKL,cAAc,GAAGF,MAAM,CAACK,UAAU,GAAGE,MAAO,CAAC;MAC1F;MACA,OAAO,CAAC,GAAGX,OAAO,EAAEI,MAAM,CAACK,UAAU,CAAC;IACxC,KAAK,cAAc;MACjB,OAAOd,SAAS,CAACK,OAAO,EAAEI,MAAM,CAACP,EAAE,CAAC;IACtC;MACE,OAAOG,OAAO;EAClB;AACF,CAAC;AAED,MAAMY,KAAkC,GAAG,SAAAA,CAAA,EAAwB;EAAA,IAAvBC,KAAK,GAAAZ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAC5D,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAK,eAAe;MAClB,OAAO,EAAE;IACX,KAAK,aAAa;MAChB,OAAOQ,KAAK,CAACC,QAAQ,CAACV,MAAM,CAACK,UAAU,CAACZ,EAAE,CAAC,GAAGgB,KAAK,GAAGrB,IAAI,CAAC,CAACY,MAAM,CAACK,UAAU,CAACZ,EAAE,EAAE,GAAGgB,KAAK,CAAC,CAAC;IAC9F,KAAK,cAAc;MACjB,OAAOpB,OAAO,CAACoB,KAAK,EAAET,MAAM,CAACP,EAAE,CAAC;IAClC,KAAK,cAAc;MACjB,OAAOO,MAAM,CAACP,EAAE,KAAKgB,KAAK,CAAC,CAAC,CAAC,GAAGrB,IAAI,CAAC,CAACY,MAAM,CAACP,EAAE,EAAE,GAAGgB,KAAK,CAAC,CAAC,GAAGA,KAAK;IACrE;MACE,OAAOA,KAAK;EAChB;AACF,CAAC;AAED,OAAO,MAAME,OAAO,GAAGrB,OAAO,CAAsC;EAAEM,OAAO;EAAEY;AAAM,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"94fe1927c2943a4b5dc706d32756d01bc0c50e8b"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"94fe1927c2943a4b5dc706d32756d01bc0c50e8b"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_i8lxl3k8t=function(){return actualCoverage},actualCoverage}cov_76dlciu03(),cov_i8lxl3k8t(),cov_i8lxl3k8t().s[2]++;cov_i8lxl3k8t().s[15]++;const reducer=(cov_i8lxl3k8t().s[24]++,function combine(reducers){return cov_76dlciu03().f[0]++,cov_76dlciu03().s[0]++,(prevState,action)=>(cov_76dlciu03().f[1]++,cov_76dlciu03().s[1]++,Object.keys(reducers).reduce(((previousValue,key)=>(cov_76dlciu03().f[2]++,cov_76dlciu03().s[2]++,{...previousValue,[key]:reducers[key](prevState?.[key],action)})),{}))}({windows:function(){cov_i8lxl3k8t().f[2]++;let windows=(cov_i8lxl3k8t().s[3]++,cov_i8lxl3k8t().b[1][0]++,arguments.length>0&&(cov_i8lxl3k8t().b[1][1]++,void 0!==arguments[0])?(cov_i8lxl3k8t().b[0][0]++,arguments[0]):(cov_i8lxl3k8t().b[0][1]++,[])),action=(cov_i8lxl3k8t().s[4]++,arguments.length>1?(cov_i8lxl3k8t().b[2][0]++,arguments[1]):void cov_i8lxl3k8t().b[2][1]++);switch(cov_i8lxl3k8t().s[5]++,action.type){case"CLEAR_WINDOWS":return cov_i8lxl3k8t().b[3][0]++,cov_i8lxl3k8t().s[6]++,[];case"OPEN_WINDOW":cov_i8lxl3k8t().b[3][1]++;const existingWindow=(cov_i8lxl3k8t().s[7]++,windows.find((w=>(cov_i8lxl3k8t().f[3]++,cov_i8lxl3k8t().s[8]++,w.id===action.windowData.id))));return cov_i8lxl3k8t().s[9]++,existingWindow?(cov_i8lxl3k8t().b[4][0]++,cov_i8lxl3k8t().s[10]++,windows.map((window=>(cov_i8lxl3k8t().f[4]++,cov_i8lxl3k8t().s[11]++,window===existingWindow?(cov_i8lxl3k8t().b[5][0]++,action.windowData):(cov_i8lxl3k8t().b[5][1]++,window))))):(cov_i8lxl3k8t().b[4][1]++,cov_i8lxl3k8t().s[12]++,[...windows,action.windowData]);case"CLOSE_WINDOW":return cov_i8lxl3k8t().b[3][2]++,cov_i8lxl3k8t().s[13]++,function withoutId(arr,id){return cov_i8lxl3k8t().f[0]++,cov_i8lxl3k8t().s[0]++,arr.filter((el=>(cov_i8lxl3k8t().f[1]++,cov_i8lxl3k8t().s[1]++,id!==el.id)))}(windows,action.id);default:return cov_i8lxl3k8t().b[3][3]++,cov_i8lxl3k8t().s[14]++,windows}},order:function(){cov_i8lxl3k8t().f[5]++;let state=(cov_i8lxl3k8t().s[16]++,cov_i8lxl3k8t().b[7][0]++,arguments.length>0&&(cov_i8lxl3k8t().b[7][1]++,void 0!==arguments[0])?(cov_i8lxl3k8t().b[6][0]++,arguments[0]):(cov_i8lxl3k8t().b[6][1]++,[])),action=(cov_i8lxl3k8t().s[17]++,arguments.length>1?(cov_i8lxl3k8t().b[8][0]++,arguments[1]):void cov_i8lxl3k8t().b[8][1]++);switch(cov_i8lxl3k8t().s[18]++,action.type){case"CLEAR_WINDOWS":return cov_i8lxl3k8t().b[9][0]++,cov_i8lxl3k8t().s[19]++,[];case"OPEN_WINDOW":return cov_i8lxl3k8t().b[9][1]++,cov_i8lxl3k8t().s[20]++,state.includes(action.windowData.id)?(cov_i8lxl3k8t().b[10][0]++,state):(cov_i8lxl3k8t().b[10][1]++,(0,lodash.uniq)([action.windowData.id,...state]));case"CLOSE_WINDOW":return cov_i8lxl3k8t().b[9][2]++,cov_i8lxl3k8t().s[21]++,(0,lodash.without)(state,action.id);case"FOCUS_WINDOW":return cov_i8lxl3k8t().b[9][3]++,cov_i8lxl3k8t().s[22]++,action.id!==state[0]?(cov_i8lxl3k8t().b[11][0]++,(0,lodash.uniq)([action.id,...state])):(cov_i8lxl3k8t().b[11][1]++,state);default:return cov_i8lxl3k8t().b[9][4]++,cov_i8lxl3k8t().s[23]++,state}}}));var react=__webpack_require__("./node_modules/react/index.js");function cov_b5tu1uyjg(){var path="/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"9cd028bfee04eb85b0e7b6b9f9f23c825f256333"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:38}},1:{start:{line:6,column:17},end:{line:6,column:25}},2:{start:{line:7,column:28},end:{line:7,column:61}},3:{start:{line:8,column:2},end:{line:10,column:14}},4:{start:{line:9,column:4},end:{line:9,column:27}},5:{start:{line:11,column:19},end:{line:11,column:56}},6:{start:{line:11,column:37},end:{line:11,column:51}},7:{start:{line:12,column:25},end:{line:12,column:127}},8:{start:{line:12,column:47},end:{line:12,column:122}},9:{start:{line:13,column:2},end:{line:13,column:33}}},fnMap:{0:{name:"isThunkAction",decl:{start:{line:2,column:9},end:{line:2,column:22}},loc:{start:{line:2,column:31},end:{line:4,column:1}},line:2},1:{name:"useReducerWithThunk",decl:{start:{line:5,column:16},end:{line:5,column:35}},loc:{start:{line:5,column:59},end:{line:14,column:1}},line:5},2:{name:"(anonymous_2)",decl:{start:{line:8,column:12},end:{line:8,column:13}},loc:{start:{line:8,column:18},end:{line:10,column:3}},line:8},3:{name:"(anonymous_3)",decl:{start:{line:11,column:31},end:{line:11,column:32}},loc:{start:{line:11,column:37},end:{line:11,column:51}},line:11},4:{name:"(anonymous_4)",decl:{start:{line:12,column:37},end:{line:12,column:38}},loc:{start:{line:12,column:47},end:{line:12,column:122}},line:12}},branchMap:{0:{loc:{start:{line:12,column:47},end:{line:12,column:122}},type:"cond-expr",locations:[{start:{line:12,column:71},end:{line:12,column:103}},{start:{line:12,column:106},end:{line:12,column:122}}],line:12}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useCallback","useEffect","useReducer","useRef","isThunkAction","action","useReducerWithThunk","reducer","initialState","_state","state","dispatch","current","getState","customDispatch"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts"],mappings:"AAAA,SAA+CA,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,MAAM,QAAQ,OAAO;AAWxG,SAASC,aAAaA,CAAyCC,MAA4C,EAA+B;EACxI,OAAO,OAAOA,MAAM,KAAK,UAAU;AACrC;AAIA,OAAO,SAASC,mBAAmBA,CAAsCC,OAAU,EAAEC,YAA6B,EAAuB;EACvI,MAAMC,MAAM,GAAGN,MAAM,CAAkB,CAAC;EACxC,MAAM,CAACO,KAAK,EAAEC,QAAQ,CAAC,GAAGT,UAAU,CAACK,OAAO,EAAEC,YAAY,CAAC;EAE3DP,SAAS,CAAC,MAAM;IACdQ,MAAM,CAACG,OAAO,GAAGF,KAAK;EACxB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,MAAMG,QAAQ,GAAGb,WAAW,CAAC,MAAMS,MAAM,CAACG,OAAO,EAAE,EAAE,CAAC;EACtD,MAAME,cAAc,GAAGd,WAAW,CAAEK,MAAM,IAAMD,aAAa,CAACC,MAAM,CAAC,GAAGA,MAAM,CAACS,cAAc,EAAED,QAAQ,CAAC,GAAGF,QAAQ,CAACN,MAAM,CAAE,EAAE,EAAE,CAAC;EAEjI,OAAO,CAACK,KAAK,EAAEI,cAAc,CAAqB;AACpD",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9cd028bfee04eb85b0e7b6b9f9f23c825f256333"});var actualCoverage=coverage[path];return cov_b5tu1uyjg=function(){return actualCoverage},actualCoverage}function useReducerWithThunk(reducer,initialState){cov_b5tu1uyjg().f[1]++;const _state=(cov_b5tu1uyjg().s[1]++,(0,react.useRef)()),[state,dispatch]=(cov_b5tu1uyjg().s[2]++,(0,react.useReducer)(reducer,initialState));cov_b5tu1uyjg().s[3]++,(0,react.useEffect)((()=>{cov_b5tu1uyjg().f[2]++,cov_b5tu1uyjg().s[4]++,_state.current=state}),[state]);const getState=(cov_b5tu1uyjg().s[5]++,(0,react.useCallback)((()=>(cov_b5tu1uyjg().f[3]++,cov_b5tu1uyjg().s[6]++,_state.current)),[])),customDispatch=(cov_b5tu1uyjg().s[7]++,(0,react.useCallback)((action=>(cov_b5tu1uyjg().f[4]++,cov_b5tu1uyjg().s[8]++,function isThunkAction(action){return cov_b5tu1uyjg().f[0]++,cov_b5tu1uyjg().s[0]++,"function"==typeof action}(action)?(cov_b5tu1uyjg().b[0][0]++,action(customDispatch,getState)):(cov_b5tu1uyjg().b[0][1]++,dispatch(action)))),[]));return cov_b5tu1uyjg().s[9]++,[state,customDispatch]}function cov_2c2a4fp023(){var path="/home/runner/work/nk-windows/nk-windows/src/store/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0d1001e1c64b40177cb3143913c791bde2be158a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/store/index.ts"],mappings:"AAAA,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,oBAAoB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d1001e1c64b40177cb3143913c791bde2be158a"});var actualCoverage=coverage[path];return cov_2c2a4fp023=function(){return actualCoverage},actualCoverage}cov_b5tu1uyjg(),cov_2c2a4fp023()},"./src/types.ts":()=>{function cov_1tsudw29za(){var path="/home/runner/work/nk-windows/nk-windows/src/types.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c9a3c116afb7ac0cb3345e88ff65add46d176419"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/types.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/types.ts"],mappings:"",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c9a3c116afb7ac0cb3345e88ff65add46d176419"});var actualCoverage=coverage[path];return cov_1tsudw29za=function(){return actualCoverage},actualCoverage}cov_1tsudw29za()},"./src/demo.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Defult:()=>Defult,__namedExportsOrder:()=>__namedExportsOrder,default:()=>demo_stories});var react=__webpack_require__("./node_modules/react/index.js"),loadable_esm=__webpack_require__("./node_modules/@loadable/component/dist/esm/loadable.esm.mjs"),dist=__webpack_require__("./node_modules/react-inspector/dist/index.mjs"),hooks=__webpack_require__("./src/hooks/index.ts"),src=__webpack_require__("./src/index.ts"),DemoWindowKind=__webpack_require__("./src/demo/DemoWindowKind.tsx");function cov_1jlk2eue2m(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"1b5ba21ccb83b1f79c58cc7bcf633f610469a91d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:12,column:6},end:{line:12,column:33}},2:{start:{line:13,column:18},end:{line:63,column:9}},3:{start:{line:13,column:32},end:{line:63,column:4}},4:{start:{line:64,column:2},end:{line:86,column:7}},5:{start:{line:64,column:98},end:{line:73,column:41}},6:{start:{line:67,column:19},end:{line:67,column:30}},7:{start:{line:77,column:19},end:{line:77,column:29}},8:{start:{line:83,column:19},end:{line:83,column:26}}},fnMap:{0:{name:"DebugButtons",decl:{start:{line:4,column:16},end:{line:4,column:28}},loc:{start:{line:4,column:35},end:{line:87,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:13,column:26},end:{line:13,column:27}},loc:{start:{line:13,column:32},end:{line:63,column:4}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:64,column:67},end:{line:64,column:68}},loc:{start:{line:64,column:98},end:{line:73,column:41}},line:64},3:{name:"(anonymous_3)",decl:{start:{line:67,column:13},end:{line:67,column:14}},loc:{start:{line:67,column:19},end:{line:67,column:30}},line:67},4:{name:"(anonymous_4)",decl:{start:{line:77,column:13},end:{line:77,column:14}},loc:{start:{line:77,column:19},end:{line:77,column:29}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:83,column:13},end:{line:83,column:14}},loc:{start:{line:83,column:19},end:{line:83,column:26}},line:83}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{},inputSourceMap:{version:3,names:["React","useMemo","useWindowManager","DemoWindowKind","DebugButtons","_ref","currentId","open","close","closeAll","buttons","undefined","title","kind","danger","isMaximized","isResizable","isModal","lazy","layoutData","width","height","top","left","right","bottom","id","parent","createElement","map","props","index","key","onClick","style","fontWeight","color","margin","JSON","stringify","disabled","type"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,gBAAgB,QAAQ,UAAU;AAE3C,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAAuD;EAAA,IAAtD;IAAEC;EAAoC,CAAC,GAAAD,IAAA;EAClE,MAAM;IAAEE,IAAI;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGP,gBAAgB,CAA0BI,SAAS,CAAC;EAEtF,MAAMI,OAA8B,GAAGT,OAAO,CAC5C,MAAM,CACJU,SAAS,EACT;IAAEC,KAAK,EAAE;EAAa,CAAC,EACvB;IAAEA,KAAK,EAAE,QAAQ;IAAEC,IAAI,EAAEV,cAAc,CAACW;EAAO,CAAC,EAChD;IAAEF,KAAK,EAAE,mBAAmB;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEC,WAAW,EAAE;EAAK,CAAC,EAC9E;IAAEH,KAAK,EAAE,kCAAkC;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEC,WAAW,EAAE,IAAI;IAAEC,WAAW,EAAE;EAAM,CAAC,EACjH;IAAEJ,KAAK,EAAE,uBAAuB;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEE,WAAW,EAAE;EAAM,CAAC,EACnF;IAAEJ,KAAK,EAAE,WAAW;IAAEK,OAAO,EAAE;EAAM,CAAC,EACtC;IAAEL,KAAK,EAAE,qBAAqB;IAAEC,IAAI,EAAEV,cAAc,CAACe;EAAK,CAAC,EAC3D;IAAEN,KAAK,EAAE,cAAc;IAAEC,IAAI,EAAEV,cAAc,CAACe,IAAI;IAAEC,UAAU,EAAE;MAAEC,KAAK,EAAE,GAAG;MAAEC,MAAM,EAAE;IAAI;EAAE,CAAC,EAC7F;IAAET,KAAK,EAAE,+BAA+B;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEK,UAAU,EAAE;MAAEC,KAAK,EAAE,IAAI;MAAEC,MAAM,EAAE;IAAK;EAAE,CAAC,EAClH;IAAET,KAAK,EAAG,kBAAiB;IAAEO,UAAU,EAAE;MAAEG,GAAG,EAAE,EAAE;MAAEC,IAAI,EAAE,GAAG;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAI;EAAE,CAAC,EACzF;IAAEb,KAAK,EAAG,UAAS;IAAEc,EAAE,EAAE,OAAO;IAAEC,MAAM,EAAE;EAAK,CAAC,CACjD,EACD,EACF,CAAC;EAED,oBACE3B,KAAA,CAAA4B,aAAA,cACGlB,OAAO,CAACmB,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,kBACxB/B,KAAA,CAAA4B,aAAA;IAAMI,GAAG,EAAED;EAAM,gBACf/B,KAAA,CAAA4B,aAAA;IAAQK,OAAO,EAAEA,CAAA,KAAM1B,IAAI,CAACuB,KAAK,CAAE;IAACI,KAAK,EAAE;MAAEC,UAAU,EAAE,MAAM;MAAEC,KAAK,EAAE,OAAO;MAAEC,MAAM,EAAE;IAAO;EAAE,GAAC,MAC7F,EAACC,IAAI,CAACC,SAAS,CAACT,KAAK,CAAC,EAAC,GACrB,CACJ,CACP,CAAC,eACF9B,KAAA,CAAA4B,aAAA;IAAQM,KAAK,EAAE;MAAEG,MAAM,EAAE;IAAO,CAAE;IAACJ,OAAO,EAAEA,CAAA,KAAMxB,QAAQ,CAAC;EAAE,GAAC,WAEtD,CAAC,eACTT,KAAA,CAAA4B,aAAA;IAAQM,KAAK,EAAE;MAAEG,MAAM,EAAE;IAAO,CAAE;IAACG,QAAQ,EAAE,CAAClC,SAAU;IAAC2B,OAAO,EAAEA,CAAA,KAAMzB,KAAK,CAAC;EAAE,GAAC,OAEzE,CAAC,eACTR,KAAA,CAAA4B,aAAA,2BACE5B,KAAA,CAAA4B,aAAA,YAAG,kCAAmC,CAAC,eACvC5B,KAAA,CAAA4B,aAAA;IAAOa,IAAI,EAAC;EAAM,CAAE,CACjB,CACF,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b5ba21ccb83b1f79c58cc7bcf633f610469a91d"});var actualCoverage=coverage[path];return cov_1jlk2eue2m=function(){return actualCoverage},actualCoverage}function DebugButtons(_ref){cov_1jlk2eue2m().f[0]++;let{currentId}=(cov_1jlk2eue2m().s[0]++,_ref);const{open,close,closeAll}=(cov_1jlk2eue2m().s[1]++,(0,hooks.HM)(currentId)),buttons=(cov_1jlk2eue2m().s[2]++,(0,react.useMemo)((()=>(cov_1jlk2eue2m().f[1]++,cov_1jlk2eue2m().s[3]++,[void 0,{title:"with title"},{title:"danger",kind:DemoWindowKind.G.danger},{title:"danger, maximized",kind:DemoWindowKind.G.danger,isMaximized:!0},{title:"danger, maximized, non-resizable",kind:DemoWindowKind.G.danger,isMaximized:!0,isResizable:!1},{title:"danger, non-resizable",kind:DemoWindowKind.G.danger,isResizable:!1},{title:"not modal",isModal:!1},{title:"lazy loaded content",kind:DemoWindowKind.G.lazy},{title:"initial size",kind:DemoWindowKind.G.lazy,layoutData:{width:700,height:700}},{title:"minimal size (overflow fixed)",kind:DemoWindowKind.G.danger,layoutData:{width:7e3,height:7e3}},{title:"initial position",layoutData:{top:50,left:200,right:50,bottom:200}},{title:"fixed id",id:"fixed",parent:null}])),[]));return cov_1jlk2eue2m().s[4]++,react.createElement("div",null,buttons.map(((props,index)=>(cov_1jlk2eue2m().f[2]++,cov_1jlk2eue2m().s[5]++,react.createElement("span",{key:index},react.createElement("button",{onClick:()=>(cov_1jlk2eue2m().f[3]++,cov_1jlk2eue2m().s[6]++,open(props)),style:{fontWeight:"bold",color:"black",margin:".5em"}},"add(",JSON.stringify(props),")"))))),react.createElement("button",{style:{margin:".5em"},onClick:()=>(cov_1jlk2eue2m().f[4]++,cov_1jlk2eue2m().s[7]++,closeAll())},"close all"),react.createElement("button",{style:{margin:".5em"},disabled:!currentId,onClick:()=>(cov_1jlk2eue2m().f[5]++,cov_1jlk2eue2m().s[8]++,close())},"close"),react.createElement("div",null,react.createElement("p",null,"test focus and onscreen keyboard"),react.createElement("input",{type:"text"})))}cov_1jlk2eue2m();try{DebugButtons.displayName="DebugButtons",DebugButtons.__docgenInfo={description:"",displayName:"DebugButtons",props:{currentId:{defaultValue:null,description:"",name:"currentId",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/DebugButtons.tsx#DebugButtons"]={docgenInfo:DebugButtons.__docgenInfo,name:"DebugButtons",path:"src/demo/DebugButtons.tsx#DebugButtons"})}catch(__react_docgen_typescript_loader_error){}var demoDefaultContent=__webpack_require__("./src/demo/demoDefaultContent.tsx"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),OverflowContext=__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_2miyy1dhqg(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ede8392e8a4b0b5e3c125274734a33c0e00395b6"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx",statementMap:{0:{start:{line:4,column:29},end:{line:41,column:1}},1:{start:{line:5,column:26},end:{line:5,column:38}},2:{start:{line:9,column:6},end:{line:9,column:19}},3:{start:{line:10,column:21},end:{line:13,column:4}},4:{start:{line:14,column:21},end:{line:19,column:4}},5:{start:{line:20,column:2},end:{line:40,column:10}},6:{start:{line:30,column:19},end:{line:30,column:47}},7:{start:{line:30,column:32},end:{line:30,column:46}},8:{start:{line:33,column:19},end:{line:33,column:30}},9:{start:{line:34,column:42},end:{line:40,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:29},end:{line:4,column:30}},loc:{start:{line:4,column:35},end:{line:41,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:30,column:13},end:{line:30,column:14}},loc:{start:{line:30,column:19},end:{line:30,column:47}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:30,column:27},end:{line:30,column:28}},loc:{start:{line:30,column:32},end:{line:30,column:46}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:33,column:13},end:{line:33,column:14}},loc:{start:{line:33,column:19},end:{line:33,column:30}},line:33},4:{name:"(anonymous_4)",decl:{start:{line:34,column:24},end:{line:34,column:25}},loc:{start:{line:34,column:42},end:{line:40,column:7}},line:34}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","useState","useOverflow","OverflowDebug","data","setData","scrollToBottom","scrollToTop","className1","margin","filter","className2","position","top","bottom","fontWeight","createElement","Fragment","className","disabled","onClick","s","map","e","fontSize","key"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,WAAW,QAAQ,8CAA8C;AAE1E,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGJ,QAAQ,CAAC,EAAE,CAAC;EACpC,MAAM;IAAEK,cAAc;IAAEC;EAAY,CAAC,GAAGL,WAAW,CAAC,CAAC;EAErD,MAAMM,UAAU,GAAGV,GAAG,CAAC;IAAEW,MAAM,EAAE,MAAM;IAAEC,MAAM,EAAE;EAAY,CAAC,CAAC;EAC/D,MAAMC,UAAU,GAAGb,GAAG,CAAC;IAAEc,QAAQ,EAAE,QAAQ;IAAEC,GAAG,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAO,CAAC,CAAC;EACvF,oBACEf,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,qBACEjB,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,EAAEG,UAAU,CAAE;IAACQ,QAAQ,EAAE,CAACZ,WAAY;IAACa,OAAO,EAAEb;EAAY,GAAC,eAErF,CAAC,eACTP,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,EAAEG,UAAU,CAAE;IAACQ,QAAQ,EAAE,CAACb,cAAe;IAACc,OAAO,EAAEd;EAAe,GAAC,kBAE3F,CAAC,eACTN,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,CAAE;IAACY,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAEgB,CAAC,IAAK,CAAC,GAAGA,CAAC,EAAE,MAAM,CAAC;EAAE,GAAC,UAE1E,CAAC,eACTrB,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,CAAE;IAACY,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAC,EAAE;EAAE,GAAC,OAEvD,CAAC,EAERD,IAAI,CAACkB,GAAG,CAAEC,CAAC,iBACVvB,KAAA,CAAAgB,aAAA;IAAKE,SAAS,EAAEpB,GAAG,CAAC;MAAE0B,QAAQ,EAAE,KAAK;MAAEf,MAAM,EAAE;IAAM,CAAC,CAAE;IAACgB,GAAG,EAAEF;EAAE,GAC7DA,CACE,CACN,CACD,CAAC;AAEP,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ede8392e8a4b0b5e3c125274734a33c0e00395b6"});var actualCoverage=coverage[path];return cov_2miyy1dhqg=function(){return actualCoverage},actualCoverage}cov_2miyy1dhqg(),cov_2miyy1dhqg().s[0]++;const OverflowDebug=()=>{cov_2miyy1dhqg().f[0]++;const[data,setData]=(cov_2miyy1dhqg().s[1]++,(0,react.useState)([])),{scrollToBottom,scrollToTop}=(cov_2miyy1dhqg().s[2]++,(0,OverflowContext.s)()),className1=(cov_2miyy1dhqg().s[3]++,(0,emotion_css_esm.AH)({margin:".5em",filter:"invert(1)"})),className2=(cov_2miyy1dhqg().s[4]++,(0,emotion_css_esm.AH)({position:"sticky",top:10,bottom:10,fontWeight:"bold"}));return cov_2miyy1dhqg().s[5]++,react.createElement(react.Fragment,null,react.createElement("button",{className:(0,emotion_css_esm.cx)(className1,className2),disabled:!scrollToTop,onClick:scrollToTop},"scroll to top"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1,className2),disabled:!scrollToBottom,onClick:scrollToBottom},"scroll to bottom"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1),onClick:()=>(cov_2miyy1dhqg().f[1]++,cov_2miyy1dhqg().s[6]++,setData((s=>(cov_2miyy1dhqg().f[2]++,cov_2miyy1dhqg().s[7]++,[...s,"line"]))))},"add line"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1),onClick:()=>(cov_2miyy1dhqg().f[3]++,cov_2miyy1dhqg().s[8]++,setData([]))},"clear"),data.map((e=>(cov_2miyy1dhqg().f[4]++,cov_2miyy1dhqg().s[9]++,react.createElement("div",{className:(0,emotion_css_esm.AH)({fontSize:"3em",margin:"1em"}),key:e},e)))))};function cov_1b4zt2qgpf(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:10,column:14},end:{line:10,column:32}},10:{start:{line:11,column:12},end:{line:11,column:29}},11:{start:{line:12,column:2},end:{line:38,column:61}},12:{start:{line:15,column:20},end:{line:15,column:31}},13:{start:{line:19,column:8},end:{line:21,column:11}},14:{start:{line:20,column:10},end:{line:20,column:36}},15:{start:{line:22,column:8},end:{line:22,column:20}},16:{start:{line:27,column:8},end:{line:29,column:11}},17:{start:{line:28,column:10},end:{line:28,column:35}},18:{start:{line:30,column:8},end:{line:30,column:20}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"DemoContent",decl:{start:{line:9,column:9},end:{line:9,column:20}},loc:{start:{line:9,column:23},end:{line:39,column:1}},line:9},3:{name:"(anonymous_3)",decl:{start:{line:15,column:14},end:{line:15,column:15}},loc:{start:{line:15,column:20},end:{line:15,column:31}},line:15},4:{name:"(anonymous_4)",decl:{start:{line:18,column:14},end:{line:18,column:15}},loc:{start:{line:18,column:26},end:{line:23,column:7}},line:18},5:{name:"(anonymous_5)",decl:{start:{line:19,column:26},end:{line:19,column:27}},loc:{start:{line:19,column:47},end:{line:21,column:9}},line:19},6:{name:"(anonymous_6)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:26},end:{line:31,column:7}},line:26},7:{name:"(anonymous_7)",decl:{start:{line:27,column:26},end:{line:27,column:27}},loc:{start:{line:27,column:47},end:{line:29,column:9}},line:27}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","ObjectInspector","useViewportSize","useWindowContext","DebugButtons","DemoDefaultContent","OverflowDebug","DemoContent","ctx","v","createElement","_extends","buttons","title","action","close","Promise","resolve","reject","setTimeout","expandLevel","data","currentId","id"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx"],mappings:";AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,eAAe,QAAQ,UAAU;AAC1C,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,SAASC,WAAWA,CAAA,EAAG;EACrB,MAAMC,GAAG,GAAGL,gBAAgB,CAAC,CAAC;EAC9B,MAAMM,CAAC,GAAGP,eAAe,CAAC,CAAC;EAC3B,oBACEF,KAAA,CAAAU,aAAA,CAACL,kBAAkB,EAAAM,QAAA,KACbH,GAAG;IACPI,OAAO,EAAE,CACP;MAAEC,KAAK,EAAE,QAAQ;MAAEC,MAAM,EAAEA,CAAA,KAAMN,GAAG,CAACO,KAAK,CAAC;IAAE,CAAC,EAC9C;MACEF,KAAK,EAAE,SAAS;MAChBC,MAAM,EAAE,MAAAA,CAAA,KAAY;QAClB,MAAM,IAAIE,OAAO,CAAC,CAACC,OAAO,EAAEC,MAAM,KAAK;UACrCC,UAAU,CAACF,OAAO,EAAE,IAAI,CAAC;QAC3B,CAAC,CAAC;QACFT,GAAG,CAACO,KAAK,CAAC,CAAC;MACb;IACF,CAAC,EACD;MACEF,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAAA,CAAA,KAAY;QAClB,MAAM,IAAIE,OAAO,CAAC,CAACC,OAAO,EAAEC,MAAM,KAAK;UACrCC,UAAU,CAACD,MAAM,EAAE,IAAI,CAAC;QAC1B,CAAC,CAAC;QACFV,GAAG,CAACO,KAAK,CAAC,CAAC;MACb;IACF,CAAC;EACD,iBAEFf,KAAA,CAAAU,aAAA,CAACT,eAAe;IAACmB,WAAW,EAAE,CAAE;IAACC,IAAI,EAAEb,GAAG,CAACa;EAAK,CAAE,CAAC,eACnDrB,KAAA,CAAAU,aAAA,CAACN,YAAY;IAACkB,SAAS,EAAEd,GAAG,CAACa,IAAI,CAACE;EAAG,CAAE,CAAC,eACxCvB,KAAA,CAAAU,aAAA,CAACJ,aAAa,MAAE,CACE,CAAC;AAEzB;AAEA,eAAeC,WAAW",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"962af1ad2f57559bcb2c2008e3f6510ed2f29ca6"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"962af1ad2f57559bcb2c2008e3f6510ed2f29ca6"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1b4zt2qgpf=function(){return actualCoverage},actualCoverage}function _extends(){return cov_1b4zt2qgpf().f[0]++,cov_1b4zt2qgpf().s[0]++,_extends=Object.assign?(cov_1b4zt2qgpf().b[0][0]++,Object.assign.bind()):(cov_1b4zt2qgpf().b[0][1]++,function(target){cov_1b4zt2qgpf().f[1]++,cov_1b4zt2qgpf().s[1]++;for(var i=(cov_1b4zt2qgpf().s[2]++,1);i(cov_1b4zt2qgpf().f[3]++,cov_1b4zt2qgpf().s[12]++,ctx.close())},{title:"Success",action:async()=>{cov_1b4zt2qgpf().f[4]++,cov_1b4zt2qgpf().s[13]++,await new Promise(((resolve,reject)=>{cov_1b4zt2qgpf().f[5]++,cov_1b4zt2qgpf().s[14]++,setTimeout(resolve,2e3)})),cov_1b4zt2qgpf().s[15]++,ctx.close()}},{title:"Fail",action:async()=>{cov_1b4zt2qgpf().f[6]++,cov_1b4zt2qgpf().s[16]++,await new Promise(((resolve,reject)=>{cov_1b4zt2qgpf().f[7]++,cov_1b4zt2qgpf().s[17]++,setTimeout(reject,2e3)})),cov_1b4zt2qgpf().s[18]++,ctx.close()}}]}),react.createElement(dist.RT,{expandLevel:1,data:ctx.data}),react.createElement(DebugButtons,{currentId:ctx.data.id}),react.createElement(OverflowDebug,null))};function cov_19tlxd5f24(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"775f97c4decdbaa3649501952577eab8e788493e"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx",statementMap:{0:{start:{line:5,column:24},end:{line:10,column:2}},1:{start:{line:6,column:2},end:{line:6,column:58}},2:{start:{line:6,column:31},end:{line:6,column:56}},3:{start:{line:7,column:2},end:{line:7,column:37}},4:{start:{line:12,column:2},end:{line:17,column:3}},5:{start:{line:14,column:6},end:{line:14,column:70}},6:{start:{line:16,column:6},end:{line:16,column:65}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:33},end:{line:5,column:34}},loc:{start:{line:5,column:45},end:{line:8,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:6,column:20},end:{line:6,column:21}},loc:{start:{line:6,column:31},end:{line:6,column:56}},line:6},2:{name:"ContentGetter",decl:{start:{line:11,column:16},end:{line:11,column:29}},loc:{start:{line:11,column:37},end:{line:18,column:1}},line:11}},branchMap:{0:{loc:{start:{line:12,column:2},end:{line:17,column:3}},type:"switch",locations:[{start:{line:13,column:4},end:{line:14,column:70}},{start:{line:15,column:4},end:{line:16,column:65}}],line:12}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["loadable","React","DemoContent","DemoWindowKind","LazyDemoContent","Promise","resolve","setTimeout","fallback","createElement","ContentGetter","props","data","kind","lazy"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx"],mappings:"AAAA,OAAOA,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,eAAe,GAAGJ,QAAQ,CAC9B,YAAY;EACV,MAAM,IAAIK,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,OAAO,EAAE,IAAI,CAAC,CAAC;EACzD,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACpC,CAAC,EACD;EAAEE,QAAQ,eAAEP,KAAA,CAAAQ,aAAA,aAAI,YAAc;AAAE,CAClC,CAAC;AAED,OAAO,SAASC,aAAaA,CAACC,KAA2C,EAAE;EACzE,QAAQA,KAAK,CAACC,IAAI,CAACC,IAAI;IACrB,KAAKV,cAAc,CAACW,IAAI;MACtB,oBAAOb,KAAA,CAAAQ,aAAA,CAACL,eAAe,EAAKO,KAAQ,CAAC;IACvC;MACE,oBAAOV,KAAA,CAAAQ,aAAA,CAACP,WAAW,MAAE,CAAC;EAC1B;AACF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"775f97c4decdbaa3649501952577eab8e788493e"});var actualCoverage=coverage[path];return cov_19tlxd5f24=function(){return actualCoverage},actualCoverage}cov_19tlxd5f24();const LazyDemoContent=(cov_19tlxd5f24().s[0]++,(0,loadable_esm.Ay)((async()=>(cov_19tlxd5f24().f[0]++,cov_19tlxd5f24().s[1]++,await new Promise((resolve=>(cov_19tlxd5f24().f[1]++,cov_19tlxd5f24().s[2]++,setTimeout(resolve,2e3)))),cov_19tlxd5f24().s[3]++,__webpack_require__.e(150).then(__webpack_require__.bind(__webpack_require__,"./src/demo/lazyDemoContent.tsx")))),{fallback:react.createElement("h1",null,"loading...")}));function ContentGetter(props){return cov_19tlxd5f24().f[2]++,cov_19tlxd5f24().s[4]++,props.data.kind===DemoWindowKind.G.lazy?(cov_19tlxd5f24().b[0][0]++,cov_19tlxd5f24().s[5]++,react.createElement(LazyDemoContent,props)):(cov_19tlxd5f24().b[0][1]++,cov_19tlxd5f24().s[6]++,react.createElement(demoContent,null))}try{ContentGetter.displayName="ContentGetter",ContentGetter.__docgenInfo={description:"",displayName:"ContentGetter",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/contentGetter.tsx#ContentGetter"]={docgenInfo:ContentGetter.__docgenInfo,name:"ContentGetter",path:"src/demo/contentGetter.tsx#ContentGetter"})}catch(__react_docgen_typescript_loader_error){}function cov_wk09i0h2z(){var path="/home/runner/work/nk-windows/nk-windows/src/demo.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo.tsx",statementMap:{0:{start:{line:5,column:15},end:{line:19,column:1}},1:{start:{line:6,column:2},end:{line:6,column:37}},2:{start:{line:6,column:25},end:{line:6,column:37}},3:{start:{line:13,column:6},end:{line:13,column:32}},4:{start:{line:14,column:2},end:{line:18,column:117}},5:{start:{line:20,column:13},end:{line:29,column:1}},6:{start:{line:21,column:2},end:{line:28,column:107}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:15},end:{line:5,column:16}},loc:{start:{line:5,column:21},end:{line:19,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:20,column:13},end:{line:20,column:14}},loc:{start:{line:20,column:19},end:{line:29,column:1}},line:20}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:6,column:37}},type:"if",locations:[{start:{line:6,column:2},end:{line:6,column:37}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["React","ContentGetter","DebugButtons","WindowManagerProvider","Header","window","name","version","require","createElement","style","fontFamily","Demo","contentGetter","theme","colors","focusColor"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,YAAY,QAAQ,qBAAqB;AAElD,SAASC,qBAAqB,QAAQ,SAAS;AAE/C,MAAMC,MAAgB,GAAGA,CAAA,KAAM;EAC7B,IAAIC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,IAAI;;EAElC;EACA;EACA,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGC,OAAO,CAAC,iBAAiB,CAAC;EAEpD,oBACER,KAAA,CAAAS,aAAA;IAAQC,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAY;EAAE,gBACzCX,KAAA,CAAAS,aAAA,aAAKH,IAAS,CAAC,eACfN,KAAA,CAAAS,aAAA,aAAI,GAAC,EAACF,OAAY,CACZ,CAAC;AAEb,CAAC;AAED,MAAMK,IAAc,GAAGA,CAAA,KAAM;EAC3B,oBACEZ,KAAA,CAAAS,aAAA,CAACN,qBAAqB;IACpBU,aAAa,EAAEZ,aAAc;IAC7Ba,KAAK,EAAE;MACLC,MAAM,EAAE;QACNC,UAAU,EAAE;MACd;IACF;EAAE,gBAEFhB,KAAA,CAAAS,aAAA,CAACL,MAAM,MAAE,CAAC,eACVJ,KAAA,CAAAS,aAAA,CAACP,YAAY,MAAE,CACM,CAAC;AAE5B,CAAC;AAED,eAAeU,IAAI",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"59f3b06a2e68942e4dedcf55ca42019eb1e5ebc8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"59f3b06a2e68942e4dedcf55ca42019eb1e5ebc8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_wk09i0h2z=function(){return actualCoverage},actualCoverage}cov_wk09i0h2z(),cov_wk09i0h2z().s[0]++;const Header=()=>{if(cov_wk09i0h2z().f[0]++,cov_wk09i0h2z().s[1]++,window.Cypress)return cov_wk09i0h2z().b[0][0]++,cov_wk09i0h2z().s[2]++,null;cov_wk09i0h2z().b[0][1]++;const{name,version}=(cov_wk09i0h2z().s[3]++,__webpack_require__("./package.json"));return cov_wk09i0h2z().s[4]++,react.createElement("header",{style:{fontFamily:"monospace"}},react.createElement("h1",null,name),react.createElement("h2",null,"v",version))};cov_wk09i0h2z().s[5]++;const src_demo=()=>(cov_wk09i0h2z().f[1]++,cov_wk09i0h2z().s[6]++,react.createElement(src.ty,{contentGetter:ContentGetter,theme:{colors:{focusColor:"#FF0000"}}},react.createElement(Header,null),react.createElement(DebugButtons,null)));try{demo.displayName="demo",demo.__docgenInfo={description:"",displayName:"demo",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo.tsx#demo"]={docgenInfo:demo.__docgenInfo,name:"demo",path:"src/demo.tsx#demo"})}catch(__react_docgen_typescript_loader_error){}const demo_stories={title:"Demo",component:src_demo},Defult={};Defult.parameters={...Defult.parameters,docs:{...Defult.parameters?.docs,source:{originalSource:"{}",...Defult.parameters?.docs?.source}}};const __namedExportsOrder=["Defult"]},"./package.json":module=>{"use strict";module.exports=JSON.parse('{"name":"@touk/window-manager","version":"1.9.0","types":"./cjs/index.d.ts","main":"./cjs/index.js","module":"./esm/index.js","files":["cjs","esm","!**/*.{spec,stories}.d.ts","README.md","CHANGELOG.md"],"author":"Julian Wielga","license":"MIT","scripts":{"prebuild":"rimraf cjs/* esm/* storybook-static","postinstall":"patch-package","start":"npm run storybook","build":"rollup -c","build:watch":"npm run build -- --watch","test":"npm run coverage","storybook":"storybook dev -p 6006","build-storybook":"storybook build","deploy-storybook":"storybook-to-ghpages","lint":"eslint \'src/**/*.{js,ts,tsx}\' --quiet --fix","test:jest":"jest","test:cypress:dev":"cypress open","test:cypress":"cypress run","test:cypress:update":"CYPRESS_SNAPSHOT_UPDATE=true cypress run","test:cypress:ci":"start-server-and-test start:ci http-get://localhost:6006 test:cypress","test:cypress:ci:update":"start-server-and-test start:ci http-get://localhost:6006 test:cypress:update","test:cypress:linux":"docker run --add-host=host.docker.internal:host-gateway -it -v $PWD:/app -w /app cypress/included:8.3.1 --config baseUrl=http://host.docker.internal:6006","coverage:clear":"rimraf coverage .nyc_output","coverage:init":"jest --watchAll=false --coverage --coverageDirectory=.nyc_output --roots=\\"\\" --testRegex=\\"fake.test.js\\" --coverageReporters=json && mv .nyc_output/coverage-final.json .nyc_output/out.json","coverage:cypress":"npm run test:cypress:ci","coverage:jest":"npm run test:jest","coverage":"npm run coverage:clear && npm run coverage:init && npm run coverage:cypress && npm run coverage:jest","#coverage:merge":"istanbul-merge --out coverage/merged/coverage-final.json ./coverage/jest/coverage-final.json ./coverage/cypress/coverage-final.json","#coverage:merge-report":"nyc report --reporter=lcov --reporter=text --temp-dir=./coverage/merged --report-dir=./coverage/merged","#postcoverage":"npm run coverage:merge && npm run coverage:merge-report","start:ci":"npm run start -- -- --ci","semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/touk/nk-windows.git"},"devDependencies":{"@babel/core":"7.24.5","@babel/preset-env":"7.24.5","@babel/preset-react":"7.24.1","@babel/preset-typescript":"7.24.1","@cypress/browserify-preprocessor":"3.0.2","@cypress/code-coverage":"3.12.39","@frsource/cypress-plugin-visual-regression-diff":"3.3.10","@loadable/component":"5.16.4","@rollup/plugin-commonjs":"25.0.7","@rollup/plugin-node-resolve":"15.2.3","@rollup/plugin-terser":"0.4.4","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"12.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"10.0.3","@semantic-release/npm":"12.0.1","@semantic-release/release-notes-generator":"13.0.0","@storybook/addon-coverage":"1.0.3","@storybook/addon-essentials":"^8.1.0","@storybook/addon-interactions":"^8.1.0","@storybook/addon-links":"^8.1.0","@storybook/addon-onboarding":"^8.1.0","@storybook/addon-webpack5-compiler-babel":"3.0.3","@storybook/addons":"7.6.17","@storybook/blocks":"^8.1.0","@storybook/react":"^8.1.0","@storybook/react-docgen-typescript-plugin":"1.0.1","@storybook/react-webpack5":"^8.1.0","@storybook/storybook-deployer":"2.8.16","@storybook/test":"8.1.1","@svgr/rollup":"8.1.0","@svgr/webpack":"8.1.0","@testing-library/jest-dom":"6.4.5","@testing-library/react":"15.0.7","@types/jest":"29.5.12","@types/lodash":"4.17.1","@types/node":"20.12.12","@types/react":"18.3.2","@types/react-transition-group":"4.4.10","@typescript-eslint/eslint-plugin":"7.9.0","@typescript-eslint/parser":"7.9.0","babel-loader":"9.1.3","babel-plugin-istanbul":"6.1.1","cypress":"13.9.0","eslint":"8.57.0","eslint-config-prettier":"9.1.0","eslint-plugin-jest":"28.5.0","eslint-plugin-prettier":"5.1.3","eslint-plugin-react":"7.34.1","eslint-plugin-react-hooks":"4.6.2","eslint-plugin-storybook":"0.8.0","istanbul-merge":"2.0.0","jest":"29.7.0","jest-environment-jsdom":"29.7.0","patch-package":"8.0.0","prettier":"3.2.5","react":"18.3.1","react-dom":"18.3.1","rimraf":"5.0.7","rollup":"4.17.2","rollup-plugin-node-externals":"7.1.2","rollup-plugin-typescript2":"0.36.0","semantic-release":"23.1.1","start-server-and-test":"2.0.3","storybook":"^8.1.0","ts-jest":"29.1.2","typescript":"5.4.5","ua-parser-js":"1.0.37","webpack":"5.91.0"},"dependencies":{"@emotion/css":"11.11.2","@emotion/react":"11.11.4","@juggle/resize-observer":"3.4.0","color-alpha":"2.0.0","lodash":"4.17.21","react-cool-dimensions":"3.0.1","react-focus-lock":"2.12.1","react-hotkeys-hook":"4.5.0","react-inspector":"6.0.2","react-rnd":"10.4.10","react-transition-group":"4.4.5","reselect":"5.1.0","rooks":"7.14.1"},"peerDependencies":{"react":"^17 || ^ 18","react-dom":"^17 || ^ 18"},"eslintConfig":{"extends":["plugin:storybook/recommended"]}}')}}]); \ No newline at end of file diff --git a/latest/demo-stories.89e8cd10.iframe.bundle.js b/latest/demo-stories.89e8cd10.iframe.bundle.js new file mode 100644 index 00000000..b4ccffbb --- /dev/null +++ b/latest/demo-stories.89e8cd10.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[650],{"./src/ViewportContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{k:()=>ViewportContext});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_z9df655u9(){var path="/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"836ffed334b31848df58aadde8c0a4d2e0a25b74"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx",statementMap:{0:{start:{line:2,column:44},end:{line:5,column:2}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,names:["createContext","ViewportContext","width","height"],sources:["/home/runner/work/nk-windows/nk-windows/src/ViewportContext.tsx"],mappings:"AAAA,SAASA,aAAa,QAAQ,OAAO;AAOrC,OAAO,MAAMC,eAAe,gBAAGD,aAAa,CAAsB;EAAEE,KAAK,EAAE,CAAC;EAAEC,MAAM,EAAE;AAAE,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"836ffed334b31848df58aadde8c0a4d2e0a25b74"});var actualCoverage=coverage[path];return cov_z9df655u9=function(){return actualCoverage},actualCoverage}cov_z9df655u9();const ViewportContext=(cov_z9df655u9().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({width:0,height:0}))},"./src/components/window/WindowContent.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>useWindowContext,M:()=>WindowContent});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_19al8znur2(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx",statementMap:{0:{start:{line:2,column:38},end:{line:2,column:57}},1:{start:{line:4,column:18},end:{line:4,column:46}},2:{start:{line:5,column:2},end:{line:7,column:3}},3:{start:{line:6,column:4},end:{line:6,column:50}},4:{start:{line:8,column:2},end:{line:8,column:17}},5:{start:{line:10,column:42},end:{line:19,column:2}},6:{start:{line:14,column:6},end:{line:14,column:10}},7:{start:{line:15,column:20},end:{line:15,column:33}},8:{start:{line:16,column:2},end:{line:18,column:57}}},fnMap:{0:{name:"useWindowContext",decl:{start:{line:3,column:16},end:{line:3,column:32}},loc:{start:{line:3,column:35},end:{line:9,column:1}},line:3},1:{name:"WindowContent",decl:{start:{line:10,column:56},end:{line:10,column:69}},loc:{start:{line:10,column:76},end:{line:19,column:1}},line:10}},branchMap:{0:{loc:{start:{line:5,column:2},end:{line:7,column:3}},type:"if",locations:[{start:{line:5,column:2},end:{line:7,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["React","createContext","memo","useContext","WindowContentCtx","useWindowContext","context","Error","WindowContent","_ref","contentGetter","props","Component","createElement","Provider","value"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContent.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,IAAI,EAAEC,UAAU,QAAQ,OAAO;AAK9D,MAAMC,gBAAgB,gBAAGH,aAAa,CAAqB,IAAI,CAAC;AAEhE,OAAO,SAASI,gBAAgBA,CAAA,EAA2E;EACzG,MAAMC,OAAO,GAAGH,UAAU,CAACC,gBAAgB,CAAC;EAE5C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;EAC/C;EAEA,OAAOD,OAAO;AAChB;AAEA,OAAO,MAAME,aAAa,gBAAGN,IAAI,CAAC,SAASM,aAAaA,CAAAC,IAAA,EAG2B;EAAA,IAHO;IACxFC,aAAa;IACb,GAAGC;EAC8D,CAAC,GAAAF,IAAA;EAClE,MAAMG,SAAS,GAAGF,aAAa;EAC/B,oBACEV,KAAA,CAAAa,aAAA,CAACT,gBAAgB,CAACU,QAAQ;IAACC,KAAK,EAAEJ;EAAM,gBACtCX,KAAA,CAAAa,aAAA,CAACD,SAAS,EAAKD,KAAQ,CACE,CAAC;AAEhC,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c6e70adee5d7f60168582317e22591c68561cb3f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c6e70adee5d7f60168582317e22591c68561cb3f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_19al8znur2=function(){return actualCoverage},actualCoverage}cov_19al8znur2();const WindowContentCtx=(cov_19al8znur2().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null));function useWindowContext(){cov_19al8znur2().f[0]++;const context=(cov_19al8znur2().s[1]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(WindowContentCtx));if(cov_19al8znur2().s[2]++,!context)throw cov_19al8znur2().b[0][0]++,cov_19al8znur2().s[3]++,new Error("used outside WindowContent");return cov_19al8znur2().b[0][1]++,cov_19al8znur2().s[4]++,context}const WindowContent=(cov_19al8znur2().s[5]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((function WindowContent(_ref){cov_19al8znur2().f[1]++;let{contentGetter,...props}=(cov_19al8znur2().s[6]++,_ref);const Component=(cov_19al8znur2().s[7]++,contentGetter);return cov_19al8znur2().s[8]++,react__WEBPACK_IMPORTED_MODULE_0__.createElement(WindowContentCtx.Provider,{value:props},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,props))})));try{WindowContent.displayName="WindowContent",WindowContent.__docgenInfo={description:"",displayName:"WindowContent",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowContent.tsx#WindowContent"]={docgenInfo:WindowContent.__docgenInfo,name:"WindowContent",path:"src/components/window/WindowContent.tsx#WindowContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/window/content/OverflowContext.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>OverflowContext,s:()=>useOverflow});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function cov_1zq6720iuq(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx",statementMap:{0:{start:{line:2,column:44},end:{line:6,column:2}},1:{start:{line:8,column:18},end:{line:8,column:45}},2:{start:{line:9,column:2},end:{line:11,column:3}},3:{start:{line:10,column:4},end:{line:10,column:61}},4:{start:{line:12,column:2},end:{line:12,column:17}}},fnMap:{0:{name:"useOverflow",decl:{start:{line:7,column:16},end:{line:7,column:27}},loc:{start:{line:7,column:30},end:{line:13,column:1}},line:7}},branchMap:{0:{loc:{start:{line:9,column:2},end:{line:11,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:11,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:9}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["createContext","useContext","OverflowContext","scrollTo","scrollToTop","scrollToBottom","useOverflow","context","Error"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/OverflowContext.tsx"],mappings:"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAQjD,OAAO,MAAMC,eAAe,gBAAGF,aAAa,CAAM;EAChDG,QAAQ,EAAE,IAAI;EACdC,WAAW,EAAE,IAAI;EACjBC,cAAc,EAAE;AAClB,CAAC,CAAC;AAEF,OAAO,SAASC,WAAWA,CAAA,EAAQ;EACjC,MAAMC,OAAO,GAAGN,UAAU,CAACC,eAAe,CAAC;EAC3C,IAAI,CAACK,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,uCAAuC,CAAC;EAC1D;EACA,OAAOD,OAAO;AAChB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7ded16dc1f392c1a3c4661f28006910bb09de0c8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7ded16dc1f392c1a3c4661f28006910bb09de0c8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1zq6720iuq=function(){return actualCoverage},actualCoverage}cov_1zq6720iuq();const OverflowContext=(cov_1zq6720iuq().s[0]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({scrollTo:null,scrollToTop:null,scrollToBottom:null}));function useOverflow(){cov_1zq6720iuq().f[0]++;const context=(cov_1zq6720iuq().s[1]++,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(OverflowContext));if(cov_1zq6720iuq().s[2]++,!context)throw cov_1zq6720iuq().b[0][0]++,cov_1zq6720iuq().s[3]++,new Error("used outside OverflowContext.Provider");return cov_1zq6720iuq().b[0][1]++,cov_1zq6720iuq().s[4]++,context}},"./src/context/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>WindowManagerContext,s:()=>WindowManagerContextProvider});var react=__webpack_require__("./node_modules/react/index.js"),store=__webpack_require__("./src/store/index.ts");function cov_2lxmx46sj9(){var path="/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"08119edf3fee48d4622e9a3e8d94f8d5ecc3b52d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx",statementMap:{0:{start:{line:3,column:49},end:{line:3,column:68}},1:{start:{line:7,column:6},end:{line:7,column:10}},2:{start:{line:8,column:28},end:{line:11,column:4}},3:{start:{line:13,column:2},end:{line:15,column:18}},4:{start:{line:13,column:18},end:{line:15,column:4}},5:{start:{line:13,column:24},end:{line:15,column:4}},6:{start:{line:16,column:2},end:{line:18,column:15}}},fnMap:{0:{name:"WindowManagerContextProvider",decl:{start:{line:4,column:16},end:{line:4,column:44}},loc:{start:{line:4,column:51},end:{line:19,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:13,column:12},end:{line:13,column:13}},loc:{start:{line:13,column:18},end:{line:15,column:4}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:13,column:18},end:{line:13,column:19}},loc:{start:{line:13,column:24},end:{line:15,column:4}},line:13}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,names:["React","createContext","useEffect","reducer","useReducerWithThunk","WindowManagerContext","WindowManagerContextProvider","_ref","children","state","dispatch","windows","order","type","createElement","Provider","value"],sources:["/home/runner/work/nk-windows/nk-windows/src/context/WindowManagerContextProvider.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAqBC,SAAS,QAAQ,OAAO;AAC1E,SAASC,OAAO,EAAoBC,mBAAmB,QAAQ,UAAU;AAEzE,OAAO,MAAMC,oBAAoB,gBAAGJ,aAAa,CAAmC,IAAI,CAAC;AAEzF,OAAO,SAASK,4BAA4BA,CAAAC,IAAA,EAAwD;EAAA,IAAvD;IAAEC;EAAqC,CAAC,GAAAD,IAAA;EACnF,MAAM,CAACE,KAAK,EAAEC,QAAQ,CAAC,GAAGN,mBAAmB,CAACD,OAAO,EAAE;IAAEQ,OAAO,EAAE,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAC,CAAC;EAClF;EACAV,SAAS,CAAC,MAAM,MAAMQ,QAAQ,CAAC;IAAEG,IAAI,EAAE;EAAgB,CAAC,CAAC,EAAE,CAACH,QAAQ,CAAC,CAAC;EAEtE,oBAAOV,KAAA,CAAAc,aAAA,CAACT,oBAAoB,CAACU,QAAQ;IAACC,KAAK,EAAE,CAACP,KAAK,EAAEC,QAAQ;EAAE,GAAEF,QAAwC,CAAC;AAC5G",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"08119edf3fee48d4622e9a3e8d94f8d5ecc3b52d"});var actualCoverage=coverage[path];return cov_2lxmx46sj9=function(){return actualCoverage},actualCoverage}cov_2lxmx46sj9();const WindowManagerContext=(cov_2lxmx46sj9().s[0]++,(0,react.createContext)(null));function WindowManagerContextProvider(_ref){cov_2lxmx46sj9().f[0]++;let{children}=(cov_2lxmx46sj9().s[1]++,_ref);const[state,dispatch]=(cov_2lxmx46sj9().s[2]++,(0,store.Ix)(store.Ff,{windows:[],order:[]}));return cov_2lxmx46sj9().s[3]++,(0,react.useEffect)((()=>(cov_2lxmx46sj9().f[1]++,cov_2lxmx46sj9().s[4]++,()=>(cov_2lxmx46sj9().f[2]++,cov_2lxmx46sj9().s[5]++,dispatch({type:"CLEAR_WINDOWS"})))),[dispatch]),cov_2lxmx46sj9().s[6]++,react.createElement(WindowManagerContext.Provider,{value:[state,dispatch]},children)}try{WindowManagerContextProvider.displayName="WindowManagerContextProvider",WindowManagerContextProvider.__docgenInfo={description:"",displayName:"WindowManagerContextProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/context/WindowManagerContextProvider.tsx#WindowManagerContextProvider"]={docgenInfo:WindowManagerContextProvider.__docgenInfo,name:"WindowManagerContextProvider",path:"src/context/WindowManagerContextProvider.tsx#WindowManagerContextProvider"})}catch(__react_docgen_typescript_loader_error){}function cov_1wpsvslzw0(){var path="/home/runner/work/nk-windows/nk-windows/src/context/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7fb9093f26df7b193cc93ad990aa3a9eb7f59d87"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/context/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowManagerContext","WindowManagerContextProvider"],sources:["/home/runner/work/nk-windows/nk-windows/src/context/index.ts"],mappings:"AAAA,SAASA,oBAAoB,EAAEC,4BAA4B,QAAQ,gCAAgC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7fb9093f26df7b193cc93ad990aa3a9eb7f59d87"});var actualCoverage=coverage[path];return cov_1wpsvslzw0=function(){return actualCoverage},actualCoverage}cov_1wpsvslzw0()},"./src/demo/DemoWindowKind.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function cov_1b6kdg2f7y(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c8f34d302a5738865969fa29d8f43f4890fe6ea3"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx",statementMap:{0:{start:{line:1,column:41},end:{line:6,column:5}},1:{start:{line:2,column:2},end:{line:2,column:60}},2:{start:{line:3,column:2},end:{line:3,column:58}},3:{start:{line:4,column:2},end:{line:4,column:54}},4:{start:{line:5,column:2},end:{line:5,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:1,column:41},end:{line:1,column:42}},loc:{start:{line:1,column:67},end:{line:6,column:1}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["DemoWindowKind"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/DemoWindowKind.tsx"],mappings:"AAAA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c8f34d302a5738865969fa29d8f43f4890fe6ea3"});var actualCoverage=coverage[path];return cov_1b6kdg2f7y=function(){return actualCoverage},actualCoverage}__webpack_require__.d(__webpack_exports__,{G:()=>DemoWindowKind}),cov_1b6kdg2f7y();let DemoWindowKind=(cov_1b6kdg2f7y().s[0]++,function(DemoWindowKind){return cov_1b6kdg2f7y().f[0]++,cov_1b6kdg2f7y().s[1]++,DemoWindowKind[DemoWindowKind.default=0]="default",cov_1b6kdg2f7y().s[2]++,DemoWindowKind[DemoWindowKind.danger=1]="danger",cov_1b6kdg2f7y().s[3]++,DemoWindowKind[DemoWindowKind.lazy=2]="lazy",cov_1b6kdg2f7y().s[4]++,DemoWindowKind}({}))},"./src/demo/demoDefaultContent.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>DemoDefaultContent});var react=__webpack_require__("./node_modules/react/index.js"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),DemoWindowKind=__webpack_require__("./src/demo/DemoWindowKind.tsx");function cov_19g9g8nayc(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ce974344d009e3a85a8c462ec38f15844e39e566"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx",statementMap:{0:{start:{line:4,column:13},end:{line:4,column:103}},1:{start:{line:5,column:2},end:{line:22,column:3}},2:{start:{line:7,column:6},end:{line:10,column:9}},3:{start:{line:12,column:6},end:{line:15,column:9}},4:{start:{line:18,column:6},end:{line:21,column:9}}},fnMap:{0:{name:"getWindowDemoColors",decl:{start:{line:3,column:16},end:{line:3,column:35}},loc:{start:{line:3,column:38},end:{line:23,column:1}},line:3}},branchMap:{0:{loc:{start:{line:4,column:13},end:{line:4,column:103}},type:"cond-expr",locations:[{start:{line:4,column:66},end:{line:4,column:78}},{start:{line:4,column:81},end:{line:4,column:103}}],line:4},1:{loc:{start:{line:4,column:13},end:{line:4,column:63}},type:"binary-expr",locations:[{start:{line:4,column:13},end:{line:4,column:33}},{start:{line:4,column:37},end:{line:4,column:63}}],line:4},2:{loc:{start:{line:5,column:2},end:{line:22,column:3}},type:"switch",locations:[{start:{line:6,column:4},end:{line:10,column:9}},{start:{line:11,column:4},end:{line:15,column:9}},{start:{line:16,column:4},end:{line:16,column:32}},{start:{line:17,column:4},end:{line:21,column:9}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0,0,0]},inputSourceMap:{version:3,names:["css","DemoWindowKind","getWindowDemoColors","type","arguments","length","undefined","default","danger","backgroundColor","color","lazy"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/getWindowDefaultColors.tsx"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,SAASC,mBAAmBA,CAAA,EAAwD;EAAA,IAAvDC,IAAoB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,cAAc,CAACM,OAAO;EAC/E,QAAQJ,IAAI;IACV,KAAKF,cAAc,CAACO,MAAM;MACxB,OAAOR,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;IAC5D,KAAKT,cAAc,CAACU,IAAI;MACtB,OAAOX,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;IAC5D,KAAKT,cAAc,CAACM,OAAO;IAC3B;MACE,OAAOP,GAAG,CAAC;QAAES,eAAe,EAAE,SAAS;QAAEC,KAAK,EAAE;MAAQ,CAAC,CAAC;EAC9D;AACF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ce974344d009e3a85a8c462ec38f15844e39e566"});var actualCoverage=coverage[path];return cov_19g9g8nayc=function(){return actualCoverage},actualCoverage}function getWindowDemoColors(){cov_19g9g8nayc().f[0]++;let type=(cov_19g9g8nayc().s[0]++,cov_19g9g8nayc().b[1][0]++,arguments.length>0&&(cov_19g9g8nayc().b[1][1]++,void 0!==arguments[0])?(cov_19g9g8nayc().b[0][0]++,arguments[0]):(cov_19g9g8nayc().b[0][1]++,DemoWindowKind.G.default));switch(cov_19g9g8nayc().s[1]++,type){case DemoWindowKind.G.danger:return cov_19g9g8nayc().b[2][0]++,cov_19g9g8nayc().s[2]++,(0,emotion_css_esm.AH)({backgroundColor:"#A82121",color:"white"});case DemoWindowKind.G.lazy:return cov_19g9g8nayc().b[2][1]++,cov_19g9g8nayc().s[3]++,(0,emotion_css_esm.AH)({backgroundColor:"#2165a8",color:"white"});case DemoWindowKind.G.default:cov_19g9g8nayc().b[2][2]++;default:return cov_19g9g8nayc().b[2][3]++,cov_19g9g8nayc().s[4]++,(0,emotion_css_esm.AH)({backgroundColor:"#2D8E54",color:"white"})}}cov_19g9g8nayc();try{getWindowDemoColors.displayName="getWindowDemoColors",getWindowDemoColors.__docgenInfo={description:"",displayName:"getWindowDemoColors",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/getWindowDefaultColors.tsx#getWindowDemoColors"]={docgenInfo:getWindowDemoColors.__docgenInfo,name:"getWindowDemoColors",path:"src/demo/getWindowDefaultColors.tsx#getWindowDemoColors"})}catch(__react_docgen_typescript_loader_error){}var src=__webpack_require__("./src/index.ts");function cov_1p0g24ubbg(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:5,column:34},end:{line:9,column:10}},10:{start:{line:5,column:56},end:{line:9,column:10}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:5,column:34},end:{line:5,column:35}},loc:{start:{line:5,column:56},end:{line:9,column:10}},line:5}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","getWindowDemoColors","DefaultContent","DemoDefaultContent","props","createElement","_extends","classnames","header","data","kind"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/demoDefaultContent.tsx"],mappings:";AAAA,OAAOA,KAAK,MAA6B,OAAO;AAEhD,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,cAAc,QAA6B,UAAU;AAE9D,OAAO,MAAMC,kBAAkB,GAAIC,KAA6D,iBAC9FJ,KAAA,CAAAK,aAAA,CAACH,cAAc,EAAAI,QAAA;EAACC,UAAU,EAAE;IAAEC,MAAM,EAAEP,mBAAmB,CAACG,KAAK,CAACK,IAAI,CAACC,IAAI;EAAE;AAAE,GAAKN,KAAK,CAAG,CAC3F",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d5602feea82ba5b2af9c3320aada17100cf3c58"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0d5602feea82ba5b2af9c3320aada17100cf3c58"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1p0g24ubbg=function(){return actualCoverage},actualCoverage}function _extends(){return cov_1p0g24ubbg().f[0]++,cov_1p0g24ubbg().s[0]++,_extends=Object.assign?(cov_1p0g24ubbg().b[0][0]++,Object.assign.bind()):(cov_1p0g24ubbg().b[0][1]++,function(target){cov_1p0g24ubbg().f[1]++,cov_1p0g24ubbg().s[1]++;for(var i=(cov_1p0g24ubbg().s[2]++,1);i(cov_1p0g24ubbg().f[2]++,cov_1p0g24ubbg().s[10]++,react.createElement(src.l7,_extends({classnames:{header:getWindowDemoColors(props.data.kind)}},props)));try{DemoDefaultContent.displayName="DemoDefaultContent",DemoDefaultContent.__docgenInfo={description:"",displayName:"DemoDefaultContent",props:{buttons:{defaultValue:null,description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/demoDefaultContent.tsx#DemoDefaultContent"]={docgenInfo:DemoDefaultContent.__docgenInfo,name:"DemoDefaultContent",path:"src/demo/demoDefaultContent.tsx#DemoDefaultContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{XX:()=>useSize,lR:()=>useViewportSize,$k:()=>WindowContent.$,HM:()=>useWindowManager,dz:()=>useWindowZoom});var react=__webpack_require__("./node_modules/react/index.js"),WindowContent=__webpack_require__("./src/components/window/WindowContent.tsx");function cov_i0b71a907(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"a67a1716268a9dd66e9721012964af7d3fb734df"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:8,column:26},end:{line:8,column:47}},2:{start:{line:9,column:21},end:{line:12,column:26}},3:{start:{line:9,column:35},end:{line:12,column:10}},4:{start:{line:10,column:16},end:{line:10,column:88}},5:{start:{line:11,column:4},end:{line:11,column:53}},6:{start:{line:11,column:24},end:{line:11,column:51}},7:{start:{line:13,column:2},end:{line:13,column:28}}},fnMap:{0:{name:"useWindowZoom",decl:{start:{line:3,column:16},end:{line:3,column:29}},loc:{start:{line:3,column:36},end:{line:14,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:9,column:29},end:{line:9,column:30}},loc:{start:{line:9,column:35},end:{line:12,column:10}},line:9},2:{name:"(anonymous_2)",decl:{start:{line:9,column:49},end:{line:9,column:50}},loc:{start:{line:9,column:61},end:{line:12,column:3}},line:9},3:{name:"(anonymous_3)",decl:{start:{line:11,column:19},end:{line:11,column:20}},loc:{start:{line:11,column:24},end:{line:11,column:51}},line:11}},branchMap:{0:{loc:{start:{line:9,column:35},end:{line:12,column:10}},type:"cond-expr",locations:[{start:{line:9,column:49},end:{line:12,column:3}},{start:{line:12,column:6},end:{line:12,column:10}}],line:9},1:{loc:{start:{line:10,column:16},end:{line:10,column:88}},type:"cond-expr",locations:[{start:{line:10,column:69},end:{line:10,column:81}},{start:{line:10,column:84},end:{line:10,column:88}}],line:10},2:{loc:{start:{line:10,column:16},end:{line:10,column:66}},type:"binary-expr",locations:[{start:{line:10,column:16},end:{line:10,column:36}},{start:{line:10,column:40},end:{line:10,column:66}}],line:10},3:{loc:{start:{line:11,column:24},end:{line:11,column:51}},type:"cond-expr",locations:[{start:{line:11,column:41},end:{line:11,column:46}},{start:{line:11,column:49},end:{line:11,column:51}}],line:11}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,names:["useMemo","useState","useWindowContext","useWindowZoom","_ref","isMaximized","isResizable","zoom","setZoom","toggleZoom","value","arguments","length","undefined","z"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/windowHooks.ts"],mappings:"AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,oCAAoC;AAErE,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAMY;EAAA,IANX;IAC5BC,WAAW;IACXC;EAIF,CAAC,GAAAF,IAAA;EACC,MAAM,CAACG,IAAI,EAAEC,OAAO,CAAC,GAAGP,QAAQ,CAACI,WAAW,CAAC;EAC7C,MAAMI,UAAU,GAAGT,OAAO,CACxB,MAAOM,WAAW,GAAG;IAAA,IAACI,KAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;IAAA,OAAKH,OAAO,CAAEM,CAAC,IAAMJ,KAAK,KAAK,IAAI,GAAGA,KAAK,GAAG,CAACI,CAAE,CAAC;EAAA,IAAG,IAAK,EACrG,CAACR,WAAW,CACd,CAAC;EACD,OAAO,CAACC,IAAI,EAAEE,UAAU,CAAC;AAC3B",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a67a1716268a9dd66e9721012964af7d3fb734df"});var actualCoverage=coverage[path];return cov_i0b71a907=function(){return actualCoverage},actualCoverage}function useWindowZoom(_ref){cov_i0b71a907().f[0]++;let{isMaximized,isResizable}=(cov_i0b71a907().s[0]++,_ref);const[zoom,setZoom]=(cov_i0b71a907().s[1]++,(0,react.useState)(isMaximized)),toggleZoom=(cov_i0b71a907().s[2]++,(0,react.useMemo)((()=>(cov_i0b71a907().f[1]++,cov_i0b71a907().s[3]++,isResizable?(cov_i0b71a907().b[0][0]++,function(){cov_i0b71a907().f[2]++;let value=(cov_i0b71a907().s[4]++,cov_i0b71a907().b[2][0]++,arguments.length>0&&(cov_i0b71a907().b[2][1]++,void 0!==arguments[0])?(cov_i0b71a907().b[1][0]++,arguments[0]):(cov_i0b71a907().b[1][1]++,null));return cov_i0b71a907().s[5]++,setZoom((z=>(cov_i0b71a907().f[3]++,cov_i0b71a907().s[6]++,null!==value?(cov_i0b71a907().b[3][0]++,value):(cov_i0b71a907().b[3][1]++,!z))))}):(cov_i0b71a907().b[0][1]++,null))),[isResizable]));return cov_i0b71a907().s[7]++,[zoom,toggleZoom]}cov_i0b71a907();var context=__webpack_require__("./src/context/index.ts"),store=__webpack_require__("./src/store/index.ts"),ViewportContext=__webpack_require__("./src/ViewportContext.tsx");function cov_wz5labld7(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts",statementMap:{0:{start:{line:6,column:18},end:{line:6,column:45}},1:{start:{line:7,column:2},end:{line:9,column:3}},2:{start:{line:8,column:4},end:{line:8,column:50}},3:{start:{line:10,column:2},end:{line:10,column:17}},4:{start:{line:13,column:18},end:{line:13,column:50}},5:{start:{line:14,column:2},end:{line:14,column:15}},6:{start:{line:17,column:28},end:{line:17,column:60}},7:{start:{line:18,column:15},end:{line:24,column:24}},8:{start:{line:19,column:21},end:{line:19,column:91}},9:{start:{line:20,column:4},end:{line:23,column:8}},10:{start:{line:25,column:16},end:{line:31,column:24}},11:{start:{line:26,column:13},end:{line:26,column:87}},12:{start:{line:27,column:4},end:{line:30,column:7}},13:{start:{line:32,column:16},end:{line:36,column:24}},14:{start:{line:33,column:13},end:{line:33,column:87}},15:{start:{line:34,column:4},end:{line:34,column:36}},16:{start:{line:35,column:4},end:{line:35,column:14}},17:{start:{line:37,column:18},end:{line:37,column:68}},18:{start:{line:37,column:32},end:{line:37,column:58}},19:{start:{line:38,column:19},end:{line:46,column:22}},20:{start:{line:39,column:12},end:{line:39,column:87}},21:{start:{line:40,column:4},end:{line:45,column:8}},22:{start:{line:43,column:10},end:{line:43,column:14}},23:{start:{line:44,column:6},end:{line:44,column:23}},24:{start:{line:47,column:2},end:{line:53,column:4}}},fnMap:{0:{name:"useViewportSize",decl:{start:{line:5,column:16},end:{line:5,column:31}},loc:{start:{line:5,column:34},end:{line:11,column:1}},line:5},1:{name:"useRawState",decl:{start:{line:12,column:16},end:{line:12,column:27}},loc:{start:{line:12,column:30},end:{line:15,column:1}},line:12},2:{name:"useWindowManager",decl:{start:{line:16,column:16},end:{line:16,column:32}},loc:{start:{line:16,column:41},end:{line:54,column:1}},line:16},3:{name:"(anonymous_3)",decl:{start:{line:18,column:27},end:{line:18,column:28}},loc:{start:{line:18,column:39},end:{line:24,column:3}},line:18},4:{name:"(anonymous_4)",decl:{start:{line:25,column:28},end:{line:25,column:29}},loc:{start:{line:25,column:40},end:{line:31,column:3}},line:25},5:{name:"(anonymous_5)",decl:{start:{line:32,column:28},end:{line:32,column:29}},loc:{start:{line:32,column:46},end:{line:36,column:3}},line:32},6:{name:"(anonymous_6)",decl:{start:{line:37,column:26},end:{line:37,column:27}},loc:{start:{line:37,column:32},end:{line:37,column:58}},line:37},7:{name:"(anonymous_7)",decl:{start:{line:38,column:31},end:{line:38,column:32}},loc:{start:{line:38,column:49},end:{line:46,column:3}},line:38},8:{name:"(anonymous_8)",decl:{start:{line:40,column:35},end:{line:40,column:36}},loc:{start:{line:40,column:43},end:{line:45,column:5}},line:40}},branchMap:{0:{loc:{start:{line:7,column:2},end:{line:9,column:3}},type:"if",locations:[{start:{line:7,column:2},end:{line:9,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:7},1:{loc:{start:{line:19,column:21},end:{line:19,column:91}},type:"cond-expr",locations:[{start:{line:19,column:74},end:{line:19,column:86}},{start:{line:19,column:89},end:{line:19,column:91}}],line:19},2:{loc:{start:{line:19,column:21},end:{line:19,column:71}},type:"binary-expr",locations:[{start:{line:19,column:21},end:{line:19,column:41}},{start:{line:19,column:45},end:{line:19,column:71}}],line:19},3:{loc:{start:{line:26,column:13},end:{line:26,column:87}},type:"cond-expr",locations:[{start:{line:26,column:66},end:{line:26,column:78}},{start:{line:26,column:81},end:{line:26,column:87}}],line:26},4:{loc:{start:{line:26,column:13},end:{line:26,column:63}},type:"binary-expr",locations:[{start:{line:26,column:13},end:{line:26,column:33}},{start:{line:26,column:37},end:{line:26,column:63}}],line:26},5:{loc:{start:{line:33,column:13},end:{line:33,column:87}},type:"cond-expr",locations:[{start:{line:33,column:66},end:{line:33,column:78}},{start:{line:33,column:81},end:{line:33,column:87}}],line:33},6:{loc:{start:{line:33,column:13},end:{line:33,column:63}},type:"binary-expr",locations:[{start:{line:33,column:13},end:{line:33,column:33}},{start:{line:33,column:37},end:{line:33,column:63}}],line:33},7:{loc:{start:{line:39,column:12},end:{line:39,column:87}},type:"cond-expr",locations:[{start:{line:39,column:65},end:{line:39,column:77}},{start:{line:39,column:80},end:{line:39,column:87}}],line:39},8:{loc:{start:{line:39,column:12},end:{line:39,column:62}},type:"binary-expr",locations:[{start:{line:39,column:12},end:{line:39,column:32}},{start:{line:39,column:36},end:{line:39,column:62}}],line:39}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0]},inputSourceMap:{version:3,names:["useCallback","useContext","useMemo","WindowManagerContext","closeWindow","getWindowsWithOrder","openWindow","ViewportContext","useViewportSize","context","Error","useRawState","state","useWindowManager","parent","dispatch","open","windowData","arguments","length","undefined","focus","id","type","close","windows","closeAll","w","Promise","all","map","_ref"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/manager.ts"],mappings:"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACxD,SAASC,oBAAoB,QAAQ,YAAY;AACjD,SAASC,WAAW,EAAEC,mBAAmB,EAAEC,UAAU,QAAQ,UAAU;AAEvE,SAASC,eAAe,QAA6B,oBAAoB;AAEzE,OAAO,SAASC,eAAeA,CAAA,EAAwB;EACrD,MAAMC,OAAO,GAAGR,UAAU,CAACM,eAAe,CAAC;EAC3C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;EAC/C;EACA,OAAOD,OAAO;AAChB;AAEA,OAAO,SAASE,WAAWA,CAAA,EAA2D;EACpF,MAAM,CAACC,KAAK,CAAC,GAAGX,UAAU,CAACE,oBAAoB,CAAC;EAChD,OAAOS,KAAK;AACd;AAEA,OAAO,SAASC,gBAAgBA,CAAkCC,MAAiB,EAAE;EACnF,MAAM,CAACF,KAAK,EAAEG,QAAQ,CAAC,GAAGd,UAAU,CAACE,oBAAoB,CAAC;EAE1D,MAAMa,IAAI,GAAGhB,WAAW,CACtB,YAAsG;IAAA,IAArDiB,UAA2C,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IAC/F,OAAOH,QAAQ,CAACT,UAAU,CAAC;MAAEQ,MAAM;MAAE,GAAGG;IAAW,CAAC,CAAC,CAAC;EACxD,CAAC,EACD,CAACF,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMO,KAAK,GAAGrB,WAAW,CACvB,YAA2B;IAAA,IAA1BsB,EAAY,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,MAAM;IACpBC,QAAQ,CAAC;MAAEQ,IAAI,EAAE,cAAc;MAAED;IAAG,CAAC,CAAC;EACxC,CAAC,EACD,CAACP,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMU,KAAK,GAAGxB,WAAW,CACvB,kBAAiC;IAAA,IAA1BsB,EAAY,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGJ,MAAM;IAC1B,MAAMC,QAAQ,CAACX,WAAW,CAACkB,EAAE,CAAC,CAAC;IAC/B,OAAOA,EAAE;EACX,CAAC,EACD,CAACP,QAAQ,EAAED,MAAM,CACnB,CAAC;EAED,MAAMW,OAAO,GAAGvB,OAAO,CAAC,MAAMG,mBAAmB,CAACO,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAElE,MAAMc,QAAQ,GAAG1B,WAAW,CAC1B,kBAAuB;IAAA,IAAhB2B,CAAC,GAAAT,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGO,OAAO;IAChB,OAAO,MAAMG,OAAO,CAACC,GAAG,CAACF,CAAC,CAACG,GAAG,CAACC,IAAA;MAAA,IAAC;QAAET;MAAG,CAAC,GAAAS,IAAA;MAAA,OAAKP,KAAK,CAACF,EAAE,CAAC;IAAA,EAAC,CAAC;EACxD,CAAC,EACD,CAACE,KAAK,EAAEC,OAAO,CACjB,CAAC;EAED,OAAO;IAAEA,OAAO;IAAET,IAAI;IAAEK,KAAK;IAAEG,KAAK;IAAEE;EAAS,CAAC;AAClD",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7086071327827aa3fa82d04bb01c0493a9f389e8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"7086071327827aa3fa82d04bb01c0493a9f389e8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_wz5labld7=function(){return actualCoverage},actualCoverage}function useViewportSize(){cov_wz5labld7().f[0]++;const context=(cov_wz5labld7().s[0]++,(0,react.useContext)(ViewportContext.k));if(cov_wz5labld7().s[1]++,!context)throw cov_wz5labld7().b[0][0]++,cov_wz5labld7().s[2]++,new Error("used outside WindowManager");return cov_wz5labld7().b[0][1]++,cov_wz5labld7().s[3]++,context}function useWindowManager(parent){cov_wz5labld7().f[2]++;const[state,dispatch]=(cov_wz5labld7().s[6]++,(0,react.useContext)(context.J)),open=(cov_wz5labld7().s[7]++,(0,react.useCallback)((function(){cov_wz5labld7().f[3]++;let windowData=(cov_wz5labld7().s[8]++,cov_wz5labld7().b[2][0]++,arguments.length>0&&(cov_wz5labld7().b[2][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[1][0]++,arguments[0]):(cov_wz5labld7().b[1][1]++,{}));return cov_wz5labld7().s[9]++,dispatch((0,store.D1)({parent,...windowData}))}),[dispatch,parent])),focus=(cov_wz5labld7().s[10]++,(0,react.useCallback)((function(){cov_wz5labld7().f[4]++;let id=(cov_wz5labld7().s[11]++,cov_wz5labld7().b[4][0]++,arguments.length>0&&(cov_wz5labld7().b[4][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[3][0]++,arguments[0]):(cov_wz5labld7().b[3][1]++,parent));cov_wz5labld7().s[12]++,dispatch({type:"FOCUS_WINDOW",id})}),[dispatch,parent])),close=(cov_wz5labld7().s[13]++,(0,react.useCallback)((async function(){cov_wz5labld7().f[5]++;let id=(cov_wz5labld7().s[14]++,cov_wz5labld7().b[6][0]++,arguments.length>0&&(cov_wz5labld7().b[6][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[5][0]++,arguments[0]):(cov_wz5labld7().b[5][1]++,parent));return cov_wz5labld7().s[15]++,await dispatch((0,store.Do)(id)),cov_wz5labld7().s[16]++,id}),[dispatch,parent])),windows=(cov_wz5labld7().s[17]++,(0,react.useMemo)((()=>(cov_wz5labld7().f[6]++,cov_wz5labld7().s[18]++,(0,store.sJ)(state))),[state])),closeAll=(cov_wz5labld7().s[19]++,(0,react.useCallback)((async function(){cov_wz5labld7().f[7]++;let w=(cov_wz5labld7().s[20]++,cov_wz5labld7().b[8][0]++,arguments.length>0&&(cov_wz5labld7().b[8][1]++,void 0!==arguments[0])?(cov_wz5labld7().b[7][0]++,arguments[0]):(cov_wz5labld7().b[7][1]++,windows));return cov_wz5labld7().s[21]++,await Promise.all(w.map((_ref=>{cov_wz5labld7().f[8]++;let{id}=(cov_wz5labld7().s[22]++,_ref);return cov_wz5labld7().s[23]++,close(id)})))}),[close,windows]));return cov_wz5labld7().s[24]++,{windows,open,focus,close,closeAll}}cov_wz5labld7();var index_esm=__webpack_require__("./node_modules/react-cool-dimensions/dist/index.esm.js");function cov_269cqit9gn(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx",statementMap:{0:{start:{line:2,column:0},end:{line:11,column:5}},1:{start:{line:3,column:2},end:{line:10,column:3}},2:{start:{line:7,column:8},end:{line:7,column:47}},3:{start:{line:8,column:4},end:{line:8,column:41}},4:{start:{line:9,column:4},end:{line:9,column:51}},5:{start:{line:12,column:23},end:{line:14,column:1}},6:{start:{line:13,column:2},end:{line:13,column:32}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:2,column:1},end:{line:2,column:2}},loc:{start:{line:2,column:13},end:{line:11,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:12,column:23},end:{line:12,column:24}},loc:{start:{line:12,column:34},end:{line:14,column:1}},line:12}},branchMap:{0:{loc:{start:{line:3,column:2},end:{line:10,column:3}},type:"if",locations:[{start:{line:3,column:2},end:{line:10,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useDimensions","window","ResizeObserver","ResizeObserverEntry","self","useSize","options"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/useSize.tsx"],mappings:"AAAA,OAAOA,aAAa,MAAM,uBAAuB;AAEjD,CAAC,YAAY;EACX,IAAI,EAAE,gBAAgB,IAAIC,MAAM,CAAC,EAAE;IACjC,MAAM;MAAEC,cAAc;MAAEC;IAAoB,CAAC,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC;IACvFC,IAAI,CAACF,cAAc,GAAGA,cAAc;IACpCE,IAAI,CAACD,mBAAmB,GAAGA,mBAA0B,CAAC,CAAC;EACzD;AACF,CAAC,EAAE,CAAC;AAEJ,OAAO,MAAME,OAA6B,GAAIC,OAAO,IAAK;EACxD,OAAON,aAAa,CAACM,OAAO,CAAC;AAC/B,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"31e6b87d1bdf532fd890283758d07f111b51ce2e"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"31e6b87d1bdf532fd890283758d07f111b51ce2e"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_269cqit9gn=function(){return actualCoverage},actualCoverage}cov_269cqit9gn(),cov_269cqit9gn().s[0]++,(async()=>{if(cov_269cqit9gn().f[0]++,cov_269cqit9gn().s[1]++,"ResizeObserver"in window)cov_269cqit9gn().b[0][1]++;else{cov_269cqit9gn().b[0][0]++;const{ResizeObserver,ResizeObserverEntry}=(cov_269cqit9gn().s[2]++,await __webpack_require__.e(564).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@juggle/resize-observer/lib/exports/resize-observer.js")));cov_269cqit9gn().s[3]++,self.ResizeObserver=ResizeObserver,cov_269cqit9gn().s[4]++,self.ResizeObserverEntry=ResizeObserverEntry}})(),cov_269cqit9gn().s[5]++;const useSize=options=>(cov_269cqit9gn().f[1]++,cov_269cqit9gn().s[6]++,(0,index_esm.Ay)(options));try{useSize.displayName="useSize",useSize.__docgenInfo={description:"",displayName:"useSize",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useSize.tsx#useSize"]={docgenInfo:useSize.__docgenInfo,name:"useSize",path:"src/hooks/useSize.tsx#useSize"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_1yrfr2kcjq(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"5d7c15502c59f7acdbb931c5b9a2b6612d0d0bd8"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["useOverflow"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/index.ts"],mappings:"AAAA,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,SAASA,WAAW,QAAQ,8CAA8C",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5d7c15502c59f7acdbb931c5b9a2b6612d0d0bd8"});var actualCoverage=coverage[path];return cov_1yrfr2kcjq=function(){return actualCoverage},actualCoverage}cov_1yrfr2kcjq()},"./src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{l7:()=>DefaultContent,ty:()=>WindowManager,$k:()=>hooks.$k});var FooterButton_namespaceObject={};__webpack_require__.r(FooterButton_namespaceObject),__webpack_require__.d(FooterButton_namespaceObject,{M:()=>FooterButton});var HeaderTitle_namespaceObject={};__webpack_require__.r(HeaderTitle_namespaceObject),__webpack_require__.d(HeaderTitle_namespaceObject,{g:()=>HeaderTitle});var HeaderButton_namespaceObject={};__webpack_require__.r(HeaderButton_namespaceObject),__webpack_require__.d(HeaderButton_namespaceObject,{I:()=>HeaderButton});var HeaderButtonClose_namespaceObject={};__webpack_require__.r(HeaderButtonClose_namespaceObject),__webpack_require__.d(HeaderButtonClose_namespaceObject,{E:()=>HeaderButtonClose});var HeaderButtonZoom_namespaceObject={};__webpack_require__.r(HeaderButtonZoom_namespaceObject),__webpack_require__.d(HeaderButtonZoom_namespaceObject,{D:()=>HeaderButtonZoom});var header_namespaceObject={};__webpack_require__.r(header_namespaceObject),__webpack_require__.d(header_namespaceObject,{HeaderButtonClose:()=>HeaderButtonClose,HeaderButtonCloseProps:()=>HeaderButtonClose_namespaceObject.HeaderButtonCloseProps,HeaderButtonZoom:()=>HeaderButtonZoom,HeaderButtonZoomProps:()=>HeaderButtonZoom_namespaceObject.HeaderButtonZoomProps,HeaderTitle:()=>HeaderTitle,HeaderTitleProps:()=>HeaderTitle_namespaceObject.HeaderTitleProps});var WindowHeader_namespaceObject={};__webpack_require__.r(WindowHeader_namespaceObject),__webpack_require__.d(WindowHeader_namespaceObject,{y:()=>WindowHeader});var WithOverflow_namespaceObject={};__webpack_require__.r(WithOverflow_namespaceObject),__webpack_require__.d(WithOverflow_namespaceObject,{$:()=>WithOverflow});var footer_namespaceObject={};__webpack_require__.r(footer_namespaceObject),__webpack_require__.d(footer_namespaceObject,{FooterButton:()=>FooterButton,FooterButtonProps:()=>FooterButton_namespaceObject.FooterButtonProps});var WindowFooter_namespaceObject={};__webpack_require__.r(WindowFooter_namespaceObject),__webpack_require__.d(WindowFooter_namespaceObject,{O:()=>WindowFooter});var defaultComponents_namespaceObject={};function cov_20lhh6w4yl(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e8a0b1bac282329f45dd518d5aaf4444617eec1a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentProps.tsx"],mappings:"",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e8a0b1bac282329f45dd518d5aaf4444617eec1a"});var actualCoverage=coverage[path];return cov_20lhh6w4yl=function(){return actualCoverage},actualCoverage}__webpack_require__.r(defaultComponents_namespaceObject),__webpack_require__.d(defaultComponents_namespaceObject,{Content:()=>WithOverflow,ContentProps:()=>WithOverflow_namespaceObject.WithOverflowProps,Footer:()=>WindowFooter,FooterButton:()=>FooterButton,FooterButtonProps:()=>FooterButton_namespaceObject.FooterButtonProps,FooterProps:()=>WindowFooter_namespaceObject.WindowFooterProps,Header:()=>WindowHeader,HeaderButton:()=>HeaderButton,HeaderButtonClose:()=>HeaderButtonClose,HeaderButtonCloseProps:()=>HeaderButtonClose_namespaceObject.HeaderButtonCloseProps,HeaderButtonProps:()=>HeaderButton_namespaceObject.HeaderButtonProps,HeaderButtonZoom:()=>HeaderButtonZoom,HeaderButtonZoomProps:()=>HeaderButtonZoom_namespaceObject.HeaderButtonZoomProps,HeaderProps:()=>WindowHeader_namespaceObject.WindowHeaderProps,HeaderTitle:()=>HeaderTitle,HeaderTitleProps:()=>HeaderTitle_namespaceObject.HeaderTitleProps}),cov_20lhh6w4yl();var WindowContent=__webpack_require__("./src/components/window/WindowContent.tsx"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),emotion_element_43c6fea0_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"),react=__webpack_require__("./node_modules/react/index.js");function cov_15da4fkcyx(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"f1cac0b8a9fa176b0fe030dbf4b7b47a7eaca049"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx",statementMap:{0:{start:{line:2,column:27},end:{line:9,column:2}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,names:["css","buttonReset","padding","margin","border","background","outline","appearance"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/ButtonReset.tsx"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAElC,OAAO,MAAMC,WAAW,GAAGD,GAAG,CAAC;EAC7BE,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,UAAU,EAAE,aAAa;EACzBC,OAAO,EAAE,MAAM;EACfC,UAAU,EAAE;AACd,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f1cac0b8a9fa176b0fe030dbf4b7b47a7eaca049"});var actualCoverage=coverage[path];return cov_15da4fkcyx=function(){return actualCoverage},actualCoverage}cov_15da4fkcyx();const buttonReset=(cov_15da4fkcyx().s[0]++,(0,emotion_css_esm.AH)({padding:0,margin:0,border:0,background:"transparent",outline:"none",appearance:"none"}));function cov_19ty7ydoxf(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:6,column:23},end:{line:37,column:1}},10:{start:{line:10,column:6},end:{line:10,column:16}},11:{start:{line:13,column:6},end:{line:13,column:13}},12:{start:{line:14,column:2},end:{line:36,column:5}},13:{start:{line:45,column:6},end:{line:45,column:10}},14:{start:{line:46,column:32},end:{line:46,column:47}},15:{start:{line:47,column:28},end:{line:47,column:43}},16:{start:{line:48,column:18},end:{line:57,column:14}},17:{start:{line:49,column:4},end:{line:49,column:21}},18:{start:{line:50,column:4},end:{line:50,column:19}},19:{start:{line:51,column:4},end:{line:55,column:5}},20:{start:{line:52,column:6},end:{line:52,column:21}},21:{start:{line:54,column:6},end:{line:54,column:21}},22:{start:{line:56,column:4},end:{line:56,column:22}},23:{start:{line:58,column:21},end:{line:58,column:40}},24:{start:{line:59,column:22},end:{line:59,column:38}},25:{start:{line:60,column:2},end:{line:67,column:26}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:6,column:23},end:{line:6,column:24}},loc:{start:{line:6,column:29},end:{line:37,column:1}},line:6},3:{name:"FooterButton",decl:{start:{line:38,column:16},end:{line:38,column:28}},loc:{start:{line:38,column:35},end:{line:68,column:1}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:48,column:30},end:{line:48,column:31}},loc:{start:{line:48,column:42},end:{line:57,column:3}},line:48}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},3:{loc:{start:{line:12,column:4},end:{line:12,column:16}},type:"default-arg",locations:[{start:{line:12,column:15},end:{line:12,column:16}}],line:12},4:{loc:{start:{line:43,column:4},end:{line:43,column:25}},type:"default-arg",locations:[{start:{line:43,column:16},end:{line:43,column:25}}],line:43},5:{loc:{start:{line:58,column:21},end:{line:58,column:40}},type:"binary-expr",locations:[{start:{line:58,column:21},end:{line:58,column:29}},{start:{line:58,column:33},end:{line:58,column:40}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0],3:[0],4:[0],5:[0,0]},inputSourceMap:{version:3,names:["css","cx","useTheme","React","useCallback","useState","buttonReset","useButtonTheme","spacing","colors","baseUnit","textTransform","paddingTop","paddingBottom","paddingLeft","paddingRight","border","margin","marginLeft","marginRight","opacity","backgroundColor","primaryBackground","borderColor","focusColor","secondaryBackground","FooterButton","_ref","action","disabled","classname","className","props","working","setWorking","error","setError","onClick","e","isDisabled","buttonTheme","createElement","_extends","type","title"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/FooterButton.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,WAAW,QAAQ,eAAe;AAa3C,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAC3B,MAAM;IAAEC,OAAO,GAAG,CAAC,CAAC;IAAEC;EAAO,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC3C,MAAM;IAAEQ,QAAQ,GAAG;EAAE,CAAC,GAAGF,OAAO;EAChC,OAAOR,GAAG,CAAC;IACTW,aAAa,EAAE,WAAW;IAC1BC,UAAU,EAAEF,QAAQ;IACpBG,aAAa,EAAEH,QAAQ;IACvBI,WAAW,EAAEJ,QAAQ,GAAG,CAAC;IACzBK,YAAY,EAAEL,QAAQ,GAAG,CAAC;IAC1BM,MAAM,EAAE,WAAW;IACnBC,MAAM,EAAEP,QAAQ,GAAG,CAAC;IACpB,oBAAoB,EAAE;MACpBQ,UAAU,EAAER;IACd,CAAC;IACD,mBAAmB,EAAE;MACnBS,WAAW,EAAET;IACf,CAAC;IACD,WAAW,EAAE;MACXU,OAAO,EAAE;IACX,CAAC;IACDC,eAAe,EAAEZ,MAAM,CAACa,iBAAiB;IACzC,+BAA+B,EAAE;MAC/BC,WAAW,EAAEd,MAAM,CAACe,UAAU;MAC9BH,eAAe,EAAEZ,MAAM,CAACgB;IAC1B;EACF,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAAmG;EAAA,IAAlG;IAAEC,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,SAAS,GAAGD,SAAS;IAAE,GAAGE;EAAyB,CAAC,GAAAL,IAAA;EAC9G,MAAM,CAACM,OAAO,EAAEC,UAAU,CAAC,GAAG7B,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM,CAAC8B,KAAK,EAAEC,QAAQ,CAAC,GAAG/B,QAAQ,CAAC,KAAK,CAAC;EACzC,MAAMgC,OAAO,GAAGjC,WAAW,CAAC,YAAY;IACtC8B,UAAU,CAAC,IAAI,CAAC;IAChBE,QAAQ,CAAC,IAAI,CAAC;IACd,IAAI;MACF,MAAMR,MAAM,CAAC,CAAC;IAChB,CAAC,CAAC,OAAOU,CAAC,EAAE;MACVF,QAAQ,CAAC,IAAI,CAAC;IAChB;IACAF,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EACZ,MAAMW,UAAU,GAAGV,QAAQ,IAAII,OAAO;EACtC,MAAMO,WAAW,GAAGjC,cAAc,CAAC,CAAC;EACpC,oBACEJ,KAAA,CAAAsC,aAAA,WAAAC,QAAA;IACEC,IAAI,EAAC,QAAQ;IACbZ,SAAS,EAAE9B,EAAE,CAACK,WAAW,EAAEkC,WAAW,EAAE;MAAE,eAAe,EAAEL;IAAM,CAAC,EAAEJ,SAAS,CAAE;IAC/EM,OAAO,EAAEA,OAAQ;IACjBR,QAAQ,EAAEU;EAAW,GACjBP,KAAK,GAERA,KAAK,CAACY,KACD,CAAC;AAEb",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ec3ff1a94fefceb40348d7db1c5c2e8bfa917b0f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ec3ff1a94fefceb40348d7db1c5c2e8bfa917b0f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_19ty7ydoxf=function(){return actualCoverage},actualCoverage}function _extends(){return cov_19ty7ydoxf().f[0]++,cov_19ty7ydoxf().s[0]++,_extends=Object.assign?(cov_19ty7ydoxf().b[0][0]++,Object.assign.bind()):(cov_19ty7ydoxf().b[0][1]++,function(target){cov_19ty7ydoxf().f[1]++,cov_19ty7ydoxf().s[1]++;for(var i=(cov_19ty7ydoxf().s[2]++,1);i{cov_19ty7ydoxf().f[2]++;const{spacing=(cov_19ty7ydoxf().b[2][0]++,{}),colors}=(cov_19ty7ydoxf().s[10]++,(0,emotion_element_43c6fea0_browser_esm.u)()),{baseUnit=(cov_19ty7ydoxf().b[3][0]++,2)}=(cov_19ty7ydoxf().s[11]++,spacing);return cov_19ty7ydoxf().s[12]++,(0,emotion_css_esm.AH)({textTransform:"uppercase",paddingTop:baseUnit,paddingBottom:baseUnit,paddingLeft:6*baseUnit,paddingRight:6*baseUnit,border:"1px solid",margin:2*baseUnit,":not(:first-child)":{marginLeft:baseUnit},":not(:last-child)":{marginRight:baseUnit},":disabled":{opacity:.5},backgroundColor:colors.primaryBackground,":focus, :not(:disabled):hover":{borderColor:colors.focusColor,backgroundColor:colors.secondaryBackground}})};function FooterButton(_ref){cov_19ty7ydoxf().f[3]++;let{action,disabled,classname,className=(cov_19ty7ydoxf().b[4][0]++,classname),...props}=(cov_19ty7ydoxf().s[13]++,_ref);const[working,setWorking]=(cov_19ty7ydoxf().s[14]++,(0,react.useState)(!1)),[error,setError]=(cov_19ty7ydoxf().s[15]++,(0,react.useState)(!1)),onClick=(cov_19ty7ydoxf().s[16]++,(0,react.useCallback)((async()=>{cov_19ty7ydoxf().f[4]++,cov_19ty7ydoxf().s[17]++,setWorking(!0),cov_19ty7ydoxf().s[18]++,setError(null),cov_19ty7ydoxf().s[19]++;try{cov_19ty7ydoxf().s[20]++,await action()}catch(e){cov_19ty7ydoxf().s[21]++,setError(!0)}cov_19ty7ydoxf().s[22]++,setWorking(!1)}),[action])),isDisabled=(cov_19ty7ydoxf().s[23]++,cov_19ty7ydoxf().b[5][0]++,disabled||(cov_19ty7ydoxf().b[5][1]++,working)),buttonTheme=(cov_19ty7ydoxf().s[24]++,useButtonTheme());return cov_19ty7ydoxf().s[25]++,react.createElement("button",_extends({type:"button",className:(0,emotion_css_esm.cx)(buttonReset,buttonTheme,{"action-failed":error},className),onClick,disabled:isDisabled},props),props.title)}try{FooterButton.displayName="FooterButton",FooterButton.__docgenInfo={description:"",displayName:"FooterButton",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},action:{defaultValue:null,description:"",name:"action",required:!0,type:{name:"() => void | Promise"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},classname:{defaultValue:null,description:"@deprecated use className instead",name:"classname",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/footer/FooterButton.tsx#FooterButton"]={docgenInfo:FooterButton.__docgenInfo,name:"FooterButton",path:"src/components/window/footer/FooterButton.tsx#FooterButton"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/types.ts");var hooks=__webpack_require__("./src/hooks/index.ts"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),context=__webpack_require__("./src/context/index.ts"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),TransitionGroup=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroup.js"),CSSTransition=__webpack_require__("./node_modules/react-transition-group/esm/CSSTransition.js");function cov_12hfal0e6l(){var path="/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c06c4d9325a3434f34f305c753588ddafcd07d91"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts",statementMap:{0:{start:{line:2,column:34},end:{line:22,column:1}},1:{start:{line:3,column:10},end:{line:3,column:82}},2:{start:{line:4,column:2},end:{line:21,column:4}},3:{start:{line:23,column:36},end:{line:23,column:56}},4:{start:{line:24,column:33},end:{line:24,column:57}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:2,column:34},end:{line:2,column:35}},loc:{start:{line:2,column:46},end:{line:22,column:1}},line:2}},branchMap:{0:{loc:{start:{line:3,column:10},end:{line:3,column:82}},type:"cond-expr",locations:[{start:{line:3,column:63},end:{line:3,column:75}},{start:{line:3,column:78},end:{line:3,column:82}}],line:3},1:{loc:{start:{line:3,column:10},end:{line:3,column:60}},type:"binary-expr",locations:[{start:{line:3,column:10},end:{line:3,column:30}},{start:{line:3,column:34},end:{line:3,column:60}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","getFadeInAnimation","t","arguments","length","undefined","enter","opacity","enterActive","transition","pointerEvents","exit","exitActive","defaultFadeAnimation","fastFadeAnimation"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/getFadeInAnimation.ts"],mappings:"AAAA,SAASA,GAAG,QAAQ,cAAc;AAElC,OAAO,MAAMC,kBAAkB,GAAG,SAAAA,CAAA;EAAA,IAACC,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAAA,OAAM;IAC/CG,KAAK,EAAEN,GAAG,CAAC;MACTO,OAAO,EAAE;IACX,CAAC,CAAC;IACFC,WAAW,EAAER,GAAG,CAAC;MACfO,OAAO,EAAE,CAAC;MACVE,UAAU,EAAG,WAAUP,CAAE,eAAc;MACvCQ,aAAa,EAAE;IACjB,CAAC,CAAC;IACFC,IAAI,EAAEX,GAAG,CAAC;MACRO,OAAO,EAAE;IACX,CAAC,CAAC;IACFK,UAAU,EAAEZ,GAAG,CAAC;MACdO,OAAO,EAAE,CAAC;MACVE,UAAU,EAAG,WAAUP,CAAE,eAAc;MACvCQ,aAAa,EAAE;IACjB,CAAC;EACH,CAAC;AAAA,CAAC;AAEF,OAAO,MAAMG,oBAAoB,GAAGZ,kBAAkB,CAAC,CAAC;AACxD,OAAO,MAAMa,iBAAiB,GAAGb,kBAAkB,CAAC,IAAI,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c06c4d9325a3434f34f305c753588ddafcd07d91"});var actualCoverage=coverage[path];return cov_12hfal0e6l=function(){return actualCoverage},actualCoverage}cov_12hfal0e6l(),cov_12hfal0e6l().s[0]++;const getFadeInAnimation=function(){cov_12hfal0e6l().f[0]++;let t=(cov_12hfal0e6l().s[1]++,cov_12hfal0e6l().b[1][0]++,arguments.length>0&&(cov_12hfal0e6l().b[1][1]++,void 0!==arguments[0])?(cov_12hfal0e6l().b[0][0]++,arguments[0]):(cov_12hfal0e6l().b[0][1]++,.25));return cov_12hfal0e6l().s[2]++,{enter:(0,emotion_css_esm.AH)({opacity:0}),enterActive:(0,emotion_css_esm.AH)({opacity:1,transition:`opacity ${t}s ease-in-out`,pointerEvents:"none"}),exit:(0,emotion_css_esm.AH)({opacity:1}),exitActive:(0,emotion_css_esm.AH)({opacity:0,transition:`opacity ${t}s ease-in-out`,pointerEvents:"none"})}},defaultFadeAnimation=(cov_12hfal0e6l().s[3]++,getFadeInAnimation()),fastFadeAnimation=(cov_12hfal0e6l().s[4]++,getFadeInAnimation(.15));var color_alpha=__webpack_require__("./node_modules/color-alpha/index.js");function cov_lfk3shxj1(){var path="/home/runner/work/nk-windows/nk-windows/src/rgba.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"5c5435ad636202b164074595fa67781b2fc73215"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/rgba.tsx",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:25}}},fnMap:{0:{name:"rgba",decl:{start:{line:2,column:16},end:{line:2,column:20}},loc:{start:{line:2,column:31},end:{line:4,column:1}},line:2}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["alpha","rgba","color","a"],sources:["/home/runner/work/nk-windows/nk-windows/src/rgba.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,aAAa;AAE/B,OAAO,SAASC,IAAIA,CAACC,KAAa,EAAEC,CAAS,EAAU;EACrD,OAAOH,KAAK,CAACE,KAAK,EAAEC,CAAC,CAAC;AACxB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5c5435ad636202b164074595fa67781b2fc73215"});var actualCoverage=coverage[path];return cov_lfk3shxj1=function(){return actualCoverage},actualCoverage}function rgba(color,a){return cov_lfk3shxj1().f[0]++,cov_lfk3shxj1().s[0]++,(0,color_alpha.A)(color,a)}function cov_rrhoce58i(){var path="/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"2fbe51f6001060aa6e3d0cdf3c124861d23186e8"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx",statementMap:{0:{start:{line:11,column:6},end:{line:11,column:16}},1:{start:{line:14,column:6},end:{line:14,column:13}},2:{start:{line:15,column:28},end:{line:17,column:4}},3:{start:{line:18,column:23},end:{line:18,column:75}},4:{start:{line:18,column:37},end:{line:18,column:62}},5:{start:{line:19,column:22},end:{line:24,column:103}},6:{start:{line:19,column:36},end:{line:24,column:5}},7:{start:{line:25,column:2},end:{line:29,column:4}},8:{start:{line:32,column:16},end:{line:32,column:26}},9:{start:{line:33,column:25},end:{line:35,column:4}},10:{start:{line:36,column:2},end:{line:36,column:24}}},fnMap:{0:{name:"useFrameTheme",decl:{start:{line:5,column:16},end:{line:5,column:29}},loc:{start:{line:5,column:32},end:{line:30,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:18,column:31},end:{line:18,column:32}},loc:{start:{line:18,column:37},end:{line:18,column:62}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:19,column:30},end:{line:19,column:31}},loc:{start:{line:19,column:36},end:{line:24,column:5}},line:19},3:{name:"useModalMaskTheme",decl:{start:{line:31,column:16},end:{line:31,column:33}},loc:{start:{line:31,column:36},end:{line:37,column:1}},line:31}},branchMap:{0:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},1:{loc:{start:{line:13,column:4},end:{line:13,column:16}},type:"default-arg",locations:[{start:{line:13,column:15},end:{line:13,column:16}}],line:13}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0],1:[0]},inputSourceMap:{version:3,names:["css","cx","useTheme","useMemo","rgba","useFrameTheme","colors","spacing","backgroundOpacity","backdropFilter","baseUnit","focusWrapperTheme","border","Math","round","borderColor","windowMargin","max","windowTheme","background","primaryBackground","boxShadow","margin","useModalMaskTheme","theme","modalMaskTheme"],sources:["/home/runner/work/nk-windows/nk-windows/src/themeHooks.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,QAAQ,OAAO;AAC/B,SAASC,IAAI,QAAQ,QAAQ;AAE7B,OAAO,SAASC,aAAaA,CAAA,EAAG;EAC9B,MAAM;IAAEC,MAAM;IAAEC,OAAO,GAAG,CAAC,CAAC;IAAEC,iBAAiB;IAAEC;EAAe,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC9E,MAAM;IAAEQ,QAAQ,GAAG;EAAE,CAAC,GAAGH,OAAO;EAChC,MAAMI,iBAAiB,GAAGX,GAAG,CAAC;IAC5BY,MAAM,EAAG,GAAEC,IAAI,CAACC,KAAK,CAACJ,QAAQ,GAAG,CAAC,CAAE,YAAWJ,MAAM,EAAES,WAAY;EACrE,CAAC,CAAC;EACF,MAAMC,YAAY,GAAGb,OAAO,CAAC,MAAMU,IAAI,CAACI,GAAG,CAAC,CAAC,EAAEP,QAAQ,GAAG,CAAC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EACzE,MAAMQ,WAAW,GAAGf,OAAO,CACzB,MACEF,EAAE,CACAD,GAAG,CAAC;IACFS,cAAc,EAAEA,cAAc;IAC9BU,UAAU,EAAEf,IAAI,CAACE,MAAM,CAACc,iBAAiB,EAAEZ,iBAAiB,CAAC;IAC7Da,SAAS,EAAG,gBAAejB,IAAI,CAACE,MAAM,CAACS,WAAW,EAAE,GAAG,CAAE,EAAC;IAC1DO,MAAM,EAAEN,YAAY,CAAE;EACxB,CAAC,CACH,CAAC,EACH,CAACP,cAAc,EAAED,iBAAiB,EAAEF,MAAM,CAACS,WAAW,EAAET,MAAM,CAACc,iBAAiB,EAAEJ,YAAY,CAChG,CAAC;EAED,OAAO;IAAEL,iBAAiB;IAAEO,WAAW;IAAEF;EAAa,CAAC;AACzD;AAEA,OAAO,SAASO,iBAAiBA,CAAA,EAAG;EAClC,MAAMC,KAAK,GAAGtB,QAAQ,CAAC,CAAC;EACxB,MAAMuB,cAAc,GAAGzB,GAAG,CAAC;IACzBmB,UAAU,EAAEf,IAAI,CAACoB,KAAK,CAAClB,MAAM,CAACS,WAAW,EAAE,GAAG;EAChD,CAAC,CAAC;EACF,OAAOU,cAAc;AACvB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2fbe51f6001060aa6e3d0cdf3c124861d23186e8"});var actualCoverage=coverage[path];return cov_rrhoce58i=function(){return actualCoverage},actualCoverage}function cov_2je9arqzo9(){var path="/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"531e360c4a2dd869755386182c7b104cdf272c6b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx",statementMap:{0:{start:{line:5,column:38},end:{line:25,column:2}},1:{start:{line:8,column:6},end:{line:8,column:10}},2:{start:{line:9,column:25},end:{line:9,column:44}},3:{start:{line:10,column:25},end:{line:17,column:4}},4:{start:{line:18,column:2},end:{line:24,column:5}},5:{start:{line:26,column:0},end:{line:26,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:49},end:{line:5,column:50}},loc:{start:{line:5,column:64},end:{line:25,column:1}},line:5}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","forwardRef","rgba","useModalMaskTheme","ModalMask","_ref","ref","zIndex","modalMaskTheme","modalMaskClass","top","left","right","bottom","position","background","createElement","className","style","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/ModalMask.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAIC,UAAU,QAAmB,OAAO;AACpD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,iBAAiB,QAAQ,eAAe;AAEjD,OAAO,MAAMC,SAAS,gBAAGH,UAAU,CAAC,CAAAI,IAAA,EAAkCC,GAA8B,KAAkB;EAAA,IAAjF;IAAEC;EAA4B,CAAC,GAAAF,IAAA;EAClE,MAAMG,cAAc,GAAGL,iBAAiB,CAAC,CAAC;EAC1C,MAAMM,cAAc,GAAGX,GAAG,CAAC;IACzBY,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,QAAQ,EAAE,OAAO;IACjBC,UAAU,EAAEb,IAAI,CAAC,OAAO,EAAE,GAAG;EAC/B,CAAC,CAAC;EACF,oBAAOF,KAAA,CAAAgB,aAAA;IAAKV,GAAG,EAAEA,GAAI;IAACW,SAAS,EAAElB,EAAE,CAACU,cAAc,EAAED,cAAc,CAAE;IAACU,KAAK,EAAE;MAAEX;IAAO;EAAE,CAAE,CAAC;AAC5F,CAAC,CAAC;AAEFH,SAAS,CAACe,WAAW,GAAG,WAAW",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"531e360c4a2dd869755386182c7b104cdf272c6b"});var actualCoverage=coverage[path];return cov_2je9arqzo9=function(){return actualCoverage},actualCoverage}cov_lfk3shxj1(),cov_rrhoce58i(),cov_2je9arqzo9();const ModalMask=(cov_2je9arqzo9().s[0]++,(0,react.forwardRef)(((_ref,ref)=>{cov_2je9arqzo9().f[0]++;let{zIndex}=(cov_2je9arqzo9().s[1]++,_ref);const modalMaskTheme=(cov_2je9arqzo9().s[2]++,function useModalMaskTheme(){cov_rrhoce58i().f[3]++;const theme=(cov_rrhoce58i().s[8]++,(0,emotion_element_43c6fea0_browser_esm.u)()),modalMaskTheme=(cov_rrhoce58i().s[9]++,(0,emotion_css_esm.AH)({background:rgba(theme.colors.borderColor,.6)}));return cov_rrhoce58i().s[10]++,modalMaskTheme}()),modalMaskClass=(cov_2je9arqzo9().s[3]++,(0,emotion_css_esm.AH)({top:0,left:0,right:0,bottom:0,position:"fixed",background:rgba("black",.6)}));return cov_2je9arqzo9().s[4]++,react.createElement("div",{ref,className:(0,emotion_css_esm.cx)(modalMaskClass,modalMaskTheme),style:{zIndex}})})));cov_2je9arqzo9().s[5]++,ModalMask.displayName="ModalMask";try{ModalMask.displayName="ModalMask",ModalMask.__docgenInfo={description:"",displayName:"ModalMask",props:{zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ModalMask.tsx#ModalMask"]={docgenInfo:ModalMask.__docgenInfo,name:"ModalMask",path:"src/components/ModalMask.tsx#ModalMask"})}catch(__react_docgen_typescript_loader_error){}var fp=__webpack_require__("./node_modules/lodash/fp.js"),es2015=__webpack_require__("./node_modules/react-focus-lock/dist/es2015/index.js"),lib=__webpack_require__("./node_modules/react-rnd/lib/index.js"),useMutationObserver=__webpack_require__("./node_modules/rooks/dist/esm/hooks/useMutationObserver.js"),usePreviousImmediate=__webpack_require__("./node_modules/rooks/dist/esm/hooks/usePreviousImmediate.js"),usePreviousDifferent=__webpack_require__("./node_modules/rooks/dist/esm/hooks/usePreviousDifferent.js"),useDebounce=__webpack_require__("./node_modules/rooks/dist/esm/hooks/useDebounce.js");function cov_lzyxjvp10(){var path="/home/runner/work/nk-windows/nk-windows/src/consts.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6a44a03f6907727c5f9ccdeacb710e298890b024"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/consts.ts",statementMap:{0:{start:{line:1,column:38},end:{line:1,column:51}},1:{start:{line:2,column:39},end:{line:2,column:48}}},fnMap:{},branchMap:{},s:{0:0,1:0},f:{},b:{},inputSourceMap:{version:3,names:["DRAG_HANDLE_CLASS_NAME","DRAG_PREVENT_CLASS_NAME"],sources:["/home/runner/work/nk-windows/nk-windows/src/consts.ts"],mappings:"AAAA,OAAO,MAAMA,sBAAsB,GAAG,aAAa;AACnD,OAAO,MAAMC,uBAAuB,GAAG,SAAS",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6a44a03f6907727c5f9ccdeacb710e298890b024"});var actualCoverage=coverage[path];return cov_lzyxjvp10=function(){return actualCoverage},actualCoverage}cov_lzyxjvp10();const DRAG_HANDLE_CLASS_NAME=(cov_lzyxjvp10().s[0]++,"drag-handle"),DRAG_PREVENT_CLASS_NAME=(cov_lzyxjvp10().s[1]++,"no-drag");function cov_2bu7blp47f(){var path="/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx",statementMap:{0:{start:{line:3,column:18},end:{line:3,column:26}},1:{start:{line:4,column:20},end:{line:4,column:32}},2:{start:{line:5,column:2},end:{line:20,column:11}},3:{start:{line:6,column:27},end:{line:9,column:5}},4:{start:{line:7,column:6},end:{line:7,column:33}},5:{start:{line:8,column:6},end:{line:8,column:68}},6:{start:{line:10,column:28},end:{line:13,column:5}},7:{start:{line:11,column:6},end:{line:11,column:29}},8:{start:{line:12,column:6},end:{line:12,column:68}},9:{start:{line:14,column:4},end:{line:14,column:52}},10:{start:{line:15,column:4},end:{line:15,column:54}},11:{start:{line:16,column:4},end:{line:19,column:6}},12:{start:{line:17,column:6},end:{line:17,column:57}},13:{start:{line:18,column:6},end:{line:18,column:59}},14:{start:{line:21,column:2},end:{line:34,column:11}},15:{start:{line:22,column:21},end:{line:29,column:5}},16:{start:{line:23,column:6},end:{line:28,column:7}},17:{start:{line:24,column:8},end:{line:24,column:42}},18:{start:{line:25,column:8},end:{line:27,column:9}},19:{start:{line:26,column:10},end:{line:26,column:72}},20:{start:{line:30,column:4},end:{line:30,column:57}},21:{start:{line:31,column:4},end:{line:33,column:6}},22:{start:{line:32,column:6},end:{line:32,column:62}}},fnMap:{0:{name:"useScrollFix",decl:{start:{line:2,column:16},end:{line:2,column:28}},loc:{start:{line:2,column:33},end:{line:35,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:5,column:12},end:{line:5,column:13}},loc:{start:{line:5,column:18},end:{line:20,column:3}},line:5},2:{name:"(anonymous_2)",decl:{start:{line:6,column:27},end:{line:6,column:28}},loc:{start:{line:6,column:32},end:{line:9,column:5}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:10,column:28},end:{line:10,column:29}},loc:{start:{line:10,column:33},end:{line:13,column:5}},line:10},4:{name:"(anonymous_4)",decl:{start:{line:16,column:11},end:{line:16,column:12}},loc:{start:{line:16,column:17},end:{line:19,column:5}},line:16},5:{name:"(anonymous_5)",decl:{start:{line:21,column:12},end:{line:21,column:13}},loc:{start:{line:21,column:18},end:{line:34,column:3}},line:21},6:{name:"(anonymous_6)",decl:{start:{line:22,column:21},end:{line:22,column:22}},loc:{start:{line:22,column:26},end:{line:29,column:5}},line:22},7:{name:"(anonymous_7)",decl:{start:{line:31,column:11},end:{line:31,column:12}},loc:{start:{line:31,column:17},end:{line:33,column:5}},line:31}},branchMap:{0:{loc:{start:{line:23,column:6},end:{line:28,column:7}},type:"if",locations:[{start:{line:23,column:6},end:{line:28,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:23},1:{loc:{start:{line:23,column:10},end:{line:23,column:91}},type:"binary-expr",locations:[{start:{line:23,column:10},end:{line:23,column:36}},{start:{line:23,column:40},end:{line:23,column:91}}],line:23},2:{loc:{start:{line:25,column:8},end:{line:27,column:9}},type:"if",locations:[{start:{line:25,column:8},end:{line:27,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:25}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,names:["useEffect","useRef","useScrollFix","el","focused","scrollTop","focusInHandler","e","current","target","window","document","documentElement","focusOutHandler","addEventListener","removeEventListener","listener","visualViewport","height","innerHeight","scrollIntoView"],sources:["/home/runner/work/nk-windows/nk-windows/src/hooks/useScrollFix.tsx"],mappings:"AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,OAAO,SAASC,YAAYA,CAACC,EAAe,EAAE;EAC5C,MAAMC,OAAO,GAAGH,MAAM,CAAc,CAAC;EACrC,MAAMI,SAAS,GAAGJ,MAAM,CAAS,IAAI,CAAC;EAEtCD,SAAS,CAAC,MAAM;IACd,MAAMM,cAAc,GAAIC,CAAC,IAAK;MAC5BH,OAAO,CAACI,OAAO,GAAGD,CAAC,CAACE,MAAM;MAC1BJ,SAAS,CAACG,OAAO,GAAGE,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS;IAC/D,CAAC;IACD,MAAMQ,eAAe,GAAIN,CAAC,IAAK;MAC7BH,OAAO,CAACI,OAAO,GAAG,IAAI;MACtBH,SAAS,CAACG,OAAO,GAAGE,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS;IAC/D,CAAC;IACDF,EAAE,EAAEW,gBAAgB,CAAC,SAAS,EAAER,cAAc,CAAC;IAC/CH,EAAE,EAAEW,gBAAgB,CAAC,UAAU,EAAED,eAAe,CAAC;IACjD,OAAO,MAAM;MACXV,EAAE,EAAEY,mBAAmB,CAAC,SAAS,EAAET,cAAc,CAAC;MAClDH,EAAE,EAAEY,mBAAmB,CAAC,UAAU,EAAEF,eAAe,CAAC;IACtD,CAAC;EACH,CAAC,EAAE,CAACV,EAAE,CAAC,CAAC;EAERH,SAAS,CAAC,MAAM;IACd,MAAMgB,QAAQ,GAAIT,CAAC,IAAK;MACtB,IAAI,gBAAgB,IAAIG,MAAM,IAAIA,MAAM,CAACO,cAAc,CAACC,MAAM,KAAKR,MAAM,CAACS,WAAW,EAAE;QACrFf,OAAO,CAACI,OAAO,EAAEY,cAAc,CAAC,CAAC;QACjC,IAAIf,SAAS,KAAK,IAAI,EAAE;UACtBK,MAAM,CAACC,QAAQ,CAACC,eAAe,CAACP,SAAS,GAAGA,SAAS,CAACG,OAAO;QAC/D;MACF;IACF,CAAC;IACDS,cAAc,EAAEH,gBAAgB,CAAC,QAAQ,EAAEE,QAAQ,CAAC;IACpD,OAAO,MAAM;MACXC,cAAc,EAAEF,mBAAmB,CAAC,QAAQ,EAAEC,QAAQ,CAAC;IACzD,CAAC;EACH,CAAC,EAAE,CAACb,EAAE,CAAC,CAAC;AACV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0528a40bbcf4486b38a5b370b8d64d949c38b643"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0528a40bbcf4486b38a5b370b8d64d949c38b643"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2bu7blp47f=function(){return actualCoverage},actualCoverage}function useScrollFix(el){cov_2bu7blp47f().f[0]++;const focused=(cov_2bu7blp47f().s[0]++,(0,react.useRef)()),scrollTop=(cov_2bu7blp47f().s[1]++,(0,react.useRef)(null));cov_2bu7blp47f().s[2]++,(0,react.useEffect)((()=>{cov_2bu7blp47f().f[1]++,cov_2bu7blp47f().s[3]++;const focusInHandler=e=>{cov_2bu7blp47f().f[2]++,cov_2bu7blp47f().s[4]++,focused.current=e.target,cov_2bu7blp47f().s[5]++,scrollTop.current=window.document.documentElement.scrollTop};cov_2bu7blp47f().s[6]++;const focusOutHandler=e=>{cov_2bu7blp47f().f[3]++,cov_2bu7blp47f().s[7]++,focused.current=null,cov_2bu7blp47f().s[8]++,scrollTop.current=window.document.documentElement.scrollTop};return cov_2bu7blp47f().s[9]++,el?.addEventListener("focusin",focusInHandler),cov_2bu7blp47f().s[10]++,el?.addEventListener("focusout",focusOutHandler),cov_2bu7blp47f().s[11]++,()=>{cov_2bu7blp47f().f[4]++,cov_2bu7blp47f().s[12]++,el?.removeEventListener("focusin",focusInHandler),cov_2bu7blp47f().s[13]++,el?.removeEventListener("focusout",focusOutHandler)}}),[el]),cov_2bu7blp47f().s[14]++,(0,react.useEffect)((()=>{cov_2bu7blp47f().f[5]++,cov_2bu7blp47f().s[15]++;const listener=e=>{cov_2bu7blp47f().f[6]++,cov_2bu7blp47f().s[16]++,cov_2bu7blp47f().b[1][0]++,"visualViewport"in window&&(cov_2bu7blp47f().b[1][1]++,window.visualViewport.height!==window.innerHeight)?(cov_2bu7blp47f().b[0][0]++,cov_2bu7blp47f().s[17]++,focused.current?.scrollIntoView(),cov_2bu7blp47f().s[18]++,null!==scrollTop?(cov_2bu7blp47f().b[2][0]++,cov_2bu7blp47f().s[19]++,window.document.documentElement.scrollTop=scrollTop.current):cov_2bu7blp47f().b[2][1]++):cov_2bu7blp47f().b[0][1]++};return cov_2bu7blp47f().s[20]++,visualViewport?.addEventListener("scroll",listener),cov_2bu7blp47f().s[21]++,()=>{cov_2bu7blp47f().f[7]++,cov_2bu7blp47f().s[22]++,visualViewport?.removeEventListener("scroll",listener)}}),[el])}cov_2bu7blp47f();try{useScrollFix.displayName="useScrollFix",useScrollFix.__docgenInfo={description:"",displayName:"useScrollFix",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useScrollFix.tsx#useScrollFix"]={docgenInfo:useScrollFix.__docgenInfo,name:"useScrollFix",path:"src/hooks/useScrollFix.tsx#useScrollFix"})}catch(__react_docgen_typescript_loader_error){}function cov_1ij5oj001f(){var path="/home/runner/work/nk-windows/nk-windows/src/utils.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"4956204ab69252a892673c59f65873bb98a33183"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/utils.ts",statementMap:{0:{start:{line:2,column:13},end:{line:2,column:36}},1:{start:{line:3,column:2},end:{line:5,column:4}},2:{start:{line:4,column:4},end:{line:4,column:21}},3:{start:{line:8,column:2},end:{line:8,column:28}},4:{start:{line:11,column:2},end:{line:11,column:35}}},fnMap:{0:{name:"delay",decl:{start:{line:1,column:16},end:{line:1,column:21}},loc:{start:{line:1,column:35},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:3,column:9},end:{line:3,column:10}},loc:{start:{line:3,column:15},end:{line:5,column:3}},line:3},2:{name:"defer",decl:{start:{line:7,column:16},end:{line:7,column:21}},loc:{start:{line:7,column:32},end:{line:9,column:1}},line:7},3:{name:"random",decl:{start:{line:10,column:16},end:{line:10,column:22}},loc:{start:{line:10,column:26},end:{line:12,column:1}},line:10}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0,2:0,3:0},b:{},inputSourceMap:{version:3,names:["delay","t","callback","to","setTimeout","clearTimeout","defer","random","n","Math"],sources:["/home/runner/work/nk-windows/nk-windows/src/utils.ts"],mappings:"AAAA,OAAO,SAASA,KAAKA,CAACC,CAAS,EAAEC,QAAoB,EAAc;EACjE,MAAMC,EAAE,GAAGC,UAAU,CAACF,QAAQ,EAAED,CAAC,CAAC;EAClC,OAAO,MAAM;IACXI,YAAY,CAACF,EAAE,CAAC;EAClB,CAAC;AACH;AAEA,OAAO,SAASG,KAAKA,CAACJ,QAAoB,EAAc;EACtD,OAAOF,KAAK,CAAC,CAAC,EAAEE,QAAQ,CAAC;AAC3B;AAEA,OAAO,SAASK,MAAMA,CAACC,CAAS,EAAU;EACxC,OAAO,CAACC,IAAI,CAACF,MAAM,CAAC,CAAC,GAAG,GAAG,IAAIC,CAAC;AAClC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4956204ab69252a892673c59f65873bb98a33183"});var actualCoverage=coverage[path];return cov_1ij5oj001f=function(){return actualCoverage},actualCoverage}function cov_23u2ihntpe(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e25f70fe22fe22015d02337b5ac739d2338d0ae8"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx",statementMap:{0:{start:{line:6,column:24},end:{line:36,column:1}},1:{start:{line:9,column:6},end:{line:9,column:10}},2:{start:{line:10,column:18},end:{line:10,column:30}},3:{start:{line:16,column:6},end:{line:16,column:16}},4:{start:{line:17,column:2},end:{line:35,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:24},end:{line:6,column:25}},loc:{start:{line:6,column:32},end:{line:36,column:1}},line:6}},branchMap:{0:{loc:{start:{line:17,column:65},end:{line:35,column:5}},type:"binary-expr",locations:[{start:{line:17,column:65},end:{line:17,column:75}},{start:{line:17,column:92},end:{line:35,column:5}}],line:17}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useTheme","React","useRef","CSSTransition","TransitionGroup","rgba","fastFadeAnimation","SnapMask","_ref","previewBox","nodeRef","colors","spacing","baseUnit","createElement","timeout","classNames","ref","style","boxSizing","position","zIndex","background","focusColor","border","Math","round","top","y","left","x","width","height","transition"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/SnapMask.tsx"],mappings:"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;AACvE,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,iBAAiB,QAAQ,uBAAuB;AAGzD,OAAO,MAAMC,QAAQ,GAAGC,IAAA,IAAyC;EAAA,IAAxC;IAAEC;EAAgC,CAAC,GAAAD,IAAA;EAC1D,MAAME,OAAO,GAAGR,MAAM,CAAiB,IAAI,CAAC;EAC5C,MAAM;IACJS,MAAM;IACNC,OAAO,EAAE;MAAEC;IAAS;EACtB,CAAC,GAAGb,QAAQ,CAAC,CAAC;EAEd,oBACEC,KAAA,CAAAa,aAAA,CAACV,eAAe,QACbK,UAAU,iBACTR,KAAA,CAAAa,aAAA,CAACX,aAAa;IAACO,OAAO,EAAEA,OAAQ;IAACK,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEV;EAAkB,gBAC3EL,KAAA,CAAAa,aAAA;IACEG,GAAG,EAAEP,OAAQ;IACbQ,KAAK,EAAE;MACLC,SAAS,EAAE,YAAY;MACvBC,QAAQ,EAAE,OAAO;MACjBC,MAAM,EAAE,EAAE;MACVC,UAAU,EAAEjB,IAAI,CAACM,MAAM,CAACY,UAAU,EAAE,IAAI,CAAC;MACzCC,MAAM,EAAG,GAAEC,IAAI,CAACC,KAAK,CAACb,QAAQ,GAAG,CAAC,CAAE,YAAWF,MAAM,EAAEY,UAAW,EAAC;MACnEI,GAAG,EAAElB,UAAU,CAACmB,CAAC;MACjBC,IAAI,EAAEpB,UAAU,CAACqB,CAAC;MAClBC,KAAK,EAAEtB,UAAU,CAACsB,KAAK;MACvBC,MAAM,EAAEvB,UAAU,CAACuB,MAAM;MACzBC,UAAU,EAAE;IACd;EAAE,CACH,CACY,CAEF,CAAC;AAEtB,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e25f70fe22fe22015d02337b5ac739d2338d0ae8"});var actualCoverage=coverage[path];return cov_23u2ihntpe=function(){return actualCoverage},actualCoverage}cov_1ij5oj001f(),cov_23u2ihntpe(),cov_23u2ihntpe().s[0]++;const SnapMask=_ref=>{cov_23u2ihntpe().f[0]++;let{previewBox}=(cov_23u2ihntpe().s[1]++,_ref);const nodeRef=(cov_23u2ihntpe().s[2]++,(0,react.useRef)(null)),{colors,spacing:{baseUnit}}=(cov_23u2ihntpe().s[3]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_23u2ihntpe().s[4]++,react.createElement(TransitionGroup.A,null,(cov_23u2ihntpe().b[0][0]++,previewBox&&(cov_23u2ihntpe().b[0][1]++,react.createElement(CSSTransition.A,{nodeRef,timeout:250,classNames:fastFadeAnimation},react.createElement("div",{ref:nodeRef,style:{boxSizing:"border-box",position:"fixed",zIndex:10,background:rgba(colors.focusColor,.25),border:`${Math.round(baseUnit/3)}px solid ${colors?.focusColor}`,top:previewBox.y,left:previewBox.x,width:previewBox.width,height:previewBox.height,transition:"all .15s ease-in-out"}})))))};try{SnapMask.displayName="SnapMask",SnapMask.__docgenInfo={description:"",displayName:"SnapMask",props:{previewBox:{defaultValue:null,description:"",name:"previewBox",required:!0,type:{name:"Box"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/SnapMask.tsx#SnapMask"]={docgenInfo:SnapMask.__docgenInfo,name:"SnapMask",path:"src/components/window/SnapMask.tsx#SnapMask"})}catch(__react_docgen_typescript_loader_error){}function cov_23097d1g9o(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"189bb014479d1dde3bfa0480667abb9cde2593c6"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts",statementMap:{0:{start:{line:1,column:31},end:{line:12,column:5}},1:{start:{line:2,column:2},end:{line:2,column:34}},2:{start:{line:3,column:2},end:{line:3,column:32}},3:{start:{line:4,column:2},end:{line:4,column:36}},4:{start:{line:5,column:2},end:{line:5,column:38}},5:{start:{line:6,column:2},end:{line:6,column:34}},6:{start:{line:7,column:2},end:{line:7,column:40}},7:{start:{line:8,column:2},end:{line:8,column:42}},8:{start:{line:9,column:2},end:{line:9,column:47}},9:{start:{line:10,column:2},end:{line:10,column:48}},10:{start:{line:11,column:2},end:{line:11,column:14}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:1,column:31},end:{line:1,column:32}},loc:{start:{line:1,column:47},end:{line:12,column:1}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["Side"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/types.ts"],mappings:"AAAA,WAAYA,IAAI,0BAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAA,OAAJA,IAAI;AAAA",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"189bb014479d1dde3bfa0480667abb9cde2593c6"});var actualCoverage=coverage[path];return cov_23097d1g9o=function(){return actualCoverage},actualCoverage}cov_23097d1g9o();let Side=(cov_23097d1g9o().s[0]++,function(Side){return cov_23097d1g9o().f[0]++,cov_23097d1g9o().s[1]++,Side[Side.none=0]="none",cov_23097d1g9o().s[2]++,Side[Side.top=1]="top",cov_23097d1g9o().s[3]++,Side[Side.right=2]="right",cov_23097d1g9o().s[4]++,Side[Side.bottom=4]="bottom",cov_23097d1g9o().s[5]++,Side[Side.left=8]="left",cov_23097d1g9o().s[6]++,Side[Side.topLeft=9]="topLeft",cov_23097d1g9o().s[7]++,Side[Side.topRight=3]="topRight",cov_23097d1g9o().s[8]++,Side[Side.bottomLeft=12]="bottomLeft",cov_23097d1g9o().s[9]++,Side[Side.bottomRight=6]="bottomRight",cov_23097d1g9o().s[10]++,Side}({}));function cov_re07yzcqk(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx",statementMap:{0:{start:{line:5,column:2},end:{line:10,column:4}},1:{start:{line:13,column:15},end:{line:13,column:84}},2:{start:{line:14,column:23},end:{line:14,column:70}},3:{start:{line:18,column:6},end:{line:18,column:23}},4:{start:{line:19,column:38},end:{line:19,column:52}},5:{start:{line:20,column:18},end:{line:53,column:21}},6:{start:{line:22,column:17},end:{line:22,column:23}},7:{start:{line:23,column:17},end:{line:23,column:21}},8:{start:{line:24,column:17},end:{line:24,column:32}},9:{start:{line:25,column:17},end:{line:25,column:30}},10:{start:{line:26,column:17},end:{line:26,column:24}},11:{start:{line:27,column:17},end:{line:27,column:24}},12:{start:{line:28,column:17},end:{line:28,column:24}},13:{start:{line:29,column:6},end:{line:29,column:34}},14:{start:{line:31,column:33},end:{line:31,column:72}},15:{start:{line:32,column:33},end:{line:32,column:74}},16:{start:{line:33,column:4},end:{line:52,column:5}},17:{start:{line:35,column:8},end:{line:35,column:35}},18:{start:{line:37,column:8},end:{line:37,column:35}},19:{start:{line:39,column:8},end:{line:39,column:35}},20:{start:{line:41,column:8},end:{line:41,column:35}},21:{start:{line:43,column:8},end:{line:43,column:35}},22:{start:{line:45,column:8},end:{line:45,column:35}},23:{start:{line:47,column:8},end:{line:47,column:35}},24:{start:{line:49,column:8},end:{line:49,column:35}},25:{start:{line:51,column:8},end:{line:51,column:20}},26:{start:{line:54,column:25},end:{line:64,column:31}},27:{start:{line:55,column:17},end:{line:55,column:30}},28:{start:{line:56,column:4},end:{line:63,column:5}},29:{start:{line:57,column:6},end:{line:59,column:7}},30:{start:{line:58,column:8},end:{line:58,column:37}},31:{start:{line:60,column:6},end:{line:60,column:26}},32:{start:{line:62,column:6},end:{line:62,column:26}},33:{start:{line:65,column:2},end:{line:65,column:38}}},fnMap:{0:{name:"box",decl:{start:{line:4,column:9},end:{line:4,column:12}},loc:{start:{line:4,column:25},end:{line:11,column:1}},line:4},1:{name:"useSnapAreas",decl:{start:{line:12,column:16},end:{line:12,column:28}},loc:{start:{line:12,column:31},end:{line:66,column:1}},line:12},2:{name:"(anonymous_2)",decl:{start:{line:20,column:30},end:{line:20,column:31}},loc:{start:{line:20,column:38},end:{line:53,column:3}},line:20},3:{name:"points",decl:{start:{line:21,column:13},end:{line:21,column:19}},loc:{start:{line:21,column:36},end:{line:30,column:5}},line:21},4:{name:"(anonymous_4)",decl:{start:{line:54,column:37},end:{line:54,column:38}},loc:{start:{line:54,column:58},end:{line:64,column:3}},line:54}},branchMap:{0:{loc:{start:{line:13,column:15},end:{line:13,column:84}},type:"cond-expr",locations:[{start:{line:13,column:68},end:{line:13,column:80}},{start:{line:13,column:83},end:{line:13,column:84}}],line:13},1:{loc:{start:{line:13,column:15},end:{line:13,column:65}},type:"binary-expr",locations:[{start:{line:13,column:15},end:{line:13,column:35}},{start:{line:13,column:39},end:{line:13,column:65}}],line:13},2:{loc:{start:{line:14,column:23},end:{line:14,column:70}},type:"cond-expr",locations:[{start:{line:14,column:46},end:{line:14,column:58}},{start:{line:14,column:61},end:{line:14,column:70}}],line:14},3:{loc:{start:{line:33,column:4},end:{line:52,column:5}},type:"switch",locations:[{start:{line:34,column:6},end:{line:35,column:35}},{start:{line:36,column:6},end:{line:37,column:35}},{start:{line:38,column:6},end:{line:39,column:35}},{start:{line:40,column:6},end:{line:41,column:35}},{start:{line:42,column:6},end:{line:43,column:35}},{start:{line:44,column:6},end:{line:45,column:35}},{start:{line:46,column:6},end:{line:47,column:35}},{start:{line:48,column:6},end:{line:49,column:35}},{start:{line:50,column:6},end:{line:51,column:20}}],line:33},4:{loc:{start:{line:56,column:4},end:{line:63,column:5}},type:"if",locations:[{start:{line:56,column:4},end:{line:63,column:5}},{start:{line:61,column:11},end:{line:63,column:5}}],line:56},5:{loc:{start:{line:57,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:59,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0,0,0,0,0,0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,names:["useCallback","useState","useViewportSize","Side","box","x","y","w","h","Math","round","width","height","useSnapAreas","margin","arguments","length","undefined","onSnapCallback","previewBox","setPreviewBox","getBBox","side","points","fullSize","size","p0","p1","p2","p3","w0","w1","w2","x0","x2","wf","wl","wr","y0","y2","hf","ht","hb","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight","onSideEdgeSnap","isDropped","bBox"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapAreas.tsx"],mappings:"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC7C,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAAiBC,IAAI,QAAc,SAAS;AAE5C,SAASC,GAAGA,CAACC,CAAS,EAAEC,CAAS,EAAEC,CAAS,EAAEC,CAAS,EAAO;EAC5D,OAAO;IAAEH,CAAC,EAAEI,IAAI,CAACC,KAAK,CAACL,CAAC,CAAC;IAAEC,CAAC,EAAEG,IAAI,CAACC,KAAK,CAACJ,CAAC,CAAC;IAAEK,KAAK,EAAEF,IAAI,CAACC,KAAK,CAACH,CAAC,CAAC;IAAEK,MAAM,EAAEH,IAAI,CAACC,KAAK,CAACF,CAAC;EAAE,CAAC;AAC5F;AAIA,OAAO,SAASK,YAAYA,CAAA,EAA+G;EAAA,IAA9GC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,cAA+C,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EACtF,MAAM;IAAEN,KAAK;IAAEC;EAAO,CAAC,GAAGV,eAAe,CAAC,CAAC;EAC3C,MAAM,CAACiB,UAAU,EAAEC,aAAa,CAAC,GAAGnB,QAAQ,CAAa,IAAI,CAAC;EAE9D,MAAMoB,OAAO,GAAGrB,WAAW,CACxBsB,IAAU,IAAU;IACnB,SAASC,MAAMA,CAACC,QAAQ,EAAEC,IAAI,EAAE;MAC9B,MAAMC,EAAE,GAAGZ,MAAM;MACjB,MAAMa,EAAE,GAAGF,IAAI;MACf,MAAMG,EAAE,GAAGJ,QAAQ,GAAGC,IAAI;MAC1B,MAAMI,EAAE,GAAGL,QAAQ,GAAGE,EAAE;MAExB,MAAMI,EAAE,GAAGD,EAAE,GAAGH,EAAE;MAClB,MAAMK,EAAE,GAAGJ,EAAE,GAAGD,EAAE;MAClB,MAAMM,EAAE,GAAGH,EAAE,GAAGD,EAAE;MAClB,OAAO,CAACF,EAAE,EAAEE,EAAE,EAAEE,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC;IAC7B;IAEA,MAAM,CAACC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC,GAAGd,MAAM,CAACZ,KAAK,EAAEA,KAAK,GAAG,GAAG,GAAGG,MAAM,GAAG,CAAC,CAAC;IACpE,MAAM,CAACwB,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC,GAAGnB,MAAM,CAACX,MAAM,EAAEA,MAAM,GAAG,GAAG,GAAGE,MAAM,GAAG,CAAC,CAAC;IAEtE,QAAQQ,IAAI;MACV,KAAKnB,IAAI,CAACwC,GAAG;QACX,OAAOvC,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEH,EAAE,EAAEM,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAACyC,MAAM;QACd,OAAOxC,GAAG,CAAC6B,EAAE,EAAEM,EAAE,EAAEJ,EAAE,EAAEO,EAAE,CAAC;MAC5B,KAAKvC,IAAI,CAAC0C,IAAI;QACZ,OAAOzC,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEI,EAAE,CAAC;MAC5B,KAAKrC,IAAI,CAAC2C,KAAK;QACb,OAAO1C,GAAG,CAAC8B,EAAE,EAAEI,EAAE,EAAED,EAAE,EAAEG,EAAE,CAAC;MAC5B,KAAKrC,IAAI,CAAC4C,OAAO;QACf,OAAO3C,GAAG,CAAC6B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEK,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAAC6C,QAAQ;QAChB,OAAO5C,GAAG,CAAC8B,EAAE,EAAEI,EAAE,EAAED,EAAE,EAAEI,EAAE,CAAC;MAC5B,KAAKtC,IAAI,CAAC8C,UAAU;QAClB,OAAO7C,GAAG,CAAC6B,EAAE,EAAEM,EAAE,EAAEH,EAAE,EAAEM,EAAE,CAAC;MAC5B,KAAKvC,IAAI,CAAC+C,WAAW;QACnB,OAAO9C,GAAG,CAAC8B,EAAE,EAAEK,EAAE,EAAEF,EAAE,EAAEK,EAAE,CAAC;MAC5B;QACE,OAAO,IAAI;IACf;EACF,CAAC,EACD,CAAC9B,MAAM,EAAED,KAAK,CAChB,CAAC;EAED,MAAMwC,cAAc,GAAGnD,WAAW,CAChC,CAACsB,IAAU,EAAE8B,SAAkB,KAAK;IAClC,MAAMC,IAAI,GAAGhC,OAAO,CAACC,IAAI,CAAC;IAC1B,IAAI8B,SAAS,EAAE;MACb,IAAIC,IAAI,EAAE;QACRnC,cAAc,GAAGmC,IAAI,EAAE/B,IAAI,CAAC;MAC9B;MACAF,aAAa,CAAC,IAAI,CAAC;IACrB,CAAC,MAAM;MACLA,aAAa,CAACiC,IAAI,CAAC;IACrB;EACF,CAAC,EACD,CAAChC,OAAO,EAAEH,cAAc,CAC1B,CAAC;EACD,OAAO,CAACC,UAAU,EAAEgC,cAAc,CAAC;AACrC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ed0dfbcd0a4b901a8f2d8ea2772fc64cbc92977a"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ed0dfbcd0a4b901a8f2d8ea2772fc64cbc92977a"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_re07yzcqk=function(){return actualCoverage},actualCoverage}function box(x,y,w,h){return cov_re07yzcqk().f[0]++,cov_re07yzcqk().s[0]++,{x:Math.round(x),y:Math.round(y),width:Math.round(w),height:Math.round(h)}}function cov_2j6j0vjz8o(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx",statementMap:{0:{start:{line:5,column:19},end:{line:5,column:36}},1:{start:{line:6,column:2},end:{line:28,column:47}},2:{start:{line:7,column:20},end:{line:7,column:90}},3:{start:{line:13,column:8},end:{line:13,column:44}},4:{start:{line:14,column:15},end:{line:14,column:24}},5:{start:{line:15,column:4},end:{line:17,column:5}},6:{start:{line:16,column:6},end:{line:16,column:23}},7:{start:{line:18,column:4},end:{line:20,column:5}},8:{start:{line:19,column:6},end:{line:19,column:26}},9:{start:{line:21,column:4},end:{line:23,column:5}},10:{start:{line:22,column:6},end:{line:22,column:24}},11:{start:{line:24,column:4},end:{line:26,column:5}},12:{start:{line:25,column:6},end:{line:25,column:25}},13:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"useSnapSide",decl:{start:{line:4,column:16},end:{line:4,column:27}},loc:{start:{line:4,column:33},end:{line:29,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:6,column:21},end:{line:6,column:22}},loc:{start:{line:6,column:33},end:{line:28,column:3}},line:6}},branchMap:{0:{loc:{start:{line:7,column:20},end:{line:7,column:90}},type:"cond-expr",locations:[{start:{line:7,column:73},end:{line:7,column:85}},{start:{line:7,column:88},end:{line:7,column:90}}],line:7},1:{loc:{start:{line:7,column:20},end:{line:7,column:70}},type:"binary-expr",locations:[{start:{line:7,column:20},end:{line:7,column:40}},{start:{line:7,column:44},end:{line:7,column:70}}],line:7},2:{loc:{start:{line:15,column:4},end:{line:17,column:5}},type:"if",locations:[{start:{line:15,column:4},end:{line:17,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},3:{loc:{start:{line:18,column:4},end:{line:20,column:5}},type:"if",locations:[{start:{line:18,column:4},end:{line:20,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:21,column:4},end:{line:23,column:5}},type:"if",locations:[{start:{line:21,column:4},end:{line:23,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},5:{loc:{start:{line:24,column:4},end:{line:26,column:5}},type:"if",locations:[{start:{line:24,column:4},end:{line:26,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:24}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,names:["useCallback","useViewportSize","Side","useSnapSide","ref","viewport","threshold","arguments","length","undefined","top","left","right","bottom","current","getBoundingClientRect","side","none","Math","round","height","width"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/useSnapSide.tsx"],mappings:"AAAA,SAAkCA,WAAW,QAAQ,OAAO;AAC5D,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,IAAI,QAAQ,SAAS;AAE9B,OAAO,SAASC,WAAWA,CAACC,GAAiD,EAAE;EAC7E,MAAMC,QAAQ,GAAGJ,eAAe,CAAC,CAAC;EAClC,OAAOD,WAAW,CAChB,YAA0B;IAAA,IAAzBM,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;IACb,MAAM;MAAEG,GAAG;MAAEC,IAAI;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAGT,GAAG,CAACU,OAAO,EAAEC,qBAAqB,CAAC,CAAC;IAEzE,IAAIC,IAAI,GAAGd,IAAI,CAACe,IAAI;IACpB,IAAIP,GAAG,IAAIJ,SAAS,EAAE;MACpBU,IAAI,IAAId,IAAI,CAACQ,GAAG;IAClB;IACA,IAAIQ,IAAI,CAACC,KAAK,CAACd,QAAQ,EAAEe,MAAM,GAAGP,MAAM,CAAC,IAAIP,SAAS,EAAE;MACtDU,IAAI,IAAId,IAAI,CAACW,MAAM;IACrB;IACA,IAAIF,IAAI,IAAIL,SAAS,EAAE;MACrBU,IAAI,IAAId,IAAI,CAACS,IAAI;IACnB;IACA,IAAIO,IAAI,CAACC,KAAK,CAACd,QAAQ,EAAEgB,KAAK,GAAGT,KAAK,CAAC,IAAIN,SAAS,EAAE;MACpDU,IAAI,IAAId,IAAI,CAACU,KAAK;IACpB;IACA,OAAOI,IAAI;EACb,CAAC,EACD,CAACZ,GAAG,EAAEC,QAAQ,EAAEe,MAAM,EAAEf,QAAQ,EAAEgB,KAAK,CACzC,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"12af31e29046ee90e7af506d6ffeb3f6feff5d70"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"12af31e29046ee90e7af506d6ffeb3f6feff5d70"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2j6j0vjz8o=function(){return actualCoverage},actualCoverage}function useSnapSide(ref){cov_2j6j0vjz8o().f[0]++;const viewport=(cov_2j6j0vjz8o().s[0]++,(0,hooks.lR)());return cov_2j6j0vjz8o().s[1]++,(0,react.useCallback)((function(){cov_2j6j0vjz8o().f[1]++;let threshold=(cov_2j6j0vjz8o().s[2]++,cov_2j6j0vjz8o().b[1][0]++,arguments.length>0&&(cov_2j6j0vjz8o().b[1][1]++,void 0!==arguments[0])?(cov_2j6j0vjz8o().b[0][0]++,arguments[0]):(cov_2j6j0vjz8o().b[0][1]++,15));const{top,left,right,bottom}=(cov_2j6j0vjz8o().s[3]++,ref.current?.getBoundingClientRect());let side=(cov_2j6j0vjz8o().s[4]++,Side.none);return cov_2j6j0vjz8o().s[5]++,top<=threshold?(cov_2j6j0vjz8o().b[2][0]++,cov_2j6j0vjz8o().s[6]++,side|=Side.top):cov_2j6j0vjz8o().b[2][1]++,cov_2j6j0vjz8o().s[7]++,Math.round(viewport?.height-bottom)<=threshold?(cov_2j6j0vjz8o().b[3][0]++,cov_2j6j0vjz8o().s[8]++,side|=Side.bottom):cov_2j6j0vjz8o().b[3][1]++,cov_2j6j0vjz8o().s[9]++,left<=threshold?(cov_2j6j0vjz8o().b[4][0]++,cov_2j6j0vjz8o().s[10]++,side|=Side.left):cov_2j6j0vjz8o().b[4][1]++,cov_2j6j0vjz8o().s[11]++,Math.round(viewport?.width-right)<=threshold?(cov_2j6j0vjz8o().b[5][0]++,cov_2j6j0vjz8o().s[12]++,side|=Side.right):cov_2j6j0vjz8o().b[5][1]++,cov_2j6j0vjz8o().s[13]++,side}),[ref,viewport?.height,viewport?.width])}cov_re07yzcqk(),cov_2j6j0vjz8o();try{useSnapSide.displayName="useSnapSide",useSnapSide.__docgenInfo={description:"",displayName:"useSnapSide",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/useSnapSide.tsx#useSnapSide"]={docgenInfo:useSnapSide.__docgenInfo,name:"useSnapSide",path:"src/components/window/useSnapSide.tsx#useSnapSide"})}catch(__react_docgen_typescript_loader_error){}function cov_1wie91cq08(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx",statementMap:{0:{start:{line:19,column:22},end:{line:26,column:1}},1:{start:{line:28,column:2},end:{line:28,column:102}},2:{start:{line:30,column:20},end:{line:30,column:41}},3:{start:{line:32,column:38},end:{line:32,column:48}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:44}},6:{start:{line:38,column:2},end:{line:38,column:74}},7:{start:{line:38,column:33},end:{line:38,column:72}},8:{start:{line:39,column:2},end:{line:39,column:100}},9:{start:{line:39,column:24},end:{line:39,column:67}},10:{start:{line:40,column:2},end:{line:40,column:22}},11:{start:{line:42,column:26},end:{line:49,column:2}},12:{start:{line:50,column:20},end:{line:56,column:2}},13:{start:{line:57,column:40},end:{line:337,column:2}},14:{start:{line:69,column:6},end:{line:69,column:11}},15:{start:{line:73,column:6},end:{line:73,column:16}},16:{start:{line:74,column:14},end:{line:74,column:22}},17:{start:{line:75,column:19},end:{line:75,column:36}},18:{start:{line:76,column:34},end:{line:76,column:44}},19:{start:{line:77,column:26},end:{line:90,column:4}},20:{start:{line:85,column:8},end:{line:85,column:18}},21:{start:{line:86,column:4},end:{line:89,column:6}},22:{start:{line:91,column:19},end:{line:91,column:45}},23:{start:{line:96,column:6},end:{line:96,column:21}},24:{start:{line:97,column:19},end:{line:97,column:32}},25:{start:{line:98,column:33},end:{line:98,column:48}},26:{start:{line:99,column:16},end:{line:99,column:56}},27:{start:{line:99,column:34},end:{line:99,column:51}},28:{start:{line:100,column:28},end:{line:118,column:58}},29:{start:{line:101,column:4},end:{line:117,column:5}},30:{start:{line:102,column:24},end:{line:102,column:82}},31:{start:{line:102,column:39},end:{line:102,column:81}},32:{start:{line:106,column:10},end:{line:106,column:45}},33:{start:{line:107,column:16},end:{line:107,column:44}},34:{start:{line:108,column:16},end:{line:108,column:53}},35:{start:{line:109,column:21},end:{line:112,column:8}},36:{start:{line:113,column:6},end:{line:116,column:10}},37:{start:{line:119,column:27},end:{line:136,column:79}},38:{start:{line:120,column:4},end:{line:135,column:5}},39:{start:{line:124,column:10},end:{line:124,column:45}},40:{start:{line:130,column:10},end:{line:130,column:20}},41:{start:{line:131,column:6},end:{line:134,column:9}},42:{start:{line:137,column:27},end:{line:137,column:70}},43:{start:{line:138,column:23},end:{line:138,column:54}},44:{start:{line:141,column:27},end:{line:149,column:26}},45:{start:{line:142,column:14},end:{line:142,column:117}},46:{start:{line:143,column:18},end:{line:143,column:48}},47:{start:{line:144,column:19},end:{line:144,column:51}},48:{start:{line:145,column:4},end:{line:148,column:7}},49:{start:{line:152,column:30},end:{line:154,column:4}},50:{start:{line:155,column:2},end:{line:160,column:109}},51:{start:{line:156,column:4},end:{line:159,column:5}},52:{start:{line:157,column:23},end:{line:157,column:49}},53:{start:{line:158,column:6},end:{line:158,column:86}},54:{start:{line:158,column:37},end:{line:158,column:84}},55:{start:{line:161,column:23},end:{line:161,column:109}},56:{start:{line:161,column:47},end:{line:161,column:95}},57:{start:{line:162,column:26},end:{line:162,column:45}},58:{start:{line:163,column:22},end:{line:163,column:38}},59:{start:{line:164,column:22},end:{line:179,column:8}},60:{start:{line:170,column:8},end:{line:170,column:11}},61:{start:{line:171,column:4},end:{line:174,column:7}},62:{start:{line:175,column:4},end:{line:178,column:7}},63:{start:{line:180,column:39},end:{line:180,column:78}},64:{start:{line:181,column:2},end:{line:183,column:25}},65:{start:{line:182,column:4},end:{line:182,column:42}},66:{start:{line:184,column:18},end:{line:184,column:26}},67:{start:{line:185,column:17},end:{line:201,column:41}},68:{start:{line:186,column:4},end:{line:186,column:28}},69:{start:{line:187,column:4},end:{line:187,column:34}},70:{start:{line:188,column:4},end:{line:190,column:5}},71:{start:{line:189,column:6},end:{line:189,column:13}},72:{start:{line:191,column:17},end:{line:191,column:31}},73:{start:{line:192,column:4},end:{line:200,column:5}},74:{start:{line:193,column:6},end:{line:197,column:14}},75:{start:{line:194,column:8},end:{line:196,column:9}},76:{start:{line:195,column:10},end:{line:195,column:24}},77:{start:{line:199,column:6},end:{line:199,column:20}},78:{start:{line:202,column:21},end:{line:221,column:54}},79:{start:{line:206,column:8},end:{line:206,column:12}},80:{start:{line:207,column:4},end:{line:209,column:5}},81:{start:{line:208,column:6},end:{line:208,column:13}},82:{start:{line:210,column:4},end:{line:210,column:29}},83:{start:{line:211,column:4},end:{line:214,column:7}},84:{start:{line:215,column:4},end:{line:215,column:29}},85:{start:{line:216,column:4},end:{line:219,column:7}},86:{start:{line:220,column:4},end:{line:220,column:23}},87:{start:{line:222,column:18},end:{line:231,column:8}},88:{start:{line:226,column:8},end:{line:226,column:43}},89:{start:{line:227,column:4},end:{line:230,column:7}},90:{start:{line:232,column:19},end:{line:234,column:16}},91:{start:{line:233,column:4},end:{line:233,column:30}},92:{start:{line:235,column:23},end:{line:245,column:19}},93:{start:{line:239,column:8},end:{line:239,column:34}},94:{start:{line:240,column:4},end:{line:244,column:7}},95:{start:{line:246,column:32},end:{line:246,column:47}},96:{start:{line:247,column:16},end:{line:250,column:15}},97:{start:{line:248,column:4},end:{line:248,column:14}},98:{start:{line:249,column:4},end:{line:249,column:21}},99:{start:{line:251,column:15},end:{line:253,column:8}},100:{start:{line:252,column:4},end:{line:252,column:22}},101:{start:{line:254,column:18},end:{line:257,column:48}},102:{start:{line:254,column:33},end:{line:257,column:3}},103:{start:{line:258,column:27},end:{line:270,column:49}},104:{start:{line:259,column:4},end:{line:261,column:5}},105:{start:{line:260,column:6},end:{line:260,column:15}},106:{start:{line:262,column:4},end:{line:264,column:5}},107:{start:{line:263,column:6},end:{line:263,column:26}},108:{start:{line:265,column:20},end:{line:265,column:51}},109:{start:{line:266,column:4},end:{line:268,column:5}},110:{start:{line:267,column:6},end:{line:267,column:21}},111:{start:{line:269,column:4},end:{line:269,column:16}},112:{start:{line:271,column:26},end:{line:271,column:129}},113:{start:{line:271,column:40},end:{line:271,column:82}},114:{start:{line:272,column:27},end:{line:272,column:134}},115:{start:{line:272,column:41},end:{line:272,column:85}},116:{start:{line:273,column:2},end:{line:273,column:28}},117:{start:{line:274,column:2},end:{line:336,column:6}},118:{start:{line:328,column:6},end:{line:328,column:45}},119:{start:{line:329,column:6},end:{line:329,column:14}},120:{start:{line:338,column:0},end:{line:338,column:40}}},fnMap:{0:{name:"calcCoord",decl:{start:{line:27,column:9},end:{line:27,column:18}},loc:{start:{line:27,column:60},end:{line:29,column:1}},line:27},1:{name:"useContentVisibility",decl:{start:{line:31,column:9},end:{line:31,column:29}},loc:{start:{line:31,column:52},end:{line:41,column:1}},line:31},2:{name:"(anonymous_2)",decl:{start:{line:38,column:27},end:{line:38,column:28}},loc:{start:{line:38,column:33},end:{line:38,column:72}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:39,column:18},end:{line:39,column:19}},loc:{start:{line:39,column:24},end:{line:39,column:67}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:57,column:51},end:{line:57,column:52}},loc:{start:{line:57,column:73},end:{line:337,column:1}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:77,column:35},end:{line:77,column:36}},loc:{start:{line:77,column:41},end:{line:90,column:3}},line:77},6:{name:"(anonymous_6)",decl:{start:{line:99,column:28},end:{line:99,column:29}},loc:{start:{line:99,column:34},end:{line:99,column:51}},line:99},7:{name:"(anonymous_7)",decl:{start:{line:100,column:40},end:{line:100,column:41}},loc:{start:{line:100,column:59},end:{line:118,column:3}},line:100},8:{name:"(anonymous_8)",decl:{start:{line:102,column:34},end:{line:102,column:35}},loc:{start:{line:102,column:39},end:{line:102,column:81}},line:102},9:{name:"(anonymous_9)",decl:{start:{line:119,column:39},end:{line:119,column:40}},loc:{start:{line:119,column:45},end:{line:136,column:3}},line:119},10:{name:"(anonymous_10)",decl:{start:{line:141,column:39},end:{line:141,column:40}},loc:{start:{line:141,column:59},end:{line:149,column:3}},line:141},11:{name:"(anonymous_11)",decl:{start:{line:155,column:18},end:{line:155,column:19}},loc:{start:{line:155,column:24},end:{line:160,column:3}},line:155},12:{name:"(anonymous_12)",decl:{start:{line:158,column:26},end:{line:158,column:27}},loc:{start:{line:158,column:37},end:{line:158,column:84}},line:158},13:{name:"(anonymous_13)",decl:{start:{line:161,column:35},end:{line:161,column:36}},loc:{start:{line:161,column:47},end:{line:161,column:95}},line:161},14:{name:"(anonymous_14)",decl:{start:{line:164,column:34},end:{line:164,column:35}},loc:{start:{line:164,column:41},end:{line:179,column:3}},line:164},15:{name:"(anonymous_15)",decl:{start:{line:181,column:12},end:{line:181,column:13}},loc:{start:{line:181,column:18},end:{line:183,column:3}},line:181},16:{name:"(anonymous_16)",decl:{start:{line:185,column:29},end:{line:185,column:30}},loc:{start:{line:185,column:35},end:{line:201,column:3}},line:185},17:{name:"(anonymous_17)",decl:{start:{line:193,column:35},end:{line:193,column:36}},loc:{start:{line:193,column:41},end:{line:197,column:7}},line:193},18:{name:"(anonymous_18)",decl:{start:{line:202,column:33},end:{line:202,column:34}},loc:{start:{line:202,column:46},end:{line:221,column:3}},line:202},19:{name:"(anonymous_19)",decl:{start:{line:222,column:30},end:{line:222,column:31}},loc:{start:{line:222,column:36},end:{line:231,column:3}},line:222},20:{name:"(anonymous_20)",decl:{start:{line:232,column:31},end:{line:232,column:32}},loc:{start:{line:232,column:37},end:{line:234,column:3}},line:232},21:{name:"(anonymous_21)",decl:{start:{line:235,column:35},end:{line:235,column:36}},loc:{start:{line:235,column:68},end:{line:245,column:3}},line:235},22:{name:"(anonymous_22)",decl:{start:{line:247,column:28},end:{line:247,column:29}},loc:{start:{line:247,column:34},end:{line:250,column:3}},line:247},23:{name:"(anonymous_23)",decl:{start:{line:251,column:27},end:{line:251,column:28}},loc:{start:{line:251,column:33},end:{line:253,column:3}},line:251},24:{name:"(anonymous_24)",decl:{start:{line:254,column:26},end:{line:254,column:27}},loc:{start:{line:254,column:33},end:{line:257,column:3}},line:254},25:{name:"(anonymous_25)",decl:{start:{line:258,column:39},end:{line:258,column:40}},loc:{start:{line:258,column:63},end:{line:270,column:3}},line:258},26:{name:"(anonymous_26)",decl:{start:{line:271,column:34},end:{line:271,column:35}},loc:{start:{line:271,column:40},end:{line:271,column:82}},line:271},27:{name:"(anonymous_27)",decl:{start:{line:272,column:35},end:{line:272,column:36}},loc:{start:{line:272,column:41},end:{line:272,column:85}},line:272},28:{name:"(anonymous_28)",decl:{start:{line:327,column:15},end:{line:327,column:16}},loc:{start:{line:327,column:24},end:{line:330,column:5}},line:327}},branchMap:{0:{loc:{start:{line:28,column:27},end:{line:28,column:100}},type:"cond-expr",locations:[{start:{line:28,column:63},end:{line:28,column:92}},{start:{line:28,column:95},end:{line:28,column:100}}],line:28},1:{loc:{start:{line:33,column:2},end:{line:35,column:3}},type:"if",locations:[{start:{line:33,column:2},end:{line:35,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:33},2:{loc:{start:{line:39,column:24},end:{line:39,column:67}},type:"binary-expr",locations:[{start:{line:39,column:24},end:{line:39,column:34}},{start:{line:39,column:38},end:{line:39,column:67}}],line:39},3:{loc:{start:{line:65,column:4},end:{line:65,column:21}},type:"default-arg",locations:[{start:{line:65,column:16},end:{line:65,column:21}}],line:65},4:{loc:{start:{line:66,column:4},end:{line:66,column:21}},type:"default-arg",locations:[{start:{line:66,column:16},end:{line:66,column:21}}],line:66},5:{loc:{start:{line:67,column:4},end:{line:67,column:20}},type:"default-arg",locations:[{start:{line:67,column:15},end:{line:67,column:20}}],line:67},6:{loc:{start:{line:68,column:4},end:{line:68,column:19}},type:"default-arg",locations:[{start:{line:68,column:17},end:{line:68,column:19}}],line:68},7:{loc:{start:{line:71,column:4},end:{line:71,column:36}},type:"default-arg",locations:[{start:{line:71,column:15},end:{line:71,column:36}}],line:71},8:{loc:{start:{line:71,column:15},end:{line:71,column:36}},type:"binary-expr",locations:[{start:{line:71,column:15},end:{line:71,column:29}},{start:{line:71,column:33},end:{line:71,column:36}}],line:71},9:{loc:{start:{line:72,column:4},end:{line:72,column:38}},type:"default-arg",locations:[{start:{line:72,column:16},end:{line:72,column:38}}],line:72},10:{loc:{start:{line:72,column:16},end:{line:72,column:38}},type:"binary-expr",locations:[{start:{line:72,column:16},end:{line:72,column:31}},{start:{line:72,column:35},end:{line:72,column:38}}],line:72},11:{loc:{start:{line:87,column:14},end:{line:87,column:95}},type:"cond-expr",locations:[{start:{line:87,column:40},end:{line:87,column:70}},{start:{line:87,column:73},end:{line:87,column:95}}],line:87},12:{loc:{start:{line:87,column:14},end:{line:87,column:37}},type:"binary-expr",locations:[{start:{line:87,column:14},end:{line:87,column:22}},{start:{line:87,column:26},end:{line:87,column:37}}],line:87},13:{loc:{start:{line:87,column:73},end:{line:87,column:95}},type:"binary-expr",locations:[{start:{line:87,column:73},end:{line:87,column:79}},{start:{line:87,column:83},end:{line:87,column:95}}],line:87},14:{loc:{start:{line:88,column:13},end:{line:88,column:91}},type:"cond-expr",locations:[{start:{line:88,column:39},end:{line:88,column:68}},{start:{line:88,column:71},end:{line:88,column:91}}],line:88},15:{loc:{start:{line:88,column:13},end:{line:88,column:36}},type:"binary-expr",locations:[{start:{line:88,column:13},end:{line:88,column:22}},{start:{line:88,column:26},end:{line:88,column:36}}],line:88},16:{loc:{start:{line:88,column:71},end:{line:88,column:91}},type:"binary-expr",locations:[{start:{line:88,column:71},end:{line:88,column:76}},{start:{line:88,column:80},end:{line:88,column:91}}],line:88},17:{loc:{start:{line:101,column:4},end:{line:117,column:5}},type:"if",locations:[{start:{line:101,column:4},end:{line:117,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},18:{loc:{start:{line:114,column:11},end:{line:114,column:40}},type:"binary-expr",locations:[{start:{line:114,column:11},end:{line:114,column:28}},{start:{line:114,column:32},end:{line:114,column:40}}],line:114},19:{loc:{start:{line:115,column:11},end:{line:115,column:40}},type:"binary-expr",locations:[{start:{line:115,column:11},end:{line:115,column:28}},{start:{line:115,column:32},end:{line:115,column:40}}],line:115},20:{loc:{start:{line:120,column:4},end:{line:135,column:5}},type:"if",locations:[{start:{line:120,column:4},end:{line:135,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:120},21:{loc:{start:{line:132,column:11},end:{line:132,column:77}},type:"cond-expr",locations:[{start:{line:132,column:40},end:{line:132,column:70}},{start:{line:132,column:73},end:{line:132,column:77}}],line:132},22:{loc:{start:{line:132,column:11},end:{line:132,column:37}},type:"binary-expr",locations:[{start:{line:132,column:11},end:{line:132,column:23}},{start:{line:132,column:27},end:{line:132,column:37}}],line:132},23:{loc:{start:{line:133,column:11},end:{line:133,column:79}},type:"cond-expr",locations:[{start:{line:133,column:40},end:{line:133,column:73}},{start:{line:133,column:76},end:{line:133,column:79}}],line:133},24:{loc:{start:{line:133,column:11},end:{line:133,column:37}},type:"binary-expr",locations:[{start:{line:133,column:11},end:{line:133,column:22}},{start:{line:133,column:26},end:{line:133,column:37}}],line:133},25:{loc:{start:{line:142,column:14},end:{line:142,column:117}},type:"cond-expr",locations:[{start:{line:142,column:67},end:{line:142,column:79}},{start:{line:142,column:82},end:{line:142,column:117}}],line:142},26:{loc:{start:{line:142,column:14},end:{line:142,column:64}},type:"binary-expr",locations:[{start:{line:142,column:14},end:{line:142,column:34}},{start:{line:142,column:38},end:{line:142,column:64}}],line:142},27:{loc:{start:{line:143,column:18},end:{line:143,column:48}},type:"binary-expr",locations:[{start:{line:143,column:18},end:{line:143,column:29}},{start:{line:143,column:33},end:{line:143,column:43}},{start:{line:143,column:47},end:{line:143,column:48}}],line:143},28:{loc:{start:{line:144,column:19},end:{line:144,column:51}},type:"binary-expr",locations:[{start:{line:144,column:19},end:{line:144,column:31}},{start:{line:144,column:35},end:{line:144,column:46}},{start:{line:144,column:50},end:{line:144,column:51}}],line:144},29:{loc:{start:{line:156,column:4},end:{line:159,column:5}},type:"if",locations:[{start:{line:156,column:4},end:{line:159,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:156},30:{loc:{start:{line:156,column:8},end:{line:156,column:68}},type:"binary-expr",locations:[{start:{line:156,column:8},end:{line:156,column:24}},{start:{line:156,column:28},end:{line:156,column:36}},{start:{line:156,column:40},end:{line:156,column:68}}],line:156},31:{loc:{start:{line:156,column:42},end:{line:156,column:67}},type:"binary-expr",locations:[{start:{line:156,column:42},end:{line:156,column:51}},{start:{line:156,column:55},end:{line:156,column:67}}],line:156},32:{loc:{start:{line:158,column:37},end:{line:158,column:84}},type:"cond-expr",locations:[{start:{line:158,column:66},end:{line:158,column:73}},{start:{line:158,column:76},end:{line:158,column:84}}],line:158},33:{loc:{start:{line:161,column:47},end:{line:161,column:95}},type:"binary-expr",locations:[{start:{line:161,column:47},end:{line:161,column:57}},{start:{line:161,column:61},end:{line:161,column:95}}],line:161},34:{loc:{start:{line:188,column:4},end:{line:190,column:5}},type:"if",locations:[{start:{line:188,column:4},end:{line:190,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:188},35:{loc:{start:{line:192,column:4},end:{line:200,column:5}},type:"if",locations:[{start:{line:192,column:4},end:{line:200,column:5}},{start:{line:198,column:11},end:{line:200,column:5}}],line:192},36:{loc:{start:{line:194,column:8},end:{line:196,column:9}},type:"if",locations:[{start:{line:194,column:8},end:{line:196,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:194},37:{loc:{start:{line:194,column:12},end:{line:194,column:42}},type:"binary-expr",locations:[{start:{line:194,column:12},end:{line:194,column:28}},{start:{line:194,column:32},end:{line:194,column:42}}],line:194},38:{loc:{start:{line:207,column:4},end:{line:209,column:5}},type:"if",locations:[{start:{line:207,column:4},end:{line:209,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:207},39:{loc:{start:{line:233,column:12},end:{line:233,column:28}},type:"binary-expr",locations:[{start:{line:233,column:12},end:{line:233,column:20}},{start:{line:233,column:24},end:{line:233,column:28}}],line:233},40:{loc:{start:{line:255,column:26},end:{line:255,column:91}},type:"cond-expr",locations:[{start:{line:255,column:56},end:{line:255,column:72}},{start:{line:255,column:75},end:{line:255,column:91}}],line:255},41:{loc:{start:{line:255,column:75},end:{line:255,column:91}},type:"binary-expr",locations:[{start:{line:255,column:75},end:{line:255,column:86}},{start:{line:255,column:90},end:{line:255,column:91}}],line:255},42:{loc:{start:{line:256,column:31},end:{line:256,column:96}},type:"cond-expr",locations:[{start:{line:256,column:61},end:{line:256,column:77}},{start:{line:256,column:80},end:{line:256,column:96}}],line:256},43:{loc:{start:{line:256,column:80},end:{line:256,column:96}},type:"binary-expr",locations:[{start:{line:256,column:80},end:{line:256,column:91}},{start:{line:256,column:95},end:{line:256,column:96}}],line:256},44:{loc:{start:{line:259,column:4},end:{line:261,column:5}},type:"if",locations:[{start:{line:259,column:4},end:{line:261,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:259},45:{loc:{start:{line:262,column:4},end:{line:264,column:5}},type:"if",locations:[{start:{line:262,column:4},end:{line:264,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:262},46:{loc:{start:{line:266,column:4},end:{line:268,column:5}},type:"if",locations:[{start:{line:266,column:4},end:{line:268,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:266},47:{loc:{start:{line:288,column:21},end:{line:288,column:43}},type:"binary-expr",locations:[{start:{line:288,column:21},end:{line:288,column:30}},{start:{line:288,column:34},end:{line:288,column:43}}],line:288},48:{loc:{start:{line:289,column:20},end:{line:289,column:43}},type:"binary-expr",locations:[{start:{line:289,column:20},end:{line:289,column:29}},{start:{line:289,column:33},end:{line:289,column:43}}],line:289},49:{loc:{start:{line:298,column:14},end:{line:301,column:16}},type:"cond-expr",locations:[{start:{line:298,column:26},end:{line:301,column:5}},{start:{line:301,column:8},end:{line:301,column:16}}],line:298},50:{loc:{start:{line:328,column:6},end:{line:328,column:44}},type:"binary-expr",locations:[{start:{line:328,column:6},end:{line:328,column:28}},{start:{line:328,column:32},end:{line:328,column:44}}],line:328}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0],4:[0],5:[0],6:[0],7:[0],8:[0,0],9:[0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0,0],28:[0,0,0],29:[0,0],30:[0,0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0]},inputSourceMap:{version:3,names:["css","cx","isEqual","mapValues","React","forwardRef","useCallback","useEffect","useLayoutEffect","useMemo","useRef","useState","FocusLock","Rnd","CSSTransition","useDebounce","useMutationObserver","usePreviousDifferent","usePreviousImmediate","DRAG_HANDLE_CLASS_NAME","DRAG_PREVENT_CLASS_NAME","useViewportSize","useScrollFix","useFrameTheme","random","defaultFadeAnimation","SnapMask","Side","useSnapAreas","useSnapSide","zoomAnimation","enter","transition","exit","calcCoord","start","end","size","viewportSize","padding","Math","max","roundCoords","round","useContentVisibility","ref","onContentChange","firstChild","setFirstChild","current","children","focusWrapperClass","boxSizing","overflow","width","height","display","outline","windowClass","backfaceVisibility","perspective","willChange","WindowFrame","props","windowRef","focusGroup","zIndex","randomizePosition","onFocus","onEscape","onEdgeSnap","onSnapCallback","maximized","resizable","moveable","layoutData","minWidth","minHeight","viewport","position","setPosition","setSize","right","bottom","left","top","prevSize","focusWrapperTheme","windowTheme","windowMargin","dragging","touched","_setTouched","touch","forceCenterWindow","initialPosition","randomize","v","getBoundingClientRect","x","y","center","onContentChanged","contentAvailable","wasMaximized","calcEdgePosition","box","arguments","length","undefined","debounceSetPosition","leading","newValue","savePosition","side","setSide","none","getSnapSide","setFrameBox","snapPreviewBox","onSideSnap","timeout","onDrag","clearTimeout","setTimeout","onDragStop","e","_ref","name","code","onEnter","onExited","onResizeStop","dir","el","delta","focused","setFocused","focus","blur","maxSize","normalizeMinSize","currentMinWidth","currentMinHeight","createElement","nodeRef","in","classNames","disableDragging","enableResizing","className","style","bounds","maxHeight","maxWidth","onMouseDown","onDragStart","onResizeStart","dragHandleClassName","cancel","flex","group","disabled","returnFocus","autoFocus","onBlur","onKeyDown","event","key","tabIndex","previewBox","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFrame.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,SAAS,QAAQ,WAAW;AACrC,OAAOC,KAAK,IAAIC,UAAU,EAAgCC,WAAW,EAAEC,SAAS,EAAEC,eAAe,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC3I,OAAOC,SAAS,MAAM,kBAAkB;AACxC,SAAmBC,GAAG,QAAQ,WAAW;AACzC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,WAAW,EAAEC,mBAAmB,EAAEC,oBAAoB,EAAEC,oBAAoB,QAAQ,OAAO;AACpG,SAASC,sBAAsB,EAAEC,uBAAuB,QAAQ,cAAc;AAC9E,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,YAAY,QAAQ,0BAA0B;AACvD,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,SAASC,MAAM,QAAQ,aAAa;AACpC,SAASC,oBAAoB,QAAQ,uBAAuB;AAC5D,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAAiBC,IAAI,QAAc,SAAS;AAC5C,SAAcC,YAAY,QAAQ,gBAAgB;AAClD,SAASC,WAAW,QAAQ,eAAe;AA+B3C,MAAMC,aAAa,GAAG;EACpBC,KAAK,EAAE/B,GAAG,CAAC;IAAEgC,UAAU,EAAE;EAAY,CAAC,CAAC;EACvCC,IAAI,EAAEjC,GAAG,CAAC;IAAEgC,UAAU,EAAE;EAAY,CAAC;AACvC,CAAC;AAED,SAASE,SAASA,CAACC,KAAa,EAAEC,GAAW,EAAEC,IAAY,EAAEC,YAAoB,EAAEC,OAAe,EAAE;EAClG,OAAOC,IAAI,CAACC,GAAG,CAACF,OAAO,EAAEH,GAAG,IAAIE,YAAY,GAAGC,OAAO,GAAG,CAAC,GAAGD,YAAY,GAAGD,IAAI,GAAGE,OAAO,GAAGJ,KAAK,CAAC;AACrG;AAEA,MAAMO,WAAW,GAAGvC,SAAS,CAAiBqC,IAAI,CAACG,KAAK,CAAC;AAEzD,SAASC,oBAAoBA,CAACC,GAAwC,EAAEC,eAA6C,EAAE;EACrH,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGrC,QAAQ,CAAU,CAAC;EACvD,IAAIoC,UAAU,KAAKF,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,EAAE;IAC3CF,aAAa,CAACH,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,CAAC;EACzC;;EAEA;EACAlC,mBAAmB,CAAC6B,GAAG,EAAE,MAAMG,aAAa,CAACH,GAAG,CAACI,OAAO,EAAEC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;EAEvE1C,eAAe,CAAC,MAAMuC,UAAU,IAAID,eAAe,GAAGC,UAAU,CAAC,EAAE,CAACD,eAAe,EAAEC,UAAU,CAAC,CAAC;EAEjG,OAAO,CAAC,CAACA,UAAU;AACrB;AAEA,MAAMI,iBAAiB,GAAGnD,GAAG,CAAC;EAC5BoD,SAAS,EAAE,YAAY;EACvBC,QAAQ,EAAE,MAAM;EAChBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,MAAMC,WAAW,GAAG1D,GAAG,CAAC;EACtBoD,SAAS,EAAE,YAAY;EACvBC,QAAQ,EAAE,SAAS;EACnBM,kBAAkB,EAAE,QAAQ;EAC5BC,WAAW,EAAE,MAAM;EACnBC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,WAAW,gBAAGzD,UAAU,CAAC,CAAC0D,KAA0C,EAAEC,SAAoC,KAAkB;EACvI,MAAM;IACJC,UAAU;IACVC,MAAM;IACNC,iBAAiB;IACjBC,OAAO;IACPC,QAAQ;IACRC,UAAU,EAAEC,cAAc;IAC1BC,SAAS,GAAG,KAAK;IACjBC,SAAS,GAAG,KAAK;IACjBC,QAAQ,GAAG,KAAK;IAChBC,UAAU,GAAG,CAAC;EAChB,CAAC,GAAGZ,KAAK;EACT,MAAM;IAAEa,QAAQ,GAAGb,KAAK,CAACa,QAAQ,IAAI,GAAG;IAAEC,SAAS,GAAGd,KAAK,CAACc,SAAS,IAAI;EAAI,CAAC,GAAGF,UAAU;EAC3F,MAAM9B,GAAG,GAAGnC,MAAM,CAAiB,CAAC;EACpC,MAAMoE,QAAQ,GAAGzD,eAAe,CAAC,CAAC;EAClC,MAAM,CAAC0D,QAAQ,EAAEC,WAAW,CAAC,GAAGrE,QAAQ,CAAS,CAAC;EAClD,MAAM,CAAC0B,IAAI,EAAE4C,OAAO,CAAC,GAAGtE,QAAQ,CAAO,MAAM;IAC3C,MAAM;MAAEuE,KAAK;MAAEC,MAAM;MAAEC,IAAI;MAAEC,GAAG;MAAE/B,KAAK;MAAEC;IAAO,CAAC,GAAGoB,UAAU;IAC9D,OAAO;MACLpB,MAAM,EAAE8B,GAAG,IAAI,CAAC,IAAIF,MAAM,IAAI,CAAC,GAAGL,QAAQ,CAACvB,MAAM,GAAG8B,GAAG,GAAGF,MAAM,GAAG5B,MAAM,IAAIQ,KAAK,CAACR,MAAM;MACzFD,KAAK,EAAE8B,IAAI,IAAI,CAAC,IAAIF,KAAK,IAAI,CAAC,GAAGJ,QAAQ,CAACxB,KAAK,GAAG8B,IAAI,GAAGF,KAAK,GAAG5B,KAAK,IAAIS,KAAK,CAACT;IAClF,CAAC;EACH,CAAC,CAAC;EACF,MAAMgC,QAAQ,GAAGpE,oBAAoB,CAACmB,IAAI,CAAC;EAE3C,MAAM;IAAEkD,iBAAiB;IAAEC,WAAW;IAAEC;EAAa,CAAC,GAAGlE,aAAa,CAAC,CAAC;EACxE,MAAMmE,QAAQ,GAAGhF,MAAM,CAAC,KAAK,CAAC;EAE9B,MAAM,CAACiF,OAAO,EAAEC,WAAW,CAAC,GAAGjF,QAAQ,CAAC,KAAK,CAAC;EAC9C,MAAMkF,KAAK,GAAGvF,WAAW,CAAC,MAAMsF,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;EAEtD,MAAME,iBAAiB,GAAGxF,WAAW,CAClCyF,eAAuB,IAAK;IAC3B,IAAIlD,GAAG,CAACI,OAAO,EAAE;MACf,MAAM+C,SAAS,GAAG7F,SAAS,CAAkB8F,CAAS,IAAKzD,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEwD,CAAC,GAAGzE,MAAM,CAAC2C,iBAAiB,CAAC,CAAC,CAAC;MACtG,MAAM;QAAEZ,MAAM;QAAED;MAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;MAC7D,MAAMC,CAAC,GAAG,CAACrB,QAAQ,CAACxB,KAAK,GAAGA,KAAK,IAAI,CAAC;MACtC,MAAM8C,CAAC,GAAG,CAACtB,QAAQ,CAACvB,MAAM,GAAG,IAAI,GAAGA,MAAM,IAAI,CAAC;MAC/C,MAAM8C,MAAM,GAAGL,SAAS,CAAC;QAAEG,CAAC;QAAEC;MAAE,CAAC,CAAC;MAElCpB,WAAW,CACTtC,WAAW,CAAC;QACVyD,CAAC,EAAEJ,eAAe,CAACI,CAAC,IAAIE,MAAM,CAACF,CAAC;QAChCC,CAAC,EAAEL,eAAe,CAACK,CAAC,IAAIC,MAAM,CAACD;MACjC,CAAC,CACH,CAAC;IACH;EACF,CAAC,EACD,CAACjC,iBAAiB,EAAEW,QAAQ,CAACvB,MAAM,EAAEuB,QAAQ,CAACxB,KAAK,CACrD,CAAC;EAED,MAAMgD,gBAAgB,GAAGhG,WAAW,CAAC,MAAM;IACzC,IAAI,CAACqF,OAAO,EAAE;MACZ,MAAM;QAAEpC,MAAM;QAAED;MAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;MAC7D,MAAM;QAAEhB,KAAK;QAAEC,MAAM;QAAEC,IAAI;QAAEC;MAAI,CAAC,GAAGV,UAAU;MAC/CmB,iBAAiB,CAAC;QAChBK,CAAC,EAAE,EAAEf,IAAI,IAAI,CAAC,CAAC,IAAIF,KAAK,IAAI,CAAC,GAAGJ,QAAQ,CAACxB,KAAK,GAAG4B,KAAK,GAAG5B,KAAK,GAAG8B,IAAI;QACrEgB,CAAC,EAAE,EAAEf,GAAG,IAAI,CAAC,CAAC,IAAIF,MAAM,IAAI,CAAC,GAAGL,QAAQ,CAACvB,MAAM,GAAG4B,MAAM,GAAG5B,MAAM,GAAG8B;MACtE,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACS,iBAAiB,EAAEnB,UAAU,EAAEgB,OAAO,EAAEb,QAAQ,CAACvB,MAAM,EAAEuB,QAAQ,CAACxB,KAAK,CAAC,CAAC;EAE7E,MAAMiD,gBAAgB,GAAG3D,oBAAoB,CAACC,GAAG,EAAEyD,gBAAgB,CAAC;EAEpE,MAAME,YAAY,GAAGvF,oBAAoB,CAACuD,SAAS,CAAC;;EAEpD;EACA,MAAMiC,gBAAgB,GAAGnG,WAAW,CAClC,UAACwE,QAAQ,EAAqD;IAAA,IAAnD4B,GAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG9D,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;IACvD,MAAM5C,KAAK,GAAGjB,IAAI,EAAEiB,KAAK,IAAIoD,GAAG,EAAEpD,KAAK,IAAI,CAAC;IAC5C,MAAMC,MAAM,GAAGlB,IAAI,EAAEkB,MAAM,IAAImD,GAAG,EAAEnD,MAAM,IAAI,CAAC;IAC/C,OAAOb,WAAW,CAAC;MACjByD,CAAC,EAAEjE,SAAS,CAACwE,GAAG,CAACP,CAAC,EAAEO,GAAG,CAACP,CAAC,GAAGO,GAAG,CAACpD,KAAK,EAAEA,KAAK,EAAEwB,QAAQ,CAACxB,KAAK,EAAEmC,YAAY,CAAC;MAC3EW,CAAC,EAAElE,SAAS,CAACwE,GAAG,CAACN,CAAC,EAAEM,GAAG,CAACN,CAAC,GAAGM,GAAG,CAACnD,MAAM,EAAEA,MAAM,EAAEuB,QAAQ,CAACvB,MAAM,EAAEkC,YAAY;IAC/E,CAAC,CAAC;EACJ,CAAC,EACD,CAACpD,IAAI,EAAEoD,YAAY,CACrB,CAAC;;EAED;EACA,MAAMqB,mBAAmB,GAAG/F,WAAW,CAACiE,WAAW,EAAE,CAAC,EAAE;IAAE+B,OAAO,EAAE;EAAK,CAAC,CAAC;EAE1EvG,eAAe,CAAC,MAAM;IACpB,IAAI+F,gBAAgB,IAAIxB,QAAQ,IAAI,EAAEP,SAAS,IAAIgC,YAAY,CAAC,EAAE;MAChE,MAAMQ,QAAQ,GAAGP,gBAAgB,CAAC3B,QAAQ,CAAC;MAC3CgC,mBAAmB,CAAE7D,OAAO,IAAM/C,OAAO,CAAC8G,QAAQ,EAAE/D,OAAO,CAAC,GAAGA,OAAO,GAAG+D,QAAS,CAAC;IACrF;EACF,CAAC,EAAE,CAACT,gBAAgB,EAAEC,YAAY,EAAEC,gBAAgB,EAAEjC,SAAS,EAAEO,QAAQ,EAAED,QAAQ,EAAEgC,mBAAmB,CAAC,CAAC;EAE1G,MAAMG,YAAY,GAAG3G,WAAW,CAAEyE,QAAkB,IAAK,CAACP,SAAS,IAAIQ,WAAW,CAACtC,WAAW,CAACqC,QAAQ,CAAC,CAAC,EAAE,CAACP,SAAS,CAAC,CAAC;EAEvH,MAAM,CAAC0C,IAAI,EAAEC,OAAO,CAAC,GAAGxG,QAAQ,CAAOgB,IAAI,CAACyF,IAAI,CAAC;EACjD,MAAMC,WAAW,GAAGxF,WAAW,CAACgB,GAAG,CAAC;EAEpC,MAAMyE,WAAW,GAAGhH,WAAW,CAAEoG,GAAQ,IAAK;IAC5C,MAAM;MAAEN,CAAC;MAAE7C,MAAM;MAAED,KAAK;MAAE6C;IAAE,CAAC,GAAGO,GAAG;IACnCzB,OAAO,CAAC;MAAE3B,KAAK;MAAEC;IAAO,CAAC,CAAC;IAC1ByB,WAAW,CAAC;MAAEmB,CAAC;MAAEC;IAAE,CAAC,CAAC;EACvB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM,CAACmB,cAAc,EAAEC,UAAU,CAAC,GAAG5F,YAAY,CAAC6D,YAAY,EAAE6B,WAAW,CAAC;EAE5E/G,SAAS,CAAC,MAAM;IACdiH,UAAU,GAAGN,IAAI,EAAE,CAACxB,QAAQ,CAACzC,OAAO,CAAC;EACvC,CAAC,EAAE,CAACuE,UAAU,EAAEN,IAAI,CAAC,CAAC;EAEtB,MAAMO,OAAO,GAAG/G,MAAM,CAAiB,CAAC;EACxC,MAAMgH,MAAM,GAAGpH,WAAW,CAAC,MAAM;IAC/BoF,QAAQ,CAACzC,OAAO,GAAG,IAAI;IAEvB0E,YAAY,CAACF,OAAO,CAACxE,OAAO,CAAC;IAE7B,IAAI,CAACwB,SAAS,EAAE;MACd;IACF;IAEA,MAAMyC,IAAI,GAAGG,WAAW,CAAC,CAAC,CAAC;IAE3B,IAAIH,IAAI,EAAE;MACRO,OAAO,CAACxE,OAAO,GAAG2E,UAAU,CAAC,MAAM;QACjC,IAAIlC,QAAQ,CAACzC,OAAO,IAAI,CAACuB,SAAS,EAAE;UAClC2C,OAAO,CAACD,IAAI,CAAC;QACf;MACF,CAAC,EAAE,GAAG,CAAC;IACT,CAAC,MAAM;MACLC,OAAO,CAACD,IAAI,CAAC;IACf;EACF,CAAC,EAAE,CAACG,WAAW,EAAE7C,SAAS,EAAEC,SAAS,CAAC,CAAC;EAEvC,MAAMoD,UAAU,GAAGvH,WAAW,CAC5B,CAACwH,CAAC,EAAAC,IAAA,KAAe;IAAA,IAAb;MAAE5B,CAAC;MAAEC;IAAE,CAAC,GAAA2B,IAAA;IACV,IAAI,CAACrC,QAAQ,CAACzC,OAAO,EAAE;MACrB;IACF;IAEAyC,QAAQ,CAACzC,OAAO,GAAG,KAAK;IACxBgE,YAAY,CAAC;MAAEd,CAAC;MAAEC;IAAE,CAAC,CAAC;IACtBoB,UAAU,GAAGN,IAAI,EAAE,IAAI,CAAC;IACxB3C,cAAc,GAAG;MAAEyD,IAAI,EAAErG,IAAI,CAACuF,IAAI,CAAC;MAAEe,IAAI,EAAEf;IAAK,CAAC,CAAC;IAClDC,OAAO,CAACxF,IAAI,CAACyF,IAAI,CAAC;EACpB,CAAC,EACD,CAACI,UAAU,EAAEjD,cAAc,EAAE0C,YAAY,EAAEC,IAAI,CACjD,CAAC;EAED,MAAMgB,OAAO,GAAG5H,WAAW,CAAC,MAAM;IAChC,MAAM;MAAEiD,MAAM;MAAED;IAAM,CAAC,GAAGT,GAAG,CAACI,OAAO,CAACiD,qBAAqB,CAAC,CAAC;IAC7DjB,OAAO,CAAC;MAAE3B,KAAK;MAAEC;IAAO,CAAC,CAAC;EAC5B,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM4E,QAAQ,GAAG7H,WAAW,CAAC,MAAM;IACjC2E,OAAO,CAACK,QAAQ,IAAI,IAAI,CAAC;EAC3B,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEd,MAAM8C,YAAY,GAAG9H,WAAW,CAC9B,CAACwH,CAAC,EAAEO,GAAG,EAAEC,EAAE,EAAEC,KAAK,EAAExD,QAAQ,KAAK;IAC/B,MAAM;MAAEzB,KAAK;MAAEC;IAAO,CAAC,GAAG+E,EAAE,CAACpC,qBAAqB,CAAC,CAAC;IACpDoB,WAAW,CAAC;MAAE,GAAGvC,QAAQ;MAAEzB,KAAK;MAAEC;IAAO,CAAC,CAAC;EAC7C,CAAC,EACD,CAAC+D,WAAW,CACd,CAAC;EAED,MAAM,CAACkB,OAAO,EAAEC,UAAU,CAAC,GAAG9H,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM+H,KAAK,GAAGpI,WAAW,CAAC,MAAM;IAC9B8D,OAAO,CAAC,CAAC;IACTqE,UAAU,CAAC,IAAI,CAAC;EAClB,CAAC,EAAE,CAACrE,OAAO,CAAC,CAAC;EACb,MAAMuE,IAAI,GAAGrI,WAAW,CAAC,MAAM;IAC7BmI,UAAU,CAAC,KAAK,CAAC;EACnB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMG,OAAO,GAAGnI,OAAO,CACrB,OAAO;IACL6C,KAAK,EAAG,eAAcyB,QAAQ,EAAEoB,CAAC,IAAIV,YAAY,GAAGA,YAAY,GAAG,CAAC,GAAGV,QAAQ,EAAEoB,CAAC,IAAI,CAAE,KAAI;IAC5F5C,MAAM,EAAEuB,QAAQ,CAACvB,MAAM,IAAIwB,QAAQ,EAAEqB,CAAC,IAAIX,YAAY,GAAGA,YAAY,GAAG,CAAC,GAAGV,QAAQ,EAAEqB,CAAC,IAAI,CAAC;EAC9F,CAAC,CAAC,EACF,CAACX,YAAY,EAAEV,QAAQ,EAAED,QAAQ,CAACvB,MAAM,CAC1C,CAAC;EAED,MAAMsF,gBAAgB,GAAGvI,WAAW,CAClC,CAAC+B,IAAY,EAAEC,YAAoB,KAAK;IACtC,IAAI,CAACiE,gBAAgB,EAAE;MACrB,OAAO,CAAC;IACV;IACA,IAAI/B,SAAS,EAAE;MACb,OAAOlC,YAAY;IACrB;IACA,MAAMsG,OAAO,GAAGtG,YAAY,GAAGmD,YAAY,GAAG,CAAC;IAC/C,IAAIpD,IAAI,IAAIuG,OAAO,EAAE;MACnB,OAAOA,OAAO;IAChB;IACA,OAAOvG,IAAI;EACb,CAAC,EACD,CAACkE,gBAAgB,EAAE/B,SAAS,EAAEiB,YAAY,CAC5C,CAAC;EAED,MAAMqD,eAAe,GAAGrI,OAAO,CAAC,MAAMoI,gBAAgB,CAACjE,QAAQ,EAAEE,QAAQ,CAACxB,KAAK,CAAC,EAAE,CAACuF,gBAAgB,EAAE/D,QAAQ,CAACxB,KAAK,EAAEsB,QAAQ,CAAC,CAAC;EAE/H,MAAMmE,gBAAgB,GAAGtI,OAAO,CAAC,MAAMoI,gBAAgB,CAAChE,SAAS,EAAEC,QAAQ,CAACvB,MAAM,CAAC,EAAE,CAACsF,gBAAgB,EAAE/D,QAAQ,CAACvB,MAAM,EAAEsB,SAAS,CAAC,CAAC;EAEpIvD,YAAY,CAACuB,GAAG,CAACI,OAAO,CAAC;EAEzB,oBACE7C,KAAA,CAAA4I,aAAA;IAAKnG,GAAG,EAAEmB;EAAU,gBAElB5D,KAAA,CAAA4I,aAAA,CAAClI,aAAa;IAACmI,OAAO,EAAEpG,GAAI;IAACqG,EAAE,EAAE3C,gBAAiB;IAACkB,OAAO,EAAE,GAAI;IAAC0B,UAAU,EAAE1H;EAAqB,gBAChGrB,KAAA,CAAA4I,aAAA,CAAClI,aAAa;IAACoI,EAAE,EAAE1E,SAAU;IAACiD,OAAO,EAAE,GAAI;IAAC0B,UAAU,EAAErH,aAAc;IAACoG,OAAO,EAAEA,OAAQ;IAACC,QAAQ,EAAEA;EAAS,gBAC1G/H,KAAA,CAAA4I,aAAA,CAACnI,GAAG;IACFuI,eAAe,EAAE5E,SAAS,IAAI,CAACE,QAAS;IACxC2E,cAAc,EAAE5E,SAAS,IAAI,CAACD,SAAU;IACxC8E,SAAS,EAAErJ,EAAE,CAACyD,WAAW,EAAE8B,WAAW,CAAE;IACxC+D,KAAK,EAAE;MAAE/F,OAAO,EAAE,MAAM;MAAEU;IAAO,CAAE,CAAC;IAAA;IACpCsF,MAAM,EAAC,kBAAkB;IACzBnH,IAAI,EAAEA,IAAK;IACX0C,QAAQ,EAAEP,SAAS,GAAG;MAAE2B,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,GAAGrB,QAAS;IAChDH,QAAQ,EAAEkE,eAAgB;IAC1BjE,SAAS,EAAEkE,gBAAiB;IAC5BU,SAAS,EAAEb,OAAO,CAACrF,MAAO;IAC1BmG,QAAQ,EAAEd,OAAO,CAACtF,KAAM;IACxB8E,YAAY,EAAEA,YAAa;IAC3BV,MAAM,EAAEA,MAAO;IACfiC,WAAW,EAAE9D,KAAM;IACnB+D,WAAW,EAAE/D,KAAM;IACnBgE,aAAa,EAAEhE,KAAM;IACrBgC,UAAU,EAAEA,UAAW;IACvBiC,mBAAmB,EAAE3I,sBAAuB;IAC5C4I,MAAM,EAAG,6CAA4C3I,uBAAwB,EAAE;IAC/E,eAAY;EAAc,gBAG1BhB,KAAA,CAAA4I,aAAA,CAACpI,SAAS;IAAC0I,SAAS,EAAEtJ,GAAG,CAAC;MAAEgK,IAAI,EAAE;IAAE,CAAC,CAAE;IAACC,KAAK,EAAEhG,UAAW;IAACiG,QAAQ,EAAE,CAACjG,UAAW;IAACkG,WAAW;IAACC,SAAS;EAAA,gBACrGhK,KAAA,CAAA4I,aAAA;IACEnG,GAAG,EAAEA,GAAI;IACTuB,OAAO,EAAEsE,KAAM;IACf2B,MAAM,EAAE1B,IAAK;IACb2B,SAAS,EAAGC,KAAK,IAAK;MACpBA,KAAK,CAACC,GAAG,KAAK,QAAQ,IAAInG,QAAQ,GAAG,CAAC;MACtCwB,KAAK,CAAC,CAAC;IACT,CAAE;IACF4E,QAAQ,EAAE,CAAC,CAAE;IACbnB,SAAS,EAAErJ,EAAE,CAACkD,iBAAiB,EAAEoC,iBAAiB,CAAE;IACpD,eAAY;EAAQ,GAEnBxB,KAAK,CAACb,QACJ,CACI,CACR,CACQ,CACF,CAAC,eAChB9C,KAAA,CAAA4I,aAAA,CAACtH,QAAQ;IAACgJ,UAAU,EAAEnD;EAAe,CAAE,CACpC,CAAC;AAEV,CAAC,CAAC;AAEFzD,WAAW,CAAC6G,WAAW,GAAG,aAAa",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bbd98f243eeec60ce4e92022aea7faea54733615"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"bbd98f243eeec60ce4e92022aea7faea54733615"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1wie91cq08=function(){return actualCoverage},actualCoverage}cov_1wie91cq08();const zoomAnimation=(cov_1wie91cq08().s[0]++,{enter:(0,emotion_css_esm.AH)({transition:"all 150ms"}),exit:(0,emotion_css_esm.AH)({transition:"all 150ms"})});function calcCoord(start,end,size,viewportSize,padding){return cov_1wie91cq08().f[0]++,cov_1wie91cq08().s[1]++,Math.max(padding,end>=viewportSize-padding/2?(cov_1wie91cq08().b[0][0]++,viewportSize-size-padding):(cov_1wie91cq08().b[0][1]++,start))}const roundCoords=(cov_1wie91cq08().s[2]++,(0,fp.mapValues)(Math.round));const focusWrapperClass=(cov_1wie91cq08().s[11]++,(0,emotion_css_esm.AH)({boxSizing:"border-box",overflow:"auto",width:"100%",height:"100%",display:"flex",outline:"none"})),windowClass=(cov_1wie91cq08().s[12]++,(0,emotion_css_esm.AH)({boxSizing:"border-box",overflow:"visible",backfaceVisibility:"hidden",perspective:"1000",willChange:"transform, top, left, minWidth, minHeight, width, height"})),WindowFrame=(cov_1wie91cq08().s[13]++,(0,react.forwardRef)(((props,windowRef)=>{cov_1wie91cq08().f[4]++;const{focusGroup,zIndex,randomizePosition,onFocus,onEscape,onEdgeSnap:onSnapCallback,maximized=(cov_1wie91cq08().b[3][0]++,!1),resizable=(cov_1wie91cq08().b[4][0]++,!1),moveable=(cov_1wie91cq08().b[5][0]++,!1),layoutData=(cov_1wie91cq08().b[6][0]++,{})}=(cov_1wie91cq08().s[14]++,props),{minWidth=(cov_1wie91cq08().b[7][0]++,cov_1wie91cq08().b[8][0]++,props.minWidth??(cov_1wie91cq08().b[8][1]++,400)),minHeight=(cov_1wie91cq08().b[9][0]++,cov_1wie91cq08().b[10][0]++,props.minHeight??(cov_1wie91cq08().b[10][1]++,140))}=(cov_1wie91cq08().s[15]++,layoutData),ref=(cov_1wie91cq08().s[16]++,(0,react.useRef)()),viewport=(cov_1wie91cq08().s[17]++,(0,hooks.lR)()),[position,setPosition]=(cov_1wie91cq08().s[18]++,(0,react.useState)()),[size,setSize]=(cov_1wie91cq08().s[19]++,(0,react.useState)((()=>{cov_1wie91cq08().f[5]++;const{right,bottom,left,top,width,height}=(cov_1wie91cq08().s[20]++,layoutData);return cov_1wie91cq08().s[21]++,{height:(cov_1wie91cq08().b[12][0]++,top>=0&&(cov_1wie91cq08().b[12][1]++,bottom>=0)?(cov_1wie91cq08().b[11][0]++,viewport.height-top-bottom):(cov_1wie91cq08().b[11][1]++,cov_1wie91cq08().b[13][0]++,height??(cov_1wie91cq08().b[13][1]++,props.height))),width:(cov_1wie91cq08().b[15][0]++,left>=0&&(cov_1wie91cq08().b[15][1]++,right>=0)?(cov_1wie91cq08().b[14][0]++,viewport.width-left-right):(cov_1wie91cq08().b[14][1]++,cov_1wie91cq08().b[16][0]++,width??(cov_1wie91cq08().b[16][1]++,props.width)))}}))),prevSize=(cov_1wie91cq08().s[22]++,(0,usePreviousImmediate.y)(size)),{focusWrapperTheme,windowTheme,windowMargin}=(cov_1wie91cq08().s[23]++,function useFrameTheme(){cov_rrhoce58i().f[0]++;const{colors,spacing=(cov_rrhoce58i().b[0][0]++,{}),backgroundOpacity,backdropFilter}=(cov_rrhoce58i().s[0]++,(0,emotion_element_43c6fea0_browser_esm.u)()),{baseUnit=(cov_rrhoce58i().b[1][0]++,0)}=(cov_rrhoce58i().s[1]++,spacing),focusWrapperTheme=(cov_rrhoce58i().s[2]++,(0,emotion_css_esm.AH)({border:`${Math.round(baseUnit/2)}px solid ${colors?.borderColor}`})),windowMargin=(cov_rrhoce58i().s[3]++,(0,react.useMemo)((()=>(cov_rrhoce58i().f[1]++,cov_rrhoce58i().s[4]++,Math.max(8,2*baseUnit))),[baseUnit])),windowTheme=(cov_rrhoce58i().s[5]++,(0,react.useMemo)((()=>(cov_rrhoce58i().f[2]++,cov_rrhoce58i().s[6]++,(0,emotion_css_esm.cx)((0,emotion_css_esm.AH)({backdropFilter,background:rgba(colors.primaryBackground,backgroundOpacity),boxShadow:`0 4px 16px 0 ${rgba(colors.borderColor,.5)}`,margin:windowMargin})))),[backdropFilter,backgroundOpacity,colors.borderColor,colors.primaryBackground,windowMargin]));return cov_rrhoce58i().s[7]++,{focusWrapperTheme,windowTheme,windowMargin}}()),dragging=(cov_1wie91cq08().s[24]++,(0,react.useRef)(!1)),[touched,_setTouched]=(cov_1wie91cq08().s[25]++,(0,react.useState)(!1)),touch=(cov_1wie91cq08().s[26]++,(0,react.useCallback)((()=>(cov_1wie91cq08().f[6]++,cov_1wie91cq08().s[27]++,_setTouched(!0))),[])),forceCenterWindow=(cov_1wie91cq08().s[28]++,(0,react.useCallback)((initialPosition=>{if(cov_1wie91cq08().f[7]++,cov_1wie91cq08().s[29]++,ref.current){cov_1wie91cq08().b[17][0]++;const randomize=(cov_1wie91cq08().s[30]++,(0,fp.mapValues)((v=>(cov_1wie91cq08().f[8]++,cov_1wie91cq08().s[31]++,Math.max(0,v+function random(n){return cov_1ij5oj001f().f[3]++,cov_1ij5oj001f().s[4]++,(Math.random()-.5)*n}(randomizePosition)))))),{height,width}=(cov_1wie91cq08().s[32]++,ref.current.getBoundingClientRect()),x=(cov_1wie91cq08().s[33]++,(viewport.width-width)/2),y=(cov_1wie91cq08().s[34]++,(.75*viewport.height-height)/2),center=(cov_1wie91cq08().s[35]++,randomize({x,y}));cov_1wie91cq08().s[36]++,setPosition(roundCoords({x:(cov_1wie91cq08().b[18][0]++,initialPosition.x??(cov_1wie91cq08().b[18][1]++,center.x)),y:(cov_1wie91cq08().b[19][0]++,initialPosition.y??(cov_1wie91cq08().b[19][1]++,center.y))}))}else cov_1wie91cq08().b[17][1]++}),[randomizePosition,viewport.height,viewport.width])),onContentChanged=(cov_1wie91cq08().s[37]++,(0,react.useCallback)((()=>{if(cov_1wie91cq08().f[9]++,cov_1wie91cq08().s[38]++,touched)cov_1wie91cq08().b[20][1]++;else{cov_1wie91cq08().b[20][0]++;const{height,width}=(cov_1wie91cq08().s[39]++,ref.current.getBoundingClientRect()),{right,bottom,left,top}=(cov_1wie91cq08().s[40]++,layoutData);cov_1wie91cq08().s[41]++,forceCenterWindow({x:(cov_1wie91cq08().b[22][0]++,!(left>=0)&&(cov_1wie91cq08().b[22][1]++,right>=0)?(cov_1wie91cq08().b[21][0]++,viewport.width-right-width):(cov_1wie91cq08().b[21][1]++,left)),y:(cov_1wie91cq08().b[24][0]++,!(top>=0)&&(cov_1wie91cq08().b[24][1]++,bottom>=0)?(cov_1wie91cq08().b[23][0]++,viewport.height-bottom-height):(cov_1wie91cq08().b[23][1]++,top))})}}),[forceCenterWindow,layoutData,touched,viewport.height,viewport.width])),contentAvailable=(cov_1wie91cq08().s[42]++,function useContentVisibility(ref,onContentChange){cov_1wie91cq08().f[1]++;const[firstChild,setFirstChild]=(cov_1wie91cq08().s[3]++,(0,react.useState)());return cov_1wie91cq08().s[4]++,firstChild!==ref.current?.children[0]?(cov_1wie91cq08().b[1][0]++,cov_1wie91cq08().s[5]++,setFirstChild(ref.current?.children[0])):cov_1wie91cq08().b[1][1]++,cov_1wie91cq08().s[6]++,(0,useMutationObserver.P)(ref,(()=>(cov_1wie91cq08().f[2]++,cov_1wie91cq08().s[7]++,setFirstChild(ref.current?.children[0])))),cov_1wie91cq08().s[8]++,(0,react.useLayoutEffect)((()=>(cov_1wie91cq08().f[3]++,cov_1wie91cq08().s[9]++,cov_1wie91cq08().b[2][0]++,firstChild&&(cov_1wie91cq08().b[2][1]++,onContentChange?.(firstChild)))),[onContentChange,firstChild]),cov_1wie91cq08().s[10]++,!!firstChild}(ref,onContentChanged)),wasMaximized=(cov_1wie91cq08().s[43]++,(0,usePreviousDifferent.O)(maximized)),calcEdgePosition=(cov_1wie91cq08().s[44]++,(0,react.useCallback)((function(viewport){cov_1wie91cq08().f[10]++;let box=(cov_1wie91cq08().s[45]++,cov_1wie91cq08().b[26][0]++,arguments.length>1&&(cov_1wie91cq08().b[26][1]++,void 0!==arguments[1])?(cov_1wie91cq08().b[25][0]++,arguments[1]):(cov_1wie91cq08().b[25][1]++,ref.current.getBoundingClientRect()));const width=(cov_1wie91cq08().s[46]++,cov_1wie91cq08().b[27][0]++,size?.width||(cov_1wie91cq08().b[27][1]++,box?.width)||(cov_1wie91cq08().b[27][2]++,0)),height=(cov_1wie91cq08().s[47]++,cov_1wie91cq08().b[28][0]++,size?.height||(cov_1wie91cq08().b[28][1]++,box?.height)||(cov_1wie91cq08().b[28][2]++,0));return cov_1wie91cq08().s[48]++,roundCoords({x:calcCoord(box.x,box.x+box.width,width,viewport.width,windowMargin),y:calcCoord(box.y,box.y+box.height,height,viewport.height,windowMargin)})}),[size,windowMargin])),debounceSetPosition=(cov_1wie91cq08().s[49]++,(0,useDebounce.d)(setPosition,0,{leading:!0}));cov_1wie91cq08().s[50]++,(0,react.useLayoutEffect)((()=>{if(cov_1wie91cq08().f[11]++,cov_1wie91cq08().s[51]++,cov_1wie91cq08().b[30][0]++,contentAvailable&&(cov_1wie91cq08().b[30][1]++,position)&&(cov_1wie91cq08().b[30][2]++,cov_1wie91cq08().b[31][0]++,!maximized&&(cov_1wie91cq08().b[31][1]++,!wasMaximized))){cov_1wie91cq08().b[29][0]++;const newValue=(cov_1wie91cq08().s[52]++,calcEdgePosition(viewport));cov_1wie91cq08().s[53]++,debounceSetPosition((current=>(cov_1wie91cq08().f[12]++,cov_1wie91cq08().s[54]++,(0,lodash.isEqual)(newValue,current)?(cov_1wie91cq08().b[32][0]++,current):(cov_1wie91cq08().b[32][1]++,newValue))))}else cov_1wie91cq08().b[29][1]++}),[contentAvailable,wasMaximized,calcEdgePosition,maximized,position,viewport,debounceSetPosition]);const savePosition=(cov_1wie91cq08().s[55]++,(0,react.useCallback)((position=>(cov_1wie91cq08().f[13]++,cov_1wie91cq08().s[56]++,cov_1wie91cq08().b[33][0]++,!maximized&&(cov_1wie91cq08().b[33][1]++,setPosition(roundCoords(position))))),[maximized])),[side,setSide]=(cov_1wie91cq08().s[57]++,(0,react.useState)(Side.none)),getSnapSide=(cov_1wie91cq08().s[58]++,useSnapSide(ref)),setFrameBox=(cov_1wie91cq08().s[59]++,(0,react.useCallback)((box=>{cov_1wie91cq08().f[14]++;const{y,height,width,x}=(cov_1wie91cq08().s[60]++,box);cov_1wie91cq08().s[61]++,setSize({width,height}),cov_1wie91cq08().s[62]++,setPosition({x,y})}),[])),[snapPreviewBox,onSideSnap]=(cov_1wie91cq08().s[63]++,function useSnapAreas(){cov_re07yzcqk().f[1]++;let margin=(cov_re07yzcqk().s[1]++,cov_re07yzcqk().b[1][0]++,arguments.length>0&&(cov_re07yzcqk().b[1][1]++,void 0!==arguments[0])?(cov_re07yzcqk().b[0][0]++,arguments[0]):(cov_re07yzcqk().b[0][1]++,0)),onSnapCallback=(cov_re07yzcqk().s[2]++,arguments.length>1?(cov_re07yzcqk().b[2][0]++,arguments[1]):void cov_re07yzcqk().b[2][1]++);const{width,height}=(cov_re07yzcqk().s[3]++,(0,hooks.lR)()),[previewBox,setPreviewBox]=(cov_re07yzcqk().s[4]++,(0,react.useState)(null)),getBBox=(cov_re07yzcqk().s[5]++,(0,react.useCallback)((side=>{function points(fullSize,size){cov_re07yzcqk().f[3]++;const p0=(cov_re07yzcqk().s[6]++,margin),p1=(cov_re07yzcqk().s[7]++,size),p2=(cov_re07yzcqk().s[8]++,fullSize-size),p3=(cov_re07yzcqk().s[9]++,fullSize-p0),w0=(cov_re07yzcqk().s[10]++,p3-p0),w1=(cov_re07yzcqk().s[11]++,p1-p0),w2=(cov_re07yzcqk().s[12]++,p3-p2);return cov_re07yzcqk().s[13]++,[p0,p2,w0,w1,w2]}cov_re07yzcqk().f[2]++;const[x0,x2,wf,wl,wr]=(cov_re07yzcqk().s[14]++,points(width,.5*width-margin/2)),[y0,y2,hf,ht,hb]=(cov_re07yzcqk().s[15]++,points(height,.5*height-margin/2));switch(cov_re07yzcqk().s[16]++,side){case Side.top:return cov_re07yzcqk().b[3][0]++,cov_re07yzcqk().s[17]++,box(x0,y0,wf,ht);case Side.bottom:return cov_re07yzcqk().b[3][1]++,cov_re07yzcqk().s[18]++,box(x0,y2,wf,hb);case Side.left:return cov_re07yzcqk().b[3][2]++,cov_re07yzcqk().s[19]++,box(x0,y0,wl,hf);case Side.right:return cov_re07yzcqk().b[3][3]++,cov_re07yzcqk().s[20]++,box(x2,y0,wr,hf);case Side.topLeft:return cov_re07yzcqk().b[3][4]++,cov_re07yzcqk().s[21]++,box(x0,y0,wl,ht);case Side.topRight:return cov_re07yzcqk().b[3][5]++,cov_re07yzcqk().s[22]++,box(x2,y0,wr,ht);case Side.bottomLeft:return cov_re07yzcqk().b[3][6]++,cov_re07yzcqk().s[23]++,box(x0,y2,wl,hb);case Side.bottomRight:return cov_re07yzcqk().b[3][7]++,cov_re07yzcqk().s[24]++,box(x2,y2,wr,hb);default:return cov_re07yzcqk().b[3][8]++,cov_re07yzcqk().s[25]++,null}}),[height,width])),onSideEdgeSnap=(cov_re07yzcqk().s[26]++,(0,react.useCallback)(((side,isDropped)=>{cov_re07yzcqk().f[4]++;const bBox=(cov_re07yzcqk().s[27]++,getBBox(side));cov_re07yzcqk().s[28]++,isDropped?(cov_re07yzcqk().b[4][0]++,cov_re07yzcqk().s[29]++,bBox?(cov_re07yzcqk().b[5][0]++,cov_re07yzcqk().s[30]++,onSnapCallback?.(bBox,side)):cov_re07yzcqk().b[5][1]++,cov_re07yzcqk().s[31]++,setPreviewBox(null)):(cov_re07yzcqk().b[4][1]++,cov_re07yzcqk().s[32]++,setPreviewBox(bBox))}),[getBBox,onSnapCallback]));return cov_re07yzcqk().s[33]++,[previewBox,onSideEdgeSnap]}(windowMargin,setFrameBox));cov_1wie91cq08().s[64]++,(0,react.useEffect)((()=>{cov_1wie91cq08().f[15]++,cov_1wie91cq08().s[65]++,onSideSnap?.(side,!dragging.current)}),[onSideSnap,side]);const timeout=(cov_1wie91cq08().s[66]++,(0,react.useRef)()),onDrag=(cov_1wie91cq08().s[67]++,(0,react.useCallback)((()=>{if(cov_1wie91cq08().f[16]++,cov_1wie91cq08().s[68]++,dragging.current=!0,cov_1wie91cq08().s[69]++,clearTimeout(timeout.current),cov_1wie91cq08().s[70]++,!resizable)return cov_1wie91cq08().b[34][0]++,void cov_1wie91cq08().s[71]++;cov_1wie91cq08().b[34][1]++;const side=(cov_1wie91cq08().s[72]++,getSnapSide(1));cov_1wie91cq08().s[73]++,side?(cov_1wie91cq08().b[35][0]++,cov_1wie91cq08().s[74]++,timeout.current=setTimeout((()=>{cov_1wie91cq08().f[17]++,cov_1wie91cq08().s[75]++,cov_1wie91cq08().b[37][0]++,dragging.current&&(cov_1wie91cq08().b[37][1]++,!maximized)?(cov_1wie91cq08().b[36][0]++,cov_1wie91cq08().s[76]++,setSide(side)):cov_1wie91cq08().b[36][1]++}),100)):(cov_1wie91cq08().b[35][1]++,cov_1wie91cq08().s[77]++,setSide(side))}),[getSnapSide,maximized,resizable])),onDragStop=(cov_1wie91cq08().s[78]++,(0,react.useCallback)(((e,_ref)=>{cov_1wie91cq08().f[18]++;let{x,y}=(cov_1wie91cq08().s[79]++,_ref);if(cov_1wie91cq08().s[80]++,!dragging.current)return cov_1wie91cq08().b[38][0]++,void cov_1wie91cq08().s[81]++;cov_1wie91cq08().b[38][1]++,cov_1wie91cq08().s[82]++,dragging.current=!1,cov_1wie91cq08().s[83]++,savePosition({x,y}),cov_1wie91cq08().s[84]++,onSideSnap?.(side,!0),cov_1wie91cq08().s[85]++,onSnapCallback?.({name:Side[side],code:side}),cov_1wie91cq08().s[86]++,setSide(Side.none)}),[onSideSnap,onSnapCallback,savePosition,side])),onEnter=(cov_1wie91cq08().s[87]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[19]++;const{height,width}=(cov_1wie91cq08().s[88]++,ref.current.getBoundingClientRect());cov_1wie91cq08().s[89]++,setSize({width,height})}),[])),onExited=(cov_1wie91cq08().s[90]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[20]++,cov_1wie91cq08().s[91]++,setSize((cov_1wie91cq08().b[39][0]++,prevSize||(cov_1wie91cq08().b[39][1]++,null)))}),[prevSize])),onResizeStop=(cov_1wie91cq08().s[92]++,(0,react.useCallback)(((e,dir,el,delta,position)=>{cov_1wie91cq08().f[21]++;const{width,height}=(cov_1wie91cq08().s[93]++,el.getBoundingClientRect());cov_1wie91cq08().s[94]++,setFrameBox({...position,width,height})}),[setFrameBox])),[focused,setFocused]=(cov_1wie91cq08().s[95]++,(0,react.useState)(!1)),focus=(cov_1wie91cq08().s[96]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[22]++,cov_1wie91cq08().s[97]++,onFocus(),cov_1wie91cq08().s[98]++,setFocused(!0)}),[onFocus])),blur=(cov_1wie91cq08().s[99]++,(0,react.useCallback)((()=>{cov_1wie91cq08().f[23]++,cov_1wie91cq08().s[100]++,setFocused(!1)}),[])),maxSize=(cov_1wie91cq08().s[101]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[24]++,cov_1wie91cq08().s[102]++,{width:`calc(100% - ${position?.x<=windowMargin?(cov_1wie91cq08().b[40][0]++,2*windowMargin):(cov_1wie91cq08().b[40][1]++,cov_1wie91cq08().b[41][0]++,position?.x||(cov_1wie91cq08().b[41][1]++,0))}px)`,height:viewport.height-(position?.y<=windowMargin?(cov_1wie91cq08().b[42][0]++,2*windowMargin):(cov_1wie91cq08().b[42][1]++,cov_1wie91cq08().b[43][0]++,position?.y||(cov_1wie91cq08().b[43][1]++,0)))})),[windowMargin,position,viewport.height])),normalizeMinSize=(cov_1wie91cq08().s[103]++,(0,react.useCallback)(((size,viewportSize)=>{if(cov_1wie91cq08().f[25]++,cov_1wie91cq08().s[104]++,!contentAvailable)return cov_1wie91cq08().b[44][0]++,cov_1wie91cq08().s[105]++,0;if(cov_1wie91cq08().b[44][1]++,cov_1wie91cq08().s[106]++,maximized)return cov_1wie91cq08().b[45][0]++,cov_1wie91cq08().s[107]++,viewportSize;cov_1wie91cq08().b[45][1]++;const maxSize=(cov_1wie91cq08().s[108]++,viewportSize-2*windowMargin);return cov_1wie91cq08().s[109]++,size>=maxSize?(cov_1wie91cq08().b[46][0]++,cov_1wie91cq08().s[110]++,maxSize):(cov_1wie91cq08().b[46][1]++,cov_1wie91cq08().s[111]++,size)}),[contentAvailable,maximized,windowMargin])),currentMinWidth=(cov_1wie91cq08().s[112]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[26]++,cov_1wie91cq08().s[113]++,normalizeMinSize(minWidth,viewport.width))),[normalizeMinSize,viewport.width,minWidth])),currentMinHeight=(cov_1wie91cq08().s[114]++,(0,react.useMemo)((()=>(cov_1wie91cq08().f[27]++,cov_1wie91cq08().s[115]++,normalizeMinSize(minHeight,viewport.height))),[normalizeMinSize,viewport.height,minHeight]));return cov_1wie91cq08().s[116]++,useScrollFix(ref.current),cov_1wie91cq08().s[117]++,react.createElement("div",{ref:windowRef},react.createElement(CSSTransition.A,{nodeRef:ref,in:contentAvailable,timeout:250,classNames:defaultFadeAnimation},react.createElement(CSSTransition.A,{in:maximized,timeout:250,classNames:zoomAnimation,onEnter,onExited},react.createElement(lib.p,{disableDragging:(cov_1wie91cq08().b[47][0]++,maximized||(cov_1wie91cq08().b[47][1]++,!moveable)),enableResizing:(cov_1wie91cq08().b[48][0]++,resizable&&(cov_1wie91cq08().b[48][1]++,!maximized)),className:(0,emotion_css_esm.cx)(windowClass,windowTheme),style:{display:"flex",zIndex},bounds:"#windowsViewport",size,position:maximized?(cov_1wie91cq08().b[49][0]++,{x:0,y:0}):(cov_1wie91cq08().b[49][1]++,position),minWidth:currentMinWidth,minHeight:currentMinHeight,maxHeight:maxSize.height,maxWidth:maxSize.width,onResizeStop,onDrag,onMouseDown:touch,onDragStart:touch,onResizeStart:touch,onDragStop,dragHandleClassName:DRAG_HANDLE_CLASS_NAME,cancel:`a[href], textarea, input, select, button, ${DRAG_PREVENT_CLASS_NAME}`,"data-testid":"window-frame"},react.createElement(es2015.Ay,{className:(0,emotion_css_esm.AH)({flex:1}),group:focusGroup,disabled:!focusGroup,returnFocus:!0,autoFocus:!0},react.createElement("div",{ref,onFocus:focus,onBlur:blur,onKeyDown:event=>{cov_1wie91cq08().f[28]++,cov_1wie91cq08().s[118]++,cov_1wie91cq08().b[50][0]++,"Escape"===event.key&&(cov_1wie91cq08().b[50][1]++,onEscape?.()),cov_1wie91cq08().s[119]++,touch()},tabIndex:-1,className:(0,emotion_css_esm.cx)(focusWrapperClass,focusWrapperTheme),"data-testid":"window"},props.children))))),react.createElement(SnapMask,{previewBox:snapPreviewBox}))})));cov_1wie91cq08().s[120]++,WindowFrame.displayName="WindowFrame";try{WindowFrame.displayName="WindowFrame",WindowFrame.__docgenInfo={description:"",displayName:"WindowFrame",props:{focusGroup:{defaultValue:null,description:"",name:"focusGroup",required:!1,type:{name:"string"}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!1,type:{name:"number"}},randomizePosition:{defaultValue:null,description:"",name:"randomizePosition",required:!1,type:{name:"number"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"() => void"}},moveable:{defaultValue:null,description:"",name:"moveable",required:!1,type:{name:"boolean"}},resizable:{defaultValue:null,description:"",name:"resizable",required:!1,type:{name:"boolean"}},maximized:{defaultValue:null,description:"",name:"maximized",required:!1,type:{name:"boolean"}},onEscape:{defaultValue:null,description:"",name:"onEscape",required:!1,type:{name:"() => void"}},onEdgeSnap:{defaultValue:null,description:"",name:"onEdgeSnap",required:!1,type:{name:"(e: { name: string; code: Side; }) => void"}},width:{defaultValue:null,description:"@deprecated use layoutData",name:"width",required:!1,type:{name:"number"}},height:{defaultValue:null,description:"@deprecated use layoutData",name:"height",required:!1,type:{name:"number"}},minWidth:{defaultValue:null,description:"@deprecated use layoutData",name:"minWidth",required:!1,type:{name:"number"}},minHeight:{defaultValue:null,description:"@deprecated use layoutData",name:"minHeight",required:!1,type:{name:"number"}},layoutData:{defaultValue:null,description:"",name:"layoutData",required:!1,type:{name:"LayoutData"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowFrame.tsx#WindowFrame"]={docgenInfo:WindowFrame.__docgenInfo,name:"WindowFrame",path:"src/components/window/WindowFrame.tsx#WindowFrame"})}catch(__react_docgen_typescript_loader_error){}function cov_2po8udkhob(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"608040ffd8fbf4a785141e409e2c463136f0e296"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx",statementMap:{0:{start:{line:5,column:35},end:{line:52,column:2}},1:{start:{line:9,column:6},end:{line:9,column:10}},2:{start:{line:17,column:6},end:{line:17,column:10}},3:{start:{line:21,column:6},end:{line:21,column:26}},4:{start:{line:22,column:31},end:{line:22,column:50}},5:{start:{line:23,column:19},end:{line:23,column:96}},6:{start:{line:23,column:37},end:{line:23,column:66}},7:{start:{line:24,column:2},end:{line:51,column:6}},8:{start:{line:53,column:0},end:{line:53,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:46},end:{line:5,column:47}},loc:{start:{line:5,column:61},end:{line:52,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:23,column:31},end:{line:23,column:32}},loc:{start:{line:23,column:37},end:{line:23,column:66}},line:23}},branchMap:{0:{loc:{start:{line:23,column:37},end:{line:23,column:66}},type:"binary-expr",locations:[{start:{line:23,column:37},end:{line:23,column:53}},{start:{line:23,column:57},end:{line:23,column:66}}],line:23},1:{loc:{start:{line:31,column:23},end:{line:31,column:45}},type:"cond-expr",locations:[{start:{line:31,column:38},end:{line:31,column:39}},{start:{line:31,column:42},end:{line:31,column:45}}],line:31}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","forwardRef","useCallback","useWindowManager","useWindowZoom","WindowContent","WindowFrame","Window","_ref","ref","data","contentGetter","isResizable","isStatic","focusParent","id","order","shouldCloseOnEsc","focus","onFocus","close","onClose","zoom","onToggleZoom","onEscKey","createElement","zIndex","focusGroup","maximized","resizable","moveable","randomizePosition","isModal","onEscape","width","height","minWidth","minHeight","layoutData","isMaximized","displayName"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/Window.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAaC,WAAW,QAAQ,OAAO;AACjE,SAASC,gBAAgB,EAAEC,aAAa,QAAQ,aAAa;AAE7D,SAAwBC,aAAa,QAAQ,iBAAiB;AAC9D,SAASC,WAAW,QAAQ,eAAe;AAO3C,OAAO,MAAMC,MAAM,gBAAGN,UAAU,CAAC,CAAAO,IAAA,EAAuCC,GAA8B,KAAkB;EAAA,IAAtF;IAAEC,IAAI;IAAEC;EAA2B,CAAC,GAAAH,IAAA;EACpE,MAAM;IAAEI,WAAW;IAAEC,QAAQ;IAAEC,WAAW;IAAEC,EAAE;IAAEC,KAAK;IAAEC;EAAiB,CAAC,GAAGP,IAAI;EAEhF,MAAM;IAAEQ,KAAK,EAAEC,OAAO;IAAEC,KAAK,EAAEC;EAAQ,CAAC,GAAGlB,gBAAgB,CAACY,EAAE,CAAC;EAC/D,MAAM,CAACO,IAAI,EAAEC,YAAY,CAAC,GAAGnB,aAAa,CAACM,IAAI,CAAC;EAEhD,MAAMc,QAAQ,GAAGtB,WAAW,CAAC,MAAMe,gBAAgB,IAAII,OAAO,CAAC,CAAC,EAAE,CAACA,OAAO,EAAEJ,gBAAgB,CAAC,CAAC;EAE9F,oBACEjB,KAAA,CAAAyB,aAAA,CAACnB,WAAW;IACVoB,MAAM,EAAEV,KAAM;IACdW,UAAU,EAAEb,WAAY;IACxBK,OAAO,EAAEA,OAAQ;IACjBS,SAAS,EAAEN,IAAK;IAChBO,SAAS,EAAEjB,WAAY;IACvBkB,QAAQ,EAAE,CAACjB,QAAS;IACpBkB,iBAAiB,EAAErB,IAAI,CAACsB,OAAO,GAAG,CAAC,GAAG,GAAI;IAC1CC,QAAQ,EAAET,QAAS;IACnBU,KAAK,EAAExB,IAAI,CAACwB,KAAM;IAClBC,MAAM,EAAEzB,IAAI,CAACyB,MAAO;IACpBC,QAAQ,EAAE1B,IAAI,CAAC0B,QAAS;IACxBC,SAAS,EAAE3B,IAAI,CAAC2B,SAAU;IAC1B5B,GAAG,EAAEA,GAAI;IACT6B,UAAU,EAAE;MACVJ,KAAK,EAAExB,IAAI,CAACwB,KAAK;MACjBC,MAAM,EAAEzB,IAAI,CAACyB,MAAM;MACnBC,QAAQ,EAAE1B,IAAI,CAAC0B,QAAQ;MACvBC,SAAS,EAAE3B,IAAI,CAAC2B,SAAS;MACzB,GAAG3B,IAAI,CAAC4B;IACV;EAAE,gBAEFtC,KAAA,CAAAyB,aAAA,CAACpB,aAAa;IAACM,aAAa,EAAEA,aAAc;IAACD,IAAI,EAAEA,IAAK;IAACU,KAAK,EAAEC,OAAQ;IAACC,IAAI,EAAEC,YAAa;IAACgB,WAAW,EAAEjB;EAAK,CAAE,CACtG,CAAC;AAElB,CAAC,CAAC;AAEFf,MAAM,CAACiC,WAAW,GAAG,QAAQ",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"608040ffd8fbf4a785141e409e2c463136f0e296"});var actualCoverage=coverage[path];return cov_2po8udkhob=function(){return actualCoverage},actualCoverage}cov_2po8udkhob();const Window=(cov_2po8udkhob().s[0]++,(0,react.forwardRef)(((_ref,ref)=>{cov_2po8udkhob().f[0]++;let{data,contentGetter}=(cov_2po8udkhob().s[1]++,_ref);const{isResizable,isStatic,focusParent,id,order,shouldCloseOnEsc}=(cov_2po8udkhob().s[2]++,data),{focus:onFocus,close:onClose}=(cov_2po8udkhob().s[3]++,(0,hooks.HM)(id)),[zoom,onToggleZoom]=(cov_2po8udkhob().s[4]++,(0,hooks.dz)(data)),onEscKey=(cov_2po8udkhob().s[5]++,(0,react.useCallback)((()=>(cov_2po8udkhob().f[1]++,cov_2po8udkhob().s[6]++,cov_2po8udkhob().b[0][0]++,shouldCloseOnEsc&&(cov_2po8udkhob().b[0][1]++,onClose()))),[onClose,shouldCloseOnEsc]));return cov_2po8udkhob().s[7]++,react.createElement(WindowFrame,{zIndex:order,focusGroup:focusParent,onFocus,maximized:zoom,resizable:isResizable,moveable:!isStatic,randomizePosition:data.isModal?(cov_2po8udkhob().b[1][0]++,0):(cov_2po8udkhob().b[1][1]++,100),onEscape:onEscKey,width:data.width,height:data.height,minWidth:data.minWidth,minHeight:data.minHeight,ref,layoutData:{width:data.width,height:data.height,minWidth:data.minWidth,minHeight:data.minHeight,...data.layoutData}},react.createElement(WindowContent.M,{contentGetter,data,close:onClose,zoom:onToggleZoom,isMaximized:zoom}))})));cov_2po8udkhob().s[8]++,Window.displayName="Window";try{Window.displayName="Window",Window.__docgenInfo={description:"",displayName:"Window",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowWithOrder"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/Window.tsx#Window"]={docgenInfo:Window.__docgenInfo,name:"Window",path:"src/components/window/Window.tsx#Window"})}catch(__react_docgen_typescript_loader_error){}var ViewportContext=__webpack_require__("./src/ViewportContext.tsx");function cov_zij9mc4a2(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6bc1efa0da5e5547448a85788d337ab476eba821"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx",statementMap:{0:{start:{line:6,column:28},end:{line:11,column:2}},1:{start:{line:12,column:24},end:{line:18,column:2}},2:{start:{line:22,column:6},end:{line:22,column:10}},3:{start:{line:27,column:6},end:{line:27,column:15}},4:{start:{line:28,column:16},end:{line:31,column:22}},5:{start:{line:28,column:31},end:{line:31,column:3}},6:{start:{line:34,column:6},end:{line:34,column:16}},7:{start:{line:35,column:2},end:{line:43,column:16}}},fnMap:{0:{name:"WindowsViewport",decl:{start:{line:19,column:16},end:{line:19,column:31}},loc:{start:{line:19,column:38},end:{line:44,column:1}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:28,column:24},end:{line:28,column:25}},loc:{start:{line:28,column:31},end:{line:31,column:3}},line:28}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,names:["css","cx","useTheme","React","useMemo","useSize","ViewportContext","ignorePointerEvents","pointerEvents","fullscreenFixed","top","bottom","left","right","position","WindowsViewport","_ref","children","observe","height","width","value","zIndex","createElement","id","className","ref","Provider"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowsViewport.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,KAAK,IAAuBC,OAAO,QAAQ,OAAO;AACzD,SAASC,OAAO,QAAQ,UAAU;AAClC,SAASC,eAAe,QAAQ,oBAAoB;AAEpD,MAAMC,mBAAmB,GAAGP,GAAG,CAAC;EAC9BQ,aAAa,EAAE,MAAM;EACrB,OAAO,EAAE;IACPA,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAGT,GAAG,CAAC;EAC1BU,GAAG,EAAE,CAAC;EACNC,MAAM,EAAE,CAAC;EACTC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,QAAQ,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,SAASC,eAAeA,CAAAC,IAAA,EAAwD;EAAA,IAAvD;IAAEC;EAAqC,CAAC,GAAAD,IAAA;EACtE,MAAM;IAAEE,OAAO;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGf,OAAO,CAAC,CAAC;EAC5C,MAAMgB,KAAK,GAAGjB,OAAO,CAAC,OAAO;IAAEgB,KAAK;IAAED;EAAO,CAAC,CAAC,EAAE,CAACA,MAAM,EAAEC,KAAK,CAAC,CAAC;EAEjE,MAAM;IAAEE;EAAO,CAAC,GAAGpB,QAAQ,CAAC,CAAC;EAC7B,oBACEC,KAAA,CAAAoB,aAAA;IAAKC,EAAE,EAAE,iBAAkB;IAACC,SAAS,EAAExB,EAAE,CAACQ,eAAe,EAAEF,mBAAmB,EAAEP,GAAG,CAAC;MAAEsB;IAAO,CAAC,CAAC,CAAE;IAACI,GAAG,EAAER;EAAQ,gBAC7Gf,KAAA,CAAAoB,aAAA,CAACjB,eAAe,CAACqB,QAAQ;IAACN,KAAK,EAAEA;EAAM,GAAEJ,QAAmC,CACzE,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6bc1efa0da5e5547448a85788d337ab476eba821"});var actualCoverage=coverage[path];return cov_zij9mc4a2=function(){return actualCoverage},actualCoverage}cov_zij9mc4a2();const ignorePointerEvents=(cov_zij9mc4a2().s[0]++,(0,emotion_css_esm.AH)({pointerEvents:"none","& > *":{pointerEvents:"auto"}})),fullscreenFixed=(cov_zij9mc4a2().s[1]++,(0,emotion_css_esm.AH)({top:0,bottom:0,left:0,right:0,position:"fixed"}));function WindowsViewport(_ref){cov_zij9mc4a2().f[0]++;let{children}=(cov_zij9mc4a2().s[2]++,_ref);const{observe,height,width}=(cov_zij9mc4a2().s[3]++,(0,hooks.XX)()),value=(cov_zij9mc4a2().s[4]++,(0,react.useMemo)((()=>(cov_zij9mc4a2().f[1]++,cov_zij9mc4a2().s[5]++,{width,height})),[height,width])),{zIndex}=(cov_zij9mc4a2().s[6]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_zij9mc4a2().s[7]++,react.createElement("div",{id:"windowsViewport",className:(0,emotion_css_esm.cx)(fullscreenFixed,ignorePointerEvents,(0,emotion_css_esm.AH)({zIndex})),ref:observe},react.createElement(ViewportContext.k.Provider,{value},children))}try{WindowsViewport.displayName="WindowsViewport",WindowsViewport.__docgenInfo={description:"",displayName:"WindowsViewport",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowsViewport.tsx#WindowsViewport"]={docgenInfo:WindowsViewport.__docgenInfo,name:"WindowsViewport",path:"src/components/WindowsViewport.tsx#WindowsViewport"})}catch(__react_docgen_typescript_loader_error){}function cov_16r9agufb4(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"aed874a5b6e204f5c93ab8cefbb00ca38cecce81"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx",statementMap:{0:{start:{line:14,column:6},end:{line:14,column:10}},1:{start:{line:17,column:6},end:{line:17,column:24}},2:{start:{line:18,column:23},end:{line:18,column:31}},3:{start:{line:19,column:20},end:{line:19,column:28}},4:{start:{line:20,column:2},end:{line:40,column:37}},5:{start:{line:22,column:36},end:{line:40,column:6}}},fnMap:{0:{name:"WindowsContainer",decl:{start:{line:10,column:16},end:{line:10,column:32}},loc:{start:{line:10,column:39},end:{line:41,column:1}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:22,column:22},end:{line:22,column:23}},loc:{start:{line:22,column:36},end:{line:40,column:6}},line:22}},branchMap:{0:{loc:{start:{line:12,column:4},end:{line:12,column:29}},type:"default-arg",locations:[{start:{line:12,column:16},end:{line:12,column:29}}],line:12},1:{loc:{start:{line:22,column:37},end:{line:31,column:5}},type:"binary-expr",locations:[{start:{line:22,column:37},end:{line:22,column:46}},{start:{line:22,column:63},end:{line:31,column:5}}],line:22}},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{0:[0],1:[0,0]},inputSourceMap:{version:3,names:["flatMap","React","useRef","createPortal","CSSTransition","TransitionGroup","useWindowManager","defaultFadeAnimation","ModalMask","Window","WindowsViewport","WindowsContainer","_ref","container","document","body","contentGetter","windows","modalMaskRef","windowRef","createElement","component","d","index","isModal","nodeRef","key","id","timeout","classNames","ref","zIndex","data","filter","Boolean"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowsContainer.tsx"],mappings:"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAChC,OAAOC,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,aAAa,EAAEC,eAAe,QAAQ,wBAAwB;AACvE,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,oBAAoB,QAAQ,sBAAsB;AAC3D,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,MAAM,QAAQ,iBAAiB;AAExC,SAASC,eAAe,QAAQ,mBAAmB;AAOnD,OAAO,SAASC,gBAAgBA,CAAAC,IAAA,EAAmF;EAAA,IAAlF;IAAEC,SAAS,GAAGC,QAAQ,CAACC,IAAI;IAAEC;EAAqC,CAAC,GAAAJ,IAAA;EAClG,MAAM;IAAEK;EAAQ,CAAC,GAAGX,gBAAgB,CAAC,CAAC;EACtC,MAAMY,YAAY,GAAGhB,MAAM,CAAiB,CAAC;EAC7C,MAAMiB,SAAS,GAAGjB,MAAM,CAAiB,CAAC;EAE1C,oBAAOC,YAAY,eACjBF,KAAA,CAAAmB,aAAA,CAACf,eAAe;IAACgB,SAAS,EAAEX;EAAgB,GACzCV,OAAO,CAACiB,OAAO,EAAE,CAACK,CAAC,EAAEC,KAAK,KAAK,CAC9BD,CAAC,CAACE,OAAO,iBACPvB,KAAA,CAAAmB,aAAA,CAAChB,aAAa;IAACqB,OAAO,EAAEP,YAAa;IAACQ,GAAG,EAAG,GAAEJ,CAAC,CAACK,EAAG,OAAO;IAACC,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEtB;EAAqB,gBACxGN,KAAA,CAAAmB,aAAA,CAACZ,SAAS;IAACsB,GAAG,EAAEZ,YAAa;IAACQ,GAAG,EAAG,GAAEJ,CAAC,CAACK,EAAG,OAAO;IAACI,MAAM,EAAER;EAAM,CAAE,CACtD,CAChB,eACDtB,KAAA,CAAAmB,aAAA,CAAChB,aAAa;IAACqB,OAAO,EAAEN,SAAU;IAACO,GAAG,EAAEJ,CAAC,CAACK,EAAG;IAACC,OAAO,EAAE,GAAI;IAACC,UAAU,EAAEtB;EAAqB,gBAC3FN,KAAA,CAAAmB,aAAA,CAACX,MAAM;IAACqB,GAAG,EAAEX,SAAU;IAACa,IAAI,EAAEV,CAAE;IAACN,aAAa,EAAEA;EAAc,CAAE,CACnD,CAAC,CACjB,CAAC,CAACiB,MAAM,CAACC,OAAO,CACF,CAAC,EAClBrB,SACF,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"aed874a5b6e204f5c93ab8cefbb00ca38cecce81"});var actualCoverage=coverage[path];return cov_16r9agufb4=function(){return actualCoverage},actualCoverage}function WindowsContainer(_ref){cov_16r9agufb4().f[0]++;let{container=(cov_16r9agufb4().b[0][0]++,document.body),contentGetter}=(cov_16r9agufb4().s[0]++,_ref);const{windows}=(cov_16r9agufb4().s[1]++,(0,hooks.HM)()),modalMaskRef=(cov_16r9agufb4().s[2]++,(0,react.useRef)()),windowRef=(cov_16r9agufb4().s[3]++,(0,react.useRef)());return cov_16r9agufb4().s[4]++,(0,react_dom.createPortal)(react.createElement(TransitionGroup.A,{component:WindowsViewport},(0,lodash.flatMap)(windows,((d,index)=>(cov_16r9agufb4().f[1]++,cov_16r9agufb4().s[5]++,[(cov_16r9agufb4().b[1][0]++,d.isModal&&(cov_16r9agufb4().b[1][1]++,react.createElement(CSSTransition.A,{nodeRef:modalMaskRef,key:`${d.id}/mask`,timeout:250,classNames:defaultFadeAnimation},react.createElement(ModalMask,{ref:modalMaskRef,key:`${d.id}/mask`,zIndex:index})))),react.createElement(CSSTransition.A,{nodeRef:windowRef,key:d.id,timeout:250,classNames:defaultFadeAnimation},react.createElement(Window,{ref:windowRef,data:d,contentGetter}))]))).filter(Boolean)),container)}cov_16r9agufb4();try{WindowsContainer.displayName="WindowsContainer",WindowsContainer.__docgenInfo={description:"",displayName:"WindowsContainer",props:{container:{defaultValue:{value:"document.body"},description:"",name:"container",required:!1,type:{name:"HTMLElement"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowsContainer.tsx#WindowsContainer"]={docgenInfo:WindowsContainer.__docgenInfo,name:"WindowsContainer",path:"src/components/WindowsContainer.tsx#WindowsContainer"})}catch(__react_docgen_typescript_loader_error){}function cov_13pj6er948(){var path="/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"1607c464f18594d30a67f6c23ecf10ac30ad5383"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx",statementMap:{0:{start:{line:6,column:21},end:{line:20,column:1}},1:{start:{line:27,column:6},end:{line:27,column:10}},2:{start:{line:28,column:2},end:{line:35,column:8}},3:{start:{line:30,column:23},end:{line:30,column:93}},4:{start:{line:31,column:6},end:{line:31,column:59}}},fnMap:{0:{name:"WindowManager",decl:{start:{line:21,column:16},end:{line:21,column:29}},loc:{start:{line:21,column:36},end:{line:36,column:1}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:29,column:11},end:{line:29,column:12}},loc:{start:{line:29,column:23},end:{line:32,column:5}},line:29}},branchMap:{0:{loc:{start:{line:23,column:4},end:{line:23,column:14}},type:"default-arg",locations:[{start:{line:23,column:12},end:{line:23,column:14}}],line:23},1:{loc:{start:{line:30,column:23},end:{line:30,column:93}},type:"cond-expr",locations:[{start:{line:30,column:76},end:{line:30,column:88}},{start:{line:30,column:91},end:{line:30,column:93}}],line:30},2:{loc:{start:{line:30,column:23},end:{line:30,column:73}},type:"binary-expr",locations:[{start:{line:30,column:23},end:{line:30,column:43}},{start:{line:30,column:47},end:{line:30,column:73}}],line:30}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0,1:0},b:{0:[0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,names:["ThemeProvider","defaultsDeep","React","WindowManagerContextProvider","WindowsContainer","defaultTheme","backgroundOpacity","backdropFilter","colors","focusColor","primaryBackground","secondaryBackground","borderColor","mutedColor","spacing","baseUnit","zIndex","WindowManager","_ref","theme","contentGetter","children","props","createElement","outerTheme","arguments","length","undefined"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/WindowManager.tsx"],mappings:"AAAA,SAASA,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,YAAY,QAAQ,QAAQ;AACrC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,SAASC,4BAA4B,QAAQ,YAAY;AAEzD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,MAAMC,YAAY,GAAG;EACnBC,iBAAiB,EAAE,GAAG;EACtBC,cAAc,EAAE,YAAY;EAC5BC,MAAM,EAAE;IACNC,UAAU,EAAE,SAAS;IACrBC,iBAAiB,EAAE,SAAS;IAC5BC,mBAAmB,EAAE,SAAS;IAC9BC,WAAW,EAAE,SAAS;IACtBC,UAAU,EAAE;EACd,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDC,MAAM,EAAE;AACV,CAAC;AAOD,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAKU;EAAA,IALwB;IAC7DC,KAAK,GAAG,CAAC,CAAC;IACVC,aAAa;IACbC,QAAQ;IACR,GAAGC;EACkB,CAAC,GAAAJ,IAAA;EACtB,oBACEhB,KAAA,CAAAqB,aAAA,CAACpB,4BAA4B,qBAC3BD,KAAA,CAAAqB,aAAA,QAASD,KAAK,EACXD,QAAQ,eACTnB,KAAA,CAAAqB,aAAA,CAACvB,aAAa;IAACmB,KAAK,EAAE,SAAAA,CAAA;MAAA,IAACK,UAAU,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKxB,YAAY,CAACkB,KAAK,EAAEK,UAAU,EAAEnB,YAAY,CAAC;IAAA;EAAC,gBACvFH,KAAA,CAAAqB,aAAA,CAACnB,gBAAgB;IAACgB,aAAa,EAAEA;EAAc,CAAE,CACpC,CACZ,CACuB,CAAC;AAEnC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1607c464f18594d30a67f6c23ecf10ac30ad5383"});var actualCoverage=coverage[path];return cov_13pj6er948=function(){return actualCoverage},actualCoverage}cov_13pj6er948();const defaultTheme=(cov_13pj6er948().s[0]++,{backgroundOpacity:.9,backdropFilter:"blur(16px)",colors:{focusColor:"#0082c2",primaryBackground:"#FFFFFF",secondaryBackground:"#CCCCCC",borderColor:"#000000",mutedColor:"#999999"},spacing:{baseUnit:5},zIndex:1500});function WindowManager(_ref){cov_13pj6er948().f[0]++;let{theme=(cov_13pj6er948().b[0][0]++,{}),contentGetter,children,...props}=(cov_13pj6er948().s[1]++,_ref);return cov_13pj6er948().s[2]++,react.createElement(context.s,null,react.createElement("div",props,children,react.createElement(emotion_element_43c6fea0_browser_esm.a,{theme:function(){cov_13pj6er948().f[1]++;let outerTheme=(cov_13pj6er948().s[3]++,cov_13pj6er948().b[2][0]++,arguments.length>0&&(cov_13pj6er948().b[2][1]++,void 0!==arguments[0])?(cov_13pj6er948().b[1][0]++,arguments[0]):(cov_13pj6er948().b[1][1]++,{}));return cov_13pj6er948().s[4]++,(0,lodash.defaultsDeep)(theme,outerTheme,defaultTheme)}},react.createElement(WindowsContainer,{contentGetter}))))}try{WindowManager.displayName="WindowManager",WindowManager.__docgenInfo={description:"",displayName:"WindowManager",props:{theme:{defaultValue:{value:"{}"},description:"",name:"theme",required:!1,type:{name:"Partial<{ backgroundOpacity: number; backdropFilter: string; spacing: Partial<{ baseUnit: number; }>; colors: Partial<{ borderColor: string; focusColor: string; mutedColor: string; primaryBackground: string; secondaryBackground: string; }>; zIndex: number; }>"}},contentGetter:{defaultValue:null,description:"",name:"contentGetter",required:!0,type:{name:"ContentGetter"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/WindowManager.tsx#WindowManager"]={docgenInfo:WindowManager.__docgenInfo,name:"WindowManager",path:"src/components/WindowManager.tsx#WindowManager"})}catch(__react_docgen_typescript_loader_error){}function cov_28p8fiqlf(){var path="/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"feed4fa0efcd3e7e67dab56831afe0ca9e6b5978"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx",statementMap:{0:{start:{line:10,column:6},end:{line:10,column:11}},1:{start:{line:11,column:18},end:{line:11,column:41}},2:{start:{line:12,column:2},end:{line:18,column:5}}},fnMap:{0:{name:"DragHandle",decl:{start:{line:4,column:16},end:{line:4,column:26}},loc:{start:{line:4,column:34},end:{line:19,column:1}},line:4}},branchMap:{0:{loc:{start:{line:9,column:4},end:{line:9,column:54}},type:"default-arg",locations:[{start:{line:9,column:22},end:{line:9,column:54}}],line:9},1:{loc:{start:{line:15,column:14},end:{line:15,column:43}},type:"cond-expr",locations:[{start:{line:15,column:25},end:{line:15,column:34}},{start:{line:15,column:37},end:{line:15,column:43}}],line:15},2:{loc:{start:{line:16,column:8},end:{line:16,column:43}},type:"binary-expr",locations:[{start:{line:16,column:8},end:{line:16,column:17}},{start:{line:16,column:21},end:{line:16,column:43}}],line:16},3:{loc:{start:{line:17,column:14},end:{line:17,column:48}},type:"binary-expr",locations:[{start:{line:17,column:14},end:{line:17,column:22}},{start:{line:17,column:26},end:{line:17,column:48}}],line:17}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","DRAG_HANDLE_CLASS_NAME","DragHandle","props","children","className","disabled","el","createElement","element","Children","only","cloneElement","cursor"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/DragHandle.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA2C,OAAO;AAC9D,SAASC,sBAAsB,QAAQ,WAAW;AAYlD,OAAO,SAASC,UAAUA,CAACC,KAAyC,EAAe;EACjF,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,EAAE,gBAAGP,KAAA,CAAAQ,aAAA,YAAM;EAAE,CAAC,GAAGL,KAAK;EAE7D,MAAMM,OAAO,GAAGT,KAAK,CAACU,QAAQ,CAACC,IAAI,CAACJ,EAAE,CAAC;EACvC,oBAAOP,KAAK,CAACY,YAAY,CAACH,OAAO,EAAE;IACjC,GAAGA,OAAO,CAACN,KAAK;IAChBE,SAAS,EAAEN,EAAE,CAAC,CACZD,GAAG,CAAC;MAAEe,MAAM,EAAEP,QAAQ,GAAG,SAAS,GAAG;IAAO,CAAC,CAAC,EAC9C,CAACA,QAAQ,IAAIL,sBAAsB,EACnCQ,OAAO,CAACN,KAAK,CAACE,SAAS,EACvBA,SAAS,CACV,CAAC;IACFD,QAAQ,EAAEA,QAAQ,IAAIK,OAAO,CAACN,KAAK,CAACC;EACtC,CAAC,CAAC;AACJ",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"feed4fa0efcd3e7e67dab56831afe0ca9e6b5978"});var actualCoverage=coverage[path];return cov_28p8fiqlf=function(){return actualCoverage},actualCoverage}function DragHandle(props){cov_28p8fiqlf().f[0]++;const{children,className,disabled,el=(cov_28p8fiqlf().b[0][0]++,react.createElement("div",null))}=(cov_28p8fiqlf().s[0]++,props),element=(cov_28p8fiqlf().s[1]++,react.Children.only(el));return cov_28p8fiqlf().s[2]++,react.cloneElement(element,{...element.props,className:(0,emotion_css_esm.cx)([(0,emotion_css_esm.AH)({cursor:disabled?(cov_28p8fiqlf().b[1][0]++,"inherit"):(cov_28p8fiqlf().b[1][1]++,"move")}),(cov_28p8fiqlf().b[2][0]++,!disabled&&(cov_28p8fiqlf().b[2][1]++,DRAG_HANDLE_CLASS_NAME)),element.props.className,className]),children:(cov_28p8fiqlf().b[3][0]++,children||(cov_28p8fiqlf().b[3][1]++,element.props.children))})}cov_28p8fiqlf();try{DragHandle.displayName="DragHandle",DragHandle.__docgenInfo={description:"",displayName:"DragHandle",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},ignoredChildren:{defaultValue:null,description:'@deprecated this is ignored now - use DRAG_PREVENT_CLASS_NAME ("no-drag")',name:"ignoredChildren",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},el:{defaultValue:null,description:"",name:"el",required:!1,type:{name:"ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/DragHandle.tsx#DragHandle"]={docgenInfo:DragHandle.__docgenInfo,name:"DragHandle",path:"src/components/DragHandle.tsx#DragHandle"})}catch(__react_docgen_typescript_loader_error){}function cov_126cf4s501(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c956ec0875c67ddda0e67eff4334a02902487b1f"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx",statementMap:{0:{start:{line:3,column:23},end:{line:7,column:2}},1:{start:{line:12,column:6},end:{line:12,column:10}},2:{start:{line:13,column:2},end:{line:15,column:63}}},fnMap:{0:{name:"HeaderTitle",decl:{start:{line:8,column:16},end:{line:8,column:27}},loc:{start:{line:8,column:34},end:{line:16,column:1}},line:8}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","titleClassName","fontWeight","textTransform","padding","HeaderTitle","_ref","children","className","createElement"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderTitle.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAIhE,MAAMC,cAAc,GAAGH,GAAG,CAAC;EACzBI,UAAU,EAAE,GAAG;EACfC,aAAa,EAAE,WAAW;EAC1BC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,SAASC,WAAWA,CAAAC,IAAA,EAAyD;EAAA,IAAxD;IAAEC,QAAQ;IAAEC;EAA4B,CAAC,GAAAF,IAAA;EACnE,oBACEN,KAAA,CAAAS,aAAA;IAAKD,SAAS,EAAET,EAAE,CAACE,cAAc,EAAEO,SAAS;EAAE,gBAC5CR,KAAA,CAAAS,aAAA,eAAOF,QAAe,CACnB,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c956ec0875c67ddda0e67eff4334a02902487b1f"});var actualCoverage=coverage[path];return cov_126cf4s501=function(){return actualCoverage},actualCoverage}cov_126cf4s501();const titleClassName=(cov_126cf4s501().s[0]++,(0,emotion_css_esm.AH)({fontWeight:600,textTransform:"lowercase",padding:".25em .5em"}));function HeaderTitle(_ref){cov_126cf4s501().f[0]++;let{children,className}=(cov_126cf4s501().s[1]++,_ref);return cov_126cf4s501().s[2]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(titleClassName,className)},react.createElement("span",null,children))}try{HeaderTitle.displayName="HeaderTitle",HeaderTitle.__docgenInfo={description:"",displayName:"HeaderTitle",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderTitle.tsx#HeaderTitle"]={docgenInfo:HeaderTitle.__docgenInfo,name:"HeaderTitle",path:"src/components/window/header/HeaderTitle.tsx#HeaderTitle"})}catch(__react_docgen_typescript_loader_error){}var _g;function close_extends(){return close_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i(cov_cneuq5z0p().f[4]++,cov_cneuq5z0p().s[13]++,keys.includes(e.key)?(cov_cneuq5z0p().b[2][1]++,cov_cneuq5z0p().s[15]++,action(e)):(cov_cneuq5z0p().b[2][0]++,void cov_cneuq5z0p().s[14]++))}const HeaderButton=(cov_cneuq5z0p().s[16]++,(0,react.forwardRef)((function HeaderButton(_ref,ref){cov_cneuq5z0p().f[5]++;let{className,action,...props}=(cov_cneuq5z0p().s[17]++,_ref);const headerButtonTheme=(cov_cneuq5z0p().s[18]++,(()=>{cov_cneuq5z0p().f[2]++;const{colors}=(cov_cneuq5z0p().s[10]++,(0,emotion_element_43c6fea0_browser_esm.u)());return cov_cneuq5z0p().s[11]++,(0,emotion_css_esm.AH)({lineHeight:0,svg:{height:"2em",path:{fill:colors.mutedColor}},":focus, :hover":{svg:{path:{fill:colors.focusColor}}}})})());return cov_cneuq5z0p().s[19]++,react.createElement("button",HeaderButton_extends({className:(0,emotion_css_esm.cx)(buttonReset,headerButtonTheme,className),onPointerDown:action,onKeyDown:filterByKeys(action,["Enter"," "])},props,{ref}))})));try{HeaderButton.displayName="HeaderButton",HeaderButton.__docgenInfo={description:"",displayName:"HeaderButton",props:{action:{defaultValue:null,description:"",name:"action",required:!1,type:{name:"PointerEventHandler & KeyboardEventHandler"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButton.tsx#HeaderButton"]={docgenInfo:HeaderButton.__docgenInfo,name:"HeaderButton",path:"src/components/window/header/HeaderButton.tsx#HeaderButton"})}catch(__react_docgen_typescript_loader_error){}function cov_1xpd4jdg23(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fe99673b55ba1c5e6a6f187f4b767e1ef2f25375"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:8,column:2},end:{line:11,column:56}},2:{start:{line:10,column:18},end:{line:10,column:31}}},fnMap:{0:{name:"HeaderButtonClose",decl:{start:{line:4,column:16},end:{line:4,column:33}},loc:{start:{line:4,column:40},end:{line:12,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:10,column:12},end:{line:10,column:13}},loc:{start:{line:10,column:18},end:{line:10,column:31}},line:10}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,names:["React","CloseIcon","HeaderButton","HeaderButtonClose","_ref","closeDialog","createElement","name","action"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/HeaderButtonClose.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,YAAY,QAAQ,gBAAgB;AAM7C,OAAO,SAASC,iBAAiBA,CAAAC,IAAA,EAAuD;EAAA,IAAtD;IAAEC;EAAoC,CAAC,GAAAD,IAAA;EACvE,oBACEJ,KAAA,CAAAM,aAAA,CAACJ,YAAY;IAACK,IAAI,EAAC,OAAO;IAACC,MAAM,EAAEA,CAAA,KAAMH,WAAW,CAAC;EAAE,gBACrDL,KAAA,CAAAM,aAAA,CAACL,SAAS,MAAE,CACA,CAAC;AAEnB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fe99673b55ba1c5e6a6f187f4b767e1ef2f25375"});var actualCoverage=coverage[path];return cov_1xpd4jdg23=function(){return actualCoverage},actualCoverage}function HeaderButtonClose(_ref){cov_1xpd4jdg23().f[0]++;let{closeDialog}=(cov_1xpd4jdg23().s[0]++,_ref);return cov_1xpd4jdg23().s[1]++,react.createElement(HeaderButton,{name:"close",action:()=>(cov_1xpd4jdg23().f[1]++,cov_1xpd4jdg23().s[2]++,closeDialog())},react.createElement(header_close,null))}cov_1xpd4jdg23();try{HeaderButtonClose.displayName="HeaderButtonClose",HeaderButtonClose.__docgenInfo={description:"",displayName:"HeaderButtonClose",props:{closeDialog:{defaultValue:null,description:"",name:"closeDialog",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButtonClose.tsx#HeaderButtonClose"]={docgenInfo:HeaderButtonClose.__docgenInfo,name:"HeaderButtonClose",path:"src/components/window/header/HeaderButtonClose.tsx#HeaderButtonClose"})}catch(__react_docgen_typescript_loader_error){}var restore_g;function restore_extends(){return restore_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{cov_2a7hr40j5z().f[1]++,cov_2a7hr40j5z().s[3]++,event.preventDefault(),cov_2a7hr40j5z().s[4]++,zoomDialog(),cov_2a7hr40j5z().s[5]++,keepFocus?cov_2a7hr40j5z().b[0][1]++:(cov_2a7hr40j5z().b[0][0]++,cov_2a7hr40j5z().s[6]++,ref.current?.blur())}),[keepFocus,zoomDialog]));return cov_2a7hr40j5z().s[7]++,react.createElement(HeaderButton,{name:"zoom",ref,action},isMaximized?(cov_2a7hr40j5z().b[1][0]++,react.createElement(restore,null)):(cov_2a7hr40j5z().b[1][1]++,react.createElement(zoom,null)))}cov_2a7hr40j5z();try{HeaderButtonZoom.displayName="HeaderButtonZoom",HeaderButtonZoom.__docgenInfo={description:"",displayName:"HeaderButtonZoom",props:{zoomDialog:{defaultValue:null,description:"",name:"zoomDialog",required:!0,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!0,type:{name:"boolean"}},keepFocus:{defaultValue:null,description:"",name:"keepFocus",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/header/HeaderButtonZoom.tsx#HeaderButtonZoom"]={docgenInfo:HeaderButtonZoom.__docgenInfo,name:"HeaderButtonZoom",path:"src/components/window/header/HeaderButtonZoom.tsx#HeaderButtonZoom"})}catch(__react_docgen_typescript_loader_error){}function cov_1b0v0vnj9k(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"d17f3849033fdd13dcedf2de816b3ba9fd43e7aa"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["HeaderTitle","HeaderTitleProps","HeaderButtonClose","HeaderButtonCloseProps","HeaderButtonZoom","HeaderButtonZoomProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/header/index.ts"],mappings:"AAAA,SAASA,WAAW,EAAEC,gBAAgB,QAAQ,eAAe;AAC7D,SAASC,iBAAiB,EAAEC,sBAAsB,QAAQ,qBAAqB;AAC/E,SAASC,gBAAgB,EAAEC,qBAAqB,QAAQ,oBAAoB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d17f3849033fdd13dcedf2de816b3ba9fd43e7aa"});var actualCoverage=coverage[path];return cov_1b0v0vnj9k=function(){return actualCoverage},actualCoverage}function cov_sf3p82aj4(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:8,column:6},end:{line:8,column:10}},10:{start:{line:9,column:2},end:{line:13,column:13}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"HeaderButtons",decl:{start:{line:4,column:16},end:{line:4,column:29}},loc:{start:{line:4,column:36},end:{line:14,column:1}},line:4}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","HeaderButtons","_ref","className","props","createElement","_extends","display"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/HeaderButtons.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,OAAO,SAASC,aAAaA,CAAAC,IAAA,EAA0G;EAAA,IAAzG;IAAEC,SAAS;IAAE,GAAGC;EAAyE,CAAC,GAAAF,IAAA;EACtH,oBAAOF,KAAA,CAAAK,aAAA,QAAAC,QAAA;IAAKH,SAAS,EAAEJ,EAAE,CAACD,GAAG,CAAC;MAAES,OAAO,EAAE;IAAQ,CAAC,CAAC,EAAEJ,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AAChF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d718ed7d20eb94f4fa68944524404da55f3df468"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"d718ed7d20eb94f4fa68944524404da55f3df468"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_sf3p82aj4=function(){return actualCoverage},actualCoverage}function HeaderButtons_extends(){return cov_sf3p82aj4().f[0]++,cov_sf3p82aj4().s[0]++,HeaderButtons_extends=Object.assign?(cov_sf3p82aj4().b[0][0]++,Object.assign.bind()):(cov_sf3p82aj4().b[0][1]++,function(target){cov_sf3p82aj4().f[1]++,cov_sf3p82aj4().s[1]++;for(var i=(cov_sf3p82aj4().s[2]++,1);i(cov_19gjfuh229().f[3]++,cov_19gjfuh229().s[12]++,react.createElement("header",{className:(0,emotion_css_esm.cx)(flexRow,(0,emotion_css_esm.AH)({justifyContent:"space-between"})),onDoubleClick:()=>(cov_19gjfuh229().f[4]++,cov_19gjfuh229().s[13]++,zoomDialog?.())}))),[zoomDialog])),{HeaderButtonClose:Close,HeaderButtonZoom:Zoom,HeaderTitle:Title}=(cov_19gjfuh229().s[14]++,(0,react.useMemo)((()=>(cov_19gjfuh229().f[5]++,cov_19gjfuh229().s[15]++,{...header_namespaceObject,...components})),[components]));return cov_19gjfuh229().s[16]++,react.createElement(DragHandle,WindowHeader_extends({el:header,disabled:(cov_19gjfuh229().b[3][0]++,isStatic||(cov_19gjfuh229().b[3][1]++,isMaximized))},props),title?(cov_19gjfuh229().b[4][0]++,react.createElement(Title,{className:classnames.header},title)):(cov_19gjfuh229().b[4][1]++,react.createElement("div",null)),react.createElement(HeaderButtons,{className:(0,emotion_css_esm.cx)(flexRow,classnames.headerButtons)},(cov_19gjfuh229().b[5][0]++,zoomDialog&&(cov_19gjfuh229().b[5][1]++,react.createElement(Zoom,{zoomDialog,isMaximized}))),(cov_19gjfuh229().b[6][0]++,closeDialog&&(cov_19gjfuh229().b[6][1]++,react.createElement(Close,{closeDialog})))))}try{WindowHeader.displayName="WindowHeader",WindowHeader.__docgenInfo={description:"",displayName:"WindowHeader",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},closeDialog:{defaultValue:null,description:"",name:"closeDialog",required:!1,type:{name:"() => void"}},zoomDialog:{defaultValue:null,description:"",name:"zoomDialog",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}},isStatic:{defaultValue:null,description:"",name:"isStatic",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:'Pick'}},components:{defaultValue:{value:"{}"},description:"",name:"components",required:!1,type:{name:'Partial'}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowHeader.tsx#WindowHeader"]={docgenInfo:WindowHeader.__docgenInfo,name:"WindowHeader",path:"src/components/window/WindowHeader.tsx#WindowHeader"})}catch(__react_docgen_typescript_loader_error){}var useForkRef=__webpack_require__("./node_modules/rooks/dist/esm/hooks/useForkRef.js"),OverflowContext=__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_55mv2zfq6(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"615a2ae8c16db5bf75ffd2c54b791a2b2f79385b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx",statementMap:{0:{start:{line:11,column:6},end:{line:11,column:11}},1:{start:{line:16,column:6},end:{line:16,column:15}},2:{start:{line:20,column:6},end:{line:20,column:15}},3:{start:{line:21,column:22},end:{line:30,column:9}},4:{start:{line:21,column:36},end:{line:30,column:4}},5:{start:{line:31,column:23},end:{line:31,column:128}},6:{start:{line:31,column:37},end:{line:31,column:93}},7:{start:{line:32,column:40},end:{line:32,column:51}},8:{start:{line:33,column:46},end:{line:33,column:57}},9:{start:{line:34,column:26},end:{line:40,column:27}},10:{start:{line:35,column:22},end:{line:35,column:50}},11:{start:{line:36,column:24},end:{line:36,column:64}},12:{start:{line:37,column:27},end:{line:37,column:84}},13:{start:{line:38,column:4},end:{line:38,column:32}},14:{start:{line:39,column:4},end:{line:39,column:38}},15:{start:{line:41,column:2},end:{line:43,column:24}},16:{start:{line:42,column:4},end:{line:42,column:22}},17:{start:{line:44,column:24},end:{line:46,column:37}},18:{start:{line:44,column:38},end:{line:46,column:5}},19:{start:{line:44,column:81},end:{line:46,column:3}},20:{start:{line:47,column:20},end:{line:47,column:28}},21:{start:{line:48,column:14},end:{line:48,column:46}},22:{start:{line:49,column:19},end:{line:52,column:9}},23:{start:{line:49,column:38},end:{line:52,column:4}},24:{start:{line:53,column:14},end:{line:57,column:61}},25:{start:{line:53,column:29},end:{line:57,column:3}},26:{start:{line:55,column:37},end:{line:55,column:48}},27:{start:{line:56,column:43},end:{line:56,column:66}},28:{start:{line:58,column:2},end:{line:81,column:8}}},fnMap:{0:{name:"WithOverflow",decl:{start:{line:7,column:16},end:{line:7,column:28}},loc:{start:{line:7,column:36},end:{line:82,column:1}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:21,column:30},end:{line:21,column:31}},loc:{start:{line:21,column:36},end:{line:30,column:4}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:31,column:31},end:{line:31,column:32}},loc:{start:{line:31,column:37},end:{line:31,column:93}},line:31},3:{name:"(anonymous_3)",decl:{start:{line:34,column:38},end:{line:34,column:39}},loc:{start:{line:34,column:44},end:{line:40,column:3}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:41,column:12},end:{line:41,column:13}},loc:{start:{line:41,column:18},end:{line:43,column:3}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:32},end:{line:44,column:33}},loc:{start:{line:44,column:38},end:{line:46,column:5}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:44,column:72},end:{line:44,column:73}},loc:{start:{line:44,column:81},end:{line:46,column:3}},line:44},7:{name:"(anonymous_7)",decl:{start:{line:49,column:31},end:{line:49,column:32}},loc:{start:{line:49,column:38},end:{line:52,column:4}},line:49},8:{name:"(anonymous_8)",decl:{start:{line:53,column:22},end:{line:53,column:23}},loc:{start:{line:53,column:29},end:{line:57,column:3}},line:53},9:{name:"(anonymous_9)",decl:{start:{line:55,column:31},end:{line:55,column:32}},loc:{start:{line:55,column:37},end:{line:55,column:48}},line:55},10:{name:"(anonymous_10)",decl:{start:{line:56,column:37},end:{line:56,column:38}},loc:{start:{line:56,column:43},end:{line:56,column:66}},line:56}},branchMap:{0:{loc:{start:{line:35,column:22},end:{line:35,column:50}},type:"binary-expr",locations:[{start:{line:35,column:22},end:{line:35,column:45}},{start:{line:35,column:49},end:{line:35,column:50}}],line:35},1:{loc:{start:{line:54,column:14},end:{line:54,column:61}},type:"cond-expr",locations:[{start:{line:54,column:46},end:{line:54,column:54}},{start:{line:54,column:57},end:{line:54,column:61}}],line:54},2:{loc:{start:{line:54,column:14},end:{line:54,column:43}},type:"binary-expr",locations:[{start:{line:54,column:14},end:{line:54,column:25}},{start:{line:54,column:29},end:{line:54,column:43}}],line:54},3:{loc:{start:{line:55,column:17},end:{line:55,column:55}},type:"cond-expr",locations:[{start:{line:55,column:31},end:{line:55,column:48}},{start:{line:55,column:51},end:{line:55,column:55}}],line:55},4:{loc:{start:{line:56,column:20},end:{line:56,column:73}},type:"cond-expr",locations:[{start:{line:56,column:37},end:{line:56,column:66}},{start:{line:56,column:69},end:{line:56,column:73}}],line:56},5:{loc:{start:{line:66,column:5},end:{line:72,column:5}},type:"binary-expr",locations:[{start:{line:66,column:5},end:{line:66,column:22}},{start:{line:66,column:39},end:{line:72,column:5}}],line:66},6:{loc:{start:{line:75,column:73},end:{line:81,column:5}},type:"binary-expr",locations:[{start:{line:75,column:73},end:{line:75,column:90}},{start:{line:75,column:107},end:{line:81,column:5}}],line:75}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","useCallback","useEffect","useMemo","useRef","useState","MoveFocusInside","useForkRef","useSize","OverflowContext","WithOverflow","props","children","className","observe","parentRef","height","availableHeight","entry","childRef","contentHeight","innerShadow","position","left","zIndex","content","width","overflowSize","Math","max","round","overflowTop","setOverflowTop","overflowBottom","setOverflowBottom","updateOverflows","scrollTop","target","topOverflow","min","bottomOverflow","top","bottom","map","size","boxShadow","scrollRef","ref","scrollTo","current","behavior","ctx","scrollToTop","scrollToBottom","createElement","Provider","value","onScroll","overflow","style"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/WithOverflow.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAuBC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnG,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,UAAU,QAAQ,OAAO;AAClC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAAcC,eAAe,QAAQ,mBAAmB;AAMxD,OAAO,SAASC,YAAYA,CAACC,KAAwB,EAAe;EAClE,MAAM;IAAEC,QAAQ;IAAEC;EAAU,CAAC,GAAGF,KAAK;EACrC,MAAM;IAAEG,OAAO,EAAEC,SAAS;IAAEC,MAAM,EAAEC,eAAe;IAAEC;EAAM,CAAC,GAAGV,OAAO,CAAC,CAAC;EACxE,MAAM;IAAEM,OAAO,EAAEK,QAAQ;IAAEH,MAAM,EAAEI;EAAc,CAAC,GAAGZ,OAAO,CAAC,CAAC;EAE9D,MAAMa,WAAW,GAAGlB,OAAO,CACzB,MACEL,GAAG,CAAC;IACFwB,QAAQ,EAAE,QAAQ;IAClBC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,CAAC;IACT,OAAO,EAAE;MACPC,OAAO,EAAE,IAAI;MACbH,QAAQ,EAAE,UAAU;MACpBI,KAAK,EAAE;IACT;EACF,CAAC,CAAC,EACJ,EACF,CAAC;EAED,MAAMC,YAAY,GAAGxB,OAAO,CAAC,MAAMyB,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,KAAK,CAACV,aAAa,GAAGH,eAAe,CAAC,CAAC,EAAE,CAACA,eAAe,EAAEG,aAAa,CAAC,CAAC;EAC9H,MAAM,CAACW,WAAW,EAAEC,cAAc,CAAC,GAAG3B,QAAQ,CAAC,CAAC,CAAC;EACjD,MAAM,CAAC4B,cAAc,EAAEC,iBAAiB,CAAC,GAAG7B,QAAQ,CAAC,CAAC,CAAC;EACvD,MAAM8B,eAAe,GAAGlC,WAAW,CAAC,MAAM;IACxC,MAAMmC,SAAS,GAAGlB,KAAK,EAAEmB,MAAM,CAACD,SAAS,IAAI,CAAC;IAC9C,MAAME,WAAW,GAAGV,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACW,GAAG,CAAC,CAAC,EAAEH,SAAS,GAAG,EAAE,CAAC,CAAC;IAC5D,MAAMI,cAAc,GAAGZ,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACW,GAAG,CAAC,CAAC,EAAE,CAACZ,YAAY,GAAGS,SAAS,IAAI,EAAE,CAAC,CAAC;IAChFJ,cAAc,CAACM,WAAW,CAAC;IAC3BJ,iBAAiB,CAACM,cAAc,CAAC;EACnC,CAAC,EAAE,CAACtB,KAAK,EAAES,YAAY,CAAC,CAAC;EAEzBzB,SAAS,CAAC,MAAM;IACdiC,eAAe,CAAC,CAAC;EACnB,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,MAAM,CAACM,GAAG,EAAEC,MAAM,CAAC,GAAGvC,OAAO,CAC3B,MACE,CAAC4B,WAAW,EAAEE,cAAc,CAAC,CAACU,GAAG,CAAEC,IAAI,KAAM;IAC3CC,SAAS,EAAG,WAAUjB,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEe,IAAI,CAAE;EAC1C,CAAC,CAAC,CAAC,EACL,CAACX,cAAc,EAAEF,WAAW,CAC9B,CAAC;EACD,MAAMe,SAAS,GAAG1C,MAAM,CAAiB,CAAC;EAC1C,MAAM2C,GAAG,GAAGxC,UAAU,CAACQ,SAAS,EAAE+B,SAAS,CAAC;EAE5C,MAAME,QAAQ,GAAG/C,WAAW,CAAEwC,GAAW,IAAKK,SAAS,CAACG,OAAO,CAACD,QAAQ,CAAC;IAAEP,GAAG;IAAES,QAAQ,EAAE;EAAS,CAAC,CAAC,EAAE,EAAE,CAAC;EAC1G,MAAMC,GAAG,GAAGhD,OAAO,CACjB,OAAO;IACL6C,QAAQ,EAAEjB,WAAW,IAAIE,cAAc,GAAGe,QAAQ,GAAG,IAAI;IACzDI,WAAW,EAAErB,WAAW,GAAG,MAAMiB,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;IACnDK,cAAc,EAAEpB,cAAc,GAAG,MAAMe,QAAQ,CAAC5B,aAAa,CAAC,GAAG;EACnE,CAAC,CAAC,EACF,CAACA,aAAa,EAAEa,cAAc,EAAEF,WAAW,EAAEiB,QAAQ,CACvD,CAAC;EAED,oBACEhD,KAAA,CAAAsD,aAAA,CAAC7C,eAAe,CAAC8C,QAAQ;IAACC,KAAK,EAAEL;EAAI,gBACnCnD,KAAA,CAAAsD,aAAA;IAASP,GAAG,EAAEA,GAAI;IAACU,QAAQ,EAAEtB,eAAgB;IAACtB,SAAS,EAAEf,GAAG,CAAC;MAAE4D,QAAQ,EAAE;IAAO,CAAC;EAAE,GAChF/B,YAAY,IAAI,CAAC,iBAChB3B,KAAA,CAAAsD,aAAA;IAAKzC,SAAS,EAAEd,EAAE,CAACsB,WAAW,EAAEvB,GAAG,CAAC;MAAE2C,GAAG,EAAE;IAAE,CAAC,CAAC;EAAE,gBAC/CzC,KAAA,CAAAsD,aAAA;IAAKK,KAAK,EAAElB;EAAI,CAAE,CACf,CACN,eAEDzC,KAAA,CAAAsD,aAAA;IAAKP,GAAG,EAAE5B,QAAS;IAACN,SAAS,EAAEd,EAAE,CAACc,SAAS;EAAE,gBAC3Cb,KAAA,CAAAsD,aAAA,CAAChD,eAAe,QAAEM,QAA0B,CACzC,CAAC,EAELe,YAAY,IAAI,CAAC,iBAChB3B,KAAA,CAAAsD,aAAA;IAAKzC,SAAS,EAAEd,EAAE,CAACsB,WAAW,EAAEvB,GAAG,CAAC;MAAE4C,MAAM,EAAE;IAAE,CAAC,CAAC;EAAE,gBAClD1C,KAAA,CAAAsD,aAAA;IAAKK,KAAK,EAAEjB;EAAO,CAAE,CAClB,CAEA,CACe,CAAC;AAE/B",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"615a2ae8c16db5bf75ffd2c54b791a2b2f79385b"});var actualCoverage=coverage[path];return cov_55mv2zfq6=function(){return actualCoverage},actualCoverage}function WithOverflow(props){cov_55mv2zfq6().f[0]++;const{children,className}=(cov_55mv2zfq6().s[0]++,props),{observe:parentRef,height:availableHeight,entry}=(cov_55mv2zfq6().s[1]++,(0,hooks.XX)()),{observe:childRef,height:contentHeight}=(cov_55mv2zfq6().s[2]++,(0,hooks.XX)()),innerShadow=(cov_55mv2zfq6().s[3]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[1]++,cov_55mv2zfq6().s[4]++,(0,emotion_css_esm.AH)({position:"sticky",left:0,zIndex:1,"&>div":{content:"''",position:"absolute",width:"100%"}}))),[])),overflowSize=(cov_55mv2zfq6().s[5]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[2]++,cov_55mv2zfq6().s[6]++,Math.max(0,Math.round(contentHeight-availableHeight)))),[availableHeight,contentHeight])),[overflowTop,setOverflowTop]=(cov_55mv2zfq6().s[7]++,(0,react.useState)(0)),[overflowBottom,setOverflowBottom]=(cov_55mv2zfq6().s[8]++,(0,react.useState)(0)),updateOverflows=(cov_55mv2zfq6().s[9]++,(0,react.useCallback)((()=>{cov_55mv2zfq6().f[3]++;const scrollTop=(cov_55mv2zfq6().s[10]++,cov_55mv2zfq6().b[0][0]++,entry?.target.scrollTop||(cov_55mv2zfq6().b[0][1]++,0)),topOverflow=(cov_55mv2zfq6().s[11]++,Math.max(0,Math.min(2,scrollTop/10))),bottomOverflow=(cov_55mv2zfq6().s[12]++,Math.max(0,Math.min(2,(overflowSize-scrollTop)/10)));cov_55mv2zfq6().s[13]++,setOverflowTop(topOverflow),cov_55mv2zfq6().s[14]++,setOverflowBottom(bottomOverflow)}),[entry,overflowSize]));cov_55mv2zfq6().s[15]++,(0,react.useEffect)((()=>{cov_55mv2zfq6().f[4]++,cov_55mv2zfq6().s[16]++,updateOverflows()}),[updateOverflows]);const[top,bottom]=(cov_55mv2zfq6().s[17]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[5]++,cov_55mv2zfq6().s[18]++,[overflowTop,overflowBottom].map((size=>(cov_55mv2zfq6().f[6]++,cov_55mv2zfq6().s[19]++,{boxShadow:`0 0 4px ${Math.max(0,size)}px rgba(0,0,0, .5)`}))))),[overflowBottom,overflowTop])),scrollRef=(cov_55mv2zfq6().s[20]++,(0,react.useRef)()),ref=(cov_55mv2zfq6().s[21]++,(0,useForkRef.N)(parentRef,scrollRef)),scrollTo=(cov_55mv2zfq6().s[22]++,(0,react.useCallback)((top=>(cov_55mv2zfq6().f[7]++,cov_55mv2zfq6().s[23]++,scrollRef.current.scrollTo({top,behavior:"smooth"}))),[])),ctx=(cov_55mv2zfq6().s[24]++,(0,react.useMemo)((()=>(cov_55mv2zfq6().f[8]++,cov_55mv2zfq6().s[25]++,{scrollTo:(cov_55mv2zfq6().b[2][0]++,overflowTop||(cov_55mv2zfq6().b[2][1]++,overflowBottom)?(cov_55mv2zfq6().b[1][0]++,scrollTo):(cov_55mv2zfq6().b[1][1]++,null)),scrollToTop:overflowTop?(cov_55mv2zfq6().b[3][0]++,()=>(cov_55mv2zfq6().f[9]++,cov_55mv2zfq6().s[26]++,scrollTo(0))):(cov_55mv2zfq6().b[3][1]++,null),scrollToBottom:overflowBottom?(cov_55mv2zfq6().b[4][0]++,()=>(cov_55mv2zfq6().f[10]++,cov_55mv2zfq6().s[27]++,scrollTo(contentHeight))):(cov_55mv2zfq6().b[4][1]++,null)})),[contentHeight,overflowBottom,overflowTop,scrollTo]));return cov_55mv2zfq6().s[28]++,react.createElement(OverflowContext.a.Provider,{value:ctx},react.createElement("section",{ref,onScroll:updateOverflows,className:(0,emotion_css_esm.AH)({overflow:"auto"})},(cov_55mv2zfq6().b[5][0]++,overflowSize>=0&&(cov_55mv2zfq6().b[5][1]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(innerShadow,(0,emotion_css_esm.AH)({top:0}))},react.createElement("div",{style:top})))),react.createElement("div",{ref:childRef,className:(0,emotion_css_esm.cx)(className)},react.createElement(es2015.GC,null,children)),(cov_55mv2zfq6().b[6][0]++,overflowSize>=0&&(cov_55mv2zfq6().b[6][1]++,react.createElement("div",{className:(0,emotion_css_esm.cx)(innerShadow,(0,emotion_css_esm.AH)({bottom:0}))},react.createElement("div",{style:bottom}))))))}cov_55mv2zfq6();try{WithOverflow.displayName="WithOverflow",WithOverflow.__docgenInfo={description:"",displayName:"WithOverflow",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/content/WithOverflow.tsx#WithOverflow"]={docgenInfo:WithOverflow.__docgenInfo,name:"WithOverflow",path:"src/components/window/content/WithOverflow.tsx#WithOverflow"})}catch(__react_docgen_typescript_loader_error){}function cov_21e5ia05sn(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"b61ad9568c85a0bf39b11e333fe24ab0f856a12b"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WithOverflow","Content","WithOverflowProps","ContentProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/content/index.ts"],mappings:"AAAA,SAASA,YAAY,IAAIC,OAAO,EAAEC,iBAAiB,IAAIC,YAAY,QAAQ,gBAAgB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b61ad9568c85a0bf39b11e333fe24ab0f856a12b"});var actualCoverage=coverage[path];return cov_21e5ia05sn=function(){return actualCoverage},actualCoverage}function cov_laux7r8r8(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e494cd0db2beb5cc22f3c3433b7712a78d6476f2"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["FooterButton","FooterButtonProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/footer/index.ts"],mappings:"AAAA,SAASA,YAAY,EAAEC,iBAAiB,QAAQ,gBAAgB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e494cd0db2beb5cc22f3c3433b7712a78d6476f2"});var actualCoverage=coverage[path];return cov_laux7r8r8=function(){return actualCoverage},actualCoverage}function cov_qzikirygi(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:14,column:6},end:{line:14,column:10}},10:{start:{line:15,column:22},end:{line:15,column:51}},11:{start:{line:15,column:43},end:{line:15,column:50}},12:{start:{line:16,column:20},end:{line:21,column:4}},13:{start:{line:24,column:6},end:{line:27,column:19}},14:{start:{line:24,column:21},end:{line:27,column:3}},15:{start:{line:28,column:2},end:{line:47,column:7}},16:{start:{line:39,column:8},end:{line:39,column:13}},17:{start:{line:40,column:4},end:{line:46,column:8}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"WindowFooter",decl:{start:{line:6,column:16},end:{line:6,column:28}},loc:{start:{line:6,column:35},end:{line:48,column:1}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:15,column:38},end:{line:15,column:39}},loc:{start:{line:15,column:43},end:{line:15,column:50}},line:15},4:{name:"(anonymous_4)",decl:{start:{line:24,column:14},end:{line:24,column:15}},loc:{start:{line:24,column:21},end:{line:27,column:3}},line:24},5:{name:"(anonymous_5)",decl:{start:{line:32,column:77},end:{line:32,column:78}},loc:{start:{line:32,column:86},end:{line:47,column:3}},line:32}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:8,column:4},end:{line:8,column:16}},type:"default-arg",locations:[{start:{line:8,column:14},end:{line:8,column:16}}],line:8},3:{loc:{start:{line:11,column:4},end:{line:11,column:19}},type:"default-arg",locations:[{start:{line:11,column:17},end:{line:11,column:19}}],line:11},4:{loc:{start:{line:12,column:4},end:{line:12,column:19}},type:"default-arg",locations:[{start:{line:12,column:17},end:{line:12,column:19}}],line:12},5:{loc:{start:{line:36,column:6},end:{line:36,column:27}},type:"default-arg",locations:[{start:{line:36,column:18},end:{line:36,column:27}}],line:36},6:{loc:{start:{line:43,column:16},end:{line:43,column:39}},type:"binary-expr",locations:[{start:{line:43,column:16},end:{line:43,column:27}},{start:{line:43,column:31},end:{line:43,column:39}}],line:43}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0],3:[0],4:[0],5:[0],6:[0,0]},inputSourceMap:{version:3,names:["css","cx","uniqBy","React","useMemo","defaultFooterComponents","WindowFooter","_ref","buttons","disabled","allDisabled","children","classnames","components","className","uniqButtons","b","title","flexClass","display","alignContent","alignItems","flexDirection","FooterButton","Button","createElement","justifyContent","footer","map","_ref2","classname","props","_extends","key","footerButton"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowFooter.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAOC,KAAK,IAAuBC,OAAO,QAAQ,OAAO;AAEzD,OAAO,KAAKC,uBAAuB,MAAM,UAAU;AAWnD,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAOO;EAAA,IAPN;IAC3BC,OAAO,GAAG,EAAE;IACZC,QAAQ,EAAEC,WAAW;IACrBC,QAAQ;IACRC,UAAU,GAAG,CAAC,CAAC;IACfC,UAAU,GAAG,CAAC,CAAC;IACfC;EACiB,CAAC,GAAAP,IAAA;EAClB,MAAMQ,WAAW,GAAGb,MAAM,CAACM,OAAO,EAAGQ,CAAC,IAAKA,CAAC,CAACC,KAAK,CAAC;EACnD,MAAMC,SAAS,GAAGlB,GAAG,CAAC;IACpBmB,OAAO,EAAE,MAAM;IACfC,YAAY,EAAE,SAAS;IACvBC,UAAU,EAAE,SAAS;IACrBC,aAAa,EAAE;EACjB,CAAC,CAAC;EAEF,MAAM;IAAEC,YAAY,EAAEC;EAAO,CAAC,GAAGpB,OAAO,CACtC,OAAO;IACL,GAAGC,uBAAuB;IAC1B,GAAGQ;EACL,CAAC,CAAC,EACF,CAACA,UAAU,CACb,CAAC;EAED,oBACEV,KAAA,CAAAsB,aAAA;IAAQX,SAAS,EAAEb,EAAE,CAACiB,SAAS,EAAElB,GAAG,CAAC;MAAE0B,cAAc,EAAE;IAAS,CAAC,CAAC,EAAEd,UAAU,CAACe,MAAM,EAAEb,SAAS;EAAE,GAC/FH,QAAQ,eACTR,KAAA,CAAAsB,aAAA,cACGV,WAAW,CAACa,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEpB,QAAQ;MAAEqB,SAAS;MAAEhB,SAAS,GAAGgB,SAAS;MAAEb,KAAK;MAAE,GAAGc;IAAM,CAAC,GAAAF,KAAA;IAAA,oBAC/E1B,KAAA,CAAAsB,aAAA,CAACD,MAAM,EAAAQ,QAAA;MACLC,GAAG,EAAEhB,KAAM;MACXA,KAAK,EAAEA,KAAM;MACbR,QAAQ,EAAEC,WAAW,IAAID;IAAS,GAC9BsB,KAAK;MACTjB,SAAS,EAAEb,EAAE,CAACa,SAAS,EAAEF,UAAU,CAACsB,YAAY;IAAE,EACnD,CAAC;EAAA,CACH,CACE,CACC,CAAC;AAEb",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"672149fc3202585a3a61b793b5f911fb2ab2b73f"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"672149fc3202585a3a61b793b5f911fb2ab2b73f"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_qzikirygi=function(){return actualCoverage},actualCoverage}function WindowFooter_extends(){return cov_qzikirygi().f[0]++,cov_qzikirygi().s[0]++,WindowFooter_extends=Object.assign?(cov_qzikirygi().b[0][0]++,Object.assign.bind()):(cov_qzikirygi().b[0][1]++,function(target){cov_qzikirygi().f[1]++,cov_qzikirygi().s[1]++;for(var i=(cov_qzikirygi().s[2]++,1);i(cov_qzikirygi().f[3]++,cov_qzikirygi().s[11]++,b.title)))),flexClass=(cov_qzikirygi().s[12]++,(0,emotion_css_esm.AH)({display:"flex",alignContent:"stretch",alignItems:"stretch",flexDirection:"row"})),{FooterButton:Button}=(cov_qzikirygi().s[13]++,(0,react.useMemo)((()=>(cov_qzikirygi().f[4]++,cov_qzikirygi().s[14]++,{...footer_namespaceObject,...components})),[components]));return cov_qzikirygi().s[15]++,react.createElement("footer",{className:(0,emotion_css_esm.cx)(flexClass,(0,emotion_css_esm.AH)({justifyContent:"center"}),classnames.footer,className)},children,react.createElement("div",null,uniqButtons.map((_ref2=>{cov_qzikirygi().f[5]++;let{disabled,classname,className=(cov_qzikirygi().b[5][0]++,classname),title,...props}=(cov_qzikirygi().s[16]++,_ref2);return cov_qzikirygi().s[17]++,react.createElement(Button,WindowFooter_extends({key:title,title,disabled:(cov_qzikirygi().b[6][0]++,allDisabled||(cov_qzikirygi().b[6][1]++,disabled))},props,{className:(0,emotion_css_esm.cx)(className,classnames.footerButton)}))}))))}cov_21e5ia05sn(),cov_laux7r8r8(),cov_qzikirygi();try{WindowFooter.displayName="WindowFooter",WindowFooter.__docgenInfo={description:"",displayName:"WindowFooter",props:{buttons:{defaultValue:{value:"[]"},description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},classnames:{defaultValue:{value:"{}"},description:"",name:"classnames",required:!1,type:{name:'Pick'}},components:{defaultValue:{value:"{}"},description:"",name:"components",required:!1,type:{name:'Partial'}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/WindowFooter.tsx#WindowFooter"]={docgenInfo:WindowFooter.__docgenInfo,name:"WindowFooter",path:"src/components/window/WindowFooter.tsx#WindowFooter"})}catch(__react_docgen_typescript_loader_error){}function cov_1cd9ihclqz(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"e3eda2dececf04eb429042bc63577aec709fb5bc"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowHeader","Header","WindowHeaderProps","HeaderProps","HeaderButton","HeaderButtonProps","HeaderTitle","HeaderTitleProps","HeaderButtonZoom","HeaderButtonZoomProps","HeaderButtonClose","HeaderButtonCloseProps","Content","ContentProps","WindowFooter","Footer","WindowFooterProps","FooterProps","FooterButton","FooterButtonProps"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/defaultComponents.ts"],mappings:"AAAA,SAASA,YAAY,IAAIC,MAAM,EAAEC,iBAAiB,IAAIC,WAAW,QAAQ,gBAAgB;AACzF,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,uBAAuB;AACvE,SACEC,WAAW,EACXC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,iBAAiB,EACjBC,sBAAsB,QACjB,UAAU;AACjB,SAASC,OAAO,EAAEC,YAAY,QAAQ,WAAW;AACjD,SAASC,YAAY,IAAIC,MAAM,EAAEC,iBAAiB,IAAIC,WAAW,QAAQ,gBAAgB;AACzF,SAASC,YAAY,EAAEC,iBAAiB,QAAQ,UAAU",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e3eda2dececf04eb429042bc63577aec709fb5bc"});var actualCoverage=coverage[path];return cov_1cd9ihclqz=function(){return actualCoverage},actualCoverage}function cov_2g1mxo987k(){var path="/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:8,column:6},end:{line:8,column:10}},10:{start:{line:9,column:23},end:{line:14,column:4}},11:{start:{line:15,column:2},end:{line:17,column:13}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"WindowContentGrid",decl:{start:{line:4,column:16},end:{line:4,column:33}},loc:{start:{line:4,column:40},end:{line:18,column:1}},line:4}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["css","cx","React","WindowContentGrid","_ref","className","props","contentClass","width","height","display","gridTemplateRows","createElement","_extends"],sources:["/home/runner/work/nk-windows/nk-windows/src/components/window/WindowContentGrid.tsx"],mappings:";AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,MAA6C,OAAO;AAEhE,OAAO,SAASC,iBAAiBA,CAAAC,IAAA,EAA0G;EAAA,IAAzG;IAAEC,SAAS;IAAE,GAAGC;EAAyE,CAAC,GAAAF,IAAA;EAC1H,MAAMG,YAAY,GAAGP,GAAG,CAAC;IACvBQ,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,OAAO,EAAE,MAAM;IACfC,gBAAgB,EAAE;EACpB,CAAC,CAAC;EACF,oBAAOT,KAAA,CAAAU,aAAA,QAAAC,QAAA;IAAKR,SAAS,EAAEJ,EAAE,CAACM,YAAY,EAAEF,SAAS;EAAE,GAAKC,KAAK,CAAG,CAAC;AACnE",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fb0808779aa383085fd8f652df579e4f796d8f51"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"fb0808779aa383085fd8f652df579e4f796d8f51"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_2g1mxo987k=function(){return actualCoverage},actualCoverage}function WindowContentGrid_extends(){return cov_2g1mxo987k().f[0]++,cov_2g1mxo987k().s[0]++,WindowContentGrid_extends=Object.assign?(cov_2g1mxo987k().b[0][0]++,Object.assign.bind()):(cov_2g1mxo987k().b[0][1]++,function(target){cov_2g1mxo987k().f[1]++,cov_2g1mxo987k().s[1]++;for(var i=(cov_2g1mxo987k().s[2]++,1);i(cov_2j1ts03jqu().f[1]++,cov_2j1ts03jqu().s[1]++,close())}]),close,zoom,data,isMaximized,components=(cov_2j1ts03jqu().b[2][0]++,{})}=(cov_2j1ts03jqu().s[0]++,props),{Content,Header,Footer,...passComponents}=(cov_2j1ts03jqu().s[2]++,(0,react.useMemo)((()=>(cov_2j1ts03jqu().f[2]++,cov_2j1ts03jqu().s[3]++,{...defaultComponents_namespaceObject,...components})),[components]));return cov_2j1ts03jqu().s[4]++,react.createElement(WindowContentGrid,null,react.createElement(Header,{title:(cov_2j1ts03jqu().b[3][0]++,title||(cov_2j1ts03jqu().b[3][1]++,data.title)),classnames,isStatic:(cov_2j1ts03jqu().b[4][0]++,isMaximized||(cov_2j1ts03jqu().b[4][1]++,data.isStatic)),isMaximized,zoomDialog:zoom,closeDialog:close,components:passComponents}),react.createElement(Content,{className:classnames.content},children),react.createElement(Footer,{buttons,classnames,components:passComponents}))}function DefaultContent(_ref){cov_2j1ts03jqu().f[3]++;let{backgroundDrag,...props}=(cov_2j1ts03jqu().s[5]++,_ref);return cov_2j1ts03jqu().s[6]++,react.createElement(react.Fragment,null,backgroundDrag?(cov_2j1ts03jqu().b[5][0]++,react.createElement(DragHandle,{disabled:(cov_2j1ts03jqu().b[6][0]++,props.isMaximized||(cov_2j1ts03jqu().b[6][1]++,props.data.isStatic))},react.createElement(Content,props))):(cov_2j1ts03jqu().b[5][1]++,react.createElement(Content,props)))}cov_2j1ts03jqu();try{DefaultContent.displayName="DefaultContent",DefaultContent.__docgenInfo={description:"",displayName:"DefaultContent",props:{buttons:{defaultValue:null,description:"",name:"buttons",required:!1,type:{name:"FooterButtonProps[]"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/window/DefaultContent.tsx#DefaultContent"]={docgenInfo:DefaultContent.__docgenInfo,name:"DefaultContent",path:"src/components/window/DefaultContent.tsx#DefaultContent"})}catch(__react_docgen_typescript_loader_error){}function cov_flolopwsl(){var path="/home/runner/work/nk-windows/nk-windows/src/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"de1f2696c89ddbd46e57d06b76dc061ba522cea5"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:["WindowContentProps","ContentGetter","FooterButtonProps","WindowButtonProps","WindowId","WindowType","useWindowManager","useOverflow","useWindowContext","WindowManager","WindowManagerProvider","DefaultContent","DefaultContentProps","_DefaultComponents","DefaultComponents","DRAG_PREVENT_CLASS_NAME"],sources:["/home/runner/work/nk-windows/nk-windows/src/index.ts"],mappings:"AAAA,SAASA,kBAAkB,QAAQ,wCAAwC;AAC3E,SAASC,aAAa,QAAQ,mCAAmC;AACjE,SAASC,iBAAiB,IAAIC,iBAAiB,QAAQ,yCAAyC;AAChG,SAASC,QAAQ,EAAEC,UAAU,QAAQ,SAAS;AAC9C,SAASC,gBAAgB,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,SAAS;AACzE,SAASC,aAAa,IAAIC,qBAAqB,QAAQ,4BAA4B;AACnF,SAASC,cAAc,EAAEC,mBAAmB,QAAQ,oCAAoC;AAAC,YAAAC,kBAAA,MACtD,uCAAuC;AAAA,SAAAA,kBAAA,IAA9DC,iBAAiB;AAC7B,SAASC,uBAAuB,QAAQ,UAAU",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"de1f2696c89ddbd46e57d06b76dc061ba522cea5"});var actualCoverage=coverage[path];return cov_flolopwsl=function(){return actualCoverage},actualCoverage}cov_flolopwsl()},"./src/store/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Do:()=>closeWindow,sJ:()=>getWindowsWithOrder,D1:()=>openWindow,Ff:()=>reducer,Ix:()=>useReducerWithThunk});var reselect=__webpack_require__("./node_modules/reselect/dist/reselect.mjs");function cov_z35rdk4li(){var path="/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ab95d51cbbce8a09020dace3e33c18241849c082"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:28}},1:{start:{line:3,column:15},end:{line:3,column:27}},2:{start:{line:5,column:24},end:{line:8,column:1}},3:{start:{line:5,column:41},end:{line:8,column:1}},4:{start:{line:9,column:20},end:{line:14,column:1}},5:{start:{line:12,column:6},end:{line:12,column:10}},6:{start:{line:13,column:2},end:{line:13,column:12}},7:{start:{line:15,column:26},end:{line:20,column:2}},8:{start:{line:18,column:6},end:{line:18,column:11}},9:{start:{line:19,column:2},end:{line:19,column:23}},10:{start:{line:21,column:25},end:{line:21,column:113}},11:{start:{line:21,column:82},end:{line:21,column:112}},12:{start:{line:21,column:100},end:{line:21,column:111}},13:{start:{line:22,column:17},end:{line:27,column:2}},14:{start:{line:25,column:6},end:{line:25,column:11}},15:{start:{line:26,column:2},end:{line:26,column:30}},16:{start:{line:28,column:31},end:{line:34,column:2}},17:{start:{line:32,column:6},end:{line:32,column:11}},18:{start:{line:33,column:2},end:{line:33,column:59}},19:{start:{line:33,column:26},end:{line:33,column:57}},20:{start:{line:35,column:35},end:{line:38,column:4}},21:{start:{line:35,column:92},end:{line:38,column:3}},22:{start:{line:35,column:113},end:{line:38,column:1}},23:{start:{line:37,column:31},end:{line:37,column:45}}},fnMap:{0:{name:"byId",decl:{start:{line:2,column:16},end:{line:2,column:20}},loc:{start:{line:2,column:25},end:{line:4,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:3,column:9},end:{line:3,column:10}},loc:{start:{line:3,column:15},end:{line:3,column:27}},line:3},2:{name:"(anonymous_2)",decl:{start:{line:5,column:24},end:{line:5,column:25}},loc:{start:{line:5,column:41},end:{line:8,column:1}},line:5},3:{name:"(anonymous_3)",decl:{start:{line:9,column:20},end:{line:9,column:21}},loc:{start:{line:9,column:37},end:{line:14,column:1}},line:9},4:{name:"(anonymous_4)",decl:{start:{line:15,column:58},end:{line:15,column:59}},loc:{start:{line:15,column:67},end:{line:20,column:1}},line:15},5:{name:"(anonymous_5)",decl:{start:{line:21,column:65},end:{line:21,column:66}},loc:{start:{line:21,column:82},end:{line:21,column:112}},line:21},6:{name:"(anonymous_6)",decl:{start:{line:21,column:95},end:{line:21,column:96}},loc:{start:{line:21,column:100},end:{line:21,column:111}},line:21},7:{name:"(anonymous_7)",decl:{start:{line:22,column:49},end:{line:22,column:50}},loc:{start:{line:22,column:58},end:{line:27,column:1}},line:22},8:{name:"(anonymous_8)",decl:{start:{line:28,column:63},end:{line:28,column:64}},loc:{start:{line:28,column:72},end:{line:34,column:1}},line:28},9:{name:"(anonymous_9)",decl:{start:{line:33,column:20},end:{line:33,column:21}},loc:{start:{line:33,column:26},end:{line:33,column:57}},line:33},10:{name:"(anonymous_10)",decl:{start:{line:35,column:72},end:{line:35,column:73}},loc:{start:{line:35,column:92},end:{line:38,column:3}},line:35},11:{name:"(anonymous_11)",decl:{start:{line:35,column:104},end:{line:35,column:105}},loc:{start:{line:35,column:113},end:{line:38,column:1}},line:35},12:{name:"(anonymous_12)",decl:{start:{line:37,column:25},end:{line:37,column:26}},loc:{start:{line:37,column:31},end:{line:37,column:45}},line:37}},branchMap:{0:{loc:{start:{line:5,column:41},end:{line:8,column:1}},type:"binary-expr",locations:[{start:{line:5,column:41},end:{line:5,column:54}},{start:{line:5,column:58},end:{line:8,column:1}}],line:5},1:{loc:{start:{line:19,column:9},end:{line:19,column:22}},type:"binary-expr",locations:[{start:{line:19,column:9},end:{line:19,column:16}},{start:{line:19,column:20},end:{line:19,column:22}}],line:19}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["createSelector","byId","id","el","getWindowsState","windowManager","windows","order","getWindowId","state","_ref","getWindows","_ref2","getWindow","find","w","getOrder","_ref3","reverse","getTopmostModal","_ref4","isModal","getWindowsWithOrder","map","data","findIndex"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/selectors.ts"],mappings:"AAAA,SAASA,cAAc,QAAQ,UAAU;AAGzC,OAAO,SAASC,IAAIA,CAAkCC,EAAW,EAAE;EACjE,OAAQC,EAAK,IAAcD,EAAE,KAAKC,EAAE,CAACD,EAAE;AACzC;AAEA,MAAME,eAAe,GAAIC,aAAiC,IAAyBA,aAAa,IAAI;EAAEC,OAAO,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAC9H,MAAMC,WAAW,GAAGA,CAACC,KAAyB,EAAAC,IAAA;EAAA,IAAE;IAAER;EAAqB,CAAC,GAAAQ,IAAA;EAAA,OAAeR,EAAE;AAAA;AAEzF,OAAO,MAAMS,UAAU,GAAGX,cAAc,CAACI,eAAe,EAAEQ,KAAA;EAAA,IAAC;IAAEN;EAAQ,CAAC,GAAAM,KAAA;EAAA,OAAKN,OAAO,IAAI,EAAE;AAAA,EAAC;AAEzF,OAAO,MAAMO,SAAS,GAAGb,cAAc,CAACW,UAAU,EAAEH,WAAW,EAAE,CAACF,OAAO,EAAEJ,EAAE,KAAKI,OAAO,CAACQ,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACb,EAAE,KAAKA,EAAE,CAAC,CAAC;AAEnH,MAAMc,QAAQ,GAAGhB,cAAc,CAACI,eAAe,EAAEa,KAAA;EAAA,IAAC;IAAEV;EAAM,CAAC,GAAAU,KAAA;EAAA,OAAK,CAAC,GAAGV,KAAK,CAAC,CAACW,OAAO,CAAC,CAAC;AAAA,EAAC;AAErF,OAAO,MAAMC,eAAe,GAAGnB,cAAc,CAC3CI,eAAe,EACfgB,KAAA;EAAA,IAAC;IAAEb,KAAK;IAAED;EAAQ,CAAC,GAAAc,KAAA;EAAA,OAAeb,KAAK,CAACO,IAAI,CAAEZ,EAAE,IAAKI,OAAO,CAACQ,IAAI,CAACb,IAAI,CAACC,EAAE,CAAC,CAAC,EAAEmB,OAAO,CAAC;AAAA,CACvF,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAAGtB,cAAc,CAC/CW,UAAU,EACVK,QAAQ,EACR,CAAkCV,OAAO,EAAEC,KAAK,KAC9CD,OAAO,CAACiB,GAAG,CAAEC,IAAI,KAAM;EACrB,GAAGA,IAAI;EACPjB,KAAK,EAAEA,KAAK,CAACkB,SAAS,CAAEvB,EAAE,IAAKsB,IAAI,CAACtB,EAAE,KAAKA,EAAE;AAC/C,CAAC,CAAC,CACN,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ab95d51cbbce8a09020dace3e33c18241849c082"});var actualCoverage=coverage[path];return cov_z35rdk4li=function(){return actualCoverage},actualCoverage}cov_z35rdk4li(),cov_z35rdk4li().s[2]++;const getWindowsState=windowManager=>(cov_z35rdk4li().f[2]++,cov_z35rdk4li().s[3]++,cov_z35rdk4li().b[0][0]++,windowManager||(cov_z35rdk4li().b[0][1]++,{windows:[],order:[]}));cov_z35rdk4li().s[4]++;const getWindows=(cov_z35rdk4li().s[7]++,(0,reselect.Mz)(getWindowsState,(_ref2=>{cov_z35rdk4li().f[4]++;let{windows}=(cov_z35rdk4li().s[8]++,_ref2);return cov_z35rdk4li().s[9]++,cov_z35rdk4li().b[1][0]++,windows||(cov_z35rdk4li().b[1][1]++,[])}))),getOrder=(cov_z35rdk4li().s[10]++,(0,reselect.Mz)(getWindows,((state,_ref)=>{cov_z35rdk4li().f[3]++;let{id}=(cov_z35rdk4li().s[5]++,_ref);return cov_z35rdk4li().s[6]++,id}),((windows,id)=>(cov_z35rdk4li().f[5]++,cov_z35rdk4li().s[11]++,windows.find((w=>(cov_z35rdk4li().f[6]++,cov_z35rdk4li().s[12]++,w.id===id)))))),cov_z35rdk4li().s[13]++,(0,reselect.Mz)(getWindowsState,(_ref3=>{cov_z35rdk4li().f[7]++;let{order}=(cov_z35rdk4li().s[14]++,_ref3);return cov_z35rdk4li().s[15]++,[...order].reverse()}))),getTopmostModal=(cov_z35rdk4li().s[16]++,(0,reselect.Mz)(getWindowsState,(_ref4=>{cov_z35rdk4li().f[8]++;let{order,windows}=(cov_z35rdk4li().s[17]++,_ref4);return cov_z35rdk4li().s[18]++,order.find((id=>(cov_z35rdk4li().f[9]++,cov_z35rdk4li().s[19]++,windows.find(function byId(id){return cov_z35rdk4li().f[0]++,cov_z35rdk4li().s[0]++,el=>(cov_z35rdk4li().f[1]++,cov_z35rdk4li().s[1]++,id===el.id)}(id))?.isModal)))}))),getWindowsWithOrder=(cov_z35rdk4li().s[20]++,(0,reselect.Mz)(getWindows,getOrder,((windows,order)=>(cov_z35rdk4li().f[10]++,cov_z35rdk4li().s[21]++,windows.map((data=>(cov_z35rdk4li().f[11]++,cov_z35rdk4li().s[22]++,{...data,order:order.findIndex((id=>(cov_z35rdk4li().f[12]++,cov_z35rdk4li().s[23]++,data.id===id)))})))))));var v4=__webpack_require__("./node_modules/uuid/dist/esm-browser/v4.js");function cov_11jza4j3r5(){var path="/home/runner/work/nk-windows/nk-windows/src/store/actions.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"2bb3b97c1bd893c300604f0472ae4ea24260c8f4"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/actions.ts",statementMap:{0:{start:{line:3,column:16},end:{line:6,column:1}},1:{start:{line:4,column:10},end:{line:4,column:79}},2:{start:{line:5,column:2},end:{line:5,column:56}},3:{start:{line:5,column:32},end:{line:5,column:54}},4:{start:{line:7,column:17},end:{line:11,column:1}},5:{start:{line:16,column:6},end:{line:16,column:10}},6:{start:{line:17,column:23},end:{line:20,column:3}},7:{start:{line:21,column:2},end:{line:34,column:4}},8:{start:{line:22,column:18},end:{line:22,column:28}},9:{start:{line:23,column:23},end:{line:27,column:5}},10:{start:{line:28,column:4},end:{line:28,column:22}},11:{start:{line:29,column:4},end:{line:32,column:7}},12:{start:{line:33,column:4},end:{line:33,column:22}},13:{start:{line:37,column:11},end:{line:37,column:83}},14:{start:{line:38,column:2},end:{line:50,column:4}},15:{start:{line:39,column:18},end:{line:39,column:28}},16:{start:{line:40,column:4},end:{line:43,column:7}},17:{start:{line:44,column:4},end:{line:49,column:8}},18:{start:{line:44,column:52},end:{line:44,column:103}},19:{start:{line:47,column:10},end:{line:47,column:15}},20:{start:{line:48,column:6},end:{line:48,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:3,column:16},end:{line:3,column:17}},loc:{start:{line:3,column:28},end:{line:6,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:5,column:21},end:{line:5,column:22}},loc:{start:{line:5,column:32},end:{line:5,column:54}},line:5},2:{name:"openWindow",decl:{start:{line:12,column:16},end:{line:12,column:26}},loc:{start:{line:12,column:33},end:{line:35,column:1}},line:12},3:{name:"(anonymous_3)",decl:{start:{line:21,column:9},end:{line:21,column:10}},loc:{start:{line:21,column:39},end:{line:34,column:3}},line:21},4:{name:"closeWindow",decl:{start:{line:36,column:16},end:{line:36,column:27}},loc:{start:{line:36,column:30},end:{line:51,column:1}},line:36},5:{name:"(anonymous_5)",decl:{start:{line:38,column:9},end:{line:38,column:10}},loc:{start:{line:38,column:39},end:{line:50,column:3}},line:38},6:{name:"(anonymous_6)",decl:{start:{line:44,column:47},end:{line:44,column:48}},loc:{start:{line:44,column:52},end:{line:44,column:103}},line:44},7:{name:"(anonymous_7)",decl:{start:{line:44,column:109},end:{line:44,column:110}},loc:{start:{line:44,column:118},end:{line:49,column:5}},line:44}},branchMap:{0:{loc:{start:{line:4,column:10},end:{line:4,column:79}},type:"cond-expr",locations:[{start:{line:4,column:63},end:{line:4,column:75}},{start:{line:4,column:78},end:{line:4,column:79}}],line:4},1:{loc:{start:{line:4,column:10},end:{line:4,column:60}},type:"binary-expr",locations:[{start:{line:4,column:10},end:{line:4,column:30}},{start:{line:4,column:34},end:{line:4,column:60}}],line:4},2:{loc:{start:{line:14,column:4},end:{line:14,column:15}},type:"default-arg",locations:[{start:{line:14,column:9},end:{line:14,column:15}}],line:14},3:{loc:{start:{line:26,column:19},end:{line:26,column:69}},type:"cond-expr",locations:[{start:{line:26,column:42},end:{line:26,column:44}},{start:{line:26,column:47},end:{line:26,column:69}}],line:26},4:{loc:{start:{line:37,column:11},end:{line:37,column:83}},type:"cond-expr",locations:[{start:{line:37,column:64},end:{line:37,column:76}},{start:{line:37,column:79},end:{line:37,column:83}}],line:37},5:{loc:{start:{line:37,column:11},end:{line:37,column:61}},type:"binary-expr",locations:[{start:{line:37,column:11},end:{line:37,column:31}},{start:{line:37,column:35},end:{line:37,column:61}}],line:37},6:{loc:{start:{line:44,column:52},end:{line:44,column:103}},type:"binary-expr",locations:[{start:{line:44,column:52},end:{line:44,column:67}},{start:{line:44,column:71},end:{line:44,column:82}},{start:{line:44,column:86},end:{line:44,column:103}}],line:44}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0],3:[0,0],4:[0,0],5:[0,0],6:[0,0,0]},inputSourceMap:{version:3,names:["v4","uuid","getTopmostModal","getWindows","timeout","t","arguments","length","undefined","Promise","resolve","setTimeout","defaults","isModal","isResizable","shouldCloseOnEsc","openWindow","_ref","id","data","withDefaults","dispatch","getState","state","windowData","focusParent","type","closeWindow","all","filter","w","parent","map","_ref2"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/actions.ts"],mappings:"AAAA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;AAGjC,SAASC,eAAe,EAAEC,UAAU,QAAQ,aAAa;AAEzD,MAAMC,OAAO,GAAG,SAAAA,CAAA;EAAA,IAACC,CAAC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,OAAK,IAAIG,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,OAAO,EAAEL,CAAC,CAAC,CAAC;AAAA;AAE3E,MAAMO,QAA6B,GAAG;EACpCC,OAAO,EAAE,IAAI;EACbC,WAAW,EAAE,IAAI;EACjBC,gBAAgB,EAAE;AACpB,CAAC;AAED,OAAO,SAASC,UAAUA,CAAAC,IAAA,EAGqD;EAAA,IAHF;IAC3EC,EAAE,GAAGjB,IAAI,CAAC,CAAC;IACX,GAAGkB;EAC4B,CAAC,GAAAF,IAAA;EAChC,MAAMG,YAAY,GAAG;IAAE,GAAGR,QAAQ;IAAE,GAAGO;EAAK,CAAC;EAC7C,OAAO,OAAOE,QAAQ,EAAEC,QAAQ,KAAK;IACnC,MAAMC,KAAK,GAAGD,QAAQ,CAAC,CAAC;IACxB,MAAME,UAAU,GAAG;MACjB,GAAGJ,YAAY;MACfF,EAAE;MACFO,WAAW,EAAEL,YAAY,CAACP,OAAO,GAAGK,EAAE,GAAGhB,eAAe,CAACqB,KAAK;IAChE,CAAC;IAED,MAAMnB,OAAO,CAAC,EAAE,CAAC;IACjBiB,QAAQ,CAAC;MAAEK,IAAI,EAAE,aAAa;MAAEF;IAAW,CAAC,CAAC;IAC7C,OAAOA,UAAU;EACnB,CAAC;AACH;AAEA,OAAO,SAASG,WAAWA,CAAA,EAA8B;EAAA,IAA7BT,EAAU,GAAAZ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAC3C,OAAO,OAAOe,QAAQ,EAAEC,QAAQ,KAAK;IACnC,MAAMC,KAAK,GAAGD,QAAQ,CAAC,CAAC;IACxBD,QAAQ,CAAC;MAAEK,IAAI,EAAE,cAAc;MAAER;IAAG,CAAC,CAAC;IACtC,MAAMT,OAAO,CAACmB,GAAG,CACfzB,UAAU,CAACoB,KAAK,CAAC,CACdM,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,MAAM,KAAKb,EAAE,IAAIY,CAAC,CAACZ,EAAE,KAAKA,EAAE,IAAIY,CAAC,CAACZ,EAAE,KAAKY,CAAC,CAACC,MAAM,CAAC,CAClEC,GAAG,CAACC,KAAA;MAAA,IAAC;QAAEf;MAAG,CAAC,GAAAe,KAAA;MAAA,OAAKZ,QAAQ,CAACM,WAAW,CAACT,EAAE,CAAC,CAAC;IAAA,EAC9C,CAAC;EACH,CAAC;AACH",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2bb3b97c1bd893c300604f0472ae4ea24260c8f4"});var actualCoverage=coverage[path];return cov_11jza4j3r5=function(){return actualCoverage},actualCoverage}cov_11jza4j3r5(),cov_11jza4j3r5().s[0]++;const timeout=function(){cov_11jza4j3r5().f[0]++;let t=(cov_11jza4j3r5().s[1]++,cov_11jza4j3r5().b[1][0]++,arguments.length>0&&(cov_11jza4j3r5().b[1][1]++,void 0!==arguments[0])?(cov_11jza4j3r5().b[0][0]++,arguments[0]):(cov_11jza4j3r5().b[0][1]++,0));return cov_11jza4j3r5().s[2]++,new Promise((resolve=>(cov_11jza4j3r5().f[1]++,cov_11jza4j3r5().s[3]++,setTimeout(resolve,t))))},defaults=(cov_11jza4j3r5().s[4]++,{isModal:!0,isResizable:!0,shouldCloseOnEsc:!0});function openWindow(_ref){cov_11jza4j3r5().f[2]++;let{id=(cov_11jza4j3r5().b[2][0]++,(0,v4.A)()),...data}=(cov_11jza4j3r5().s[5]++,_ref);const withDefaults=(cov_11jza4j3r5().s[6]++,{...defaults,...data});return cov_11jza4j3r5().s[7]++,async(dispatch,getState)=>{cov_11jza4j3r5().f[3]++;const state=(cov_11jza4j3r5().s[8]++,getState()),windowData=(cov_11jza4j3r5().s[9]++,{...withDefaults,id,focusParent:withDefaults.isModal?(cov_11jza4j3r5().b[3][0]++,id):(cov_11jza4j3r5().b[3][1]++,getTopmostModal(state))});return cov_11jza4j3r5().s[10]++,await timeout(50),cov_11jza4j3r5().s[11]++,dispatch({type:"OPEN_WINDOW",windowData}),cov_11jza4j3r5().s[12]++,windowData}}function closeWindow(){cov_11jza4j3r5().f[4]++;let id=(cov_11jza4j3r5().s[13]++,cov_11jza4j3r5().b[5][0]++,arguments.length>0&&(cov_11jza4j3r5().b[5][1]++,void 0!==arguments[0])?(cov_11jza4j3r5().b[4][0]++,arguments[0]):(cov_11jza4j3r5().b[4][1]++,null));return cov_11jza4j3r5().s[14]++,async(dispatch,getState)=>{cov_11jza4j3r5().f[5]++;const state=(cov_11jza4j3r5().s[15]++,getState());cov_11jza4j3r5().s[16]++,dispatch({type:"CLOSE_WINDOW",id}),cov_11jza4j3r5().s[17]++,await Promise.all(getWindows(state).filter((w=>(cov_11jza4j3r5().f[6]++,cov_11jza4j3r5().s[18]++,cov_11jza4j3r5().b[6][0]++,w.parent===id&&(cov_11jza4j3r5().b[6][1]++,w.id!==id)&&(cov_11jza4j3r5().b[6][2]++,w.id!==w.parent)))).map((_ref2=>{cov_11jza4j3r5().f[7]++;let{id}=(cov_11jza4j3r5().s[19]++,_ref2);return cov_11jza4j3r5().s[20]++,dispatch(closeWindow(id))})))}}var lodash=__webpack_require__("./node_modules/lodash/lodash.js");function cov_76dlciu03(){var path="/home/runner/work/nk-windows/nk-windows/src/store/combine.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"6569886d55b07bc5c4c54a62e25b3fe0a8533b4d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/combine.ts",statementMap:{0:{start:{line:2,column:2},end:{line:5,column:10}},1:{start:{line:2,column:32},end:{line:5,column:9}},2:{start:{line:2,column:86},end:{line:5,column:3}}},fnMap:{0:{name:"combine",decl:{start:{line:1,column:16},end:{line:1,column:23}},loc:{start:{line:1,column:34},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:2,column:9},end:{line:2,column:10}},loc:{start:{line:2,column:32},end:{line:5,column:9}},line:2},2:{name:"(anonymous_2)",decl:{start:{line:2,column:61},end:{line:2,column:62}},loc:{start:{line:2,column:86},end:{line:5,column:3}},line:2}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,names:["combine","reducers","prevState","action","Object","keys","reduce","previousValue","key"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/combine.ts"],mappings:"AAMA,OAAO,SAASA,OAAOA,CAA8BC,QAAwB,EAAK;EAChF,OAAQ,CAACC,SAAS,EAAEC,MAAM,KACxBC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAACK,MAAM,CAC1B,CAACC,aAAa,EAAEC,GAAG,MAAM;IACvB,GAAGD,aAAa;IAChB,CAACC,GAAG,GAAGP,QAAQ,CAACO,GAAG,CAAC,CAACN,SAAS,GAAGM,GAAG,CAAC,EAAEL,MAAM;EAC/C,CAAC,CAAC,EACF,CAAC,CACH,CAAC;AACL",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6569886d55b07bc5c4c54a62e25b3fe0a8533b4d"});var actualCoverage=coverage[path];return cov_76dlciu03=function(){return actualCoverage},actualCoverage}function cov_i8lxl3k8t(){var path="/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts",statementMap:{0:{start:{line:4,column:2},end:{line:4,column:40}},1:{start:{line:4,column:26},end:{line:4,column:38}},2:{start:{line:6,column:16},end:{line:23,column:1}},3:{start:{line:7,column:16},end:{line:7,column:86}},4:{start:{line:8,column:15},end:{line:8,column:62}},5:{start:{line:9,column:2},end:{line:22,column:3}},6:{start:{line:11,column:6},end:{line:11,column:16}},7:{start:{line:13,column:29},end:{line:13,column:77}},8:{start:{line:13,column:47},end:{line:13,column:76}},9:{start:{line:14,column:6},end:{line:16,column:7}},10:{start:{line:15,column:8},end:{line:15,column:93}},11:{start:{line:15,column:37},end:{line:15,column:91}},12:{start:{line:17,column:6},end:{line:17,column:45}},13:{start:{line:19,column:6},end:{line:19,column:43}},14:{start:{line:21,column:6},end:{line:21,column:21}},15:{start:{line:24,column:14},end:{line:39,column:1}},16:{start:{line:25,column:14},end:{line:25,column:84}},17:{start:{line:26,column:15},end:{line:26,column:62}},18:{start:{line:27,column:2},end:{line:38,column:3}},19:{start:{line:29,column:6},end:{line:29,column:16}},20:{start:{line:31,column:6},end:{line:31,column:99}},21:{start:{line:33,column:6},end:{line:33,column:39}},22:{start:{line:35,column:6},end:{line:35,column:74}},23:{start:{line:37,column:6},end:{line:37,column:19}},24:{start:{line:40,column:23},end:{line:43,column:2}}},fnMap:{0:{name:"withoutId",decl:{start:{line:3,column:16},end:{line:3,column:25}},loc:{start:{line:3,column:35},end:{line:5,column:1}},line:3},1:{name:"(anonymous_1)",decl:{start:{line:4,column:20},end:{line:4,column:21}},loc:{start:{line:4,column:26},end:{line:4,column:38}},line:4},2:{name:"(anonymous_2)",decl:{start:{line:6,column:16},end:{line:6,column:17}},loc:{start:{line:6,column:28},end:{line:23,column:1}},line:6},3:{name:"(anonymous_3)",decl:{start:{line:13,column:42},end:{line:13,column:43}},loc:{start:{line:13,column:47},end:{line:13,column:76}},line:13},4:{name:"(anonymous_4)",decl:{start:{line:15,column:27},end:{line:15,column:28}},loc:{start:{line:15,column:37},end:{line:15,column:91}},line:15},5:{name:"(anonymous_5)",decl:{start:{line:24,column:14},end:{line:24,column:15}},loc:{start:{line:24,column:26},end:{line:39,column:1}},line:24}},branchMap:{0:{loc:{start:{line:7,column:16},end:{line:7,column:86}},type:"cond-expr",locations:[{start:{line:7,column:69},end:{line:7,column:81}},{start:{line:7,column:84},end:{line:7,column:86}}],line:7},1:{loc:{start:{line:7,column:16},end:{line:7,column:66}},type:"binary-expr",locations:[{start:{line:7,column:16},end:{line:7,column:36}},{start:{line:7,column:40},end:{line:7,column:66}}],line:7},2:{loc:{start:{line:8,column:15},end:{line:8,column:62}},type:"cond-expr",locations:[{start:{line:8,column:38},end:{line:8,column:50}},{start:{line:8,column:53},end:{line:8,column:62}}],line:8},3:{loc:{start:{line:9,column:2},end:{line:22,column:3}},type:"switch",locations:[{start:{line:10,column:4},end:{line:11,column:16}},{start:{line:12,column:4},end:{line:17,column:45}},{start:{line:18,column:4},end:{line:19,column:43}},{start:{line:20,column:4},end:{line:21,column:21}}],line:9},4:{loc:{start:{line:14,column:6},end:{line:16,column:7}},type:"if",locations:[{start:{line:14,column:6},end:{line:16,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:14},5:{loc:{start:{line:15,column:37},end:{line:15,column:91}},type:"cond-expr",locations:[{start:{line:15,column:65},end:{line:15,column:82}},{start:{line:15,column:85},end:{line:15,column:91}}],line:15},6:{loc:{start:{line:25,column:14},end:{line:25,column:84}},type:"cond-expr",locations:[{start:{line:25,column:67},end:{line:25,column:79}},{start:{line:25,column:82},end:{line:25,column:84}}],line:25},7:{loc:{start:{line:25,column:14},end:{line:25,column:64}},type:"binary-expr",locations:[{start:{line:25,column:14},end:{line:25,column:34}},{start:{line:25,column:38},end:{line:25,column:64}}],line:25},8:{loc:{start:{line:26,column:15},end:{line:26,column:62}},type:"cond-expr",locations:[{start:{line:26,column:38},end:{line:26,column:50}},{start:{line:26,column:53},end:{line:26,column:62}}],line:26},9:{loc:{start:{line:27,column:2},end:{line:38,column:3}},type:"switch",locations:[{start:{line:28,column:4},end:{line:29,column:16}},{start:{line:30,column:4},end:{line:31,column:99}},{start:{line:32,column:4},end:{line:33,column:39}},{start:{line:34,column:4},end:{line:35,column:74}},{start:{line:36,column:4},end:{line:37,column:19}}],line:27},10:{loc:{start:{line:31,column:13},end:{line:31,column:98}},type:"cond-expr",locations:[{start:{line:31,column:52},end:{line:31,column:57}},{start:{line:31,column:60},end:{line:31,column:98}}],line:31},11:{loc:{start:{line:35,column:13},end:{line:35,column:73}},type:"cond-expr",locations:[{start:{line:35,column:38},end:{line:35,column:65}},{start:{line:35,column:68},end:{line:35,column:73}}],line:35}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0,0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0,0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,names:["uniq","without","combine","withoutId","arr","id","filter","el","windows","arguments","length","undefined","action","type","existingWindow","find","w","windowData","map","window","order","state","includes","reducer"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/reducer.ts"],mappings:"AAAA,SAASA,IAAI,EAAEC,OAAO,QAAQ,QAAQ;AAItC,SAASC,OAAO,QAAQ,WAAW;AAEnC,OAAO,SAASC,SAASA,CAAkCC,GAAQ,EAAEC,EAAW,EAAO;EACrF,OAAOD,GAAG,CAACE,MAAM,CAAEC,EAAE,IAAKF,EAAE,KAAKE,EAAE,CAACF,EAAE,CAAC;AACzC;AAEA,MAAMG,OAAsC,GAAG,SAAAA,CAAA,EAA0B;EAAA,IAAzBA,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAClE,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAK,eAAe;MAClB,OAAO,EAAE;IACX,KAAK,aAAa;MAChB,MAAMC,cAAc,GAAGN,OAAO,CAACO,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACX,EAAE,KAAKO,MAAM,CAACK,UAAU,CAACZ,EAAE,CAAC;MACzE,IAAIS,cAAc,EAAE;QAClB,OAAON,OAAO,CAACU,GAAG,CAAEC,MAAM,IAAMA,MAAM,KAAKL,cAAc,GAAGF,MAAM,CAACK,UAAU,GAAGE,MAAO,CAAC;MAC1F;MACA,OAAO,CAAC,GAAGX,OAAO,EAAEI,MAAM,CAACK,UAAU,CAAC;IACxC,KAAK,cAAc;MACjB,OAAOd,SAAS,CAACK,OAAO,EAAEI,MAAM,CAACP,EAAE,CAAC;IACtC;MACE,OAAOG,OAAO;EAClB;AACF,CAAC;AAED,MAAMY,KAAkC,GAAG,SAAAA,CAAA,EAAwB;EAAA,IAAvBC,KAAK,GAAAZ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAC5D,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAK,eAAe;MAClB,OAAO,EAAE;IACX,KAAK,aAAa;MAChB,OAAOQ,KAAK,CAACC,QAAQ,CAACV,MAAM,CAACK,UAAU,CAACZ,EAAE,CAAC,GAAGgB,KAAK,GAAGrB,IAAI,CAAC,CAACY,MAAM,CAACK,UAAU,CAACZ,EAAE,EAAE,GAAGgB,KAAK,CAAC,CAAC;IAC9F,KAAK,cAAc;MACjB,OAAOpB,OAAO,CAACoB,KAAK,EAAET,MAAM,CAACP,EAAE,CAAC;IAClC,KAAK,cAAc;MACjB,OAAOO,MAAM,CAACP,EAAE,KAAKgB,KAAK,CAAC,CAAC,CAAC,GAAGrB,IAAI,CAAC,CAACY,MAAM,CAACP,EAAE,EAAE,GAAGgB,KAAK,CAAC,CAAC,GAAGA,KAAK;IACrE;MACE,OAAOA,KAAK;EAChB;AACF,CAAC;AAED,OAAO,MAAME,OAAO,GAAGrB,OAAO,CAAsC;EAAEM,OAAO;EAAEY;AAAM,CAAC,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"94fe1927c2943a4b5dc706d32756d01bc0c50e8b"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"94fe1927c2943a4b5dc706d32756d01bc0c50e8b"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_i8lxl3k8t=function(){return actualCoverage},actualCoverage}cov_76dlciu03(),cov_i8lxl3k8t(),cov_i8lxl3k8t().s[2]++;cov_i8lxl3k8t().s[15]++;const reducer=(cov_i8lxl3k8t().s[24]++,function combine(reducers){return cov_76dlciu03().f[0]++,cov_76dlciu03().s[0]++,(prevState,action)=>(cov_76dlciu03().f[1]++,cov_76dlciu03().s[1]++,Object.keys(reducers).reduce(((previousValue,key)=>(cov_76dlciu03().f[2]++,cov_76dlciu03().s[2]++,{...previousValue,[key]:reducers[key](prevState?.[key],action)})),{}))}({windows:function(){cov_i8lxl3k8t().f[2]++;let windows=(cov_i8lxl3k8t().s[3]++,cov_i8lxl3k8t().b[1][0]++,arguments.length>0&&(cov_i8lxl3k8t().b[1][1]++,void 0!==arguments[0])?(cov_i8lxl3k8t().b[0][0]++,arguments[0]):(cov_i8lxl3k8t().b[0][1]++,[])),action=(cov_i8lxl3k8t().s[4]++,arguments.length>1?(cov_i8lxl3k8t().b[2][0]++,arguments[1]):void cov_i8lxl3k8t().b[2][1]++);switch(cov_i8lxl3k8t().s[5]++,action.type){case"CLEAR_WINDOWS":return cov_i8lxl3k8t().b[3][0]++,cov_i8lxl3k8t().s[6]++,[];case"OPEN_WINDOW":cov_i8lxl3k8t().b[3][1]++;const existingWindow=(cov_i8lxl3k8t().s[7]++,windows.find((w=>(cov_i8lxl3k8t().f[3]++,cov_i8lxl3k8t().s[8]++,w.id===action.windowData.id))));return cov_i8lxl3k8t().s[9]++,existingWindow?(cov_i8lxl3k8t().b[4][0]++,cov_i8lxl3k8t().s[10]++,windows.map((window=>(cov_i8lxl3k8t().f[4]++,cov_i8lxl3k8t().s[11]++,window===existingWindow?(cov_i8lxl3k8t().b[5][0]++,action.windowData):(cov_i8lxl3k8t().b[5][1]++,window))))):(cov_i8lxl3k8t().b[4][1]++,cov_i8lxl3k8t().s[12]++,[...windows,action.windowData]);case"CLOSE_WINDOW":return cov_i8lxl3k8t().b[3][2]++,cov_i8lxl3k8t().s[13]++,function withoutId(arr,id){return cov_i8lxl3k8t().f[0]++,cov_i8lxl3k8t().s[0]++,arr.filter((el=>(cov_i8lxl3k8t().f[1]++,cov_i8lxl3k8t().s[1]++,id!==el.id)))}(windows,action.id);default:return cov_i8lxl3k8t().b[3][3]++,cov_i8lxl3k8t().s[14]++,windows}},order:function(){cov_i8lxl3k8t().f[5]++;let state=(cov_i8lxl3k8t().s[16]++,cov_i8lxl3k8t().b[7][0]++,arguments.length>0&&(cov_i8lxl3k8t().b[7][1]++,void 0!==arguments[0])?(cov_i8lxl3k8t().b[6][0]++,arguments[0]):(cov_i8lxl3k8t().b[6][1]++,[])),action=(cov_i8lxl3k8t().s[17]++,arguments.length>1?(cov_i8lxl3k8t().b[8][0]++,arguments[1]):void cov_i8lxl3k8t().b[8][1]++);switch(cov_i8lxl3k8t().s[18]++,action.type){case"CLEAR_WINDOWS":return cov_i8lxl3k8t().b[9][0]++,cov_i8lxl3k8t().s[19]++,[];case"OPEN_WINDOW":return cov_i8lxl3k8t().b[9][1]++,cov_i8lxl3k8t().s[20]++,state.includes(action.windowData.id)?(cov_i8lxl3k8t().b[10][0]++,state):(cov_i8lxl3k8t().b[10][1]++,(0,lodash.uniq)([action.windowData.id,...state]));case"CLOSE_WINDOW":return cov_i8lxl3k8t().b[9][2]++,cov_i8lxl3k8t().s[21]++,(0,lodash.without)(state,action.id);case"FOCUS_WINDOW":return cov_i8lxl3k8t().b[9][3]++,cov_i8lxl3k8t().s[22]++,action.id!==state[0]?(cov_i8lxl3k8t().b[11][0]++,(0,lodash.uniq)([action.id,...state])):(cov_i8lxl3k8t().b[11][1]++,state);default:return cov_i8lxl3k8t().b[9][4]++,cov_i8lxl3k8t().s[23]++,state}}}));var react=__webpack_require__("./node_modules/react/index.js");function cov_b5tu1uyjg(){var path="/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"9cd028bfee04eb85b0e7b6b9f9f23c825f256333"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts",statementMap:{0:{start:{line:3,column:2},end:{line:3,column:38}},1:{start:{line:6,column:17},end:{line:6,column:25}},2:{start:{line:7,column:28},end:{line:7,column:61}},3:{start:{line:8,column:2},end:{line:10,column:14}},4:{start:{line:9,column:4},end:{line:9,column:27}},5:{start:{line:11,column:19},end:{line:11,column:56}},6:{start:{line:11,column:37},end:{line:11,column:51}},7:{start:{line:12,column:25},end:{line:12,column:127}},8:{start:{line:12,column:47},end:{line:12,column:122}},9:{start:{line:13,column:2},end:{line:13,column:33}}},fnMap:{0:{name:"isThunkAction",decl:{start:{line:2,column:9},end:{line:2,column:22}},loc:{start:{line:2,column:31},end:{line:4,column:1}},line:2},1:{name:"useReducerWithThunk",decl:{start:{line:5,column:16},end:{line:5,column:35}},loc:{start:{line:5,column:59},end:{line:14,column:1}},line:5},2:{name:"(anonymous_2)",decl:{start:{line:8,column:12},end:{line:8,column:13}},loc:{start:{line:8,column:18},end:{line:10,column:3}},line:8},3:{name:"(anonymous_3)",decl:{start:{line:11,column:31},end:{line:11,column:32}},loc:{start:{line:11,column:37},end:{line:11,column:51}},line:11},4:{name:"(anonymous_4)",decl:{start:{line:12,column:37},end:{line:12,column:38}},loc:{start:{line:12,column:47},end:{line:12,column:122}},line:12}},branchMap:{0:{loc:{start:{line:12,column:47},end:{line:12,column:122}},type:"cond-expr",locations:[{start:{line:12,column:71},end:{line:12,column:103}},{start:{line:12,column:106},end:{line:12,column:122}}],line:12}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["useCallback","useEffect","useReducer","useRef","isThunkAction","action","useReducerWithThunk","reducer","initialState","_state","state","dispatch","current","getState","customDispatch"],sources:["/home/runner/work/nk-windows/nk-windows/src/store/reducerWithThunk.ts"],mappings:"AAAA,SAA+CA,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,MAAM,QAAQ,OAAO;AAWxG,SAASC,aAAaA,CAAyCC,MAA4C,EAA+B;EACxI,OAAO,OAAOA,MAAM,KAAK,UAAU;AACrC;AAIA,OAAO,SAASC,mBAAmBA,CAAsCC,OAAU,EAAEC,YAA6B,EAAuB;EACvI,MAAMC,MAAM,GAAGN,MAAM,CAAkB,CAAC;EACxC,MAAM,CAACO,KAAK,EAAEC,QAAQ,CAAC,GAAGT,UAAU,CAACK,OAAO,EAAEC,YAAY,CAAC;EAE3DP,SAAS,CAAC,MAAM;IACdQ,MAAM,CAACG,OAAO,GAAGF,KAAK;EACxB,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,MAAMG,QAAQ,GAAGb,WAAW,CAAC,MAAMS,MAAM,CAACG,OAAO,EAAE,EAAE,CAAC;EACtD,MAAME,cAAc,GAAGd,WAAW,CAAEK,MAAM,IAAMD,aAAa,CAACC,MAAM,CAAC,GAAGA,MAAM,CAACS,cAAc,EAAED,QAAQ,CAAC,GAAGF,QAAQ,CAACN,MAAM,CAAE,EAAE,EAAE,CAAC;EAEjI,OAAO,CAACK,KAAK,EAAEI,cAAc,CAAqB;AACpD",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9cd028bfee04eb85b0e7b6b9f9f23c825f256333"});var actualCoverage=coverage[path];return cov_b5tu1uyjg=function(){return actualCoverage},actualCoverage}function useReducerWithThunk(reducer,initialState){cov_b5tu1uyjg().f[1]++;const _state=(cov_b5tu1uyjg().s[1]++,(0,react.useRef)()),[state,dispatch]=(cov_b5tu1uyjg().s[2]++,(0,react.useReducer)(reducer,initialState));cov_b5tu1uyjg().s[3]++,(0,react.useEffect)((()=>{cov_b5tu1uyjg().f[2]++,cov_b5tu1uyjg().s[4]++,_state.current=state}),[state]);const getState=(cov_b5tu1uyjg().s[5]++,(0,react.useCallback)((()=>(cov_b5tu1uyjg().f[3]++,cov_b5tu1uyjg().s[6]++,_state.current)),[])),customDispatch=(cov_b5tu1uyjg().s[7]++,(0,react.useCallback)((action=>(cov_b5tu1uyjg().f[4]++,cov_b5tu1uyjg().s[8]++,function isThunkAction(action){return cov_b5tu1uyjg().f[0]++,cov_b5tu1uyjg().s[0]++,"function"==typeof action}(action)?(cov_b5tu1uyjg().b[0][0]++,action(customDispatch,getState)):(cov_b5tu1uyjg().b[0][1]++,dispatch(action)))),[]));return cov_b5tu1uyjg().s[9]++,[state,customDispatch]}function cov_2c2a4fp023(){var path="/home/runner/work/nk-windows/nk-windows/src/store/index.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"0d1001e1c64b40177cb3143913c791bde2be158a"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/store/index.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/store/index.ts"],mappings:"AAAA,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,oBAAoB",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d1001e1c64b40177cb3143913c791bde2be158a"});var actualCoverage=coverage[path];return cov_2c2a4fp023=function(){return actualCoverage},actualCoverage}cov_b5tu1uyjg(),cov_2c2a4fp023()},"./src/types.ts":()=>{function cov_1tsudw29za(){var path="/home/runner/work/nk-windows/nk-windows/src/types.ts",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"c9a3c116afb7ac0cb3345e88ff65add46d176419"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/types.ts",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},inputSourceMap:{version:3,names:[],sources:["/home/runner/work/nk-windows/nk-windows/src/types.ts"],mappings:"",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c9a3c116afb7ac0cb3345e88ff65add46d176419"});var actualCoverage=coverage[path];return cov_1tsudw29za=function(){return actualCoverage},actualCoverage}cov_1tsudw29za()},"./src/demo.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Defult:()=>Defult,__namedExportsOrder:()=>__namedExportsOrder,default:()=>demo_stories});var react=__webpack_require__("./node_modules/react/index.js"),loadable_esm=__webpack_require__("./node_modules/@loadable/component/dist/esm/loadable.esm.mjs"),dist=__webpack_require__("./node_modules/react-inspector/dist/index.mjs"),hooks=__webpack_require__("./src/hooks/index.ts"),src=__webpack_require__("./src/index.ts"),DemoWindowKind=__webpack_require__("./src/demo/DemoWindowKind.tsx");function cov_1jlk2eue2m(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"1b5ba21ccb83b1f79c58cc7bcf633f610469a91d"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx",statementMap:{0:{start:{line:7,column:6},end:{line:7,column:10}},1:{start:{line:12,column:6},end:{line:12,column:33}},2:{start:{line:13,column:18},end:{line:63,column:9}},3:{start:{line:13,column:32},end:{line:63,column:4}},4:{start:{line:64,column:2},end:{line:86,column:7}},5:{start:{line:64,column:98},end:{line:73,column:41}},6:{start:{line:67,column:19},end:{line:67,column:30}},7:{start:{line:77,column:19},end:{line:77,column:29}},8:{start:{line:83,column:19},end:{line:83,column:26}}},fnMap:{0:{name:"DebugButtons",decl:{start:{line:4,column:16},end:{line:4,column:28}},loc:{start:{line:4,column:35},end:{line:87,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:13,column:26},end:{line:13,column:27}},loc:{start:{line:13,column:32},end:{line:63,column:4}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:64,column:67},end:{line:64,column:68}},loc:{start:{line:64,column:98},end:{line:73,column:41}},line:64},3:{name:"(anonymous_3)",decl:{start:{line:67,column:13},end:{line:67,column:14}},loc:{start:{line:67,column:19},end:{line:67,column:30}},line:67},4:{name:"(anonymous_4)",decl:{start:{line:77,column:13},end:{line:77,column:14}},loc:{start:{line:77,column:19},end:{line:77,column:29}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:83,column:13},end:{line:83,column:14}},loc:{start:{line:83,column:19},end:{line:83,column:26}},line:83}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{},inputSourceMap:{version:3,names:["React","useMemo","useWindowManager","DemoWindowKind","DebugButtons","_ref","currentId","open","close","closeAll","buttons","undefined","title","kind","danger","isMaximized","isResizable","isModal","lazy","layoutData","width","height","top","left","right","bottom","id","parent","createElement","map","props","index","key","onClick","style","fontWeight","color","margin","JSON","stringify","disabled","type"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/DebugButtons.tsx"],mappings:"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,gBAAgB,QAAQ,UAAU;AAE3C,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,OAAO,SAASC,YAAYA,CAAAC,IAAA,EAAuD;EAAA,IAAtD;IAAEC;EAAoC,CAAC,GAAAD,IAAA;EAClE,MAAM;IAAEE,IAAI;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGP,gBAAgB,CAA0BI,SAAS,CAAC;EAEtF,MAAMI,OAA8B,GAAGT,OAAO,CAC5C,MAAM,CACJU,SAAS,EACT;IAAEC,KAAK,EAAE;EAAa,CAAC,EACvB;IAAEA,KAAK,EAAE,QAAQ;IAAEC,IAAI,EAAEV,cAAc,CAACW;EAAO,CAAC,EAChD;IAAEF,KAAK,EAAE,mBAAmB;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEC,WAAW,EAAE;EAAK,CAAC,EAC9E;IAAEH,KAAK,EAAE,kCAAkC;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEC,WAAW,EAAE,IAAI;IAAEC,WAAW,EAAE;EAAM,CAAC,EACjH;IAAEJ,KAAK,EAAE,uBAAuB;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEE,WAAW,EAAE;EAAM,CAAC,EACnF;IAAEJ,KAAK,EAAE,WAAW;IAAEK,OAAO,EAAE;EAAM,CAAC,EACtC;IAAEL,KAAK,EAAE,qBAAqB;IAAEC,IAAI,EAAEV,cAAc,CAACe;EAAK,CAAC,EAC3D;IAAEN,KAAK,EAAE,cAAc;IAAEC,IAAI,EAAEV,cAAc,CAACe,IAAI;IAAEC,UAAU,EAAE;MAAEC,KAAK,EAAE,GAAG;MAAEC,MAAM,EAAE;IAAI;EAAE,CAAC,EAC7F;IAAET,KAAK,EAAE,+BAA+B;IAAEC,IAAI,EAAEV,cAAc,CAACW,MAAM;IAAEK,UAAU,EAAE;MAAEC,KAAK,EAAE,IAAI;MAAEC,MAAM,EAAE;IAAK;EAAE,CAAC,EAClH;IAAET,KAAK,EAAG,kBAAiB;IAAEO,UAAU,EAAE;MAAEG,GAAG,EAAE,EAAE;MAAEC,IAAI,EAAE,GAAG;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAI;EAAE,CAAC,EACzF;IAAEb,KAAK,EAAG,UAAS;IAAEc,EAAE,EAAE,OAAO;IAAEC,MAAM,EAAE;EAAK,CAAC,CACjD,EACD,EACF,CAAC;EAED,oBACE3B,KAAA,CAAA4B,aAAA,cACGlB,OAAO,CAACmB,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,kBACxB/B,KAAA,CAAA4B,aAAA;IAAMI,GAAG,EAAED;EAAM,gBACf/B,KAAA,CAAA4B,aAAA;IAAQK,OAAO,EAAEA,CAAA,KAAM1B,IAAI,CAACuB,KAAK,CAAE;IAACI,KAAK,EAAE;MAAEC,UAAU,EAAE,MAAM;MAAEC,KAAK,EAAE,OAAO;MAAEC,MAAM,EAAE;IAAO;EAAE,GAAC,MAC7F,EAACC,IAAI,CAACC,SAAS,CAACT,KAAK,CAAC,EAAC,GACrB,CACJ,CACP,CAAC,eACF9B,KAAA,CAAA4B,aAAA;IAAQM,KAAK,EAAE;MAAEG,MAAM,EAAE;IAAO,CAAE;IAACJ,OAAO,EAAEA,CAAA,KAAMxB,QAAQ,CAAC;EAAE,GAAC,WAEtD,CAAC,eACTT,KAAA,CAAA4B,aAAA;IAAQM,KAAK,EAAE;MAAEG,MAAM,EAAE;IAAO,CAAE;IAACG,QAAQ,EAAE,CAAClC,SAAU;IAAC2B,OAAO,EAAEA,CAAA,KAAMzB,KAAK,CAAC;EAAE,GAAC,OAEzE,CAAC,eACTR,KAAA,CAAA4B,aAAA,2BACE5B,KAAA,CAAA4B,aAAA,YAAG,kCAAmC,CAAC,eACvC5B,KAAA,CAAA4B,aAAA;IAAOa,IAAI,EAAC;EAAM,CAAE,CACjB,CACF,CAAC;AAEV",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b5ba21ccb83b1f79c58cc7bcf633f610469a91d"});var actualCoverage=coverage[path];return cov_1jlk2eue2m=function(){return actualCoverage},actualCoverage}function DebugButtons(_ref){cov_1jlk2eue2m().f[0]++;let{currentId}=(cov_1jlk2eue2m().s[0]++,_ref);const{open,close,closeAll}=(cov_1jlk2eue2m().s[1]++,(0,hooks.HM)(currentId)),buttons=(cov_1jlk2eue2m().s[2]++,(0,react.useMemo)((()=>(cov_1jlk2eue2m().f[1]++,cov_1jlk2eue2m().s[3]++,[void 0,{title:"with title"},{title:"danger",kind:DemoWindowKind.G.danger},{title:"danger, maximized",kind:DemoWindowKind.G.danger,isMaximized:!0},{title:"danger, maximized, non-resizable",kind:DemoWindowKind.G.danger,isMaximized:!0,isResizable:!1},{title:"danger, non-resizable",kind:DemoWindowKind.G.danger,isResizable:!1},{title:"not modal",isModal:!1},{title:"lazy loaded content",kind:DemoWindowKind.G.lazy},{title:"initial size",kind:DemoWindowKind.G.lazy,layoutData:{width:700,height:700}},{title:"minimal size (overflow fixed)",kind:DemoWindowKind.G.danger,layoutData:{width:7e3,height:7e3}},{title:"initial position",layoutData:{top:50,left:200,right:50,bottom:200}},{title:"fixed id",id:"fixed",parent:null}])),[]));return cov_1jlk2eue2m().s[4]++,react.createElement("div",null,buttons.map(((props,index)=>(cov_1jlk2eue2m().f[2]++,cov_1jlk2eue2m().s[5]++,react.createElement("span",{key:index},react.createElement("button",{onClick:()=>(cov_1jlk2eue2m().f[3]++,cov_1jlk2eue2m().s[6]++,open(props)),style:{fontWeight:"bold",color:"black",margin:".5em"}},"add(",JSON.stringify(props),")"))))),react.createElement("button",{style:{margin:".5em"},onClick:()=>(cov_1jlk2eue2m().f[4]++,cov_1jlk2eue2m().s[7]++,closeAll())},"close all"),react.createElement("button",{style:{margin:".5em"},disabled:!currentId,onClick:()=>(cov_1jlk2eue2m().f[5]++,cov_1jlk2eue2m().s[8]++,close())},"close"),react.createElement("div",null,react.createElement("p",null,"test focus and onscreen keyboard"),react.createElement("input",{type:"text"})))}cov_1jlk2eue2m();try{DebugButtons.displayName="DebugButtons",DebugButtons.__docgenInfo={description:"",displayName:"DebugButtons",props:{currentId:{defaultValue:null,description:"",name:"currentId",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/DebugButtons.tsx#DebugButtons"]={docgenInfo:DebugButtons.__docgenInfo,name:"DebugButtons",path:"src/demo/DebugButtons.tsx#DebugButtons"})}catch(__react_docgen_typescript_loader_error){}var demoDefaultContent=__webpack_require__("./src/demo/demoDefaultContent.tsx"),emotion_css_esm=__webpack_require__("./node_modules/@emotion/css/dist/emotion-css.esm.js"),OverflowContext=__webpack_require__("./src/components/window/content/OverflowContext.tsx");function cov_2miyy1dhqg(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"ede8392e8a4b0b5e3c125274734a33c0e00395b6"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx",statementMap:{0:{start:{line:4,column:29},end:{line:41,column:1}},1:{start:{line:5,column:26},end:{line:5,column:38}},2:{start:{line:9,column:6},end:{line:9,column:19}},3:{start:{line:10,column:21},end:{line:13,column:4}},4:{start:{line:14,column:21},end:{line:19,column:4}},5:{start:{line:20,column:2},end:{line:40,column:10}},6:{start:{line:30,column:19},end:{line:30,column:47}},7:{start:{line:30,column:32},end:{line:30,column:46}},8:{start:{line:33,column:19},end:{line:33,column:30}},9:{start:{line:34,column:42},end:{line:40,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:29},end:{line:4,column:30}},loc:{start:{line:4,column:35},end:{line:41,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:30,column:13},end:{line:30,column:14}},loc:{start:{line:30,column:19},end:{line:30,column:47}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:30,column:27},end:{line:30,column:28}},loc:{start:{line:30,column:32},end:{line:30,column:46}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:33,column:13},end:{line:33,column:14}},loc:{start:{line:33,column:19},end:{line:33,column:30}},line:33},4:{name:"(anonymous_4)",decl:{start:{line:34,column:24},end:{line:34,column:25}},loc:{start:{line:34,column:42},end:{line:40,column:7}},line:34}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0},b:{},inputSourceMap:{version:3,names:["css","cx","React","useState","useOverflow","OverflowDebug","data","setData","scrollToBottom","scrollToTop","className1","margin","filter","className2","position","top","bottom","fontWeight","createElement","Fragment","className","disabled","onClick","s","map","e","fontSize","key"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/overflowDebug.tsx"],mappings:"AAAA,SAASA,GAAG,EAAEC,EAAE,QAAQ,cAAc;AACtC,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,WAAW,QAAQ,8CAA8C;AAE1E,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGJ,QAAQ,CAAC,EAAE,CAAC;EACpC,MAAM;IAAEK,cAAc;IAAEC;EAAY,CAAC,GAAGL,WAAW,CAAC,CAAC;EAErD,MAAMM,UAAU,GAAGV,GAAG,CAAC;IAAEW,MAAM,EAAE,MAAM;IAAEC,MAAM,EAAE;EAAY,CAAC,CAAC;EAC/D,MAAMC,UAAU,GAAGb,GAAG,CAAC;IAAEc,QAAQ,EAAE,QAAQ;IAAEC,GAAG,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAO,CAAC,CAAC;EACvF,oBACEf,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,qBACEjB,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,EAAEG,UAAU,CAAE;IAACQ,QAAQ,EAAE,CAACZ,WAAY;IAACa,OAAO,EAAEb;EAAY,GAAC,eAErF,CAAC,eACTP,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,EAAEG,UAAU,CAAE;IAACQ,QAAQ,EAAE,CAACb,cAAe;IAACc,OAAO,EAAEd;EAAe,GAAC,kBAE3F,CAAC,eACTN,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,CAAE;IAACY,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAEgB,CAAC,IAAK,CAAC,GAAGA,CAAC,EAAE,MAAM,CAAC;EAAE,GAAC,UAE1E,CAAC,eACTrB,KAAA,CAAAgB,aAAA;IAAQE,SAAS,EAAEnB,EAAE,CAACS,UAAU,CAAE;IAACY,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAC,EAAE;EAAE,GAAC,OAEvD,CAAC,EAERD,IAAI,CAACkB,GAAG,CAAEC,CAAC,iBACVvB,KAAA,CAAAgB,aAAA;IAAKE,SAAS,EAAEpB,GAAG,CAAC;MAAE0B,QAAQ,EAAE,KAAK;MAAEf,MAAM,EAAE;IAAM,CAAC,CAAE;IAACgB,GAAG,EAAEF;EAAE,GAC7DA,CACE,CACN,CACD,CAAC;AAEP,CAAC",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ede8392e8a4b0b5e3c125274734a33c0e00395b6"});var actualCoverage=coverage[path];return cov_2miyy1dhqg=function(){return actualCoverage},actualCoverage}cov_2miyy1dhqg(),cov_2miyy1dhqg().s[0]++;const OverflowDebug=()=>{cov_2miyy1dhqg().f[0]++;const[data,setData]=(cov_2miyy1dhqg().s[1]++,(0,react.useState)([])),{scrollToBottom,scrollToTop}=(cov_2miyy1dhqg().s[2]++,(0,OverflowContext.s)()),className1=(cov_2miyy1dhqg().s[3]++,(0,emotion_css_esm.AH)({margin:".5em",filter:"invert(1)"})),className2=(cov_2miyy1dhqg().s[4]++,(0,emotion_css_esm.AH)({position:"sticky",top:10,bottom:10,fontWeight:"bold"}));return cov_2miyy1dhqg().s[5]++,react.createElement(react.Fragment,null,react.createElement("button",{className:(0,emotion_css_esm.cx)(className1,className2),disabled:!scrollToTop,onClick:scrollToTop},"scroll to top"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1,className2),disabled:!scrollToBottom,onClick:scrollToBottom},"scroll to bottom"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1),onClick:()=>(cov_2miyy1dhqg().f[1]++,cov_2miyy1dhqg().s[6]++,setData((s=>(cov_2miyy1dhqg().f[2]++,cov_2miyy1dhqg().s[7]++,[...s,"line"]))))},"add line"),react.createElement("button",{className:(0,emotion_css_esm.cx)(className1),onClick:()=>(cov_2miyy1dhqg().f[3]++,cov_2miyy1dhqg().s[8]++,setData([]))},"clear"),data.map((e=>(cov_2miyy1dhqg().f[4]++,cov_2miyy1dhqg().s[9]++,react.createElement("div",{className:(0,emotion_css_esm.AH)({fontSize:"3em",margin:"1em"}),key:e},e)))))};function cov_1b4zt2qgpf(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx",statementMap:{0:{start:{line:1,column:22},end:{line:1,column:297}},1:{start:{line:1,column:92},end:{line:1,column:279}},2:{start:{line:1,column:105},end:{line:1,column:106}},3:{start:{line:1,column:150},end:{line:1,column:162}},4:{start:{line:1,column:164},end:{line:1,column:277}},5:{start:{line:1,column:190},end:{line:1,column:275}},6:{start:{line:1,column:247},end:{line:1,column:273}},7:{start:{line:1,column:280},end:{line:1,column:294}},8:{start:{line:1,column:298},end:{line:1,column:337}},9:{start:{line:10,column:14},end:{line:10,column:32}},10:{start:{line:11,column:12},end:{line:11,column:29}},11:{start:{line:12,column:2},end:{line:38,column:61}},12:{start:{line:15,column:20},end:{line:15,column:31}},13:{start:{line:19,column:8},end:{line:21,column:11}},14:{start:{line:20,column:10},end:{line:20,column:36}},15:{start:{line:22,column:8},end:{line:22,column:20}},16:{start:{line:27,column:8},end:{line:29,column:11}},17:{start:{line:28,column:10},end:{line:28,column:35}},18:{start:{line:30,column:8},end:{line:30,column:20}}},fnMap:{0:{name:"_extends",decl:{start:{line:1,column:9},end:{line:1,column:17}},loc:{start:{line:1,column:20},end:{line:1,column:339}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:72},end:{line:1,column:73}},loc:{start:{line:1,column:90},end:{line:1,column:296}},line:1},2:{name:"DemoContent",decl:{start:{line:9,column:9},end:{line:9,column:20}},loc:{start:{line:9,column:23},end:{line:39,column:1}},line:9},3:{name:"(anonymous_3)",decl:{start:{line:15,column:14},end:{line:15,column:15}},loc:{start:{line:15,column:20},end:{line:15,column:31}},line:15},4:{name:"(anonymous_4)",decl:{start:{line:18,column:14},end:{line:18,column:15}},loc:{start:{line:18,column:26},end:{line:23,column:7}},line:18},5:{name:"(anonymous_5)",decl:{start:{line:19,column:26},end:{line:19,column:27}},loc:{start:{line:19,column:47},end:{line:21,column:9}},line:19},6:{name:"(anonymous_6)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:26},end:{line:31,column:7}},line:26},7:{name:"(anonymous_7)",decl:{start:{line:27,column:26},end:{line:27,column:27}},loc:{start:{line:27,column:47},end:{line:29,column:9}},line:27}},branchMap:{0:{loc:{start:{line:1,column:33},end:{line:1,column:296}},type:"cond-expr",locations:[{start:{line:1,column:49},end:{line:1,column:69}},{start:{line:1,column:72},end:{line:1,column:296}}],line:1},1:{loc:{start:{line:1,column:190},end:{line:1,column:275}},type:"if",locations:[{start:{line:1,column:190},end:{line:1,column:275}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,names:["React","ObjectInspector","useViewportSize","useWindowContext","DebugButtons","DemoDefaultContent","OverflowDebug","DemoContent","ctx","v","createElement","_extends","buttons","title","action","close","Promise","resolve","reject","setTimeout","expandLevel","data","currentId","id"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/demoContent.tsx"],mappings:";AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,eAAe,QAAQ,UAAU;AAC1C,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,aAAa,QAAQ,iBAAiB;AAE/C,SAASC,WAAWA,CAAA,EAAG;EACrB,MAAMC,GAAG,GAAGL,gBAAgB,CAAC,CAAC;EAC9B,MAAMM,CAAC,GAAGP,eAAe,CAAC,CAAC;EAC3B,oBACEF,KAAA,CAAAU,aAAA,CAACL,kBAAkB,EAAAM,QAAA,KACbH,GAAG;IACPI,OAAO,EAAE,CACP;MAAEC,KAAK,EAAE,QAAQ;MAAEC,MAAM,EAAEA,CAAA,KAAMN,GAAG,CAACO,KAAK,CAAC;IAAE,CAAC,EAC9C;MACEF,KAAK,EAAE,SAAS;MAChBC,MAAM,EAAE,MAAAA,CAAA,KAAY;QAClB,MAAM,IAAIE,OAAO,CAAC,CAACC,OAAO,EAAEC,MAAM,KAAK;UACrCC,UAAU,CAACF,OAAO,EAAE,IAAI,CAAC;QAC3B,CAAC,CAAC;QACFT,GAAG,CAACO,KAAK,CAAC,CAAC;MACb;IACF,CAAC,EACD;MACEF,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAAA,CAAA,KAAY;QAClB,MAAM,IAAIE,OAAO,CAAC,CAACC,OAAO,EAAEC,MAAM,KAAK;UACrCC,UAAU,CAACD,MAAM,EAAE,IAAI,CAAC;QAC1B,CAAC,CAAC;QACFV,GAAG,CAACO,KAAK,CAAC,CAAC;MACb;IACF,CAAC;EACD,iBAEFf,KAAA,CAAAU,aAAA,CAACT,eAAe;IAACmB,WAAW,EAAE,CAAE;IAACC,IAAI,EAAEb,GAAG,CAACa;EAAK,CAAE,CAAC,eACnDrB,KAAA,CAAAU,aAAA,CAACN,YAAY;IAACkB,SAAS,EAAEd,GAAG,CAACa,IAAI,CAACE;EAAG,CAAE,CAAC,eACxCvB,KAAA,CAAAU,aAAA,CAACJ,aAAa,MAAE,CACE,CAAC;AAEzB;AAEA,eAAeC,WAAW",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"962af1ad2f57559bcb2c2008e3f6510ed2f29ca6"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"962af1ad2f57559bcb2c2008e3f6510ed2f29ca6"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_1b4zt2qgpf=function(){return actualCoverage},actualCoverage}function _extends(){return cov_1b4zt2qgpf().f[0]++,cov_1b4zt2qgpf().s[0]++,_extends=Object.assign?(cov_1b4zt2qgpf().b[0][0]++,Object.assign.bind()):(cov_1b4zt2qgpf().b[0][1]++,function(target){cov_1b4zt2qgpf().f[1]++,cov_1b4zt2qgpf().s[1]++;for(var i=(cov_1b4zt2qgpf().s[2]++,1);i(cov_1b4zt2qgpf().f[3]++,cov_1b4zt2qgpf().s[12]++,ctx.close())},{title:"Success",action:async()=>{cov_1b4zt2qgpf().f[4]++,cov_1b4zt2qgpf().s[13]++,await new Promise(((resolve,reject)=>{cov_1b4zt2qgpf().f[5]++,cov_1b4zt2qgpf().s[14]++,setTimeout(resolve,2e3)})),cov_1b4zt2qgpf().s[15]++,ctx.close()}},{title:"Fail",action:async()=>{cov_1b4zt2qgpf().f[6]++,cov_1b4zt2qgpf().s[16]++,await new Promise(((resolve,reject)=>{cov_1b4zt2qgpf().f[7]++,cov_1b4zt2qgpf().s[17]++,setTimeout(reject,2e3)})),cov_1b4zt2qgpf().s[18]++,ctx.close()}}]}),react.createElement(dist.RT,{expandLevel:1,data:ctx.data}),react.createElement(DebugButtons,{currentId:ctx.data.id}),react.createElement(OverflowDebug,null))};function cov_19tlxd5f24(){var path="/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx",global=new Function("return this")(),gcv="__coverage__",coverage=global[gcv]||(global[gcv]={});coverage[path]&&"775f97c4decdbaa3649501952577eab8e788493e"===coverage[path].hash||(coverage[path]={path:"/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx",statementMap:{0:{start:{line:5,column:24},end:{line:10,column:2}},1:{start:{line:6,column:2},end:{line:6,column:58}},2:{start:{line:6,column:31},end:{line:6,column:56}},3:{start:{line:7,column:2},end:{line:7,column:37}},4:{start:{line:12,column:2},end:{line:17,column:3}},5:{start:{line:14,column:6},end:{line:14,column:70}},6:{start:{line:16,column:6},end:{line:16,column:65}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:33},end:{line:5,column:34}},loc:{start:{line:5,column:45},end:{line:8,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:6,column:20},end:{line:6,column:21}},loc:{start:{line:6,column:31},end:{line:6,column:56}},line:6},2:{name:"ContentGetter",decl:{start:{line:11,column:16},end:{line:11,column:29}},loc:{start:{line:11,column:37},end:{line:18,column:1}},line:11}},branchMap:{0:{loc:{start:{line:12,column:2},end:{line:17,column:3}},type:"switch",locations:[{start:{line:13,column:4},end:{line:14,column:70}},{start:{line:15,column:4},end:{line:16,column:65}}],line:12}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["loadable","React","DemoContent","DemoWindowKind","LazyDemoContent","Promise","resolve","setTimeout","fallback","createElement","ContentGetter","props","data","kind","lazy"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo/contentGetter.tsx"],mappings:"AAAA,OAAOA,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,eAAe,GAAGJ,QAAQ,CAC9B,YAAY;EACV,MAAM,IAAIK,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,OAAO,EAAE,IAAI,CAAC,CAAC;EACzD,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACpC,CAAC,EACD;EAAEE,QAAQ,eAAEP,KAAA,CAAAQ,aAAA,aAAI,YAAc;AAAE,CAClC,CAAC;AAED,OAAO,SAASC,aAAaA,CAACC,KAA2C,EAAE;EACzE,QAAQA,KAAK,CAACC,IAAI,CAACC,IAAI;IACrB,KAAKV,cAAc,CAACW,IAAI;MACtB,oBAAOb,KAAA,CAAAQ,aAAA,CAACL,eAAe,EAAKO,KAAQ,CAAC;IACvC;MACE,oBAAOV,KAAA,CAAAQ,aAAA,CAACP,WAAW,MAAE,CAAC;EAC1B;AACF",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"775f97c4decdbaa3649501952577eab8e788493e"});var actualCoverage=coverage[path];return cov_19tlxd5f24=function(){return actualCoverage},actualCoverage}cov_19tlxd5f24();const LazyDemoContent=(cov_19tlxd5f24().s[0]++,(0,loadable_esm.Ay)((async()=>(cov_19tlxd5f24().f[0]++,cov_19tlxd5f24().s[1]++,await new Promise((resolve=>(cov_19tlxd5f24().f[1]++,cov_19tlxd5f24().s[2]++,setTimeout(resolve,2e3)))),cov_19tlxd5f24().s[3]++,__webpack_require__.e(150).then(__webpack_require__.bind(__webpack_require__,"./src/demo/lazyDemoContent.tsx")))),{fallback:react.createElement("h1",null,"loading...")}));function ContentGetter(props){return cov_19tlxd5f24().f[2]++,cov_19tlxd5f24().s[4]++,props.data.kind===DemoWindowKind.G.lazy?(cov_19tlxd5f24().b[0][0]++,cov_19tlxd5f24().s[5]++,react.createElement(LazyDemoContent,props)):(cov_19tlxd5f24().b[0][1]++,cov_19tlxd5f24().s[6]++,react.createElement(demoContent,null))}try{ContentGetter.displayName="ContentGetter",ContentGetter.__docgenInfo={description:"",displayName:"ContentGetter",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},backgroundDrag:{defaultValue:null,description:"",name:"backgroundDrag",required:!1,type:{name:"boolean"}},classnames:{defaultValue:null,description:"",name:"classnames",required:!1,type:{name:"ContentClasses"}},components:{defaultValue:null,description:"",name:"components",required:!1,type:{name:'Partial'}},data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"WindowType"}},close:{defaultValue:null,description:"",name:"close",required:!1,type:{name:"() => void"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!1,type:{name:"(value?: boolean) => void"}},isMaximized:{defaultValue:null,description:"",name:"isMaximized",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo/contentGetter.tsx#ContentGetter"]={docgenInfo:ContentGetter.__docgenInfo,name:"ContentGetter",path:"src/demo/contentGetter.tsx#ContentGetter"})}catch(__react_docgen_typescript_loader_error){}function cov_wk09i0h2z(){var path="/home/runner/work/nk-windows/nk-windows/src/demo.tsx",global=new Function("return this")(),gcv="__coverage__",coverageData={path:"/home/runner/work/nk-windows/nk-windows/src/demo.tsx",statementMap:{0:{start:{line:5,column:15},end:{line:19,column:1}},1:{start:{line:6,column:2},end:{line:6,column:37}},2:{start:{line:6,column:25},end:{line:6,column:37}},3:{start:{line:13,column:6},end:{line:13,column:32}},4:{start:{line:14,column:2},end:{line:18,column:117}},5:{start:{line:20,column:13},end:{line:29,column:1}},6:{start:{line:21,column:2},end:{line:28,column:107}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:15},end:{line:5,column:16}},loc:{start:{line:5,column:21},end:{line:19,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:20,column:13},end:{line:20,column:14}},loc:{start:{line:20,column:19},end:{line:29,column:1}},line:20}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:6,column:37}},type:"if",locations:[{start:{line:6,column:2},end:{line:6,column:37}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,names:["React","ContentGetter","DebugButtons","WindowManagerProvider","Header","window","name","version","require","createElement","style","fontFamily","Demo","contentGetter","theme","colors","focusColor"],sources:["/home/runner/work/nk-windows/nk-windows/src/demo.tsx"],mappings:"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,YAAY,QAAQ,qBAAqB;AAElD,SAASC,qBAAqB,QAAQ,SAAS;AAE/C,MAAMC,MAAgB,GAAGA,CAAA,KAAM;EAC7B,IAAIC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,IAAI;;EAElC;EACA;EACA,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGC,OAAO,CAAC,iBAAiB,CAAC;EAEpD,oBACER,KAAA,CAAAS,aAAA;IAAQC,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAY;EAAE,gBACzCX,KAAA,CAAAS,aAAA,aAAKH,IAAS,CAAC,eACfN,KAAA,CAAAS,aAAA,aAAI,GAAC,EAACF,OAAY,CACZ,CAAC;AAEb,CAAC;AAED,MAAMK,IAAc,GAAGA,CAAA,KAAM;EAC3B,oBACEZ,KAAA,CAAAS,aAAA,CAACN,qBAAqB;IACpBU,aAAa,EAAEZ,aAAc;IAC7Ba,KAAK,EAAE;MACLC,MAAM,EAAE;QACNC,UAAU,EAAE;MACd;IACF;EAAE,gBAEFhB,KAAA,CAAAS,aAAA,CAACL,MAAM,MAAE,CAAC,eACVJ,KAAA,CAAAS,aAAA,CAACP,YAAY,MAAE,CACM,CAAC;AAE5B,CAAC;AAED,eAAeU,IAAI",ignoreList:[]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"59f3b06a2e68942e4dedcf55ca42019eb1e5ebc8"},coverage=global[gcv]||(global[gcv]={});coverage[path]&&"59f3b06a2e68942e4dedcf55ca42019eb1e5ebc8"===coverage[path].hash||(coverage[path]=coverageData);var actualCoverage=coverage[path];return cov_wk09i0h2z=function(){return actualCoverage},actualCoverage}cov_wk09i0h2z(),cov_wk09i0h2z().s[0]++;const Header=()=>{if(cov_wk09i0h2z().f[0]++,cov_wk09i0h2z().s[1]++,window.Cypress)return cov_wk09i0h2z().b[0][0]++,cov_wk09i0h2z().s[2]++,null;cov_wk09i0h2z().b[0][1]++;const{name,version}=(cov_wk09i0h2z().s[3]++,__webpack_require__("./package.json"));return cov_wk09i0h2z().s[4]++,react.createElement("header",{style:{fontFamily:"monospace"}},react.createElement("h1",null,name),react.createElement("h2",null,"v",version))};cov_wk09i0h2z().s[5]++;const src_demo=()=>(cov_wk09i0h2z().f[1]++,cov_wk09i0h2z().s[6]++,react.createElement(src.ty,{contentGetter:ContentGetter,theme:{colors:{focusColor:"#FF0000"}}},react.createElement(Header,null),react.createElement(DebugButtons,null)));try{demo.displayName="demo",demo.__docgenInfo={description:"",displayName:"demo",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/demo.tsx#demo"]={docgenInfo:demo.__docgenInfo,name:"demo",path:"src/demo.tsx#demo"})}catch(__react_docgen_typescript_loader_error){}const demo_stories={title:"Demo",component:src_demo},Defult={};Defult.parameters={...Defult.parameters,docs:{...Defult.parameters?.docs,source:{originalSource:"{}",...Defult.parameters?.docs?.source}}};const __namedExportsOrder=["Defult"]},"./package.json":module=>{"use strict";module.exports=JSON.parse('{"name":"@touk/window-manager","version":"1.9.1","types":"./cjs/index.d.ts","main":"./cjs/index.js","module":"./esm/index.js","files":["cjs","esm","!**/*.{spec,stories}.d.ts","README.md","CHANGELOG.md"],"author":"Julian Wielga","license":"MIT","scripts":{"prebuild":"rimraf cjs/* esm/* storybook-static","postinstall":"patch-package","start":"npm run storybook","build":"rollup -c","build:watch":"npm run build -- --watch","test":"npm run coverage","storybook":"storybook dev -p 6006","build-storybook":"storybook build","deploy-storybook":"storybook-to-ghpages","lint":"eslint \'src/**/*.{js,ts,tsx}\' --quiet --fix","test:jest":"jest","test:cypress:dev":"cypress open","test:cypress":"cypress run","test:cypress:update":"CYPRESS_SNAPSHOT_UPDATE=true cypress run","test:cypress:ci":"start-server-and-test start:ci http-get://localhost:6006 test:cypress","test:cypress:ci:update":"start-server-and-test start:ci http-get://localhost:6006 test:cypress:update","test:cypress:linux":"docker run --add-host=host.docker.internal:host-gateway -it -v $PWD:/app -w /app cypress/included:8.3.1 --config baseUrl=http://host.docker.internal:6006","coverage:clear":"rimraf coverage .nyc_output","coverage:init":"jest --watchAll=false --coverage --coverageDirectory=.nyc_output --roots=\\"\\" --testRegex=\\"fake.test.js\\" --coverageReporters=json && mv .nyc_output/coverage-final.json .nyc_output/out.json","coverage:cypress":"npm run test:cypress:ci","coverage:jest":"npm run test:jest","coverage":"npm run coverage:clear && npm run coverage:init && npm run coverage:cypress && npm run coverage:jest","#coverage:merge":"istanbul-merge --out coverage/merged/coverage-final.json ./coverage/jest/coverage-final.json ./coverage/cypress/coverage-final.json","#coverage:merge-report":"nyc report --reporter=lcov --reporter=text --temp-dir=./coverage/merged --report-dir=./coverage/merged","#postcoverage":"npm run coverage:merge && npm run coverage:merge-report","start:ci":"npm run start -- -- --ci","semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/touk/nk-windows.git"},"devDependencies":{"@babel/core":"7.24.5","@babel/preset-env":"7.24.5","@babel/preset-react":"7.24.1","@babel/preset-typescript":"7.24.1","@cypress/browserify-preprocessor":"3.0.2","@cypress/code-coverage":"3.12.39","@frsource/cypress-plugin-visual-regression-diff":"3.3.10","@loadable/component":"5.16.4","@rollup/plugin-commonjs":"25.0.7","@rollup/plugin-node-resolve":"15.2.3","@rollup/plugin-terser":"0.4.4","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"12.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"10.0.3","@semantic-release/npm":"12.0.1","@semantic-release/release-notes-generator":"13.0.0","@storybook/addon-coverage":"1.0.3","@storybook/addon-essentials":"^8.1.0","@storybook/addon-interactions":"^8.1.0","@storybook/addon-links":"^8.1.0","@storybook/addon-onboarding":"^8.1.0","@storybook/addon-webpack5-compiler-babel":"3.0.3","@storybook/addons":"7.6.17","@storybook/blocks":"^8.1.0","@storybook/react":"^8.1.0","@storybook/react-docgen-typescript-plugin":"1.0.1","@storybook/react-webpack5":"^8.1.0","@storybook/storybook-deployer":"2.8.16","@storybook/test":"8.1.1","@svgr/rollup":"8.1.0","@svgr/webpack":"8.1.0","@testing-library/jest-dom":"6.4.5","@testing-library/react":"15.0.7","@types/jest":"29.5.12","@types/lodash":"4.17.1","@types/node":"20.12.12","@types/react":"18.3.2","@types/react-transition-group":"4.4.10","@typescript-eslint/eslint-plugin":"7.9.0","@typescript-eslint/parser":"7.9.0","babel-loader":"9.1.3","babel-plugin-istanbul":"6.1.1","cypress":"13.9.0","eslint":"8.57.0","eslint-config-prettier":"9.1.0","eslint-plugin-jest":"28.5.0","eslint-plugin-prettier":"5.1.3","eslint-plugin-react":"7.34.1","eslint-plugin-react-hooks":"4.6.2","eslint-plugin-storybook":"0.8.0","istanbul-merge":"2.0.0","jest":"29.7.0","jest-environment-jsdom":"29.7.0","patch-package":"8.0.0","prettier":"3.2.5","react":"18.3.1","react-dom":"18.3.1","rimraf":"5.0.7","rollup":"4.17.2","rollup-plugin-node-externals":"7.1.2","rollup-plugin-typescript2":"0.36.0","semantic-release":"23.1.1","start-server-and-test":"2.0.3","storybook":"^8.1.0","ts-jest":"29.1.2","typescript":"5.4.5","ua-parser-js":"1.0.37","webpack":"5.91.0"},"dependencies":{"@emotion/css":"11.11.2","@emotion/react":"11.11.4","@juggle/resize-observer":"3.4.0","color-alpha":"2.0.0","lodash":"4.17.21","react-cool-dimensions":"3.0.1","react-focus-lock":"2.12.1","react-hotkeys-hook":"4.5.0","react-inspector":"6.0.2","react-rnd":"10.4.13","react-transition-group":"4.4.5","reselect":"5.1.0","rooks":"7.14.1"},"peerDependencies":{"react":"^17 || ^ 18","react-dom":"^17 || ^ 18"},"eslintConfig":{"extends":["plugin:storybook/recommended"]}}')}}]); \ No newline at end of file diff --git a/latest/iframe.html b/latest/iframe.html index 8ab5dcb6..2008acad 100644 --- a/latest/iframe.html +++ b/latest/iframe.html @@ -474,8 +474,8 @@ window['TAGS_OPTIONS'] = {"dev-only":{"excludeFromDocsStories":true},"docs-only":{"excludeFromSidebar":true},"test-only":{"excludeFromSidebar":true,"excludeFromDocsStories":true}}; \ No newline at end of file + import './main.1c228a32.iframe.bundle.js'; \ No newline at end of file diff --git a/latest/main.c62f5d6f.iframe.bundle.js b/latest/main.1c228a32.iframe.bundle.js similarity index 97% rename from latest/main.c62f5d6f.iframe.bundle.js rename to latest/main.1c228a32.iframe.bundle.js index 748c3227..6fd2e1ea 100644 --- a/latest/main.c62f5d6f.iframe.bundle.js +++ b/latest/main.1c228a32.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[792],{"./node_modules/@storybook/instrumenter/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/instrumenter/dist sync recursive",module.exports=webpackEmptyContext},"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels");const importers=[async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|mjs|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react-webpack5/node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react-webpack5/node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/dist/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-interactions/dist/preview.mjs"),__webpack_require__("./.storybook/preview.ts")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,parameters:()=>parameters});const parameters={controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}},__WEBPACK_DEFAULT_EXPORT__={parameters}},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":module=>{function webpackEmptyAsyncContext(req){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackEmptyAsyncContext},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./demo.stories":["./src/demo.stories.tsx",84,729,650],"./demo.stories.tsx":["./src/demo.stories.tsx",84,729,650]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"@storybook/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"@storybook/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"@storybook/core-events/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"@storybook/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"@storybook/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},__webpack_require__=>{__webpack_require__.O(0,[262],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file +(self.webpackChunk_touk_window_manager=self.webpackChunk_touk_window_manager||[]).push([[792],{"./node_modules/@storybook/instrumenter/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/instrumenter/dist sync recursive",module.exports=webpackEmptyContext},"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels");const importers=[async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|mjs|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react-webpack5/node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react-webpack5/node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/dist/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-interactions/dist/preview.mjs"),__webpack_require__("./.storybook/preview.ts")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,parameters:()=>parameters});const parameters={controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}},__WEBPACK_DEFAULT_EXPORT__={parameters}},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":module=>{function webpackEmptyAsyncContext(req){return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackEmptyAsyncContext},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./demo.stories":["./src/demo.stories.tsx",84,904,650],"./demo.stories.tsx":["./src/demo.stories.tsx",84,904,650]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"@storybook/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"@storybook/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"@storybook/core-events/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"@storybook/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"@storybook/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},__webpack_require__=>{__webpack_require__.O(0,[262],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file diff --git a/latest/project.json b/latest/project.json index 6c147d33..62e7c573 100644 --- a/latest/project.json +++ b/latest/project.json @@ -1 +1 @@ -{"generatedAt":1726484019510,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"npm","version":"10.7.0"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.3","storybookVersionSpecifier":"^8.1.0","language":"typescript","storybookPackages":{"@storybook/addons":{"version":"7.6.17"},"@storybook/blocks":{"version":"8.1.3"},"@storybook/react":{"version":"8.1.3"},"@storybook/react-docgen-typescript-plugin":{"version":"1.0.1"},"@storybook/react-webpack5":{"version":"8.1.1"},"@storybook/storybook-deployer":{"version":"2.8.16"},"@storybook/test":{"version":"8.1.1"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-coverage":{"version":"1.0.3"},"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-onboarding":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} +{"generatedAt":1733476805992,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"npm","version":"10.7.0"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.3","storybookVersionSpecifier":"^8.1.0","language":"typescript","storybookPackages":{"@storybook/addons":{"version":"7.6.17"},"@storybook/blocks":{"version":"8.1.3"},"@storybook/react":{"version":"8.1.3"},"@storybook/react-docgen-typescript-plugin":{"version":"1.0.1"},"@storybook/react-webpack5":{"version":"8.1.1"},"@storybook/storybook-deployer":{"version":"2.8.16"},"@storybook/test":{"version":"8.1.1"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-coverage":{"version":"1.0.3"},"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-onboarding":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} diff --git a/latest/runtime~main.0342d0df.iframe.bundle.js b/latest/runtime~main.fe4cfa5b.iframe.bundle.js similarity index 98% rename from latest/runtime~main.0342d0df.iframe.bundle.js rename to latest/runtime~main.fe4cfa5b.iframe.bundle.js index d144df49..b029c867 100644 --- a/latest/runtime~main.0342d0df.iframe.bundle.js +++ b/latest/runtime~main.fe4cfa5b.iframe.bundle.js @@ -1 +1 @@ -(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(650===chunkId?"demo-stories":chunkId)+"."+{9:"c975ac34",84:"90653c27",150:"9752d04c",400:"131dd914",433:"052e2c08",564:"cb46fc38",648:"d5e5e231",650:"677d45f1",660:"d832baea",729:"902542b6",903:"4096a6fa",912:"15125adb"}[chunkId]+".iframe.bundle.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(650===chunkId?"demo-stories":chunkId)+"."+{9:"c975ac34",84:"90653c27",150:"9752d04c",400:"131dd914",433:"052e2c08",564:"cb46fc38",648:"d5e5e231",650:"89e8cd10",660:"d832baea",903:"4096a6fa",904:"11529f6e",912:"15125adb"}[chunkId]+".iframe.bundle.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i